mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-11-30 14:32: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;
|
||||
}
|
||||
|
||||
if (options.adapterType && globalThis.document?.documentElement) {
|
||||
globalThis.document.documentElement.classList.add(`tmagic-adapter-${options.adapterType}`);
|
||||
}
|
||||
|
||||
app.config.globalProperties.$MAGIC_DESIGN = options;
|
||||
setDesignConfig(options);
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user