mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 17:54:20 +01:00
This commit is contained in:
parent
9cede8f1a4
commit
a641862f30
4 changed files with 36 additions and 4 deletions
5
app/src/types/index.d.ts
vendored
5
app/src/types/index.d.ts
vendored
|
|
@ -25,6 +25,8 @@ type TOperation =
|
|||
| "setAttrs"
|
||||
| "updateAttrs"
|
||||
| "append"
|
||||
| "insertAttrViewBlock"
|
||||
| "removeAttrViewBlock"
|
||||
type TBazaarType = "templates" | "icons" | "widgets" | "themes"
|
||||
declare module "blueimp-md5"
|
||||
|
||||
|
|
@ -237,10 +239,11 @@ interface IOperation {
|
|||
action: TOperation, // move, delete 不需要传 data
|
||||
id: string,
|
||||
data?: string, // updateAttr 时为 { old: IObject, new: IObject }
|
||||
parentID?: string
|
||||
parentID?: string // 为 insertAttrViewBlock 传 avid
|
||||
previousID?: string
|
||||
retData?: any
|
||||
nextID?: string // insert 专享
|
||||
srcIDs?: string[] // insertAttrViewBlock 专享
|
||||
}
|
||||
|
||||
interface IObject {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue