优化图标,修改模拟数据

This commit is contained in:
2025-11-29 18:30:28 +08:00
parent 0eb8ac9181
commit 7be5b1b66c
9 changed files with 31 additions and 26 deletions

View File

@@ -20,7 +20,7 @@ export const TABBAR_STRATEGY_MAP = {
// TODO: 1/3. 通过这里切换使用tabbar的策略
// 如果是使用 NO_TABBAR(0)nativeTabbarList 和 customTabbarList 都不生效(里面的配置不用管)
// 如果是使用 NATIVE_TABBAR(1),只需要配置 nativeTabbarListcustomTabbarList 不生效
// 如果是使用 CUSTOM_TABBAR(2,3),只需要配置 customTabbarListnativeTabbarList 不生效
// 如果是使用 CUSTOM_TABBAR(2,3),只需要配置 不生效
export const selectedTabbarStrategy = TABBAR_STRATEGY_MAP.CUSTOM_TABBAR_WITH_CACHE
// TODO: 2/3. 使用 NATIVE_TABBAR 时,更新下面的 tabbar 配置
@@ -51,14 +51,15 @@ export const customTabbarList: CustomTabBarItem[] = [
iconType: 'unocss',
icon: 'i-carbon-home',
// badge: 'dot',
navigationStyle: 'custom',
},
{
pagePath: 'pages/sort/index',
text: '分类',
// 1在fg-tabbar.vue页面上引入一下并注释掉见tabbar/index.vue代码第2行
// 2配置到 unocss.config.ts 的 safelist 中
iconType: 'uiLib',
icon: 'add-circle',
iconType: 'unocss',
icon: 'i-carbon-view-mode-2',
// badge: 10,
},
{
@@ -67,7 +68,7 @@ export const customTabbarList: CustomTabBarItem[] = [
// 1在fg-tabbar.vue页面上引入一下并注释掉见tabbar/index.vue代码第2行
// 2配置到 unocss.config.ts 的 safelist 中
iconType: 'unocss',
icon: 'i-clarity-shopping-cart-line',
icon: 'i-carbon-shopping-cart',
// badge: 10,
},
{