update DateTimePicker

update DateTimePicker
This commit is contained in:
梁灏 2016-12-30 12:03:24 +08:00
parent a8571a5fa1
commit acde7262ef
4 changed files with 21 additions and 6 deletions

View file

@ -64,6 +64,7 @@
v-ref:time-picker
:date="date"
:value="value"
:format="format"
show-date
@on-pick="handleTimePick"></time-picker>
</div>
@ -109,7 +110,8 @@
year: null,
month: null,
confirm: false,
isTime: false
isTime: false,
format: 'yyyy-MM-dd'
};
},
computed: {

View file

@ -49,13 +49,17 @@
showDate: {
type: Boolean,
default: false
},
format: {
type: String,
default: 'HH:mm:ss'
}
},
data () {
return {
prefixCls: prefixCls,
timePrefixCls: timePrefixCls,
format: 'HH:mm:ss',
// format: 'HH:mm:ss',
hours: '',
minutes: '',
seconds: '',