update DateTimePicker
update DateTimePicker
This commit is contained in:
parent
a8571a5fa1
commit
acde7262ef
4 changed files with 21 additions and 6 deletions
|
@ -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: {
|
||||
|
|
|
@ -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: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue