Blame view

src/components/calendar/picker/date-picker.js 835 Bytes
e80b805f   chenhaodong   初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  import Picker from '../picker.vue';
  import DatePickerPanel from '../panel/Date/date.vue';
  
  
  export default {
      name: 'CalendarPicker',
      mixins: [Picker],
      props: {
          type: {
              default: 'date'
          },
          information: {
              type: Array,
              default() {
                  return [];
              }
          },
          calendarWidth: {
              type: String,
              default() {
                  return {
  
                  };
              }
          },
          onPanelDateChange: {
              type: Function,
              default() {
                  return {};
              }
          }
      },
      components: { DatePickerPanel },
      computed: {
          panel() {
              return 'DatePickerPanel';
          },
          ownPickerProps() {
              return this.options;
          }
      },
  };