update TimePicker
update TimePicker
This commit is contained in:
parent
0fd1369660
commit
456877a165
6 changed files with 268 additions and 19 deletions
|
@ -6,19 +6,29 @@
|
|||
<template>
|
||||
<row>
|
||||
<i-col span="12">
|
||||
<date-picker type="date" placeholder="选择日期" style="width: 200px" @on-ok="ok" confirm @on-clear="clear"></date-picker>
|
||||
<!--<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 type="daterange" placement="bottom-end" placeholder="选择日期" style="width: 200px"></date-picker>
|
||||
<date-picker :value="value3" type="daterange" placement="bottom-start" placeholder="选择日期" style="width: 200px"></date-picker>
|
||||
</i-col>
|
||||
<i-col span="12">
|
||||
<span>123,{{value}},456</span>
|
||||
<time-picker
|
||||
:value="value"
|
||||
placeholder="选择时间"
|
||||
format="HH:mm:ss"
|
||||
:hide-disabled-options="false"
|
||||
:disabled-hours="[1,2,5,10,11]"
|
||||
: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="选择时间"
|
||||
:hide-disabled-options="false"
|
||||
@on-change="c"
|
||||
@on-ok="ok"
|
||||
@on-clear="clear"
|
||||
|
@ -31,7 +41,10 @@
|
|||
data () {
|
||||
return {
|
||||
// value: '2016-12-12 03:03:03'
|
||||
value: '15:12:01'
|
||||
value: '15:12:01',
|
||||
value2: ['08:40:00', '09:40:00'],
|
||||
// value2: [new Date(), new Date()],
|
||||
value3: ['2016-12-01', '2016-12-25']
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue