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

View File

@ -10,9 +10,7 @@
"autoscan": true,
"custom": {
"^fg-(.*)": "@/components/fg-$1/fg-$1.vue",
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
"^uv-(.*)": "@climblee/uv-ui/components/uv-$1/uv-$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 -->
<!-- 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 v-if="loading">
loading...
@ -77,8 +77,8 @@ function reset() {
</view>
</block>
</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>
</template>

View File

@ -13,9 +13,9 @@ const { loading, data, run } = useUpload()
<template>
<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>