feat: 移除 uv-ui, 改用 wot

This commit is contained in:
菲鸽 2024-03-25 21:01:26 +08:00
parent 61ff5d1614
commit 5d2c3cf9fa
7 changed files with 20 additions and 23 deletions

View File

@ -78,7 +78,6 @@
"bin-wrapper": "npm:bin-wrapper-china" "bin-wrapper": "npm:bin-wrapper-china"
}, },
"dependencies": { "dependencies": {
"@climblee/uv-ui": "^1.1.20",
"@dcloudio/uni-app": "3.0.0-3090920231225001", "@dcloudio/uni-app": "3.0.0-3090920231225001",
"@dcloudio/uni-app-plus": "3.0.0-3090920231225001", "@dcloudio/uni-app-plus": "3.0.0-3090920231225001",
"@dcloudio/uni-components": "3.0.0-3090920231225001", "@dcloudio/uni-components": "3.0.0-3090920231225001",
@ -97,7 +96,8 @@
"pinia": "2.0.36", "pinia": "2.0.36",
"pinia-plugin-persistedstate": "3.2.1", "pinia-plugin-persistedstate": "3.2.1",
"qs": "^6.11.2", "qs": "^6.11.2",
"vue": "3.2.47" "vue": "3.2.47",
"wot-design-uni": "^1.2.5"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^18.4.3", "@commitlint/cli": "^18.4.3",
@ -108,7 +108,6 @@
"@dcloudio/uni-stacktracey": "3.0.0-3090920231225001", "@dcloudio/uni-stacktracey": "3.0.0-3090920231225001",
"@dcloudio/vite-plugin-uni": "3.0.0-3090920231225001", "@dcloudio/vite-plugin-uni": "3.0.0-3090920231225001",
"@iconify-json/carbon": "^1.1.27", "@iconify-json/carbon": "^1.1.27",
"@ttou/uv-typings": "^1.10.2",
"@types/node": "^20.11.5", "@types/node": "^20.11.5",
"@types/wechat-miniprogram": "^3.4.7", "@types/wechat-miniprogram": "^3.4.7",
"@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/eslint-plugin": "^6.15.0",

View File

@ -11,7 +11,7 @@ export default defineUniPages({
easycom: { easycom: {
autoscan: true, autoscan: true,
custom: { custom: {
'^uv-(.*)': '@climblee/uv-ui/components/uv-$1/uv-$1.vue', '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
}, },
}, },
tabBar: { tabBar: {

26
pnpm-lock.yaml generated
View File

@ -8,9 +8,6 @@ overrides:
bin-wrapper: npm:bin-wrapper-china bin-wrapper: npm:bin-wrapper-china
dependencies: dependencies:
'@climblee/uv-ui':
specifier: ^1.1.20
version: 1.1.20
'@dcloudio/uni-app': '@dcloudio/uni-app':
specifier: 3.0.0-3090920231225001 specifier: 3.0.0-3090920231225001
version: 3.0.0-3090920231225001(@dcloudio/types@3.4.3)(postcss@8.4.32)(vue@3.2.47) version: 3.0.0-3090920231225001(@dcloudio/types@3.4.3)(postcss@8.4.32)(vue@3.2.47)
@ -68,6 +65,9 @@ dependencies:
vue: vue:
specifier: 3.2.47 specifier: 3.2.47
version: 3.2.47 version: 3.2.47
wot-design-uni:
specifier: ^1.2.5
version: 1.2.5(vue@3.2.47)
devDependencies: devDependencies:
'@commitlint/cli': '@commitlint/cli':
@ -94,9 +94,6 @@ devDependencies:
'@iconify-json/carbon': '@iconify-json/carbon':
specifier: ^1.1.27 specifier: ^1.1.27
version: 1.1.27 version: 1.1.27
'@ttou/uv-typings':
specifier: ^1.10.2
version: 1.10.2
'@types/node': '@types/node':
specifier: ^20.11.5 specifier: ^20.11.5
version: 20.11.5 version: 20.11.5
@ -1711,10 +1708,6 @@ packages:
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
dev: true 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): /@commitlint/cli@18.4.3(typescript@4.9.5):
resolution: {integrity: sha512-zop98yfB3A6NveYAZ3P1Mb6bIXuCeWgnUfVNkH4yhIMQpQfzFwseadazOuSn0OOfTt0lWuFauehpm9GcqM5lww==} resolution: {integrity: sha512-zop98yfB3A6NveYAZ3P1Mb6bIXuCeWgnUfVNkH4yhIMQpQfzFwseadazOuSn0OOfTt0lWuFauehpm9GcqM5lww==}
engines: {node: '>=v18'} engines: {node: '>=v18'}
@ -3763,10 +3756,6 @@ packages:
engines: {node: '>=10.13.0'} engines: {node: '>=10.13.0'}
dev: true dev: true
/@ttou/uv-typings@1.10.2:
resolution: {integrity: sha512-aGXUWIuYjqA3dvWXWkrOO1T5yUHZqiXOGNR3sEl37s2xdlUlqXIbP2PMeDnP9fNMyJfemgSX5FZrlfKbYk6ypg==}
dev: true
/@types/babel__core@7.20.5: /@types/babel__core@7.20.5:
resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
dependencies: dependencies:
@ -13884,6 +13873,15 @@ packages:
isexe: 2.0.0 isexe: 2.0.0
dev: true 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: /wrap-ansi@7.0.0:
resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
engines: {node: '>=10'} engines: {node: '>=10'}

View File

@ -1,5 +1,4 @@
import { createSSRApp } from 'vue' import { createSSRApp } from 'vue'
import uvUI from '@climblee/uv-ui'
import App from './App.vue' import App from './App.vue'
import store from './store' import store from './store'
import 'virtual:svg-icons-register' import 'virtual:svg-icons-register'
@ -9,7 +8,6 @@ import '@/style/index.scss'
export function createApp() { export function createApp() {
const app = createSSRApp(App) const app = createSSRApp(App)
app.use(store) app.use(store)
app.use(uvUI)
return { return {
app, app,
} }

View File

@ -9,7 +9,7 @@
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,
"custom": { "custom": {
"^uv-(.*)": "@climblee/uv-ui/components/uv-$1/uv-$1.vue" "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue"
} }
}, },
"tabBar": { "tabBar": {

View File

@ -16,6 +16,9 @@
鸽友们好我是 鸽友们好我是
<text class="text-red-500">菲鸽</text> <text class="text-red-500">菲鸽</text>
</view> </view>
<view class="text-center mt-8">
<wd-button type="primary">wot 组件库测试</wd-button>
</view>
</view> </view>
</template> </template>

View File

@ -17,8 +17,7 @@
"@types/wechat-miniprogram", "@types/wechat-miniprogram",
"@uni-helper/uni-app-types", "@uni-helper/uni-app-types",
"@uni-helper/uni-cloud-types", "@uni-helper/uni-cloud-types",
"@ttou/uv-typings/shim", "wot-design-uni/global.d.ts"
"@ttou/uv-typings/v3"
] ]
}, },
"vueCompilerOptions": { "vueCompilerOptions": {