From 09dfaad2ccf9cd50491a8352e33416c7a17027c4 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Mon, 24 Nov 2025 13:56:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(design):=20=E5=9C=A8html=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0adapter=E7=B1=BB=E5=9E=8Bclass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/design/src/index.ts | 4 ++++ 1 file changed, 4 insertions(+) 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); },