mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-27 04:39:23 +08:00
fix(vue-runtime-help): 修复页面片中组件拖动位置异常问题
This commit is contained in:
parent
0bd8496fac
commit
b72f4dae28
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"name": "@tmagic/vue-runtime-help",
|
"name": "@tmagic/vue-runtime-help",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
@ -22,7 +22,9 @@ export const useEditorDsl = (app = inject<TMagicApp>('app'), win = window) => {
|
|||||||
|
|
||||||
watch(pageConfig, async () => {
|
watch(pageConfig, async () => {
|
||||||
await nextTick();
|
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);
|
page && win.magic?.onPageElUpdate(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user