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

47 lines
501 B
Markdown
Raw Normal View History

2019-09-21 17:03:05 +08:00
# 禁用
2019-12-02 02:58:45 +08:00
按钮可以被禁用。
2019-09-20 00:27:06 +08:00
```html
<n-button
size="small"
disabled
>
2020-02-03 20:45:06 +08:00
不许点
2019-09-20 00:27:06 +08:00
</n-button>
<n-button
disabled
type="primary"
>
2020-02-03 20:45:06 +08:00
不许点
2019-09-20 00:27:06 +08:00
</n-button>
<n-button
disabled
round
type="primary"
>
2020-02-03 20:45:06 +08:00
不许点
2019-09-20 00:27:06 +08:00
</n-button>
<n-button
disabled
circle
2020-02-03 20:45:06 +08:00
>
<template v-slot:icon>
<md-save />
</template>
</n-button>
```
```js
import mdSave from 'naive-ui/lib/icons/md-save'
export default {
components: {
mdSave
}
}
2019-09-20 00:27:06 +08:00
```
```css
.n-button {
margin: 0 8px 8px 0;
}
2019-12-02 02:58:45 +08:00
```
2020-02-03 20:45:06 +08:00