-
结束时间
+
+ {{ visibleDateEnd }}
+ 结束时间
+
\ 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