Vanessa 2025-08-09 21:48:48 +08:00
parent a31e79001e
commit d75fac21aa
2 changed files with 4 additions and 2 deletions

View file

@ -345,7 +345,9 @@ export const goGroupsSort = (options: {
}
const blockID = options.blockElement.getAttribute("data-node-id");
const column = getFieldsByData(options.data).find(item => item.id === options.data.view.group.field);
(["created", "date", "created", "updated"].includes(column.type) ? [0, 1] : [2, 0, 1]).forEach((item) => {
(["created", "date", "created", "updated"].includes(column.type) ? [0, 1] : (
["mSelect", "select"].includes(column.type) ? [2, 0, 1, 3] : [2, 0, 1]
)).forEach((item) => {
const label = getLanguageByIndex(item, "sort");
menu.addItem({
iconHTML: "",