bk-magic-vue 2.4.0-beta.1 → 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.
@@ -4025,6 +4025,12 @@ url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
4025
4025
  color:#979ba5;
4026
4026
  font-size:14px;
4027
4027
  }
4028
+ .bk-date-picker-top-wrapper{
4029
+ margin-top:-5px;
4030
+ clear:both;
4031
+ color:#979ba5;
4032
+ font-size:14px;
4033
+ }
4028
4034
  .bk-date-picker-cells{
4029
4035
  margin:9px;
4030
4036
  white-space:normal;
@@ -11239,7 +11245,6 @@ th.bk-table-column-selection .cell, th.bk-table-column-expand .cell, td.bk-table
11239
11245
  box-sizing:border-box;
11240
11246
  padding-top:6px;
11241
11247
  text-align:left;
11242
- //background-color:#e1ecff;
11243
11248
  background-color:rgba(58,132,255,.16);
11244
11249
  mix-blend-mode:multiply;
11245
11250
  color:#3a84ff;
@@ -7730,6 +7730,10 @@
7730
7730
  type: Number,
7731
7731
  default: -1
7732
7732
  },
7733
+ headerSlotCls: {
7734
+ type: String,
7735
+ default: ''
7736
+ },
7733
7737
  footerSlotCls: {
7734
7738
  type: String,
7735
7739
  default: ''
@@ -7849,7 +7853,10 @@
7849
7853
  return !this.editable || this.readonly;
7850
7854
  },
7851
7855
  hasFooter: function hasFooter() {
7852
- return !!this.$slots.footer;
7856
+ return !!this.$slots.footer || !!this.$scopedSlots.footer;
7857
+ },
7858
+ hasHeader: function hasHeader() {
7859
+ return !!this.$slots.header || !!this.$scopedSlots.header;
7853
7860
  },
7854
7861
  allowCrossDayProp: function allowCrossDayProp() {
7855
7862
  return this.panel === 'RangeTimePickerPanel' ? this.allowCrossDay : false;
@@ -8445,7 +8452,10 @@
8445
8452
  return _vm.handleTransferClick($event);
8446
8453
  }
8447
8454
  }
8448
- }, [_c(_vm.panel, _vm._b({
8455
+ }, [_vm.hasHeader ? [_c('div', {
8456
+ staticClass: "bk-date-picker-top-wrapper",
8457
+ class: _vm.headerSlotCls
8458
+ }, [_vm._t("header")], 2)] : _vm._e(), _c(_vm.panel, _vm._b({
8449
8459
  ref: "pickerPanel",
8450
8460
  tag: "component",
8451
8461
  attrs: {
@@ -8478,7 +8488,12 @@
8478
8488
  },
8479
8489
  "selection-mode-change": _vm.onSelectionModeChange
8480
8490
  }
8481
- }, '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', {
8482
8497
  staticClass: "bk-date-picker-footer-wrapper",
8483
8498
  class: _vm.footerSlotCls
8484
8499
  }, [_vm._t("footer")], 2)] : _vm._e()], 2)], 1)], 1);
@@ -11869,7 +11884,7 @@
11869
11884
 
11870
11885
  return _c('div', {
11871
11886
  staticClass: "bk-picker-panel-body-wrapper bk-date-picker-with-range",
11872
- class: [_vm.shortcuts.length ? 'bk-picker-panel-with-sidebar' : ''],
11887
+ class: [_vm.shortcuts.length || _vm.$slots.shortcuts ? 'bk-picker-panel-with-sidebar' : ''],
11873
11888
  on: {
11874
11889
  "mousedown": function mousedown($event) {
11875
11890
  $event.preventDefault();
@@ -12103,9 +12118,9 @@
12103
12118
  "pick-clear": _vm.handlePickClear,
12104
12119
  "pick-success": _vm.handlePickSuccess
12105
12120
  }
12106
- }) : _vm._e()], 1), _vm.shortcuts.length ? _c('div', {
12121
+ }) : _vm._e()], 1), _vm.shortcuts.length || _vm.$slots.shortcuts ? _c('div', {
12107
12122
  staticClass: "bk-picker-panel-sidebar"
12108
- }, _vm._l(_vm.shortcuts, function (shortcut, index) {
12123
+ }, [_vm.$slots.shortcuts ? _vm._t("shortcuts") : _vm._l(_vm.shortcuts, function (shortcut, index) {
12109
12124
  return _c('div', {
12110
12125
  key: index,
12111
12126
  staticClass: "bk-picker-panel-shortcut",
@@ -12115,7 +12130,7 @@
12115
12130
  }
12116
12131
  }
12117
12132
  }, [_vm._v(_vm._s(shortcut.text))]);
12118
- }), 0) : _vm._e()]);
12133
+ })], 2) : _vm._e()]);
12119
12134
  };
12120
12135
 
12121
12136
  var __vue_staticRenderFns__$t = [];