bk-magic-vue 2.4.0-beta.1 → 2.4.0-beta.2

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;
@@ -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: ''
@@ -7851,6 +7855,9 @@
7851
7855
  hasFooter: function hasFooter() {
7852
7856
  return !!this.$slots.footer;
7853
7857
  },
7858
+ hasHeader: function hasHeader() {
7859
+ return !!this.$slots.header;
7860
+ },
7854
7861
  allowCrossDayProp: function allowCrossDayProp() {
7855
7862
  return this.panel === 'RangeTimePickerPanel' ? this.allowCrossDay : false;
7856
7863
  }
@@ -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: {