refactor(ui组件库): 将uview-plus组件替换为uv-ui组件

更新pages.json配置及所有相关组件引用,统一使用uv-ui组件库
This commit is contained in:
feige996 2025-06-22 11:51:26 +08:00
parent fb84cd217a
commit 41768b4457
4 changed files with 14 additions and 16 deletions

View File

@ -34,7 +34,7 @@ onLoad(() => {
</script> </script>
<template> <template>
<up-tabbar <uv-tabbar
v-if="customTabbarEnable" v-if="customTabbarEnable"
:value="tabbarStore.curIdx" :value="tabbarStore.curIdx"
active-color="#d81e06" active-color="#d81e06"
@ -46,14 +46,14 @@ onLoad(() => {
@change="selectTabBar" @change="selectTabBar"
> >
<block v-for="(item, idx) in tabbarList" :key="item.path"> <block v-for="(item, idx) in tabbarList" :key="item.path">
<up-tabbar-item <uv-tabbar-item
v-if="item.iconType === 'uiLib'" v-if="item.iconType === 'uiLib'"
:text="item.text" :text="item.text"
:icon="item.icon" :icon="item.icon"
:name="idx" :name="idx"
/> />
<up-tabbar-item <uv-tabbar-item
v-else-if="item.iconType === 'unocss' || item.iconType === 'iconfont'" v-else-if="item.iconType === 'unocss' || item.iconType === 'iconfont'"
:text="item.text" :text="item.text"
:name="idx" :name="idx"
@ -74,12 +74,12 @@ onLoad(() => {
:class="[item.icon, idx === tabbarStore.curIdx ? 'is-active' : 'is-inactive']" :class="[item.icon, idx === tabbarStore.curIdx ? 'is-active' : 'is-inactive']"
/> />
</template> </template>
</up-tabbar-item> </uv-tabbar-item>
<up-tabbar-item v-else-if="item.iconType === 'local'" :text="item.text" :name="idx"> <uv-tabbar-item v-else-if="item.iconType === 'local'" :text="item.text" :name="idx">
<template #icon> <template #icon>
<image :src="item.icon" h-40rpx w-40rpx /> <image :src="item.icon" h-40rpx w-40rpx />
</template> </template>
</up-tabbar-item> </uv-tabbar-item>
</block> </block>
</up-tabbar> </uv-tabbar>
</template> </template>

View File

@ -10,9 +10,7 @@
"autoscan": true, "autoscan": true,
"custom": { "custom": {
"^fg-(.*)": "@/components/fg-$1/fg-$1.vue", "^fg-(.*)": "@/components/fg-$1/fg-$1.vue",
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue", "^uv-(.*)": "@climblee/uv-ui/components/uv-$1/uv-$1.vue",
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
"^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue" "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue"
} }
}, },

View File

@ -61,9 +61,9 @@ function reset() {
<!-- #endif --> <!-- #endif -->
<!-- http://localhost:9000/#/pages/index/request --> <!-- http://localhost:9000/#/pages/index/request -->
<up-button class="my-6" type="primary" @click="run"> <uv-button class="my-6" type="primary" @click="run">
发送请求 发送请求
</up-button> </uv-button>
<view class="h-16"> <view class="h-16">
<view v-if="loading"> <view v-if="loading">
loading... loading...
@ -77,8 +77,8 @@ function reset() {
</view> </view>
</block> </block>
</view> </view>
<up-button type="warning" class="my-6" :disabled="!data" @click="reset"> <uv-button type="warning" class="my-6" :disabled="!data" @click="reset">
重置数据 重置数据
</up-button> </uv-button>
</view> </view>
</template> </template>

View File

@ -13,9 +13,9 @@ const { loading, data, run } = useUpload()
<template> <template>
<view class="p-4 text-center"> <view class="p-4 text-center">
<up-button type="primary" @click="run"> <uv-button type="primary" @click="run">
选择图片并上传 选择图片并上传
</up-button> </uv-button>
<view v-if="loading" class="h-10 text-blue"> <view v-if="loading" class="h-10 text-blue">
上传... 上传...
</view> </view>