2
This commit is contained in:
@@ -132,8 +132,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"activeTabId": "vrh9bl2"
|
"activeTabId": "mxfx11j"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lastUpdated": "2025-12-20T13:20:08.377Z"
|
"lastUpdated": "2025-12-20T13:24:03.895Z"
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,17 @@
|
|||||||
{
|
{
|
||||||
"components": [
|
"components": [
|
||||||
|
{
|
||||||
|
"id": "6evneg3",
|
||||||
|
"componentId": "RadioSelect",
|
||||||
|
"name": "单选器 1",
|
||||||
|
"props": {
|
||||||
|
"options": [
|
||||||
|
"选项1",
|
||||||
|
"选项6",
|
||||||
|
"选项3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "xazr6j9",
|
"id": "xazr6j9",
|
||||||
"componentId": "GridTable",
|
"componentId": "GridTable",
|
||||||
@@ -17,18 +29,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "6evneg3",
|
|
||||||
"componentId": "RadioSelect",
|
|
||||||
"name": "单选器 1",
|
|
||||||
"props": {
|
|
||||||
"options": [
|
|
||||||
"选项1",
|
|
||||||
"选项6",
|
|
||||||
"选项3"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "nx1ns6t",
|
"id": "nx1ns6t",
|
||||||
"componentId": "TextInput",
|
"componentId": "TextInput",
|
||||||
@@ -41,5 +41,5 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"selectedId": "xazr6j9",
|
"selectedId": "xazr6j9",
|
||||||
"lastUpdated": "2025-12-20T13:20:22.771Z"
|
"lastUpdated": "2025-12-20T13:24:06.541Z"
|
||||||
}
|
}
|
||||||
@@ -49,7 +49,7 @@ const getComponentIcon = (componentId: string) => {
|
|||||||
<div class="viewer-body">
|
<div class="viewer-body">
|
||||||
<div class="tree-container">
|
<div class="tree-container">
|
||||||
<draggable
|
<draggable
|
||||||
:list="[...treeNodes]"
|
:list="localComponents"
|
||||||
item-key="id"
|
item-key="id"
|
||||||
:animation="150"
|
:animation="150"
|
||||||
ghost-class="node-ghost"
|
ghost-class="node-ghost"
|
||||||
@@ -62,12 +62,12 @@ const getComponentIcon = (componentId: string) => {
|
|||||||
@click="handleNodeClick(node.id)"
|
@click="handleNodeClick(node.id)"
|
||||||
>
|
>
|
||||||
<span class="node-icon">{{ getComponentIcon(node.componentId) }}</span>
|
<span class="node-icon">{{ getComponentIcon(node.componentId) }}</span>
|
||||||
<span class="node-label">{{ node.label }}</span>
|
<span class="node-label">{{ node.name }}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</draggable>
|
</draggable>
|
||||||
|
|
||||||
<div v-if="treeNodes.length === 0" class="empty-tip">
|
<div v-if="localComponents.length === 0" class="empty-tip">
|
||||||
暂无设计组件
|
暂无设计组件
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user