2024-01-04 09:53:17 +08:00
|
|
|
|
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
|
|
|
|
|
|
|
|
|
|
export default defineUniPages({
|
|
|
|
|
globalStyle: {
|
2024-01-04 10:42:11 +08:00
|
|
|
|
navigationStyle: 'default',
|
2024-01-04 09:53:17 +08:00
|
|
|
|
navigationBarTitleText: 'vue3-uniapp',
|
2024-01-04 10:42:11 +08:00
|
|
|
|
navigationBarBackgroundColor: '#f8f8f8',
|
|
|
|
|
navigationBarTextStyle: 'black',
|
2024-01-04 09:53:17 +08:00
|
|
|
|
},
|
|
|
|
|
easycom: {
|
|
|
|
|
autoscan: true,
|
|
|
|
|
custom: {
|
|
|
|
|
'^fly-(.*)': '@/components/fly-$1/fly-$1.vue',
|
|
|
|
|
'^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tabBar: {
|
|
|
|
|
color: '#7A7E83',
|
|
|
|
|
selectedColor: '#00f',
|
|
|
|
|
backgroundColor: '#ffffff',
|
|
|
|
|
borderStyle: 'black',
|
|
|
|
|
height: '50px',
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
iconWidth: '24px',
|
|
|
|
|
spacing: '3px',
|
|
|
|
|
list: [
|
|
|
|
|
{
|
|
|
|
|
pagePath: 'pages/index/index',
|
|
|
|
|
iconPath: 'static/tab-icons/extui.png',
|
|
|
|
|
selectedIconPath: 'static/tab-icons/extuiHL.png',
|
|
|
|
|
text: '首页',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
pagePath: 'pages/throughout/index',
|
|
|
|
|
iconPath: 'static/tab-icons/template.png',
|
|
|
|
|
selectedIconPath: 'static/tab-icons/templateHL.png',
|
|
|
|
|
text: '通屏',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
// 你也可以定义 pages 字段,它具有最高的优先级。
|
|
|
|
|
pages: [],
|
2024-01-04 10:20:55 +08:00
|
|
|
|
/**
|
|
|
|
|
* exclude page
|
|
|
|
|
* 排除的页面,相对于 dir 和 subPackages,通常把这些目录里面的components里面的文件排除掉
|
|
|
|
|
* @default []
|
|
|
|
|
*/
|
2024-01-04 11:30:42 +08:00
|
|
|
|
exclude: ['**/components/**/**.*'],
|
2024-01-04 09:53:17 +08:00
|
|
|
|
/**
|
|
|
|
|
* subPackages 扫描的目录,例如:src/pages-sub
|
|
|
|
|
* @type SubPackage[] | undefined
|
|
|
|
|
*/
|
|
|
|
|
subPackages: undefined,
|
|
|
|
|
})
|