diff --git a/packages/design/src/index.ts b/packages/design/src/index.ts index f4caf054..c439c316 100644 --- a/packages/design/src/index.ts +++ b/packages/design/src/index.ts @@ -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); },