bkui-vue 1.0.3-beta.14 → 1.0.3-beta.16

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.
@@ -380,10 +380,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
380
380
  };
381
381
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
382
382
  resolveClassName = _usePrefix.resolveClassName;
383
+ var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
384
+ return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
385
+ });
383
386
  return {
384
387
  style: style,
385
388
  refContent: refContent,
386
- resolveClassName: resolveClassName,
389
+ contentClassName: contentClassName,
387
390
  resetPointerEvent: resetPointerEvent,
388
391
  setContentPointerEvent: setContentPointerEvent
389
392
  };
@@ -398,7 +401,6 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
398
401
  _this$$slots$default2,
399
402
  _this$$slots$default3,
400
403
  _this$$slots3;
401
- var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
402
404
  var resolveContentStyle = function resolveContentStyle(slot) {
403
405
  var _slot$;
404
406
  if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
@@ -411,7 +413,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
411
413
  };
412
414
  var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
413
415
  return (0,external_vue_namespaceObject.createVNode)("div", {
414
- "class": className,
416
+ "class": this.contentClassName,
415
417
  "style": style,
416
418
  "ref": "refContent"
417
419
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
@@ -3628,7 +3630,7 @@ function _isSlot(s) {
3628
3630
  (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3629
3631
  (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3630
3632
  var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3631
- return !props.disableTeleport;
3633
+ return localIsShow.value && !props.disableTeleport;
3632
3634
  });
3633
3635
  var show = function show() {
3634
3636
  showFn();
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
34
34
  maxWidth: string | number;
35
35
  }>;
36
36
  refContent: import("vue").Ref<any>;
37
- resolveClassName: (cls: string) => string;
37
+ contentClassName: import("vue").ComputedRef<string[]>;
38
38
  resetPointerEvent: () => void;
39
39
  setContentPointerEvent: (val: string) => void;
40
40
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -383,10 +383,13 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
383
383
  };
384
384
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
385
385
  resolveClassName = _usePrefix.resolveClassName;
386
+ var contentClassName = (0,external_vue_namespaceObject.computed)(function () {
387
+ return [resolveClassName('popover'), resolveClassName('pop2-content'), props.visible ? 'visible' : 'hidden', props.extCls];
388
+ });
386
389
  return {
387
390
  style: style,
388
391
  refContent: refContent,
389
- resolveClassName: resolveClassName,
392
+ contentClassName: contentClassName,
390
393
  resetPointerEvent: resetPointerEvent,
391
394
  setContentPointerEvent: setContentPointerEvent
392
395
  };
@@ -401,7 +404,6 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
401
404
  _this$$slots$default2,
402
405
  _this$$slots$default3,
403
406
  _this$$slots3;
404
- var className = [this.resolveClassName('popover'), this.resolveClassName('pop2-content'), this.extCls];
405
407
  var resolveContentStyle = function resolveContentStyle(slot) {
406
408
  var _slot$;
407
409
  if (external_vue_namespaceObject.Fragment === (slot === null || slot === void 0 || (_slot$ = slot[0]) === null || _slot$ === void 0 ? void 0 : _slot$.type)) {
@@ -414,7 +416,7 @@ var EMIT_EVENT_TYPES = _defineProperty(_defineProperty(_defineProperty(_definePr
414
416
  };
415
417
  var style = resolveContentStyle((_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots));
416
418
  return (0,external_vue_namespaceObject.createVNode)("div", {
417
- "class": className,
419
+ "class": this.contentClassName,
418
420
  "style": style,
419
421
  "ref": "refContent"
420
422
  }, [(_this$$slots$arrow = (_this$$slots$arrow2 = (_this$$slots2 = this.$slots).arrow) === null || _this$$slots$arrow2 === void 0 ? void 0 : _this$$slots$arrow2.call(_this$$slots2)) !== null && _this$$slots$arrow !== void 0 ? _this$$slots$arrow : '', (_this$$slots$default2 = (_this$$slots$default3 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default3 === void 0 ? void 0 : _this$$slots$default3.call(_this$$slots3)) !== null && _this$$slots$default2 !== void 0 ? _this$$slots$default2 : '']);
@@ -3631,7 +3633,7 @@ function _isSlot(s) {
3631
3633
  (0,external_vue_namespaceObject.onMounted)(onMountedFn);
3632
3634
  (0,external_vue_namespaceObject.onBeforeUnmount)(onUnmountedFn);
3633
3635
  var transBoundary = (0,external_vue_namespaceObject.computed)(function () {
3634
- return !props.disableTeleport;
3636
+ return localIsShow.value && !props.disableTeleport;
3635
3637
  });
3636
3638
  var show = function show() {
3637
3639
  showFn();
@@ -1,6 +1,5 @@
1
1
  .bk-popover.bk-pop2-content {
2
2
  position: absolute;
3
- display: none;
4
3
  padding: 12px;
5
4
  font-size: 12px;
6
5
  color: #fff;
@@ -8,6 +7,9 @@
8
7
  border-radius: 4px;
9
8
  box-sizing: border-box;
10
9
  }
10
+ .bk-popover.bk-pop2-content.hidden {
11
+ display: none;
12
+ }
11
13
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
12
14
  position: absolute;
13
15
  z-index: -1;
@@ -4,7 +4,10 @@
4
4
  .@{bk-prefix}-popover {
5
5
  &.@{bk-prefix}-pop2-content {
6
6
  position: absolute;
7
- display: none;
7
+
8
+ &.hidden {
9
+ display: none;
10
+ }
8
11
 
9
12
  padding: 12px;
10
13
 
@@ -129,7 +129,6 @@
129
129
  }
130
130
  .bk-popover.bk-pop2-content {
131
131
  position: absolute;
132
- display: none;
133
132
  padding: 12px;
134
133
  font-size: 12px;
135
134
  color: #fff;
@@ -137,6 +136,9 @@
137
136
  border-radius: 4px;
138
137
  box-sizing: border-box;
139
138
  }
139
+ .bk-popover.bk-pop2-content.hidden {
140
+ display: none;
141
+ }
140
142
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
141
143
  position: absolute;
142
144
  z-index: -1;
@@ -1730,8 +1730,7 @@ var BKZIndexManager = /*#__PURE__*/function () {
1730
1730
  this.storageLayerIndexValue[type] = this.storageLayerIndexValue[type] + 1;
1731
1731
  return this.storageLayerIndexValue[type];
1732
1732
  }
1733
- this.storageLayerIndexValue[BKLAYERTYPE.MODAL] = this.storageLayerIndexValue[BKLAYERTYPE.MODAL] + 1;
1734
- return this.storageLayerIndexValue[BKLAYERTYPE.MODAL];
1733
+ this.getNextIndex(BKLAYERTYPE.MODAL);
1735
1734
  }
1736
1735
  /** 获取弹窗类型最新zIndex的值 */
1737
1736
  }, {
@@ -92,12 +92,12 @@ declare const BkSideslider: {
92
92
  default: string;
93
93
  };
94
94
  }>> & {
95
- onShown?: (...args: any[]) => any;
96
95
  onHidden?: (...args: any[]) => any;
96
+ onShown?: (...args: any[]) => any;
97
97
  onClosed?: (...args: any[]) => any;
98
98
  "onUpdate:isShow"?: (...args: any[]) => any;
99
99
  "onAnimation-end"?: (...args: any[]) => any;
100
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("shown" | "hidden" | "closed" | "update:isShow" | "animation-end")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
100
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
101
101
  direction: {
102
102
  type: StringConstructor;
103
103
  default: string;
@@ -190,8 +190,8 @@ declare const BkSideslider: {
190
190
  default: string;
191
191
  };
192
192
  }>> & {
193
- onShown?: (...args: any[]) => any;
194
193
  onHidden?: (...args: any[]) => any;
194
+ onShown?: (...args: any[]) => any;
195
195
  onClosed?: (...args: any[]) => any;
196
196
  "onUpdate:isShow"?: (...args: any[]) => any;
197
197
  "onAnimation-end"?: (...args: any[]) => any;
@@ -316,8 +316,8 @@ declare const BkSideslider: {
316
316
  default: string;
317
317
  };
318
318
  }>> & {
319
- onShown?: (...args: any[]) => any;
320
319
  onHidden?: (...args: any[]) => any;
320
+ onShown?: (...args: any[]) => any;
321
321
  onClosed?: (...args: any[]) => any;
322
322
  "onUpdate:isShow"?: (...args: any[]) => any;
323
323
  "onAnimation-end"?: (...args: any[]) => any;
@@ -439,12 +439,12 @@ declare const BkSideslider: {
439
439
  default: string;
440
440
  };
441
441
  }>> & {
442
- onShown?: (...args: any[]) => any;
443
442
  onHidden?: (...args: any[]) => any;
443
+ onShown?: (...args: any[]) => any;
444
444
  onClosed?: (...args: any[]) => any;
445
445
  "onUpdate:isShow"?: (...args: any[]) => any;
446
446
  "onAnimation-end"?: (...args: any[]) => any;
447
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("shown" | "hidden" | "closed" | "update:isShow" | "animation-end")[], "shown" | "hidden" | "closed" | "update:isShow" | "animation-end", {
447
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], "hidden" | "shown" | "closed" | "update:isShow" | "animation-end", {
448
448
  title: string;
449
449
  width: string | number;
450
450
  height: string | number;
@@ -90,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
90
90
  top: import("vue-types").VueTypeValidableDef<string> & {
91
91
  default: string;
92
92
  };
93
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("shown" | "hidden" | "closed" | "update:isShow" | "animation-end")[], "shown" | "hidden" | "closed" | "update:isShow" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
93
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hidden" | "shown" | "closed" | "update:isShow" | "animation-end")[], "hidden" | "shown" | "closed" | "update:isShow" | "animation-end", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
94
94
  direction: {
95
95
  type: StringConstructor;
96
96
  default: string;
@@ -183,8 +183,8 @@ declare const _default: import("vue").DefineComponent<{
183
183
  default: string;
184
184
  };
185
185
  }>> & {
186
- onShown?: (...args: any[]) => any;
187
186
  onHidden?: (...args: any[]) => any;
187
+ onShown?: (...args: any[]) => any;
188
188
  onClosed?: (...args: any[]) => any;
189
189
  "onUpdate:isShow"?: (...args: any[]) => any;
190
190
  "onAnimation-end"?: (...args: any[]) => any;
@@ -101,6 +101,8 @@ declare const _default: import("vue").DefineComponent<{
101
101
  default: number;
102
102
  };
103
103
  }, {
104
+ isIndexPropChanged: import("vue").Ref<boolean>;
105
+ setIsIndexChanged: (val: boolean) => void;
104
106
  initColumns: (_col: Column | Column[], _rm?: boolean) => void;
105
107
  bkTableCache: {
106
108
  queueStack: (_: any, fn: any) => any;
@@ -1325,6 +1325,8 @@ declare const BkTable: {
1325
1325
  default: number;
1326
1326
  };
1327
1327
  }, {
1328
+ isIndexPropChanged: import("vue").Ref<boolean>;
1329
+ setIsIndexChanged: (val: boolean) => void;
1328
1330
  initColumns: (_col: import("./props").Column | import("./props").Column[], _rm?: boolean) => void;
1329
1331
  bkTableCache: {
1330
1332
  queueStack: (_: any, fn: any) => any;
@@ -122,7 +122,7 @@ function defineProperty_defineProperty(obj, key, value) {
122
122
  ;// CONCATENATED MODULE: external "vue"
123
123
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
124
124
  var external_vue_y = x => () => x
125
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
125
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
126
126
  ;// CONCATENATED MODULE: ../../packages/table/src/const.ts
127
127
 
128
128
  /*
@@ -704,12 +704,26 @@ var TableColumnProp = {
704
704
  var column = (0,external_vue_namespaceObject.reactive)(Object.assign({}, props, {
705
705
  field: props.prop || props.field
706
706
  }));
707
+ var isIndexPropChanged = (0,external_vue_namespaceObject.ref)(false);
708
+ var setIsIndexChanged = function setIsIndexChanged(val) {
709
+ isIndexPropChanged.value = val;
710
+ };
707
711
  return {
712
+ isIndexPropChanged: isIndexPropChanged,
713
+ setIsIndexChanged: setIsIndexChanged,
708
714
  initColumns: initColumns,
709
715
  bkTableCache: bkTableCache,
710
716
  column: column
711
717
  };
712
718
  },
719
+ watch: {
720
+ index: {
721
+ handler: function handler() {
722
+ this.setIsIndexChanged(!this.isIndexPropChanged);
723
+ },
724
+ deep: true
725
+ }
726
+ },
713
727
  unmounted: function unmounted() {
714
728
  this.updateColumnDefine(true);
715
729
  },
@@ -717,7 +731,10 @@ var TableColumnProp = {
717
731
  this.updateColumnDefine();
718
732
  },
719
733
  updated: function updated() {
720
- this.updateColumnDefineByParent();
734
+ if (this.isIndexPropChanged) {
735
+ this.updateColumnDefineByParent();
736
+ this.setIsIndexChanged(!this.isIndexPropChanged);
737
+ }
721
738
  },
722
739
  methods: {
723
740
  updateColumnDefine: function updateColumnDefine() {
@@ -4469,13 +4486,15 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
4469
4486
  };
4470
4487
  var bkEllipsisIns = null;
4471
4488
  var resolveTooltipOption = function resolveTooltipOption() {
4489
+ var _getEllipsisTarget$cl, _getEllipsisTarget, _getEllipsisTarget$cl2;
4472
4490
  var _resolveSetting = resolveSetting(),
4473
4491
  _resolveSetting$showO = _resolveSetting.showOverflowTooltip,
4474
4492
  showOverflowTooltip = _resolveSetting$showO === void 0 ? false : _resolveSetting$showO;
4475
4493
  var disabled = true;
4476
4494
  var resizerWay = props.resizerWay;
4495
+ var defaultContent = (_getEllipsisTarget$cl = (_getEllipsisTarget = getEllipsisTarget()) === null || _getEllipsisTarget === void 0 || (_getEllipsisTarget$cl2 = _getEllipsisTarget.cloneNode) === null || _getEllipsisTarget$cl2 === void 0 ? void 0 : _getEllipsisTarget$cl2.call(_getEllipsisTarget, true)) !== null && _getEllipsisTarget$cl !== void 0 ? _getEllipsisTarget$cl : '';
4477
4496
  var content = function content() {
4478
- return refRoot.value.innerText;
4497
+ return defaultContent;
4479
4498
  };
4480
4499
  var popoverOption = {};
4481
4500
  var mode = 'auto';
@@ -4488,7 +4507,7 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
4488
4507
  popoverOption = showOverflowTooltip.popoverOption;
4489
4508
  resizerWay = showOverflowTooltip.resizerWay || 'debounce';
4490
4509
  content = function content() {
4491
- return showOverflowTooltip.content || refRoot.value.innerText;
4510
+ return showOverflowTooltip.content || defaultContent;
4492
4511
  };
4493
4512
  if (typeof showOverflowTooltip.content === 'function') {
4494
4513
  content = function content() {
@@ -4518,8 +4537,8 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
4518
4537
  disabled = !((_props$column$showOve5 = (_props$column = props.column) === null || _props$column === void 0 || (_props$column = _props$column.showOverflowTooltip) === null || _props$column === void 0 ? void 0 : _props$column.showHead) !== null && _props$column$showOve5 !== void 0 ? _props$column$showOve5 : true);
4519
4538
  mode = 'auto';
4520
4539
  content = function content() {
4521
- var _getEllipsisTarget;
4522
- return (_getEllipsisTarget = getEllipsisTarget()) === null || _getEllipsisTarget === void 0 ? void 0 : _getEllipsisTarget.innerHTML;
4540
+ var _getEllipsisTarget$cl3, _getEllipsisTarget2, _getEllipsisTarget2$c;
4541
+ return (_getEllipsisTarget$cl3 = (_getEllipsisTarget2 = getEllipsisTarget()) === null || _getEllipsisTarget2 === void 0 || (_getEllipsisTarget2$c = _getEllipsisTarget2.cloneNode) === null || _getEllipsisTarget2$c === void 0 ? void 0 : _getEllipsisTarget2$c.call(_getEllipsisTarget2, true)) !== null && _getEllipsisTarget$cl3 !== void 0 ? _getEllipsisTarget$cl3 : '';
4523
4542
  };
4524
4543
  if (props.headExplain) {
4525
4544
  mode = 'static';
@@ -5260,8 +5279,10 @@ function head_filter_isSlot(s) {
5260
5279
  resolveClassName = _usePrefix.resolveClassName;
5261
5280
  var t = (0,config_provider_namespaceObject.useLocale)('table');
5262
5281
  var column = props.column;
5263
- var _toRefs = (0,external_vue_namespaceObject.toRefs)(props.column),
5264
- filter = _toRefs.filter;
5282
+ var filter = (0,external_vue_namespaceObject.computed)(function () {
5283
+ var _props$column;
5284
+ return (_props$column = props.column) === null || _props$column === void 0 ? void 0 : _props$column.filter;
5285
+ });
5265
5286
  var checked = (0,external_vue_namespaceObject.computed)(function () {
5266
5287
  var _filter$value$checked, _filter$value;
5267
5288
  return (_filter$value$checked = (_filter$value = filter.value) === null || _filter$value === void 0 ? void 0 : _filter$value.checked) !== null && _filter$value$checked !== void 0 ? _filter$value$checked : [];
@@ -736,7 +736,6 @@
736
736
  }
737
737
  .bk-popover.bk-pop2-content {
738
738
  position: absolute;
739
- display: none;
740
739
  padding: 12px;
741
740
  font-size: 12px;
742
741
  color: #fff;
@@ -744,6 +743,9 @@
744
743
  border-radius: 4px;
745
744
  box-sizing: border-box;
746
745
  }
746
+ .bk-popover.bk-pop2-content.hidden {
747
+ display: none;
748
+ }
747
749
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
748
750
  position: absolute;
749
751
  z-index: -1;
@@ -865,7 +865,6 @@
865
865
  }
866
866
  .bk-popover.bk-pop2-content {
867
867
  position: absolute;
868
- display: none;
869
868
  padding: 12px;
870
869
  font-size: 12px;
871
870
  color: #fff;
@@ -873,6 +872,9 @@
873
872
  border-radius: 4px;
874
873
  box-sizing: border-box;
875
874
  }
875
+ .bk-popover.bk-pop2-content.hidden {
876
+ display: none;
877
+ }
876
878
  .bk-popover.bk-pop2-content .bk-pop2-arrow {
877
879
  position: absolute;
878
880
  z-index: -1;
@@ -49,6 +49,8 @@ declare const BkTableColumn: {
49
49
  default: number;
50
50
  };
51
51
  }>>, {
52
+ isIndexPropChanged: import("vue").Ref<boolean>;
53
+ setIsIndexChanged: (val: boolean) => void;
52
54
  initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
53
55
  bkTableCache: {
54
56
  queueStack: (_: any, fn: any) => any;
@@ -293,6 +295,8 @@ declare const BkTableColumn: {
293
295
  default: number;
294
296
  };
295
297
  }>>, {
298
+ isIndexPropChanged: import("vue").Ref<boolean>;
299
+ setIsIndexChanged: (val: boolean) => void;
296
300
  initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
297
301
  bkTableCache: {
298
302
  queueStack: (_: any, fn: any) => any;
@@ -485,6 +489,8 @@ declare const BkTableColumn: {
485
489
  default: number;
486
490
  };
487
491
  }>>, {
492
+ isIndexPropChanged: import("vue").Ref<boolean>;
493
+ setIsIndexChanged: (val: boolean) => void;
488
494
  initColumns: (_col: import("../../bkui-vue").TableIColumn | import("../../bkui-vue").TableIColumn[], _rm?: boolean) => void;
489
495
  bkTableCache: {
490
496
  queueStack: (_: any, fn: any) => any;
@@ -83,7 +83,7 @@ function _defineProperty(obj, key, value) {
83
83
  ;// CONCATENATED MODULE: external "vue"
84
84
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
85
85
  var external_vue_y = x => () => x
86
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref });
86
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref });
87
87
  ;// CONCATENATED MODULE: ../../packages/table/src/const.ts
88
88
 
89
89
  /*
@@ -665,12 +665,26 @@ var TableColumnProp = {
665
665
  var column = (0,external_vue_namespaceObject.reactive)(Object.assign({}, props, {
666
666
  field: props.prop || props.field
667
667
  }));
668
+ var isIndexPropChanged = (0,external_vue_namespaceObject.ref)(false);
669
+ var setIsIndexChanged = function setIsIndexChanged(val) {
670
+ isIndexPropChanged.value = val;
671
+ };
668
672
  return {
673
+ isIndexPropChanged: isIndexPropChanged,
674
+ setIsIndexChanged: setIsIndexChanged,
669
675
  initColumns: initColumns,
670
676
  bkTableCache: bkTableCache,
671
677
  column: column
672
678
  };
673
679
  },
680
+ watch: {
681
+ index: {
682
+ handler: function handler() {
683
+ this.setIsIndexChanged(!this.isIndexPropChanged);
684
+ },
685
+ deep: true
686
+ }
687
+ },
674
688
  unmounted: function unmounted() {
675
689
  this.updateColumnDefine(true);
676
690
  },
@@ -678,7 +692,10 @@ var TableColumnProp = {
678
692
  this.updateColumnDefine();
679
693
  },
680
694
  updated: function updated() {
681
- this.updateColumnDefineByParent();
695
+ if (this.isIndexPropChanged) {
696
+ this.updateColumnDefineByParent();
697
+ this.setIsIndexChanged(!this.isIndexPropChanged);
698
+ }
682
699
  },
683
700
  methods: {
684
701
  updateColumnDefine: function updateColumnDefine() {
@@ -275,6 +275,9 @@ declare const BkVirtualRender: {
275
275
  width: string | number;
276
276
  height: string | number;
277
277
  maxHeight: number;
278
+ contentClassName: string | {
279
+ [key: string]: any;
280
+ };
278
281
  enabled: boolean;
279
282
  list: unknown[];
280
283
  minHeight: number;
@@ -284,9 +287,6 @@ declare const BkVirtualRender: {
284
287
  };
285
288
  lineHeight: any;
286
289
  scrollEvent: boolean;
287
- contentClassName: string | {
288
- [key: string]: any;
289
- };
290
290
  contentStyle: {
291
291
  [key: string]: any;
292
292
  };
@@ -456,6 +456,9 @@ declare const BkVirtualRender: {
456
456
  width: string | number;
457
457
  height: string | number;
458
458
  maxHeight: number;
459
+ contentClassName: string | {
460
+ [key: string]: any;
461
+ };
459
462
  enabled: boolean;
460
463
  list: unknown[];
461
464
  minHeight: number;
@@ -465,9 +468,6 @@ declare const BkVirtualRender: {
465
468
  };
466
469
  lineHeight: any;
467
470
  scrollEvent: boolean;
468
- contentClassName: string | {
469
- [key: string]: any;
470
- };
471
471
  contentStyle: {
472
472
  [key: string]: any;
473
473
  };
@@ -629,6 +629,9 @@ declare const BkVirtualRender: {
629
629
  width: string | number;
630
630
  height: string | number;
631
631
  maxHeight: number;
632
+ contentClassName: string | {
633
+ [key: string]: any;
634
+ };
632
635
  enabled: boolean;
633
636
  list: unknown[];
634
637
  minHeight: number;
@@ -638,9 +641,6 @@ declare const BkVirtualRender: {
638
641
  };
639
642
  lineHeight: any;
640
643
  scrollEvent: boolean;
641
- contentClassName: string | {
642
- [key: string]: any;
643
- };
644
644
  contentStyle: {
645
645
  [key: string]: any;
646
646
  };
@@ -278,6 +278,9 @@ declare const _default: import("vue").DefineComponent<{
278
278
  width: string | number;
279
279
  height: string | number;
280
280
  maxHeight: number;
281
+ contentClassName: string | {
282
+ [key: string]: any;
283
+ };
281
284
  enabled: boolean;
282
285
  list: unknown[];
283
286
  minHeight: number;
@@ -287,9 +290,6 @@ declare const _default: import("vue").DefineComponent<{
287
290
  };
288
291
  lineHeight: any;
289
292
  scrollEvent: boolean;
290
- contentClassName: string | {
291
- [key: string]: any;
292
- };
293
293
  contentStyle: {
294
294
  [key: string]: any;
295
295
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "1.0.3-beta.14",
3
+ "version": "1.0.3-beta.16",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",