将附属组件的父组件名去掉

This commit is contained in:
nnwang
2025-12-04 17:53:49 +08:00
parent fc3df13dd9
commit 0ecc020c23

View File

@@ -789,7 +789,7 @@
>
<input type="checkbox" />
<div class="collapse-title font-semibold">
{{ getDisplayName(comp.instanceName) || '未命名组件' }}
{{ comp.instanceName ? getDisplayName(comp.instanceName).split('.').pop() : '未命名组件' }}
<span class="badge badge-sm badge-neutral ml-2">{{ getTypeName(comp.typePath) || '未知类型' }}</span>
</div>
<div class="collapse-content">
@@ -877,6 +877,7 @@ export default {
}
});
const smallEditorOptions = ref({
...editorOptions.value,
fontSize: 12,