Blame view

test/routers/date.vue 654 Bytes
0f677893   梁灏   update DatePicker
1
2
  <template>
      <div style="margin: 50px">
50637863   梁灏   update DatePicker
3
          <date-picker style="width:200px" placeholder="请选择日期" :value.sync="value" :options="options"></date-picker>
0f677893   梁灏   update DatePicker
4
5
6
7
      </div>
  </template>
  <script>
      export default {
0f677893   梁灏   update DatePicker
8
          data () {
50637863   梁灏   update DatePicker
9
10
11
12
13
14
15
16
17
18
              return {
                  value: '2016-12-18',
  //                value: '',
                  options: {
                      disabledDate(time) {
                          return time.getTime() < Date.now() - 8.64e7;
  //                        return time && time.valueOf() < Date.now();
                      }
                  }
              }
0f677893   梁灏   update DatePicker
19
20
21
22
23
          },
          computed: {},
          methods: {}
      }
  </script>