update DateTimePicker

update DateTimePicker
This commit is contained in:
梁灏 2016-12-30 17:54:27 +08:00
parent 2dc2771349
commit a2a78c382f
4 changed files with 34 additions and 12 deletions

View file

@ -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;
}
};
</script>