feat: uiLib 匹配

This commit is contained in:
feige996 2025-06-21 19:36:04 +08:00
parent cb033104ee
commit e67da2203c
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ 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">
<wd-tabbar-item v-if="item.iconType === 'wot'" :title="item.text" :icon="item.icon" /> <wd-tabbar-item v-if="item.iconType === 'uiLib'" :title="item.text" :icon="item.icon" />
<wd-tabbar-item <wd-tabbar-item
v-else-if="item.iconType === 'unocss' || item.iconType === 'iconfont'" v-else-if="item.iconType === 'unocss' || item.iconType === 'iconfont'"
:title="item.text" :title="item.text"

View File

@ -24,7 +24,7 @@ export const tabbarList = [
pagePath: 'pages/index/index', pagePath: 'pages/index/index',
text: '首页', text: '首页',
icon: 'home', icon: 'home',
iconType: 'wot', iconType: 'uiLib',
}, },
{ {
iconPath: 'static/tabbar/example.png', iconPath: 'static/tabbar/example.png',