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 @@ - + + + + + + {{ item.desc }} + + + + + + {{ button.label }} + + + + + + + 按钮有加载状态。 + + 开始加载 + 取消加载 + + + + + + - + 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 @@ - + + + + + 基础卡片 + 卡片内容 + + + 卡片有 small、medium、large、huge 尺寸。 + + 卡片内容 + 卡片内容 + 卡片内容 + 卡片内容 + + + + + content 和 footer 可以被 hard 或 soft 分段,action 可以被分段。分段分割线会在区域的上方出现。 + + + #header-extra + 卡片内容 + #footer + #action + + + + + - +
{{ item.desc }}
按钮有加载状态。
基础卡片
卡片有 small、medium、large、huge 尺寸。
+ content 和 footer 可以被 hard 或 soft 分段,action 可以被分段。分段分割线会在区域的上方出现。 +