跳到主要内容

generate-snippets-context-menu

<visual-builder.generate-snippets-context-menu>

构件 visual-builder.generate-snippets-context-menu

Properties

NameDescriptionTypeDefaultRequired
optionsSnippetOption[]
activeboolean
positionPosition

Events

NameDescriptionEvent Detail
item.drag.startSnippetItem
item.drag.endSnippetItem

Methods

NameDescriptionParamsReturns
openparam_1: OpenInfo
close

Type references

SnippetOption

NameTypeRequiredDescription
titlestring
childrenSnippetItem[]

SnippetItem

NameTypeRequiredDescription
textstring
iconGeneralIconProps
disabledboolean
hiddenboolean
tooltipstring
dragConf{ format: string; data: unknown }

OpenInfo

NameTypeRequiredDescription
positionPosition

通常设为 [EVENT.clientX, EVENT.clientY]

Position

[x: number, y: number]