You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/date-picker/demo/disabled.md

38 lines
644 B

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