bkui-vue 2.0.1-beta.15.table.5 → 2.0.1-beta.15.table.7

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.
@@ -9,14 +9,14 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/de
9
9
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
10
10
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
11
11
  import "../virtual-render/virtual-render.less";
12
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
13
- import "../checkbox/checkbox.less";
14
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
15
12
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_pagination_95c6c47e__ from "../pagination";
16
13
  import "../pagination/pagination.less";
17
14
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_exception_7490d0fd__ from "../exception";
18
15
  import "../exception/exception.less";
19
16
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
17
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
18
+ import "../checkbox/checkbox.less";
19
+ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
20
20
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a__ from "../button";
21
21
  import "../button/button.less";
22
22
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
@@ -20832,7 +20832,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
20832
20832
  var translateX = (0,external_vue_namespaceObject.ref)(0);
20833
20833
  var translateY = (0,external_vue_namespaceObject.ref)(0);
20834
20834
  var preBottom = (0,external_vue_namespaceObject.ref)(0);
20835
- var dragOffsetX = (0,external_vue_namespaceObject.ref)(-1000);
20835
+ var dragOffsetX = (0,external_vue_namespaceObject.ref)(-10000);
20836
20836
  var offsetRight = (0,external_vue_namespaceObject.ref)(0);
20837
20837
  var layout = (0,external_vue_namespaceObject.reactive)({});
20838
20838
  var fixedColumns = (0,external_vue_namespaceObject.reactive)([]);
@@ -20852,22 +20852,47 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
20852
20852
  var headClass = (0,external_vue_namespaceObject.computed)(function () {
20853
20853
  return (0,shared_namespaceObject.classes)(defineProperty_defineProperty(defineProperty_defineProperty({}, resolveClassName('table-head'), true), 'has-settings', !!props.settings));
20854
20854
  });
20855
+ var setFixedColumnShawdow = function setFixedColumnShawdow() {
20856
+ var rightShawdow = offsetRight.value > 0 ? '0 0 10px rgb(0 0 0 / 12%)' : null;
20857
+ var leftShawdow = translateX.value > 0 ? '0 0 10px rgb(0 0 0 / 12%)' : null;
20858
+ refRoot.value.style.setProperty('--shadow-right', rightShawdow);
20859
+ refRoot.value.style.setProperty('--shadow-left', leftShawdow);
20860
+ };
20861
+ var setRootStyleVars = (0,shared_namespaceObject.throttle)(function () {
20862
+ refRoot.value.style.setProperty('--drag-offset-x', "".concat(dragOffsetX.value, "px"));
20863
+ refRoot.value.style.setProperty('--drag-offset-h-x', "".concat(dragOffsetX.value - 3, "px"));
20864
+ refRoot.value.style.setProperty('--translate-y', "".concat(translateY.value, "px"));
20865
+ refRoot.value.style.setProperty('--translate-x', "".concat(translateX.value, "px"));
20866
+ refRoot.value.style.setProperty('--translate-x-1', "-".concat(translateX.value, "px"));
20867
+ setFixedColumnShawdow();
20868
+ });
20855
20869
  var setTranslateX = function setTranslateX(val) {
20856
20870
  translateX.value = val;
20871
+ setRootStyleVars();
20857
20872
  };
20858
20873
  var setTranslateY = function setTranslateY(val) {
20859
20874
  translateY.value = val;
20875
+ setRootStyleVars();
20876
+ };
20877
+ var initRootStyleVars = function initRootStyleVars() {
20878
+ refRoot.value.style.setProperty('--drag-offset-x', '-1000px');
20879
+ refRoot.value.style.setProperty('--drag-offset-h-x', '-1000px');
20880
+ refRoot.value.style.setProperty('--translate-y', '0px');
20881
+ refRoot.value.style.setProperty('--translate-x', '0px');
20882
+ refRoot.value.style.setProperty('--translate-x-1', '0px');
20860
20883
  };
20861
20884
  var setDragOffsetX = function setDragOffsetX(val) {
20862
20885
  dragOffsetX.value = val;
20886
+ setRootStyleVars();
20863
20887
  };
20864
20888
  var config = resolveHeadConfig(props);
20889
+ var headHeight = (0,external_vue_namespaceObject.computed)(function () {
20890
+ return resolvePropVal(config, 'height', ['thead']);
20891
+ });
20865
20892
  var headStyle = (0,external_vue_namespaceObject.computed)(function () {
20866
20893
  var _props$thead$color, _props$thead;
20867
20894
  return {
20868
- '--row-height': "".concat(resolvePropVal(config, 'height', ['thead']), "px"),
20869
- '--scroll-head-left': "-".concat(translateX.value, "px"),
20870
- '--scroll-left': "".concat(translateX.value, "px"),
20895
+ '--row-height': "".concat(headHeight.value, "px"),
20871
20896
  '--background-color': DEF_COLOR[(_props$thead$color = (_props$thead = props.thead) === null || _props$thead === void 0 ? void 0 : _props$thead.color) !== null && _props$thead$color !== void 0 ? _props$thead$color : IHeadColor.DEF1]
20872
20897
  };
20873
20898
  });
@@ -20892,13 +20917,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
20892
20917
  };
20893
20918
  var resizeColumnStyle = (0,external_vue_namespaceObject.computed)(function () {
20894
20919
  return use_layout_objectSpread(use_layout_objectSpread({}, dragOffsetXStyle), {}, {
20895
- transform: "translate3d(".concat(dragOffsetX.value + 3, "px, ").concat(translateY.value, "px, 0)")
20896
- });
20897
- });
20898
- var resizeHeadColStyle = (0,external_vue_namespaceObject.computed)(function () {
20899
- return use_layout_objectSpread(use_layout_objectSpread({}, dragOffsetXStyle), {}, {
20900
- width: '6px',
20901
- transform: "translateX(".concat(dragOffsetX.value, "px)")
20920
+ transform: "translate3d(var(--drag-offset-x), var(--translate-y), 0)"
20902
20921
  });
20903
20922
  });
