chore(playground): playground添加design style
This commit is contained in:
6
playground/shims-vue.d.ts
vendored
Normal file
6
playground/shims-vue.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
declare module '*.vue' {
|
||||
import { DefineComponent } from 'vue';
|
||||
|
||||
const component: DefineComponent<{}, {}, any>;
|
||||
export default component;
|
||||
}
|
||||
@@ -33,6 +33,7 @@ import App from './App.vue';
|
||||
import router from './route';
|
||||
|
||||
import 'element-plus/dist/index.css';
|
||||
import '@tmagic/design/dist/style.css';
|
||||
import '@tmagic/editor/dist/style.css';
|
||||
import '@tmagic/form/dist/style.css';
|
||||
import '@tmagic/table/dist/style.css';
|
||||
|
||||
@@ -57,6 +57,10 @@ export default defineConfig({
|
||||
find: /^@tmagic\/table\/dist\/style.css/,
|
||||
replacement: path.join(__dirname, '../packages/table/dist/style.css'),
|
||||
},
|
||||
{
|
||||
find: /^@tmagic\/design\/dist\/style.css/,
|
||||
replacement: path.join(__dirname, '../packages/design/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') },
|
||||
@@ -70,7 +74,10 @@ export default defineConfig({
|
||||
{ find: /^@tmagic\/stage/, replacement: path.join(__dirname, '../packages/stage/src/index.ts') },
|
||||
{ find: /^@tmagic\/utils/, replacement: path.join(__dirname, '../packages/utils/src/index.ts') },
|
||||
{ find: /^@tmagic\/design/, replacement: path.join(__dirname, '../packages/design/src/index.ts') },
|
||||
{ find: /^@tmagic\/data-source/, replacement: path.join(__dirname, '../packages/data-source/src/index.ts') },
|
||||
{
|
||||
find: /^@tmagic\/data-source/,
|
||||
replacement: path.join(__dirname, '../packages/data-source/src/index.ts'),
|
||||
},
|
||||
{ find: /^@tmagic\/dep/, replacement: path.join(__dirname, '../packages/dep/src/index.ts') },
|
||||
{ find: /^@data-source/, replacement: path.join(__dirname, '../packages/data-source/src') },
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user