Blame view

test/routers/date.vue 1.11 KB
2d948738   梁灏   update TimePicker...
1
2
3
4
5
  <style>
      body{
          height: auto !important;
      }
  </style>
0f677893   梁灏   update DatePicker
6
  <template>
d31b0801   梁灏   fixed DatePicker bug
7
8
9
10
11
12
13
      <row>
          <i-col span="12">
              <date-picker type="date" placeholder="选择日期" style="width: 200px"></date-picker>
          </i-col>
          <i-col span="12">
              <date-picker type="daterange" placement="bottom-end" placeholder="选择日期" style="width: 200px"></date-picker>
          </i-col>
9d844d53   梁灏   fixed Layout bug
14
          <i-col span="12">
2dbbd7de   梁灏   update TimePicker
15
              <span>123,{{value}},456</span>
603e437b   梁灏   update TimePicker
16
17
18
19
              <time-picker
                  :value="value"
                  placeholder="选择时间"
                  format="HH:mm:ss"
d70cad45   梁灏   update TimePicker
20
21
                  :hide-disabled-options="false"
                  :disabled-hours="[1,2,5,10,11]"
2dbbd7de   梁灏   update TimePicker
22
                  @on-change="c"
603e437b   梁灏   update TimePicker
23
                  style="width: 168px"></time-picker>
9d844d53   梁灏   fixed Layout bug
24
          </i-col>
d31b0801   梁灏   fixed DatePicker bug
25
      </row>
0f677893   梁灏   update DatePicker
26
27
28
  </template>
  <script>
      export default {
2d948738   梁灏   update TimePicker...
29
30
          data () {
              return {
2dbbd7de   梁灏   update TimePicker
31
32
33
34
35
36
37
38
  //                value: '2016-12-12 03:03:03'
                  value: '15:12:01'
              }
          },
          methods: {
              c (s) {
                  console.log(s)
                  this.value = s;
2d948738   梁灏   update TimePicker...
39
40
              }
          }
0f677893   梁灏   update DatePicker
41
      }
d20fe0ee   梁灏   update DatePicker
42
  </script>