1
0
mirror of synced 2025-12-10 03:38:01 +08:00

feat(core): instance设定不再限制只有方法

This commit is contained in:
roymondchen
2025-04-28 20:11:28 +08:00
parent 6dc007388b
commit e5bcd762b2
4 changed files with 28 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
{
"version": "0.1.0",
"version": "0.1.1",
"name": "@tmagic/vue-page",
"type": "module",
"main": "src/index.ts",

View File

@@ -73,7 +73,7 @@ export default defineComponent({
const node = useNode({ config: { ...config, [IS_DSL_NODE_KEY]: true } }, app);
if (config.id !== preConfig?.id) {
node?.registerMethod({ refresh });
node?.setInstance({ config: props.config, refresh });
node?.emit('created');
}
await nextTick();