feat: 首页增加Uni Icons 图标并加颜色,验证在小程序中颜色丢失
This commit is contained in:
parent
7ba6f95b53
commit
7ba6c50cf5
155
src/pages.json
155
src/pages.json
@ -29,12 +29,6 @@
|
|||||||
"pagePath": "pages/index/index",
|
"pagePath": "pages/index/index",
|
||||||
"text": "首页"
|
"text": "首页"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"iconPath": "static/tabbar/example.png",
|
|
||||||
"selectedIconPath": "static/tabbar/exampleHL.png",
|
|
||||||
"pagePath": "pages/demo/index",
|
|
||||||
"text": "示例"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"iconPath": "static/tabbar/personal.png",
|
"iconPath": "static/tabbar/personal.png",
|
||||||
"selectedIconPath": "static/tabbar/personalHL.png",
|
"selectedIconPath": "static/tabbar/personalHL.png",
|
||||||
@ -51,10 +45,6 @@
|
|||||||
"navigationBarTitleText": "首页"
|
"navigationBarTitleText": "首页"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/demo/index",
|
|
||||||
"type": "page"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/login/index",
|
"path": "pages/login/index",
|
||||||
"type": "page",
|
"type": "page",
|
||||||
@ -68,151 +58,6 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的"
|
"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": []
|
"subPackages": []
|
||||||
|
@ -13,6 +13,12 @@
|
|||||||
<view class="mt-8">
|
<view class="mt-8">
|
||||||
<view class="text-center mt-4 font-bold">开箱即用的 uniapp+vue3+ts 模板</view>
|
<view class="text-center mt-4 font-bold">开箱即用的 uniapp+vue3+ts 模板</view>
|
||||||
<!-- <view class="text-center mt-4 font-bold">欢迎使用 </view> -->
|
<!-- <view class="text-center mt-4 font-bold">欢迎使用 </view> -->
|
||||||
|
<view class="mt-8">果然UniIcons 在 微信小程序下颜色丢失</view>
|
||||||
|
<uni-icons type="contact" size="30"></uni-icons>
|
||||||
|
<uni-icons type="contact" size="30" color="red"></uni-icons>
|
||||||
|
<view mt-4>UnoCSS Icons就正常,以后还是多用UnoCSS Icons 吧</view>
|
||||||
|
<view class="i-carbon-car" />
|
||||||
|
<view class="i-carbon-car text-red" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
23
uni-pages.d.ts
vendored
23
uni-pages.d.ts
vendored
@ -5,32 +5,13 @@
|
|||||||
|
|
||||||
interface NavigateToOptions {
|
interface NavigateToOptions {
|
||||||
url: "pages/index/index" |
|
url: "pages/index/index" |
|
||||||
"pages/demo/index" |
|
|
||||||
"pages/login/index" |
|
"pages/login/index" |
|
||||||
"pages/my/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";
|
|
||||||
}
|
}
|
||||||
interface RedirectToOptions extends NavigateToOptions {}
|
interface RedirectToOptions extends NavigateToOptions {}
|
||||||
|
|
||||||
interface SwitchTabOptions {
|
interface SwitchTabOptions {
|
||||||
url: 'pages/index/index' | 'pages/demo/index' | 'pages/my/index'
|
url: 'pages/index/index' | 'pages/my/index'
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions
|
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user