bkui-vue 2.0.1-beta.42 → 2.0.1-beta.43

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.
package/lib/index.js CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
6
  export * as plugins from './plugins';
7
- export const version = "2.0.1-beta.42";
7
+ export const version = "2.0.1-beta.43";
8
8
  window.__bkui_vue_version__ = version;
@@ -95,7 +95,7 @@ declare const BkSearchSelect: {
95
95
  };
96
96
  documentArrowEvent: (e: KeyboardEvent) => void;
97
97
  handleClickOutside: (e: MouseEvent) => void;
98
- handleInputFocus: (event?: FocusEvent) => void;
98
+ handleInputFocus: () => void;
99
99
  handleInputChange: (event: Event) => void;
100
100
  handleInputPaste: (event: ClipboardEvent) => void;
101
101
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -109,7 +109,6 @@ declare const BkSearchSelect: {
109
109
  inputClearForWrapper: () => void;
110
110
  deleteInputTextNode: () => void;
111
111
  customPanelSubmit: (value: string) => void;
112
- refleshMenuHover: () => void;
113
112
  t: import("vue").ComputedRef<{
114
113
  pleaseSelect: string;
115
114
  loading: string;
@@ -218,7 +217,7 @@ declare const BkSearchSelect: {
218
217
  };
219
218
  documentArrowEvent: (e: KeyboardEvent) => void;
220
219
  handleClickOutside: (e: MouseEvent) => void;
221
- handleInputFocus: (event?: FocusEvent) => void;
220
+ handleInputFocus: () => void;
222
221
  handleInputChange: (event: Event) => void;
223
222
  handleInputPaste: (event: ClipboardEvent) => void;
224
223
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -232,7 +231,6 @@ declare const BkSearchSelect: {
232
231
  inputClearForWrapper: () => void;
233
232
  deleteInputTextNode: () => void;
234
233
  customPanelSubmit: (value: string) => void;
235
- refleshMenuHover: () => void;
236
234
  t: import("vue").ComputedRef<{
237
235
  pleaseSelect: string;
238
236
  loading: string;
@@ -529,7 +527,7 @@ declare const BkSearchSelect: {
529
527
  };
530
528
  documentArrowEvent: (e: KeyboardEvent) => void;
531
529
  handleClickOutside: (e: MouseEvent) => void;
532
- handleInputFocus: (event?: FocusEvent) => void;
530
+ handleInputFocus: () => void;
533
531
  handleInputChange: (event: Event) => void;
534
532
  handleInputPaste: (event: ClipboardEvent) => void;
535
533
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -543,7 +541,6 @@ declare const BkSearchSelect: {
543
541
  inputClearForWrapper: () => void;
544
542
  deleteInputTextNode: () => void;
545
543
  customPanelSubmit: (value: string) => void;
546
- refleshMenuHover: () => void;
547
544
  t: import("vue").ComputedRef<{
548
545
  pleaseSelect: string;
549
546
  loading: string;
@@ -652,7 +649,7 @@ declare const BkSearchSelect: {
652
649
  };
653
650
  documentArrowEvent: (e: KeyboardEvent) => void;
654
651
  handleClickOutside: (e: MouseEvent) => void;
655
- handleInputFocus: (event?: FocusEvent) => void;
652
+ handleInputFocus: () => void;
656
653
  handleInputChange: (event: Event) => void;
657
654
  handleInputPaste: (event: ClipboardEvent) => void;
658
655
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -666,7 +663,6 @@ declare const BkSearchSelect: {
666
663
  inputClearForWrapper: () => void;
667
664
  deleteInputTextNode: () => void;
668
665
  customPanelSubmit: (value: string) => void;
669
- refleshMenuHover: () => void;
670
666
  t: import("vue").ComputedRef<{
671
667
  pleaseSelect: string;
672
668
  loading: string;
@@ -918,7 +914,7 @@ declare const BkSearchSelect: {
918
914
  };
919
915
  documentArrowEvent: (e: KeyboardEvent) => void;
920
916
  handleClickOutside: (e: MouseEvent) => void;
921
- handleInputFocus: (event?: FocusEvent) => void;
917
+ handleInputFocus: () => void;
922
918
  handleInputChange: (event: Event) => void;
923
919
  handleInputPaste: (event: ClipboardEvent) => void;
924
920
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -932,7 +928,6 @@ declare const BkSearchSelect: {
932
928
  inputClearForWrapper: () => void;
933
929
  deleteInputTextNode: () => void;
934
930
  customPanelSubmit: (value: string) => void;
935
- refleshMenuHover: () => void;
936
931
  t: import("vue").ComputedRef<{
937
932
  pleaseSelect: string;
938
933
  loading: string;
@@ -1041,7 +1036,7 @@ declare const BkSearchSelect: {
1041
1036
  };
1042
1037
  documentArrowEvent: (e: KeyboardEvent) => void;
1043
1038
  handleClickOutside: (e: MouseEvent) => void;
1044
- handleInputFocus: (event?: FocusEvent) => void;
1039
+ handleInputFocus: () => void;
1045
1040
  handleInputChange: (event: Event) => void;
1046
1041
  handleInputPaste: (event: ClipboardEvent) => void;
1047
1042
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -1055,7 +1050,6 @@ declare const BkSearchSelect: {
1055
1050
  inputClearForWrapper: () => void;
1056
1051
  deleteInputTextNode: () => void;
1057
1052
  customPanelSubmit: (value: string) => void;
1058
- refleshMenuHover: () => void;
1059
1053
  t: import("vue").ComputedRef<{
1060
1054
  pleaseSelect: string;
1061
1055
  loading: string;
@@ -1553,7 +1553,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1553
1553
  var usingItem = (0,external_vue_namespaceObject.ref)(props.defaultUsingItem);
1554
1554
  var menuHoverId = (0,external_vue_namespaceObject.ref)('');
1555
1555
  var loading = (0,external_vue_namespaceObject.ref)(false);
1556
- var debounceSetMenuList = (0,shared_namespaceObject.debounce)(100, setMenuList);
1556
+ var debounceSetMenuList = (0,shared_namespaceObject.debounce)(300, setMenuList);
1557
1557
  // const selectMenuList = ref<ICommonItem[]>([]);
1558
1558
  var isBindEvent = false;
1559
1559
  var remoteMenuList = (0,external_vue_namespaceObject.ref)([]);
@@ -1635,10 +1635,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1635
1635
  }
1636
1636
  }
1637
1637
  function documentEnterEvent(e) {
1638
- var _menuList$value2;
1639
1638
  if (!isBindEvent) return;
1640
1639
  e.preventDefault();
1641
- var item = (_menuList$value2 = menuList.value) === null || _menuList$value2 === void 0 ? void 0 : _menuList$value2.find(function (item) {
1640
+ var item = menuList.value.find(function (item) {
1642
1641
  return item.id === menuHoverId.value;
1643
1642
  });
1644
1643
  item && handleSelectItem(item);
@@ -1670,22 +1669,15 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1670
1669
  showPopover.value = false;
1671
1670
  emit('focus', isFocus.value);
1672
1671
  }
1673
- var isOriginFocus = false;
1674
- function handleInputFocus(event) {
1675
- if (isOriginFocus) return;
1672
+ function handleInputFocus() {
1676
1673
  showNoSelectValueError.value = false;
1677
1674
  if (props.mode === SearchInputMode.EDIT && usingItem.value && !isFocus.value) {
1678
1675
  var nodeList = Array.from(inputRef.value.querySelectorAll("[data-type=\"".concat(usingItem.value.values.length ? 'value' : usingItem.value.type, "\"]")));
1679
1676
  if (!nodeList.length) return;
1680
- event === null || event === void 0 || event.preventDefault();
1681
1677
  var range = document.createRange();
1682
1678
  var selection = window.getSelection();
1683
1679
  range.selectNodeContents(nodeList.at(-1));
1684
1680
  selection === null || selection === void 0 || selection.removeAllRanges();
1685
- isOriginFocus = true;
1686
- setTimeout(function () {
1687
- isOriginFocus = false;
1688
- }, 200);
1689
1681
  selection.addRange(range); // 注意这里会触发focus事件
1690
1682
  setInputFocus(true, false);
1691
1683
  return;
@@ -1730,13 +1722,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1730
1722
  case 'NumpadEnter':
1731
1723
  if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
1732
1724
  return item.id === menuHoverId.value;
1733
- })) {
1734
- var _keyword$value;
1735
- if (!usingItem.value && (_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
1736
- event.preventDefault();
1737
- }
1738
- return;
1739
- }
1725
+ })) return;
1740
1726
  handleKeyEnter(event).then(function (v) {
1741
1727
  return v && clearInput();
1742
1728
  });
@@ -1823,7 +1809,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1823
1809
  var _usingItem$value3;
1824
1810
  // 删除已选择项
1825
1811
  if (!usingItem.value && !keyword.value) {
1826
- menuHoverId.value = '';
1827
1812
  emit('delete');
1828
1813
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
1829
1814
  setTimeout(setMenuList, 16);
@@ -2055,7 +2040,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2055
2040
  function _setMenuList() {
2056
2041
  _setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
2057
2042
  var _props$data, _usingItem$value$sear, _usingItem$value$valu;
2058
- var list, _usingItem$value14, _keyword$value3, hoverItem;
2043
+ var list, _usingItem$value14, _keyword$value2, hoverItem;
2059
2044
  return regenerator_default().wrap(function _callee5$(_context5) {
2060
2045
  while (1) switch (_context5.prev = _context5.next) {
2061
2046
  case 0:
@@ -2076,7 +2061,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2076
2061
  break;
2077
2062
  case 9:
2078
2063
  if (!(usingItem !== null && usingItem !== void 0 && usingItem.value)) {
2079
- if (!((_keyword$value3 = keyword.value) !== null && _keyword$value3 !== void 0 && _keyword$value3.length)) {
2064
+ if (!((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length)) {
2080
2065
  list = props.data.filter(function (item) {
2081
2066
  return !item.isSelected;
2082
2067
  }).slice();
@@ -2254,7 +2239,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2254
2239
  isFocus.value = true;
2255
2240
  showPopover.value = true;
2256
2241
  showNoSelectValueError.value = false;
2257
- !props.getMenuList && needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
2242
+ needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
2258
2243
  emit('focus', isFocus.value);
2259
2244
  }
2260
2245
  function setSelectedItem(item) {
@@ -2293,8 +2278,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2293
2278
  return undefined;
2294
2279
  }
2295
2280
  function deleteInputTextNode() {
2296
- var _keyword$value2;
2297
- if ((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length) {
2281
+ var _keyword$value;
2282
+ if ((_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
2298
2283
  keyword.value = '';
2299
2284
  var nodes = Array.from(inputRef.value.childNodes);
2300
2285
  nodes.forEach(function (node) {
@@ -2348,19 +2333,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2348
2333
  return v && clearInput();
2349
2334
  });
2350
2335
  }
2351
- function refleshMenuHover() {
2352
- if (!usingItem.value) {
2353
- menuHoverId.value = '';
2354
- }
2355
- }
2356
2336
  // expose
2357
2337
  expose({
2358
2338
  inputFocusForWrapper: inputFocusForWrapper,
2359
2339
  inputEnterForWrapper: inputEnterForWrapper,
2360
2340
  inputClearForWrapper: inputClearForWrapper,
2361
2341
  handleInputFocus: handleInputFocus,
2362
- isFocus: isFocus,
2363
- refleshMenuHover: refleshMenuHover
2342
+ isFocus: isFocus
2364
2343
  });
2365
2344
  return {
2366
2345
  popoverRef: popoverRef,
@@ -2391,7 +2370,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2391
2370
  inputClearForWrapper: inputClearForWrapper,
2392
2371
  deleteInputTextNode: deleteInputTextNode,
2393
2372
  customPanelSubmit: customPanelSubmit,
2394
- refleshMenuHover: refleshMenuHover,
2395
2373
  t: t
2396
2374
  };
2397
2375
  },
@@ -2950,7 +2928,6 @@ var SearchSelectProps = {
2950
2928
  var list = selectedList.value.slice();
2951
2929
  list.splice(typeof index === 'number' ? index : selectedList.value.length - 1, 1);
2952
2930
  onValidate('');
2953
- inputRef.value.refleshMenuHover();
2954
2931
  emit('update:modelValue', list.map(function (item) {
2955
2932
  return item.toValue();
2956
2933
  }));
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
53
53
  };
54
54
  documentArrowEvent: (e: KeyboardEvent) => void;
55
55
  handleClickOutside: (e: MouseEvent) => void;
56
- handleInputFocus: (event?: FocusEvent) => void;
56
+ handleInputFocus: () => void;
57
57
  handleInputChange: (event: Event) => void;
58
58
  handleInputPaste: (event: ClipboardEvent) => void;
59
59
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -67,7 +67,6 @@ declare const _default: import("vue").DefineComponent<{
67
67
  inputClearForWrapper: () => void;
68
68
  deleteInputTextNode: () => void;
69
69
  customPanelSubmit: (value: string) => void;
70
- refleshMenuHover: () => void;
71
70
  t: import("vue").ComputedRef<{
72
71
  pleaseSelect: string;
73
72
  loading: string;
@@ -127,7 +127,7 @@ declare const _default: import("vue").DefineComponent<{
127
127
  };
128
128
  documentArrowEvent: (e: KeyboardEvent) => void;
129
129
  handleClickOutside: (e: MouseEvent) => void;
130
- handleInputFocus: (event?: FocusEvent) => void;
130
+ handleInputFocus: () => void;
131
131
  handleInputChange: (event: Event) => void;
132
132
  handleInputPaste: (event: ClipboardEvent) => void;
133
133
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -141,7 +141,6 @@ declare const _default: import("vue").DefineComponent<{
141
141
  inputClearForWrapper: () => void;
142
142
  deleteInputTextNode: () => void;
143
143
  customPanelSubmit: (value: string) => void;
144
- refleshMenuHover: () => void;
145
144
  t: import("vue").ComputedRef<{
146
145
  pleaseSelect: string;
147
146
  loading: string;
@@ -250,7 +249,7 @@ declare const _default: import("vue").DefineComponent<{
250
249
  };
251
250
  documentArrowEvent: (e: KeyboardEvent) => void;
252
251
  handleClickOutside: (e: MouseEvent) => void;
253
- handleInputFocus: (event?: FocusEvent) => void;
252
+ handleInputFocus: () => void;
254
253
  handleInputChange: (event: Event) => void;
255
254
  handleInputPaste: (event: ClipboardEvent) => void;
256
255
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -264,7 +263,6 @@ declare const _default: import("vue").DefineComponent<{
264
263
  inputClearForWrapper: () => void;
265
264
  deleteInputTextNode: () => void;
266
265
  customPanelSubmit: (value: string) => void;
267
- refleshMenuHover: () => void;
268
266
  t: import("vue").ComputedRef<{
269
267
  pleaseSelect: string;
270
268
  loading: string;
@@ -79,7 +79,7 @@ declare const _default: import("vue").DefineComponent<{
79
79
  };
80
80
  documentArrowEvent: (e: KeyboardEvent) => void;
81
81
  handleClickOutside: (e: MouseEvent) => void;
82
- handleInputFocus: (event?: FocusEvent) => void;
82
+ handleInputFocus: () => void;
83
83
  handleInputChange: (event: Event) => void;
84
84
  handleInputPaste: (event: ClipboardEvent) => void;
85
85
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -93,7 +93,6 @@ declare const _default: import("vue").DefineComponent<{
93
93
  inputClearForWrapper: () => void;
94
94
  deleteInputTextNode: () => void;
95
95
  customPanelSubmit: (value: string) => void;
96
- refleshMenuHover: () => void;
97
96
  t: import("vue").ComputedRef<{
98
97
  pleaseSelect: string;
99
98
  loading: string;
@@ -202,7 +201,7 @@ declare const _default: import("vue").DefineComponent<{
202
201
  };
203
202
  documentArrowEvent: (e: KeyboardEvent) => void;
204
203
  handleClickOutside: (e: MouseEvent) => void;
205
- handleInputFocus: (event?: FocusEvent) => void;
204
+ handleInputFocus: () => void;
206
205
  handleInputChange: (event: Event) => void;
207
206
  handleInputPaste: (event: ClipboardEvent) => void;
208
207
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -216,7 +215,6 @@ declare const _default: import("vue").DefineComponent<{
216
215
  inputClearForWrapper: () => void;
217
216
  deleteInputTextNode: () => void;
218
217
  customPanelSubmit: (value: string) => void;
219
- refleshMenuHover: () => void;
220
218
  t: import("vue").ComputedRef<{
221
219
  pleaseSelect: string;
222
220
  loading: string;
@@ -79,9 +79,7 @@ declare const _default: import("vue").DefineComponent<{
79
79
  } & {
80
80
  default: number;
81
81
  };
82
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
83
- [key: string]: any;
84
- }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
82
+ }, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
85
83
  label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
86
84
  field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
87
85
  render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
@@ -181,6 +181,7 @@ declare const BkTable: {
181
181
  fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
182
182
  default: () => import("./props").FixedBottomOption;
183
183
  };
184
+ appendLastRow: import("vue-types").VueTypeDef<import("./props").AppendLastRowOption>;
184
185
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<ExtractPropTypes<{
185
186
  data: import("vue-types").VueTypeDef<any[]> & {
186
187
  default: () => any[];
@@ -358,6 +359,7 @@ declare const BkTable: {
358
359
  fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
359
360
  default: () => import("./props").FixedBottomOption;
360
361
  };
362
+ appendLastRow: import("vue-types").VueTypeDef<import("./props").AppendLastRowOption>;
361
363
  }>>, {
362
364
  data: any[];
363
365
  thead: import("./props").Thead;
@@ -589,6 +591,7 @@ declare const BkTable: {
589
591
  fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
590
592
  default: () => import("./props").FixedBottomOption;
591
593
  };
594
+ appendLastRow: import("vue-types").VueTypeDef<import("./props").AppendLastRowOption>;
592
595
  }>>, () => JSX.Element, {}, {}, {}, {
593
596
  data: any[];
594
597
  thead: import("./props").Thead;
@@ -817,6 +820,7 @@ declare const BkTable: {
817
820
  fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
818
821
  default: () => import("./props").FixedBottomOption;
819
822
  };
823
+ appendLastRow: import("vue-types").VueTypeDef<import("./props").AppendLastRowOption>;
820
824
  }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, string, {
821
825
  data: any[];
822
826
  thead: import("./props").Thead;
@@ -904,9 +908,7 @@ declare const BkTable: {
904
908
  } & {
905
909
  default: number;
906
910
  };
907
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
908
- [key: string]: any;
909
- }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
911
+ }, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
910
912
  label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
911
913
  field: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
912
914
  render: import("vue-types").VueTypeDef<import("./props").RenderFunctionString>;
@@ -17320,6 +17320,10 @@ __webpack_require__.d(__webpack_exports__, {
17320
17320
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17321
17321
  var y = x => () => x
17322
17322
  const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.throttle, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
17323
+ ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
17324
+ function _objectDestructuringEmpty(obj) {
17325
+ if (obj == null) throw new TypeError("Cannot destructure " + obj);
17326
+ }
17323
17327
  ;// CONCATENATED MODULE: external "vue"
17324
17328
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17325
17329
  var external_vue_y = x => () => x
@@ -17926,9 +17930,19 @@ var tableProps = {
17926
17930
  position: 'relative',
17927
17931
  height: LINE_HEIGHT
17928
17932
  }
17929
- }).def(null)
17933
+ }).def(null),
17934
+ /**
17935
+ * 表格尾部追加的行配置
17936
+ */
17937
+ appendLastRow: (0,external_vue_types_namespaceObject.toType)('AppendLastRowOption', {
17938
+ "default": {
17939
+ type: 'default',
17940
+ cellRender: undefined
17941
+ }
17942
+ })
17930
17943
  };
17931
17944
  ;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
17945
+
17932
17946
  /*
17933
17947
  * Tencent is pleased to support the open source community by making
17934
17948
  * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
@@ -17983,7 +17997,7 @@ var TableColumnProp = {
17983
17997
  name: 'TableColumn',
17984
17998
  props: TableColumnProp,
17985
17999
  setup: function setup(props, _ref) {
17986
- var slots = _ref.slots;
18000
+ _objectDestructuringEmpty(_ref);
17987
18001
  var initTableColumns = (0,external_vue_namespaceObject.inject)(PROVIDE_KEY_INIT_COL, function () {});
17988
18002
  var lastPropsVal = {};
17989
18003
  (0,external_vue_namespaceObject.watch)(function () {
@@ -18000,12 +18014,7 @@ var TableColumnProp = {
18000
18014
  (0,external_vue_namespaceObject.onUnmounted)(function () {
18001
18015
  initTableColumns();
18002
18016
  });
18003
- return function () {
18004
- var _slots$default;
18005
- return (_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots, {
18006
- row: {}
18007
- });
18008
- };
18017
+ return function () {};
18009
18018
  }
18010
18019
  }));
18011
18020
  ;// CONCATENATED MODULE: ../../packages/table/src/events.ts
@@ -18187,6 +18196,9 @@ var CELL_EVENT_TYPES = defineProperty_defineProperty(defineProperty_defineProper
18187
18196
  handleMouseoutDragSection(target);
18188
18197
  dragColumn = null;
18189
18198
  };
18199
+ var throttleUpdateDragOffsetX = (0,lodash.throttle)(function (diff) {
18200
+ dragOffsetX.value = dragOffsetX.value + diff;
18201
+ });
18190
18202
  var handleMouseDragMove = function handleMouseDragMove(e) {
18191
18203
  stopDefaultEvent(e);
18192
18204
  document.body.style.setProperty('user-select', 'none');
@@ -18196,7 +18208,7 @@ var CELL_EVENT_TYPES = defineProperty_defineProperty(defineProperty_defineProper
18196
18208
  var resolveWidth = getColumnOrderWidth(dragColumn, ORDER_LIST) + diff;
18197
18209
  var minWidth = getColumnOrderWidth(dragColumn, [COLUMN_ATTRIBUTE.COL_MIN_WIDTH]);
18198
18210
  if (minWidth < resolveWidth) {
18199
- dragOffsetX.value = dragOffsetX.value + diff;
18211
+ throttleUpdateDragOffsetX(diff);
18200
18212
  }
18201
18213
  };
18202
18214
  var setNodeCursor = function () {
@@ -21224,7 +21236,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
21224
21236
  };
21225
21237
  var setRootStyleVars = (0,shared_namespaceObject.throttle)(function () {
21226
21238
  var _refRoot$value3, _refRoot$value4, _refRoot$value5, _refRoot$value6, _refRoot$value7;
21227
- (_refRoot$value3 = refRoot.value) === null || _refRoot$value3 === void 0 || (_refRoot$value3 = _refRoot$value3.style) === null || _refRoot$value3 === void 0 || _refRoot$value3.setProperty('--drag-offset-x', "".concat(dragOffsetX.value, "px"));
21239
+ (_refRoot$value3 = refRoot.value) === null || _refRoot$value3 === void 0 || (_refRoot$value3 = _refRoot$value3.style) === null || _refRoot$value3 === void 0 || _refRoot$value3.setProperty('--drag-offset-x', "".concat(dragOffsetX.value + translateX.value, "px"));
21228
21240
  (_refRoot$value4 = refRoot.value) === null || _refRoot$value4 === void 0 || (_refRoot$value4 = _refRoot$value4.style) === null || _refRoot$value4 === void 0 || _refRoot$value4.setProperty('--drag-offset-h-x', "".concat(dragOffsetX.value - 2, "px"));
21229
21241
  (_refRoot$value5 = refRoot.value) === null || _refRoot$value5 === void 0 || (_refRoot$value5 = _refRoot$value5.style) === null || _refRoot$value5 === void 0 || _refRoot$value5.setProperty('--translate-y', "".concat(translateY.value, "px"));
21230
21242
  (_refRoot$value6 = refRoot.value) === null || _refRoot$value6 === void 0 || (_refRoot$value6 = _refRoot$value6.style) === null || _refRoot$value6 === void 0 || _refRoot$value6.setProperty('--translate-x', "".concat(translateX.value, "px"));
@@ -23245,17 +23257,44 @@ function use_render_isSlot(s) {
23245
23257
  };
23246
23258
  /** **************************************** Rows Render ******************************* **/
23247
23259
  var renderAppendLastRow = function renderAppendLastRow() {
23248
- if (ctx.slots.appendLastRow) {
23249
- var rowId = 'append-last-row';
23260
+ var rowId = 'append-last-row';
23261
+ var rowStyle = [].concat(_toConsumableArray(formatPropAsArray(props.rowStyle, [])), [{
23262
+ '--row-height': "".concat(getRowHeight(null, null), "px")
23263
+ }]);
23264
+ if (props.appendLastRow.type === 'default') {
23265
+ if (ctx.slots.appendLastRow) {
23266
+ var _props$appendLastRow$, _props$appendLastRow$2, _props$appendLastRow;
23267
+ return (0,external_vue_namespaceObject.createVNode)(table_row, {
23268
+ "key": rowId
23269
+ }, {
23270
+ "default": function _default() {
23271
+ return [(0,external_vue_namespaceObject.createVNode)("tr", {
23272
+ "key": rowId,
23273
+ "style": rowStyle
23274
+ }, [(0,external_vue_namespaceObject.createVNode)("td", {
23275
+ "colspan": columns.visibleColumns.length
23276
+ }, [(_props$appendLastRow$ = (_props$appendLastRow$2 = (_props$appendLastRow = props.appendLastRow).cellRender) === null || _props$appendLastRow$2 === void 0 ? void 0 : _props$appendLastRow$2.call(_props$appendLastRow, null, null)) !== null && _props$appendLastRow$ !== void 0 ? _props$appendLastRow$ : ctx.slots.appendLastRow()])])];
23277
+ }
23278
+ });
23279
+ }
23280
+ return;
23281
+ }
23282
+ if (props.appendLastRow.type === 'summary') {
23250
23283
  return (0,external_vue_namespaceObject.createVNode)(table_row, {
23251
23284
  "key": rowId
23252
23285
  }, {
23253
23286
  "default": function _default() {
23254
23287
  return [(0,external_vue_namespaceObject.createVNode)("tr", {
23255
- "key": rowId
23256
- }, [(0,external_vue_namespaceObject.createVNode)("td", {
23257
- "colspan": columns.visibleColumns.length
23258
- }, [ctx.slots.appendLastRow()])])];
23288
+ "key": rowId,
23289
+ "style": rowStyle
23290
+ }, [columns.visibleColumns.map(function (column, index) {
23291
+ var _ref2, _props$appendLastRow$3, _props$appendLastRow$4, _props$appendLastRow2;
23292
+ return (0,external_vue_namespaceObject.createVNode)("td", null, [(0,external_vue_namespaceObject.createVNode)(table_cell, null, {
23293
+ "default": function _default() {
23294
+ return [(_ref2 = (_props$appendLastRow$3 = (_props$appendLastRow$4 = (_props$appendLastRow2 = props.appendLastRow).cellRender) === null || _props$appendLastRow$4 === void 0 ? void 0 : _props$appendLastRow$4.call(_props$appendLastRow2, column, index)) !== null && _props$appendLastRow$3 !== void 0 ? _props$appendLastRow$3 : column.field) !== null && _ref2 !== void 0 ? _ref2 : column.prop];
23295
+ }
23296
+ })]);
23297
+ })])];
23259
23298
  }
23260
23299
  });
23261
23300
  }
@@ -23354,9 +23393,9 @@ function use_render_isSlot(s) {
23354
23393
  skipRow: false
23355
23394
  });
23356
23395
  }
23357
- var _ref2 = (_store$get$get = (_store$get = store.get(preRow)) === null || _store$get === void 0 ? void 0 : _store$get.get(col)) !== null && _store$get$get !== void 0 ? _store$get$get : {},
23358
- _ref2$skipRowLen = _ref2.skipRowLen,
23359
- skipRowLen = _ref2$skipRowLen === void 0 ? 0 : _ref2$skipRowLen;
23396
+ var _ref3 = (_store$get$get = (_store$get = store.get(preRow)) === null || _store$get === void 0 ? void 0 : _store$get.get(col)) !== null && _store$get$get !== void 0 ? _store$get$get : {},
23397
+ _ref3$skipRowLen = _ref3.skipRowLen,
23398
+ skipRowLen = _ref3$skipRowLen === void 0 ? 0 : _ref3$skipRowLen;
23360
23399
  var skipRow = false;
23361
23400
  var rowspan = resolveColumnSpan(col, null, row, rowIndex, 'rowspan');
23362
23401
  if (skipRowLen > 1) {
@@ -23414,10 +23453,10 @@ function use_render_isSlot(s) {
23414
23453
  rowspan = _resolveCellSpan.rowspan;
23415
23454
  var _columns$getColumnAtt = columns.getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SPAN),
23416
23455
  skipCol = _columns$getColumnAtt.skipCol;
23417
- var _ref3 = needRowSpan && !isChild ? getRowSpanConfig(row, rowIndex, preRow, column, rowSpanMap) : {
23456
+ var _ref4 = needRowSpan && !isChild ? getRowSpanConfig(row, rowIndex, preRow, column, rowSpanMap) : {
23418
23457
  skipRow: false
23419
23458
  },
23420
- skipRow = _ref3.skipRow;
23459
+ skipRow = _ref4.skipRow;
23421
23460
  var tdCtxClass = {
23422
23461
  'expand-cell': column.type === 'expand'
23423
23462
  };
@@ -250,6 +250,10 @@ export type FixedBottomOption = {
250
250
  height: number;
251
251
  loading?: boolean;
252
252
  };
253
+ export type AppendLastRowOption = {
254
+ type: 'default' | 'summary';
255
+ cellRender?: (column: Column, index: number) => VNode | number | string;
256
+ };
253
257
  export declare const tableProps: {
254
258
  /**
255
259
  * 渲染列表
@@ -619,5 +623,9 @@ export declare const tableProps: {
619
623
  fixedBottom: import("vue-types").VueTypeDef<FixedBottomOption> & {
620
624
  default: () => FixedBottomOption;
621
625
  };
626
+ /**
627
+ * 表格尾部追加的行配置
628
+ */
629
+ appendLastRow: import("vue-types").VueTypeDef<AppendLastRowOption>;
622
630
  };
623
631
  export {};
@@ -1540,7 +1540,7 @@
1540
1540
  z-index: 1;
1541
1541
  width: 6px;
1542
1542
  background-color: #3785ff;
1543
- transform: translate(var(--drag-offset-h-x), 0);
1543
+ transform: translate3d(var(--drag-offset-h-x), 0, 0);
1544
1544
  pointer-events: none;
1545
1545
  }
1546
1546
  .bk-table .bk-table-head .bk-table-fixed {
@@ -175,6 +175,7 @@ declare const _default: import("vue").DefineComponent<{
175
175
  fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
176
176
  default: () => import("./props").FixedBottomOption;
177
177
  };
178
+ appendLastRow: import("vue-types").VueTypeDef<import("./props").AppendLastRowOption>;
178
179
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
179
180
  data: import("vue-types").VueTypeDef<any[]> & {
180
181
  default: () => any[];
@@ -352,6 +353,7 @@ declare const _default: import("vue").DefineComponent<{
352
353
  fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
353
354
  default: () => import("./props").FixedBottomOption;
354
355
  };
356
+ appendLastRow: import("vue-types").VueTypeDef<import("./props").AppendLastRowOption>;
355
357
  }>>, {
356
358
  data: any[];
357
359
  thead: import("./props").Thead;
@@ -351,7 +351,7 @@
351
351
  z-index: 1;
352
352
  width: 6px;
353
353
  background-color: #3785ff;
354
- transform: translate(var(--drag-offset-h-x), 0);
354
+ transform: translate3d(var(--drag-offset-h-x), 0, 0);
355
355
  pointer-events: none;
356
356
  }
357
357
 
@@ -1930,7 +1930,7 @@
1930
1930
  z-index: 1;
1931
1931
  width: 6px;
1932
1932
  background-color: #3785ff;
1933
- transform: translate(var(--drag-offset-h-x), 0);
1933
+ transform: translate3d(var(--drag-offset-h-x), 0, 0);
1934
1934
  pointer-events: none;
1935
1935
  }
1936
1936
  .bk-table .bk-table-head .bk-table-fixed {
@@ -38,9 +38,7 @@ declare const BkTableColumn: {
38
38
  } & {
39
39
  default: number;
40
40
  };
41
- }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
42
- [key: string]: any;
43
- }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
41
+ }>>, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
44
42
  label: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
45
43
  field: import("vue-types").VueTypeDef<import("../table/props").LabelFunctionString>;
46
44
  render: import("vue-types").VueTypeDef<import("../table/props").RenderFunctionString>;
@@ -133,9 +131,7 @@ declare const BkTableColumn: {
133
131
  } & {
134
132
  default: number;
135
133
  };
136
- }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
137
- [key: string]: any;
138
- }>[], {}, {}, {}, {
134
+ }>>, () => void, {}, {}, {}, {
139
135
  fixed: boolean | "left" | "right";
140
136
  resizable: boolean;
141
137
  minWidth: string | number;
@@ -186,9 +182,7 @@ declare const BkTableColumn: {
186
182
  } & {
187
183
  default: number;
188
184
  };
189
- }>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
190
- [key: string]: any;
191
- }>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
185
+ }>>, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
192
186
  fixed: boolean | "left" | "right";
193
187
  resizable: boolean;
194
188
  minWidth: string | number;