mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
This commit is contained in:
parent
fb72af192e
commit
54ca2d6226
12 changed files with 112 additions and 65 deletions
5
app/src/types/index.d.ts
vendored
5
app/src/types/index.d.ts
vendored
|
|
@ -49,6 +49,7 @@ type TOperation =
|
|||
| "duplicateAttrViewView"
|
||||
| "sortAttrViewView"
|
||||
| "setAttrViewPageSize"
|
||||
| "updateAttrViewColRelation"
|
||||
type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins"
|
||||
type TCardType = "doc" | "notebook" | "all"
|
||||
type TEventBus = "ws-main" | "sync-start" | "sync-end" | "sync-fail" |
|
||||
|
|
@ -439,6 +440,8 @@ interface IScrollAttr {
|
|||
interface IOperation {
|
||||
action: TOperation, // move, delete 不需要传 data
|
||||
id?: string,
|
||||
isTwoWay?: boolean, // 是否双向关联
|
||||
backRelationKeyID?: string, // 双向关联的目标关联列 ID
|
||||
avID?: string, // av
|
||||
format?: string // updateAttrViewColNumberFormat 专享
|
||||
keyID?: string // updateAttrViewCell 专享
|
||||
|
|
@ -981,7 +984,7 @@ interface IMenu {
|
|||
iconClass?: string,
|
||||
label?: string,
|
||||
click?: (element: HTMLElement, event: MouseEvent) => boolean | void | Promise<boolean | void>
|
||||
type?: "separator" | "submenu" | "readonly",
|
||||
type?: "separator" | "submenu" | "readonly" | "empty",
|
||||
accelerator?: string,
|
||||
action?: string,
|
||||
id?: string,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue