-
The restricted date range is 365 days
PickerOptions: {onPick(time) {// Select only one time if (! time.maxDate) { let timeRange = 365 * 24 * 60 * 60 * 1000; // 6 day_mintime = time.mindate.getTime () -timerange; _maxTime = time.mindate.getTime () + timeRange; Else {_minTime = _maxTime = null;} else {_minTime = _maxTime = null; }}, disabledDate(time) {// onPick triggers // This method polls for each date within 3 months, Returns false indicates the date the forbidden choose the if (_minTime && _maxTime) {return time. GetTime () < _minTime | | time. GetTime () > _maxTime; }}},
At this time
value-format="yyyy-MM-dd"
Copy the code