mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 20:30:15 +01:00
This commit is contained in:
parent
44db6a8d5f
commit
5c77de0a09
3 changed files with 49 additions and 30 deletions
11
app/src/types/index.d.ts
vendored
11
app/src/types/index.d.ts
vendored
|
|
@ -23,6 +23,7 @@ type TOperation =
|
|||
| "addFlashcards"
|
||||
| "removeFlashcards"
|
||||
| "updateAttrViewCell"
|
||||
| "updateAttrViewCol"
|
||||
type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins"
|
||||
type TCardType = "doc" | "notebook" | "all"
|
||||
type TEventBus = "ws-main" |
|
||||
|
|
@ -31,7 +32,7 @@ type TEventBus = "ws-main" |
|
|||
"open-menu-blockref" | "open-menu-fileannotationref" | "open-menu-tag" | "open-menu-link" | "open-menu-image" |
|
||||
"open-menu-av" | "open-menu-content" |
|
||||
"loaded-protyle"
|
||||
type TAVCol = "text" | "date" | "number" | "relation" | "rollup" | "select" | "block"
|
||||
type TAVCol = "text" | "date" | "number" | "relation" | "rollup" | "select" | "block"| "mSelect"
|
||||
|
||||
declare module "blueimp-md5"
|
||||
|
||||
|
|
@ -280,7 +281,7 @@ interface IScrollAttr {
|
|||
interface IOperation {
|
||||
action: TOperation, // move, delete 不需要传 data
|
||||
id?: string,
|
||||
data?: string, // updateAttr 时为 { old: IObject, new: IObject }
|
||||
data?: any, // updateAttr 时为 { old: IObject, new: IObject }, updateAttrViewCell 时为 {TAVCol: {content: string}}
|
||||
parentID?: string // 为 insertAttrViewBlock 传 avid
|
||||
previousID?: string
|
||||
retData?: any
|
||||
|
|
@ -836,10 +837,6 @@ interface IAVCell {
|
|||
id: string,
|
||||
color: string,
|
||||
bgColor: string,
|
||||
value: string,
|
||||
value: any,
|
||||
valueType: TAVCol,
|
||||
renderValue: {
|
||||
content: string,
|
||||
id: string,
|
||||
} | string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue