From c1638c8d1df350c9a68cd841856eff1e47d07cca Mon Sep 17 00:00:00 2001 From: Rock070 Date: Sun, 17 Sep 2023 03:19:08 +0800 Subject: [PATCH] feat(noti): type --- .../core/src/components/AtomicProgress.vue | 9 ++--- packages/core/src/components/Noti.vue | 38 ++++++++++++++++++- playground/src/App.vue | 26 +++++++++++-- 3 files changed, 63 insertions(+), 10 deletions(-) diff --git a/packages/core/src/components/AtomicProgress.vue b/packages/core/src/components/AtomicProgress.vue index 546704a..072b871 100644 --- a/packages/core/src/components/AtomicProgress.vue +++ b/packages/core/src/components/AtomicProgress.vue @@ -33,14 +33,13 @@ withDefaults(defineProps(), { border-radius: 10px; height: 4px; overflow: hidden; - } -.vue3-noti__progress::-webkit-progress-value { - background-color: #0235E6 +.vue3-noti__progress::-webkit-progress-bar { + background-color: var(--progress-bg-color) } -.vue3-noti__progress::-webkit-progress-bar { - background: gray; +.vue3-noti__progress::-webkit-progress-value { + background: var(--progress-value-color); } diff --git a/packages/core/src/components/Noti.vue b/packages/core/src/components/Noti.vue index 43c3e2b..0553bff 100644 --- a/packages/core/src/components/Noti.vue +++ b/packages/core/src/components/Noti.vue @@ -179,8 +179,23 @@ bus.on(publishEvent)