From 5ca8e45eb791e0713e7d1fcb94635a6f85a1a84d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 28 Jan 2021 16:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90pager=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/avatar/index.wc | 2 +- src/badge/index.wc | 2 +- src/form/checkbox-item.wc | 2 +- src/form/progress.wc | 2 +- src/form/radio-item.wc | 2 +- src/form/star.wc | 2 +- src/form/switch.wc | 2 +- src/icon/index.wc | 2 +- src/pager/index.wc | 295 ++++++++++++++++++++++++-------------- src/slider/index.wc | 2 +- 10 files changed, 195 insertions(+), 118 deletions(-) diff --git a/src/avatar/index.wc b/src/avatar/index.wc index 0256549..e79d27f 100644 --- a/src/avatar/index.wc +++ b/src/avatar/index.wc @@ -51,7 +51,7 @@ :host([type='success']) { background: #58d68d; } -:host([color='orange']) { +:host([type='warning']) { background: #ffb618; } :host([type='inverse']) { diff --git a/src/badge/index.wc b/src/badge/index.wc index 57db8aa..643c205 100644 --- a/src/badge/index.wc +++ b/src/badge/index.wc @@ -42,7 +42,7 @@ :host([type='info']) .dot { background: var(--color-blue-1); } -:host([color='orange']) .dot { +:host([type='warning']) .dot { background: var(--color-orange-1); } :host([color='purple']) .dot { diff --git a/src/form/checkbox-item.wc b/src/form/checkbox-item.wc index a22e3b9..dc1e87b 100644 --- a/src/form/checkbox-item.wc +++ b/src/form/checkbox-item.wc @@ -109,7 +109,7 @@ } } -:host([color='orange']) label.checked { +:host([type='warning']) label.checked { color: var(--color-orange-1); .dot { border-color: var(--color-orange-1); diff --git a/src/form/progress.wc b/src/form/progress.wc index 64b473f..3f22d36 100644 --- a/src/form/progress.wc +++ b/src/form/progress.wc @@ -47,7 +47,7 @@ background: var(--color-green-1); } -:host([color='orange']) label span { +:host([type='warning']) label span { background: var(--color-orange-1); } diff --git a/src/form/radio-item.wc b/src/form/radio-item.wc index c070426..31a5002 100644 --- a/src/form/radio-item.wc +++ b/src/form/radio-item.wc @@ -147,7 +147,7 @@ } } -:host([color='orange']) label.checked { +:host([type='warning']) label.checked { color: var(--color-orange-1); .dot { border-color: var(--color-orange-1); diff --git a/src/form/star.wc b/src/form/star.wc index 0d186d4..c42c4c4 100644 --- a/src/form/star.wc +++ b/src/form/star.wc @@ -72,7 +72,7 @@ label { :host([color='purple']) label span { color: var(--color-purple-1); } -:host([color='orange']) label span { +:host([type='warning']) label span { color: var(--color-orange-1); } diff --git a/src/form/switch.wc b/src/form/switch.wc index a1273ac..a8bdcad 100644 --- a/src/form/switch.wc +++ b/src/form/switch.wc @@ -98,7 +98,7 @@ background: var(--color-teal-1); } -:host([color='orange']) label.checked { +:host([type='warning']) label.checked { background: var(--color-orange-1); } diff --git a/src/icon/index.wc b/src/icon/index.wc index 0b97f69..54678fa 100644 --- a/src/icon/index.wc +++ b/src/icon/index.wc @@ -54,7 +54,7 @@ color: var(--color-teal-1); } -:host([color='orange']) { +:host([type='warning']) { color: var(--color-orange-1); } diff --git a/src/pager/index.wc b/src/pager/index.wc index 62ff71f..3ac282a 100644 --- a/src/pager/index.wc +++ b/src/pager/index.wc @@ -1,93 +1,74 @@