From 68f6fd516b277a64339ad9c2994a41ffb095db18 Mon Sep 17 00:00:00 2001 From: chenxi-20 <76168465+chenxi-20@users.noreply.github.com> Date: Fri, 29 Dec 2023 10:08:03 +0800 Subject: [PATCH] feat(alert): Add unlimited theme switching function to adapt to alert unlimited themes (#1229) --- examples/docs/newsrc/pc.vue | 7 + examples/docs/newsrc/uses/useTheme.js | 5 +- .../app/alert/basic-usage-composition-api.vue | 1 + .../sites/demos/pc/app/alert/basic-usage.vue | 1 + .../pc/app/alert/icon-composition-api.vue | 5 +- examples/sites/demos/pc/app/alert/icon.vue | 7 +- .../sites/demos/pc/app/alert/webdoc/alert.js | 12 +- packages/theme/src/alert/index.less | 13 + packages/theme/src/alert/vars.less | 13 + packages/theme/src/theme/index.js | 4 +- .../theme/infinity-theme/component-vars.js | 382 ++++++++++++++ .../theme/src/theme/infinity-theme/index.js | 481 +++++------------- 12 files changed, 559 insertions(+), 372 deletions(-) create mode 100644 packages/theme/src/theme/infinity-theme/component-vars.js diff --git a/examples/docs/newsrc/pc.vue b/examples/docs/newsrc/pc.vue index 649b6f400..8aa93a6d8 100644 --- a/examples/docs/newsrc/pc.vue +++ b/examples/docs/newsrc/pc.vue @@ -110,6 +110,13 @@ > Default Theme + + Infinity Theme + { diff --git a/examples/sites/demos/pc/app/alert/basic-usage-composition-api.vue b/examples/sites/demos/pc/app/alert/basic-usage-composition-api.vue index 4c413f739..035a9f569 100644 --- a/examples/sites/demos/pc/app/alert/basic-usage-composition-api.vue +++ b/examples/sites/demos/pc/app/alert/basic-usage-composition-api.vue @@ -6,6 +6,7 @@ + diff --git a/examples/sites/demos/pc/app/alert/basic-usage.vue b/examples/sites/demos/pc/app/alert/basic-usage.vue index 500fb2179..4f553868a 100644 --- a/examples/sites/demos/pc/app/alert/basic-usage.vue +++ b/examples/sites/demos/pc/app/alert/basic-usage.vue @@ -6,6 +6,7 @@ + diff --git a/examples/sites/demos/pc/app/alert/icon-composition-api.vue b/examples/sites/demos/pc/app/alert/icon-composition-api.vue index 7b2102eba..e472bbaaf 100644 --- a/examples/sites/demos/pc/app/alert/icon-composition-api.vue +++ b/examples/sites/demos/pc/app/alert/icon-composition-api.vue @@ -3,14 +3,15 @@ - + diff --git a/examples/sites/demos/pc/app/alert/icon.vue b/examples/sites/demos/pc/app/alert/icon.vue index 6ad5c678b..39143937a 100644 --- a/examples/sites/demos/pc/app/alert/icon.vue +++ b/examples/sites/demos/pc/app/alert/icon.vue @@ -3,14 +3,14 @@ - +