bk-magic-vue 2.5.4-beta.1 → 2.5.4-beta.3

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.
@@ -9870,16 +9870,80 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
9870
9870
  .bk-tab{
9871
9871
  border-radius:2px;
9872
9872
  }
9873
- .bk-tab.bk-tab-border-card >.bk-tab-header{
9873
+ .bk-tab.bk-tab-border-card > .bk-tab-header{
9874
9874
  height:43px;
9875
9875
  border:1px solid #dcdee5;
9876
9876
  border-bottom:none;
9877
9877
  background-color:#fafbfd;
9878
9878
  border-radius:2px 2px 0 0;
9879
9879
  }
9880
- .bk-tab.bk-tab-border-card >.bk-tab-header>.bk-tab-label-wrapper>.bk-tab-label-list >.bk-tab-label-item.active{
9880
+ .bk-tab.bk-tab-border-card > .bk-tab-header > .bk-tab-label-wrapper > .bk-tab-label-list > .bk-tab-label-item.active{
9881
9881
  background-color:#fff;
9882
9882
  }
9883
+ .bk-tab.bk-tab-card-tab{
9884
+ border-radius:4px;
9885
+ }
9886
+ .bk-tab.bk-tab-card-tab > .bk-tab-header{
9887
+ border:0;
9888
+ background:#f0f1f5;
9889
+ border-radius:4px 4px 0 0;
9890
+ overflow:hidden;
9891
+ }
9892
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper.has-scroller.has-add .bk-tab-add-controller{
9893
+ border-left:none;
9894
+ }
9895
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper.has-scroller.has-add .bk-tab-extension-controller{
9896
+ border-left:none;
9897
+ }
9898
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-extension-controller,
9899
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-add-controller,
9900
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-scroll-controller{
9901
+ border:none;
9902
+ background:#f0f1f5;
9903
+ }
9904
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-label-list .bk-tab-label-item{
9905
+ border:0 !important;
9906
+ position:relative
9907
+ }
9908
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-label-list .bk-tab-label-item:before{
9909
+ content:'';
9910
+ display:block;
9911
+ position:absolute;
9912
+ left:0;
9913
+ top:50%;
9914
+ margin-top:-8px;
9915
+ width:1px;
9916
+ height:16px;
9917
+ background:#c4c6cc;
9918
+ }
9919
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-label-list .is-first:before{
9920
+ display:none;
9921
+ }
9922
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-label-list .is-last:not(.active):after{
9923
+ content:'';
9924
+ display:block;
9925
+ position:absolute;
9926
+ right:0;
9927
+ top:50%;
9928
+ margin-top:-8px;
9929
+ width:1px;
9930
+ height:16px;
9931
+ background:#c4c6cc;
9932
+ }
9933
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-label-list .active{
9934
+ background:#fff;
9935
+ border-radius:4px 4px 0 0;
9936
+ overflow:hidden
9937
+ }
9938
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-label-list .active:before{
9939
+ display:none;
9940
+ }
9941
+ .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-label-list .active:before, .bk-tab.bk-tab-card-tab .bk-tab-label-wrapper .bk-tab-label-list .active + li:before{
9942
+ display:none;
9943
+ }
9944
+ .bk-tab.bk-tab-card-tab .bk-tab-section{
9945
+ border:none;
9946
+ }
9883
9947
  .bk-tab.bk-tab-card .bk-tab-label-wrapper.has-add .bk-tab-label-list{
9884
9948
  border-radius:2px 0 0 0;
9885
9949
  }
@@ -9906,7 +9970,7 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
9906
9970
  border-top:1px solid #dcdee5;
9907
9971
  background-color:#fff;
9908
9972
  }
9909
- .bk-tab.bk-tab-card >.bk-tab-header>.bk-tab-label-wrapper>.bk-tab-label-list >.bk-tab-label-item.active{
9973
+ .bk-tab.bk-tab-card > .bk-tab-header > .bk-tab-label-wrapper > .bk-tab-label-list > .bk-tab-label-item.active{
9910
9974
  background-color:#fff;
9911
9975
  }
9912
9976
  .bk-tab-label-list-has-bar::after{
@@ -9942,12 +10006,12 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
9942
10006
  background-color:#fff;
9943
10007
  }
9944
10008
  .bk-tab.bk-tab-unborder-card .bk-tab-label-wrapper .bk-tab-label-list .bk-tab-label-item{
9945
- border:none!important;
10009
+ border:none !important;
9946
10010
  }
9947
10011
  .bk-tab.bk-tab-unborder-card .bk-tab-section{
9948
10012
  border:none;
9949
10013
  }
9950
- .position-left,.position-right{
10014
+ .position-left, .position-right{
9951
10015
  display:-webkit-box;
9952
10016
  display:-ms-flexbox;
9953
10017
  display:flex;
@@ -10048,6 +10112,19 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
10048
10112
  .position-left .bk-tab-section .bk-tab-content, .position-right .bk-tab-section .bk-tab-content{
10049
10113
  word-break:break-all;
10050
10114
  }
10115
+ .position-left.bk-tab-vertical-tab .bk-tab-header,.position-right.bk-tab-vertical-tab .bk-tab-header{
10116
+ padding:0;
10117
+ background:#f0f1f5;
10118
+ }
10119
+ .position-left.bk-tab-vertical-tab .bk-tab-label-wrapper .active,.position-right.bk-tab-vertical-tab .bk-tab-label-wrapper .active{
10120
+ background:#fff;
10121
+ }
10122
+ .position-left.bk-tab-vertical-tab .bk-tab-label-wrapper:after, .position-right.bk-tab-vertical-tab .bk-tab-label-wrapper:after{
10123
+ display:none;
10124
+ }
10125
+ .position-left.bk-tab-vertical-tab .bk-tab-label-wrapper .bk-tab-label-list .bk-tab-label-item, .position-right.bk-tab-vertical-tab .bk-tab-label-wrapper .bk-tab-label-list .bk-tab-label-item{
10126
+ border:0;
10127
+ }
10051
10128
  .bk-tab-header{
10052
10129
  position:relative;
10053
10130
  height:42px;
@@ -10061,15 +10138,15 @@ span.bk-date-picker-cells-cell-disabled.bk-date-picker-cells-cell-selected em{
10061
10138
  overflow:hidden
10062
10139
  }
10063
10140
  .bk-tab-label-wrapper.has-add .bk-tab-label-list .bk-tab-label-item.has-close{
10064
- -webkit-transition:color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1);
10065
- transition:color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1)
10141
+ -webkit-transition:color .3s cubic-bezier(.645, .045, .355, 1), padding .3s cubic-bezier(.645, .045, .355, 1);
10142
+ transition:color .3s cubic-bezier(.645, .045, .355, 1), padding .3s cubic-bezier(.645, .045, .355, 1)
10066
10143
  }
10067
10144
  .bk-tab-label-wrapper.has-add .bk-tab-label-list .bk-tab-label-item.has-close:hover{
10068
10145
  padding:0 11px;
10069
10146
  }
10070
10147
  .bk-tab-label-wrapper.has-add .bk-tab-label-list .bk-tab-label-item.has-close .bk-tab-close-controller{
10071
- -webkit-transition:all .3s cubic-bezier(.645,.045,.355,1);
10072
- transition:all .3s cubic-bezier(.645,.045,.355,1);
10148
+ -webkit-transition:all .3s cubic-bezier(.645, .045, .355, 1);
10149
+ transition:all .3s cubic-bezier(.645, .045, .355, 1);
10073
10150
  }
10074
10151
  .bk-tab-label-wrapper.has-scroller{
10075
10152
  padding:0 24px;
@@ -7740,6 +7740,19 @@
7740
7740
  if (e && pickerPanel && pickerPanel.contains(e.target)) {
7741
7741
  return;
7742
7742
  }
7743
+ var _this$$slots = this.$slots,
7744
+ headerSlots = _this$$slots.header,
7745
+ footerSlots = _this$$slots.footer;
7746
+ for (var i = 0; i < headerSlots.length; i++) {
7747
+ if (headerSlots[i].elm.contains(e.target)) {
7748
+ return;
7749
+ }
7750
+ }
7751
+ for (var _i = 0; _i < footerSlots.length; _i++) {
7752
+ if (footerSlots[_i].elm.contains(e.target)) {
7753
+ return;
7754
+ }
7755
+ }
7743
7756
  this.visible = false;
7744
7757
  e && e.preventDefault();
7745
7758
  e && e.stopPropagation();
@@ -37120,6 +37133,18 @@
37120
37133
  return panel.visible;
37121
37134
  });
37122
37135
  },
37136
+ tabClass: function tabClass() {
37137
+ var arr = ['bk-tab', this.extCls];
37138
+ if (this.tabPosition === 'top') {
37139
+ arr.push("bk-tab-".concat(this.type));
37140
+ } else {
37141
+ arr.push("position-".concat(this.tabPosition));
37142
+ if (this.type === 'card-tab') {
37143
+ arr.push("bk-tab-vertical-tab");
37144
+ }
37145
+ }
37146
+ return arr;
37147
+ },
37123
37148
  tabStyle: function tabStyle() {
37124
37149
  if (this.isSidePosition) {
37125
37150
  var paddingValue = 21;
@@ -37131,6 +37156,11 @@
37131
37156
  },
37132
37157
  headerStyle: function headerStyle() {
37133
37158
  if (this.tabPosition === 'top') {
37159
+ if (this.type === 'card-tab') {
37160
+ return {
37161
+ height: "".concat(this.labelHeight, "px")
37162
+ };
37163
+ }
37134
37164
  var diffValue = this.type === 'border-card' ? 2 : 1;
37135
37165
  return {
37136
37166
  height: "".concat(this.labelHeight, "px"),
@@ -37146,6 +37176,9 @@
37146
37176
  return this.panelInstance.length < 1;
37147
37177
  },
37148
37178
  hasActiveBar: function hasActiveBar() {
37179
+ if (this.type === 'card-tab') {
37180
+ return false;
37181
+ }
37149
37182
  return (this.type === 'unborder-card' || this.isSidePosition) && !this.isEmpty;
37150
37183
  },
37151
37184
  tabLabelListStyle: function tabLabelListStyle() {
@@ -37625,7 +37658,7 @@
37625
37658
  var _h = _vm.$createElement;
37626
37659
  var _c = _vm._self._c || _h;
37627
37660
  return _c('div', {
37628
- class: ['bk-tab', _vm.tabPosition === 'top' ? "bk-tab-" + _vm.type : "position-" + _vm.tabPosition, _vm.extCls],
37661
+ class: _vm.tabClass,
37629
37662
  style: _vm.tabStyle
37630
37663
  }, [_c('div', {
37631
37664
  directives: [{