Blame view

src/components/date-picker/panel/mixin.js 717 Bytes
3cf7cfd1   梁灏   update DatePicker
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  const prefixCls = 'ivu-picker-panel';
  const datePrefixCls = 'ivu-date-picker';
  
  export default {
      methods: {
          iconBtnCls (direction, type = '') {
              return [
                  `${prefixCls}-icon-btn`,
                  `${datePrefixCls}-${direction}-btn`,
                  `${datePrefixCls}-${direction}-btn-arrow${type}`,
              ]
          },
          handleShortcutClick (shortcut) {
              if (shortcut.value) this.$emit('on-pick', shortcut.value());
              if (shortcut.onClick) shortcut.onClick(this);
b9041a0d   梁灏   DatePicker add co...
16
17
18
19
20
21
          },
          handlePickClear () {
              this.$emit('on-pick-clear');
          },
          handlePickSuccess () {
              this.$emit('on-pick-success');
3cf7cfd1   梁灏   update DatePicker
22
23
24
          }
      }
  }