From 49e9d5b9856dc4e7bd59ef383b9f52b6529db70c Mon Sep 17 00:00:00 2001 From: roymondchen Date: Wed, 29 May 2024 20:10:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(playground):=20tmagic-form=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #610 --- playground/src/main.ts | 4 +++- playground/vite.config.ts | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/playground/src/main.ts b/playground/src/main.ts index e8683dd9..89054b3b 100644 --- a/playground/src/main.ts +++ b/playground/src/main.ts @@ -33,7 +33,9 @@ import App from './App.vue'; import router from './route'; import 'element-plus/dist/index.css'; -import '@tmagic/editor/src/theme/index.scss'; +import '@tmagic/editor/dist/style.css'; +import '@tmagic/form/dist/style.css'; +import '@tmagic/table/dist/style.css'; // @ts-ignore globalThis.MonacoEnvironment = { diff --git a/playground/vite.config.ts b/playground/vite.config.ts index 62fa66bb..32469f2e 100644 --- a/playground/vite.config.ts +++ b/playground/vite.config.ts @@ -46,9 +46,17 @@ export default defineConfig({ resolve: { alias: [ { - find: /^@tmagic\/editor\/src\/theme\/index.scss/, + find: /^@tmagic\/editor\/dist\/style.css/, replacement: path.join(__dirname, '../packages/editor/src/theme/index.scss'), }, + { + find: /^@tmagic\/form\/dist\/style.css/, + replacement: path.join(__dirname, '../packages/form/src/theme/index.scss'), + }, + { + find: /^@tmagic\/table\/dist\/style.css/, + replacement: path.join(__dirname, '../packages/table/dist/style.css'), + }, { find: /^@tmagic\/core/, replacement: path.join(__dirname, '../packages/core/src/index.ts') }, { find: /^@editor/, replacement: path.join(__dirname, '../packages/editor/src/') }, { find: /^@tmagic\/editor/, replacement: path.join(__dirname, '../packages/editor/src/index.ts') },