20904
20923
  var renderContainer = function renderContainer(childrend) {
@@ -20911,15 +20930,16 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
20911
20930
  "style": columnGhostStyle
20912
20931
  }, [(_ctx$slots$default = (_ctx$slots = ctx.slots)["default"]) === null || _ctx$slots$default === void 0 ? void 0 : _ctx$slots$default.call(_ctx$slots)])]);
20913
20932
  };
20914
- var renderHeader = function renderHeader(childrend, settings) {
20933
+ var renderHeader = function renderHeader(childrend, settings, fixedRows) {
20915
20934
  return (0,external_vue_namespaceObject.createVNode)("div", {
20916
20935
  "ref": refHead,
20917
20936
  "style": headStyle.value,
20918
20937
  "class": headClass.value
20919
20938
  }, [childrend === null || childrend === void 0 ? void 0 : childrend(), (0,external_vue_namespaceObject.createVNode)("div", {
20920
- "style": resizeHeadColStyle.value,
20921
20939
  "class": "col-resize-drag"
20922
- }, null), settings === null || settings === void 0 ? void 0 : settings()]);
20940
+ }, null), (0,external_vue_namespaceObject.createVNode)("div", {
20941
+ "class": fixedWrapperClass
20942
+ }, [fixedRows === null || fixedRows === void 0 ? void 0 : fixedRows()]), settings === null || settings === void 0 ? void 0 : settings()]);
20923
20943
  };
