bkui-vue 0.0.3-beta.2-9 → 0.0.3-beta.2-11

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.
@@ -794,8 +794,7 @@ var BKZIndexManager = /*#__PURE__*/function () {
794
794
  this.storageLayerIndexValue[type] = this.storageLayerIndexValue[type] + 1;
795
795
  return this.storageLayerIndexValue[type];
796
796
  }
797
- this.storageLayerIndexValue[BKLAYERTYPE.MODAL] = this.storageLayerIndexValue[BKLAYERTYPE.MODAL] + 1;
798
- return this.storageLayerIndexValue[BKLAYERTYPE.MODAL];
797
+ this.getNextIndex(BKLAYERTYPE.MODAL);
799
798
  }
800
799
  /** 获取弹窗类型最新zIndex的值 */
801
800
  }, {
@@ -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;
@@ -112,7 +112,7 @@ function defineProperty_defineProperty(obj, key, value) {
112
112
  ;// CONCATENATED MODULE: external "vue"
113
113
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
114
114
  var external_vue_y = x => () => x
115
- 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 });
115
+ 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 });
116
116
  ;// CONCATENATED MODULE: ../../packages/table/src/const.ts
117
117
 
118
118
  /*
@@ -694,18 +694,38 @@ var TableColumnProp = {
694
694
  var column = (0,external_vue_namespaceObject.reactive)(Object.assign({}, props, {
695
695
  field: props.prop || props.field
696
696
  }));
697
+ var isIndexPropChanged = (0,external_vue_namespaceObject.ref)(false);
698
+ var setIsIndexChanged = function setIsIndexChanged(val) {
699
+ isIndexPropChanged.value = val;
700
+ };
697
701
  return {
702
+ isIndexPropChanged: isIndexPropChanged,
703
+ setIsIndexChanged: setIsIndexChanged,
698
704
  initColumns: initColumns,
699
705
  bkTableCache: bkTableCache,
700
706
  column: column
701
707
  };
702
708
  },
709
+ watch: {
710
+ index: {
711
+ handler: function handler() {
712
+ this.setIsIndexChanged(!this.isIndexPropChanged);
713
+ },
714
+ deep: true
715
+ }
716
+ },
703
717
  unmounted: function unmounted() {
704
718
  this.updateColumnDefine(true);
705
719
  },
706
720
  mounted: function mounted() {
707
721
  this.updateColumnDefine();
708
722
  },
723
+ updated: function updated() {
724
+ if (this.isIndexPropChanged) {
725
+ this.updateColumnDefineByParent();
726
+ this.setIsIndexChanged(!this.isIndexPropChanged);
727
+ }
728
+ },
709
729
  methods: {
710
730
  updateColumnDefine: function updateColumnDefine() {
711
731
  var unmounted = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -728,7 +748,19 @@ var TableColumnProp = {
728
748
  var fn = function fn() {
729
749
  // @ts-ignore
730
750
  var selfVnode = _this._;
731
- var colList = selfVnode.parent.vnode.children["default"]() || [];
751
+ var getTableNode = function getTableNode() {
752
+ var _parentVnode$type;
753
+ var parentVnode = selfVnode.parent;
754
+ if (((_parentVnode$type = parentVnode.type) === null || _parentVnode$type === void 0 ? void 0 : _parentVnode$type.name) === 'Table') {
755
+ return parentVnode.vnode;
756
+ }
757
+ return getTableNode();
758
+ };
759
+ var tableNode = getTableNode();
760
+ if (!tableNode) {
761
+ return;
762
+ }
763
+ var colList = tableNode.children["default"]() || [];
732
764
  var sortColumns = [];
733
765
  var index = 0;
734
766
  var reduceColumns = function reduceColumns(nodes) {
@@ -736,7 +768,7 @@ var TableColumnProp = {
736
768
  return;
737
769
  }
738
770
  nodes.forEach(function (node) {
739
- var _node$type, _node$children2;
771
+ var _node$type, _node$children2, _node$type2;
740
772
  if (Array.isArray(node)) {
741
773
  reduceColumns(node);
742
774
  return;
@@ -754,7 +786,7 @@ var TableColumnProp = {
754
786
  sortColumns.push((0,external_vue_namespaceObject.unref)(resolveProp));
755
787
  index = index + 1;
756
788
  }
757
- if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length && skipValidateKey0) {
789
+ if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length && skipValidateKey0 && ((_node$type2 = node.type) === null || _node$type2 === void 0 ? void 0 : _node$type2.name) !== 'Table') {
758
790
  reduceColumns(node.children);
759
791
  }
760
792
  });
@@ -4392,14 +4424,21 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
4392
4424
  });
4393
4425
  var resolveSetting = function resolveSetting() {
4394
4426
  if (/boolean|object/.test(typeof_typeof(props.column.showOverflowTooltip)) && props.column.showOverflowTooltip !== null) {
4427
+ var _props$column$showOve = props.column.showOverflowTooltip,
4428
+ _props$column$showOve2 = _props$column$showOve.content,
4429
+ content = _props$column$showOve2 === void 0 ? '' : _props$column$showOve2,
4430
+ _props$column$showOve3 = _props$column$showOve.mode,
4431
+ mode = _props$column$showOve3 === void 0 ? undefined : _props$column$showOve3,
4432
+ _props$column$showOve4 = _props$column$showOve.popoverOption,
4433
+ popoverOption = _props$column$showOve4 === void 0 ? {} : _props$column$showOve4;
4395
4434
  var result = {
4396
4435
  showOverflowTooltip: {
4397
- content: '',
4436
+ content: content,
4398
4437
  disabled: !props.column.showOverflowTooltip,
4399
- mode: undefined,
4438
+ mode: mode,
4400
4439
  resizerWay: undefined,
4401
4440
  watchCellResize: undefined,
4402
- popoverOption: {}
4441
+ popoverOption: popoverOption
4403
4442
  }
4404
4443
  };
4405
4444
  if (props.parentSetting !== null && typeof_typeof(props.parentSetting) === 'object') {
@@ -4417,15 +4456,17 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
4417
4456
  showOverflowTooltip: props.parentSetting
4418
4457
  };
4419
4458
  };
4420
- var _resolveSetting = resolveSetting(),
4421
- _resolveSetting$showO = _resolveSetting.showOverflowTooltip,
4422
- showOverflowTooltip = _resolveSetting$showO === void 0 ? false : _resolveSetting$showO;
4423
4459
  var bkEllipsisIns = null;
4424
4460
  var resolveTooltipOption = function resolveTooltipOption() {
4461
+ var _getEllipsisTarget$cl, _getEllipsisTarget, _getEllipsisTarget$cl2;
4462
+ var _resolveSetting = resolveSetting(),
4463
+ _resolveSetting$showO = _resolveSetting.showOverflowTooltip,
4464
+ showOverflowTooltip = _resolveSetting$showO === void 0 ? false : _resolveSetting$showO;
4425
4465
  var disabled = true;
4426
4466
  var resizerWay = props.resizerWay;
4467
+ 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 : '';
4427
4468
  var content = function content() {
4428
- return refRoot.value.innerText;
4469
+ return defaultContent;
4429
4470
  };
4430
4471
  var popoverOption = {};
4431
4472
  var mode = 'auto';
@@ -4438,7 +4479,7 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
4438
4479
  popoverOption = showOverflowTooltip.popoverOption;
4439
4480
  resizerWay = showOverflowTooltip.resizerWay || 'debounce';
4440
4481
  content = function content() {
4441
- return showOverflowTooltip.content || refRoot.value.innerText;
4482
+ return showOverflowTooltip.content || defaultContent;
4442
4483
  };
4443
4484
  if (typeof showOverflowTooltip.content === 'function') {
4444
4485
  content = function content() {
@@ -4464,12 +4505,12 @@ const external_directives_namespaceObject = external_directives_x({ ["bkEllipsis
4464
4505
  }
4465
4506
  }
4466
4507
  if (props.isHead) {
4467
- var _props$column$showOve, _props$column;
4468
- disabled = !((_props$column$showOve = (_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$showOve !== void 0 ? _props$column$showOve : true);
4508
+ var _props$column$showOve5, _props$column;
4509
+ 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);
4469
4510
  mode = 'auto';
4470
4511
  content = function content() {
4471
- var _getEllipsisTarget;
4472
- return (_getEllipsisTarget = getEllipsisTarget()) === null || _getEllipsisTarget === void 0 ? void 0 : _getEllipsisTarget.innerHTML;
4512
+ var _getEllipsisTarget$cl3, _getEllipsisTarget2, _getEllipsisTarget2$c;
4513
+ 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 : '';
4473
4514
  };
4474
4515
  if (props.headExplain) {
4475
4516
  mode = 'static';
@@ -5017,13 +5058,14 @@ function _isSlot(s) {
5017
5058
  });
5018
5059
  });
5019
5060
  var lastDragRow = null;
5061
+ var lastDragRowClass = '';
5020
5062
  var insertPlaceDiv = function insertPlaceDiv(target, placement) {
5021
5063
  if (placement === '--top') {
5022
5064
  target.parentNode.insertBefore(placeDiv, target);
5023
5065
  return;
5024
5066
  }
5025
5067
  if (target.nextElementSibling === null) {
5026
- target.parentNode.appendChild(placeDiv);
5068
+ target.parentNode.append(placeDiv);
5027
5069
  return;
5028
5070
  }
5029
5071
  target.parentNode.insertBefore(placeDiv, target.nextElementSibling);
@@ -5079,6 +5121,7 @@ function _isSlot(s) {
5079
5121
  var onDragleave = function onDragleave(event) {
5080
5122
  beforeEventFire(function () {
5081
5123
  var target = getTargetRow(event);
5124
+ lastDragRowClass = target.classList.contains('--bottom') ? '--bottom' : '--top';
5082
5125
  removeDragClass(target, ['--drag-enter', '--bottom', '--top']);
5083
5126
  });
5084
5127
  };
@@ -5101,12 +5144,12 @@ function _isSlot(s) {
5101
5144
  var rowIndex = target.dataset.rowIndex;
5102
5145
  var targetIndex = Number(rowIndex);
5103
5146
  var sourceIndex = (_event$target$dataset = event.target.dataset) === null || _event$target$dataset === void 0 ? void 0 : _event$target$dataset.rowIndex;
5104
- if (target.classList.contains('--bottom')) {
5147
+ if (lastDragRowClass === '--bottom') {
5105
5148
  targetIndex = targetIndex + 1;
5106
5149
  }
5107
5150
  resp.changePageRowIndex(Number(sourceIndex), targetIndex);
5108
- removeDragClass(target, ['--drag-enter', '--bottom', '--top']);
5109
5151
  lastDragRow = null;
5152
+ lastDragRowClass = '';
5110
5153
  ctx.emit(EMIT_EVENTS.DRAG_END, {
5111
5154
  sourceEvent: event,
5112
5155
  data: resp.pageData
@@ -5181,8 +5224,10 @@ function head_filter_isSlot(s) {
5181
5224
  resolveClassName = _usePrefix.resolveClassName;
5182
5225
  var t = (0,external_config_provider_namespaceObject.useLocale)('table');
5183
5226
  var column = props.column;
5184
- var _toRefs = (0,external_vue_namespaceObject.toRefs)(props.column),
5185
- filter = _toRefs.filter;
5227
+ var filter = (0,external_vue_namespaceObject.computed)(function () {
5228
+ var _props$column;
5229
+ return (_props$column = props.column) === null || _props$column === void 0 ? void 0 : _props$column.filter;
5230
+ });
5186
5231
  var checked = (0,external_vue_namespaceObject.computed)(function () {
5187
5232
  var _filter$value$checked, _filter$value;
5188
5233
  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 : [];
@@ -43,7 +43,7 @@ export declare enum FixedEnum {
43
43
  RIGHT = "right"
44
44
  }
45
45
  export declare const fixedType: import("vue-types").VueTypeValidableDef<"right" | "left">;
46
- export type IOverflowTooltipProp = {
46
+ export type IOverflowTooltipOption = {
47
47
  content: string | Function;
48
48
  disabled?: (col: Column, row: any) => boolean | boolean;
49
49
  watchCellResize?: boolean;
@@ -51,7 +51,8 @@ export type IOverflowTooltipProp = {
51
51
  popoverOption?: any;
52
52
  resizerWay?: ResizerWay;
53
53
  showHead?: boolean;
54
- } | boolean;
54
+ };
55
+ export type IOverflowTooltipProp = IOverflowTooltipOption | boolean;
55
56
  export type IOverflowTooltip = IOverflowTooltipProp;
56
57
  export declare const IOverflowTooltipPropType: import("vue-types").VueTypeDef<IOverflowTooltipProp>;
57
58
  export type ISortOption = {
@@ -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;
@@ -82,7 +82,7 @@ function _defineProperty(obj, key, value) {
82
82
  ;// CONCATENATED MODULE: external "vue"
83
83
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
84
84
  var external_vue_y = x => () => x
85
- 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 });
85
+ 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 });
86
86
  ;// CONCATENATED MODULE: ../../packages/table/src/const.ts
87
87
 
88
88
  /*
@@ -664,18 +664,38 @@ var TableColumnProp = {
664
664
  var column = (0,external_vue_namespaceObject.reactive)(Object.assign({}, props, {
665
665
  field: props.prop || props.field
666
666
  }));
667
+ var isIndexPropChanged = (0,external_vue_namespaceObject.ref)(false);
668
+ var setIsIndexChanged = function setIsIndexChanged(val) {
669
+ isIndexPropChanged.value = val;
670
+ };
667
671
  return {
672
+ isIndexPropChanged: isIndexPropChanged,
673
+ setIsIndexChanged: setIsIndexChanged,
668
674
  initColumns: initColumns,
669
675
  bkTableCache: bkTableCache,
670
676
  column: column
671
677
  };
672
678
  },
679
+ watch: {
680
+ index: {
681
+ handler: function handler() {
682
+ this.setIsIndexChanged(!this.isIndexPropChanged);
683
+ },
684
+ deep: true
685
+ }
686
+ },
673
687
  unmounted: function unmounted() {
674
688
  this.updateColumnDefine(true);
675
689
  },
676
690
  mounted: function mounted() {
677
691
  this.updateColumnDefine();
678
692
  },
693
+ updated: function updated() {
694
+ if (this.isIndexPropChanged) {
695
+ this.updateColumnDefineByParent();
696
+ this.setIsIndexChanged(!this.isIndexPropChanged);
697
+ }
698
+ },
679
699
  methods: {
680
700
  updateColumnDefine: function updateColumnDefine() {
681
701
  var unmounted = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -698,7 +718,19 @@ var TableColumnProp = {
698
718
  var fn = function fn() {
699
719
  // @ts-ignore
700
720
  var selfVnode = _this._;
701
- var colList = selfVnode.parent.vnode.children["default"]() || [];
721
+ var getTableNode = function getTableNode() {
722
+ var _parentVnode$type;
723
+ var parentVnode = selfVnode.parent;
724
+ if (((_parentVnode$type = parentVnode.type) === null || _parentVnode$type === void 0 ? void 0 : _parentVnode$type.name) === 'Table') {
725
+ return parentVnode.vnode;
726
+ }
727
+ return getTableNode();
728
+ };
729
+ var tableNode = getTableNode();
730
+ if (!tableNode) {
731
+ return;
732
+ }
733
+ var colList = tableNode.children["default"]() || [];
702
734
  var sortColumns = [];
703
735
  var index = 0;
704
736
  var reduceColumns = function reduceColumns(nodes) {
@@ -706,7 +738,7 @@ var TableColumnProp = {
706
738
  return;
707
739
  }
708
740
  nodes.forEach(function (node) {
709
- var _node$type, _node$children2;
741
+ var _node$type, _node$children2, _node$type2;
710
742
  if (Array.isArray(node)) {
711
743
  reduceColumns(node);
712
744
  return;
@@ -724,7 +756,7 @@ var TableColumnProp = {
724
756
  sortColumns.push((0,external_vue_namespaceObject.unref)(resolveProp));
725
757
  index = index + 1;
726
758
  }
727
- if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length && skipValidateKey0) {
759
+ if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length && skipValidateKey0 && ((_node$type2 = node.type) === null || _node$type2 === void 0 ? void 0 : _node$type2.name) !== 'Table') {
728
760
  reduceColumns(node.children);
729
761
  }
730
762
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.3-beta.2-9",
3
+ "version": "0.0.3-beta.2-11",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",