mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
This commit is contained in:
parent
a31e79001e
commit
d75fac21aa
2 changed files with 4 additions and 2 deletions
|
|
@ -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: "",
|
||||
|
|
|
|||
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
|
@ -908,7 +908,7 @@ interface IAVGroup {
|
|||
numStep: number // 数字范围步长 100
|
||||
}
|
||||
hideEmpty?: boolean
|
||||
order?: number // 升序: 0(默认), 降序: 1, 手动排序: 2
|
||||
order?: number // 升序: 0(默认), 降序: 1, 手动排序: 2, 按选项排序: 3
|
||||
}
|
||||
|
||||
interface IAVSort {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue