import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'default',
    navigationBarTitleText: 'unibest',
    navigationBarBackgroundColor: '#f8f8f8',
    navigationBarTextStyle: 'black',
    backgroundColor: '#FFFFFF',
  },
  easycom: {
    autoscan: true,
    custom: {
      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
      '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
        'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },
  tabBar: {
    color: '#222222',
    selectedColor: '#000000',
    backgroundColor: '#ffffff',
    borderStyle: 'black',
    height: '50px',
    fontSize: '10px',
    iconWidth: '20px',
    spacing: '3px',
    list: [
      {
        iconPath: 'static/tabbar/edit.svg',
        selectedIconPath: 'static/tabbar/editHL.svg',
        pagePath: 'pages/index/index',
        text: '报名',
      },
      {
        iconPath: 'static/tabbar/document.svg',
        selectedIconPath: 'static/tabbar/documentHL.svg',
        pagePath: 'pages/fate/fate',
        text: '考试',
      },
    ],
  },
})
