You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
如果你需要这种效果的话,你可以去date-picker.js的attached方法里面把初始化年的数组改成这种
把
for (let i = 1900; i <= date.getFullYear(); i++) {
years.push(i);
}
改成
for (let i = date.getFullYear(); i <= 2030; i++) {
years.push(i);
}
然后再去getRefreshData方法里面把
var tempYearPos = this.data.years.length - 1;
改成
var tempYearPos = 0;
就是点击日期选择 默认的是当前日期2018-5-31 前面是没有其他日期的
The text was updated successfully, but these errors were encountered: