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 @@ - +