diff --git a/src/components/date-picker/panel/date-range.vue b/src/components/date-picker/panel/date-range.vue index b7d92e1..aed152c 100644 --- a/src/components/date-picker/panel/date-range.vue +++ b/src/components/date-picker/panel/date-range.vue @@ -117,7 +117,8 @@ + @on-pick="handleTimePick" + @on-pick-click="handlePickClick"> + @on-pick="handleTimePick" + @on-pick-click="handlePickClick">
-
开始时间
+
+ + +
-
结束时间
+
+ + +
\ No newline at end of file diff --git a/src/components/date-picker/panel/time.vue b/src/components/date-picker/panel/time.vue index 0c0fa60..d03807c 100644 --- a/src/components/date-picker/panel/time.vue +++ b/src/components/date-picker/panel/time.vue @@ -37,19 +37,13 @@ export default { mixins: [Mixin], components: { TimeSpinner, Confirm }, - props: { - showDate: { - type: Boolean, - default: false - } - }, data () { return { prefixCls: prefixCls, timePrefixCls: timePrefixCls, date: initTimeDate(), value: '', -// showDate: false, + showDate: false, format: 'HH:mm:ss', hours: '', minutes: '', @@ -109,6 +103,9 @@ updateScroll () { this.$refs.timeSpinner.updateScroll(); } + }, + compiled () { + if (this.$parent && this.$parent.$options.name === 'DatePicker') this.showDate = true; } }; \ No newline at end of file -- libgit2 0.21.4