fix(vue-runtime-help): 修复页面片中组件拖动位置异常问题

This commit is contained in:
roymondchen 2025-06-06 19:33:15 +08:00
parent 0bd8496fac
commit b72f4dae28
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"version": "1.1.2",
"version": "1.1.3",
"name": "@tmagic/vue-runtime-help",
"type": "module",
"sideEffects": false,

View File

@ -22,7 +22,9 @@ export const useEditorDsl = (app = inject<TMagicApp>('app'), win = window) => {
watch(pageConfig, async () => {
await nextTick();
const page = document.querySelector<HTMLElement>('.magic-ui-page');
const page =
document.querySelector<HTMLElement>('.magic-ui-page') ||
document.querySelector<HTMLElement>('.magic-ui-page-fragment');
page && win.magic?.onPageElUpdate(page);
});