bk-magic-vue 2.4.0-beta.4 → 2.4.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8488,7 +8488,12 @@
8488
8488
  },
8489
8489
  "selection-mode-change": _vm.onSelectionModeChange
8490
8490
  }
8491
- }, 'component', _vm.ownPickerProps, false)), _vm.hasFooter ? [_c('div', {
8491
+ }, 'component', _vm.ownPickerProps, false), [_vm.$slots.shortcuts || _vm.$scopedSlots.shortcuts ? _c('div', {
8492
+ attrs: {
8493
+ "slot": "shortcuts"
8494
+ },
8495
+ slot: "shortcuts"
8496
+ }, [_vm._t("shortcuts")], 2) : _vm._e()]), _vm.hasFooter ? [_c('div', {
8492
8497
  staticClass: "bk-date-picker-footer-wrapper",
8493
8498
  class: _vm.footerSlotCls
8494
8499
  }, [_vm._t("footer")], 2)] : _vm._e()], 2)], 1)], 1);
@@ -11879,7 +11884,7 @@
11879
11884
 
11880
11885
  return _c('div', {
11881
11886
  staticClass: "bk-picker-panel-body-wrapper bk-date-picker-with-range",
11882
- class: [_vm.shortcuts.length ? 'bk-picker-panel-with-sidebar' : ''],
11887
+ class: [_vm.shortcuts.length || _vm.$slots.shortcuts ? 'bk-picker-panel-with-sidebar' : ''],
11883
11888
  on: {
11884
11889
  "mousedown": function mousedown($event) {
11885
11890
  $event.preventDefault();
@@ -12113,9 +12118,9 @@
12113
12118
  "pick-clear": _vm.handlePickClear,
12114
12119
  "pick-success": _vm.handlePickSuccess
12115
12120
  }
12116
- }) : _vm._e()], 1), _vm.shortcuts.length ? _c('div', {
12121
+ }) : _vm._e()], 1), _vm.shortcuts.length || _vm.$slots.shortcuts ? _c('div', {
12117
12122
  staticClass: "bk-picker-panel-sidebar"
12118
- }, _vm._l(_vm.shortcuts, function (shortcut, index) {
12123
+ }, [_vm.$slots.shortcuts ? _vm._t("shortcuts") : _vm._l(_vm.shortcuts, function (shortcut, index) {
12119
12124
  return _c('div', {
12120
12125
  key: index,
12121
12126
  staticClass: "bk-picker-panel-shortcut",
@@ -12125,7 +12130,7 @@
12125
12130
  }
12126
12131
  }
12127
12132
  }, [_vm._v(_vm._s(shortcut.text))]);
12128
- }), 0) : _vm._e()]);
12133
+ })], 2) : _vm._e()]);
12129
12134
  };
12130
12135
 
12131
12136
  var __vue_staticRenderFns__$t = [];