From 5d2c3cf9fad5c4d0d478d995be6b65a207440d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Mon, 25 Mar 2024 21:01:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=20uv-ui,=20=E6=94=B9?= =?UTF-8?q?=E7=94=A8=20wot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 ++--- pages.config.ts | 2 +- pnpm-lock.yaml | 26 ++++++++++++-------------- src/main.ts | 2 -- src/pages.json | 2 +- src/pages/index/about.vue | 3 +++ tsconfig.json | 3 +-- 7 files changed, 20 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 60f80ee..011218b 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,6 @@ "bin-wrapper": "npm:bin-wrapper-china" }, "dependencies": { - "@climblee/uv-ui": "^1.1.20", "@dcloudio/uni-app": "3.0.0-3090920231225001", "@dcloudio/uni-app-plus": "3.0.0-3090920231225001", "@dcloudio/uni-components": "3.0.0-3090920231225001", @@ -97,7 +96,8 @@ "pinia": "2.0.36", "pinia-plugin-persistedstate": "3.2.1", "qs": "^6.11.2", - "vue": "3.2.47" + "vue": "3.2.47", + "wot-design-uni": "^1.2.5" }, "devDependencies": { "@commitlint/cli": "^18.4.3", @@ -108,7 +108,6 @@ "@dcloudio/uni-stacktracey": "3.0.0-3090920231225001", "@dcloudio/vite-plugin-uni": "3.0.0-3090920231225001", "@iconify-json/carbon": "^1.1.27", - "@ttou/uv-typings": "^1.10.2", "@types/node": "^20.11.5", "@types/wechat-miniprogram": "^3.4.7", "@typescript-eslint/eslint-plugin": "^6.15.0", diff --git a/pages.config.ts b/pages.config.ts index 146ffc7..96d65b7 100644 --- a/pages.config.ts +++ b/pages.config.ts @@ -11,7 +11,7 @@ export default defineUniPages({ easycom: { autoscan: true, custom: { - '^uv-(.*)': '@climblee/uv-ui/components/uv-$1/uv-$1.vue', + '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue', }, }, tabBar: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bb4f875..54f04ac 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,6 @@ overrides: bin-wrapper: npm:bin-wrapper-china dependencies: - '@climblee/uv-ui': - specifier: ^1.1.20 - version: 1.1.20 '@dcloudio/uni-app': specifier: 3.0.0-3090920231225001 version: 3.0.0-3090920231225001(@dcloudio/types@3.4.3)(postcss@8.4.32)(vue@3.2.47) @@ -68,6 +65,9 @@ dependencies: vue: specifier: 3.2.47 version: 3.2.47 + wot-design-uni: + specifier: ^1.2.5 + version: 1.2.5(vue@3.2.47) devDependencies: '@commitlint/cli': @@ -94,9 +94,6 @@ devDependencies: '@iconify-json/carbon': specifier: ^1.1.27 version: 1.1.27 - '@ttou/uv-typings': - specifier: ^1.10.2 - version: 1.10.2 '@types/node': specifier: ^20.11.5 version: 20.11.5 @@ -1711,10 +1708,6 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@climblee/uv-ui@1.1.20: - resolution: {integrity: sha512-jkyesHJsPJkF4Nap9ZmG1/ibKlxXA5M8+ntqKXwwloIsYSYL5SOKb0gyPj17aBOU1PkJpmeiZ8PwnTolhK2/HA==} - dev: false - /@commitlint/cli@18.4.3(typescript@4.9.5): resolution: {integrity: sha512-zop98yfB3A6NveYAZ3P1Mb6bIXuCeWgnUfVNkH4yhIMQpQfzFwseadazOuSn0OOfTt0lWuFauehpm9GcqM5lww==} engines: {node: '>=v18'} @@ -3763,10 +3756,6 @@ packages: engines: {node: '>=10.13.0'} dev: true - /@ttou/uv-typings@1.10.2: - resolution: {integrity: sha512-aGXUWIuYjqA3dvWXWkrOO1T5yUHZqiXOGNR3sEl37s2xdlUlqXIbP2PMeDnP9fNMyJfemgSX5FZrlfKbYk6ypg==} - dev: true - /@types/babel__core@7.20.5: resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} dependencies: @@ -13884,6 +13873,15 @@ packages: isexe: 2.0.0 dev: true + /wot-design-uni@1.2.5(vue@3.2.47): + resolution: {integrity: sha512-tbDDUsrT7NI7Hd2DNY/EpmAD1jMTD9ejN0sTeXTexyrMLh4D9B617D+H3ssCtcb4Q1eElhshb/IFu1ESPZX9WQ==} + engines: {HBuilderX: ^3.8.7} + peerDependencies: + vue: ^3.2.0 + dependencies: + vue: 3.2.47 + dev: false + /wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} diff --git a/src/main.ts b/src/main.ts index 927b2a4..687e472 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,4 @@ import { createSSRApp } from 'vue' -import uvUI from '@climblee/uv-ui' import App from './App.vue' import store from './store' import 'virtual:svg-icons-register' @@ -9,7 +8,6 @@ import '@/style/index.scss' export function createApp() { const app = createSSRApp(App) app.use(store) - app.use(uvUI) return { app, } diff --git a/src/pages.json b/src/pages.json index a260715..0f631f8 100644 --- a/src/pages.json +++ b/src/pages.json @@ -9,7 +9,7 @@ "easycom": { "autoscan": true, "custom": { - "^uv-(.*)": "@climblee/uv-ui/components/uv-$1/uv-$1.vue" + "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue" } }, "tabBar": { diff --git a/src/pages/index/about.vue b/src/pages/index/about.vue index 3d818a6..7e00b22 100644 --- a/src/pages/index/about.vue +++ b/src/pages/index/about.vue @@ -16,6 +16,9 @@ 鸽友们好,我是 菲鸽 + + wot 组件库测试 + diff --git a/tsconfig.json b/tsconfig.json index f205361..85c19b7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,8 +17,7 @@ "@types/wechat-miniprogram", "@uni-helper/uni-app-types", "@uni-helper/uni-cloud-types", - "@ttou/uv-typings/shim", - "@ttou/uv-typings/v3" + "wot-design-uni/global.d.ts" ] }, "vueCompilerOptions": {