feat(design): 在html中添加adapter类型class

This commit is contained in:
roymondchen 2025-11-24 13:56:11 +08:00
parent 5dbe1fb655
commit 09dfaad2cc

View File

@ -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);
},