feat(Sku): modify default min year of sku date picker (#6879)

Co-authored-by: liuhaihong <liuhaihong@youzan.com>
This commit is contained in:
landluck 2020-07-27 11:50:58 +08:00 committed by chenjiahan
parent 56519228e8
commit dc21738f53

View File

@ -27,6 +27,7 @@ export default createComponent({
return {
showDatePicker: false,
currentDate: this.type === 'time' ? '' : new Date(),
minDate: new Date(new Date().getFullYear() - 60, 0, 1),
};
},
@ -94,6 +95,7 @@ export default createComponent({
type={this.type}
title={this.title}
value={this.currentDate}
minDate={this.minDate}
formatter={this.formatter}
onCancel={this.onCancel}
onConfirm={this.onConfirm}