mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(Sku): modify default min year of sku date picker (#6879)
Co-authored-by: liuhaihong <liuhaihong@youzan.com>
This commit is contained in:
parent
56519228e8
commit
dc21738f53
@ -27,6 +27,7 @@ export default createComponent({
|
|||||||
return {
|
return {
|
||||||
showDatePicker: false,
|
showDatePicker: false,
|
||||||
currentDate: this.type === 'time' ? '' : new Date(),
|
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}
|
type={this.type}
|
||||||
title={this.title}
|
title={this.title}
|
||||||
value={this.currentDate}
|
value={this.currentDate}
|
||||||
|
minDate={this.minDate}
|
||||||
formatter={this.formatter}
|
formatter={this.formatter}
|
||||||
onCancel={this.onCancel}
|
onCancel={this.onCancel}
|
||||||
onConfirm={this.onConfirm}
|
onConfirm={this.onConfirm}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user