diff --git a/docs/demos/views/datetime-picker.vue b/docs/demos/views/datetime-picker.vue index 5d5554284..e90eaed8b 100644 --- a/docs/demos/views/datetime-picker.vue +++ b/docs/demos/views/datetime-picker.vue @@ -4,8 +4,6 @@ @@ -33,7 +31,6 @@ type="time" :min-hour="minHour" :max-hour="maxHour" - :min-date="minDate" /> diff --git a/docs/markdown/en-US/datetime-picker.md b/docs/markdown/en-US/datetime-picker.md index 1216bf2de..178912e64 100644 --- a/docs/markdown/en-US/datetime-picker.md +++ b/docs/markdown/en-US/datetime-picker.md @@ -15,8 +15,6 @@ Vue.use(DatetimePicker); @@ -84,7 +82,6 @@ export default { type="time" :min-hour="minHour" :max-hour="maxHour" - :min-date="minDate" /> ``` diff --git a/docs/markdown/zh-CN/datetime-picker.md b/docs/markdown/zh-CN/datetime-picker.md index 3072284c4..9fa7dc1c9 100644 --- a/docs/markdown/zh-CN/datetime-picker.md +++ b/docs/markdown/zh-CN/datetime-picker.md @@ -15,8 +15,6 @@ Vue.use(DatetimePicker); @@ -84,7 +82,6 @@ export default { type="time" :min-hour="minHour" :max-hour="maxHour" - :min-date="minDate" /> ``` @@ -102,11 +99,11 @@ export default { | 参数 | 说明 | 类型 | 默认值 | 可选值 | |-----------|-----------|-----------|-------------|-------------| -| type | 组件类型 | `String` | `datetime` | `date` `time` `year-month` | +| type | 组件类型 | `String` | `datetime` | `date` `time`
`year-month` | | min-date | 可选的最小日期 | `Date` | 十年前的 1 月 1 日 | - | | max-date | 可选的最大日期 | `Date` | 十年后的 12 月 31 日 | - | -| min-hour | 可选的最小小时 | `Number` | `0` | - | -| max-hour | 可选的最大小时 | `Number` | `23` | - | +| min-hour | 可选的最小小时,针对 time 类型 | `Number` | `0` | - | +| max-hour | 可选的最大小时,针对 time 类型 | `Number` | `23` | - | | visible-item-count | 每一列可见备选元素的个数 | `Number` | `5` | - | ### Event diff --git a/packages/datetime-picker/index.vue b/packages/datetime-picker/index.vue index c2422aba9..461a8d21f 100644 --- a/packages/datetime-picker/index.vue +++ b/packages/datetime-picker/index.vue @@ -257,7 +257,6 @@ export default create({ }, updateColumnValue(value) { - console.log(value, this.type); let values = []; if (this.type === 'time') { const currentValue = value.split(':');