fix(vue-components): page-fragment-container不标记为不是node节点

This commit is contained in:
roymondchen 2025-07-15 16:40:53 +08:00
parent cebf3506d4
commit bf9fad18b6
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "0.2.0", "version": "0.2.1",
"name": "@tmagic/vue-page-fragment-container", "name": "@tmagic/vue-page-fragment-container",
"type": "module", "type": "module",
"main": "src/index.ts", "main": "src/index.ts",

View File

@ -17,7 +17,6 @@ import { computed, defineComponent, type PropType, provide } from 'vue-demi';
import { import {
cloneDeep, cloneDeep,
type Id, type Id,
IS_DSL_NODE_KEY,
type MComponent, type MComponent,
NodeType, NodeType,
PAGE_FRAGMENT_CONTAINER_ID_KEY, PAGE_FRAGMENT_CONTAINER_ID_KEY,
@ -61,10 +60,10 @@ export default defineComponent({
traverseNode(fragmentConfigWithoutId, (node) => { traverseNode(fragmentConfigWithoutId, (node) => {
node.id = ''; node.id = '';
}); });
return { ...fragmentConfigWithoutId, [IS_DSL_NODE_KEY]: false }; return fragmentConfigWithoutId;
} }
return { ...fragment.value, [IS_DSL_NODE_KEY]: false }; return fragment.value;
}); });
return { return {