update TimePicker

update TimePicker
This commit is contained in:
梁灏 2016-12-27 17:16:11 +08:00
parent 915055614b
commit 2dbbd7dea6
5 changed files with 44 additions and 9 deletions

View file

@ -12,12 +12,14 @@
<date-picker type="daterange" placement="bottom-end" 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]"
@on-change="c"
style="width: 168px"></time-picker>
</i-col>
</row>
@ -26,7 +28,14 @@
export default {
data () {
return {
value: '2016-12-12 03:03:03'
// value: '2016-12-12 03:03:03'
value: '15:12:01'
}
},
methods: {
c (s) {
console.log(s)
this.value = s;
}
}
}