diff --git a/commitlint.config.js b/commitlint.config.js index 422b194..405e185 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1 +1,2 @@ +// commit-lint config module.exports = { extends: ['@commitlint/config-conventional'] }; diff --git a/src/config/color.ts b/src/config/color.ts index ce496f8..a497942 100644 --- a/src/config/color.ts +++ b/src/config/color.ts @@ -159,7 +159,7 @@ export function getBrandColor(type: string): ColorToken { export function getColorList(colorArray: [ColorToken]): string[] { const pureColorList = []; - colorArray.map((colorToken) => Object.keys(colorToken).map((key) => pureColorList.push(colorToken[key]))); + colorArray.map(colorToken => Object.keys(colorToken).map(key => pureColorList.push(colorToken[key]))); return pureColorList; } diff --git a/src/config/global.ts b/src/config/global.ts index bd163ff..7dab271 100644 --- a/src/config/global.ts +++ b/src/config/global.ts @@ -1,6 +1,5 @@ export const PREFIX = 'tdesign-pro'; export const THEME = 'light'; -// 登录方式设定,authenticationMethod取值有:smartProxy(走智能网关内网登录,要求.oa.co../.woa.co.. 等域名,且要求域名申请接入智能网关) // customize(自定义登录,外网域名,统一重定向到登录页面) // export const authenticationMethod = 'smartProxy'; export const AUTHENTICATION_METHOD = 'customize'; diff --git a/src/pages/dashboard/detail/constants.ts b/src/pages/dashboard/detail/constants.ts index 536ccd6..7b49e0d 100644 --- a/src/pages/dashboard/detail/constants.ts +++ b/src/pages/dashboard/detail/constants.ts @@ -2,29 +2,29 @@ export const PANE_LIST_DATA = [ { title: '总申请数(次)', count: 1126, - percent: 10 + percent: 10, }, { title: '供应商数量(个)', count: 1126, - percent: -13 + percent: -13, }, { title: '采购商品品类(类)', count: 1126, - percent: 10 + percent: 10, }, { title: '申请人数量(人)', count: 1126, - percent: 44 + percent: 44, }, { title: '申请完成率(%)', count: 1126, - percent: 70 + percent: 70, }, { title: '到货及时率(%)', count: 78, - percent: 16 - } -] + percent: 16, + }, +]; export const PRODUCT_LIST = [ { @@ -41,4 +41,4 @@ export const PRODUCT_LIST = [ name: 'SSL证书', type: 4, }, -] \ No newline at end of file +]; diff --git a/src/pages/detail/advanced/constants.ts b/src/pages/detail/advanced/constants.ts index 704673b..f44e5b6 100644 --- a/src/pages/detail/advanced/constants.ts +++ b/src/pages/detail/advanced/constants.ts @@ -139,7 +139,7 @@ export const PRODUCT_LIST = [ memory: 'RAM 16GB', info: '最高可选配 16GB 内存 · 最高可选配 2TB 存储设备 电池续航最长达 18 小时', use: 1420, - stock: 1500 + stock: 1500, }, { name: 'Surface Laptop Go', @@ -149,6 +149,6 @@ export const PRODUCT_LIST = [ memory: 'RAM 16GB', info: '常规使用 Surface,续航时间最长可达13小时 随时伴您工作', use: 120, - stock: 2000 - } -] \ No newline at end of file + stock: 2000, + }, +]; diff --git a/src/pages/detail/base/constants.ts b/src/pages/detail/base/constants.ts index c320ff0..81dce48 100644 --- a/src/pages/detail/base/constants.ts +++ b/src/pages/detail/base/constants.ts @@ -75,4 +75,4 @@ export const BASE_INFO_DATA = [ value: '2020-12-22 10:00:00', type: null, }, -] \ No newline at end of file +]; diff --git a/src/pages/detail/deploy/constants.ts b/src/pages/detail/deploy/constants.ts index 4ea94b2..c6db673 100644 --- a/src/pages/detail/deploy/constants.ts +++ b/src/pages/detail/deploy/constants.ts @@ -112,4 +112,4 @@ export const TABLE_COLUMNS = [ colKey: 'op', title: '操作', }, -]; \ No newline at end of file +]; diff --git a/src/pages/form/base/constants.ts b/src/pages/form/base/constants.ts index 3265edd..b28e994 100644 --- a/src/pages/form/base/constants.ts +++ b/src/pages/form/base/constants.ts @@ -8,7 +8,7 @@ export const FORM_RULES = { signDate: [{ required: true, message: '请选择日期', type: 'error' }], startDate: [{ required: true, message: '请选择日期', type: 'error' }], endDate: [{ required: true, message: '请选择日期', type: 'error' }], -} +}; export const INITIAL_DATA = { name: '', @@ -20,23 +20,23 @@ export const INITIAL_DATA = { endDate: '', payment: '1', amount: 0, - comment: '' + comment: '', }; export const TYPE_OPTIONS = [ { label: '类型A', value: '1' }, { label: '类型B', value: '2' }, { label: '类型C', value: '3' }, -] +]; export const PARTY_A_OPTIONS = [ { label: '公司A', value: '1' }, { label: '公司B', value: '2' }, { label: '公司C', value: '3' }, -] +]; export const PARTY_B_OPTIONS = [ { label: '公司A', value: '1' }, { label: '公司B', value: '2' }, { label: '公司C', value: '3' }, -] +]; diff --git a/src/pages/form/step/constants.ts b/src/pages/form/step/constants.ts index be20baf..cd5245b 100644 --- a/src/pages/form/step/constants.ts +++ b/src/pages/form/step/constants.ts @@ -50,4 +50,4 @@ export const INITIAL_DATA3 = { mobileNum: '', deliveryAddress: '', fullAddress: '', -}; \ No newline at end of file +}; diff --git a/src/pages/list/base/constants.ts b/src/pages/list/base/constants.ts index 2b54b5c..b0bb5fc 100644 --- a/src/pages/list/base/constants.ts +++ b/src/pages/list/base/constants.ts @@ -45,4 +45,4 @@ export const COLUMNS = [ colKey: 'op', title: '操作', }, -] \ No newline at end of file +]; diff --git a/src/pages/list/tree/constants.ts b/src/pages/list/tree/constants.ts index 81b9cb3..33dc05c 100644 --- a/src/pages/list/tree/constants.ts +++ b/src/pages/list/tree/constants.ts @@ -83,4 +83,4 @@ export const TREE_DATA = [ label: '湖北', value: 4, }, -] \ No newline at end of file +]; diff --git a/stylelint.config.js b/stylelint.config.js index 1ac648e..ea4fde2 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -1,3 +1,4 @@ +// style-lint config module.exports = { defaultSeverity: 'error', extends: ['stylelint-config-airbnb'], diff --git a/vite.config.ts b/vite.config.ts index 16808ba..b34f8f6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,7 +3,7 @@ import { viteMockServe } from 'vite-plugin-mock'; import { viteThemePlugin } from 'vite-plugin-theme'; import createVuePlugin from '@vitejs/plugin-vue'; import vueJsx from '@vitejs/plugin-vue-jsx'; -import svgLoader from 'vite-svg-loader' +import svgLoader from 'vite-svg-loader'; // import HttpProxyAgent from 'http-proxy-agent'; import path from 'path';