mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
feat(Sku): modify default min year of sku date picker (#6879)
Co-authored-by: liuhaihong <liuhaihong@youzan.com>
This commit is contained in:
@@ -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}
|
||||||
|
Reference in New Issue
Block a user