-
Notifications
You must be signed in to change notification settings - Fork 19
/
pages.config.ts
40 lines (38 loc) · 1.13 KB
/
pages.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { isMpWeixin } from '@uni-helper/uni-env'
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
export default defineUniPages({
// 你也可以定义 pages 字段,它具有最高的优先级。
pages: [
{
path: 'pages/index/index',
},
],
globalStyle: {
navigationBarBackgroundColor: '@navBgColor',
navigationBarTextStyle: '@navTxtStyle',
navigationBarTitleText: 'uniapp-vite-template',
backgroundColor: '@bgColor',
backgroundTextStyle: '@bgTxtStyle',
backgroundColorTop: '@bgColorTop',
backgroundColorBottom: '@bgColorBottom',
navigationStyle: 'custom',
},
tabBar: {
// 支付宝小程序自定义需要特殊处理
custom: true,
color: `rgba(${255}, ${255}, ${255}, ${0})` as any,
selectedColor: `rgba(${255}, ${255}, ${255}, ${0})` as any,
backgroundColor: `rgba(${255}, ${255}, ${255}, ${0})` as any,
borderStyle: isMpWeixin ? 'white' : 'rgb(255,255,255,0)' as any,
list: [
{
pagePath: 'pages/index/index',
text: 'Home',
},
{
pagePath: 'pages/count/count',
text: 'Count',
},
],
},
})