diff --git a/playground/shims-vue.d.ts b/playground/shims-vue.d.ts new file mode 100644 index 00000000..30030494 --- /dev/null +++ b/playground/shims-vue.d.ts @@ -0,0 +1,6 @@ +declare module '*.vue' { + import { DefineComponent } from 'vue'; + + const component: DefineComponent<{}, {}, any>; + export default component; +} diff --git a/playground/src/main.ts b/playground/src/main.ts index 89054b3b..1f779efe 100644 --- a/playground/src/main.ts +++ b/playground/src/main.ts @@ -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'; diff --git a/playground/vite.config.ts b/playground/vite.config.ts index 32469f2e..043887c1 100644 --- a/playground/vite.config.ts +++ b/playground/vite.config.ts @@ -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') }, { diff --git a/runtime/react-runtime-help/package.json b/runtime/react-runtime-help/package.json index 2f69fcd5..ec9f00f1 100644 --- a/runtime/react-runtime-help/package.json +++ b/runtime/react-runtime-help/package.json @@ -33,11 +33,11 @@ }, "peerDependencies": { "lodash-es": "^4.17.21", - "@tmagic/core": "workspace:*", - "@tmagic/data-source": "workspace:*", - "@tmagic/schema": "workspace:*", - "@tmagic/stage": "workspace:*", - "@tmagic/utils": "workspace:*", + "@tmagic/core": "workspace:^", + "@tmagic/data-source": "workspace:^", + "@tmagic/schema": "workspace:^", + "@tmagic/stage": "workspace:^", + "@tmagic/utils": "workspace:^", "react": ">=18.3.1", "typescript": "*" }, diff --git a/runtime/tmagic-form/package.json b/runtime/tmagic-form/package.json index 9df2fcf0..bb79d3c7 100644 --- a/runtime/tmagic-form/package.json +++ b/runtime/tmagic-form/package.json @@ -32,12 +32,12 @@ "url": "https://github.com/Tencent/tmagic-editor.git" }, "peerDependencies": { - "@tmagic/core": "workspace:*", - "@tmagic/editor": "workspace:*", - "@tmagic/form": "workspace:*", - "@tmagic/utils": "workspace:*", - "@tmagic/schema": "workspace:*", - "@tmagic/stage": "workspace:*", + "@tmagic/core": "workspace:^", + "@tmagic/editor": "workspace:^", + "@tmagic/form": "workspace:^", + "@tmagic/utils": "workspace:^", + "@tmagic/schema": "workspace:^", + "@tmagic/stage": "workspace:^", "element-plus": ">=2.8.0", "vue": ">=3.4.27" }, diff --git a/runtime/vue-runtime-help/package.json b/runtime/vue-runtime-help/package.json index 0ebd1865..79177893 100644 --- a/runtime/vue-runtime-help/package.json +++ b/runtime/vue-runtime-help/package.json @@ -32,11 +32,11 @@ "vue-demi": "^0.14.10" }, "peerDependencies": { - "@tmagic/core": "workspace:*", - "@tmagic/data-source": "workspace:*", - "@tmagic/schema": "workspace:*", - "@tmagic/stage": "workspace:*", - "@tmagic/utils": "workspace:*", + "@tmagic/core": "workspace:^", + "@tmagic/data-source": "workspace:^", + "@tmagic/schema": "workspace:^", + "@tmagic/stage": "workspace:^", + "@tmagic/utils": "workspace:^", "@vue/composition-api": ">=1.7.2", "typescript": "*", "vue": ">=2.0.0 || >=3.0.0"