2018-03-15 13:40:34 +00:00
|
|
|
|
2018-03-18 14:05:55 +00:00
|
|
|
<cn>
|
|
|
|
#### 禁用
|
2018-03-15 13:40:34 +00:00
|
|
|
选择框的不可用状态。
|
2018-03-18 14:05:55 +00:00
|
|
|
</cn>
|
2018-03-15 13:40:34 +00:00
|
|
|
|
2018-03-18 14:05:55 +00:00
|
|
|
<us>
|
|
|
|
#### Disabled
|
2018-03-15 13:40:34 +00:00
|
|
|
A disabled state of the `DatePicker`.
|
2018-03-18 14:05:55 +00:00
|
|
|
</us>
|
2018-03-15 13:40:34 +00:00
|
|
|
|
2018-03-18 14:05:55 +00:00
|
|
|
```html
|
|
|
|
<template>
|
2018-03-15 13:40:34 +00:00
|
|
|
<div>
|
2018-03-18 14:05:55 +00:00
|
|
|
<a-date-picker :defaultValue="moment('2015-06-06', dateFormat)" disabled />
|
2018-03-15 13:40:34 +00:00
|
|
|
<br />
|
2018-03-18 14:05:55 +00:00
|
|
|
<a-month-picker :defaultValue="moment('2015-06', 'YYYY-MM')" disabled />
|
2018-03-15 13:40:34 +00:00
|
|
|
<br />
|
2018-03-18 14:05:55 +00:00
|
|
|
<a-range-picker
|
|
|
|
:defaultValue="[moment('2015-06-06', dateFormat), moment('2015-06-06', dateFormat)]"
|
2018-03-15 13:40:34 +00:00
|
|
|
disabled
|
|
|
|
/>
|
|
|
|
</div>
|
2018-03-18 14:05:55 +00:00
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import moment from 'moment';
|
|
|
|
export default {
|
|
|
|
data(){
|
|
|
|
this.dateFormat = 'YYYY-MM-DD'
|
|
|
|
return {}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
moment,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
```
|