update TimePicker
update TimePicker
This commit is contained in:
parent
d609ba8682
commit
0dd7b94a4d
3 changed files with 32 additions and 29 deletions
|
@ -5,29 +5,30 @@
|
|||
</style>
|
||||
<template>
|
||||
<row>
|
||||
<i-col span="12">
|
||||
<date-picker type="date" placeholder="选择日期" style="width: 200px" @on-ok="ok" confirm @on-clear="clear"></date-picker>
|
||||
</i-col>
|
||||
<i-col span="12">
|
||||
<date-picker :value="value3" type="daterange" placement="bottom-start" placeholder="选择日期" style="width: 200px"></date-picker>
|
||||
</i-col>
|
||||
<i-col span="12">
|
||||
<time-picker
|
||||
:value="value"
|
||||
placeholder="选择时间"
|
||||
format="HH:mm:ss"
|
||||
:hide-disabled-options="false"
|
||||
:disabled-hours="[1,2,10,11]"
|
||||
@on-change="c"
|
||||
@on-ok="ok"
|
||||
@on-clear="clear"
|
||||
style="width: 168px"></time-picker>
|
||||
</i-col>
|
||||
<!--<i-col span="12">-->
|
||||
<!--<date-picker type="date" placeholder="选择日期" style="width: 200px" @on-ok="ok" confirm @on-clear="clear"></date-picker>-->
|
||||
<!--</i-col>-->
|
||||
<!--<i-col span="12">-->
|
||||
<!--<date-picker :value="value3" type="daterange" placement="bottom-start" placeholder="选择日期" style="width: 200px"></date-picker>-->
|
||||
<!--</i-col>-->
|
||||
<!--<i-col span="12">-->
|
||||
<!--<time-picker-->
|
||||
<!--:value="value"-->
|
||||
<!--placeholder="选择时间"-->
|
||||
<!--format="HH:mm:ss"-->
|
||||
<!--:hide-disabled-options="false"-->
|
||||
<!--:disabled-hours="[1,2,10,11]"-->
|
||||
<!--@on-change="c"-->
|
||||
<!--@on-ok="ok"-->
|
||||
<!--@on-clear="clear"-->
|
||||
<!--style="width: 168px"></time-picker>-->
|
||||
<!--</i-col>-->
|
||||
<i-col span="12">
|
||||
<time-picker
|
||||
:value="value2"
|
||||
type="timerange"
|
||||
placeholder="选择时间"
|
||||
format="HH:mm:ss"
|
||||
:hide-disabled-options="false"
|
||||
@on-change="c"
|
||||
@on-ok="ok"
|
||||
|
@ -49,8 +50,8 @@
|
|||
},
|
||||
methods: {
|
||||
c (s) {
|
||||
console.log(1,s);
|
||||
this.value2 = s;
|
||||
// console.log(1,s);
|
||||
// this.value2 = s;
|
||||
},
|
||||
ok () {
|
||||
console.log('ok');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue