From 61abcdd28e31d8308fc689a43751c1e516a00c78 Mon Sep 17 00:00:00 2001 From: yuyang Date: Tue, 10 Jan 2023 15:41:24 +0800 Subject: [PATCH] feat(color): remove built-in theme and get palette from tvision color (#392) * feat(color): remove built-in theme and get all palette from tvision color * feat: sync color to charts * chore: move color utils to utils dir * fix: dynamic theme color init * feat: card with default nobordered --- package.json | 2 +- src/components/color/index.vue | 11 +- src/components/product-card/index.vue | 2 +- src/config/color.ts | 210 +----------------- src/config/style.ts | 3 +- src/layouts/setting.vue | 32 +-- .../dashboard/base/components/MiddleChart.vue | 4 +- .../base/components/OutputOverview.vue | 2 +- .../dashboard/base/components/RankList.vue | 4 +- .../dashboard/base/components/TopPanel.vue | 1 + src/pages/dashboard/detail/index.vue | 6 +- src/pages/detail/advanced/index.vue | 8 +- src/pages/detail/base/index.vue | 4 +- src/pages/detail/deploy/index.vue | 6 +- src/pages/list/base/index.vue | 2 +- src/pages/user/index.vue | 10 +- src/store/modules/setting.ts | 16 +- src/style/index.less | 2 +- src/style/theme/cyan.less | 27 --- src/style/theme/default.less | 26 --- src/style/theme/green.less | 26 --- src/style/theme/index.less | 15 -- src/style/theme/orange.less | 28 --- src/style/theme/pink.less | 27 --- src/style/theme/purple.less | 27 --- src/style/theme/red.less | 27 --- src/style/theme/yellow.less | 27 --- src/utils/color.ts | 100 ++++++--- 28 files changed, 147 insertions(+), 508 deletions(-) delete mode 100644 src/style/theme/cyan.less delete mode 100644 src/style/theme/default.less delete mode 100644 src/style/theme/green.less delete mode 100644 src/style/theme/index.less delete mode 100644 src/style/theme/orange.less delete mode 100644 src/style/theme/pink.less delete mode 100644 src/style/theme/purple.less delete mode 100644 src/style/theme/red.less delete mode 100644 src/style/theme/yellow.less diff --git a/package.json b/package.json index 92cb3d6..a9fb3ad 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "qs": "^6.10.5", "tdesign-icons-vue-next": "^0.1.7", "tdesign-vue-next": "^1.0.0", - "tvision-color": "^1.3.1", + "tvision-color": "^1.5.0", "vue": "^3.2.31", "vue-clipboard3": "^2.0.0", "vue-router": "~4.1.5" diff --git a/src/components/color/index.vue b/src/components/color/index.vue index 49069e7..98d241c 100644 --- a/src/components/color/index.vue +++ b/src/components/color/index.vue @@ -3,10 +3,7 @@ + diff --git a/src/components/product-card/index.vue b/src/components/product-card/index.vue index 429f739..755734e 100644 --- a/src/components/product-card/index.vue +++ b/src/components/product-card/index.vue @@ -1,5 +1,5 @@