2018-01-24 14:53:45 +00:00
|
|
|
|
|
|
|
<cn>
|
|
|
|
#### 不可用状态
|
|
|
|
添加 `disabled` 属性即可让按钮处于不可用状态,同时按钮样式也会改变。
|
|
|
|
</cn>
|
|
|
|
|
|
|
|
<us>
|
|
|
|
#### Disabled
|
|
|
|
To mark a button as disabled, add the `disabled` property to the `Button`.
|
|
|
|
</us>
|
|
|
|
|
|
|
|
```html
|
2017-11-03 10:46:18 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2018-01-23 10:55:39 +00:00
|
|
|
<a-button type="primary">Primary</a-button>
|
|
|
|
<a-button type="primary" disabled>Primary(disabled)</a-button>
|
2017-11-03 10:46:18 +00:00
|
|
|
<br />
|
2018-01-23 10:55:39 +00:00
|
|
|
<a-button>Default</a-button>
|
|
|
|
<a-button disabled>Default(disabled)</a-button>
|
2017-11-03 10:46:18 +00:00
|
|
|
<br />
|
2018-01-23 10:55:39 +00:00
|
|
|
<a-button type="dashed">Dashed</a-button>
|
|
|
|
<a-button type="dashed" disabled>Dashed(disabled)</a-button>
|
2018-09-05 13:28:54 +00:00
|
|
|
<div :style="{ padding: '8px 8px 0 8px', background: 'rgb(190, 200, 200)' }">
|
|
|
|
<a-button ghost>Ghost</a-button>
|
|
|
|
<a-button ghost disabled>Ghost(disabled)</a-button>
|
|
|
|
</div>
|
2017-11-03 10:46:18 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2018-01-24 14:53:45 +00:00
|
|
|
```
|