feat(design): 在html中添加adapter类型class
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user