Vanessa 2023-03-02 18:33:03 +08:00
parent 9cede8f1a4
commit a641862f30
4 changed files with 36 additions and 4 deletions

View file

@ -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 {