generate-snippets-context-menu
<visual-builder.generate-snippets-context-menu>
构件 visual-builder.generate-snippets-context-menu
Properties
Events
Methods
Name | Description | Params | Returns |
---|
open | | param_1: OpenInfo | |
close | | | |
Type references
SnippetOption
Name | Type | Required | Description |
---|
title | string | | |
children | SnippetItem[] | | |
SnippetItem
Name | Type | Required | Description |
---|
text | string | ✅ | |
icon | GeneralIconProps | | |
disabled | boolean | | |
hidden | boolean | | |
tooltip | string | | |
dragConf | { format: string; data: unknown } | | |
OpenInfo
Name | Type | Required | Description |
---|
position | Position | ✅ | 通常设为 [EVENT.clientX, EVENT.clientY] |
Position
[x: number, y: number]