From 7ba6c50cf55c9e091fdaa1a34e733330dff25c00 Mon Sep 17 00:00:00 2001 From: Burt <1020103647@qq.com> Date: Fri, 19 Jan 2024 17:42:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E5=A2=9E=E5=8A=A0Uni?= =?UTF-8?q?=20Icons=20=E5=9B=BE=E6=A0=87=E5=B9=B6=E5=8A=A0=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=EF=BC=8C=E9=AA=8C=E8=AF=81=E5=9C=A8=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E4=B8=AD=E9=A2=9C=E8=89=B2=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 155 -------------------------------------- src/pages/index/index.vue | 6 ++ uni-pages.d.ts | 23 +----- 3 files changed, 8 insertions(+), 176 deletions(-) diff --git a/src/pages.json b/src/pages.json index 66a7baf..43b3ecc 100644 --- a/src/pages.json +++ b/src/pages.json @@ -29,12 +29,6 @@ "pagePath": "pages/index/index", "text": "首页" }, - { - "iconPath": "static/tabbar/example.png", - "selectedIconPath": "static/tabbar/exampleHL.png", - "pagePath": "pages/demo/index", - "text": "示例" - }, { "iconPath": "static/tabbar/personal.png", "selectedIconPath": "static/tabbar/personalHL.png", @@ -51,10 +45,6 @@ "navigationBarTitleText": "首页" } }, - { - "path": "pages/demo/index", - "type": "page" - }, { "path": "pages/login/index", "type": "page", @@ -68,151 +58,6 @@ "style": { "navigationBarTitleText": "我的" } - }, - { - "path": "pages/demo/demo/clock", - "type": "page", - "style": { - "navigationBarTitleText": "动态时钟" - } - }, - { - "path": "pages/demo/demo/component-auto-import", - "type": "page", - "style": { - "navigationBarTitleText": "easycom 自动导入" - } - }, - { - "path": "pages/demo/demo/lottery", - "type": "page", - "style": { - "navigationBarTitleText": "九宫格抽奖" - } - }, - { - "path": "pages/demo/demo/lottery2", - "type": "page", - "style": { - "navigationBarTitleText": "大转盘抽奖" - } - }, - { - "path": "pages/demo/demo/mp-weixin-share", - "type": "page", - "style": { - "navigationBarTitleText": "微信分享" - } - }, - { - "path": "pages/demo/demo/navbar", - "type": "page", - "style": { - "navigationBarTitleText": "自定义导航栏", - "navigationStyle": "custom" - } - }, - { - "path": "pages/demo/demo/pages-auto-import", - "type": "page", - "style": { - "navigationBarTitleText": "pages 自动导入" - } - }, - { - "path": "pages/demo/demo/pinia", - "type": "page", - "layout": "display", - "style": { - "navigationBarTitleText": "pinia+持久化" - } - }, - { - "path": "pages/demo/demo/request", - "type": "page", - "style": { - "navigationBarTitleText": "request请求+请求拦截" - } - }, - { - "path": "pages/demo/demo/throughout", - "type": "page", - "style": { - "navigationBarTitleText": "通屏+下拉刷新+自定义导航栏", - "enablePullDownRefresh": false, - "backgroundColor": "#23c09c", - "app-plus": { - "titleNView": { - "type": "transparent" - } - }, - "mp-weixin": { - "navigationStyle": "custom" - } - } - }, - { - "path": "pages/demo/demo/uni-ui-icons", - "type": "page", - "style": { - "navigationBarTitleText": "UniUI Icons 使用" - } - }, - { - "path": "pages/demo/demo/uni-ui", - "type": "page", - "style": { - "navigationBarTitleText": "UniUI 使用" - } - }, - { - "path": "pages/demo/demo/unocss-icons", - "type": "page", - "style": { - "navigationBarTitleText": "UnoCss Icons 使用" - } - }, - { - "path": "pages/demo/demo/unocss", - "type": "page", - "style": { - "navigationBarTitleText": "UnoCss 使用" - } - }, - { - "path": "pages/demo/demo/img-min/index", - "type": "page" - }, - { - "path": "pages/demo/demo/lottery/big-wheel", - "type": "page", - "style": { - "navigationBarTitleText": "大转盘抽奖" - } - }, - { - "path": "pages/demo/demo/lottery/nine-grid", - "type": "page", - "style": { - "navigationBarTitleText": "九宫格抽奖" - } - }, - { - "path": "pages/demo/demo/throughout/index", - "type": "page", - "style": { - "navigationBarTitleText": "通屏+下拉刷新+自定义导航栏", - "enablePullDownRefresh": true, - "backgroundColor": "#23c09c", - "app-plus": { - "titleNView": { - "type": "transparent" - } - }, - "mp-weixin": { - "navigationStyle": "custom" - } - } } ], "subPackages": [] diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index b9bf098..e05f5f3 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -13,6 +13,12 @@ 开箱即用的 uniapp+vue3+ts 模板 + 果然UniIcons 在 微信小程序下颜色丢失 + + + UnoCSS Icons就正常,以后还是多用UnoCSS Icons 吧 + + diff --git a/uni-pages.d.ts b/uni-pages.d.ts index f261783..728a18e 100644 --- a/uni-pages.d.ts +++ b/uni-pages.d.ts @@ -5,32 +5,13 @@ interface NavigateToOptions { url: "pages/index/index" | - "pages/demo/index" | "pages/login/index" | - "pages/my/index" | - "pages/demo/demo/clock" | - "pages/demo/demo/component-auto-import" | - "pages/demo/demo/lottery" | - "pages/demo/demo/lottery2" | - "pages/demo/demo/mp-weixin-share" | - "pages/demo/demo/navbar" | - "pages/demo/demo/pages-auto-import" | - "pages/demo/demo/pinia" | - "pages/demo/demo/request" | - "pages/demo/demo/throughout" | - "pages/demo/demo/uni-ui-icons" | - "pages/demo/demo/uni-ui" | - "pages/demo/demo/unocss-icons" | - "pages/demo/demo/unocss" | - "pages/demo/demo/img-min/index" | - "pages/demo/demo/lottery/big-wheel" | - "pages/demo/demo/lottery/nine-grid" | - "pages/demo/demo/throughout/index"; + "pages/my/index"; } interface RedirectToOptions extends NavigateToOptions {} interface SwitchTabOptions { - url: 'pages/index/index' | 'pages/demo/index' | 'pages/my/index' + url: 'pages/index/index' | 'pages/my/index' } type ReLaunchOptions = NavigateToOptions | SwitchTabOptions