naive-ui/demo/documentation/components/button/zhCN/disabled.md
2020-02-03 20:45:06 +08:00

501 B

禁用

按钮可以被禁用。

<n-button
  size="small"
  disabled
>
  不许点
</n-button>
<n-button
  disabled
  type="primary"
>
  不许点
</n-button>
<n-button
  disabled
  round
  type="primary"
>
  不许点
</n-button>
<n-button
  disabled
  circle
>
  <template v-slot:icon>
    <md-save />
  </template>
</n-button>
import mdSave from 'naive-ui/lib/icons/md-save'

export default {
  components: {
    mdSave
  }
}
.n-button {
  margin: 0 8px 8px 0;
}