diff --git a/docs/examples-docs/datetime-picker.md b/docs/examples-docs/datetime-picker.md index 1d90f56c3..f7c633f46 100644 --- a/docs/examples-docs/datetime-picker.md +++ b/docs/examples-docs/datetime-picker.md @@ -5,15 +5,16 @@ export default { minHour: 10, maxHour: 20, minDate: new Date(), - currentDate1: null, + maxDate: new Date(2019, 10, 1), + currentDate1: new Date(2018, 0, 1), currentDate2: null, currentDate3: null }; }, methods: { - handlePickerChange(picker, values) { - console.log(values); + handlePickerChange(picker) { + console.log(picker); }, handlePickerCancel() { console.log('picker cancel'); @@ -36,10 +37,10 @@ export default { @@ -50,13 +51,14 @@ export default { minHour: 10, maxHour: 20, minDate: new Date(), - currentDate: null + maxDate: new Date(2019, 10, 1), + currentDate: new Date(2018, 0, 1) }; }, methods: { - handlePickerChange(picker, values) { - picker.setColumnValues(1, citys[values[0]]); + handlePickerChange(picker) { + console.log(picker); } } }; @@ -71,7 +73,6 @@ export default { child.doOnValueChange()); } + }, + + mounted() { + this.updateColumnValue(this.innerValue); } };