37 lines
668 B
Markdown
37 lines
668 B
Markdown
<cn>
|
|
#### 禁用
|
|
选择框的不可用状态。
|
|
</cn>
|
|
|
|
<us>
|
|
#### Disabled
|
|
A disabled state of the `DatePicker`.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div>
|
|
<a-date-picker :defaultValue="moment('2015-06-06', dateFormat)" disabled />
|
|
<br />
|
|
<a-month-picker :defaultValue="moment('2015-06', 'YYYY-MM')" disabled />
|
|
<br />
|
|
<a-range-picker
|
|
:defaultValue="[moment('2015-06-06', dateFormat), moment('2015-06-06', dateFormat)]"
|
|
disabled
|
|
/>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import moment from 'moment';
|
|
export default {
|
|
data() {
|
|
this.dateFormat = 'YYYY-MM-DD';
|
|
return {};
|
|
},
|
|
methods: {
|
|
moment,
|
|
},
|
|
};
|
|
</script>
|
|
```
|