mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-01 06:52:09 +08:00
feat(design): 在html中添加adapter类型class
This commit is contained in:
parent
5dbe1fb655
commit
09dfaad2cc
@ -128,6 +128,10 @@ export default {
|
|||||||
useZIndex = options.useZIndex;
|
useZIndex = options.useZIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.adapterType && globalThis.document?.documentElement) {
|
||||||
|
globalThis.document.documentElement.classList.add(`tmagic-adapter-${options.adapterType}`);
|
||||||
|
}
|
||||||
|
|
||||||
app.config.globalProperties.$MAGIC_DESIGN = options;
|
app.config.globalProperties.$MAGIC_DESIGN = options;
|
||||||
setDesignConfig(options);
|
setDesignConfig(options);
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user