mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-04 18:52:18 +08:00
fix(vue-components): page-fragment-container不标记为不是node节点
This commit is contained in:
parent
cebf3506d4
commit
bf9fad18b6
@ -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",
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user