20924
20944
  var prependStyle = (0,external_vue_namespaceObject.computed)(function () {
20925
20945
  return use_layout_objectSpread({
@@ -20938,6 +20958,13 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
20938
20958
  return null;
20939
20959
  };
20940
20960
  var bodyHeight = (0,external_vue_namespaceObject.ref)('auto');
20961
+ var bodyMaxHeight = (0,external_vue_namespaceObject.computed)(function () {
20962
+ if (/^\d+\.?\d*(px|%)$/.test("".concat(tableStyle.value.maxHeight))) {
20963
+ var headerHeight = props.showHead ? headHeight.value : 0;
20964
+ return "calc(".concat(tableStyle.value.maxHeight, " - ").concat(footHeight.value, "px - ").concat(headerHeight, "px)");
20965
+ }
20966
+ return null;
20967
+ });
20941
20968
  var setBodyHeight = function setBodyHeight(height) {
20942
20969
  bodyHeight.value = height;
20943
20970
  };
@@ -20993,26 +21020,16 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
20993
21020
  column_drag_line: true,
20994
21021
  'offset-x': true
20995
21022
  };
20996
- var fixedWrapperClass = (0,external_vue_namespaceObject.computed)(function () {
20997
- return [resolveClassName('table-fixed'), {
20998
- 'shadow-right': offsetRight.value > 0,
20999
- 'shadow-left': translateX.value > 0
21000
- }];
21001
- });
21023
+ var fixedWrapperClass = resolveClassName('table-fixed');
21002
21024
  var fixedBottomRow = resolveClassName('table-fixed-bottom');
21003
- var fixedWrapperStyle = (0,external_vue_namespaceObject.computed)(function () {
21004
- return {
21005
- transform: "translate3d(".concat(translateX.value, "px, ").concat(translateY.value, "px, 0)")
21006
- };
21007
- });
21008
21025
  var fixedBottomLoadingStyle = (0,external_vue_namespaceObject.computed)(function () {
21009
21026
  return {
21010
- transform: "translate3d(".concat(translateX.value, "px, ").concat(translateY.value, "px, 0)"),
21011
21027
  minHeight: "".concat(lineHeight.value, "px")
21012
21028
  };
21013
21029
  });
21014
21030
  (0,external_vue_namespaceObject.onMounted)(function () {
21015
21031
  setOffsetRight();
21032
+ initRootStyleVars();
21016
21033
  });
21017
21034
  var renderBody = function renderBody(list, childrend, fixedRows, loadingRow) {
21018
21035
  return (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
@@ -21027,6 +21044,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
21027
21044
  "scrollbar": {
21028
21045
  enabled: props.scrollbar
21029
21046
  },
21047
+ "maxHeight": bodyMaxHeight.value,
21030
21048
  "throttleDelay": 120,
21031
21049
  "onContentScroll": handleScrollChanged
21032
21050
  }, {
@@ -21042,8 +21060,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
21042
21060
  "style": resizeColumnStyle.value,
21043
21061
  "class": resizeColumnClass
21044
21062
  }, null), (0,external_vue_namespaceObject.createVNode)("div", {
21045
- "style": fixedWrapperStyle.value,
21046
- "class": fixedWrapperClass.value
21063
+ "class": fixedWrapperClass
21047
21064
  }, [fixedRows === null || fixedRows === void 0 ? void 0 : fixedRows()]), (0,external_vue_namespaceObject.createVNode)("div", {
21048
21065
  "class": fixedBottomRow
21049
21066
  }, [(_ctx$slots$appendBott = (_ctx$slots2 = ctx.slots).appendBottom) === null || _ctx$slots$appendBott === void 0 ? void 0 : _ctx$slots$appendBott.call(_ctx$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
@@ -21076,6 +21093,7 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
21076
21093
  setFixedColumns: setFixedColumns,
21077
21094
  setOffsetRight: setOffsetRight,
21078
21095
  setLineHeight: setLineHeight,
21096
+ initRootStyleVars: initRootStyleVars,
21079
21097
  refRoot: refRoot,
21080
21098
  refHead: refHead,
21081
21099
  refBody: refBody,
@@ -21210,7 +21228,8 @@ var usePagination = function usePagination(props) {
21210
21228
  */
21211
21229
  pagination.enabled = isEnabled.value && !!props.pagination;
21212
21230
  }, {
21213
- immediate: true
21231
+ immediate: true,
21232
+ deep: true
21214
21233
  });
21215
21234
  (0,external_vue_namespaceObject.watch)(function () {
21216
21235
  return [props.data];
@@ -21241,18 +21260,6 @@ var usePagination = function usePagination(props) {
21241
21260
  };
21242
21261
  };
21243
21262
  /* harmony default export */ const use_pagination = (usePagination);
21244
- ;// CONCATENATED MODULE: external "../checkbox"
21245
- var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21246
- var checkbox_y = x => () => x
21247
- const checkbox_namespaceObject = checkbox_x({ ["BkCheckboxGroup"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__.BkCheckboxGroup, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
21248
- ;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
21249
- var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21250
- var checkbox_less_y = x => () => x
21251
- const checkbox_less_namespaceObject = checkbox_less_x({ });
21252
- ;// CONCATENATED MODULE: external "../icon"
21253
- var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21254
- var icon_y = x => () => x
21255
- const icon_namespaceObject = icon_x({ ["DownShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownShape, ["Funnel"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Funnel, ["GragFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.GragFill, ["RightShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.RightShape });
21256
21263
  ;// CONCATENATED MODULE: external "../pagination"
21257
21264
  var pagination_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21258
21265
  var pagination_y = x => () => x
@@ -21615,6 +21622,262 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
21615
21622
  return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]);
21616
21623
  }
21617
21624
  }));
21625
+ ;// CONCATENATED MODULE: external "../checkbox"
21626
+ var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21627
+ var checkbox_y = x => () => x
21628
+ const checkbox_namespaceObject = checkbox_x({ ["BkCheckboxGroup"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__.BkCheckboxGroup, ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__["default"] });
21629
+ ;// CONCATENATED MODULE: external "../checkbox/checkbox.less"
21630
+ var checkbox_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21631
+ var checkbox_less_y = x => () => x
21632
+ const checkbox_less_namespaceObject = checkbox_less_x({ });
21633
+ ;// CONCATENATED MODULE: external "../icon"
21634
+ var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21635
+ var icon_y = x => () => x
21636
+ const icon_namespaceObject = icon_x({ ["DownShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.DownShape, ["Funnel"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Funnel, ["GragFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.GragFill, ["RightShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.RightShape });
21637
+ ;// CONCATENATED MODULE: ../../packages/table/src/hooks/use-cell.tsx
21638
+
21639
+
21640
+ /*
21641
+ * Tencent is pleased to support the open source community by making
21642
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
21643
+ *
21644
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
21645
+ *
21646
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
21647
+ *
21648
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
21649
+ *
21650
+ * ---------------------------------------------------
21651
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
21652
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
21653
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
21654
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
21655
+ *
21656
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
21657
+ * the Software.
21658
+ *
21659
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
21660
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21661
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
21662
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21663
+ * IN THE SOFTWARE.
21664
+ */
21665
+
21666
+
21667
+
21668
+
21669
+
21670
+
21671
+
21672
+ /* harmony default export */ const use_cell = (function (_ref) {
21673
+ var props = _ref.props,
21674
+ rows = _ref.rows,
21675
+ ctx = _ref.ctx,
21676
+ columns = _ref.columns,
21677
+ row = _ref.row,
21678
+ index = _ref.index,
21679
+ column = _ref.column,
21680
+ _ref$isChild = _ref.isChild,
21681
+ isChild = _ref$isChild === void 0 ? false : _ref$isChild,
21682
+ multiShiftKey = _ref.multiShiftKey;
21683
+ var isShiftKeyDown = multiShiftKey.isShiftKeyDown,
21684
+ getStore = multiShiftKey.getStore,
21685
+ setStore = multiShiftKey.setStore,
21686
+ setStoreStart = multiShiftKey.setStoreStart,
21687
+ clearStoreStart = multiShiftKey.clearStoreStart;
21688
+ var renderCheckboxColumn = function renderCheckboxColumn() {
21689
+ var handleChecked = function handleChecked(value, event) {
21690
+ event.stopImmediatePropagation();
21691
+ event.preventDefault();
21692
+ event.stopPropagation();
21693
+ if (!isShiftKeyDown.value) {
21694
+ if (value) {
21695
+ setStoreStart(row, index);
21696
+ } else {
21697
+ clearStoreStart();
21698
+ }
21699
+ }
21700
+ rows.setRowSelection(row, value);
21701
+ columns.setColumnAttribute(column, COLUMN_ATTRIBUTE.SELECTION_INDETERMINATE, rows.getRowIndeterminate());
21702
+ columns.setColumnAttribute(column, COLUMN_ATTRIBUTE.SELECTION_VAL, rows.getRowCheckedAllValue());
21703
+ ctx.emit(EMIT_EVENTS.ROW_SELECT, {
21704
+ row: row,
21705
+ index: index,
21706
+ checked: value,
21707
+ data: props.data
21708
+ });
21709
+ ctx.emit(EMIT_EVENTS.ROW_SELECT_CHANGE, {
21710
+ row: row,
21711
+ index: index,
21712
+ checked: value,
21713
+ data: props.data
21714
+ });
21715
+ };
21716
+ var beforeRowChange = function beforeRowChange() {
21717
+ if (isShiftKeyDown.value) {
21718
+ var result = setStore(row, index);
21719
+ if (result) {
21720
+ var _rows$pageRowList$sli;
21721
+ var _getStore = getStore(),
21722
+ start = _getStore.start,
21723
+ end = _getStore.end;
21724
+ var startIndex = start.index < end.index ? start.index : end.index;
21725
+ var endIndex = start.index < end.index ? end.index : start.index;
21726
+ ((_rows$pageRowList$sli = rows.pageRowList.slice(startIndex, endIndex + 1)) !== null && _rows$pageRowList$sli !== void 0 ? _rows$pageRowList$sli : []).forEach(function (item) {
21727
+ var isRowEnabled = isRowSelectEnable(props, {
21728
+ row: row,
21729
+ index: index,
21730
+ isCheckAll: false
21731
+ });
21732
+ isRowEnabled && rows.setRowSelection(item, true);
21733
+ });
21734
+ }
21735
+ ctx.emit(EMIT_EVENTS.ROW_SELECT, {
21736
+ row: row,
21737
+ index: index,
21738
+ checked: true,
21739
+ data: props.data,
21740
+ isShiftKeyDown: true
21741
+ });
21742
+ ctx.emit(EMIT_EVENTS.ROW_SELECT_CHANGE, {
21743
+ row: row,
21744
+ index: index,
21745
+ checked: true,
21746
+ data: props.data,
21747
+ isShiftKeyDown: true
21748
+ });
21749
+ return Promise.resolve(!result);
21750
+ }
21751
+ return Promise.resolve(true);
21752
+ };
21753
+ var indeterminate = rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE);
21754
+ var isChecked = rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION);
21755
+ var isEnable = isRowSelectEnable(props, {
21756
+ row: row,
21757
+ index: index,
21758
+ isCheckAll: false
21759
+ });
21760
+ return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
21761
+ "beforeChange": beforeRowChange,
21762
+ "disabled": !isEnable,
21763
+ "indeterminate": indeterminate,
21764
+ "modelValue": isChecked,
21765
+ "onChange": handleChecked
21766
+ }, null);
21767
+ };
21768
+ /**
21769
+ * 渲染表格Cell内容
21770
+ * @param row 当前行
21771
+ * @param column 当前列
21772
+ * @param index 当前列
21773
+ * @param rows 当前列
21774
+ * @returns
21775
+ */
21776
+ var renderCell = function renderCell() {
21777
+ var _renderFn$column$type, _renderFn$column$type2;
21778
+ var defaultFn = function defaultFn() {
21779
+ var type = resolvePropVal(column, 'type', [column, row]);
21780
+ if (type === 'index') {
21781
+ return rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_INDEX);
21782
+ }
21783
+ var key = resolvePropVal(column, 'field', [column, row]);
21784
+ var cell = getRowText(row, key);
21785
+ if (typeof column.render === 'function') {
21786
+ return renderCellCallbackFn();
21787
+ }
21788
+ if (typeof cell === 'boolean') {
21789
+ return String(cell);
21790
+ }
21791
+ if (!cell && typeof cell !== 'number') {
21792
+ var emptyCellText = props.emptyCellText;
21793
+ if (emptyCellText) {
21794
+ if (typeof emptyCellText === 'function') {
21795
+ return emptyCellText(row, column, index, rows.tableRowList.value);
21796
+ }
21797
+ return emptyCellText;
21798
+ }
21799
+ }
21800
+ if (typeof_typeof(cell) === 'object') {
21801
+ return JSON.stringify((0,external_vue_namespaceObject.unref)(cell));
21802
+ }
21803
+ return cell;
21804
+ };
21805
+ var renderFn = {
21806
+ expand: function expand() {
21807
+ return isChild ? '' : renderExpandColumn();
21808
+ },
21809
+ selection: function selection() {
21810
+ return renderCheckboxColumn();
21811
+ },
21812
+ drag: renderDraggableCell
21813
+ };
21814
+ return (_renderFn$column$type = (_renderFn$column$type2 = renderFn[column.type]) === null || _renderFn$column$type2 === void 0 ? void 0 : _renderFn$column$type2.call(renderFn, row, column, index, rows)) !== null && _renderFn$column$type !== void 0 ? _renderFn$column$type : defaultFn();
21815
+ };
21816
+ var renderCellCallbackFn = function renderCellCallbackFn() {
21817
+ var cell = getRowText(row, resolvePropVal(column, 'field', [column, row]));
21818
+ var data = row;
21819
+ return column.render({
21820
+ cell: cell,
21821
+ data: data,
21822
+ row: row,
21823
+ column: column,
21824
+ index: index,
21825
+ rows: rows.tableRowList.value
21826
+ });
21827
+ };
21828
+ var getExpandCell = function getExpandCell() {
21829
+ var _ctx$slots$expandCont, _ctx$slots$expandCont2, _ctx$slots;
21830
+ var isExpand = rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_EXPAND);
21831
+ var icon = isExpand ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.DownShape, null, null) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.RightShape, null, null);
21832
+ return (0,external_vue_namespaceObject.createVNode)("span", null, [[icon, (_ctx$slots$expandCont = (_ctx$slots$expandCont2 = (_ctx$slots = ctx.slots).expandContent) === null || _ctx$slots$expandCont2 === void 0 ? void 0 : _ctx$slots$expandCont2.call(_ctx$slots, row)) !== null && _ctx$slots$expandCont !== void 0 ? _ctx$slots$expandCont : '']]);
21833
+ };
21834
+ var handleRowExpandClick = function handleRowExpandClick(e) {
21835
+ rows.setRowExpand(row, !rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_EXPAND));
21836
+ ctx.emit(EMIT_EVENTS.ROW_EXPAND_CLICK, {
21837
+ row: row,
21838
+ column: column,
21839
+ index: index,
21840
+ rows: rows.tableRowList.value,
21841
+ e: e
21842
+ });
21843
+ };
21844
+ var renderExpandColumn = function renderExpandColumn() {
21845
+ var renderExpandSlot = function renderExpandSlot() {
21846
+ var _ctx$slots$expandCell, _ctx$slots$expandCell2, _ctx$slots2;
21847
+ if (typeof column.render === 'function') {
21848
+ return renderCellCallbackFn();
21849
+ }
21850
+ return (_ctx$slots$expandCell = (_ctx$slots$expandCell2 = (_ctx$slots2 = ctx.slots).expandCell) === null || _ctx$slots$expandCell2 === void 0 ? void 0 : _ctx$slots$expandCell2.call(_ctx$slots2, {
21851
+ row: row,
21852
+ column: column,
21853
+ index: index,
21854
+ rows: rows
21855
+ })) !== null && _ctx$slots$expandCell !== void 0 ? _ctx$slots$expandCell : getExpandCell();
21856
+ };
21857
+ return (0,external_vue_namespaceObject.createVNode)("span", {
21858
+ "class": "expand-btn-action",
21859
+ "onClick": function onClick(e) {
21860
+ return handleRowExpandClick(e);
21861
+ }
21862
+ }, [renderExpandSlot()]);
21863
+ };
21864
+ var renderDraggableCell = function renderDraggableCell() {
21865
+ var _props$rowDraggable$r, _props$rowDraggable, _props$rowDraggable$f, _props$rowDraggable2, _props$rowDraggable$i, _props$rowDraggable3;
21866
+ var renderFn = (_props$rowDraggable$r = (_props$rowDraggable = props.rowDraggable) === null || _props$rowDraggable === void 0 ? void 0 : _props$rowDraggable.render) !== null && _props$rowDraggable$r !== void 0 ? _props$rowDraggable$r : props.rowDraggable;
21867
+ if (typeof renderFn === 'function') {
21868
+ return renderFn(row, column, index, rows.tableRowList.value);
21869
+ }
21870
+ var fontSize = (_props$rowDraggable$f = (_props$rowDraggable2 = props.rowDraggable) === null || _props$rowDraggable2 === void 0 ? void 0 : _props$rowDraggable2.fontSize) !== null && _props$rowDraggable$f !== void 0 ? _props$rowDraggable$f : '14px';
21871
+ var fontIcon = (_props$rowDraggable$i = (_props$rowDraggable3 = props.rowDraggable) === null || _props$rowDraggable3 === void 0 ? void 0 : _props$rowDraggable3.icon) !== null && _props$rowDraggable$i !== void 0 ? _props$rowDraggable$i : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.GragFill, {
21872
+ "style": "'--font-size: ".concat(fontSize, ";'"),
21873
+ "class": "drag-cell"
21874
+ }, null);
21875
+ return fontIcon;
21876
+ };
21877
+ return {
21878
+ renderCell: renderCell
21879
+ };
21880
+ });
21618
21881
  ;// CONCATENATED MODULE: external "../button"
21619
21882
  var button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
21620
21883
  var button_y = x => () => x
@@ -22352,7 +22615,7 @@ function use_head_isSlot(s) {
22352
22615
  * IN THE SOFTWARE.
22353
22616
  */
22354
22617
 
22355
- /* harmony default export */ const use_shift_key = (function (props) {
22618
+ var multiShiftKey = function multiShiftKey(props) {
22356
22619
  var isShiftKeyDown = (0,external_vue_namespaceObject.ref)(false);
22357
22620
  var store = {
22358
22621
  start: null,
@@ -22403,21 +22666,23 @@ function use_head_isSlot(s) {
22403
22666
  var getStore = function getStore() {
22404
22667
  return store;
22405
22668
  };
22406
- (0,external_vue_namespaceObject.onUnmounted)(function () {
22669
+ var removeMultiCheckedEvents = function removeMultiCheckedEvents() {
22407
22670
  if (props.shiftMultiChecked) {
22408
22671
  window.removeEventListener('keydown', handleKeyDown);
22409
22672
  window.removeEventListener('keyup', handleKeyUp);
22410
22673
  }
22411
- });
22674
+ };
22412
22675
  return {
22413
22676
  isShiftKeyDown: isShiftKeyDown,
22414
22677
  setStore: setStore,
22415
22678
  getStore: getStore,
22416
22679
  clearStore: clearStore,
22417
22680
  setStoreStart: setStoreStart,
22418
- clearStoreStart: clearStoreStart
22681
+ clearStoreStart: clearStoreStart,
22682
+ removeMultiCheckedEvents: removeMultiCheckedEvents
22419
22683
  };
22420
- });
22684
+ };
22685
+ /* harmony default export */ const use_shift_key = (multiShiftKey);
22421
22686
  ;// CONCATENATED MODULE: ../../packages/table/src/hooks/use-render.tsx
22422
22687
 
22423
22688
 
@@ -22461,8 +22726,6 @@ function use_head_isSlot(s) {
22461
22726
 
22462
22727
 
22463
22728
 
22464
-
22465
-
22466
22729
  function use_render_isSlot(s) {
22467
22730
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
22468
22731
  }
@@ -22476,6 +22739,7 @@ function use_render_isSlot(s) {
22476
22739
  var t = (0,config_provider_namespaceObject.useLocale)('table');
22477
22740
  var uuid = esm_browser_v4();
22478
22741
  var dragEvents = {};
22742
+ var multiShiftKey = use_shift_key(props);
22479
22743
  /**
22480
22744
  * 渲染table colgroup
22481
22745
  * @returns
@@ -22611,202 +22875,6 @@ function use_render_isSlot(s) {
22611
22875
  var handleRowLeave = function handleRowLeave(e, row, index, rows) {
22612
22876
  ctx.emit(EMIT_EVENTS.ROW_MOUSE_LEAVE, e, row, index, rows);
22613
22877
  };
22614
- var renderCellCallbackFn = function renderCellCallbackFn(row, column, index, rows) {
22615
- var cell = getRowText(row, resolvePropVal(column, 'field', [column, row]));
22616
- var data = row;
22617
- return column.render({
22618
- cell: cell,
22619
- data: data,
22620
- row: row,
22621
- column: column,
22622
- index: index,
22623
- rows: rows
22624
- });
22625
- };
22626
- var getExpandCell = function getExpandCell(row) {
22627
- var _ctx$slots$expandCont, _ctx$slots$expandCont2, _ctx$slots2;
22628
- var isExpand = rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_EXPAND);
22629
- var icon = isExpand ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.DownShape, null, null) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.RightShape, null, null);
22630
- return (0,external_vue_namespaceObject.createVNode)("span", null, [[icon, (_ctx$slots$expandCont = (_ctx$slots$expandCont2 = (_ctx$slots2 = ctx.slots).expandContent) === null || _ctx$slots$expandCont2 === void 0 ? void 0 : _ctx$slots$expandCont2.call(_ctx$slots2, row)) !== null && _ctx$slots$expandCont !== void 0 ? _ctx$slots$expandCont : '']]);
22631
- };
22632
- var handleRowExpandClick = function handleRowExpandClick(row, column, index, rowList, e) {
22633
- rows.setRowExpand(row, !rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_EXPAND));
22634
- ctx.emit(EMIT_EVENTS.ROW_EXPAND_CLICK, {
22635
- row: row,
22636
- column: column,
22637
- index: index,
22638
- rows: rowList,
22639
- e: e
22640
- });
22641
- };
22642
- var renderExpandColumn = function renderExpandColumn(row, column, index, rows) {
22643
- var renderExpandSlot = function renderExpandSlot() {
22644
- var _ctx$slots$expandCell, _ctx$slots$expandCell2, _ctx$slots3;
22645
- if (typeof column.render === 'function') {
22646
- return renderCellCallbackFn(row, column, index, rows);
22647
- }
22648
- return (_ctx$slots$expandCell = (_ctx$slots$expandCell2 = (_ctx$slots3 = ctx.slots).expandCell) === null || _ctx$slots$expandCell2 === void 0 ? void 0 : _ctx$slots$expandCell2.call(_ctx$slots3, {
22649
- row: row,
22650
- column: column,
22651
- index: index,
22652
- rows: rows
22653
- })) !== null && _ctx$slots$expandCell !== void 0 ? _ctx$slots$expandCell : getExpandCell(row);
22654
- };
22655
- return (0,external_vue_namespaceObject.createVNode)("span", {
22656
- "class": "expand-btn-action",
22657
- "onClick": function onClick(e) {
22658
- return handleRowExpandClick(row, column, index, rows, e);
22659
- }
22660
- }, [renderExpandSlot()]);
22661
- };
22662
- var renderDraggableCell = function renderDraggableCell(row, column, index, rows) {
22663
- var _props$rowDraggable$r, _props$rowDraggable, _props$rowDraggable$f, _props$rowDraggable2, _props$rowDraggable$i, _props$rowDraggable3;
22664
- var renderFn = (_props$rowDraggable$r = (_props$rowDraggable = props.rowDraggable) === null || _props$rowDraggable === void 0 ? void 0 : _props$rowDraggable.render) !== null && _props$rowDraggable$r !== void 0 ? _props$rowDraggable$r : props.rowDraggable;
22665
- if (typeof renderFn === 'function') {
22666
- return renderFn(row, column, index, rows);
22667
- }
22668
- var fontSize = (_props$rowDraggable$f = (_props$rowDraggable2 = props.rowDraggable) === null || _props$rowDraggable2 === void 0 ? void 0 : _props$rowDraggable2.fontSize) !== null && _props$rowDraggable$f !== void 0 ? _props$rowDraggable$f : '14px';
22669
- var fontIcon = (_props$rowDraggable$i = (_props$rowDraggable3 = props.rowDraggable) === null || _props$rowDraggable3 === void 0 ? void 0 : _props$rowDraggable3.icon) !== null && _props$rowDraggable$i !== void 0 ? _props$rowDraggable$i : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.GragFill, {
22670
- "style": "'--font-size: ".concat(fontSize, ";'"),
22671
- "class": "drag-cell"
22672
- }, null);
22673
- return fontIcon;
22674
- };
22675
- var _useShiftKey = use_shift_key(props),
22676
- isShiftKeyDown = _useShiftKey.isShiftKeyDown,
22677
- getStore = _useShiftKey.getStore,
22678
- setStore = _useShiftKey.setStore,
22679
- setStoreStart = _useShiftKey.setStoreStart,
22680
- clearStoreStart = _useShiftKey.clearStoreStart;
22681
- var renderCheckboxColumn = function renderCheckboxColumn(row, index, column) {
22682
- var handleChecked = function handleChecked(value, event) {
22683
- event.stopImmediatePropagation();
22684
- event.preventDefault();
22685
- event.stopPropagation();
22686
- if (!isShiftKeyDown.value) {
22687
- if (value) {
22688
- setStoreStart(row, index);
22689
- } else {
22690
- clearStoreStart();
22691
- }
22692
- }
22693
- rows.setRowSelection(row, value);
22694
- columns.setColumnAttribute(column, COLUMN_ATTRIBUTE.SELECTION_INDETERMINATE, rows.getRowIndeterminate());
22695
- columns.setColumnAttribute(column, COLUMN_ATTRIBUTE.SELECTION_VAL, rows.getRowCheckedAllValue());
22696
- ctx.emit(EMIT_EVENTS.ROW_SELECT, {
22697
- row: row,
22698
- index: index,
22699
- checked: value,
22700
- data: props.data
22701
- });
22702
- ctx.emit(EMIT_EVENTS.ROW_SELECT_CHANGE, {
22703
- row: row,
22704
- index: index,
22705
- checked: value,
22706
- data: props.data
22707
- });
22708
- };
22709
- var beforeRowChange = function beforeRowChange() {
22710
- if (isShiftKeyDown.value) {
22711
- var result = setStore(row, index);
22712
- if (result) {
22713
- var _rows$pageRowList$sli;
22714
- var _getStore = getStore(),
22715
- start = _getStore.start,
22716
- end = _getStore.end;
22717
- var startIndex = start.index < end.index ? start.index : end.index;
22718
- var endIndex = start.index < end.index ? end.index : start.index;
22719
- ((_rows$pageRowList$sli = rows.pageRowList.slice(startIndex, endIndex + 1)) !== null && _rows$pageRowList$sli !== void 0 ? _rows$pageRowList$sli : []).forEach(function (item) {
22720
- var isRowEnabled = isRowSelectEnable(props, {
22721
- row: row,
22722
- index: index,
22723
- isCheckAll: false
22724
- });
22725
- isRowEnabled && rows.setRowSelection(item, true);
22726
- });
22727
- }
22728
- ctx.emit(EMIT_EVENTS.ROW_SELECT, {
22729
- row: row,
22730
- index: index,
22731
- checked: true,
22732
- data: props.data,
22733
- isShiftKeyDown: true
22734
- });
22735
- ctx.emit(EMIT_EVENTS.ROW_SELECT_CHANGE, {
22736
- row: row,
22737
- index: index,
22738
- checked: true,
22739
- data: props.data,
22740
- isShiftKeyDown: true
22741
- });
22742
- return Promise.resolve(!result);
22743
- }
22744
- return Promise.resolve(true);
22745
- };
22746
- var indeterminate = rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE);
22747
- var isChecked = rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION);
22748
- var isEnable = isRowSelectEnable(props, {
22749
- row: row,
22750
- index: index,
22751
- isCheckAll: false
22752
- });
22753
- return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
22754
- "beforeChange": beforeRowChange,
22755
- "disabled": !isEnable,
22756
- "indeterminate": indeterminate,
22757
- "modelValue": isChecked,
22758
- "onChange": handleChecked
22759
- }, null);
22760
- };
22761
- /**
22762
- * 渲染表格Cell内容
22763
- * @param row 当前行
22764
- * @param column 当前列
22765
- * @param index 当前列
22766
- * @param rows 当前列
22767
- * @returns
22768
- */
22769
- var renderCell = function renderCell(row, column, index, rowList) {
22770
- var _renderFn$column$type, _renderFn$column$type2;
22771
- var isChild = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
22772
- var defaultFn = function defaultFn() {
22773
- var type = resolvePropVal(column, 'type', [column, row]);
22774
- if (type === 'index') {
22775
- return rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_INDEX);
22776
- }
22777
- var key = resolvePropVal(column, 'field', [column, row]);
22778
- var cell = getRowText(row, key);
22779
- if (typeof column.render === 'function') {
22780
- return renderCellCallbackFn(row, column, index, rowList);
22781
- }
22782
- if (typeof cell === 'boolean') {
22783
- return String(cell);
22784
- }
22785
- if (!cell && typeof cell !== 'number') {
22786
- var emptyCellText = props.emptyCellText;
22787
- if (emptyCellText) {
22788
- if (typeof emptyCellText === 'function') {
22789
- return emptyCellText(row, column, index, rowList);
22790
- }
22791
- return emptyCellText;
22792
- }
22793
- }
22794
- if (typeof_typeof(cell) === 'object') {
22795
- return JSON.stringify((0,external_vue_namespaceObject.unref)(cell));
22796
- }
22797
- return cell;
22798
- };
22799
- var renderFn = {
22800
- expand: function expand(row, column, index, rowList) {
22801
- return isChild ? '' : renderExpandColumn(row, column, index, rowList);
22802
- },
22803
- selection: function selection(row, column, index, _rows) {
22804
- return renderCheckboxColumn(row, index, column);
22805
- },
22806
- drag: renderDraggableCell
22807
- };
22808
- return (_renderFn$column$type = (_renderFn$column$type2 = renderFn[column.type]) === null || _renderFn$column$type2 === void 0 ? void 0 : _renderFn$column$type2.call(renderFn, row, column, index, rows)) !== null && _renderFn$column$type !== void 0 ? _renderFn$column$type : defaultFn();
22809
- };
22810
22878
  var getRowSpanConfig = function getRowSpanConfig(row, rowIndex, preRow, col, store) {
22811
22879
  var _store$get$get, _store$get;
22812
22880
  if (!store.has(row)) {
@@ -22891,6 +22959,20 @@ function use_render_isSlot(s) {
22891
22959
  'expand-row': rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_EXPAND),
22892
22960
  'is-last': rowIndex + rowspan >= rowLength
22893
22961
  }]);
22962
+ var columnKey = "".concat(rowId, "_").concat(index);
22963
+ var cellKey = "".concat(rowId, "_").concat(index, "_cell");
22964
+ var _useCell = use_cell({
22965
+ props: props,
22966
+ rows: rows,
22967
+ ctx: ctx,
22968
+ columns: columns,
22969
+ row: row,
22970
+ index: index,
22971
+ column: column,
22972
+ isChild: isChild,
22973
+ multiShiftKey: multiShiftKey
22974
+ }),
22975
+ renderCell = _useCell.renderCell;
22894
22976
  var handleEmit = function handleEmit(event, type) {
22895
22977
  var args = {
22896
22978
  event: event,
@@ -22898,7 +22980,7 @@ function use_render_isSlot(s) {
22898
22980
  column: column,
22899
22981
  cell: {
22900
22982
  getValue: function getValue() {
22901
- return renderCell(row, column, rowIndex, rowList, isChild);
22983
+ return renderCell();
22902
22984
  }
22903
22985
  },
22904
22986
  rowIndex: rowIndex,
@@ -22906,13 +22988,12 @@ function use_render_isSlot(s) {
22906
22988
  };
22907
22989
  ctx.emit(type, args);
22908
22990
  };
22909
- var columnKey = "".concat(rowId, "_").concat(index);
22910
- var cellKey = "".concat(rowId, "_").concat(index, "_cell");
22911
22991
  return (0,external_vue_namespaceObject.createVNode)("td", {
22912
22992
  "key": columnKey,
22913
22993
  "style": cellStyle,
22914
22994
  "class": cellClass,
22915
22995
  "colspan": colspan,
22996
+ "data-id": columnKey,
22916
22997
  "rowspan": rowspan,
22917
22998
  "onClick": function onClick(event) {
22918
22999
  return handleEmit(event, EMIT_EVENTS.CELL_CLICK);
@@ -22924,10 +23005,11 @@ function use_render_isSlot(s) {
22924
23005
  "key": cellKey,
22925
23006
  "class": tdCtxClass,
22926
23007
  "column": column,
23008
+ "data-id": cellKey,
22927
23009
  "observerResize": props.observerResize,
22928
23010
  "parentSetting": props.showOverflowTooltip,
22929
23011
  "row": row
22930
- }, use_render_isSlot(_slot = renderCell(row, column, rowIndex, rowList, isChild)) ? _slot : {
23012
+ }, use_render_isSlot(_slot = renderCell()) ? _slot : {
22931
23013
  "default": function _default() {
22932
23014
  return [_slot];
22933
23015
  }
@@ -22941,7 +23023,7 @@ function use_render_isSlot(s) {
22941
23023
  var renderExpandRow = function renderExpandRow(row, rowClass, _rowIndex) {
22942
23024
  var isExpand = rows.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_EXPAND);
22943
23025
  if (isExpand) {
22944
- var _ctx$slots$expandRow, _ctx$slots$expandRow2, _ctx$slots4;
23026
+ var _ctx$slots$expandRow, _ctx$slots$expandRow2, _ctx$slots2;
22945
23027
  var resovledClass = [].concat(_toConsumableArray(rowClass), [{
22946
23028
  row_expend: true
22947
23029
  }]);
@@ -22961,7 +23043,7 @@ function use_render_isSlot(s) {
22961
23043
  }, [(0,external_vue_namespaceObject.createVNode)("td", {
22962
23044
  "colspan": columns.visibleColumns.length,
22963
23045
  "rowspan": 1
22964
- }, [(_ctx$slots$expandRow = (_ctx$slots$expandRow2 = (_ctx$slots4 = ctx.slots).expandRow) === null || _ctx$slots$expandRow2 === void 0 ? void 0 : _ctx$slots$expandRow2.call(_ctx$slots4, row)) !== null && _ctx$slots$expandRow !== void 0 ? _ctx$slots$expandRow : (0,external_vue_namespaceObject.createVNode)("div", {
23046
+ }, [(_ctx$slots$expandRow = (_ctx$slots$expandRow2 = (_ctx$slots2 = ctx.slots).expandRow) === null || _ctx$slots$expandRow2 === void 0 ? void 0 : _ctx$slots$expandRow2.call(_ctx$slots2, row)) !== null && _ctx$slots$expandRow !== void 0 ? _ctx$slots$expandRow : (0,external_vue_namespaceObject.createVNode)("div", {
22965
23047
  "class": "expand-cell-ctx"
22966
23048
  }, [(0,external_vue_namespaceObject.createTextVNode)("Expand Row")])])])];
22967
23049
  }
@@ -23002,6 +23084,9 @@ function use_render_isSlot(s) {
23002
23084
  }), null);
23003
23085
  }
23004
23086
  };
23087
+ (0,external_vue_namespaceObject.onUnmounted)(function () {
23088
+ multiShiftKey.removeMultiCheckedEvents();
23089
+ });
23005
23090
  return {
23006
23091
  renderColumns: renderColumns,
23007
23092
  renderTBody: renderTBody,
@@ -23904,6 +23989,8 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
23904
23989
  setOffsetRight();
23905
23990
  }
23906
23991
  computedColumnRect();
23992
+ refBody.value.scrollTo(0, 0);
23993
+ setOffsetRight();
23907
23994
  });
23908
23995
  (0,external_vue_namespaceObject.watch)(function () {
23909
23996
  return [dragOffsetX.value];
@@ -23957,7 +24044,7 @@ var useSettings = function useSettings(props, ctx, columns, afterSetting) {
23957
24044
  }
23958
24045
  });
23959
24046
  return function () {
23960
- return renderContainer([renderHeader(renderColumns, settings.renderSettings), renderBody(rows.pageRowList, renderTBody, renderFixedRows, renderScrollLoading), renderFooter(renderTFoot())]);
24047
+ return renderContainer([renderHeader(renderColumns, settings.renderSettings, renderFixedRows), renderBody(rows.pageRowList, renderTBody, renderFixedRows, renderScrollLoading), renderFooter(renderTFoot())]);
23961
24048
  };
23962
24049
  }
23963
24050
  }));