fix(pages): fix globalStyle 配置错误
This commit is contained in:
parent
3e0899107e
commit
8b5d543fc9
@ -2,8 +2,10 @@ import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
|
|||||||
|
|
||||||
export default defineUniPages({
|
export default defineUniPages({
|
||||||
globalStyle: {
|
globalStyle: {
|
||||||
navigationStyle: 'white',
|
navigationStyle: 'default',
|
||||||
navigationBarTitleText: 'vue3-uniapp',
|
navigationBarTitleText: 'vue3-uniapp',
|
||||||
|
navigationBarBackgroundColor: '#f8f8f8',
|
||||||
|
navigationBarTextStyle: 'black',
|
||||||
},
|
},
|
||||||
easycom: {
|
easycom: {
|
||||||
autoscan: true,
|
autoscan: true,
|
||||||
@ -43,7 +45,7 @@ export default defineUniPages({
|
|||||||
* 排除的页面,相对于 dir 和 subPackages,通常把这些目录里面的components里面的文件排除掉
|
* 排除的页面,相对于 dir 和 subPackages,通常把这些目录里面的components里面的文件排除掉
|
||||||
* @default []
|
* @default []
|
||||||
*/
|
*/
|
||||||
exclude: ['**/components/**/**.*', '**/components/**.*', 'pages/index/components/demo'],
|
exclude: ['components/**/**.*', 'components/**.*', 'pages/index/components/demo'],
|
||||||
/**
|
/**
|
||||||
* subPackages 扫描的目录,例如:src/pages-sub
|
* subPackages 扫描的目录,例如:src/pages-sub
|
||||||
* @type SubPackage[] | undefined
|
* @type SubPackage[] | undefined
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationStyle": "white",
|
"navigationStyle": "default",
|
||||||
"navigationBarTitleText": "vue3-uniapp"
|
"navigationBarTitleText": "vue3-uniapp",
|
||||||
|
"navigationBarBackgroundColor": "#f8f8f8",
|
||||||
|
"navigationBarTextStyle": "black"
|
||||||
},
|
},
|
||||||
"easycom": {
|
"easycom": {
|
||||||
"autoscan": true,
|
"autoscan": true,
|
||||||
@ -68,6 +70,6 @@
|
|||||||
"type": "page"
|
"type": "page"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"exclude": ["**/components/**/**.*", "**/components/**.*", "pages/index/components/demo"],
|
"exclude": ["components/**/**.*", "components/**.*", "pages/index/components/demo"],
|
||||||
"subPackages": []
|
"subPackages": []
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user