2d948738
梁灏
update TimePicker...
|
1
2
3
4
5
|
<style>
body{
height: auto !important;
}
</style>
|
0f677893
梁灏
update DatePicker
|
6
|
<template>
|
d31b0801
梁灏
fixed DatePicker bug
|
7
|
<row>
|
36931442
梁灏
update DateTimePi...
|
8
9
10
|
<i-col span="12">
<Time-picker :value="value" type="time" placeholder="选择时间" style="width: 168px"></Time-picker>
</i-col>
|
0dd7b94a
梁灏
update TimePicker
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!--<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>-->
|
456877a1
梁灏
update TimePicker
|
26
|
<i-col span="12">
|
acde7262
梁灏
update DateTimePi...
|
27
|
<Date-picker :value="value1" format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="选择日期时间" style="width: 200px" @on-change="c"></Date-picker>
|
4db5926d
梁灏
fixed #153
|
28
29
30
31
32
33
34
35
36
37
|
<!--<time-picker-->
<!--:value="value2"-->
<!--type="timerange"-->
<!--placeholder="选择时间"-->
<!--format="HH:mm:ss"-->
<!--:hide-disabled-options="false"-->
<!--@on-change="c"-->
<!--@on-ok="ok"-->
<!--@on-clear="clear"-->
<!--style="width: 168px"></time-picker>-->
|
9d844d53
梁灏
fixed Layout bug
|
38
|
</i-col>
|
d596b9e4
梁灏
update TimePicker
|
39
|
<i-button @click="time">time</i-button>
|
d31b0801
梁灏
fixed DatePicker bug
|
40
|
</row>
|
0f677893
梁灏
update DatePicker
|
41
42
43
|
</template>
<script>
export default {
|
2d948738
梁灏
update TimePicker...
|
44
45
|
data () {
return {
|
d609ba86
梁灏
update TimePicker
|
46
|
// value: '2016-12-12 03:03:03',
|
acde7262
梁灏
update DateTimePi...
|
47
|
value1: '2015-12-12 09:41',
|
d596b9e4
梁灏
update TimePicker
|
48
|
value: '03:12:01',
|
456877a1
梁灏
update TimePicker
|
49
50
51
|
value2: ['08:40:00', '09:40:00'],
// value2: [new Date(), new Date()],
value3: ['2016-12-01', '2016-12-25']
|
2dbbd7de
梁灏
update TimePicker
|
52
53
54
|
}
},
methods: {
|
a18d2b3a
梁灏
update TimePicker
|
55
|
|
2dbbd7de
梁灏
update TimePicker
|
56
|
c (s) {
|
964582b3
梁灏
update TimePicker
|
57
|
console.log(s);
|
0dd7b94a
梁灏
update TimePicker
|
58
|
// this.value2 = s;
|
af713093
梁灏
update TimePicker
|
59
60
61
62
63
64
|
},
ok () {
console.log('ok');
},
clear () {
console.log('clear');
|
d596b9e4
梁灏
update TimePicker
|
65
66
67
|
},
time () {
this.value = new Date();
|
2d948738
梁灏
update TimePicker...
|
68
69
|
}
}
|
0f677893
梁灏
update DatePicker
|
70
|
}
|
d20fe0ee
梁灏
update DatePicker
|
71
|
</script>
|