AntDesign <a-date-picker>
只能选择今天之前日期
<a-date-picker
class="project-input"
style=" 100%;"
v-decorator="['progressTime', { rules: [{ required: true, message: '请选择更新时间!' }] }]"
placeholder="请选择更新时间"
:disabledDate="disabledDate"
/>
methods里面:
disabledDate(current) {
return current > moment().subtract(0, 'day')//今天之后的年月日不可选,不包括今天
},