From 86c8bd3a8700ab5065c6089b50c88c7005463bf3 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 24 Jan 2022 19:02:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8A=98=E5=8F=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/card.wc | 21 ++++--- src/base/collapse-item.wc | 127 ++++++++++++++++++++++++++++++++++++++ src/base/collapse.wc | 58 +++++++++++++++++ src/base/index.js | 3 + src/index.js | 3 +- 5 files changed, 200 insertions(+), 12 deletions(-) create mode 100644 src/base/collapse-item.wc create mode 100644 src/base/collapse.wc create mode 100644 src/base/index.js diff --git a/src/base/card.wc b/src/base/card.wc index 1ae23f0..26dc356 100644 --- a/src/base/card.wc +++ b/src/base/card.wc @@ -12,16 +12,6 @@ border-radius: 3px; } -.header { - display: none; - padding: 8px 16px; - border-bottom: 1px solid var(--color-plain-2); - font-size: 16px; - - &.show { - display: block; - } -} .card { display: flex; flex-direction: column; @@ -34,6 +24,17 @@ transition: box-shadow 0.3s ease-in-out; } +.header { + display: none; + padding: 8px 16px; + border-bottom: 1px solid var(--color-plain-2); + font-size: 16px; + + &.show { + display: block; + } +} + :host([shadow='hover']) { .card { box-shadow: none; diff --git a/src/base/collapse-item.wc b/src/base/collapse-item.wc new file mode 100644 index 0000000..30a68ce --- /dev/null +++ b/src/base/collapse-item.wc @@ -0,0 +1,127 @@ + + + + + diff --git a/src/base/collapse.wc b/src/base/collapse.wc new file mode 100644 index 0000000..7e4eade --- /dev/null +++ b/src/base/collapse.wc @@ -0,0 +1,58 @@ + + + + + diff --git a/src/base/index.js b/src/base/index.js new file mode 100644 index 0000000..afdc26f --- /dev/null +++ b/src/base/index.js @@ -0,0 +1,3 @@ +import './row' +import './card' +import './collapse' diff --git a/src/index.js b/src/index.js index dfded9f..2b86224 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,6 @@ import './avatar/index' import './badge/index' -import './base/row' -import './base/card' +import './base/index' import './code/index' import './color/index' import './drag/index'