mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-26 12:28:01 +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",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user