naive-ui/demo/documentation/components/button/zhCN/shape.md

26 lines
382 B
Markdown
Raw Normal View History

2019-09-21 17:03:05 +08:00
# 形状
2019-12-02 02:58:45 +08:00
按钮拥有不同的形状。
2019-09-21 17:03:05 +08:00
```html
2020-02-03 20:45:06 +08:00
<n-button circle>
<template v-slot:icon>
<md-save />
</template>
</n-button>
2019-09-21 17:03:05 +08:00
<n-button type="primary" round>Primary</n-button>
<n-button type="info">Info</n-button>
```
2020-02-03 20:45:06 +08:00
```js
import mdSave from 'naive-ui/lib/icons/md-save'
export default {
components: {
mdSave
}
}
```
2019-09-21 17:03:05 +08:00
```css
.n-button {
margin: 0 8px 8px 0;
}
2019-12-02 02:58:45 +08:00
```