From 75df4f1672dd4acd61661e4048ef1b9dc429ffb2 Mon Sep 17 00:00:00 2001 From: PY Date: Fri, 26 Nov 2021 10:45:04 +0800 Subject: [PATCH] Feat/updateconfig (#2) * feat: update eslint config and npmpkg * feat: update color config * feat: eslint update * feat: update ts config Co-authored-by: yue.peng Co-authored-by: pengYYYYY --- .eslintignore | 21 +- globals.d.ts | 3 - index.html | 2 +- src/App.vue | 4 +- src/components/card/index.vue | 4 +- src/components/result/index.vue | 29 +- src/components/thumbnail/index.vue | 3 +- src/components/trend/index.vue | 10 +- src/config/color.ts | 6 +- src/config/routes.ts | 14 +- src/config/style.ts | 2 +- src/interface.ts | 12 +- src/pages/dashboard/base/index.less | 45 +- src/pages/dashboard/base/index.ts | 657 ++++++++++++------ src/pages/dashboard/detail/constants.ts | 17 +- .../detail/advanced/components/Product.vue | 14 +- src/pages/detail/advanced/constants.ts | 15 +- src/pages/detail/advanced/index.vue | 10 +- src/pages/detail/base/index.less | 2 +- src/pages/detail/base/index.vue | 8 +- src/pages/detail/deploy/constants.ts | 10 +- src/pages/detail/secondary/index.less | 2 +- src/pages/detail/secondary/index.vue | 19 +- src/pages/form/base/index.less | 2 +- src/pages/form/step/index.less | 2 +- src/pages/form/step/index.vue | 69 +- src/pages/list/base/constants.ts | 7 +- src/pages/list/filter/index.vue | 3 +- src/pages/login/components/Register.vue | 10 +- src/pages/login/index.vue | 8 +- src/pages/result/fail/index.vue | 18 +- src/pages/result/success/index.vue | 21 +- src/router/index.ts | 5 +- src/store/modules/notification.ts | 11 +- src/store/modules/setting.ts | 53 +- src/style/index.less | 6 +- src/style/{sidenav.less => side-nav.less} | 4 +- src/style/theme/cyan.less | 13 + src/style/theme/dark.less | 164 +++++ src/style/theme/green.less | 14 + src/style/theme/index.less | 17 + src/style/theme/light.less | 169 +++++ src/style/theme/orange.less | 14 + src/style/theme/pink.less | 14 + src/style/theme/purple.less | 14 + src/style/theme/red.less | 14 + src/style/theme/yellow.less | 14 + src/utils/date.ts | 4 +- src/utils/hooks.ts | 53 +- src/utils/request.js | 4 +- tsconfig.json | 7 +- vite.config.ts | 22 - 52 files changed, 1162 insertions(+), 503 deletions(-) rename src/style/{sidenav.less => side-nav.less} (96%) create mode 100644 src/style/theme/cyan.less create mode 100644 src/style/theme/dark.less create mode 100644 src/style/theme/green.less create mode 100644 src/style/theme/index.less create mode 100644 src/style/theme/light.less create mode 100644 src/style/theme/orange.less create mode 100644 src/style/theme/pink.less create mode 100644 src/style/theme/purple.less create mode 100644 src/style/theme/red.less create mode 100644 src/style/theme/yellow.less diff --git a/.eslintignore b/.eslintignore index 9313def..4d7f6e3 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,29 +2,12 @@ snapshot* dist lib es +esm node_modules -common +src/_common static cypress script/test/cypress _site temp* static/ - -examples -site/* -!site/v3.js -src/addon -src/calendar -src/locale -src/upload -src/dropdown -src/transfer -src/time-picker -src/utils -src/textarea -typings -dist -es -lib -types \ No newline at end of file diff --git a/globals.d.ts b/globals.d.ts index e27917c..4533b3f 100644 --- a/globals.d.ts +++ b/globals.d.ts @@ -1,4 +1,3 @@ - // 通用声明 declare type ClassName = { [className: string]: any } | ClassName[] | string; @@ -13,5 +12,3 @@ declare module '*.svg' { const CONTENT: string; export default CONTENT; } - - diff --git a/index.html b/index.html index 24f381e..48b146e 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - TDesign Starter Vue Next + TDesign Vue Next Starter
diff --git a/src/App.vue b/src/App.vue index 59cb0aa..f7d008e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,4 @@ - - + diff --git a/src/components/card/index.vue b/src/components/card/index.vue index adc5bc3..3ffd5b9 100644 --- a/src/components/card/index.vue +++ b/src/components/card/index.vue @@ -90,7 +90,7 @@ export default defineComponent({ &-container { padding: 24px 32px; margin: 16px 0; - background: #fff; + background: @bg-color-container; border-radius: @border-radius; width: 100%; display: flex; @@ -135,7 +135,7 @@ export default defineComponent({ &-describe { font-size: 14px; - color: rgba(0, 0, 0, 0.6); + color: @bg-color-container; line-height: 22px; } diff --git a/src/components/result/index.vue b/src/components/result/index.vue index 1f5bf55..4aece28 100644 --- a/src/components/result/index.vue +++ b/src/components/result/index.vue @@ -1,32 +1,29 @@