From bdc39aff1b05845cbcfcab8d40620d7b8ba52d13 Mon Sep 17 00:00:00 2001 From: Soybean Date: Sun, 28 Nov 2021 15:29:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(projects):=20=E6=96=B0=E5=A2=9E=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E9=A1=B5=E9=9D=A2=EF=BC=9A=E6=8C=89=E9=92=AE=E3=80=81?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/plugins/iconify.ts | 2 +- src/styles/scss/global.scss | 2 + src/styles/scss/naive.scss | 6 + src/views/component/button/index.vue | 574 ++++++++++++++++++++++++++- src/views/component/card/index.vue | 41 +- 5 files changed, 620 insertions(+), 5 deletions(-) create mode 100644 src/styles/scss/naive.scss diff --git a/build/plugins/iconify.ts b/build/plugins/iconify.ts index 5f985df5..34eae366 100644 --- a/build/plugins/iconify.ts +++ b/build/plugins/iconify.ts @@ -6,5 +6,5 @@ export default [ Components({ resolvers: [IconsResolver({ componentPrefix: 'icon' })] }), - Icons() + Icons({ scale: 1, defaultClass: 'inline-block' }) ]; diff --git a/src/styles/scss/global.scss b/src/styles/scss/global.scss index 52a0b637..c3ecc180 100644 --- a/src/styles/scss/global.scss +++ b/src/styles/scss/global.scss @@ -1,3 +1,5 @@ +@import './naive.scss'; + @mixin scrollbar($size:8px, $color:#d9d9d9) { &::-webkit-scrollbar-thumb { background-color: $color; diff --git a/src/styles/scss/naive.scss b/src/styles/scss/naive.scss new file mode 100644 index 00000000..bb31b645 --- /dev/null +++ b/src/styles/scss/naive.scss @@ -0,0 +1,6 @@ +.n-icon-slot { + width: auto !important; + height: auto !important; + justify-content: center; + align-items: center; +} diff --git a/src/views/component/button/index.vue b/src/views/component/button/index.vue index a49ec556..20ec07a7 100644 --- a/src/views/component/button/index.vue +++ b/src/views/component/button/index.vue @@ -1,6 +1,576 @@ - + diff --git a/src/views/component/card/index.vue b/src/views/component/card/index.vue index a49ec556..8270a753 100644 --- a/src/views/component/card/index.vue +++ b/src/views/component/card/index.vue @@ -1,6 +1,43 @@ - +