mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -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: "",
|
||||
|
||||
Vendored
+1
-1
@@ -908,7 +908,7 @@ interface IAVGroup {
|
||||
numStep: number // 数字范围步长 100
|
||||
}
|
||||
hideEmpty?: boolean
|
||||
order?: number // 升序: 0(默认), 降序: 1, 手动排序: 2
|
||||
order?: number // 升序: 0(默认), 降序: 1, 手动排序: 2, 按选项排序: 3
|
||||
}
|
||||
|
||||
interface IAVSort {
|
||||
|
||||
Reference in New Issue
Block a user