Skip to content

Home > @zero-dim/designer

designer package

Enumerations

Enumeration

Description

ComponentMenu

DeviceEnum

Functions

Function

Description

addEditorThemeListener(callbackListener)

createDragBoxTemplate(schema, props)

创建AlDragBox

createPageTemplate(schema, props)

创建AlDragBox

findAndModifyById(nodes, targetId, callback)

根据targetId搜索nodes的节点,修改targetId节点的值

findAndModifyParentById(treeArray, targetId, callback)

根据targetId搜索到对于数据,然后修改改数据父亲节点内容

findParentNode(tree, targetId, parent)

getExposeApi()

getSchemaInstanceName(selectComponent)

initComponents(app)

recursiveUpdateIds(node)

递归更新 id

removeAlDragBoxAndPromoteChildren(nodes)

删除类型为AlDragBox,AlVueDragAble的盒子,且不改变数据结构

removeNodeById(nodes, targetId)

根据targetId删除节点

swapChildrenPositions(nodes, fromId, toId, oldIndex, newIndex)

将fromId下面 children 为oldIndex索引的数据移动到toId下面 children 为newIndex的位置

Interfaces

Interface

Description

ActiveComponentMenu

DesignerContext

Menu

MenuItem

Variables

Variable

Description

AlAttrsPanel

AlComponentsPanel

AlDesigner

AlDragBox

AlHeader

AlVueDragAble

AlWorkspace

DESIGN_INSTANCE

Type Aliases

Type Alias

Description

MenuList