@opentinyvue/vue-grid 3.25.0 → 3.27.0

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
@@ -1,7 +1,7 @@
1
1
  import { t } from '@opentinyvue/vue-locale';
2
2
  import '@opentinyvue/vue-theme/grid/index.css';
3
3
  import { Interceptor, StoreMap } from '@opentinyvue/vue-renderless/grid/core';
4
- import { debounce, PopupManager, PopperJS, extend, browserInfo, isObject, isEmptyObject, isServer, throttle, addClass, removeClass, getDataset, random, isNull, fastdom, toDecimal, logger, tryToCurrency, tryToDecimal, tryToInt, toFileSize, truncate, toRate, isNumber as isNumber$1, toBoolValue, toDate, getDateWithNewTimezone, isDate, formatDateByPattern, toDateStr, on, Validator as Validator$1, getObj, getStyle, preventDefault, off, callInterceptor, hasClass } from '@opentinyvue/utils';
4
+ import { debounce, PopupManager, PopperJS, extend, browserInfo, isObject, isEmptyObject, isServer, throttle, addClass, removeClass, getDataset, random, isNull, getActualTarget, fastdom, toDecimal, logger, tryToCurrency, tryToDecimal, tryToInt, toFileSize, truncate, toRate, isNumber as isNumber$1, toBoolValue, toDate, getDateWithNewTimezone, isDate, formatDateByPattern, toDateStr, on, Validator as Validator$1, getObj, getStyle, preventDefault, off, callInterceptor, hasClass } from '@opentinyvue/utils';
5
5
  import { iconError, iconSortTriangleDescending, iconSortTriangleAscending, iconSortTriangle, iconUnfilter, iconEdit, iconConmentRefresh, iconMinscreen, iconFullscreen, iconSetting, iconChevronRight, iconChevronDown, iconGridNoData, iconRadio, iconRadioselected, iconSearch, iconCheckedSur, iconCheck, iconHalfselect, iconArrowBottom, IconEllipsis, iconClose, iconYes, iconExpand, iconPutAway, iconEllipsis, iconMarkOn } from '@opentinyvue/vue-icon';
6
6
  import { $prefix, hooks, defineComponent, h, $install, isVue2, isVnode, $props, mergeClass, resolveTheme, useInstanceSlots, useRelation, emitter, resolveMode, useBreakpoint, setup as setup$1 } from '@opentinyvue/vue-common';
7
7
  import { uniqueId, toNumber as toNumber$1, isBoolean, each, isObject as isObject$1, isFunction, isArray, findIndexOf, get, set, clone, clear, destructuring, mapTree, has, isUndefined, find as find$1, isEqual, filterTree, arrayEach, isNumber, findTree as findTree$1, sum, template, assign, objectMap, eachTree, sortBy, isString, remove, toStringJSON, toArray, arrayIndexOf } from '@opentinyvue/vue-renderless/grid/static/';
@@ -84,7 +84,7 @@ function _regenerator() {
84
84
  var e, t2, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
85
85
  function i(r2, n2, o2, i2) {
86
86
  var c2 = n2 && n2.prototype instanceof Generator ? n2 : Generator, u2 = Object.create(c2.prototype);
87
- return _regeneratorDefine2(u2, "_invoke", function(r3, n3, o3) {
87
+ return _regeneratorDefine2(u2, "_invoke", (function(r3, n3, o3) {
88
88
  var i3, c3, u3, f2 = 0, p = o3 || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d2(t3, r4) {
89
89
  return i3 = t3, c3 = 0, u3 = e, G.n = r4, a;
90
90
  } };
@@ -117,7 +117,7 @@ function _regenerator() {
117
117
  }
118
118
  return { value: t2, done: y };
119
119
  };
120
- }(r2, o2, i2), true), u2;
120
+ })(r2, o2, i2), true), u2;
121
121
  }
122
122
  var a = {};
123
123
  function Generator() {
@@ -149,15 +149,12 @@ function _regeneratorDefine2(e, r, n, t2) {
149
149
  i = 0;
150
150
  }
151
151
  _regeneratorDefine2 = function _regeneratorDefine(e2, r2, n2, t3) {
152
- if (r2) i ? i(e2, r2, { value: n2, enumerable: !t3, configurable: !t3, writable: !t3 }) : e2[r2] = n2;
153
- else {
154
- var o = function o2(r3, n3) {
155
- _regeneratorDefine2(e2, r3, function(e3) {
156
- return this._invoke(r3, n3, e3);
157
- });
158
- };
159
- o("next", 0), o("throw", 1), o("return", 2);
152
+ function o(r3, n3) {
153
+ _regeneratorDefine2(e2, r3, function(e3) {
154
+ return this._invoke(r3, n3, e3);
155
+ });
160
156
  }
157
+ r2 ? i ? i(e2, r2, { value: n2, enumerable: !t3, configurable: !t3, writable: !t3 }) : e2[r2] = n2 : (o("next", 0), o("throw", 1), o("return", 2));
161
158
  }, _regeneratorDefine2(e, r, n, t2);
162
159
  }
163
160
  function asyncGeneratorStep(n, t2, e, r, o, a, c) {
@@ -228,12 +225,14 @@ function _extends() {
228
225
  var GlobalConfig$1 = {
229
226
  validConfig: {
230
227
  message: "tooltip",
228
+ highlightError: false,
231
229
  icon: iconError()
232
230
  },
233
231
  editConfig: {
234
232
  trigger: "click",
235
233
  mode: "cell",
236
- showStatus: true
234
+ showStatus: true,
235
+ validateOnActive: true
237
236
  },
238
237
  // 默认开启点击头部单元格触发排序
239
238
  sortConfig: {
@@ -645,8 +644,8 @@ function defaultFilterRender(h2, renderOpts, params, context) {
645
644
  function defaultFilterMethod(_ref2) {
646
645
  var option = _ref2.option, row2 = _ref2.row, column = _ref2.column;
647
646
  var cellValue = get(row2, column.property);
648
- var data6 = option.data;
649
- return cellValue == data6;
647
+ var data7 = option.data;
648
+ return cellValue == data7;
650
649
  }
651
650
  function renderSelectEdit(h2, renderOpts, params, context) {
652
651
  var column = params.column, $table = params.$table, row2 = params.row;
@@ -856,10 +855,10 @@ var Formatter = {
856
855
  label: "label",
857
856
  value: "value"
858
857
  }, this.own.formatConfig);
859
- var data6 = Array.isArray(format2.data) && find$1(format2.data, function(item) {
858
+ var data7 = Array.isArray(format2.data) && find$1(format2.data, function(item) {
860
859
  return item[format2.value] === value;
861
860
  });
862
- return data6 ? data6[format2.label] : "";
861
+ return data7 ? data7[format2.label] : "";
863
862
  },
864
863
  select: function select(cellValue) {
865
864
  var _this$editor = this.editor, options = _this$editor.options, optionGroups = _this$editor.optionGroups, _this$editor$optionPr = _this$editor.optionProps, optionProps = _this$editor$optionPr === void 0 ? {} : _this$editor$optionPr, _this$editor$optionGr = _this$editor.optionGroupProps, optionGroupProps = _this$editor$optionGr === void 0 ? {} : _this$editor$optionGr;
@@ -1781,9 +1780,9 @@ var _getTreeLength = function getTreeLength(tree, childrenKey) {
1781
1780
  return length;
1782
1781
  };
1783
1782
  var getTiledLength = function getTiledLength2(props) {
1784
- var data6 = props.data || [];
1783
+ var data7 = props.data || [];
1785
1784
  var _ref14 = props.treeConfig || {}, childrenKey = _ref14.children;
1786
- return props.treeConfig ? _getTreeLength(data6, childrenKey) : data6.length;
1785
+ return props.treeConfig ? _getTreeLength(data7, childrenKey) : data7.length;
1787
1786
  };
1788
1787
  var useData = function useData2(props) {
1789
1788
  var _hooks$getCurrentInst3;
@@ -1999,6 +1998,38 @@ var getEventParams = function getEventParams2(_ref17, $table) {
1999
1998
  var isOperateMouse = function isOperateMouse2($table) {
2000
1999
  return $table._isResize || $table.lastScrollTime && Date.now() < $table.lastScrollTime + $table.optimizeOpts.delayHover;
2001
2000
  };
2001
+ var hideAlignLines = function hideAlignLines2($table, cell) {
2002
+ var _$table$mouseConfig;
2003
+ if (!((_$table$mouseConfig = $table.mouseConfig) != null && _$table$mouseConfig.hover) || cell) {
2004
+ return;
2005
+ }
2006
+ var xBar = $table.elemStore["main-body-alignXBar"];
2007
+ var yBar = $table.elemStore["main-body-alignYBar"];
2008
+ if (xBar) {
2009
+ xBar.style.display = "none";
2010
+ }
2011
+ if (yBar) {
2012
+ yBar.style.display = "none";
2013
+ }
2014
+ };
2015
+ var showAlignLines = function showAlignLines2($table, cell) {
2016
+ var _$table$mouseConfig2;
2017
+ if (!((_$table$mouseConfig2 = $table.mouseConfig) != null && _$table$mouseConfig2.hover)) {
2018
+ return;
2019
+ }
2020
+ var xBar = $table.elemStore["main-body-alignXBar"];
2021
+ var yBar = $table.elemStore["main-body-alignYBar"];
2022
+ if (xBar) {
2023
+ xBar.style.display = "block";
2024
+ xBar.style.top = cell.offsetTop - 1 + "px";
2025
+ xBar.style.setProperty("--after-top-offset", cell.offsetHeight + "px");
2026
+ }
2027
+ if (yBar) {
2028
+ yBar.style.display = "block";
2029
+ yBar.style.left = cell.offsetLeft - 1 + "px";
2030
+ yBar.style.setProperty("--after-left-offset", cell.offsetWidth + "px");
2031
+ }
2032
+ };
2002
2033
  var useCellEvent = function useCellEvent2(_ref21) {
2003
2034
  var table = _ref21.table, $table = _ref21.$table;
2004
2035
  var isBound = false;
@@ -2046,7 +2077,7 @@ var useCellEvent = function useCellEvent2(_ref21) {
2046
2077
  var source = getEventSource(e, $table);
2047
2078
  if (source) {
2048
2079
  var params = getEventParams(source, $table);
2049
- var _$table$mouseConfig = $table.mouseConfig, mouseConfig = _$table$mouseConfig === void 0 ? {} : _$table$mouseConfig;
2080
+ var _$table$mouseConfig3 = $table.mouseConfig, mouseConfig = _$table$mouseConfig3 === void 0 ? {} : _$table$mouseConfig3;
2050
2081
  if (source.part === "header" && mouseConfig.checked) {
2051
2082
  $table.triggerHeaderCellMousedownEvent(e, params);
2052
2083
  }
@@ -2064,7 +2095,7 @@ var useCellEvent = function useCellEvent2(_ref21) {
2064
2095
  var satisfy = function satisfy2(equal, trigger2) {
2065
2096
  return trigger2 === "row" || equal(column) && trigger2 === "cell";
2066
2097
  };
2067
- var editConfig = $table.editConfig, _$table$expandConfig = $table.expandConfig, expandConfig = _$table$expandConfig === void 0 ? {} : _$table$expandConfig, highlightCurrentColumn = $table.highlightCurrentColumn, highlightCurrentRow = $table.highlightCurrentRow, _$table$mouseConfig2 = $table.mouseConfig, mouseConfig = _$table$mouseConfig2 === void 0 ? {} : _$table$mouseConfig2, _$table$radioConfig = $table.radioConfig, radioConfig = _$table$radioConfig === void 0 ? {} : _$table$radioConfig, _$table$selectConfig = $table.selectConfig, selectConfig = _$table$selectConfig === void 0 ? {} : _$table$selectConfig, sortOpts2 = $table.sortOpts, tableListeners = $table.tableListeners, _$table$treeConfig = $table.treeConfig, treeConfig = _$table$treeConfig === void 0 ? {} : _$table$treeConfig;
2098
+ var editConfig = $table.editConfig, _$table$expandConfig = $table.expandConfig, expandConfig = _$table$expandConfig === void 0 ? {} : _$table$expandConfig, highlightCurrentColumn = $table.highlightCurrentColumn, highlightCurrentRow = $table.highlightCurrentRow, _$table$mouseConfig4 = $table.mouseConfig, mouseConfig = _$table$mouseConfig4 === void 0 ? {} : _$table$mouseConfig4, _$table$radioConfig = $table.radioConfig, radioConfig = _$table$radioConfig === void 0 ? {} : _$table$radioConfig, _$table$selectConfig = $table.selectConfig, selectConfig = _$table$selectConfig === void 0 ? {} : _$table$selectConfig, sortOpts2 = $table.sortOpts, tableListeners = $table.tableListeners, _$table$treeConfig = $table.treeConfig, treeConfig = _$table$treeConfig === void 0 ? {} : _$table$treeConfig;
2068
2099
  if (source.part === "header" && (highlightCurrentColumn || tableListeners["header-cell-click"] || mouseConfig.checked || sortOpts2.trigger === "cell")) {
2069
2100
  $table.triggerHeaderCellClickEvent(e, params);
2070
2101
  }
@@ -2196,6 +2227,7 @@ var useCellEvent = function useCellEvent2(_ref21) {
2196
2227
  if (tableListeners["cell-mouseleave"]) {
2197
2228
  emitEvent($table, "cell-mouseleave", [params, e]);
2198
2229
  }
2230
+ hideAlignLines($table, curCell);
2199
2231
  }
2200
2232
  }
2201
2233
  if (curCell) {
@@ -2205,6 +2237,7 @@ var useCellEvent = function useCellEvent2(_ref21) {
2205
2237
  if (tableListeners["cell-mouseenter"]) {
2206
2238
  emitEvent($table, "cell-mouseenter", [_params, _e]);
2207
2239
  }
2240
+ showAlignLines($table, curCell);
2208
2241
  }
2209
2242
  }
2210
2243
  });
@@ -2401,7 +2434,7 @@ var doSpan = function doSpan2(_ref31) {
2401
2434
  attrs.visible = rowspan > 0 && colspan > 0;
2402
2435
  };
2403
2436
  var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2404
- var row2 = _ref33.row, $rowIndex = _ref33.$rowIndex, column = _ref33.column, data6 = _ref33.data;
2437
+ var row2 = _ref33.row, $rowIndex = _ref33.$rowIndex, column = _ref33.column, data7 = _ref33.data;
2405
2438
  var fields = [];
2406
2439
  if (column.visible && rowSpan) {
2407
2440
  rowSpan.forEach(function(item) {
@@ -2409,8 +2442,8 @@ var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2409
2442
  });
2410
2443
  var cellVal = row2[column.property];
2411
2444
  if (cellVal && fields.includes(column.property)) {
2412
- var prevSiblingRow = data6[$rowIndex - 1];
2413
- var nextSiblingRow = data6[$rowIndex + 1];
2445
+ var prevSiblingRow = data7[$rowIndex - 1];
2446
+ var nextSiblingRow = data7[$rowIndex + 1];
2414
2447
  if ((prevSiblingRow == null ? void 0 : prevSiblingRow[column.property]) === cellVal) {
2415
2448
  return {
2416
2449
  rowspan: 0,
@@ -2420,7 +2453,7 @@ var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2420
2453
  var rowspanCount = 1;
2421
2454
  while (((_nextSiblingRow = nextSiblingRow) == null ? void 0 : _nextSiblingRow[column.property]) === cellVal) {
2422
2455
  var _nextSiblingRow;
2423
- nextSiblingRow = data6[++rowspanCount + $rowIndex];
2456
+ nextSiblingRow = data7[++rowspanCount + $rowIndex];
2424
2457
  }
2425
2458
  if (rowspanCount > 1) {
2426
2459
  return {
@@ -2745,7 +2778,7 @@ function renderColumn(_ref39) {
2745
2778
  row: row2,
2746
2779
  column
2747
2780
  } : _ref40$params;
2748
- var isMessageDefault = validOpts2.isMessageDefault, isMessageInline = validOpts2.isMessageInline;
2781
+ var isMessageDefault = validOpts2.isMessageDefault, isMessageInline = validOpts2.isMessageInline, highlightError = validOpts2.highlightError;
2749
2782
  var actived = editStore.actived;
2750
2783
  var validated = validatedMap[column.id + "-" + row2[rowId]];
2751
2784
  var validError = validStore.row === row2 && validStore.column === column;
@@ -2772,7 +2805,7 @@ function renderColumn(_ref39) {
2772
2805
  "data-colindex": $columnIndex,
2773
2806
  "rowspan": attrs.rowspan > 1 ? attrs.rowspan : void 0,
2774
2807
  "colspan": attrs.colspan > 1 ? attrs.colspan : void 0,
2775
- "class": ["tiny-grid-body__column", column.id, (_ref41 = {}, _ref41["col__" + cellAlign] = cellAlign, _ref41["col__edit"] = editor, _ref41["col__index"] = column.type === "index", _ref41["col__radio"] = column.type === "radio", _ref41["col__selection"] = column.type === "selection", _ref41["col__ellipsis"] = cellOverflowHint, _ref41["edit__visible"] = editor && editor.type === "visible", _ref41["col__dirty"] = isDirty, _ref41["col__actived"] = columnActived, _ref41["col__valid-error"] = validError && validated, _ref41["col__valid-success"] = columnActived ? !validError && !validated : isDirty && !validated, _ref41["col__treenode"] = column.treeNode, _ref41), getClass(className, params), getClass(cellClassName, params), getFixedClass(column, $table), attrs._stickyClass || ""]
2808
+ "class": ["tiny-grid-body__column", column.id, (_ref41 = {}, _ref41["col__" + cellAlign] = cellAlign, _ref41["col__edit"] = editor, _ref41["col__index"] = column.type === "index", _ref41["col__radio"] = column.type === "radio", _ref41["col__selection"] = column.type === "selection", _ref41["col__ellipsis"] = cellOverflowHint, _ref41["edit__visible"] = editor && editor.type === "visible", _ref41["col__dirty"] = isDirty, _ref41["col__actived"] = columnActived, _ref41["col__highlight-error"] = highlightError && validated, _ref41["col__valid-error"] = validError && validated, _ref41["col__valid-success"] = columnActived ? !validError && !validated : isDirty && !validated, _ref41["col__treenode"] = column.treeNode, _ref41), getClass(className, params), getClass(cellClassName, params), getFixedClass(column, $table), attrs._stickyClass || ""]
2776
2809
  }, [[
2777
2810
  // 行拖拽手柄
2778
2811
  dropConfig.rowHandle === "index" && column.type === "index" ? createVNode("div", {
@@ -2805,7 +2838,7 @@ function renderHeaderRows(_vm) {
2805
2838
  var $table = _vm.$parent, headerTable = _vm.headerTable;
2806
2839
  var headerCellClassName = $table.headerCellClassName, headerRowClassName = $table.headerRowClassName, headerSuffixIconAbsolute = $table.headerSuffixIconAbsolute;
2807
2840
  var allAlign = $table.align, border = $table.border, allHeaderAlign = $table.headerAlign, resizable = $table.resizable;
2808
- var editConfig = $table.editConfig, operationColumnResizable = $table.operationColumnResizable, _$table$mouseConfig3 = $table.mouseConfig, mouseConfig = _$table$mouseConfig3 === void 0 ? {} : _$table$mouseConfig3, _$table$dropConfig2 = $table.dropConfig, dropConfig = _$table$dropConfig2 === void 0 ? {} : _$table$dropConfig2;
2841
+ var editConfig = $table.editConfig, operationColumnResizable = $table.operationColumnResizable, _$table$mouseConfig5 = $table.mouseConfig, mouseConfig = _$table$mouseConfig5 === void 0 ? {} : _$table$mouseConfig5, _$table$dropConfig2 = $table.dropConfig, dropConfig = _$table$dropConfig2 === void 0 ? {} : _$table$dropConfig2;
2809
2842
  return headerTable.map(function(cols, $rowIndex) {
2810
2843
  return createVNode("tr", {
2811
2844
  "data-rowindex": $rowIndex,
@@ -2946,8 +2979,12 @@ function renderRows(_vm) {
2946
2979
  value: 0
2947
2980
  };
2948
2981
  var $seq = "";
2949
- rowPool.forEach(function(_ref48, $rowIndex) {
2950
- var id3 = _ref48.id, _ref48$item = _ref48.item, row2 = _ref48$item.payload, rowLevel = _ref48$item.level, used = _ref48.used;
2982
+ var lastVisibleIndex = rowPool.findLastIndex(function(_ref48) {
2983
+ var used = _ref48.used;
2984
+ return Boolean(used);
2985
+ });
2986
+ rowPool.forEach(function(_ref49, $rowIndex) {
2987
+ var id3 = _ref49.id, _ref49$item = _ref49.item, row2 = _ref49$item.payload, rowLevel = _ref49$item.level, used = _ref49.used;
2951
2988
  var rowActived = editConfig && actived.row === row2;
2952
2989
  var virtualRow = isVirtualRow(row2);
2953
2990
  var isSkipRowRender = hideMethod && hideMethod(row2, rowLevel) || virtualRow;
@@ -2984,7 +3021,8 @@ function renderRows(_vm) {
2984
3021
  isSkipRowRender,
2985
3022
  row: row2,
2986
3023
  rowActived,
2987
- rowClassName
3024
+ rowClassName,
3025
+ lastVisibleIndex
2988
3026
  };
2989
3027
  Object.assign(args, {
2990
3028
  rowIndex,
@@ -3066,8 +3104,8 @@ function renderRowExpanded(args) {
3066
3104
  }
3067
3105
  }
3068
3106
  }
3069
- function renderRowAfter(_ref49) {
3070
- var $table = _ref49.$table, _vm = _ref49._vm, row2 = _ref49.row, rowIndex = _ref49.rowIndex, rows = _ref49.rows, id3 = _ref49.id, used = _ref49.used;
3107
+ function renderRowAfter(_ref50) {
3108
+ var $table = _ref50.$table, _vm = _ref50._vm, row2 = _ref50.row, rowIndex = _ref50.rowIndex, rows = _ref50.rows, id3 = _ref50.id, used = _ref50.used;
3071
3109
  typeof $table.renderRowAfter === "function" && $table.renderRowAfter({
3072
3110
  rows,
3073
3111
  row: row2,
@@ -3079,9 +3117,9 @@ function renderRowAfter(_ref49) {
3079
3117
  }, h);
3080
3118
  }
3081
3119
  function renderRow(args) {
3082
- var _ref50;
3120
+ var _ref51;
3083
3121
  var $rowIndex = args.$rowIndex, $seq = args.$seq, $table = args.$table, _vm = args._vm, editStore = args.editStore, id3 = args.id, isSkipRowRender = args.isSkipRowRender, row2 = args.row, rowActived = args.rowActived, rowClassName = args.rowClassName;
3084
- var rowIndex = args.rowIndex, rowLevel = args.rowLevel, rowid2 = args.rowid, rows = args.rows, selection = args.selection, selectRow = args.selectRow, seq = args.seq, treeConfig = args.treeConfig, used = args.used;
3122
+ var rowIndex = args.rowIndex, rowLevel = args.rowLevel, rowid2 = args.rowid, rows = args.rows, selection = args.selection, selectRow = args.selectRow, seq = args.seq, treeConfig = args.treeConfig, used = args.used, lastVisibleIndex = args.lastVisibleIndex;
3085
3123
  if (isSkipRowRender) {
3086
3124
  return;
3087
3125
  }
@@ -3103,7 +3141,7 @@ function renderRow(args) {
3103
3141
  "style": {
3104
3142
  display: used ? void 0 : "none"
3105
3143
  },
3106
- "class": ["tiny-grid-body__row", (_ref50 = {}, _ref50["row__level-" + rowLevel] = treeConfig, _ref50["row__new"] = editStore.insertList.includes(row2), _ref50["row__selected"] = selection.includes(row2), _ref50["row__radio"] = selectRow === row2, _ref50["row__actived"] = rowActived, _ref50), rowClassName ? isFunction(rowClassName) ? rowClassName({
3144
+ "class": ["tiny-grid-body__row", (_ref51 = {}, _ref51["row__level-" + rowLevel] = treeConfig, _ref51["row__new"] = editStore.insertList.includes(row2), _ref51["row__selected"] = selection.includes(row2), _ref51["row__radio"] = selectRow === row2, _ref51["row__actived"] = rowActived, _ref51["row__last-visible"] = lastVisibleIndex === $rowIndex, _ref51), rowClassName ? isFunction(rowClassName) ? rowClassName({
3107
3145
  $table,
3108
3146
  $seq,
3109
3147
  seq,
@@ -3113,8 +3151,8 @@ function renderRow(args) {
3113
3151
  rowIndex,
3114
3152
  $rowIndex
3115
3153
  }) : rowClassName : ""]
3116
- }, [columnPool.map(function(_ref51, $columnIndex) {
3117
- var id4 = _ref51.id, column = _ref51.item, used2 = _ref51.used;
3154
+ }, [columnPool.map(function(_ref52, $columnIndex) {
3155
+ var id4 = _ref52.id, column = _ref52.item, used2 = _ref52.used;
3118
3156
  return renderColumn({
3119
3157
  $columnIndex,
3120
3158
  $table,
@@ -3128,8 +3166,8 @@ function renderRow(args) {
3128
3166
  });
3129
3167
  })]));
3130
3168
  }
3131
- function renderRowGroupTds(_ref52) {
3132
- var $table = _ref52.$table, closeable = _ref52.closeable, render17 = _ref52.render, renderGroupCell = _ref52.renderGroupCell, row2 = _ref52.row, tds = _ref52.tds, title = _ref52.title, _vm = _ref52._vm;
3169
+ function renderRowGroupTds(_ref53) {
3170
+ var $table = _ref53.$table, closeable = _ref53.closeable, render17 = _ref53.render, renderGroupCell = _ref53.renderGroupCell, row2 = _ref53.row, tds = _ref53.tds, title = _ref53.title, _vm = _ref53._vm;
3133
3171
  var targetColumn = $table._rowGroupTargetColumn;
3134
3172
  var value = row2.value || "";
3135
3173
  var columnPool = _vm.columnPool;
@@ -3168,8 +3206,8 @@ function renderRowGroupTds(_ref52) {
3168
3206
  }, [row2.children.length])]) : renderGroupCell ? renderGroupCell(h, params) : null])]));
3169
3207
  }
3170
3208
  }
3171
- function renderRowGroupData(_ref53) {
3172
- var $table = _ref53.$table, _vm = _ref53._vm, id3 = _ref53.id, row2 = _ref53.row, rowGroup = _ref53.rowGroup, rowid2 = _ref53.rowid, rows = _ref53.rows, used = _ref53.used, virtualRow = _ref53.virtualRow;
3209
+ function renderRowGroupData(_ref54) {
3210
+ var $table = _ref54.$table, _vm = _ref54._vm, id3 = _ref54.id, row2 = _ref54.row, rowGroup = _ref54.rowGroup, rowid2 = _ref54.rowid, rows = _ref54.rows, used = _ref54.used, virtualRow = _ref54.virtualRow;
3173
3211
  if (!virtualRow) return;
3174
3212
  var title = rowGroup.title, _rowGroup$closeable2 = rowGroup.closeable, closeable = _rowGroup$closeable2 === void 0 ? true : _rowGroup$closeable2, render17 = rowGroup.render, renderGroupCell = rowGroup.renderGroupCell, className = rowGroup.className;
3175
3213
  var tds = [];
@@ -3210,8 +3248,8 @@ function renderRowGroupData(_ref53) {
3210
3248
  "onClick": onClick
3211
3249
  }, [tds]));
3212
3250
  }
3213
- function renderTable(_ref54) {
3214
- var $table = _ref54.$table, _vm = _ref54._vm;
3251
+ function renderTable(_ref55) {
3252
+ var $table = _ref55.$table, _vm = _ref55._vm;
3215
3253
  var tableLayout = $table.tableLayout, scrollXLoad = $table.scrollXLoad, scrollYLoad = $table.scrollYLoad, bodyTableWidth = $table.bodyTableWidth, isColumnWidthAssigned = $table.isColumnWidthAssigned;
3216
3254
  var columnPool = _vm.columnPool, isNoData = _vm.isNoData;
3217
3255
  if (!isColumnWidthAssigned) {
@@ -3232,8 +3270,8 @@ function renderTable(_ref54) {
3232
3270
  // 列分组(用于指定列宽)
3233
3271
  createVNode("colgroup", {
3234
3272
  "ref": "colgroup"
3235
- }, [columnPool.map(function(_ref55) {
3236
- var id3 = _ref55.id, column = _ref55.item, used = _ref55.used;
3273
+ }, [columnPool.map(function(_ref56) {
3274
+ var id3 = _ref56.id, column = _ref56.item, used = _ref56.used;
3237
3275
  return createVNode("col", {
3238
3276
  "key": id3,
3239
3277
  "name": column.id,
@@ -3331,9 +3369,9 @@ var Body = /* @__PURE__ */ defineComponent({
3331
3369
  tableData: Array,
3332
3370
  footerData: Array
3333
3371
  },
3334
- setup: function setup3(props, _ref56) {
3372
+ setup: function setup3(props, _ref57) {
3335
3373
  var _hooks$getCurrentInst4;
3336
- var slots = _ref56.slots;
3374
+ var slots = _ref57.slots;
3337
3375
  var vm = (_hooks$getCurrentInst4 = hooks.getCurrentInstance()) == null ? void 0 : _hooks$getCurrentInst4.proxy;
3338
3376
  var $table = vm == null ? void 0 : vm.$parent;
3339
3377
  var rowHeight = hooks.computed(function() {
@@ -3354,6 +3392,8 @@ var Body = /* @__PURE__ */ defineComponent({
3354
3392
  var thead = hooks.ref();
3355
3393
  var tbody = hooks.ref();
3356
3394
  var ySpace = hooks.ref();
3395
+ var alignXBar = hooks.ref();
3396
+ var alignYBar = hooks.ref();
3357
3397
  hooks.watch(wrapperScrollLeft, function(wrapperScrollLeft2) {
3358
3398
  var el = stickyWrapper.value;
3359
3399
  if (!el) return;
@@ -3379,13 +3419,15 @@ var Body = /* @__PURE__ */ defineComponent({
3379
3419
  $table
3380
3420
  });
3381
3421
  var _useCellSpan = useCellSpan(vm, props), normalRows = _useCellSpan.normalRows, footerRows = _useCellSpan.footerRows;
3382
- hooks.watch([body, table, thead, tbody, ySpace], function() {
3422
+ hooks.watch([body, table, thead, tbody, ySpace, alignXBar, alignYBar], function() {
3383
3423
  var elemStore = $table.elemStore;
3384
3424
  elemStore["main-body-wrapper"] = body.value;
3385
3425
  elemStore["main-body-table"] = table.value;
3386
3426
  elemStore["main-body-headerList"] = thead.value;
3387
3427
  elemStore["main-body-list"] = tbody.value;
3388
3428
  elemStore["main-body-ySpace"] = ySpace.value;
3429
+ elemStore["main-body-alignXBar"] = alignXBar.value;
3430
+ elemStore["main-body-alignYBar"] = alignYBar.value;
3389
3431
  });
3390
3432
  var bodyClientWidth = hooks.ref(0);
3391
3433
  var resizeObserver = new ResizeObserver(function(entries) {
@@ -3460,6 +3502,8 @@ var Body = /* @__PURE__ */ defineComponent({
3460
3502
  thead,
3461
3503
  tbody,
3462
3504
  ySpace,
3505
+ alignXBar,
3506
+ alignYBar,
3463
3507
  normalRows,
3464
3508
  footerRows,
3465
3509
  resetStickyWrapperScrollPos
@@ -3480,11 +3524,26 @@ var Body = /* @__PURE__ */ defineComponent({
3480
3524
  "no-data": isNoData && $table.isShapeTable
3481
3525
  },
3482
3526
  "style": {
3527
+ "--body-container-scroll-height": containerScrollHeight + "px",
3528
+ "--body-container-scroll-width": containerScrollWidth + "px",
3483
3529
  height: bodyWrapperHeight ? bodyWrapperHeight + "px" : void 0,
3484
3530
  minHeight: bodyWrapperMinHeight ? bodyWrapperMinHeight + "px" : void 0,
3485
3531
  maxHeight: bodyWrapperMaxHeight ? bodyWrapperMaxHeight + "px" : void 0
3486
3532
  }
3487
3533
  }, [[
3534
+ mouseConfig != null && mouseConfig.hover ? [createVNode("div", {
3535
+ "ref": "alignYBar",
3536
+ "class": "tiny-grid-body__hover-align-y-bar",
3537
+ "style": {
3538
+ height: containerScrollHeight + "px"
3539
+ }
3540
+ }, null), createVNode("div", {
3541
+ "ref": "alignXBar",
3542
+ "class": "tiny-grid-body__hover-align-x-bar",
3543
+ "style": {
3544
+ width: containerScrollWidth + "px"
3545
+ }
3546
+ }, null)] : null,
3488
3547
  createVNode("div", {
3489
3548
  "class": "tiny-grid-body__x-space",
3490
3549
  "style": {
@@ -3570,18 +3629,18 @@ var Body = /* @__PURE__ */ defineComponent({
3570
3629
  var $el = this.$el, $table = this.$parent;
3571
3630
  var dragClientX = event.clientX, dragBtnElem = event.target;
3572
3631
  var column = params.column;
3573
- var _ref57 = {}, _ref57$dragLeft = _ref57.dragLeft, dragLeft = _ref57$dragLeft === void 0 ? 0 : _ref57$dragLeft, _ref57$minInterval = _ref57.minInterval, minInterval = _ref57$minInterval === void 0 ? 40 : _ref57$minInterval;
3632
+ var _ref58 = {}, _ref58$dragLeft = _ref58.dragLeft, dragLeft = _ref58$dragLeft === void 0 ? 0 : _ref58$dragLeft, _ref58$minInterval = _ref58.minInterval, minInterval = _ref58$minInterval === void 0 ? 40 : _ref58$minInterval;
3574
3633
  var _$table$$refs = $table.$refs, resizeBarElem = _$table$$refs.resizeBar, tableBody = _$table$$refs.tableBody;
3575
- var _ref58 = {}, _ref58$cell = _ref58.cell, cell = _ref58$cell === void 0 ? dragBtnElem.parentNode : _ref58$cell, _ref58$dragBtnWidth = _ref58.dragBtnWidth, dragBtnWidth = _ref58$dragBtnWidth === void 0 ? dragBtnElem.clientWidth : _ref58$dragBtnWidth;
3576
- var _ref59 = {}, _ref59$pos = _ref59.pos, pos = _ref59$pos === void 0 ? getOffsetPos(dragBtnElem, $el) : _ref59$pos, _ref59$tableBodyElem = _ref59.tableBodyElem, tableBodyElem = _ref59$tableBodyElem === void 0 ? tableBody.$el : _ref59$tableBodyElem;
3634
+ var _ref59 = {}, _ref59$cell = _ref59.cell, cell = _ref59$cell === void 0 ? dragBtnElem.parentNode : _ref59$cell, _ref59$dragBtnWidth = _ref59.dragBtnWidth, dragBtnWidth = _ref59$dragBtnWidth === void 0 ? dragBtnElem.clientWidth : _ref59$dragBtnWidth;
3635
+ var _ref60 = {}, _ref60$pos = _ref60.pos, pos = _ref60$pos === void 0 ? getOffsetPos(dragBtnElem, $el) : _ref60$pos, _ref60$tableBodyElem = _ref60.tableBodyElem, tableBodyElem = _ref60$tableBodyElem === void 0 ? tableBody.$el : _ref60$tableBodyElem;
3577
3636
  var dragMinLeft = pos.left - cell.clientWidth + dragBtnWidth + minInterval;
3578
3637
  var dragPosLeft = pos.left + Math.floor(dragBtnWidth);
3579
- var _ref60 = {}, _ref60$oldMousemove = _ref60.oldMousemove, oldMousemove = _ref60$oldMousemove === void 0 ? document.onmousemove : _ref60$oldMousemove, _ref60$oldMouseup = _ref60.oldMouseup, oldMouseup = _ref60$oldMouseup === void 0 ? document.onmouseup : _ref60$oldMouseup;
3638
+ var _ref61 = {}, _ref61$oldMousemove = _ref61.oldMousemove, oldMousemove = _ref61$oldMousemove === void 0 ? document.onmousemove : _ref61$oldMousemove, _ref61$oldMouseup = _ref61.oldMouseup, oldMouseup = _ref61$oldMouseup === void 0 ? document.onmouseup : _ref61$oldMouseup;
3580
3639
  var handleMousemoveEvent = function handleMousemoveEvent2(event2) {
3581
3640
  var _$table$resizableConf;
3582
3641
  event2.stopPropagation();
3583
3642
  event2.preventDefault();
3584
- var _ref61 = {}, _ref61$offsetX = _ref61.offsetX, offsetX = _ref61$offsetX === void 0 ? event2.clientX - dragClientX : _ref61$offsetX, _ref61$left = _ref61.left, left = _ref61$left === void 0 ? offsetX + dragPosLeft : _ref61$left;
3643
+ var _ref62 = {}, _ref62$offsetX = _ref62.offsetX, offsetX = _ref62$offsetX === void 0 ? event2.clientX - dragClientX : _ref62$offsetX, _ref62$left = _ref62.left, left = _ref62$left === void 0 ? offsetX + dragPosLeft : _ref62$left;
3585
3644
  var scrollLeft = tableBodyElem.scrollLeft;
3586
3645
  dragLeft = Math.max(left, dragMinLeft);
3587
3646
  if ((_$table$resizableConf = $table.resizableConfig) != null && _$table$resizableConf.limit) {
@@ -3656,14 +3715,14 @@ var Radio = defineComponent({
3656
3715
  return this.size || this.$parent.size || this.$parent.vSize;
3657
3716
  }
3658
3717
  },
3659
- setup: function setup4(props, _ref62) {
3660
- var slots = _ref62.slots;
3718
+ setup: function setup4(props, _ref63) {
3719
+ var slots = _ref63.slots;
3661
3720
  return {
3662
3721
  slots
3663
3722
  };
3664
3723
  },
3665
3724
  render: function render2() {
3666
- var _ref63, _this2 = this;
3725
+ var _ref64, _this2 = this;
3667
3726
  var disabled = this.disabled, vSize3 = this.vSize, modelValue = this.modelValue, label = this.label, name = this.name;
3668
3727
  var $slots = this.slots;
3669
3728
  var disableClass = "disabled";
@@ -3680,7 +3739,7 @@ var Radio = defineComponent({
3680
3739
  return content;
3681
3740
  };
3682
3741
  return h("label", {
3683
- class: ["tiny-grid-radio", (_ref63 = {}, _ref63["size__" + vSize3] = vSize3, _ref63["is__" + disableClass] = disabled, _ref63)]
3742
+ class: ["tiny-grid-radio", (_ref64 = {}, _ref64["size__" + vSize3] = vSize3, _ref64["is__" + disableClass] = disabled, _ref64)]
3684
3743
  }, [h("input", {
3685
3744
  attrs: {
3686
3745
  type: "radio",
@@ -3715,8 +3774,8 @@ $install(Radio);
3715
3774
  function _isSlot(s) {
3716
3775
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
3717
3776
  }
3718
- var renderInputArgs = function renderInputArgs2(_ref64) {
3719
- var _vm = _ref64._vm, inputFilter = _ref64.inputFilter;
3777
+ var renderInputArgs = function renderInputArgs2(_ref65) {
3778
+ var _vm = _ref65._vm, inputFilter = _ref65.inputFilter;
3720
3779
  var isAddbyProgram = false;
3721
3780
  if (typeof inputFilter.relations_addby !== "undefined") {
3722
3781
  isAddbyProgram = inputFilter.relations_addby === "program";
@@ -3744,9 +3803,9 @@ var renderInputArgs = function renderInputArgs2(_ref64) {
3744
3803
  inputRelations
3745
3804
  };
3746
3805
  };
3747
- var renderInputProps = function renderInputProps2(_ref65) {
3806
+ var renderInputProps = function renderInputProps2(_ref66) {
3748
3807
  var _on3;
3749
- var InputComponent = _ref65.InputComponent, condition2 = _ref65.condition, event = _ref65.event, inputFilter = _ref65.inputFilter, isNativeInput = _ref65.isNativeInput, prop = _ref65.prop;
3808
+ var InputComponent = _ref66.InputComponent, condition2 = _ref66.condition, event = _ref66.event, inputFilter = _ref66.inputFilter, isNativeInput = _ref66.isNativeInput, prop = _ref66.prop;
3750
3809
  var inputProps = {
3751
3810
  style: "width:100%",
3752
3811
  on: (_on3 = {}, _on3[event] = function(value) {
@@ -3792,8 +3851,8 @@ var iconRender = function iconRender2(checked, index2, halfChecked) {
3792
3851
  }), null) : createVNode(Check, props, null);
3793
3852
  }
3794
3853
  };
3795
- var renderEnumableOptions = function renderEnumableOptions2(_ref66) {
3796
- var iconRender3 = _ref66.iconRender, _vm = _ref66._vm, filterStore = _ref66.filterStore, selectAll = _ref66.selectAll, searchable = _ref66.searchable;
3854
+ var renderEnumableOptions = function renderEnumableOptions2(_ref67) {
3855
+ var iconRender3 = _ref67.iconRender, _vm = _ref67._vm, filterStore = _ref67.filterStore, selectAll = _ref67.selectAll, searchable = _ref67.searchable;
3797
3856
  var resultList = filterStore.options.filter(function(value) {
3798
3857
  var _value$label;
3799
3858
  return (_value$label = value.label) == null ? void 0 : _value$label.toString().includes(filterStore.searchValue);
@@ -3874,7 +3933,7 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
3874
3933
  };
3875
3934
  },
3876
3935
  render: function render3() {
3877
- var _this3 = this, _ref67;
3936
+ var _this3 = this, _ref68;
3878
3937
  var filterStore = this.filterStore, $grid = this.$grid, $table = this.$parent, optimizeOpts = this.optimizeOpts, renderInput2 = this.renderInput, renderEnumable2 = this.renderEnumable, renderDefault2 = this.renderDefault, renderExtends2 = this.renderExtends, renderBase2 = this.renderBase, renderSimple2 = this.renderSimple;
3879
3938
  var args = filterStore.args, column = filterStore.column, options = filterStore.options, _filterStore$layout = filterStore.layout, layout2 = _filterStore$layout === void 0 ? "input,enum,default,extends,base" : _filterStore$layout;
3880
3939
  var layoutMap = {
@@ -3895,9 +3954,9 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
3895
3954
  attrs: filterStore.attrs
3896
3955
  } : filterStore.attrs;
3897
3956
  return createVNode("div", mergeProps(wrapperAttrs, {
3898
- "class": ["tiny-grid__wrapper", "tiny-grid__filter-wrapper", "filter__prevent-default", (_ref67 = {
3957
+ "class": ["tiny-grid__wrapper", "tiny-grid__filter-wrapper", "filter__prevent-default", (_ref68 = {
3899
3958
  "tiny-grid__animat": optimizeOpts.animat
3900
- }, _ref67[map.filterActive] = filterStore.visible, _ref67["tiny-grid__filter-simple"] = layout2.includes("simple"), _ref67["filter-wrapper-saas"] = $table.isThemeSaas, _ref67)],
3959
+ }, _ref68[map.filterActive] = filterStore.visible, _ref68["tiny-grid__filter-simple"] = layout2.includes("simple"), _ref68["filter-wrapper-saas"] = $table.isThemeSaas, _ref68)],
3901
3960
  "style": filterStore.style
3902
3961
  }), [filterStore.visible ? createVNode("div", {
3903
3962
  "class": ["tiny-grid__filter-body", {
@@ -4003,7 +4062,7 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
4003
4062
  // 筛选扩展项
4004
4063
  renderExtends: function renderExtends() {
4005
4064
  var _this6 = this;
4006
- var filterStore = this.filterStore;
4065
+ var filterStore = this.filterStore, condition2 = this.condition;
4007
4066
  if (!filterStore.extends) {
4008
4067
  return null;
4009
4068
  }
@@ -4011,7 +4070,9 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
4011
4070
  "class": "tiny-grid__filter-panel filter-panel__clear"
4012
4071
  }, [filterStore.extends.map(function(item) {
4013
4072
  return createVNode("li", {
4014
- "class": "tiny-grid__filter-option",
4073
+ "class": ["tiny-grid__filter-option", {
4074
+ active: condition2.value === (item.value || item.label)
4075
+ }],
4015
4076
  "onClick": function onClick() {
4016
4077
  _this6.filterExtends(item);
4017
4078
  }
@@ -4050,8 +4111,8 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
4050
4111
  "class": "tiny-grid__filter-panel"
4051
4112
  }, [isAddbyProgram ? null : createVNode("li", {
4052
4113
  "class": "tiny-grid__filter-option filter-option__radios"
4053
- }, [inputRelations.map(function(_ref68) {
4054
- var label = _ref68.label, value = _ref68.value, method = _ref68.method;
4114
+ }, [inputRelations.map(function(_ref69) {
4115
+ var label = _ref69.label, value = _ref69.value, method = _ref69.method;
4055
4116
  return createVNode(Radio, {
4056
4117
  "modelValue": condition2.relation,
4057
4118
  "label": value,
@@ -4405,8 +4466,8 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
4405
4466
  });
4406
4467
  }
4407
4468
  });
4408
- function handleFilterConditionCustom(_ref69) {
4409
- var column = _ref69.column, condition2 = _ref69.condition, method = _ref69.method, property = _ref69.property, row2 = _ref69.row;
4469
+ function handleFilterConditionCustom(_ref70) {
4470
+ var column = _ref70.column, condition2 = _ref70.condition, method = _ref70.method, property = _ref70.property, row2 = _ref70.row;
4410
4471
  var ret = {
4411
4472
  flag: false,
4412
4473
  result: null
@@ -4421,8 +4482,8 @@ function handleFilterConditionCustom(_ref69) {
4421
4482
  }
4422
4483
  return ret;
4423
4484
  }
4424
- function handleFilterConditionExtend(_ref70) {
4425
- var column = _ref70.column, condition2 = _ref70.condition, property = _ref70.property, row2 = _ref70.row;
4485
+ function handleFilterConditionExtend(_ref71) {
4486
+ var column = _ref71.column, condition2 = _ref71.condition, property = _ref71.property, row2 = _ref71.row;
4426
4487
  var ret = {
4427
4488
  flag: false,
4428
4489
  result: null
@@ -4455,8 +4516,8 @@ function findRelationMethod(relation, relations) {
4455
4516
  return method;
4456
4517
  }
4457
4518
  }
4458
- function handleFilterRelations(_ref71) {
4459
- var inputFilter = _ref71.inputFilter;
4519
+ function handleFilterRelations(_ref72) {
4520
+ var inputFilter = _ref72.inputFilter;
4460
4521
  var relations = [];
4461
4522
  if (typeof inputFilter === "object" && Array.isArray(inputFilter.relations)) {
4462
4523
  relations = inputFilter.relations;
@@ -4469,8 +4530,8 @@ function modifyValueCheckStr(value) {
4469
4530
  }
4470
4531
  return value;
4471
4532
  }
4472
- function handleDefaultCheckStr(_ref72) {
4473
- var column = _ref72.column, input = _ref72.input, relation = _ref72.relation, relationMethod = _ref72.relationMethod, relations = _ref72.relations, result = _ref72.result, row2 = _ref72.row, value = _ref72.value;
4533
+ function handleDefaultCheckStr(_ref73) {
4534
+ var column = _ref73.column, input = _ref73.input, relation = _ref73.relation, relationMethod = _ref73.relationMethod, relations = _ref73.relations, result = _ref73.result, row2 = _ref73.row, value = _ref73.value;
4474
4535
  if (typeof relationMethod !== "function") {
4475
4536
  relationMethod = findRelationMethod(relation, relations);
4476
4537
  }
@@ -4487,8 +4548,8 @@ function handleDefaultCheckStr(_ref72) {
4487
4548
  result
4488
4549
  };
4489
4550
  }
4490
- function handleFilterCheckStr(_ref73) {
4491
- var column = _ref73.column, relationMethod = _ref73.relationMethod, relations = _ref73.relations, row2 = _ref73.row;
4551
+ function handleFilterCheckStr(_ref74) {
4552
+ var column = _ref74.column, relationMethod = _ref74.relationMethod, relations = _ref74.relations, row2 = _ref74.row;
4492
4553
  return function(value, input, relation, dateList) {
4493
4554
  var result = false;
4494
4555
  value = modifyValueCheckStr(value);
@@ -4541,8 +4602,8 @@ function handleFilterCheckStr(_ref73) {
4541
4602
  return result;
4542
4603
  };
4543
4604
  }
4544
- function handleFilterCheck(_ref74) {
4545
- var checkStr = _ref74.checkStr, empty = _ref74.empty, input = _ref74.input, property = _ref74.property, relation = _ref74.relation, row2 = _ref74.row, valueList = _ref74.valueList, dateList = _ref74.dateList;
4605
+ function handleFilterCheck(_ref75) {
4606
+ var checkStr = _ref75.checkStr, empty = _ref75.empty, input = _ref75.input, property = _ref75.property, relation = _ref75.relation, row2 = _ref75.row, valueList = _ref75.valueList, dateList = _ref75.dateList;
4546
4607
  return function() {
4547
4608
  var value = get(row2, property);
4548
4609
  if (empty === true) {
@@ -4714,8 +4775,8 @@ var Methods$f = {
4714
4775
  });
4715
4776
  return check();
4716
4777
  },
4717
- getOptions: function getOptions(_ref75) {
4718
- var property = _ref75.property, filter2 = _ref75.filter;
4778
+ getOptions: function getOptions(_ref76) {
4779
+ var property = _ref76.property, filter2 = _ref76.filter;
4719
4780
  var values = filter2.values, _filter$value = filter2.value, value = _filter$value === void 0 ? "value" : _filter$value, _filter$label = filter2.label, label = _filter$label === void 0 ? "label" : _filter$label, dataset = filter2.dataset;
4720
4781
  if (typeof values === "function") {
4721
4782
  return values({
@@ -4781,8 +4842,8 @@ var Methods$f = {
4781
4842
  args: params
4782
4843
  }, filter2, {
4783
4844
  defaultFilter: isBoolean(filter2.defaultFilter) ? filter2.defaultFilter : true,
4784
- options: options.map(function(_ref76) {
4785
- var value = _ref76.value, label = _ref76.label;
4845
+ options: options.map(function(_ref77) {
4846
+ var value = _ref77.value, label = _ref77.label;
4786
4847
  return {
4787
4848
  value,
4788
4849
  label,
@@ -4960,8 +5021,8 @@ var Children = defineComponent({
4960
5021
  }
4961
5022
  }
4962
5023
  });
4963
- var onMenuItem = function onMenuItem2(_ref77) {
4964
- var tableInstance = _ref77.tableInstance, item = _ref77.item, getEventTargetNode2 = _ref77.getEventTargetNode, toKebab2 = _ref77.toKebab;
5024
+ var onMenuItem = function onMenuItem2(_ref78) {
5025
+ var tableInstance = _ref78.tableInstance, item = _ref78.item, getEventTargetNode2 = _ref78.getEventTargetNode, toKebab2 = _ref78.toKebab;
4965
5026
  return {
4966
5027
  click: function click(event) {
4967
5028
  tableInstance.ctxMenuLinkEvent(event, item);
@@ -5016,8 +5077,8 @@ function createMenuItem(args) {
5016
5077
  }
5017
5078
  return res;
5018
5079
  }
5019
- function getMenuItemCreator(_ref78) {
5020
- var ctxMenuStore = _ref78.ctxMenuStore, getEventTargetNode2 = _ref78.getEventTargetNode, tableInstance = _ref78.tableInstance, toKebab2 = _ref78.toKebab;
5080
+ function getMenuItemCreator(_ref79) {
5081
+ var ctxMenuStore = _ref79.ctxMenuStore, getEventTargetNode2 = _ref79.getEventTargetNode, tableInstance = _ref79.tableInstance, toKebab2 = _ref79.toKebab;
5021
5082
  return function(options, gIndex) {
5022
5083
  return h("ul", {
5023
5084
  class: "tiny-grid-menu__option-wrapper",
@@ -5086,9 +5147,9 @@ var Methods$e = {
5086
5147
  return this.$nextTick();
5087
5148
  },
5088
5149
  // 处理菜单的移动
5089
- moveCtxMenu: function moveCtxMenu(_ref79) {
5150
+ moveCtxMenu: function moveCtxMenu(_ref80) {
5090
5151
  var _this9 = this;
5091
- var event = _ref79.event, keyCode = _ref79.keyCode, ctxMenuStore = _ref79.ctxMenuStore, property = _ref79.property, operKey = _ref79.operKey, operRest = _ref79.operRest, menuList = _ref79.menuList;
5152
+ var event = _ref80.event, keyCode = _ref80.keyCode, ctxMenuStore = _ref80.ctxMenuStore, property = _ref80.property, operKey = _ref80.operKey, operRest = _ref80.operRest, menuList = _ref80.menuList;
5092
5153
  var selectIndex = findIndexOf(menuList, function(item) {
5093
5154
  return ctxMenuStore[property] === item;
5094
5155
  });
@@ -5329,16 +5390,16 @@ var Loading = defineComponent({
5329
5390
  }
5330
5391
  });
5331
5392
  $install(Loading);
5332
- function handleActivedCheckCell(_ref80) {
5333
- var actived = _ref80.actived, column = _ref80.column, editConfig = _ref80.editConfig, row2 = _ref80.row;
5393
+ function handleActivedCheckCell(_ref81) {
5394
+ var actived = _ref81.actived, column = _ref81.column, editConfig = _ref81.editConfig, row2 = _ref81.row;
5334
5395
  return actived.row !== row2 || (editConfig.mode === "cell" ? actived.column !== column : false);
5335
5396
  }
5336
- function handleActivedCanActive(_ref81) {
5337
- var editConfig = _ref81.editConfig, params = _ref81.params;
5397
+ function handleActivedCanActive(_ref82) {
5398
+ var editConfig = _ref82.editConfig, params = _ref82.params;
5338
5399
  return !(editConfig != null && editConfig.activeMethod) || editConfig.activeMethod(params);
5339
5400
  }
5340
- function handleActivedDoActive(_ref82) {
5341
- var _vm = _ref82._vm, actived = _ref82.actived, canActive = _ref82.canActive, cell = _ref82.cell, column = _ref82.column, editConfig = _ref82.editConfig, event = _ref82.event, params = _ref82.params, row2 = _ref82.row, tableColumn2 = _ref82.tableColumn, type = _ref82.type;
5401
+ function handleActivedDoActive(_ref83) {
5402
+ var _vm = _ref83._vm, actived = _ref83.actived, canActive = _ref83.canActive, cell = _ref83.cell, column = _ref83.column, editConfig = _ref83.editConfig, event = _ref83.event, params = _ref83.params, row2 = _ref83.row, tableColumn2 = _ref83.tableColumn, type = _ref83.type;
5342
5403
  if (canActive) {
5343
5404
  if (_vm.keyboardConfig || _vm.mouseConfig) {
5344
5405
  _vm.clearCopyed(event);
@@ -5365,14 +5426,14 @@ function handleActivedDoActive(_ref82) {
5365
5426
  }
5366
5427
  return type;
5367
5428
  }
5368
- function handleActivedClearActive(_ref83) {
5369
- var _vm = _ref83._vm, canActive = _ref83.canActive, event = _ref83.event;
5429
+ function handleActivedClearActive(_ref84) {
5430
+ var _vm = _ref84._vm, canActive = _ref84.canActive, event = _ref84.event;
5370
5431
  if (!canActive) {
5371
5432
  _vm.clearActived(event);
5372
5433
  }
5373
5434
  }
5374
- function handleActivedTryActive(_ref84) {
5375
- var _vm = _ref84._vm, actived = _ref84.actived, cell = _ref84.cell, column = _ref84.column, editor = _ref84.editor, event = _ref84.event, isActiveCell = _ref84.isActiveCell, params = _ref84.params, row2 = _ref84.row;
5435
+ function handleActivedTryActive(_ref85) {
5436
+ var _vm = _ref85._vm, actived = _ref85.actived, cell = _ref85.cell, column = _ref85.column, editor = _ref85.editor, event = _ref85.event, isActiveCell = _ref85.isActiveCell, params = _ref85.params, row2 = _ref85.row;
5376
5437
  if (editor && cell && !isActiveCell) {
5377
5438
  var oldColumn = actived.column;
5378
5439
  if (oldColumn !== column) {
@@ -5394,8 +5455,8 @@ var insertedField = GlobalConfig$1.constant.insertedField;
5394
5455
  var getCellRender = function getCellRender2(isTreeNode, treeCellRender, treeRender, context) {
5395
5456
  return context[isTreeNode ? treeCellRender : treeRender];
5396
5457
  };
5397
- function processRenderer(_ref85) {
5398
- var h2 = _ref85.h, params = _ref85.params, renderer = _ref85.renderer, value = _ref85.value;
5458
+ function processRenderer(_ref86) {
5459
+ var h2 = _ref86.h, params = _ref86.params, renderer = _ref86.renderer, value = _ref86.value;
5399
5460
  var result = {
5400
5461
  flag: false,
5401
5462
  vnodes: null
@@ -5420,13 +5481,13 @@ function processRenderer(_ref85) {
5420
5481
  }
5421
5482
  return result;
5422
5483
  }
5423
- function processAsyncColumn(_ref86) {
5424
- var $table = _ref86.$table, column = _ref86.column, format = _ref86.format, h2 = _ref86.h, params = _ref86.params, row2 = _ref86.row;
5484
+ function processAsyncColumn(_ref87) {
5485
+ var $table = _ref87.$table, column = _ref87.column, format = _ref87.format, h2 = _ref87.h, params = _ref87.params, row2 = _ref87.row;
5425
5486
  var result = {
5426
5487
  flag: false,
5427
5488
  vnodes: null
5428
5489
  };
5429
- var _ref87 = format.async || {}, fetch = _ref87.fetch, loadingText = _ref87.loadingText;
5490
+ var _ref88 = format.async || {}, fetch = _ref88.fetch, loadingText = _ref88.loadingText;
5430
5491
  if ($table.isAsyncColumn && row2[insertedField] !== true && typeof fetch === "function") {
5431
5492
  var cellText = row2[$table.getAsyncColumnName(column.property)];
5432
5493
  var loadingRender = loadingText || "loading ...";
@@ -5440,8 +5501,8 @@ function processAsyncColumn(_ref86) {
5440
5501
  }
5441
5502
  return result;
5442
5503
  }
5443
- function getColumnRuleTypeIndex(_ref88) {
5444
- var _vm = _ref88._vm, isTreeNode = _ref88.isTreeNode, renMaps = _ref88.renMaps, type = _ref88.type;
5504
+ function getColumnRuleTypeIndex(_ref89) {
5505
+ var _vm = _ref89._vm, isTreeNode = _ref89.isTreeNode, renMaps = _ref89.renMaps, type = _ref89.type;
5445
5506
  return {
5446
5507
  match: function match() {
5447
5508
  return type === "index";
@@ -5452,8 +5513,8 @@ function getColumnRuleTypeIndex(_ref88) {
5452
5513
  }
5453
5514
  };
5454
5515
  }
5455
- function getColumnRuleTypeRadio(_ref89) {
5456
- var _vm = _ref89._vm, isTreeNode = _ref89.isTreeNode, renMaps = _ref89.renMaps, type = _ref89.type;
5516
+ function getColumnRuleTypeRadio(_ref90) {
5517
+ var _vm = _ref90._vm, isTreeNode = _ref90.isTreeNode, renMaps = _ref90.renMaps, type = _ref90.type;
5457
5518
  return {
5458
5519
  match: function match() {
5459
5520
  return type === "radio";
@@ -5464,8 +5525,8 @@ function getColumnRuleTypeRadio(_ref89) {
5464
5525
  }
5465
5526
  };
5466
5527
  }
5467
- function getColumnRuleTypeSelection(_ref90) {
5468
- var _vm = _ref90._vm, isTreeNode = _ref90.isTreeNode, renMaps = _ref90.renMaps, selectConfig = _ref90.selectConfig, type = _ref90.type;
5528
+ function getColumnRuleTypeSelection(_ref91) {
5529
+ var _vm = _ref91._vm, isTreeNode = _ref91.isTreeNode, renMaps = _ref91.renMaps, selectConfig = _ref91.selectConfig, type = _ref91.type;
5469
5530
  return {
5470
5531
  match: function match() {
5471
5532
  return type === "selection";
@@ -5479,8 +5540,8 @@ function getColumnRuleTypeSelection(_ref90) {
5479
5540
  }
5480
5541
  };
5481
5542
  }
5482
- function getColumnRuleTypeExpand(_ref91) {
5483
- var _vm = _ref91._vm, renMaps = _ref91.renMaps, type = _ref91.type;
5543
+ function getColumnRuleTypeExpand(_ref92) {
5544
+ var _vm = _ref92._vm, renMaps = _ref92.renMaps, type = _ref92.type;
5484
5545
  return {
5485
5546
  match: function match() {
5486
5547
  return type === "expand";
@@ -5491,8 +5552,8 @@ function getColumnRuleTypeExpand(_ref91) {
5491
5552
  }
5492
5553
  };
5493
5554
  }
5494
- function getColumnRuleTypeOperation(_ref92) {
5495
- var _vm = _ref92._vm, renMaps = _ref92.renMaps, type = _ref92.type;
5555
+ function getColumnRuleTypeOperation(_ref93) {
5556
+ var _vm = _ref93._vm, renMaps = _ref93.renMaps, type = _ref93.type;
5496
5557
  return {
5497
5558
  match: function match() {
5498
5559
  return type === "operation";
@@ -5502,8 +5563,8 @@ function getColumnRuleTypeOperation(_ref92) {
5502
5563
  }
5503
5564
  };
5504
5565
  }
5505
- function getColumnRuleTypeOther(_ref93) {
5506
- var $table = _ref93.$table, _vm = _ref93._vm, colProps = _ref93.colProps, editor = _ref93.editor, filter2 = _ref93.filter, isTreeNode = _ref93.isTreeNode, renMaps = _ref93.renMaps, type = _ref93.type;
5566
+ function getColumnRuleTypeOther(_ref94) {
5567
+ var $table = _ref94.$table, _vm = _ref94._vm, colProps = _ref94.colProps, editor = _ref94.editor, filter2 = _ref94.filter, isTreeNode = _ref94.isTreeNode, renMaps = _ref94.renMaps, type = _ref94.type;
5507
5568
  return {
5508
5569
  match: function match() {
5509
5570
  return !~["index", "radio", "selection", "expand", "operation"].indexOf(type);
@@ -5622,7 +5683,9 @@ var Cell = {
5622
5683
  }
5623
5684
  }
5624
5685
  if (typeof title === "function") {
5625
- return [title(h2, params)];
5686
+ return [h2("div", {
5687
+ class: "tiny-grid-cell-text"
5688
+ }, [title(h2, params)])];
5626
5689
  }
5627
5690
  if (type === "card") {
5628
5691
  return [formatText(getFuncText(own.title), 1)];
@@ -5670,7 +5733,7 @@ var Cell = {
5670
5733
  },
5671
5734
  // 树节点
5672
5735
  renderTreeIcon: function renderTreeIcon(h2, params) {
5673
- var _ref95, _$table$$grid, _$table$$grid$designC, _$table$$grid$designC2, _ref96;
5736
+ var _ref96, _$table$$grid, _$table$$grid$designC, _$table$$grid$designC2, _ref97;
5674
5737
  var $table = params.$table, level = params.level, row2 = params.row;
5675
5738
  var treeConfig = $table.treeConfig, treeExpandeds = $table.treeExpandeds;
5676
5739
  var children = treeConfig.children, indent = treeConfig.indent, renderIcon = treeConfig.renderIcon, trigger = treeConfig.trigger, bubbling = treeConfig.bubbling;
@@ -5685,13 +5748,13 @@ var Cell = {
5685
5748
  }
5686
5749
  };
5687
5750
  var icon = GlobalConfig$1.icon;
5688
- var defaultIcon = function defaultIcon2(h22, _ref94) {
5689
- var active = _ref94.active;
5751
+ var defaultIcon = function defaultIcon2(h22, _ref95) {
5752
+ var active = _ref95.active;
5690
5753
  var IconExpand = iconExpand();
5691
5754
  var IconPutAway = iconPutAway();
5692
5755
  return active ? h22(IconExpand) : h22(IconPutAway);
5693
5756
  };
5694
- var customExpandIcon = (_ref95 = renderIcon || ((_$table$$grid = $table.$grid) == null ? void 0 : (_$table$$grid$designC = _$table$$grid.designConfig) == null ? void 0 : (_$table$$grid$designC2 = _$table$$grid$designC.treeConfig) == null ? void 0 : _$table$$grid$designC2.renderIcon)) != null ? _ref95 : defaultIcon;
5757
+ var customExpandIcon = (_ref96 = renderIcon || ((_$table$$grid = $table.$grid) == null ? void 0 : (_$table$$grid$designC = _$table$$grid.designConfig) == null ? void 0 : (_$table$$grid$designC2 = _$table$$grid$designC.treeConfig) == null ? void 0 : _$table$$grid$designC2.renderIcon)) != null ? _ref96 : defaultIcon;
5695
5758
  if (trigger && trigger !== "default") {
5696
5759
  listeners = {};
5697
5760
  }
@@ -5714,7 +5777,7 @@ var Cell = {
5714
5777
  width: level * (indent || 16) + "px"
5715
5778
  }
5716
5779
  }), h2("span", {
5717
- class: ["tiny-grid-tree-wrapper", (_ref96 = {}, _ref96[map.isActive] = isActive, _ref96)],
5780
+ class: ["tiny-grid-tree-wrapper", (_ref97 = {}, _ref97[map.isActive] = isActive, _ref97)],
5718
5781
  on: listeners
5719
5782
  }, iconVNode)];
5720
5783
  },
@@ -5736,7 +5799,7 @@ var Cell = {
5736
5799
  var $table = params.$table, column = params.column, row2 = params.row, seq = params.seq; params.level;
5737
5800
  var startIndex = $table.startIndex, treeConfig = $table.treeConfig, treeOrdered = $table.treeOrdered;
5738
5801
  var indexMethod = column.indexMethod, slots = column.slots;
5739
- var _ref97 = treeConfig || {}, _ref97$temporaryIndex = _ref97.temporaryIndex, temporaryIndex = _ref97$temporaryIndex === void 0 ? "_$index_" : _ref97$temporaryIndex;
5802
+ var _ref98 = treeConfig || {}, _ref98$temporaryIndex = _ref98.temporaryIndex, temporaryIndex = _ref98$temporaryIndex === void 0 ? "_$index_" : _ref98$temporaryIndex;
5740
5803
  var isTreeOrderedFalse = treeConfig && !treeOrdered;
5741
5804
  var indexValue = startIndex + seq;
5742
5805
  if (isTreeOrderedFalse) {
@@ -5757,7 +5820,7 @@ var Cell = {
5757
5820
  return [formatText(value, 1)];
5758
5821
  },
5759
5822
  renderRadioCell: function renderRadioCell(h2, params) {
5760
- var _ref98;
5823
+ var _ref99;
5761
5824
  var $table = params.$table, slots = params.column.slots, row2 = params.row;
5762
5825
  var _$table$radioConfig2 = $table.radioConfig, radioConfig = _$table$radioConfig2 === void 0 ? {} : _$table$radioConfig2, selectRow = $table.selectRow, vSize3 = $table.vSize;
5763
5826
  var labelField = radioConfig.labelField, checkMethod = radioConfig.checkMethod;
@@ -5782,7 +5845,7 @@ var Cell = {
5782
5845
  }
5783
5846
  };
5784
5847
  return [h2("label", {
5785
- class: ["tiny-grid-radio", (_ref98 = {}, _ref98["size__" + vSize3] = vSize3, _ref98["is__disabled"] = disabled, _ref98)]
5848
+ class: ["tiny-grid-radio", (_ref99 = {}, _ref99["size__" + vSize3] = vSize3, _ref99["is__disabled"] = disabled, _ref99)]
5786
5849
  }, [h2("input", options), h2("span", {
5787
5850
  class: "tiny-grid-radio__icon"
5788
5851
  }, [h2(iconRadio(), {
@@ -5797,7 +5860,7 @@ var Cell = {
5797
5860
  return Cell.renderTreeIcon(h2, params).concat(Cell.renderRadioCell(h2, params));
5798
5861
  },
5799
5862
  renderSelectionHeader: function renderSelectionHeader(h2, params) {
5800
- var _ref99;
5863
+ var _ref100;
5801
5864
  var $table = params.$table, column = params.column;
5802
5865
  var slots = column.slots, own = column.own;
5803
5866
  var headerCheckDisabled = $table.headerCheckDisabled, isAllSelected = $table.isAllSelected, isIndeterminate = $table.isIndeterminate, selectConfig = $table.selectConfig, vSize3 = $table.vSize;
@@ -5824,7 +5887,7 @@ var Cell = {
5824
5887
  }
5825
5888
  };
5826
5889
  var vnode = h2("label", {
5827
- class: ["tiny-grid-checkbox tiny-select-header", (_ref99 = {}, _ref99["size__" + vSize3] = vSize3, _ref99["is__disabled"] = headerCheckDisabled, _ref99["is__indeterminate"] = isIndeterminate, _ref99)],
5890
+ class: ["tiny-grid-checkbox tiny-select-header", (_ref100 = {}, _ref100["size__" + vSize3] = vSize3, _ref100["is__disabled"] = headerCheckDisabled, _ref100["is__indeterminate"] = isIndeterminate, _ref100)],
5828
5891
  key: random()
5829
5892
  }, [h2("input", options), h2("span", {
5830
5893
  class: "tiny-grid-checkbox__icon"
@@ -5846,12 +5909,12 @@ var Cell = {
5846
5909
  return [vnode, dropdownVnode];
5847
5910
  },
5848
5911
  renderSelectionCell: function renderSelectionCell(h2, params) {
5849
- var _ref101;
5912
+ var _ref102;
5850
5913
  var $table = params.$table, column = params.column, row2 = params.row;
5851
5914
  var slots = column.slots;
5852
5915
  var _$table$selectConfig2 = $table.selectConfig, selectConfig = _$table$selectConfig2 === void 0 ? {} : _$table$selectConfig2, treeConfig = $table.treeConfig, treeIndeterminates = $table.treeIndeterminates, vSize3 = $table.vSize;
5853
5916
  var labelField = selectConfig.labelField, checkMethod = selectConfig.checkMethod;
5854
- var _ref100 = {}, _ref100$indeterminate = _ref100.indeterminate, indeterminate = _ref100$indeterminate === void 0 ? false : _ref100$indeterminate, _ref100$isDisabled = _ref100.isDisabled, isDisabled = _ref100$isDisabled === void 0 ? !!checkMethod : _ref100$isDisabled;
5917
+ var _ref101 = {}, _ref101$indeterminate = _ref101.indeterminate, indeterminate = _ref101$indeterminate === void 0 ? false : _ref101$indeterminate, _ref101$isDisabled = _ref101.isDisabled, isDisabled = _ref101$isDisabled === void 0 ? !!checkMethod : _ref101$isDisabled;
5855
5918
  var options = {
5856
5919
  attrs: {
5857
5920
  type: "checkbox"
@@ -5866,7 +5929,7 @@ var Cell = {
5866
5929
  checked: ~$table.selection.indexOf(row2)
5867
5930
  };
5868
5931
  var twcls = params.twcls;
5869
- var labelCls = ["tiny-grid-checkbox tiny-select-cell", (_ref101 = {}, _ref101["size__" + vSize3] = vSize3, _ref101["is__indeterminate"] = indeterminate, _ref101["is__disabled"] = isDisabled, _ref101)];
5932
+ var labelCls = ["tiny-grid-checkbox tiny-select-cell", (_ref102 = {}, _ref102["size__" + vSize3] = vSize3, _ref102["is__indeterminate"] = indeterminate, _ref102["is__disabled"] = isDisabled, _ref102)];
5870
5933
  var inputCls = null;
5871
5934
  var spanCls = "tiny-grid-checkbox__icon";
5872
5935
  var svgCls = "tiny-svg-size icon-checked-sur";
@@ -5912,12 +5975,12 @@ var Cell = {
5912
5975
  },
5913
5976
  // TODO: 与renderSelectionCell代码方法高度相似,待提取公共逻辑。
5914
5977
  renderSelectionCellByProp: function renderSelectionCellByProp(h2, params) {
5915
- var _ref103;
5978
+ var _ref104;
5916
5979
  var $table = params.$table, column = params.column, row2 = params.row;
5917
5980
  var slots = column.slots;
5918
5981
  var _$table$selectConfig3 = $table.selectConfig, selectConfig = _$table$selectConfig3 === void 0 ? {} : _$table$selectConfig3, treeConfig = $table.treeConfig, treeIndeterminates = $table.treeIndeterminates, vSize3 = $table.vSize;
5919
5982
  var property = selectConfig.checkField, checkMethod = selectConfig.checkMethod, labelField = selectConfig.labelField;
5920
- var _ref102 = {}, _ref102$indeterminate = _ref102.indeterminate, indeterminate = _ref102$indeterminate === void 0 ? false : _ref102$indeterminate, _ref102$isDisabled = _ref102.isDisabled, isDisabled = _ref102$isDisabled === void 0 ? !!checkMethod : _ref102$isDisabled;
5983
+ var _ref103 = {}, _ref103$indeterminate = _ref103.indeterminate, indeterminate = _ref103$indeterminate === void 0 ? false : _ref103$indeterminate, _ref103$isDisabled = _ref103.isDisabled, isDisabled = _ref103$isDisabled === void 0 ? !!checkMethod : _ref103$isDisabled;
5921
5984
  var options = {
5922
5985
  attrs: {
5923
5986
  type: "checkbox"
@@ -5938,7 +6001,7 @@ var Cell = {
5938
6001
  };
5939
6002
  var vnode = h2("label", {
5940
6003
  key: random(),
5941
- class: ["tiny-grid-checkbox", (_ref103 = {}, _ref103["size__" + vSize3] = vSize3, _ref103["is__indeterminate"] = indeterminate, _ref103["is__disabled"] = isDisabled, _ref103)]
6004
+ class: ["tiny-grid-checkbox", (_ref104 = {}, _ref104["size__" + vSize3] = vSize3, _ref104["is__indeterminate"] = indeterminate, _ref104["is__disabled"] = isDisabled, _ref104)]
5942
6005
  }, [h2("input", options), h2("span", {
5943
6006
  class: "tiny-grid-checkbox__icon"
5944
6007
  }, [h2(iconCheck(), {
@@ -5957,7 +6020,7 @@ var Cell = {
5957
6020
  },
5958
6021
  // 展开行
5959
6022
  renderExpandCell: function renderExpandCell(h2, params) {
5960
- var _column$slots, _ref104;
6023
+ var _column$slots, _ref105;
5961
6024
  var $table = params.$table, row2 = params.row, column = params.column;
5962
6025
  var _$table$expandConfig3 = $table.expandConfig, expandConfig = _$table$expandConfig3 === void 0 ? {} : _$table$expandConfig3;
5963
6026
  var _expandConfig$showIco = expandConfig.showIcon, showIcon = _expandConfig$showIco === void 0 ? true : _expandConfig$showIco, expandMethod = expandConfig.activeMethod;
@@ -5972,7 +6035,7 @@ var Cell = {
5972
6035
  expandActive: "expand__active"
5973
6036
  };
5974
6037
  return [h2("span", {
5975
- class: ["tiny-grid__expanded", (_ref104 = {}, _ref104[map.expandActive] = expandActive, _ref104)],
6038
+ class: ["tiny-grid__expanded", (_ref105 = {}, _ref105[map.expandActive] = expandActive, _ref105)],
5976
6039
  on: {
5977
6040
  click: function click(event) {
5978
6041
  if (!hideExpand) {
@@ -6042,7 +6105,7 @@ var Cell = {
6042
6105
  return Cell.renderHeader(h2, params).concat(Cell.renderFilterIcon(h2, params, suffixCls[1]));
6043
6106
  },
6044
6107
  renderFilterIcon: function renderFilterIcon(h2, params, cls) {
6045
- var _ref105, _ref106;
6108
+ var _ref106, _ref107;
6046
6109
  if (cls === void 0) {
6047
6110
  cls = "";
6048
6111
  }
@@ -6054,9 +6117,9 @@ var Cell = {
6054
6117
  hasFilter: "has__Filter"
6055
6118
  };
6056
6119
  return [h2("span", {
6057
- class: ["tiny-grid-filter-wrapper " + cls, (_ref105 = {}, _ref105[map.isActive] = filterStore.visible && filterStore.column === column, _ref105)]
6120
+ class: ["tiny-grid-filter-wrapper " + cls, (_ref106 = {}, _ref106[map.isActive] = filterStore.visible && filterStore.column === column, _ref106)]
6058
6121
  }, [h2(icon.filter, {
6059
- class: ["tiny-svg-size tiny-grid-filter__btn " + column.id, (_ref106 = {}, _ref106[map.hasFilter] = column.filter && column.filter.hasFilter, _ref106)],
6122
+ class: ["tiny-svg-size tiny-grid-filter__btn " + column.id, (_ref107 = {}, _ref107[map.hasFilter] = column.filter && column.filter.hasFilter, _ref107)],
6060
6123
  on: {
6061
6124
  click: function click(event) {
6062
6125
  $table.triggerFilterEvent(event, params.column, params);
@@ -6213,8 +6276,8 @@ var Cell = {
6213
6276
  };
6214
6277
  var handleItemClick = function handleItemClick2(itemData) {
6215
6278
  var realName = (itemData == null ? void 0 : itemData.name) || itemData;
6216
- var buttonConfig = visibleButtons.find(function(_ref107) {
6217
- var buttonName = _ref107.name;
6279
+ var buttonConfig = visibleButtons.find(function(_ref108) {
6280
+ var buttonName = _ref108.name;
6218
6281
  return buttonName === realName;
6219
6282
  });
6220
6283
  buttonConfig.click(window.event || {}, _extends({
@@ -6268,8 +6331,10 @@ var Cell = {
6268
6331
  return renderBig(buttonConfig, viewClass);
6269
6332
  });
6270
6333
  }
6334
+ var rowKey = row2[getRowkey($table)];
6271
6335
  return [h2("span", {
6272
6336
  class: "tiny-grid__oper-col-wrapper",
6337
+ key: rowKey,
6273
6338
  attrs: {
6274
6339
  "data-tag": "operation-cell-buttons"
6275
6340
  }
@@ -6316,40 +6381,40 @@ function isTargetRadioOrCheckbox(event, column, colType, targetType) {
6316
6381
  var target = event.target;
6317
6382
  return target && column.type === colType && target.tagName.toLowerCase() === "input" && target.type === (targetType || colType);
6318
6383
  }
6319
- function onClickExpandColumn(_ref108) {
6320
- var $el = _ref108.$el, _vm = _ref108._vm, column = _ref108.column, event = _ref108.event, expandConfig = _ref108.expandConfig, params = _ref108.params;
6384
+ function onClickExpandColumn(_ref109) {
6385
+ var $el = _ref109.$el, _vm = _ref109._vm, column = _ref109.column, event = _ref109.event, expandConfig = _ref109.expandConfig, params = _ref109.params;
6321
6386
  if ((expandConfig.trigger === "row" || column.type === "expand" && expandConfig.trigger === "cell") && !_vm.getEventTargetNode(event, $el, "tiny-grid__expanded").flag) {
6322
6387
  _vm.triggerRowExpandEvent(event, params);
6323
6388
  }
6324
6389
  }
6325
- function onClickTreeNodeColumn(_ref109) {
6326
- var _vm = _ref109._vm, column = _ref109.column, event = _ref109.event, params = _ref109.params, treeConfig = _ref109.treeConfig;
6390
+ function onClickTreeNodeColumn(_ref110) {
6391
+ var _vm = _ref110._vm, column = _ref110.column, event = _ref110.event, params = _ref110.params, treeConfig = _ref110.treeConfig;
6327
6392
  if (treeConfig.trigger === "row" || column.treeNode && treeConfig.trigger === "cell") {
6328
6393
  _vm.triggerTreeExpandEvent(event, params);
6329
6394
  }
6330
6395
  }
6331
- function onHighlightCurrentRow(_ref110) {
6332
- var $el = _ref110.$el, _vm = _ref110._vm, event = _ref110.event, highlightCurrentRow = _ref110.highlightCurrentRow, params = _ref110.params, radioConfig = _ref110.radioConfig;
6396
+ function onHighlightCurrentRow(_ref111) {
6397
+ var $el = _ref111.$el, _vm = _ref111._vm, event = _ref111.event, highlightCurrentRow = _ref111.highlightCurrentRow, params = _ref111.params, radioConfig = _ref111.radioConfig;
6333
6398
  if (highlightCurrentRow) {
6334
6399
  if (radioConfig.trigger === "row" || !_vm.getEventTargetNode(event, $el, "tiny-grid-checkbox").flag && !_vm.getEventTargetNode(event, $el, "tiny-grid-radio").flag) {
6335
6400
  _vm.triggerCurrentRowEvent(event, params);
6336
6401
  }
6337
6402
  }
6338
6403
  }
6339
- function onClickRadioColumn(_ref111) {
6340
- var $el = _ref111.$el, _vm = _ref111._vm, column = _ref111.column, event = _ref111.event, params = _ref111.params, radioConfig = _ref111.radioConfig;
6404
+ function onClickRadioColumn(_ref112) {
6405
+ var $el = _ref112.$el, _vm = _ref112._vm, column = _ref112.column, event = _ref112.event, params = _ref112.params, radioConfig = _ref112.radioConfig;
6341
6406
  if ((radioConfig.trigger === "row" || column.type === "radio" && radioConfig.trigger === "cell") && !_vm.getEventTargetNode(event, $el, "tiny-grid-radio").flag) {
6342
6407
  _vm.triggerRadioRowEvent(event, params);
6343
6408
  }
6344
6409
  }
6345
- function onClickSelectColumn(_ref112) {
6346
- var _vm = _ref112._vm, column = _ref112.column, event = _ref112.event, params = _ref112.params, selectConfig = _ref112.selectConfig;
6410
+ function onClickSelectColumn(_ref113) {
6411
+ var _vm = _ref113._vm, column = _ref113.column, event = _ref113.event, params = _ref113.params, selectConfig = _ref113.selectConfig;
6347
6412
  if ((selectConfig.trigger === "row" || column.type === "selection" && selectConfig.trigger === "cell") && !_vm.getEventTargetNode(event, params.cell, "tiny-grid-checkbox").flag) {
6348
6413
  _vm.handleToggleCheckRowEvent(params, event);
6349
6414
  }
6350
6415
  }
6351
- function onClickCellSelect(_ref113) {
6352
- var _vm = _ref113._vm, actived = _ref113.actived, cell = _ref113.cell, column = _ref113.column, editConfig = _ref113.editConfig, event = _ref113.event, mouseConfig = _ref113.mouseConfig, params = _ref113.params, row2 = _ref113.row;
6416
+ function onClickCellSelect(_ref114) {
6417
+ var _vm = _ref114._vm, actived = _ref114.actived, cell = _ref114.cell, column = _ref114.column, editConfig = _ref114.editConfig, event = _ref114.event, mouseConfig = _ref114.mouseConfig, params = _ref114.params, row2 = _ref114.row;
6353
6418
  if (!mouseConfig.checked && editConfig) {
6354
6419
  if (editConfig.trigger === "manual") {
6355
6420
  if (actived.args && actived.row === row2 && column !== actived.column) {
@@ -6368,8 +6433,8 @@ function onClickCellSelect(_ref113) {
6368
6433
  }
6369
6434
  }
6370
6435
  }
6371
- function onGroupHeader(_ref114) {
6372
- var _vm = _ref114._vm, isGroup2 = _ref114.isGroup, headerProps2 = _ref114.headerProps;
6436
+ function onGroupHeader(_ref115) {
6437
+ var _vm = _ref115._vm, isGroup2 = _ref115.isGroup, headerProps2 = _ref115.headerProps;
6373
6438
  if (isGroup2) {
6374
6439
  eachTree(_vm.collectColumn, function(column) {
6375
6440
  if (column.children && column.children.length) {
@@ -6380,14 +6445,14 @@ function onGroupHeader(_ref114) {
6380
6445
  }, headerProps2);
6381
6446
  }
6382
6447
  }
6383
- function reassignNotFixed(_ref115) {
6384
- var centerList = _ref115.centerList, column = _ref115.column;
6448
+ function reassignNotFixed(_ref116) {
6449
+ var centerList = _ref116.centerList, column = _ref116.column;
6385
6450
  if (!column.fixed) {
6386
6451
  centerList.push(column);
6387
6452
  }
6388
6453
  }
6389
- function reassignFixedRight(_ref116) {
6390
- var column = _ref116.column, columnIndex = _ref116.columnIndex, isColspan = _ref116.isColspan, rightEndIndex = _ref116.rightEndIndex, rightList = _ref116.rightList;
6454
+ function reassignFixedRight(_ref117) {
6455
+ var column = _ref117.column, columnIndex = _ref117.columnIndex, isColspan = _ref117.isColspan, rightEndIndex = _ref117.rightEndIndex, rightList = _ref117.rightList;
6391
6456
  if (column.fixed === "right") {
6392
6457
  if (!isColspan) {
6393
6458
  if (rightEndIndex === null) {
@@ -6406,8 +6471,8 @@ function reassignFixedRight(_ref116) {
6406
6471
  rightEndIndex
6407
6472
  };
6408
6473
  }
6409
- function reassignFixedLeft(_ref117) {
6410
- var column = _ref117.column, columnIndex = _ref117.columnIndex, isColspan = _ref117.isColspan, leftList = _ref117.leftList, leftStartIndex = _ref117.leftStartIndex, letIndex = _ref117.letIndex;
6474
+ function reassignFixedLeft(_ref118) {
6475
+ var column = _ref118.column, columnIndex = _ref118.columnIndex, isColspan = _ref118.isColspan, leftList = _ref118.leftList, leftStartIndex = _ref118.leftStartIndex, letIndex = _ref118.letIndex;
6411
6476
  if (column.fixed === "left") {
6412
6477
  if (leftStartIndex === null) {
6413
6478
  leftStartIndex = letIndex;
@@ -6427,14 +6492,14 @@ function reassignFixedLeft(_ref117) {
6427
6492
  isColspan
6428
6493
  };
6429
6494
  }
6430
- function showGroupFixedError(_ref118) {
6431
- var isColspan = _ref118.isColspan, isGroup2 = _ref118.isGroup, leftStartIndex = _ref118.leftStartIndex, rightEndIndex = _ref118.rightEndIndex, visibleColumn = _ref118.visibleColumn;
6495
+ function showGroupFixedError(_ref119) {
6496
+ var isColspan = _ref119.isColspan, isGroup2 = _ref119.isGroup, leftStartIndex = _ref119.leftStartIndex, rightEndIndex = _ref119.rightEndIndex, visibleColumn = _ref119.visibleColumn;
6432
6497
  if (isGroup2 && (isColspan || leftStartIndex || rightEndIndex !== null && rightEndIndex !== visibleColumn.length)) {
6433
6498
  error("ui.grid.error.groupFixed");
6434
6499
  }
6435
6500
  }
6436
- function onScrollXLoad(_ref119) {
6437
- var _vm = _ref119._vm, scrollX = _ref119.scrollX, scrollXLoad = _ref119.scrollXLoad, scrollXStore = _ref119.scrollXStore, tableColumn2 = _ref119.tableColumn, visibleColumn = _ref119.visibleColumn;
6501
+ function onScrollXLoad(_ref120) {
6502
+ var _vm = _ref120._vm, scrollX = _ref120.scrollX, scrollXLoad = _ref120.scrollXLoad, scrollXStore = _ref120.scrollXStore, tableColumn2 = _ref120.tableColumn, visibleColumn = _ref120.visibleColumn;
6438
6503
  if (scrollXLoad) {
6439
6504
  if (_vm.resizable || visibleColumn.some(function(column) {
6440
6505
  return column.resizable;
@@ -6453,10 +6518,10 @@ function onScrollXLoad(_ref119) {
6453
6518
  }
6454
6519
  return tableColumn2;
6455
6520
  }
6456
- function mapFetchColumnPromise(_ref120) {
6457
- var _vm = _ref120._vm, fetchColumns = _ref120.fetchColumns, tableColumn2 = _ref120.tableColumn;
6458
- return fetchColumns.map(function(_ref121) {
6459
- var format = _ref121.format, columnValues = _ref121.columnValues;
6521
+ function mapFetchColumnPromise(_ref121) {
6522
+ var _vm = _ref121._vm, fetchColumns = _ref121.fetchColumns, tableColumn2 = _ref121.tableColumn;
6523
+ return fetchColumns.map(function(_ref122) {
6524
+ var format = _ref122.format, columnValues = _ref122.columnValues;
6460
6525
  return format.async.fetch({
6461
6526
  columns: tableColumn2,
6462
6527
  columnValues,
@@ -6464,8 +6529,8 @@ function mapFetchColumnPromise(_ref120) {
6464
6529
  });
6465
6530
  });
6466
6531
  }
6467
- function preprocessDataObjectFormat(_ref122) {
6468
- var columnCount = _ref122.columnCount, columnValues = _ref122.columnValues, columnValuesMap = _ref122.columnValuesMap, fields = _ref122.fields;
6532
+ function preprocessDataObjectFormat(_ref123) {
6533
+ var columnCount = _ref123.columnCount, columnValues = _ref123.columnValues, columnValuesMap = _ref123.columnValuesMap, fields = _ref123.fields;
6469
6534
  if (columnCount) {
6470
6535
  columnValues.forEach(function(col) {
6471
6536
  if (typeof col === "object") {
@@ -6477,8 +6542,8 @@ function preprocessDataObjectFormat(_ref122) {
6477
6542
  });
6478
6543
  }
6479
6544
  }
6480
- function preventDupRender(_ref123) {
6481
- var asyncColumnName = _ref123.asyncColumnName, cellTexts = _ref123.cellTexts, cellValuesCount = _ref123.cellValuesCount, columnData = _ref123.columnData, columnValuesMap = _ref123.columnValuesMap, isRender = _ref123.isRender, property = _ref123.property, renderCount = _ref123.renderCount, row2 = _ref123.row, splitConfig = _ref123.splitConfig;
6545
+ function preventDupRender(_ref124) {
6546
+ var asyncColumnName = _ref124.asyncColumnName, cellTexts = _ref124.cellTexts, cellValuesCount = _ref124.cellValuesCount, columnData = _ref124.columnData, columnValuesMap = _ref124.columnValuesMap, isRender = _ref124.isRender, property = _ref124.property, renderCount = _ref124.renderCount, row2 = _ref124.row, splitConfig = _ref124.splitConfig;
6482
6547
  var cellEachIndex = 0;
6483
6548
  if (!isRender && cellValuesCount) {
6484
6549
  var cellLabel;
@@ -6503,8 +6568,8 @@ function preventDupRender(_ref123) {
6503
6568
  }
6504
6569
  return renderCount;
6505
6570
  }
6506
- function handleResolveColumnComplete(_ref124) {
6507
- var _vm = _ref124._vm, columnData = _ref124.columnData, complete = _ref124.complete;
6571
+ function handleResolveColumnComplete(_ref125) {
6572
+ var _vm = _ref125._vm, columnData = _ref125.columnData, complete = _ref125.complete;
6508
6573
  if (typeof complete === "function") {
6509
6574
  complete({
6510
6575
  columnData,
@@ -6513,8 +6578,8 @@ function handleResolveColumnComplete(_ref124) {
6513
6578
  }
6514
6579
  }
6515
6580
  var isWebkit = browserInfo["-webkit"];
6516
- function computeScrollYLoad(_ref125) {
6517
- var _vm = _ref125._vm, scrollLoad = _ref125.scrollLoad, scrollY = _ref125.scrollY, scrollYLoad = _ref125.scrollYLoad, scrollYStore = _ref125.scrollYStore, tableBodyElem = _ref125.tableBodyElem;
6581
+ function computeScrollYLoad(_ref126) {
6582
+ var _vm = _ref126._vm, scrollLoad = _ref126.scrollLoad, scrollY = _ref126.scrollY, scrollYLoad = _ref126.scrollYLoad, scrollYStore = _ref126.scrollYStore, tableBodyElem = _ref126.tableBodyElem;
6518
6583
  if (scrollYLoad || scrollLoad) {
6519
6584
  scrollYStore.rowHeight = _vm.rowHeight;
6520
6585
  }
@@ -6534,8 +6599,8 @@ function computeScrollYLoad(_ref125) {
6534
6599
  _vm.updateScrollYSpace();
6535
6600
  }
6536
6601
  }
6537
- function computeScrollXLoad(_ref126) {
6538
- var _vm = _ref126._vm, scrollX = _ref126.scrollX, scrollXLoad = _ref126.scrollXLoad, scrollXStore = _ref126.scrollXStore, tableBodyElem = _ref126.tableBodyElem, visibleColumn = _ref126.visibleColumn;
6602
+ function computeScrollXLoad(_ref127) {
6603
+ var _vm = _ref127._vm, scrollX = _ref127.scrollX, scrollXLoad = _ref127.scrollXLoad, scrollXStore = _ref127.scrollXStore, tableBodyElem = _ref127.tableBodyElem, visibleColumn = _ref127.visibleColumn;
6539
6604
  if (scrollXLoad) {
6540
6605
  var clientWidth = tableBodyElem.clientWidth;
6541
6606
  var width = 0;
@@ -6575,16 +6640,17 @@ var calcTableWidth = function calcTableWidth2($table) {
6575
6640
  var pxArr = columnStore.pxList, scaleArr = columnStore.scaleList, pxMinArr = columnStore.pxMinList, scaleMinArr = columnStore.scaleMinList, autoArr = columnStore.autoList, resizeArr = columnStore.resizeList;
6576
6641
  var remainWidth = clientWidth;
6577
6642
  var totalWidth = 0;
6578
- pxMinArr.forEach(function(column) {
6643
+ var minArr = new Array(pxMinArr.length + scaleMinArr.length);
6644
+ pxMinArr.forEach(function(column, index2) {
6579
6645
  var width = parseInt(column.minWidth);
6580
6646
  totalWidth += width;
6581
- column.renderWidth = width;
6647
+ minArr[index2 + scaleMinArr.length] = width;
6582
6648
  });
6583
6649
  var meanWidth = remainWidth / 100;
6584
- scaleMinArr.forEach(function(column) {
6650
+ scaleMinArr.forEach(function(column, index2) {
6585
6651
  var width = Math.floor(parseInt(column.minWidth) * meanWidth);
6586
6652
  totalWidth += width;
6587
- column.renderWidth = width;
6653
+ minArr[index2] = width;
6588
6654
  });
6589
6655
  scaleArr.forEach(function(column) {
6590
6656
  var width = Math.floor(parseInt(column.width) * meanWidth);
@@ -6605,9 +6671,9 @@ var calcTableWidth = function calcTableWidth2($table) {
6605
6671
  meanWidth = remainWidth > 0 ? Math.floor(remainWidth / (scaleMinArr.length + pxMinArr.length + autoArr.length)) : 0;
6606
6672
  if (fit) {
6607
6673
  if (remainWidth > 0) {
6608
- scaleMinArr.concat(pxMinArr).forEach(function(column) {
6674
+ scaleMinArr.concat(pxMinArr).forEach(function(column, index2) {
6609
6675
  totalWidth += meanWidth;
6610
- column.renderWidth += meanWidth;
6676
+ minArr[index2] += meanWidth;
6611
6677
  });
6612
6678
  }
6613
6679
  } else {
@@ -6615,23 +6681,27 @@ var calcTableWidth = function calcTableWidth2($table) {
6615
6681
  }
6616
6682
  autoArr.forEach(function(column, index2) {
6617
6683
  var width = Math.max(meanWidth, minCellWidth);
6618
- column.renderWidth = width;
6684
+ var renderWidth = width;
6619
6685
  totalWidth += width;
6620
6686
  if (fit && index2 === autoArr.length - 1) {
6621
6687
  var odiffer = clientWidth - totalWidth;
6622
6688
  if (odiffer > 0) {
6623
- column.renderWidth += odiffer;
6689
+ renderWidth += odiffer;
6624
6690
  totalWidth = clientWidth;
6625
6691
  }
6626
6692
  }
6693
+ column.renderWidth = renderWidth;
6627
6694
  });
6628
6695
  var remainingSpace = bodyWidth - totalWidth;
6629
6696
  if (fit && remainingSpace > 0) {
6630
- scaleMinArr.concat(pxMinArr).slice(0, remainingSpace).forEach(function(column) {
6697
+ scaleMinArr.concat(pxMinArr).slice(0, remainingSpace).forEach(function(column, index2) {
6631
6698
  totalWidth += 1;
6632
- column.renderWidth += 1;
6699
+ minArr[index2] += 1;
6633
6700
  });
6634
6701
  }
6702
+ scaleMinArr.concat(pxMinArr).forEach(function(column, index2) {
6703
+ column.renderWidth = minArr[index2];
6704
+ });
6635
6705
  return {
6636
6706
  totalWidth,
6637
6707
  offsetWidth,
@@ -6641,8 +6711,8 @@ var calcTableWidth = function calcTableWidth2($table) {
6641
6711
  function calcFixedDetails(_vm) {
6642
6712
  var collectColumn2 = _vm.collectColumn, visibleColumn = _vm.visibleColumn, columnStore = _vm.columnStore, isGroup2 = _vm.isGroup;
6643
6713
  var leftList = columnStore.leftList, rightList = columnStore.rightList;
6644
- visibleColumn.forEach(function(_ref127) {
6645
- var fixedDetails = _ref127.fixedDetails;
6714
+ visibleColumn.forEach(function(_ref128) {
6715
+ var fixedDetails = _ref128.fixedDetails;
6646
6716
  if (fixedDetails) {
6647
6717
  fixedDetails.isLeftLast = false;
6648
6718
  fixedDetails.isRightFirst = false;
@@ -6653,8 +6723,8 @@ function calcFixedDetails(_vm) {
6653
6723
  var length = leftList.length;
6654
6724
  var value = 0;
6655
6725
  if (Array.isArray(leftList) && length > 0) {
6656
- leftList.forEach(function(_ref128, i) {
6657
- var fixedDetails = _ref128.fixedDetails, renderWidth = _ref128.renderWidth;
6726
+ leftList.forEach(function(_ref129, i) {
6727
+ var fixedDetails = _ref129.fixedDetails, renderWidth = _ref129.renderWidth;
6658
6728
  fixedDetails.isLeftLast = i === length - 1;
6659
6729
  fixedDetails.left = value;
6660
6730
  value += renderWidth;
@@ -6664,8 +6734,8 @@ function calcFixedDetails(_vm) {
6664
6734
  value = 0;
6665
6735
  if (Array.isArray(rightList) && length > 0) {
6666
6736
  var reversed = [].concat(rightList).reverse();
6667
- reversed.forEach(function(_ref129, i) {
6668
- var fixedDetails = _ref129.fixedDetails, renderWidth = _ref129.renderWidth;
6737
+ reversed.forEach(function(_ref130, i) {
6738
+ var fixedDetails = _ref130.fixedDetails, renderWidth = _ref130.renderWidth;
6669
6739
  fixedDetails.isRightFirst = i === length - 1;
6670
6740
  fixedDetails.right = value;
6671
6741
  value += renderWidth;
@@ -6737,10 +6807,10 @@ var headerProps = {
6737
6807
  };
6738
6808
  var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6739
6809
  var startIndex = opt.startIndex, fetchColumns = opt.fetchColumns, tableData = opt.tableData, asyncRenderMap = opt.asyncRenderMap, isScrollLoad = opt.isScrollLoad;
6740
- return function(data6) {
6741
- if (data6.length) {
6810
+ return function(data7) {
6811
+ if (data7.length) {
6742
6812
  ctx._isUpdateData = true;
6743
- data6.forEach(function(item, i) {
6813
+ data7.forEach(function(item, i) {
6744
6814
  var columnValues = [];
6745
6815
  var columnValuesMap = {};
6746
6816
  var k = startIndex;
@@ -6748,7 +6818,7 @@ var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6748
6818
  var columnCount = 0;
6749
6819
  var columnData = [];
6750
6820
  var _fetchColumns$i = fetchColumns[i], _fetchColumns$i$forma = _fetchColumns$i.format, format = _fetchColumns$i$forma === void 0 ? {} : _fetchColumns$i$forma, property = _fetchColumns$i.property;
6751
- var _ref130 = format.async || {}, _ref130$splitConfig = _ref130.splitConfig, splitConfig = _ref130$splitConfig === void 0 ? {} : _ref130$splitConfig, _ref130$fields = _ref130.fields, fields = _ref130$fields === void 0 ? {} : _ref130$fields, complete = _ref130.complete;
6821
+ var _ref131 = format.async || {}, _ref131$splitConfig = _ref131.splitConfig, splitConfig = _ref131$splitConfig === void 0 ? {} : _ref131$splitConfig, _ref131$fields = _ref131.fields, fields = _ref131$fields === void 0 ? {} : _ref131$fields, complete = _ref131.complete;
6752
6822
  columnValues = isArray(item) ? item : get(item, fields.data || "values");
6753
6823
  columnCount = columnValues.length;
6754
6824
  preprocessDataObjectFormat({
@@ -6799,8 +6869,8 @@ var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6799
6869
  }
6800
6870
  };
6801
6871
  };
6802
- function handleGlobalMousedownOnFilterWrapper(_ref131) {
6803
- var $el = _ref131.$el, _vm = _ref131._vm, event = _ref131.event, filterStore = _ref131.filterStore, filterWrapper = _ref131.filterWrapper;
6872
+ function handleGlobalMousedownOnFilterWrapper(_ref132) {
6873
+ var $el = _ref132.$el, _vm = _ref132._vm, event = _ref132.event, filterStore = _ref132.filterStore, filterWrapper = _ref132.filterWrapper;
6804
6874
  if (filterWrapper) {
6805
6875
  if (_vm.getEventTargetNode(event, $el, "tiny-grid-filter-wrapper").flag) ;
6806
6876
  else if (_vm.getEventTargetNode(event, filterWrapper.$el).flag) ;
@@ -6811,14 +6881,14 @@ function handleGlobalMousedownOnFilterWrapper(_ref131) {
6811
6881
  }
6812
6882
  }
6813
6883
  }
6814
- function handleGlobalMousedownOnCtxMenu(_ref132) {
6815
- var _vm = _ref132._vm, ctxMenuStore = _ref132.ctxMenuStore, event = _ref132.event;
6884
+ function handleGlobalMousedownOnCtxMenu(_ref133) {
6885
+ var _vm = _ref133._vm, ctxMenuStore = _ref133.ctxMenuStore, event = _ref133.event;
6816
6886
  if (ctxMenuStore.visible && _vm.$refs.ctxWrapper && !_vm.getEventTargetNode(event, _vm.$refs.ctxWrapper.$el).flag) {
6817
6887
  _vm.closeMenu();
6818
6888
  }
6819
6889
  }
6820
- function handleGlobalBlurOutside(_ref133) {
6821
- var _vm = _ref133._vm, actived = _ref133.actived, event = _ref133.event;
6890
+ function handleGlobalBlurOutside(_ref134) {
6891
+ var _vm = _ref134._vm, actived = _ref134.actived, event = _ref134.event;
6822
6892
  var custblur = _vm.blurOutside(actived, event);
6823
6893
  if (typeof custblur === "boolean") {
6824
6894
  custblur || setTimeout(function() {
@@ -6828,8 +6898,8 @@ function handleGlobalBlurOutside(_ref133) {
6828
6898
  }
6829
6899
  return false;
6830
6900
  }
6831
- function handleGlobalIsClear(_ref134) {
6832
- var $el = _ref134.$el, _vm = _ref134._vm, actived = _ref134.actived, editConfig = _ref134.editConfig, event = _ref134.event, isClear = _ref134.isClear, isReadonlyCol = _ref134.isReadonlyCol;
6901
+ function handleGlobalIsClear(_ref135) {
6902
+ var $el = _ref135.$el, _vm = _ref135._vm, actived = _ref135.actived, editConfig = _ref135.editConfig, event = _ref135.event, isClear = _ref135.isClear, isReadonlyCol = _ref135.isReadonlyCol;
6833
6903
  if (editConfig.mode === "row") {
6834
6904
  var rowNode = _vm.getEventTargetNode(event, $el, "tiny-grid-body__row");
6835
6905
  var isOtherRow = rowNode.flag ? rowNode.targetElem !== actived.args.cell.parentNode : 0;
@@ -6843,11 +6913,12 @@ function handleGlobalIsClear(_ref134) {
6843
6913
  }
6844
6914
  return isClear;
6845
6915
  }
6846
- function handleGlobalClearActived(_ref135) {
6916
+ function handleGlobalClearActived(_ref136) {
6847
6917
  var _vm$$refs$tableBody;
6848
- var $el = _ref135.$el, _vm = _ref135._vm, event = _ref135.event, isClear = _ref135.isClear;
6918
+ var $el = _ref136.$el, _vm = _ref136._vm, event = _ref136.event, isClear = _ref136.isClear;
6849
6919
  var tableContent = (_vm$$refs$tableBody = _vm.$refs.tableBody) == null ? void 0 : _vm$$refs$tableBody.$refs.table;
6850
- if (isClear || !_vm.getEventTargetNode(event, $el).flag || _vm.$refs.tableHeader && _vm.$refs.tableHeader.$el.contains(event.target) || tableContent && !tableContent.contains(event.target)) {
6920
+ var actualTarget = getActualTarget(event);
6921
+ if (isClear || !_vm.getEventTargetNode(event, $el).flag || _vm.$refs.tableHeader && _vm.$refs.tableHeader.$el.contains(actualTarget) || tableContent && !tableContent.contains(actualTarget)) {
6851
6922
  setTimeout(function() {
6852
6923
  return _vm.clearActived(event);
6853
6924
  });
@@ -6856,8 +6927,8 @@ function handleGlobalClearActived(_ref135) {
6856
6927
  function checkOtherKey(keyCode) {
6857
6928
  return keyCode >= 48 && keyCode <= 57 || keyCode >= 65 && keyCode <= 90 || keyCode >= 96 && keyCode <= 111 || keyCode >= 186 && keyCode <= 192 || keyCode >= 219 && keyCode <= 222 || keyCode === 32;
6858
6929
  }
6859
- function rule1(_ref136) {
6860
- var isKeyEsc = _ref136.isKeyEsc, _vm = _ref136._vm, event = _ref136.event, actived = _ref136.actived, mouseConfig = _ref136.mouseConfig;
6930
+ function rule1(_ref137) {
6931
+ var isKeyEsc = _ref137.isKeyEsc, _vm = _ref137._vm, event = _ref137.event, actived = _ref137.actived, mouseConfig = _ref137.mouseConfig;
6861
6932
  return {
6862
6933
  match: function match() {
6863
6934
  return isKeyEsc;
@@ -6871,8 +6942,8 @@ function rule1(_ref136) {
6871
6942
  }
6872
6943
  };
6873
6944
  }
6874
- function rule2(_ref137) {
6875
- var isKeySpacebar = _ref137.isKeySpacebar, keyboardConfig = _ref137.keyboardConfig, selected = _ref137.selected, _vm = _ref137._vm, event = _ref137.event;
6945
+ function rule2(_ref138) {
6946
+ var isKeySpacebar = _ref138.isKeySpacebar, keyboardConfig = _ref138.keyboardConfig, selected = _ref138.selected, _vm = _ref138._vm, event = _ref138.event;
6876
6947
  return {
6877
6948
  match: function match() {
6878
6949
  return isKeySpacebar && (keyboardConfig.isArrow || keyboardConfig.isTab) && selected.row && selected.column && (selected.column.type === "selection" || selected.column.type === "radio");
@@ -6902,8 +6973,8 @@ function rule3(args) {
6902
6973
  }
6903
6974
  };
6904
6975
  }
6905
- function rule4(_ref138) {
6906
- var isOperCtxMenu = _ref138.isOperCtxMenu, _vm = _ref138._vm, event = _ref138.event;
6976
+ function rule4(_ref139) {
6977
+ var isOperCtxMenu = _ref139.isOperCtxMenu, _vm = _ref139._vm, event = _ref139.event;
6907
6978
  return {
6908
6979
  match: function match() {
6909
6980
  return isOperCtxMenu;
@@ -6915,8 +6986,8 @@ function rule4(_ref138) {
6915
6986
  }
6916
6987
  };
6917
6988
  }
6918
- function rule5(_ref139) {
6919
- var isKeyF2 = _ref139.isKeyF2, _vm = _ref139._vm, event = _ref139.event, selected = _ref139.selected;
6989
+ function rule5(_ref140) {
6990
+ var isKeyF2 = _ref140.isKeyF2, _vm = _ref140._vm, event = _ref140.event, selected = _ref140.selected;
6920
6991
  return {
6921
6992
  match: function match() {
6922
6993
  return isKeyF2;
@@ -6929,8 +7000,8 @@ function rule5(_ref139) {
6929
7000
  }
6930
7001
  };
6931
7002
  }
6932
- function rule6(_ref140) {
6933
- var isOperArrowKeys = _ref140.isOperArrowKeys, keyboardConfig = _ref140.keyboardConfig, _vm = _ref140._vm, event = _ref140.event, selected = _ref140.selected;
7003
+ function rule6(_ref141) {
7004
+ var isOperArrowKeys = _ref141.isOperArrowKeys, keyboardConfig = _ref141.keyboardConfig, _vm = _ref141._vm, event = _ref141.event, selected = _ref141.selected;
6934
7005
  return {
6935
7006
  match: function match() {
6936
7007
  return isOperArrowKeys && keyboardConfig.isArrow;
@@ -6943,8 +7014,8 @@ function rule6(_ref140) {
6943
7014
  }
6944
7015
  };
6945
7016
  }
6946
- function rule7(_ref141) {
6947
- var isKeyTab = _ref141.isKeyTab, keyboardConfig = _ref141.keyboardConfig, _vm = _ref141._vm, event = _ref141.event, selected = _ref141.selected, actived = _ref141.actived;
7017
+ function rule7(_ref142) {
7018
+ var isKeyTab = _ref142.isKeyTab, keyboardConfig = _ref142.keyboardConfig, _vm = _ref142._vm, event = _ref142.event, selected = _ref142.selected, actived = _ref142.actived;
6948
7019
  return {
6949
7020
  match: function match() {
6950
7021
  return isKeyTab && keyboardConfig.isTab;
@@ -6973,8 +7044,8 @@ function rule8(args) {
6973
7044
  }
6974
7045
  };
6975
7046
  }
6976
- function rule9(_ref142) {
6977
- var keyboardConfig = _ref142.keyboardConfig, isKeyWithCtrl = _ref142.isKeyWithCtrl, isKeyA = _ref142.isKeyA, isKeyX = _ref142.isKeyX, isKeyC = _ref142.isKeyC, isKeyV = _ref142.isKeyV, _vm = _ref142._vm, event = _ref142.event;
7047
+ function rule9(_ref143) {
7048
+ var keyboardConfig = _ref143.keyboardConfig, isKeyWithCtrl = _ref143.isKeyWithCtrl, isKeyA = _ref143.isKeyA, isKeyX = _ref143.isKeyX, isKeyC = _ref143.isKeyC, isKeyV = _ref143.isKeyV, _vm = _ref143._vm, event = _ref143.event;
6978
7049
  return {
6979
7050
  match: function match() {
6980
7051
  return keyboardConfig.isCut && isKeyWithCtrl && (isKeyA || isKeyX || isKeyC || isKeyV);
@@ -6986,8 +7057,8 @@ function rule9(_ref142) {
6986
7057
  }
6987
7058
  };
6988
7059
  }
6989
- function rule10(_ref143) {
6990
- var keyboardConfig = _ref143.keyboardConfig, isKeyWithCtrl = _ref143.isKeyWithCtrl, _vm = _ref143._vm, event = _ref143.event, selected = _ref143.selected, actived = _ref143.actived;
7060
+ function rule10(_ref144) {
7061
+ var keyboardConfig = _ref144.keyboardConfig, isKeyWithCtrl = _ref144.isKeyWithCtrl, _vm = _ref144._vm, event = _ref144.event, selected = _ref144.selected, actived = _ref144.actived;
6991
7062
  return {
6992
7063
  match: function match() {
6993
7064
  return keyboardConfig.isEdit && !isKeyWithCtrl && !(selected.row === actived.row && selected.column === actived.column);
@@ -7180,9 +7251,9 @@ function handleGlobalMousewheelEvent(event) {
7180
7251
  this.clostTooltip();
7181
7252
  this.closeMenu();
7182
7253
  }
7183
- function handleEscKeyDown(_ref144) {
7254
+ function handleEscKeyDown(_ref145) {
7184
7255
  var _this10 = this;
7185
- var event = _ref144.event, actived = _ref144.actived, mouseConfig = _ref144.mouseConfig;
7256
+ var event = _ref145.event, actived = _ref145.actived, mouseConfig = _ref145.mouseConfig;
7186
7257
  this.closeMenu();
7187
7258
  this.closeFilter();
7188
7259
  if (actived.row) {
@@ -7194,9 +7265,9 @@ function handleEscKeyDown(_ref144) {
7194
7265
  }
7195
7266
  }
7196
7267
  }
7197
- function handleEnterKeyDown(_ref145) {
7268
+ function handleEnterKeyDown(_ref146) {
7198
7269
  var _this11 = this;
7199
- var event = _ref145.event, selected = _ref145.selected, actived = _ref145.actived;
7270
+ var event = _ref146.event, selected = _ref146.selected, actived = _ref146.actived;
7200
7271
  var highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow, treeConfig = this.treeConfig;
7201
7272
  var isLeftArrow = event.keyCode === 37;
7202
7273
  var isUpArrow = event.keyCode === 38;
@@ -7226,8 +7297,8 @@ function handleEnterKeyDown(_ref145) {
7226
7297
  }
7227
7298
  }
7228
7299
  }
7229
- function handleCtxMenu(_ref146) {
7230
- var event = _ref146.event;
7300
+ function handleCtxMenu(_ref147) {
7301
+ var event = _ref147.event;
7231
7302
  var ctxMenuStore = this.ctxMenuStore;
7232
7303
  event.preventDefault();
7233
7304
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
@@ -7252,8 +7323,8 @@ function handleCtxMenu(_ref146) {
7252
7323
  });
7253
7324
  }
7254
7325
  }
7255
- function handleArrowKeyDown(_ref147) {
7256
- var event = _ref147.event, selected = _ref147.selected;
7326
+ function handleArrowKeyDown(_ref148) {
7327
+ var event = _ref148.event, selected = _ref148.selected;
7257
7328
  var highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow;
7258
7329
  var isLeftArrow = event.keyCode === 37;
7259
7330
  var isUpArrow = event.keyCode === 38;
@@ -7272,9 +7343,9 @@ function handleArrowKeyDown(_ref147) {
7272
7343
  this.moveCurrentRow(isUpArrow, isDownArrow, event);
7273
7344
  }
7274
7345
  }
7275
- function handleDelKeyDown(_ref148) {
7346
+ function handleDelKeyDown(_ref149) {
7276
7347
  var _this12 = this;
7277
- var event = _ref148.event, selected = _ref148.selected;
7348
+ var event = _ref149.event, selected = _ref149.selected;
7278
7349
  var _this$keyboardConfig = this.keyboardConfig, keyboardConfig = _this$keyboardConfig === void 0 ? {} : _this$keyboardConfig, treeConfig = this.treeConfig, highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow;
7279
7350
  var isBack = event.keyCode === 8;
7280
7351
  if (keyboardConfig.isDel && (selected.row || selected.column)) {
@@ -7299,8 +7370,8 @@ function handleDelKeyDown(_ref148) {
7299
7370
  }
7300
7371
  }
7301
7372
  }
7302
- function handleSpaceKeyDown(_ref149) {
7303
- var event = _ref149.event, selected = _ref149.selected;
7373
+ function handleSpaceKeyDown(_ref150) {
7374
+ var event = _ref150.event, selected = _ref150.selected;
7304
7375
  event.preventDefault();
7305
7376
  if (selected.column.type === "selection") {
7306
7377
  this.handleToggleCheckRowEvent(selected.args, event);
@@ -7308,8 +7379,8 @@ function handleSpaceKeyDown(_ref149) {
7308
7379
  this.triggerRadioRowEvent(event, selected.args);
7309
7380
  }
7310
7381
  }
7311
- function handleTabKeyDown(_ref150) {
7312
- var event = _ref150.event, selected = _ref150.selected, actived = _ref150.actived;
7382
+ function handleTabKeyDown(_ref151) {
7383
+ var event = _ref151.event, selected = _ref151.selected, actived = _ref151.actived;
7313
7384
  var isShiftKey = event.shiftKey;
7314
7385
  var useTab = this.editConfig.useTab;
7315
7386
  if (selected.row || selected.column) {
@@ -7318,8 +7389,8 @@ function handleTabKeyDown(_ref150) {
7318
7389
  this.moveTabSelected(actived.args, isShiftKey, event, useTab);
7319
7390
  }
7320
7391
  }
7321
- function handleCopyKeyDown(_ref151) {
7322
- var event = _ref151.event;
7392
+ function handleCopyKeyDown(_ref152) {
7393
+ var event = _ref152.event;
7323
7394
  if (event.keyCode === 65) {
7324
7395
  this.handleAllChecked(event);
7325
7396
  } else if (event.keyCode === 88 || event.keyCode === 67) {
@@ -7328,15 +7399,15 @@ function handleCopyKeyDown(_ref151) {
7328
7399
  this.handlePaste(event);
7329
7400
  }
7330
7401
  }
7331
- function handleF2KeyDown(_ref152) {
7332
- var event = _ref152.event, selected = _ref152.selected;
7402
+ function handleF2KeyDown(_ref153) {
7403
+ var event = _ref153.event, selected = _ref153.selected;
7333
7404
  if (selected.row && selected.column) {
7334
7405
  event.preventDefault();
7335
7406
  this.handleActived(selected.args, event);
7336
7407
  }
7337
7408
  }
7338
- function handleOtherKeyDown(_ref153) {
7339
- var event = _ref153.event, selected = _ref153.selected;
7409
+ function handleOtherKeyDown(_ref154) {
7410
+ var event = _ref154.event, selected = _ref154.selected;
7340
7411
  var _this$keyboardConfig2 = this.keyboardConfig, keyboardConfig = _this$keyboardConfig2 === void 0 ? {} : _this$keyboardConfig2;
7341
7412
  var keyCode = event.keyCode;
7342
7413
  var isOtherKey = checkOtherKey(keyCode);
@@ -7441,28 +7512,36 @@ var Methods$d = {
7441
7512
  clearAll: function clearAll(silent) {
7442
7513
  var _this$$grid$fetchOpti = this.$grid.fetchOption, fetchOption = _this$$grid$fetchOpti === void 0 ? {} : _this$$grid$fetchOpti;
7443
7514
  var isReloadFilter = fetchOption.isReloadFilter, _fetchOption$isReload = fetchOption.isReloadScroll, isReloadScroll = _fetchOption$isReload === void 0 ? false : _fetchOption$isReload;
7444
- var functionNames = ["clearScroll", "clearSort", "clearCurrentRow", "clearCurrentColumn", "clearSelection", "clearRowExpand", "clearTreeExpand"];
7445
- if (isReloadScroll) {
7446
- functionNames = functionNames.filter(function(i) {
7447
- return i !== "clearScroll";
7448
- });
7515
+ this.clearSort();
7516
+ this.clearCurrentRow();
7517
+ this.clearCurrentColumn();
7518
+ this.clearSelection();
7519
+ this.clearRowExpand();
7520
+ this.clearTreeExpand();
7521
+ this.clearValidateMap();
7522
+ if (!isReloadScroll) {
7523
+ this.clearScroll();
7449
7524
  }
7450
- run(functionNames, this);
7451
7525
  this.cellStatus.clear();
7452
7526
  if (typeof isReloadFilter === "undefined" ? Grid$1._filter : !isReloadFilter) {
7453
7527
  this.clearFilter(silent);
7454
7528
  }
7455
7529
  if (this.keyboardConfig || this.mouseConfig) {
7456
- run(["clearIndexChecked", "clearHeaderChecked", "clearChecked", "clearSelected", "clearCopyed"], this);
7530
+ this.clearIndexChecked();
7531
+ this.clearHeaderChecked();
7532
+ this.clearChecked();
7533
+ this.clearSelected();
7534
+ this.clearCopyed();
7457
7535
  }
7458
7536
  return this.clearActived();
7459
7537
  },
7460
- refreshData: function refreshData(data6) {
7538
+ refreshData: function refreshData(data7) {
7461
7539
  var _this15 = this;
7462
7540
  var next = function next2() {
7463
7541
  _this15.tableData = [];
7464
7542
  _this15.cellStatus.clear();
7465
- return _this15.loadTableData(data6 || _this15.tableFullData);
7543
+ _this15.clearValidateMap();
7544
+ return _this15.loadTableData(data7 || _this15.tableFullData);
7466
7545
  };
7467
7546
  return this.$nextTick().then(next);
7468
7547
  },
@@ -7491,7 +7570,7 @@ var Methods$d = {
7491
7570
  // 处理表格数据(过滤,排序,虚拟滚动需要渲染数据的条数)
7492
7571
  handleTableData: function handleTableData(force) {
7493
7572
  var _this$tableFullColumn, _this$tableFullColumn2;
7494
- if (force && ((_this$tableFullColumn = this.tableFullColumn) == null ? void 0 : _this$tableFullColumn.length) > 0) {
7573
+ if (force && (((_this$tableFullColumn = this.tableFullColumn) == null ? void 0 : _this$tableFullColumn.length) > 0 || this.viewType !== GlobalConfig$1.viewConfig.DEFAULT)) {
7495
7574
  this.updateAfterFullData();
7496
7575
  this.updateSelectionStatus();
7497
7576
  this.handleSelectionHeader();
@@ -7570,7 +7649,7 @@ var Methods$d = {
7570
7649
  },
7571
7650
  reloadRow: function reloadRow(row2, record, field) {
7572
7651
  var tableData = this.tableData, treeConfig = this.treeConfig, treeOrdered = this.treeOrdered;
7573
- var _ref154 = treeConfig || {}, childrenKey = _ref154.children, _ref154$temporaryInde = _ref154.temporaryIndex, temporaryIndex = _ref154$temporaryInde === void 0 ? "_$index_" : _ref154$temporaryInde;
7652
+ var _ref155 = treeConfig || {}, childrenKey = _ref155.children, _ref155$temporaryInde = _ref155.temporaryIndex, temporaryIndex = _ref155$temporaryInde === void 0 ? "_$index_" : _ref155$temporaryInde;
7574
7653
  var rowKey = getRowkey(this);
7575
7654
  var originRow = this.getOriginRow(row2);
7576
7655
  var hasSrc = originRow && row2;
@@ -7579,7 +7658,7 @@ var Methods$d = {
7579
7658
  set(originRow, field, get(record || row2, field));
7580
7659
  }
7581
7660
  if (hasSrcNoField && record) {
7582
- var _extends4, _ref155;
7661
+ var _extends4, _ref156;
7583
7662
  var backupRow = this.defineField(_extends({}, record, (_extends4 = {}, _extends4[rowKey] = originRow[rowKey], _extends4)));
7584
7663
  var rowChildren, clonedRow;
7585
7664
  if (treeConfig) {
@@ -7595,7 +7674,7 @@ var Methods$d = {
7595
7674
  }
7596
7675
  this.setOriginRow(row2, backupRow);
7597
7676
  clear(row2, void 0);
7598
- Object.assign(row2, clonedRow, treeConfig ? (_ref155 = {}, _ref155[childrenKey] = rowChildren, _ref155) : null);
7677
+ Object.assign(row2, clonedRow, treeConfig ? (_ref156 = {}, _ref156[childrenKey] = rowChildren, _ref156) : null);
7599
7678
  this.updateCache();
7600
7679
  }
7601
7680
  if (hasSrcNoField && !record) {
@@ -7641,7 +7720,7 @@ var Methods$d = {
7641
7720
  }
7642
7721
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig, treeOrdered = this.treeOrdered;
7643
7722
  var rowKey = getRowkey(this);
7644
- var _ref156 = treeConfig || {}, childrenKey = _ref156.children, _ref156$temporaryInde = _ref156.temporaryIndex, temporaryIndex = _ref156$temporaryInde === void 0 ? "_$index_" : _ref156$temporaryInde;
7723
+ var _ref157 = treeConfig || {}, childrenKey = _ref157.children, _ref157$temporaryInde = _ref157.temporaryIndex, temporaryIndex = _ref157$temporaryInde === void 0 ? "_$index_" : _ref157$temporaryInde;
7645
7724
  var isTreeOrderedFalse = treeConfig && !treeOrdered;
7646
7725
  var backupMap = /* @__PURE__ */ new WeakMap();
7647
7726
  this.fullDataRowIdData = {};
@@ -7660,7 +7739,7 @@ var Methods$d = {
7660
7739
  _this22.fullDataRowIdData[rowId] = rowCache;
7661
7740
  _this22.fullDataRowMap.set(hooks.toRaw(row2), rowCache);
7662
7741
  if (backup) {
7663
- var _ref157;
7742
+ var _ref158;
7664
7743
  if (isTreeOrderedFalse) {
7665
7744
  var parentIndex;
7666
7745
  if (parent) {
@@ -7668,7 +7747,7 @@ var Methods$d = {
7668
7747
  }
7669
7748
  set(row2, temporaryIndex, (parentIndex ? parentIndex + "." : "") + (index2 + 1));
7670
7749
  }
7671
- var childrenField = treeConfig ? (_ref157 = {}, _ref157[childrenKey] = void 0, _ref157) : {};
7750
+ var childrenField = treeConfig ? (_ref158 = {}, _ref158[childrenKey] = void 0, _ref158) : {};
7672
7751
  var backupRow = deepCopy ? clone(_extends({}, row2, childrenField), true) : _extends({}, row2, childrenField);
7673
7752
  backupMap.set(row2, backupRow);
7674
7753
  return backupRow;
@@ -7744,8 +7823,8 @@ var Methods$d = {
7744
7823
  row2 = clone(row2, true);
7745
7824
  }
7746
7825
  var rowKey = getRowkey(this);
7747
- this.visibleColumn.forEach(function(_ref158) {
7748
- var property = _ref158.property, editor = _ref158.editor;
7826
+ this.visibleColumn.forEach(function(_ref159) {
7827
+ var property = _ref159.property, editor = _ref159.editor;
7749
7828
  var propNotExist = property && !has(row2, property);
7750
7829
  var propDefaultValue = editor && !isUndefined(editor.defaultValue) ? editor.defaultValue : null;
7751
7830
  if (propNotExist) {
@@ -7809,7 +7888,7 @@ var Methods$d = {
7809
7888
  var value = get(row2, field);
7810
7889
  var originalValue = get(originalRow, field);
7811
7890
  var column = this.getColumnByField(field);
7812
- var equals = column.equals || this.equals;
7891
+ var equals = (column == null ? void 0 : column.equals) || this.equals;
7813
7892
  var result;
7814
7893
  if (equals) {
7815
7894
  result = equals({
@@ -7903,7 +7982,7 @@ var Methods$d = {
7903
7982
  var _this$selectConfig = this.selectConfig, selectConfig = _this$selectConfig === void 0 ? {} : _this$selectConfig, selection = this.selection;
7904
7983
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
7905
7984
  var checkField = selectConfig.checkField;
7906
- var _ref159 = {}, _ref159$rowList = _ref159.rowList, rowList = _ref159$rowList === void 0 ? [] : _ref159$rowList;
7985
+ var _ref160 = {}, _ref160$rowList = _ref160.rowList, rowList = _ref160$rowList === void 0 ? [] : _ref160$rowList;
7907
7986
  if (checkField && treeConfig) {
7908
7987
  rowList = filterTree(tableFullData, function(row2) {
7909
7988
  return get(row2, checkField);
@@ -7932,8 +8011,8 @@ var Methods$d = {
7932
8011
  var tableData = this.tableFullData;
7933
8012
  var updateFilter = function updateFilter2(tableData2) {
7934
8013
  var remoteFilter = _this26.remoteFilter, visibleColumn = _this26.visibleColumn;
7935
- var filterColumn = visibleColumn.filter(function(_ref160) {
7936
- var filter2 = _ref160.filter;
8014
+ var filterColumn = visibleColumn.filter(function(_ref161) {
8015
+ var filter2 = _ref161.filter;
7937
8016
  return !!filter2;
7938
8017
  });
7939
8018
  return tableData2.filter(function(row2) {
@@ -7962,8 +8041,8 @@ var Methods$d = {
7962
8041
  } else {
7963
8042
  var sortedFlag = false;
7964
8043
  if (sortOpts2.multipleColumnSort) {
7965
- var sortColumns = visibleColumn.filter(function(_ref161) {
7966
- var order2 = _ref161.order;
8044
+ var sortColumns = visibleColumn.filter(function(_ref162) {
8045
+ var order2 = _ref162.order;
7967
8046
  return !!order2;
7968
8047
  });
7969
8048
  if (sortColumns.length > 1) {
@@ -8040,16 +8119,13 @@ var Methods$d = {
8040
8119
  };
8041
8120
  },
8042
8121
  handleDefault: function handleDefault() {
8043
- var _this28 = this;
8044
8122
  this.handleAsyncColumn(this.tableData);
8045
8123
  this.isCheckable && this.selectConfig && this.handleSelectionDefChecked();
8046
8124
  this.radioConfig && this.handleRadioDefChecked();
8047
8125
  this.expandConfig && this.handleDefaultRowExpand();
8048
8126
  this.treeConfig && this.handleDefaultTreeExpand();
8049
8127
  this.updateFooter();
8050
- this.$nextTick(function() {
8051
- return setTimeout(_this28.recalculate);
8052
- });
8128
+ this.$nextTick(this.recalculate);
8053
8129
  },
8054
8130
  // 动态列处理
8055
8131
  mergeCustomColumn: function mergeCustomColumn(customColumns, sort2, colWidth) {
@@ -8074,7 +8150,7 @@ var Methods$d = {
8074
8150
  });
8075
8151
  }
8076
8152
  if (hasCustomsOrColWidth && !isGroupOrNonSort) {
8077
- var _ref162 = {}, _ref162$collectColumn = _ref162.collectColumn, collectColumn2 = _ref162$collectColumn === void 0 ? [] : _ref162$collectColumn, _ref162$customMap = _ref162.customMap, customMap = _ref162$customMap === void 0 ? {} : _ref162$customMap, _ref162$orderColumn = _ref162.orderColumn, orderColumn = _ref162$orderColumn === void 0 ? [] : _ref162$orderColumn;
8153
+ var _ref163 = {}, _ref163$collectColumn = _ref163.collectColumn, collectColumn2 = _ref163$collectColumn === void 0 ? [] : _ref163$collectColumn, _ref163$customMap = _ref163.customMap, customMap = _ref163$customMap === void 0 ? {} : _ref163$customMap, _ref163$orderColumn = _ref163.orderColumn, orderColumn = _ref163$orderColumn === void 0 ? [] : _ref163$orderColumn;
8078
8154
  mapTree(customColumns, function(customCol) {
8079
8155
  var targetCol = find$1(fullColumn, function(item) {
8080
8156
  return customCol.property && item.property === customCol.property;
@@ -8127,11 +8203,11 @@ var Methods$d = {
8127
8203
  },
8128
8204
  // 初始化加载动态列:customColumns 列信息,sort 是否按顺序加载
8129
8205
  reloadCustoms: function reloadCustoms(customColumns, sort2, colWidth) {
8130
- var _this29 = this;
8206
+ var _this28 = this;
8131
8207
  this.mergeCustomColumn(customColumns, sort2, colWidth);
8132
8208
  this.handleTableData(true);
8133
8209
  return this.refreshColumn().then(function() {
8134
- return _this29.tableFullColumn.slice(0);
8210
+ return _this28.tableFullColumn.slice(0);
8135
8211
  });
8136
8212
  },
8137
8213
  watchColumn: function watchColumn(value) {
@@ -8178,7 +8254,7 @@ var Methods$d = {
8178
8254
  * 如果使用了分组表头,固定列必须在左侧或者右侧
8179
8255
  */
8180
8256
  refreshColumn: function refreshColumn() {
8181
- var _this30 = this;
8257
+ var _this29 = this;
8182
8258
  var leftList = [], centerList = [], rightList = [];
8183
8259
  var letIndex = 0, leftStartIndex = null, rightEndIndex = null, isColspan = void 0;
8184
8260
  var columnStore = this.columnStore, isGroup2 = this.isGroup;
@@ -8250,9 +8326,9 @@ var Methods$d = {
8250
8326
  this.updateFooter();
8251
8327
  this.recalculate();
8252
8328
  return this.$nextTick().then(function() {
8253
- _this30.$emit("after-refresh-column");
8254
- if (_this30.isColumnReady) {
8255
- _this30.attemptRestoreScroll();
8329
+ _this29.$emit("after-refresh-column");
8330
+ if (_this29.isColumnReady) {
8331
+ _this29.attemptRestoreScroll();
8256
8332
  }
8257
8333
  });
8258
8334
  },
@@ -8332,7 +8408,7 @@ var Methods$d = {
8332
8408
  * 支持(width=?、width=?px、width=?%、min-width=?、min-width=?px、min-width=?%)
8333
8409
  */
8334
8410
  recalculate: function recalculate() {
8335
- var _this31 = this;
8411
+ var _this30 = this;
8336
8412
  var elemStore = this.elemStore, scrollXLoad = this.scrollXLoad, scrollYLoad = this.scrollYLoad, scrollLoad = this.scrollLoad, _tableVisible = this._tableVisible;
8337
8413
  var bodyWrapper = elemStore["main-body-wrapper"];
8338
8414
  if (!_tableVisible) {
@@ -8344,7 +8420,7 @@ var Methods$d = {
8344
8420
  this.autoCellWidth();
8345
8421
  if (scrollXLoad || scrollYLoad || scrollLoad) {
8346
8422
  return this.computeScrollLoad().then(function() {
8347
- _this31.autoCellWidth();
8423
+ _this30.autoCellWidth();
8348
8424
  });
8349
8425
  }
8350
8426
  return this.computeScrollLoad();
@@ -8402,17 +8478,17 @@ var Methods$d = {
8402
8478
  this.currentRow && this.setCurrentRow(this.currentRow);
8403
8479
  },
8404
8480
  preventEvent: function preventEvent(event, type, args, next, end) {
8405
- var _this32 = this;
8481
+ var _this31 = this;
8406
8482
  var eventList = Interceptor.get(type);
8407
8483
  if (!eventList.some(function(listener) {
8408
- return listener(args, event, _this32) === false;
8484
+ return listener(args, event, _this31) === false;
8409
8485
  })) {
8410
8486
  next && next();
8411
8487
  }
8412
8488
  end && end();
8413
8489
  },
8414
- blurOutside: function blurOutside(_ref163, event) {
8415
- var row2 = _ref163.row, args = _ref163.args, column = _ref163.column;
8490
+ blurOutside: function blurOutside(_ref164, event) {
8491
+ var row2 = _ref164.row, args = _ref164.args, column = _ref164.column;
8416
8492
  var editConfig = this.editConfig, getEventTargetNode2 = this.getEventTargetNode, $el = this.$el;
8417
8493
  if (column && row2) {
8418
8494
  var editor = column.editor;
@@ -8441,7 +8517,7 @@ var Methods$d = {
8441
8517
  } else if (isArray(blurClassConfig)) {
8442
8518
  blurClass = blurClassConfig.slice(0);
8443
8519
  }
8444
- if (args != null && args.cell.contains(event.target)) {
8520
+ if (args != null && args.cell.contains(getActualTarget(event))) {
8445
8521
  return true;
8446
8522
  }
8447
8523
  if (editConfig.mode === "row" && getEventTargetNode2(event, $el, "tiny-grid-body__column").flag) {
@@ -8472,7 +8548,7 @@ var Methods$d = {
8472
8548
  // 处理单选框默认勾选
8473
8549
  handleRadioDefChecked: function handleRadioDefChecked() {
8474
8550
  var fullDataRowIdData = this.fullDataRowIdData;
8475
- var _ref164 = this.radioConfig || {}, checkRowKey = _ref164.checkRowKey;
8551
+ var _ref165 = this.radioConfig || {}, checkRowKey = _ref165.checkRowKey;
8476
8552
  var rowid2 = checkRowKey && encodeURIComponent(checkRowKey);
8477
8553
  var rowCache = fullDataRowIdData[rowid2];
8478
8554
  if (rowid2 && rowCache) {
@@ -8482,7 +8558,7 @@ var Methods$d = {
8482
8558
  // 单选,行选中事件
8483
8559
  triggerRadioRowEvent: function triggerRadioRowEvent(event, params) {
8484
8560
  var selectRow = this.selectRow;
8485
- var _ref165 = this.radioConfig || {}, checkMethod = _ref165.checkMethod;
8561
+ var _ref166 = this.radioConfig || {}, checkMethod = _ref166.checkMethod;
8486
8562
  if (checkMethod && !checkMethod(params)) {
8487
8563
  return;
8488
8564
  }
@@ -8581,12 +8657,15 @@ var Methods$d = {
8581
8657
  },
8582
8658
  // 当单元格发生改变时,如果存在规则,则校验
8583
8659
  handleChangeCell: function handleChangeCell(event, params) {
8584
- var _this33 = this;
8660
+ var _this32 = this;
8585
8661
  this.triggerValidate("blur").catch(function(e) {
8586
8662
  return e;
8587
8663
  }).then(function() {
8588
- _this33.handleActived(params, event).then(function() {
8589
- return _this33.triggerValidate("change");
8664
+ _this32.handleActived(params, event).then(function() {
8665
+ var _this32$editConfig;
8666
+ if ((_this32$editConfig = _this32.editConfig) != null && _this32$editConfig.validateOnActive) {
8667
+ return _this32.triggerValidate("change");
8668
+ }
8590
8669
  }).catch(function(e) {
8591
8670
  return e;
8592
8671
  });
@@ -8657,7 +8736,7 @@ var Methods$d = {
8657
8736
  },
8658
8737
  // 列双击点击事件:如果是双击模式,则激活为编辑状态
8659
8738
  triggerCellDBLClickEvent: function triggerCellDBLClickEvent(event, params) {
8660
- var _this34 = this;
8739
+ var _this33 = this;
8661
8740
  var editStore = this.editStore, editConfig = this.editConfig;
8662
8741
  var actived = editStore.actived;
8663
8742
  var isActiveNewCell = !actived.args || event.currentTarget !== actived.args.cell;
@@ -8666,8 +8745,8 @@ var Methods$d = {
8666
8745
  this.triggerValidate("blur").catch(function(e) {
8667
8746
  return e;
8668
8747
  }).then(function() {
8669
- _this34.handleActived(params, event).then(function() {
8670
- return _this34.triggerValidate("change");
8748
+ _this33.handleActived(params, event).then(function() {
8749
+ return _this33.triggerValidate("change");
8671
8750
  }).catch(function(e) {
8672
8751
  return e;
8673
8752
  });
@@ -8675,7 +8754,7 @@ var Methods$d = {
8675
8754
  }
8676
8755
  if (isDblclickNewCell && editConfig.mode === "cell") {
8677
8756
  this.handleActived(params, event).then(function() {
8678
- return _this34.triggerValidate("change");
8757
+ return _this33.triggerValidate("change");
8679
8758
  }).catch(function(e) {
8680
8759
  return e;
8681
8760
  });
@@ -8734,8 +8813,8 @@ var Methods$d = {
8734
8813
  this.groupExpandeds.push(row2);
8735
8814
  },
8736
8815
  // 展开行事件
8737
- triggerRowExpandEvent: function triggerRowExpandEvent(event, _ref166) {
8738
- var row2 = _ref166.row;
8816
+ triggerRowExpandEvent: function triggerRowExpandEvent(event, _ref167) {
8817
+ var row2 = _ref167.row;
8739
8818
  var rest = this.toggleRowExpansion(row2);
8740
8819
  var eventParams = {
8741
8820
  $table: this,
@@ -8752,7 +8831,7 @@ var Methods$d = {
8752
8831
  // 处理默认展开行
8753
8832
  handleDefaultRowExpand: function handleDefaultRowExpand() {
8754
8833
  var fullDataRowIdData = this.fullDataRowIdData, tableFullData = this.tableFullData;
8755
- var _ref167 = this.expandConfig || {}, expandAll = _ref167.expandAll, expandRowKeys = _ref167.expandRowKeys;
8834
+ var _ref168 = this.expandConfig || {}, expandAll = _ref168.expandAll, expandRowKeys = _ref168.expandRowKeys;
8756
8835
  if (expandAll) {
8757
8836
  this.expandeds = tableFullData.slice(0);
8758
8837
  return;
@@ -8773,7 +8852,7 @@ var Methods$d = {
8773
8852
  // 设置展开行,二个参数设置这一行展开与否;支持单行;支持多行
8774
8853
  setRowExpansion: function setRowExpansion(rows, expanded) {
8775
8854
  var expandeds = this.expandeds;
8776
- var _ref168 = this.expandConfig || {}, accordion = _ref168.accordion;
8855
+ var _ref169 = this.expandConfig || {}, accordion = _ref169.accordion;
8777
8856
  var isToggle = arguments.length === 1;
8778
8857
  var isAccordionCloseAll = false;
8779
8858
  if (!rows) {
@@ -8805,11 +8884,11 @@ var Methods$d = {
8805
8884
  return ~this.expandeds.indexOf(row2);
8806
8885
  },
8807
8886
  clearRowExpand: function clearRowExpand() {
8808
- var _this35 = this;
8887
+ var _this34 = this;
8809
8888
  var hasExpand = this.expandeds.length;
8810
8889
  this.expandeds = [];
8811
8890
  return this.$nextTick().then(function() {
8812
- return hasExpand ? _this35.recalculate() : 0;
8891
+ return hasExpand ? _this34.recalculate() : 0;
8813
8892
  });
8814
8893
  },
8815
8894
  // 获取虚拟滚动状态
@@ -8828,13 +8907,13 @@ var Methods$d = {
8828
8907
  this.loadScrollXData(event);
8829
8908
  },
8830
8909
  debounceScrollX: function debounceScrollX(event) {
8831
- var _this36 = this;
8910
+ var _this35 = this;
8832
8911
  if (!this.tasks.debounceScrollX) {
8833
8912
  this.tasks.debounceScrollXHandler = null;
8834
8913
  this.tasks.debounceScrollX = function() {
8835
8914
  return requestAnimationFrame(function() {
8836
- _this36.tasks.debounceScrollXHandler = null;
8837
- _this36.loadScrollXData(event);
8915
+ _this35.tasks.debounceScrollXHandler = null;
8916
+ _this35.loadScrollXData(event);
8838
8917
  });
8839
8918
  };
8840
8919
  }
@@ -8849,7 +8928,7 @@ var Methods$d = {
8849
8928
  var scrollXStore = this.scrollXStore, visibleColumn = this.visibleColumn;
8850
8929
  var offsetSize = scrollXStore.offsetSize, renderSize = scrollXStore.renderSize, startIndex = scrollXStore.startIndex, visibleIndex = scrollXStore.visibleIndex, visibleSize = scrollXStore.visibleSize;
8851
8930
  var scrollLeft = this.$refs.tableBody.$el.scrollLeft;
8852
- var _ref169 = {}, _ref169$preload = _ref169.preload, preload = _ref169$preload === void 0 ? false : _ref169$preload, _ref169$toVisibleInde = _ref169.toVisibleIndex, toVisibleIndex = _ref169$toVisibleInde === void 0 ? 0 : _ref169$toVisibleInde, _ref169$width = _ref169.width, width = _ref169$width === void 0 ? 0 : _ref169$width;
8931
+ var _ref170 = {}, _ref170$preload = _ref170.preload, preload = _ref170$preload === void 0 ? false : _ref170$preload, _ref170$toVisibleInde = _ref170.toVisibleIndex, toVisibleIndex = _ref170$toVisibleInde === void 0 ? 0 : _ref170$toVisibleInde, _ref170$width = _ref170.width, width = _ref170$width === void 0 ? 0 : _ref170$width;
8853
8932
  for (var i = 0; i < visibleColumn.length; i++) {
8854
8933
  width += visibleColumn[i].renderWidth;
8855
8934
  if (scrollLeft < width) {
@@ -8885,21 +8964,21 @@ var Methods$d = {
8885
8964
  },
8886
8965
  // 处理滚动分页相关逻辑
8887
8966
  debounceScrollLoad: function debounceScrollLoad(event) {
8888
- var _this37 = this;
8967
+ var _this36 = this;
8889
8968
  if (!this.tasks.debounceScrollLoad) {
8890
8969
  this.tasks.debounceScrollLoad = debounce(debounceScrollLoadDuration, function() {
8891
- var _this37$scrollLoadSto = _this37.scrollLoadStore, scrollHeight = _this37$scrollLoadSto.scrollHeight, bodyHeight = _this37$scrollLoadSto.bodyHeight;
8892
- var _this37$$grid$tablePa = _this37.$grid.tablePage, currentPage = _this37$$grid$tablePa.currentPage, pageSize = _this37$$grid$tablePa.pageSize;
8970
+ var _this36$scrollLoadSto = _this36.scrollLoadStore, scrollHeight = _this36$scrollLoadSto.scrollHeight, bodyHeight = _this36$scrollLoadSto.bodyHeight;
8971
+ var _this36$$grid$tablePa = _this36.$grid.tablePage, currentPage = _this36$$grid$tablePa.currentPage, pageSize = _this36$$grid$tablePa.pageSize;
8893
8972
  var max = scrollHeight - bodyHeight;
8894
- var scrollTop = event.target.scrollTop;
8973
+ var scrollTop = getActualTarget(event).scrollTop;
8895
8974
  if (scrollTop > max) {
8896
8975
  scrollTop = max;
8897
8976
  }
8898
- var rowHeight = _this37.scrollYStore.rowHeight;
8977
+ var rowHeight = _this36.scrollYStore.rowHeight;
8899
8978
  var visibleIndex = Math.ceil(scrollTop / rowHeight);
8900
8979
  var page = Math.ceil(visibleIndex / pageSize) + 1;
8901
8980
  if (currentPage !== page) {
8902
- _this37.$grid.pageCurrentChange(page);
8981
+ _this36.$grid.pageCurrentChange(page);
8903
8982
  }
8904
8983
  });
8905
8984
  }
@@ -8907,10 +8986,10 @@ var Methods$d = {
8907
8986
  },
8908
8987
  // 纵向 Y 可视渲染处理
8909
8988
  loadScrollYData: function loadScrollYData(event) {
8910
- var _this38 = this;
8989
+ var _this37 = this;
8911
8990
  var scrollYStore = this.scrollYStore;
8912
8991
  var startIndex = scrollYStore.startIndex, renderSize = scrollYStore.renderSize, offsetSize = scrollYStore.offsetSize, visibleIndex = scrollYStore.visibleIndex, visibleSize = scrollYStore.visibleSize, rowHeight = scrollYStore.rowHeight;
8913
- var scrollTop = event.target.scrollTop;
8992
+ var _getActualTarget = getActualTarget(event), scrollTop = _getActualTarget.scrollTop;
8914
8993
  var toVisibleIndex = Math.ceil(scrollTop / rowHeight);
8915
8994
  var preload = false;
8916
8995
  if (visibleIndex === toVisibleIndex) {
@@ -8933,7 +9012,7 @@ var Methods$d = {
8933
9012
  }
8934
9013
  scrollYStore.visibleIndex = toVisibleIndex;
8935
9014
  this.$nextTick(function() {
8936
- _this38.updateSelectedCls(true);
9015
+ _this37.updateSelectedCls(true);
8937
9016
  });
8938
9017
  },
8939
9018
  getRowHeight: function getRowHeight() {
@@ -8941,16 +9020,16 @@ var Methods$d = {
8941
9020
  },
8942
9021
  // 计算可视渲染相关数据
8943
9022
  computeScrollLoad: function computeScrollLoad() {
8944
- var _this39 = this;
9023
+ var _this38 = this;
8945
9024
  return this.$nextTick().then(function() {
8946
- var $refs = _this39.$refs, optimizeOpts = _this39.optimizeOpts, visibleColumn = _this39.visibleColumn;
8947
- var scrollLoad = _this39.scrollLoad, scrollXLoad = _this39.scrollXLoad, scrollXStore = _this39.scrollXStore, scrollYLoad = _this39.scrollYLoad, scrollYStore = _this39.scrollYStore;
9025
+ var $refs = _this38.$refs, optimizeOpts = _this38.optimizeOpts, visibleColumn = _this38.visibleColumn;
9026
+ var scrollLoad = _this38.scrollLoad, scrollXLoad = _this38.scrollXLoad, scrollXStore = _this38.scrollXStore, scrollYLoad = _this38.scrollYLoad, scrollYStore = _this38.scrollYStore;
8948
9027
  var scrollX = optimizeOpts.scrollX, scrollY = optimizeOpts.scrollY;
8949
9028
  var tableBody = $refs.tableBody;
8950
9029
  var bodyElem = tableBody ? tableBody.$el : null;
8951
9030
  if (bodyElem) {
8952
9031
  computeScrollXLoad({
8953
- _vm: _this39,
9032
+ _vm: _this38,
8954
9033
  scrollX,
8955
9034
  scrollXLoad,
8956
9035
  scrollXStore,
@@ -8958,7 +9037,7 @@ var Methods$d = {
8958
9037
  visibleColumn
8959
9038
  });
8960
9039
  computeScrollYLoad({
8961
- _vm: _this39,
9040
+ _vm: _this38,
8962
9041
  scrollLoad,
8963
9042
  scrollY,
8964
9043
  scrollYLoad,
@@ -8966,7 +9045,7 @@ var Methods$d = {
8966
9045
  tableBodyElem: bodyElem
8967
9046
  });
8968
9047
  }
8969
- _this39.$nextTick(_this39.updateStyle);
9048
+ _this38.$nextTick(_this38.updateStyle);
8970
9049
  });
8971
9050
  },
8972
9051
  updateScrollXData: function updateScrollXData() {
@@ -8996,10 +9075,10 @@ var Methods$d = {
8996
9075
  }
8997
9076
  },
8998
9077
  updateScrollYData: function updateScrollYData() {
8999
- var _this40 = this;
9078
+ var _this39 = this;
9000
9079
  this.updateScrollYSpace();
9001
9080
  this.handleTableData().then(function() {
9002
- return _this40.updateStyle();
9081
+ return _this39.updateStyle();
9003
9082
  });
9004
9083
  },
9005
9084
  // 更新纵向 Y 可视渲染上下剩余空间大小
@@ -9016,7 +9095,7 @@ var Methods$d = {
9016
9095
  },
9017
9096
  updateScrollLoadBar: function updateScrollLoadBar(event) {
9018
9097
  var $el = this.$el, elemStore = this.elemStore, scrollLoad = this.scrollLoad, scrollLoadStore = this.scrollLoadStore;
9019
- if (scrollLoad && $el.contains(event.target)) {
9098
+ if (scrollLoad && $el.contains(getActualTarget(event))) {
9020
9099
  var wheelDelta = event.wheelDelta ? event.wheelDelta : -event.detail * 40;
9021
9100
  var scrollElm = elemStore["main-body-ySpace"];
9022
9101
  var scrollHeight = scrollLoadStore.scrollHeight, bodyHeight = scrollLoadStore.bodyHeight;
@@ -9045,7 +9124,7 @@ var Methods$d = {
9045
9124
  return this.scrollToColumn(column, isDelayArg, move);
9046
9125
  },
9047
9126
  scrollToTreeRow: function scrollToTreeRow(row2) {
9048
- var _this41 = this;
9127
+ var _this40 = this;
9049
9128
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
9050
9129
  if (!treeConfig) {
9051
9130
  return this.$nextTick();
@@ -9058,20 +9137,20 @@ var Methods$d = {
9058
9137
  }
9059
9138
  var nodes = matchObj.nodes;
9060
9139
  nodes.forEach(function(row22, index2) {
9061
- if (index2 === nodes.length - 1 || _this41.hasTreeExpand(row22)) {
9140
+ if (index2 === nodes.length - 1 || _this40.hasTreeExpand(row22)) {
9062
9141
  return;
9063
9142
  }
9064
- _this41.setTreeExpansion(row22, true);
9143
+ _this40.setTreeExpansion(row22, true);
9065
9144
  });
9066
9145
  return this.$nextTick();
9067
9146
  },
9068
9147
  scrollToColumn: function scrollToColumn(column, isDelay, move) {
9069
- var _this42 = this;
9148
+ var _this41 = this;
9070
9149
  var hasColCache = this.fullColumnMap.has(column);
9071
9150
  column && hasColCache && colToVisible(this, column, move);
9072
9151
  return isDelay && (this.scrollXLoad || this.scrollYLoad) ? new Promise(function(resolve) {
9073
9152
  return setTimeout(function() {
9074
- return resolve(_this42.$nextTick());
9153
+ return resolve(_this41.$nextTick());
9075
9154
  }, 50);
9076
9155
  }) : this.$nextTick();
9077
9156
  },
@@ -9079,7 +9158,7 @@ var Methods$d = {
9079
9158
  this.lastScrollTop = 0;
9080
9159
  },
9081
9160
  clearScroll: function clearScroll() {
9082
- var _this43 = this;
9161
+ var _this42 = this;
9083
9162
  var $grid = this.$grid, scrollXStore = this.scrollXStore, scrollYStore = this.scrollYStore, elemStore = this.elemStore;
9084
9163
  var _$grid$fetchOption = $grid.fetchOption, fetchOption = _$grid$fetchOption === void 0 ? {} : _$grid$fetchOption;
9085
9164
  var _fetchOption$isReload2 = fetchOption.isReloadScroll, isReloadScroll = _fetchOption$isReload2 === void 0 ? false : _fetchOption$isReload2;
@@ -9100,7 +9179,7 @@ var Methods$d = {
9100
9179
  });
9101
9180
  return this.$nextTick(function() {
9102
9181
  var tableBodyElem = elemStore["main-body-wrapper"];
9103
- if (_this43.afterMounted) {
9182
+ if (_this42.afterMounted) {
9104
9183
  fastdom.mutate(function() {
9105
9184
  tableBodyElem && Object.assign(tableBodyElem, {
9106
9185
  scrollLeft: 0,
@@ -9117,16 +9196,16 @@ var Methods$d = {
9117
9196
  return;
9118
9197
  }
9119
9198
  if (footerMethod && showFooter) {
9120
- var data6 = footerMethod({
9199
+ var data7 = footerMethod({
9121
9200
  columns: tableColumn2,
9122
9201
  data: afterFullData
9123
9202
  });
9124
- if (data6.length && data6.some(function(value) {
9203
+ if (data7.length && data7.some(function(value) {
9125
9204
  return !isArray(value);
9126
9205
  })) {
9127
- data6 = [data6];
9206
+ data7 = [data7];
9128
9207
  }
9129
- this.footerData = tableColumn2.length ? data6 : [];
9208
+ this.footerData = tableColumn2.length ? data7 : [];
9130
9209
  }
9131
9210
  if (summaryConfig) {
9132
9211
  var fields = summaryConfig.fields, fraction = summaryConfig.fraction, text = summaryConfig.text, _truncate = summaryConfig.truncate;
@@ -9146,7 +9225,7 @@ var Methods$d = {
9146
9225
  },
9147
9226
  // 更新列状态:如果组件值v-model发生change,调用该函数更新列的编辑状态。如果单元格配置了校验规则,则进行校验
9148
9227
  updateStatus: function updateStatus(scope, cellValue, renderOpts) {
9149
- var _this44 = this;
9228
+ var _this43 = this;
9150
9229
  var $refs = this.$refs, editRules = this.editRules, tableData = this.tableData, validStore = this.validStore;
9151
9230
  var tableBody = $refs.tableBody;
9152
9231
  if (!scope || !tableBody) {
@@ -9156,9 +9235,9 @@ var Methods$d = {
9156
9235
  var type = "change";
9157
9236
  var refreshStatus = function refreshStatus2() {
9158
9237
  if (!isUndefined(cellValue)) {
9159
- var _this44$$refs$tableBo;
9160
- _this44.updateRowStatus(row2);
9161
- (_this44$$refs$tableBo = _this44.$refs.tableBody) == null ? void 0 : _this44$$refs$tableBo.$forceUpdate();
9238
+ var _this43$$refs$tableBo;
9239
+ _this43.updateRowStatus(row2);
9240
+ (_this43$$refs$tableBo = _this43.$refs.tableBody) == null ? void 0 : _this43$$refs$tableBo.$forceUpdate();
9162
9241
  }
9163
9242
  };
9164
9243
  if (!editRules || !this.hasCellRules(type, row2, column)) {
@@ -9177,13 +9256,13 @@ var Methods$d = {
9177
9256
  if (!cell) {
9178
9257
  return;
9179
9258
  }
9180
- return _this44.validCellRules(type, row2, column, cellValue).then(function() {
9259
+ return _this43.validCellRules(type, row2, column, cellValue).then(function() {
9181
9260
  refreshStatus();
9182
- _this44.clearValidate();
9183
- }).catch(function(_ref170) {
9184
- var rule = _ref170.rule;
9261
+ _this43.clearValidate();
9262
+ }).catch(function(_ref171) {
9263
+ var rule = _ref171.rule;
9185
9264
  refreshStatus();
9186
- _this44.showValidTooltip({
9265
+ _this43.showValidTooltip({
9187
9266
  rule,
9188
9267
  row: row2,
9189
9268
  column,
@@ -9195,15 +9274,15 @@ var Methods$d = {
9195
9274
  },
9196
9275
  /* X/Y 方向滚动 */
9197
9276
  updateScrollStatus: function updateScrollStatus() {
9198
- var _this45 = this;
9277
+ var _this44 = this;
9199
9278
  if (!this.tasks.updateScrollStatus) {
9200
9279
  this.tasks.updateScrollStatus = debounce(AsyncCollectTimeout, function() {
9201
- var scrollXLoad = _this45.scrollXLoad, scrollYLoad = _this45.scrollYLoad, isAsyncColumn = _this45.isAsyncColumn;
9280
+ var scrollXLoad = _this44.scrollXLoad, scrollYLoad = _this44.scrollYLoad, isAsyncColumn = _this44.isAsyncColumn;
9202
9281
  if (isAsyncColumn && (scrollXLoad || scrollYLoad)) {
9203
- var tableData = _this45.tableData, scrollXStore = _this45.scrollXStore, scrollYStore = _this45.scrollYStore, tableFullData = _this45.tableFullData, _this45$scrollDirecti = _this45.scrollDirection, scrollDirection = _this45$scrollDirecti === void 0 ? "N" : _this45$scrollDirecti;
9282
+ var tableData = _this44.tableData, scrollXStore = _this44.scrollXStore, scrollYStore = _this44.scrollYStore, tableFullData = _this44.tableFullData, _this44$scrollDirecti = _this44.scrollDirection, scrollDirection = _this44$scrollDirecti === void 0 ? "N" : _this44$scrollDirecti;
9204
9283
  var isInit = scrollXLoad && scrollXStore.visibleIndex === 0 || scrollYLoad && scrollYStore.visibleIndex === 0;
9205
9284
  if (isInit || scrollDirection !== "N") {
9206
- _this45.handleResolveColumn(tableFullData, _this45.collectAsyncColumn(tableData));
9285
+ _this44.handleResolveColumn(tableFullData, _this44.collectAsyncColumn(tableData));
9207
9286
  }
9208
9287
  }
9209
9288
  });
@@ -9220,7 +9299,7 @@ var Methods$d = {
9220
9299
  },
9221
9300
  // 收集异步列
9222
9301
  collectAsyncColumn: function collectAsyncColumn(tableData) {
9223
- var _this46 = this;
9302
+ var _this45 = this;
9224
9303
  var fetchColumns = [];
9225
9304
  var rowId = this.rowId, asyncRenderMap = this.asyncRenderMap, tableColumn2 = this.tableColumn;
9226
9305
  if (!rowId) {
@@ -9228,8 +9307,8 @@ var Methods$d = {
9228
9307
  return fetchColumns;
9229
9308
  }
9230
9309
  tableColumn2.forEach(function(col) {
9231
- var _ref171 = col.format || {}, async = _ref171.async;
9232
- var _ref172 = async || {}, fetch = _ref172.fetch, _ref172$splitConfig = _ref172.splitConfig, splitConfig = _ref172$splitConfig === void 0 ? {} : _ref172$splitConfig;
9310
+ var _ref172 = col.format || {}, async = _ref172.async;
9311
+ var _ref173 = async || {}, fetch = _ref173.fetch, _ref173$splitConfig = _ref173.splitConfig, splitConfig = _ref173$splitConfig === void 0 ? {} : _ref173$splitConfig;
9233
9312
  if (typeof fetch === "function") {
9234
9313
  var columnValues = [];
9235
9314
  tableData.forEach(function(row2) {
@@ -9239,7 +9318,7 @@ var Methods$d = {
9239
9318
  }
9240
9319
  var cellValuesCount = 1;
9241
9320
  var cellValues = [cellValue];
9242
- var uniqueKey = _this46.getAsyncColumnUniqueKey(col.property, row2);
9321
+ var uniqueKey = _this45.getAsyncColumnUniqueKey(col.property, row2);
9243
9322
  if (splitConfig.enabled === true) {
9244
9323
  cellValues = cellValue.split(splitConfig.valueSplit || ",");
9245
9324
  cellValuesCount = cellValues.length;
@@ -9289,8 +9368,8 @@ var Methods$d = {
9289
9368
  }, this));
9290
9369
  },
9291
9370
  // Publish methods 与工具栏对接
9292
- connect: function connect(_ref173) {
9293
- var toolbar = _ref173.toolbar;
9371
+ connect: function connect(_ref174) {
9372
+ var toolbar = _ref174.toolbar;
9294
9373
  this.$toolbar = toolbar;
9295
9374
  },
9296
9375
  // 检查触发源是否属于目标节点
@@ -9316,7 +9395,7 @@ var Methods$d = {
9316
9395
  },
9317
9396
  handleDataChange: function handleDataChange() {
9318
9397
  if (Array.isArray(this.data)) {
9319
- !this._isUpdateData && this.loadTableData(this.data, true);
9398
+ !this._isUpdateData && this.loadTableData(this.data);
9320
9399
  this._isUpdateData = false;
9321
9400
  }
9322
9401
  },
@@ -9349,8 +9428,8 @@ var Methods$d = {
9349
9428
  },
9350
9429
  // 尝试恢复滚动位置,规范了最大滚动位置的取值
9351
9430
  attemptRestoreScroll: function attemptRestoreScroll(options) {
9352
- var _this47 = this;
9353
- var _ref174 = options || this, lastScrollTop = _ref174.lastScrollTop, lastScrollLeft = _ref174.lastScrollLeft;
9431
+ var _this46 = this;
9432
+ var _ref175 = options || this, lastScrollTop = _ref175.lastScrollTop, lastScrollLeft = _ref175.lastScrollLeft;
9354
9433
  var scrollXLoad = this.scrollXLoad, scrollYLoad = this.scrollYLoad, elemStore = this.elemStore;
9355
9434
  var tableBodyElem = elemStore["main-body-wrapper"];
9356
9435
  if ((lastScrollTop || lastScrollLeft) && tableBodyElem) {
@@ -9360,14 +9439,14 @@ var Methods$d = {
9360
9439
  lastScrollTop = Math.min(lastScrollTop, maxScrollTop);
9361
9440
  lastScrollLeft = Math.min(lastScrollLeft, maxScrollLeft);
9362
9441
  fastdom.mutate(function() {
9363
- _this47.restoreScollFlag = true;
9364
- _this47.scrollTo(lastScrollLeft, lastScrollTop);
9442
+ _this46.restoreScollFlag = true;
9443
+ _this46.scrollTo(lastScrollLeft, lastScrollTop);
9365
9444
  requestAnimationFrame(function() {
9366
- var _this47$$refs$tableBo;
9367
- return (_this47$$refs$tableBo = _this47.$refs.tableBody) == null ? void 0 : _this47$$refs$tableBo.resetStickyWrapperScrollPos();
9445
+ var _this46$$refs$tableBo;
9446
+ return (_this46$$refs$tableBo = _this46.$refs.tableBody) == null ? void 0 : _this46$$refs$tableBo.resetStickyWrapperScrollPos();
9368
9447
  });
9369
- scrollXLoad && _this47.triggerScrollXEvent();
9370
- scrollYLoad && _this47.triggerScrollYEvent({
9448
+ scrollXLoad && _this46.triggerScrollXEvent();
9449
+ scrollYLoad && _this46.triggerScrollYEvent({
9371
9450
  target: {
9372
9451
  scrollTop: lastScrollTop
9373
9452
  }
@@ -9427,7 +9506,7 @@ var _sfc_main$8 = defineComponent({
9427
9506
  row: Object
9428
9507
  }),
9429
9508
  render: function render8() {
9430
- var _this48 = this;
9509
+ var _this47 = this;
9431
9510
  var datas = this.datas, row2 = this.row;
9432
9511
  var primaryColumn = datas.primaryColumn, contentColumns = datas.contentColumns, genParams2 = datas.genParams, config2 = datas.config, cardView2 = datas.cardView;
9433
9512
  var _config$cardConfig = config2.cardConfig, cardConfig = _config$cardConfig === void 0 ? {} : _config$cardConfig;
@@ -9439,8 +9518,8 @@ var _sfc_main$8 = defineComponent({
9439
9518
  };
9440
9519
  var ons = function ons2() {
9441
9520
  return {
9442
- mouseenter: _this48.handleMouseenter,
9443
- mouseleave: _this48.handleMouseleave
9521
+ mouseenter: _this47.handleMouseenter,
9522
+ mouseleave: _this47.handleMouseleave
9444
9523
  };
9445
9524
  };
9446
9525
  if (!primaryColumn || !primaryColumn.renderCell) {
@@ -9600,8 +9679,8 @@ var _sfc_main$7 = defineComponent({
9600
9679
  return typeof hidden === "boolean" && hidden || typeof hidden === "function" && hidden(row2);
9601
9680
  };
9602
9681
  var handleItemClick = function handleItemClick2(name) {
9603
- var buttonConfig = visibleButtons.find(function(_ref175) {
9604
- var buttonName = _ref175.name;
9682
+ var buttonConfig = visibleButtons.find(function(_ref176) {
9683
+ var buttonName = _ref176.name;
9605
9684
  return buttonName === name;
9606
9685
  });
9607
9686
  buttonConfig.click(window.event || {}, _extends({
@@ -10340,9 +10419,9 @@ function mergeScrollDirStore(scrollDir, scrollDirStore) {
10340
10419
  });
10341
10420
  }
10342
10421
  }
10343
- function loadStatic(data6, _vm) {
10344
- if (data6 && data6.length > 0) {
10345
- _vm.loadTableData(data6, true);
10422
+ function loadStatic(data7, _vm) {
10423
+ if (data7 && data7.length > 0) {
10424
+ _vm.loadTableData(data7, true);
10346
10425
  _vm.updateStyle();
10347
10426
  }
10348
10427
  }
@@ -10768,7 +10847,8 @@ var Table = defineComponent({
10768
10847
  id: "",
10769
10848
  multi: false,
10770
10849
  options: [],
10771
- visible: false
10850
+ visible: false,
10851
+ searchValue: ""
10772
10852
  },
10773
10853
  // 所有列已禁用
10774
10854
  headerCheckDisabled: false,
@@ -10954,7 +11034,15 @@ var Table = defineComponent({
10954
11034
  this.handleSelectionHeader();
10955
11035
  },
10956
11036
  parentHeight: function parentHeight() {
10957
- this.$nextTick(this.recalculate);
11037
+ this.recalculate();
11038
+ },
11039
+ // 选项式监控在vue2可以检测到顶层数组splice项替换/$set项替换
11040
+ // array.splice(index, 1, newItem)
11041
+ // this.$set(array, index, newItem)
11042
+ data: function data5(array1, array2) {
11043
+ if (isVue2 && array1 === array2 && array1.length === array2.length) {
11044
+ this.handleDataChange();
11045
+ }
10958
11046
  }
10959
11047
  },
10960
11048
  created: function created() {
@@ -11011,13 +11099,13 @@ var Table = defineComponent({
11011
11099
  cellStatus: /* @__PURE__ */ new Map(),
11012
11100
  // 是否具有type selection列
11013
11101
  isCheckable: false
11014
- }), scrollXStore = _Object$assign.scrollXStore, scrollYStore = _Object$assign.scrollYStore, optimizeOpts = _Object$assign.optimizeOpts, data6 = _Object$assign.data;
11102
+ }), scrollXStore = _Object$assign.scrollXStore, scrollYStore = _Object$assign.scrollYStore, optimizeOpts = _Object$assign.optimizeOpts, data7 = _Object$assign.data;
11015
11103
  var scrollX = optimizeOpts.scrollX, scrollY = optimizeOpts.scrollY;
11016
11104
  verifyConfig(this);
11017
11105
  mergeScrollDirStore(scrollX, scrollXStore);
11018
11106
  mergeScrollDirStore(scrollY, scrollYStore);
11019
11107
  mergeTreeConfig(this);
11020
- loadStatic(data6, this);
11108
+ loadStatic(data7, this);
11021
11109
  bindEvent(this);
11022
11110
  this.$grid.connect({
11023
11111
  name: "table",
@@ -11042,6 +11130,8 @@ var Table = defineComponent({
11042
11130
  var bodyWrapperHeight = hooks.ref();
11043
11131
  var bodyWrapperMinHeight = hooks.ref();
11044
11132
  var bodyWrapperMaxHeight = hooks.ref();
11133
+ var containerScrollWidth = hooks.ref(0);
11134
+ var containerScrollHeight = hooks.ref(0);
11045
11135
  var bodyTableWidth = hooks.ref();
11046
11136
  var scrollLoadScrollHeight = hooks.ref();
11047
11137
  var columnStore = hooks.ref({
@@ -11092,8 +11182,8 @@ var Table = defineComponent({
11092
11182
  return extend(true, {}, GlobalConfig$1.optimization, props.optimization);
11093
11183
  });
11094
11184
  var rowHeight = hooks.computed(function() {
11095
- var _optimizeOpts$value, _GlobalConfig$1$rowHe;
11096
- return ((_optimizeOpts$value = optimizeOpts.value) == null ? void 0 : _optimizeOpts$value.scrollY.rHeight) || ((_GlobalConfig$1$rowHe = GlobalConfig$1.rowHeight[tinyTheme.value]) == null ? void 0 : _GlobalConfig$1$rowHe[vSize3.value || "default"]) || 40;
11185
+ var _optimizeOpts$value, _optimizeOpts$value$s, _GlobalConfig$1$rowHe;
11186
+ return ((_optimizeOpts$value = optimizeOpts.value) == null ? void 0 : (_optimizeOpts$value$s = _optimizeOpts$value.scrollY) == null ? void 0 : _optimizeOpts$value$s.rHeight) || ((_GlobalConfig$1$rowHe = GlobalConfig$1.rowHeight[tinyTheme.value]) == null ? void 0 : _GlobalConfig$1$rowHe[vSize3.value || "default"]) || 40;
11097
11187
  });
11098
11188
  var headerRowHeight = hooks.computed(function() {
11099
11189
  var _GlobalConfig$1$heade;
@@ -11202,6 +11292,8 @@ var Table = defineComponent({
11202
11292
  bodyWrapperHeight,
11203
11293
  bodyWrapperMinHeight,
11204
11294
  bodyWrapperMaxHeight,
11295
+ containerScrollWidth,
11296
+ containerScrollHeight,
11205
11297
  bodyTableWidth,
11206
11298
  scrollLoadScrollHeight,
11207
11299
  columnStore,
@@ -11223,7 +11315,7 @@ var Table = defineComponent({
11223
11315
  return h("div", {
11224
11316
  class: (_class4 = {
11225
11317
  "tiny-grid h-full sm:h-auto !bg-transparent sm:!bg-color-bg-1 after:border-none sm:after:border-solid": true
11226
- }, _class4["row__valid-" + validOpts2.message] = true, _class4["size__" + vSize3] = vSize3, _class4["tiny-grid-editable"] = editConfig, _class4["show__head"] = showHeader, _class4["show__foot"] = showFooter, _class4["scroll__y"] = overflowY, _class4["scroll__x"] = overflowX, _class4["all-overflow"] = showOverflow, _class4["all-head-overflow"] = showHeaderOverflow, _class4["tiny-grid-cell__highlight"] = highlightCell, _class4["tiny-grid__animat"] = optimizeOpts.animat, _class4["tiny-grid__stripe"] = !isThemeSaas3 && stripe, _class4["tiny-grid__stripe-saas"] = isThemeSaas3 && stripeSaas, _class4["tiny-grid__border"] = border || isGroup2, _class4["tiny-grid__border-saas"] = isThemeSaas3 && borderSaas, _class4["tiny-grid__group-saas"] = isThemeSaas3 && isGroup2, _class4["tiny-grid__border-vertical"] = borderVertical, _class4["tiny-grid__checked"] = mouseConfig.checked, _class4["mark-insert"] = editConfig && editConfig.markInsert, _class4["edit__no-border"] = editConfig && editConfig.showBorder === false, _class4["is__loading"] = loading, _class4["row__highlight"] = highlightHoverRow, _class4["column__highlight"] = highlightHoverColumn, _class4["is__row-span"] = rowSpan && rowSpan.length > 0 || typeof spanMethod === "function", _class4["row__drop-handle--index"] = dropConfig.rowHandle === "index", _class4["fixed__sticky"] = horizonScroll.fixed, _class4["tiny-grid-fixed__left"] = !horizonScroll.isLeft, _class4["tiny-grid-fixed__right"] = !horizonScroll.isRight, _class4)
11318
+ }, _class4["row__valid-" + validOpts2.message] = true, _class4["size__" + vSize3] = vSize3, _class4["tiny-grid-editable"] = editConfig, _class4["show__head"] = showHeader, _class4["show__foot"] = showFooter, _class4["scroll__y"] = overflowY, _class4["scroll__x"] = overflowX, _class4["all-overflow"] = showOverflow, _class4["all-head-overflow"] = showHeaderOverflow, _class4["tiny-grid-cell__highlight"] = highlightCell, _class4["tiny-grid__animat"] = optimizeOpts.animat, _class4["tiny-grid__stripe"] = !isThemeSaas3 && stripe, _class4["tiny-grid__stripe-saas"] = isThemeSaas3 && stripeSaas, _class4["tiny-grid__border"] = border || isGroup2, _class4["tiny-grid__border-saas"] = isThemeSaas3 && borderSaas, _class4["tiny-grid__group-saas"] = isThemeSaas3 && isGroup2, _class4["tiny-grid__border-vertical"] = borderVertical, _class4["tiny-grid__checked"] = mouseConfig.checked, _class4["tiny-grid__hover-align"] = mouseConfig.hover, _class4["mark-insert"] = editConfig && editConfig.markInsert, _class4["edit__no-border"] = editConfig && editConfig.showBorder === false, _class4["is__loading"] = loading, _class4["row__highlight"] = highlightHoverRow, _class4["column__highlight"] = highlightHoverColumn, _class4["is__row-span"] = rowSpan && rowSpan.length > 0 || typeof spanMethod === "function", _class4["row__drop-handle--index"] = dropConfig.rowHandle === "index", _class4["fixed__sticky"] = horizonScroll.fixed, _class4["tiny-grid-fixed__left"] = !horizonScroll.isLeft, _class4["tiny-grid-fixed__right"] = !horizonScroll.isRight, _class4)
11227
11319
  }, [
11228
11320
  // 隐藏列
11229
11321
  h("div", {
@@ -11251,9 +11343,10 @@ var Table = defineComponent({
11251
11343
  key: "tinyGridResizeBar"
11252
11344
  }) : null,
11253
11345
  // 加载中
11254
- h(loadingComponent || Loading, {
11346
+ h(Loading, {
11255
11347
  props: {
11256
- visible: loading
11348
+ visible: loading,
11349
+ loadingComponent
11257
11350
  },
11258
11351
  class: this.viewCls("gridLoading")
11259
11352
  }),
@@ -11453,8 +11546,8 @@ var Column = defineComponent({
11453
11546
  default: null
11454
11547
  }
11455
11548
  },
11456
- setup: function setup7(props, _ref176) {
11457
- var slots = _ref176.slots;
11549
+ setup: function setup7(props, _ref177) {
11550
+ var slots = _ref177.slots;
11458
11551
  var reactive = hooks.reactive, inject = hooks.inject, getCurrentInstance = hooks.getCurrentInstance, onUpdated = hooks.onUpdated, watch = hooks.watch, nextTick = hooks.nextTick;
11459
11552
  var currentInstance = getCurrentInstance();
11460
11553
  var instance = currentInstance.proxy;
@@ -11508,7 +11601,7 @@ var Column = defineComponent({
11508
11601
  warn("ui.grid.error.chainCallError");
11509
11602
  }
11510
11603
  var hasSubColumn = findTree(slotVnode, function(node) {
11511
- var _ref177 = node || {}, componentOptions = _ref177.componentOptions, type = _ref177.type;
11604
+ var _ref178 = node || {}, componentOptions = _ref178.componentOptions, type = _ref178.type;
11512
11605
  var componentName = type && type.name || componentOptions && componentOptions.Ctor.extendOptions.name;
11513
11606
  return $table.isValidCustomColumn(componentName);
11514
11607
  }, null, null);
@@ -11588,7 +11681,7 @@ var Grid = defineComponent({
11588
11681
  isMultipleHistory: Boolean,
11589
11682
  selectToolbar: [Boolean, Object]
11590
11683
  }),
11591
- data: function data5() {
11684
+ data: function data6() {
11592
11685
  return {
11593
11686
  emitter: emitter(),
11594
11687
  fetchOption: null,
@@ -11627,10 +11720,10 @@ var Grid = defineComponent({
11627
11720
  return this.proxyOpts.message !== false;
11628
11721
  },
11629
11722
  tableProps: function tableProps() {
11630
- var _this49 = this;
11723
+ var _this48 = this;
11631
11724
  var rest = {};
11632
11725
  propKeys.forEach(function(key) {
11633
- return rest[key] = _this49[key];
11726
+ return rest[key] = _this48[key];
11634
11727
  });
11635
11728
  return rest;
11636
11729
  },
@@ -11683,10 +11776,10 @@ var Grid = defineComponent({
11683
11776
  this.toolbar && this.$refs.toolbar && this.$refs.toolbar.loadStorage();
11684
11777
  },
11685
11778
  viewType: function viewType(value) {
11686
- var _this50 = this;
11779
+ var _this49 = this;
11687
11780
  if (value === V_MF) {
11688
11781
  this.$nextTick(function() {
11689
- return _this50.recalculate();
11782
+ return _this49.recalculate();
11690
11783
  });
11691
11784
  }
11692
11785
  }
@@ -11756,8 +11849,8 @@ var Grid = defineComponent({
11756
11849
  var tinyTheme = hooks.ref(resolveTheme(props, context));
11757
11850
  var tinyMode = hooks.ref(resolveMode(props, context));
11758
11851
  var breakpoint = useBreakpoint();
11759
- var renderless = function renderless2(props2, hooks2, _ref178) {
11760
- var _ref178$designConfig = _ref178.designConfig, designConfig = _ref178$designConfig === void 0 ? null : _ref178$designConfig;
11852
+ var renderless = function renderless2(props2, hooks2, _ref179) {
11853
+ var _ref179$designConfig = _ref179.designConfig, designConfig = _ref179$designConfig === void 0 ? null : _ref179$designConfig;
11761
11854
  return {
11762
11855
  tableListeners,
11763
11856
  designConfig,
@@ -11781,7 +11874,7 @@ var Grid = defineComponent({
11781
11874
  });
11782
11875
  },
11783
11876
  render: function render16() {
11784
- var _this51 = this;
11877
+ var _this50 = this;
11785
11878
  var fetchOption = this.fetchOption, listeners = this.listeners, loading = this.loading, optimizOpt2 = this.optimizOpt, editConfigOpt2 = this.editConfigOpt, tooltipOpt2 = this.tooltipOpt, pager = this.pager, pagerConfig = this.pagerConfig, remoteFilter = this.remoteFilter, remoteSort = this.remoteSort, selectToolbar = this.selectToolbar;
11786
11879
  var seqIndex2 = this.seqIndex, $slots = this.slots, tableCustoms2 = this.tableCustoms, tableData = this.tableData, tableListeners = this.tableListeners, tableLoading = this.tableLoading, tableProps2 = this.tableProps, toolbar = this.toolbar, vSize3 = this.vSize, designConfig = this.designConfig, viewType2 = this.viewType;
11787
11880
  var columnAnchor = this.columnAnchor, columnAnchorParams = this.columnAnchorParams, fullScreenClass = this.fullScreenClass;
@@ -11810,13 +11903,13 @@ var Grid = defineComponent({
11810
11903
  }
11811
11904
  toolbar && !(toolbar.setting && toolbar.setting.storage) && (props.customs = tableCustoms2);
11812
11905
  toolbar && (tableOns["update:customs"] = function(value) {
11813
- return _this51.tableCustoms = value;
11906
+ return _this50.tableCustoms = value;
11814
11907
  });
11815
11908
  tableOns["column-init-ready"] = this.handleColumnInitReady;
11816
11909
  var renderedToolbar = function renderedToolbar2() {
11817
- return _this51.getRenderedToolbar({
11910
+ return _this50.getRenderedToolbar({
11818
11911
  $slots,
11819
- _vm: _this51,
11912
+ _vm: _this50,
11820
11913
  loading,
11821
11914
  tableLoading,
11822
11915
  toolbar
@@ -11845,12 +11938,12 @@ var Grid = defineComponent({
11845
11938
  methods: {
11846
11939
  // 配置高度减去(表格锚点+工具栏+分页)计算得出表格高度
11847
11940
  updateParentHeight: function updateParentHeight2() {
11848
- var _this52 = this;
11941
+ var _this51 = this;
11849
11942
  if (!this.tasks.updateParentHeight) {
11850
11943
  this.tasks.updateParentHeight = debounce(10, function() {
11851
- var $el = _this52.$el, $refs = _this52.$refs;
11944
+ var $el = _this51.$el, $refs = _this51.$refs;
11852
11945
  var tinyTable = $refs.tinyTable, tinyGridColumnAnchor = $refs.tinyGridColumnAnchor;
11853
- var toolbarVm = _this52.getVm("toolbar");
11946
+ var toolbarVm = _this51.getVm("toolbar");
11854
11947
  if (tinyTable) {
11855
11948
  var columnAnchorHeight = 0;
11856
11949
  if (tinyGridColumnAnchor) {
@@ -11864,8 +11957,8 @@ var Grid = defineComponent({
11864
11957
  this.tasks.updateParentHeight();
11865
11958
  },
11866
11959
  // 向缓存添加实例
11867
- connect: function connect2(_ref179) {
11868
- var name = _ref179.name, vm = _ref179.vm;
11960
+ connect: function connect2(_ref180) {
11961
+ var name = _ref180.name, vm = _ref180.vm;
11869
11962
  if (name && typeof name === "string" && vm) {
11870
11963
  this.vmStore[name] = vm;
11871
11964
  }
@@ -11937,8 +12030,8 @@ var Grid = defineComponent({
11937
12030
  Grid.install = function(Vue) {
11938
12031
  Vue.component(Grid.name, Grid);
11939
12032
  };
11940
- function operArrs(_ref180) {
11941
- var _vm = _ref180._vm, editStore = _ref180.editStore, newRecords = _ref180.newRecords, newRecordsCopy = _ref180.newRecordsCopy, nowData = _ref180.nowData, row2 = _ref180.row, tableFullData = _ref180.tableFullData, tableSourceData = _ref180.tableSourceData;
12033
+ function operArrs(_ref181) {
12034
+ var _vm = _ref181._vm, editStore = _ref181.editStore, newRecords = _ref181.newRecords, newRecordsCopy = _ref181.newRecordsCopy, nowData = _ref181.nowData, row2 = _ref181.row, tableFullData = _ref181.tableFullData, tableSourceData = _ref181.tableSourceData;
11942
12035
  if (row2 === -1) {
11943
12036
  Array.prototype.push.apply(nowData, newRecords);
11944
12037
  Array.prototype.push.apply(tableFullData, newRecords);
@@ -11963,38 +12056,38 @@ function operArrs(_ref180) {
11963
12056
  Array.prototype.push.apply(_vm.temporaryRows, newRecordsCopy);
11964
12057
  }
11965
12058
  var _setActiveCell = function _setActiveCell2(row2, field) {
11966
- var _this53 = this;
12059
+ var _this52 = this;
11967
12060
  var next1 = function next12() {
11968
12061
  if (!row2 || !field) {
11969
- return _this53.$nextTick();
12062
+ return _this52.$nextTick();
11970
12063
  }
11971
- var column = find$1(_this53.visibleColumn, function(column2) {
12064
+ var column = find$1(_this52.visibleColumn, function(column2) {
11972
12065
  return column2.property === field;
11973
12066
  });
11974
12067
  if (!column || !column.editor) {
11975
- return _this53.$nextTick();
12068
+ return _this52.$nextTick();
11976
12069
  }
11977
12070
  var next2 = function next22(cell) {
11978
12071
  if (!cell) {
11979
12072
  return;
11980
12073
  }
11981
- var rowIndex = _this53.getRowIndex(row2);
11982
- var columnIndex = _this53.getColumnIndex(column);
11983
- _this53.handleActived({
12074
+ var rowIndex = _this52.getRowIndex(row2);
12075
+ var columnIndex = _this52.getColumnIndex(column);
12076
+ _this52.handleActived({
11984
12077
  row: row2,
11985
12078
  rowIndex,
11986
12079
  column,
11987
12080
  columnIndex,
11988
12081
  cell,
11989
- $table: _this53
12082
+ $table: _this52
11990
12083
  });
11991
- _this53.lastCallTime = Date.now();
12084
+ _this52.lastCallTime = Date.now();
11992
12085
  };
11993
- getCell(_this53, {
12086
+ getCell(_this52, {
11994
12087
  row: row2,
11995
12088
  column
11996
12089
  }).then(next2);
11997
- return _this53.$nextTick();
12090
+ return _this52.$nextTick();
11998
12091
  };
11999
12092
  return this.scrollToRow(row2, true).then(next1);
12000
12093
  };
@@ -12004,7 +12097,7 @@ var Methods$c = {
12004
12097
  },
12005
12098
  // 根据位置从指定行添加数据
12006
12099
  _insertAt: function _insertAt(records, row2) {
12007
- var _this54 = this;
12100
+ var _this53 = this;
12008
12101
  var afterFullData = this.afterFullData, editStore = this.editStore, isAsyncColumn = this.isAsyncColumn, scrollYLoad = this.scrollYLoad, tableFullData = this.tableFullData, _this$tableSourceData = this.tableSourceData, tableSourceData = _this$tableSourceData === void 0 ? [] : _this$tableSourceData, treeConfig = this.treeConfig;
12009
12102
  if (treeConfig) {
12010
12103
  throw new Error(error("ui.grid.error.treeInsert"));
@@ -12022,7 +12115,7 @@ var Methods$c = {
12022
12115
  }
12023
12116
  var nowData = afterFullData;
12024
12117
  var newRecords = records.map(function(record) {
12025
- return hooks.reactive(_this54.defineField(_extends({}, record)));
12118
+ return hooks.reactive(_this53.defineField(_extends({}, record)));
12026
12119
  });
12027
12120
  var newRecordsCopy = clone(newRecords, true);
12028
12121
  operArrs({
@@ -12047,7 +12140,7 @@ var Methods$c = {
12047
12140
  rows: newRecords
12048
12141
  };
12049
12142
  return this.$nextTick().then(function() {
12050
- _this54.recalculate();
12143
+ _this53.recalculate();
12051
12144
  return res;
12052
12145
  });
12053
12146
  },
@@ -12057,7 +12150,7 @@ var Methods$c = {
12057
12150
  * 如果传 rows 则删除多行
12058
12151
  */
12059
12152
  _remove: function _remove(rows) {
12060
- var _this55 = this;
12153
+ var _this54 = this;
12061
12154
  var afterFullData = this.afterFullData, scrollYLoad = this.scrollYLoad, _this$selectConfig3 = this.selectConfig, selectConfig = _this$selectConfig3 === void 0 ? {} : _this$selectConfig3;
12062
12155
  var selection = this.selection, tableFullData = this.tableFullData, treeConfig = this.treeConfig, _this$tableSourceData2 = this.tableSourceData, tableSourceData = _this$tableSourceData2 === void 0 ? [] : _this$tableSourceData2;
12063
12156
  var _this$editStore = this.editStore, insertList = _this$editStore.insertList, removeList = _this$editStore.removeList;
@@ -12101,9 +12194,9 @@ var Methods$c = {
12101
12194
  }
12102
12195
  remove(tableSourceData, function(row3) {
12103
12196
  return find$1(insertList, function(r) {
12104
- return getRowid(_this55, r) === getRowid(_this55, row3);
12197
+ return getRowid(_this54, r) === getRowid(_this54, row3);
12105
12198
  }) && find$1(rows, function(r) {
12106
- return getRowid(_this55, r) === getRowid(_this55, row3);
12199
+ return getRowid(_this54, r) === getRowid(_this54, row3);
12107
12200
  });
12108
12201
  });
12109
12202
  remove(insertList, function(row3) {
@@ -12121,7 +12214,7 @@ var Methods$c = {
12121
12214
  rows: rest
12122
12215
  };
12123
12216
  return this.$nextTick().then(function() {
12124
- _this55.recalculate();
12217
+ _this54.recalculate();
12125
12218
  return res;
12126
12219
  });
12127
12220
  },
@@ -12129,10 +12222,10 @@ var Methods$c = {
12129
12222
  * 删除选中数据
12130
12223
  */
12131
12224
  _removeSelecteds: function _removeSelecteds() {
12132
- var _this56 = this;
12225
+ var _this55 = this;
12133
12226
  var selectRecords = this.getSelectRecords(true);
12134
12227
  var callback = function callback2(params) {
12135
- _this56.clearSelection();
12228
+ _this55.clearSelection();
12136
12229
  return params;
12137
12230
  };
12138
12231
  return this.remove(selectRecords).then(callback);
@@ -12200,10 +12293,10 @@ var Methods$c = {
12200
12293
  * 只精准匹配row的更改。如果是树表格,子节点更改状态不会影响父节点的更新状态
12201
12294
  */
12202
12295
  _getUpdateRecords: function _getUpdateRecords() {
12203
- var _this57 = this;
12296
+ var _this56 = this;
12204
12297
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
12205
12298
  var handler6 = function handler7(row2) {
12206
- return !_this57.isTemporaryRow(row2) && _this57.hasRowChange(row2);
12299
+ return !_this56.isTemporaryRow(row2) && _this56.hasRowChange(row2);
12207
12300
  };
12208
12301
  var updateRecords = treeConfig ? filterTree(tableFullData, handler6, treeConfig) : tableFullData.filter(handler6);
12209
12302
  return updateRecords;
@@ -12212,13 +12305,13 @@ var Methods$c = {
12212
12305
  * 处理激活编辑
12213
12306
  */
12214
12307
  handleActived: function handleActived(params, event) {
12215
- var _this58 = this;
12308
+ var _this57 = this;
12216
12309
  return _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
12217
12310
  var editConfig, editStore, tableColumn2, cell, column, row2, editor, actived, isActiveCell, type, canActive, args;
12218
12311
  return _regenerator().w(function(_context) {
12219
12312
  while (1) switch (_context.n) {
12220
12313
  case 0:
12221
- editConfig = _this58.editConfig, editStore = _this58.editStore, tableColumn2 = _this58.tableColumn;
12314
+ editConfig = _this57.editConfig, editStore = _this57.editStore, tableColumn2 = _this57.tableColumn;
12222
12315
  cell = params.cell, column = params.column, row2 = params.row;
12223
12316
  editor = column.editor;
12224
12317
  actived = editStore.actived;
@@ -12241,7 +12334,7 @@ var Methods$c = {
12241
12334
  case 1:
12242
12335
  canActive = _context.v;
12243
12336
  args = {
12244
- _vm: _this58,
12337
+ _vm: _this57,
12245
12338
  actived,
12246
12339
  canActive,
12247
12340
  cell,
@@ -12257,14 +12350,14 @@ var Methods$c = {
12257
12350
  });
12258
12351
  type = handleActivedDoActive(args);
12259
12352
  handleActivedClearActive({
12260
- _vm: _this58,
12353
+ _vm: _this57,
12261
12354
  canActive,
12262
12355
  event
12263
12356
  });
12264
- emitEvent(_this58, type, [params, event]);
12357
+ emitEvent(_this57, type, [params, event]);
12265
12358
  case 2:
12266
12359
  handleActivedTryActive({
12267
- _vm: _this58,
12360
+ _vm: _this57,
12268
12361
  actived,
12269
12362
  cell,
12270
12363
  column,
@@ -12274,7 +12367,7 @@ var Methods$c = {
12274
12367
  params,
12275
12368
  row: row2
12276
12369
  });
12277
- return _context.a(2, _this58.$nextTick());
12370
+ return _context.a(2, _this57.$nextTick());
12278
12371
  }
12279
12372
  }, _callee);
12280
12373
  }))();
@@ -12305,14 +12398,14 @@ var Methods$c = {
12305
12398
  * 清除已激活的编辑
12306
12399
  */
12307
12400
  _clearActived: function _clearActived(event) {
12308
- var _this59 = this;
12401
+ var _this58 = this;
12309
12402
  var _this$editConfig2 = this.editConfig, editConfig = _this$editConfig2 === void 0 ? {} : _this$editConfig2, editStore = this.editStore, tableColumn2 = this.tableColumn;
12310
12403
  var actived = editStore.actived;
12311
12404
  var args = actived.args, column = actived.column, row2 = actived.row;
12312
12405
  var isActived = row2 || column;
12313
12406
  if (isActived && editConfig.mode === "row") {
12314
12407
  tableColumn2.forEach(function(column22) {
12315
- return _this59._setColumnModel(row2, column22);
12408
+ return _this58._setColumnModel(row2, column22);
12316
12409
  });
12317
12410
  }
12318
12411
  if (isActived && editConfig.mode !== "row") {
@@ -12323,7 +12416,7 @@ var Methods$c = {
12323
12416
  this.updateRowStatus(actived.row);
12324
12417
  this.updateFooter();
12325
12418
  var row22 = args.row, column2 = args.column;
12326
- var _ref181 = column2 || {}, editor = _ref181.editor;
12419
+ var _ref182 = column2 || {}, editor = _ref182.editor;
12327
12420
  if ((editor == null ? void 0 : editor.component) === "input" && (editor == null ? void 0 : (_editor$attrs = editor.attrs) == null ? void 0 : _editor$attrs.type) === "number") {
12328
12421
  row22[column2.property] = +row22[column2.property];
12329
12422
  }
@@ -12392,7 +12485,7 @@ var Methods$c = {
12392
12485
  * 只对trigger为dblclick有效,选中单元格
12393
12486
  */
12394
12487
  _setSelectCell: function _setSelectCell(row2, field) {
12395
- var _this60 = this;
12488
+ var _this59 = this;
12396
12489
  var editConfig = this.editConfig, tableData = this.tableData, visibleColumn = this.visibleColumn;
12397
12490
  if (!row2 || !field || editConfig.trigger === "manual") {
12398
12491
  return this.$nextTick();
@@ -12413,7 +12506,7 @@ var Methods$c = {
12413
12506
  columnIndex,
12414
12507
  cell
12415
12508
  };
12416
- _this60.handleSelected(params, {});
12509
+ _this59.handleSelected(params, {});
12417
12510
  };
12418
12511
  getCell(this, {
12419
12512
  row: row2,
@@ -12441,37 +12534,37 @@ var Methods$c = {
12441
12534
  * 处理选中源
12442
12535
  */
12443
12536
  handleSelected: function handleSelected(params, event, noDebounce) {
12444
- var _this61 = this;
12537
+ var _this60 = this;
12445
12538
  var editConfig = this.editConfig, editStore = this.editStore, elemStore = this.elemStore, _this$mouseConfig3 = this.mouseConfig, mouseConfig = _this$mouseConfig3 === void 0 ? {} : _this$mouseConfig3;
12446
12539
  var actived = editStore.actived, selected = editStore.selected;
12447
- var _ref182 = params || {}, cell = _ref182.cell, column = _ref182.column, row2 = _ref182.row;
12540
+ var _ref183 = params || {}, cell = _ref183.cell, column = _ref183.column, row2 = _ref183.row;
12448
12541
  var selectMethod = function selectMethod2() {
12449
12542
  var _cell$parentNode;
12450
12543
  if (selected.row === row2 && selected.column === column || actived.row === row2 && (editConfig.mode !== "cell" || actived.column === column)) {
12451
- return _this61.$nextTick();
12544
+ return _this60.$nextTick();
12452
12545
  }
12453
- if (_this61.keyboardConfig || _this61.mouseConfig) {
12454
- _this61.clearChecked(event);
12455
- _this61.clearIndexChecked();
12456
- _this61.clearHeaderChecked();
12457
- _this61.clearSelected(event);
12546
+ if (_this60.keyboardConfig || _this60.mouseConfig) {
12547
+ _this60.clearChecked(event);
12548
+ _this60.clearIndexChecked();
12549
+ _this60.clearHeaderChecked();
12550
+ _this60.clearSelected(event);
12458
12551
  }
12459
- _this61.clearActived(event);
12552
+ _this60.clearActived(event);
12460
12553
  selected.args = params;
12461
12554
  selected.row = row2;
12462
12555
  selected.column = column;
12463
- _this61.updateSelectedCls();
12556
+ _this60.updateSelectedCls();
12464
12557
  if (!mouseConfig.checked) {
12465
- return _this61.$nextTick();
12558
+ return _this60.$nextTick();
12466
12559
  }
12467
12560
  var headerElem = elemStore["main-body-headerList"];
12468
- _this61.handleChecked([[cell]]);
12561
+ _this60.handleChecked([[cell]]);
12469
12562
  if (!headerElem) {
12470
- return _this61.$nextTick();
12563
+ return _this60.$nextTick();
12471
12564
  }
12472
- _this61.handleHeaderChecked([[headerElem == null ? void 0 : headerElem.querySelector("." + (column == null ? void 0 : column.id))]]);
12473
- _this61.handleIndexChecked([[cell == null ? void 0 : (_cell$parentNode = cell.parentNode) == null ? void 0 : _cell$parentNode.querySelector(".col__index")]]);
12474
- return _this61.$nextTick();
12565
+ _this60.handleHeaderChecked([[headerElem == null ? void 0 : headerElem.querySelector("." + (column == null ? void 0 : column.id))]]);
12566
+ _this60.handleIndexChecked([[cell == null ? void 0 : (_cell$parentNode = cell.parentNode) == null ? void 0 : _cell$parentNode.querySelector(".col__index")]]);
12567
+ return _this60.$nextTick();
12475
12568
  };
12476
12569
  selectMethod = noDebounce ? selectMethod : debounce(20, selectMethod);
12477
12570
  return selectMethod();
@@ -12625,7 +12718,7 @@ function handleCellMousedownEvent(args1) {
12625
12718
  var $el = args1.$el, _vm = args1._vm, bodyList = args1.bodyList, cell = args1.cell, cellFirstElementChild = args1.cellFirstElementChild;
12626
12719
  var cellLastElementChild = args1.cellLastElementChild, headStart = args1.headStart, headerList = args1.headerList, isIndex = args1.isIndex, startCellNode = args1.startCellNode;
12627
12720
  var _vm$mouseConfig2 = _vm.mouseConfig, mouseConfig = _vm$mouseConfig2 === void 0 ? {} : _vm$mouseConfig2;
12628
- var _ref183 = mouseConfig || {}, _ref183$updateInterva = _ref183.updateInterval, updateInterval = _ref183$updateInterva === void 0 ? 10 : _ref183$updateInterva;
12721
+ var _ref184 = mouseConfig || {}, _ref184$updateInterva = _ref184.updateInterval, updateInterval = _ref184$updateInterva === void 0 ? 10 : _ref184$updateInterva;
12629
12722
  var oldMousemove = document.onmousemove;
12630
12723
  var oldMouseup = document.onmouseup;
12631
12724
  var updateEvent = function updateEvent2(event) {
@@ -12664,8 +12757,8 @@ function onCellMousedownSelectEditable(args) {
12664
12757
  _vm.handleSelected(params, event);
12665
12758
  }
12666
12759
  }
12667
- function onCellMousedownSelect(_ref184) {
12668
- var _vm = _ref184._vm, editConfig = _ref184.editConfig, event = _ref184.event, mouseConfig = _ref184.mouseConfig, params = _ref184.params;
12760
+ function onCellMousedownSelect(_ref185) {
12761
+ var _vm = _ref185._vm, editConfig = _ref185.editConfig, event = _ref185.event, mouseConfig = _ref185.mouseConfig, params = _ref185.params;
12669
12762
  if (!editConfig && mouseConfig.selected) {
12670
12763
  _vm.handleSelected(params, event);
12671
12764
  }
@@ -12684,8 +12777,8 @@ function onCellMousedownIndexColumn(args) {
12684
12777
  _vm.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(cell)));
12685
12778
  }
12686
12779
  }
12687
- function onCellMousedownNotIndexColumn(_ref185) {
12688
- var _vm = _ref185._vm, cell = _ref185.cell, column = _ref185.column, event = _ref185.event, headerList = _ref185.headerList, isIndex = _ref185.isIndex, params = _ref185.params;
12780
+ function onCellMousedownNotIndexColumn(_ref186) {
12781
+ var _vm = _ref186._vm, cell = _ref186.cell, column = _ref186.column, event = _ref186.event, headerList = _ref186.headerList, isIndex = _ref186.isIndex, params = _ref186.params;
12689
12782
  if (!isIndex) {
12690
12783
  var firstCell = cell.parentNode.firstElementChild;
12691
12784
  _vm.handleSelected(params, event);
@@ -12693,8 +12786,8 @@ function onCellMousedownNotIndexColumn(_ref185) {
12693
12786
  _vm.handleIndexChecked([[firstCell]]);
12694
12787
  }
12695
12788
  }
12696
- function handleHeaderCellMousedownEvent(_ref186) {
12697
- var $el = _ref186.$el, _vm = _ref186._vm, bodyList = _ref186.bodyList, cell = _ref186.cell, headerList = _ref186.headerList, startCell = _ref186.startCell;
12789
+ function handleHeaderCellMousedownEvent(_ref187) {
12790
+ var $el = _ref187.$el, _vm = _ref187._vm, bodyList = _ref187.bodyList, cell = _ref187.cell, headerList = _ref187.headerList, startCell = _ref187.startCell;
12698
12791
  var oldMousemove = document.onmousemove;
12699
12792
  var oldMouseup = document.onmouseup;
12700
12793
  var updateEvent = function updateEvent2(event) {
@@ -12727,8 +12820,8 @@ var removeCellClass = function removeCellClass2(bodyRef, clazz) {
12727
12820
  return removeClass(elem, clazz);
12728
12821
  });
12729
12822
  };
12730
- var getCellIndex = function getCellIndex2(_ref187) {
12731
- var cell = _ref187.cell, bodyList = _ref187.bodyList;
12823
+ var getCellIndex = function getCellIndex2(_ref188) {
12824
+ var cell = _ref188.cell, bodyList = _ref188.bodyList;
12732
12825
  var trElem = cell.parentNode;
12733
12826
  var cIndex = arrayIndexOf(trElem.children, cell);
12734
12827
  var rIndex = arrayIndexOf(bodyList, trElem);
@@ -12737,8 +12830,8 @@ var getCellIndex = function getCellIndex2(_ref187) {
12737
12830
  cIndex
12738
12831
  };
12739
12832
  };
12740
- var getModify = function getModify2(_ref188) {
12741
- var offsetTop = _ref188.offsetTop, offsetLeft = _ref188.offsetLeft, cWidth = _ref188.cWidth, cHeight = _ref188.cHeight;
12833
+ var getModify = function getModify2(_ref189) {
12834
+ var offsetTop = _ref189.offsetTop, offsetLeft = _ref189.offsetLeft, cWidth = _ref189.cWidth, cHeight = _ref189.cHeight;
12742
12835
  var modifyDomStyle = function modifyDomStyle2(dom, styleOptions) {
12743
12836
  return dom && Object.assign(dom.style, styleOptions);
12744
12837
  };
@@ -12765,8 +12858,8 @@ var getModify = function getModify2(_ref188) {
12765
12858
  });
12766
12859
  };
12767
12860
  };
12768
- var writeClipboardText = function writeClipboardText2(_ref189) {
12769
- var $table = _ref189.$table, columns2 = _ref189.columns, rows = _ref189.rows, rowNodes = _ref189.rowNodes;
12861
+ var writeClipboardText = function writeClipboardText2(_ref190) {
12862
+ var $table = _ref190.$table, columns2 = _ref190.columns, rows = _ref190.rows, rowNodes = _ref190.rowNodes;
12770
12863
  var _$table$keyboardConfi = $table.keyboardConfig, keyboardConfig = _$table$keyboardConfi === void 0 ? {} : _$table$keyboardConfi;
12771
12864
  var _keyboardConfig$clipb = keyboardConfig.clipboard, clipboard = _keyboardConfig$clipb === void 0 ? {} : _keyboardConfig$clipb;
12772
12865
  var writeMethod = clipboard.writeMethod, _clipboard$cellSplit = clipboard.cellSplit, cellSplit = _clipboard$cellSplit === void 0 ? "," : _clipboard$cellSplit, _clipboard$rowSplit = clipboard.rowSplit, rowSplit = _clipboard$rowSplit === void 0 ? ";" : _clipboard$rowSplit;
@@ -12813,7 +12906,7 @@ var Methods$b = {
12813
12906
  var params = _extends({}, args);
12814
12907
  var columnIndex = visibleColumn.indexOf(params.column);
12815
12908
  var rowIndex = tableData.indexOf(params.row);
12816
- var _ref190 = {}, targetColumn = _ref190.targetColumn, targetColumnIndex = _ref190.targetColumnIndex, targetRow = _ref190.targetRow, targetRowIndex = _ref190.targetRowIndex;
12909
+ var _ref191 = {}, targetColumn = _ref191.targetColumn, targetColumnIndex = _ref191.targetColumnIndex, targetRow = _ref191.targetRow, targetRowIndex = _ref191.targetRowIndex;
12817
12910
  event.preventDefault();
12818
12911
  var checkColumn = function checkColumn2(column) {
12819
12912
  return !hasIndexColumn2(column) && (edit ? column.editor : true);
@@ -12876,7 +12969,7 @@ var Methods$b = {
12876
12969
  },
12877
12970
  // 当前行方向键移动处理
12878
12971
  moveCurrentRow: function moveCurrentRow(isUpArrow, isDwArrow, event) {
12879
- var _this62 = this;
12972
+ var _this61 = this;
12880
12973
  var afterFullData = this.afterFullData, currentRow = this.currentRow, treeConfig = this.treeConfig;
12881
12974
  var targetRow;
12882
12975
  event.preventDefault();
@@ -12899,17 +12992,17 @@ var Methods$b = {
12899
12992
  }
12900
12993
  if (targetRow) {
12901
12994
  this.scrollToRow(targetRow).then(function() {
12902
- return _this62.triggerCurrentRowEvent(event, {
12903
- $table: _this62,
12995
+ return _this61.triggerCurrentRowEvent(event, {
12996
+ $table: _this61,
12904
12997
  row: targetRow
12905
12998
  });
12906
12999
  });
12907
13000
  }
12908
13001
  },
12909
13002
  // 可编辑方向键移动处理
12910
- moveSelected: function moveSelected(_ref191) {
12911
- var _this63 = this;
12912
- var args = _ref191.args, isLeftArrow = _ref191.isLeftArrow, isUpArrow = _ref191.isUpArrow, isRightArrow = _ref191.isRightArrow, isDownArrow = _ref191.isDownArrow, event = _ref191.event;
13003
+ moveSelected: function moveSelected(_ref192) {
13004
+ var _this62 = this;
13005
+ var args = _ref192.args, isLeftArrow = _ref192.isLeftArrow, isUpArrow = _ref192.isUpArrow, isRightArrow = _ref192.isRightArrow, isDownArrow = _ref192.isDownArrow, event = _ref192.event;
12913
13006
  var hasIndexColumn2 = this.hasIndexColumn, visibleColumn = this.tableColumn, tableData = this.tableFullData;
12914
13007
  var params = _extends({}, args);
12915
13008
  var column = params.column;
@@ -12938,8 +13031,8 @@ var Methods$b = {
12938
13031
  }
12939
13032
  getCell(this, params).then(function(resCell) {
12940
13033
  params.cell = resCell;
12941
- _this63.handleSelected(params, event, true);
12942
- _this63.scrollToRow(params.row, params.column, false, {
13034
+ _this62.handleSelected(params, event, true);
13035
+ _this62.scrollToRow(params.row, params.column, false, {
12943
13036
  isLeftArrow,
12944
13037
  isRightArrow,
12945
13038
  from: column
@@ -12948,7 +13041,7 @@ var Methods$b = {
12948
13041
  },
12949
13042
  // 表头按下事件
12950
13043
  triggerHeaderCellMousedownEvent: function triggerHeaderCellMousedownEvent(event, params) {
12951
- var _this64 = this;
13044
+ var _this63 = this;
12952
13045
  var $el = this.$el, elemStore = this.elemStore, _this$mouseConfig4 = this.mouseConfig, mouseConfig = _this$mouseConfig4 === void 0 ? {} : _this$mouseConfig4, tableData = this.tableData;
12953
13046
  var headerList = elemStore["main-body-headerList"].children;
12954
13047
  var bodyList = elemStore["main-body-list"].children;
@@ -12992,10 +13085,10 @@ var Methods$b = {
12992
13085
  params.row = tableData[0];
12993
13086
  getCell(this, params).then(function(cellRes) {
12994
13087
  params.cell = cellRes;
12995
- _this64.handleSelected(params, event);
13088
+ _this63.handleSelected(params, event);
12996
13089
  var rowNodes = getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTr.querySelector(".col__index")));
12997
- _this64.handleIndexChecked(rowNodes);
12998
- _this64.handleChecked(getRowNodes(bodyList, getCellNodeIndex(startCell), getCellNodeIndex(lastCell)));
13090
+ _this63.handleIndexChecked(rowNodes);
13091
+ _this63.handleChecked(getRowNodes(bodyList, getCellNodeIndex(startCell), getCellNodeIndex(lastCell)));
12999
13092
  });
13000
13093
  this.closeMenu();
13001
13094
  },
@@ -13129,9 +13222,9 @@ var Methods$b = {
13129
13222
  return this.$nextTick();
13130
13223
  },
13131
13224
  _getMouseCheckeds: function _getMouseCheckeds() {
13132
- var _this65 = this;
13225
+ var _this64 = this;
13133
13226
  var _this$editStore$check = this.editStore.checked.rowNodes, rowNodes = _this$editStore$check === void 0 ? [] : _this$editStore$check;
13134
- var _ref192 = {}, _ref192$rows = _ref192.rows, rows = _ref192$rows === void 0 ? [] : _ref192$rows, _ref192$columns = _ref192.columns, columns2 = _ref192$columns === void 0 ? [] : _ref192$columns;
13227
+ var _ref193 = {}, _ref193$rows = _ref193.rows, rows = _ref193$rows === void 0 ? [] : _ref193$rows, _ref193$columns = _ref193.columns, columns2 = _ref193$columns === void 0 ? [] : _ref193$columns;
13135
13228
  var res = {
13136
13229
  rows,
13137
13230
  columns: columns2,
@@ -13139,10 +13232,10 @@ var Methods$b = {
13139
13232
  };
13140
13233
  if (rowNodes && rowNodes.length) {
13141
13234
  res.rows = rowNodes.map(function(arr) {
13142
- return _this65.getRowNode(arr[0].parentNode).item;
13235
+ return _this64.getRowNode(arr[0].parentNode).item;
13143
13236
  });
13144
13237
  res.columns = rowNodes[0].map(function(col) {
13145
- return _this65.getColumnNode(col).item;
13238
+ return _this64.getColumnNode(col).item;
13146
13239
  });
13147
13240
  }
13148
13241
  return res;
@@ -13160,7 +13253,7 @@ var Methods$b = {
13160
13253
  if (!mouseConfig || !mouseConfig.checked) {
13161
13254
  return;
13162
13255
  }
13163
- var _ref193 = {}, cHeight = _ref193.cHeight, cWidth = _ref193.cWidth, offsetLeft = _ref193.offsetLeft, offsetTop = _ref193.offsetTop;
13256
+ var _ref194 = {}, cHeight = _ref194.cHeight, cWidth = _ref194.cWidth, offsetLeft = _ref194.offsetLeft, offsetTop = _ref194.offsetTop;
13164
13257
  cWidth = cHeight = -2;
13165
13258
  offsetTop = offsetLeft = 0;
13166
13259
  this.clearChecked();
@@ -13195,7 +13288,7 @@ var Methods$b = {
13195
13288
  this.editStore.checked.rowNodes = rowNodes;
13196
13289
  },
13197
13290
  handleAllChecked: function handleAllChecked(event) {
13198
- var _this66 = this;
13291
+ var _this65 = this;
13199
13292
  var elemStore = this.elemStore, _this$mouseConfig6 = this.mouseConfig, mouseConfig = _this$mouseConfig6 === void 0 ? {} : _this$mouseConfig6, tableData = this.tableData, visibleColumn = this.visibleColumn;
13200
13293
  if (!mouseConfig.checked) {
13201
13294
  return;
@@ -13223,10 +13316,10 @@ var Methods$b = {
13223
13316
  params.columnIndex = this.getColumnIndex(params.column);
13224
13317
  getCell(this, params).then(function(resCell) {
13225
13318
  params.cell = resCell;
13226
- _this66.handleSelected(params, event, true);
13227
- _this66.handleHeaderChecked(getRowNodes(headerList, getCellNodeIndex(cell.nextElementSibling), getCellNodeIndex(cell.parentNode.lastElementChild)));
13228
- _this66.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTrElem.querySelector(selectorColumnId))));
13229
- _this66.handleChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell.nextElementSibling), getCellNodeIndex(lastTrElem.lastElementChild)));
13319
+ _this65.handleSelected(params, event, true);
13320
+ _this65.handleHeaderChecked(getRowNodes(headerList, getCellNodeIndex(cell.nextElementSibling), getCellNodeIndex(cell.parentNode.lastElementChild)));
13321
+ _this65.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTrElem.querySelector(selectorColumnId))));
13322
+ _this65.handleChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell.nextElementSibling), getCellNodeIndex(lastTrElem.lastElementChild)));
13230
13323
  });
13231
13324
  },
13232
13325
  handleIndexChecked: function handleIndexChecked(rowNodes) {
@@ -13289,7 +13382,7 @@ var Methods$b = {
13289
13382
  var editStore = this.editStore, tableColumn2 = this.tableColumn, tableData = this.tableData;
13290
13383
  var copyed = editStore.copyed;
13291
13384
  var rowNodes = editStore.checked.rowNodes;
13292
- var _ref194 = {}, cHeight = _ref194.cHeight, cWidth = _ref194.cWidth, offsetLeft = _ref194.offsetLeft, offsetTop = _ref194.offsetTop, _ref194$rows = _ref194.rows, rows = _ref194$rows === void 0 ? [] : _ref194$rows, _ref194$columns = _ref194.columns, columns2 = _ref194$columns === void 0 ? [] : _ref194$columns;
13385
+ var _ref195 = {}, cHeight = _ref195.cHeight, cWidth = _ref195.cWidth, offsetLeft = _ref195.offsetLeft, offsetTop = _ref195.offsetTop, _ref195$rows = _ref195.rows, rows = _ref195$rows === void 0 ? [] : _ref195$rows, _ref195$columns = _ref195.columns, columns2 = _ref195$columns === void 0 ? [] : _ref195$columns;
13293
13386
  cWidth = cHeight = -3;
13294
13387
  offsetTop = offsetLeft = 0;
13295
13388
  this.clearCopyed();
@@ -13381,7 +13474,8 @@ var Methods$b = {
13381
13474
  var equalOrContain = function equalOrContain2(elm, target) {
13382
13475
  return elm && (elm === target || elm.contains(target));
13383
13476
  };
13384
- if (!equalOrContain($grid.$el, event.target) && !equalOrContain(tableWrapper, event.target) && !equalOrContain(tooltip && tooltip.state.popperElm, event.target) && !equalOrContain(validTip && validTip.state.popperElm, event.target)) {
13477
+ var actualTarget = getActualTarget(event);
13478
+ if (!equalOrContain($grid.$el, actualTarget) && !equalOrContain(tableWrapper, actualTarget) && !equalOrContain(tooltip && tooltip.state.popperElm, actualTarget) && !equalOrContain(validTip && validTip.state.popperElm, actualTarget)) {
13385
13479
  if (autoClearMouseChecked) {
13386
13480
  this.clearChecked();
13387
13481
  this.clearSelected();
@@ -13411,13 +13505,13 @@ function adjustParams(rows, cb, vaildDatas) {
13411
13505
  vaildDatas
13412
13506
  };
13413
13507
  }
13414
- var columnHandler = function columnHandler2(_ref195) {
13415
- var _vm = _ref195._vm, colValidPromiseArr = _ref195.colValidPromiseArr, editRules = _ref195.editRules, isAll = _ref195.isAll, row2 = _ref195.row, validRest = _ref195.validRest;
13508
+ var columnHandler = function columnHandler2(_ref196) {
13509
+ var _vm = _ref196._vm, colValidPromiseArr = _ref196.colValidPromiseArr, editRules = _ref196.editRules, isAll = _ref196.isAll, row2 = _ref196.row, validRest = _ref196.validRest;
13416
13510
  return function(column, columnIndex) {
13417
13511
  if (has(editRules, column.property)) {
13418
13512
  colValidPromiseArr.push(new Promise(function(resolve, reject) {
13419
- _vm.validCellRules("all", row2, column).then(resolve).catch(function(_ref196) {
13420
- var rule = _ref196.rule, rules = _ref196.rules;
13513
+ _vm.validCellRules("all", row2, column).then(resolve).catch(function(_ref197) {
13514
+ var rule = _ref197.rule, rules = _ref197.rules;
13421
13515
  var rowIndex = _vm.getRowIndex(row2);
13422
13516
  var rest = {
13423
13517
  rule,
@@ -13441,8 +13535,8 @@ var columnHandler = function columnHandler2(_ref195) {
13441
13535
  }
13442
13536
  };
13443
13537
  };
13444
- function validTree(_ref197) {
13445
- var treeConfig = _ref197.treeConfig, handleVaild = _ref197.handleVaild, hasTreeExpand2 = _ref197.hasTreeExpand, vaildDatas = _ref197.vaildDatas, treeOpts = _ref197.treeOpts;
13538
+ function validTree(_ref198) {
13539
+ var treeConfig = _ref198.treeConfig, handleVaild = _ref198.handleVaild, hasTreeExpand2 = _ref198.hasTreeExpand, vaildDatas = _ref198.vaildDatas, treeOpts = _ref198.treeOpts;
13446
13540
  if (treeConfig.validHidden === false) {
13447
13541
  var _recurValid = function recurValid(row2) {
13448
13542
  var children = row2[treeConfig.children || "children"];
@@ -13456,8 +13550,8 @@ function validTree(_ref197) {
13456
13550
  eachTree(vaildDatas, handleVaild, treeOpts);
13457
13551
  }
13458
13552
  }
13459
- var realValid = function realValid2(_ref198) {
13460
- var _vm = _ref198._vm, editRules = _ref198.editRules, isAll = _ref198.isAll, validRest = _ref198.validRest, treeConfig = _ref198.treeConfig, hasTreeExpand2 = _ref198.hasTreeExpand, vaildDatas = _ref198.vaildDatas, treeOpts = _ref198.treeOpts;
13553
+ var realValid = function realValid2(_ref199) {
13554
+ var _vm = _ref199._vm, editRules = _ref199.editRules, isAll = _ref199.isAll, validRest = _ref199.validRest, treeConfig = _ref199.treeConfig, hasTreeExpand2 = _ref199.hasTreeExpand, vaildDatas = _ref199.vaildDatas, treeOpts = _ref199.treeOpts;
13461
13555
  var rowValids = [];
13462
13556
  var columns2 = _vm.getColumns();
13463
13557
  var handleVaild = function handleVaild2(row2) {
@@ -13485,7 +13579,7 @@ var realValid = function realValid2(_ref198) {
13485
13579
  }
13486
13580
  return rowValids;
13487
13581
  };
13488
- var Rule = /* @__PURE__ */ function() {
13582
+ var Rule = /* @__PURE__ */ (function() {
13489
13583
  function Rule2(rule) {
13490
13584
  Object.assign(this, {
13491
13585
  $options: rule,
@@ -13505,12 +13599,12 @@ var Rule = /* @__PURE__ */ function() {
13505
13599
  return getFuncText(this.$options.message);
13506
13600
  }
13507
13601
  }]);
13508
- }();
13602
+ })();
13509
13603
  var onRejected = function onRejected2(opt, _this) {
13510
13604
  var isAll = opt.isAll, validRest = opt.validRest, cb = opt.cb, afterFullData = opt.afterFullData, treeConfig = opt.treeConfig;
13511
13605
  return function(params) {
13512
- var _ref199;
13513
- var args = isAll ? validRest : (_ref199 = {}, _ref199[params.column.property] = params, _ref199);
13606
+ var _ref200;
13607
+ var args = isAll ? validRest : (_ref200 = {}, _ref200[params.column.property] = params, _ref200);
13514
13608
  var funcFinish = function funcFinish2(args2, reject, resolve) {
13515
13609
  return function() {
13516
13610
  opt.status = false;
@@ -13566,21 +13660,21 @@ var Methods$a = {
13566
13660
  },
13567
13661
  // 聚焦到校验通过的单元格并弹出校验错误提示
13568
13662
  handleValidError: function handleValidError(params) {
13569
- var _this67 = this;
13663
+ var _this66 = this;
13570
13664
  var event = {
13571
13665
  type: "valid-error",
13572
13666
  trigger: "call"
13573
13667
  };
13574
13668
  this.handleActived(params, event).then(function() {
13575
- return _this67.showValidTooltip(params);
13669
+ return _this66.showValidTooltip(params);
13576
13670
  });
13577
13671
  },
13578
13672
  validatePromise: function validatePromise(row2, column, columnIndex, isAll, validRest) {
13579
- var _this68 = this;
13580
- function onrejected(_ref201) {
13581
- var _vm = _ref201._vm, reject = _ref201.reject, resolve = _ref201.resolve;
13582
- return function(_ref202) {
13583
- var rule = _ref202.rule, rules = _ref202.rules;
13673
+ var _this67 = this;
13674
+ function onrejected(_ref202) {
13675
+ var _vm = _ref202._vm, reject = _ref202.reject, resolve = _ref202.resolve;
13676
+ return function(_ref203) {
13677
+ var rule = _ref203.rule, rules = _ref203.rules;
13584
13678
  var rest = {
13585
13679
  $table: _vm,
13586
13680
  column,
@@ -13599,8 +13693,8 @@ var Methods$a = {
13599
13693
  };
13600
13694
  }
13601
13695
  return new Promise(function(resolve, reject) {
13602
- _this68.validCellRules("all", row2, column).then(resolve).catch(onrejected({
13603
- _vm: _this68,
13696
+ _this67.validCellRules("all", row2, column).then(resolve).catch(onrejected({
13697
+ _vm: _this67,
13604
13698
  reject,
13605
13699
  resolve
13606
13700
  }));
@@ -13616,7 +13710,7 @@ var Methods$a = {
13616
13710
  */
13617
13711
  beginValidate: function beginValidate(rows, callback, isAll) {
13618
13712
  var afterFullData = this.afterFullData, editRules = this.editRules, hasTreeExpand2 = this.hasTreeExpand, treeConfig = this.treeConfig, treeOpts = this.treeOpts;
13619
- var _ref203 = {}, _ref203$status = _ref203.status, status = _ref203$status === void 0 ? true : _ref203$status, _ref203$validRest = _ref203.validRest, validRest = _ref203$validRest === void 0 ? {} : _ref203$validRest;
13713
+ var _ref204 = {}, _ref204$status = _ref204.status, status = _ref204$status === void 0 ? true : _ref204$status, _ref204$validRest = _ref204.validRest, validRest = _ref204$validRest === void 0 ? {} : _ref204$validRest;
13620
13714
  var _adjustParams = adjustParams(rows, callback, afterFullData), vaildDatas = _adjustParams.vaildDatas, cb = _adjustParams.cb;
13621
13715
  var opt = {
13622
13716
  isAll,
@@ -13651,12 +13745,11 @@ var Methods$a = {
13651
13745
  return Promise.reject(validRest[ruleKeys[0]][0]);
13652
13746
  }
13653
13747
  cb && cb(opt.status);
13654
- return opt.status;
13655
13748
  };
13656
13749
  return Promise.all(rowValids).then(onFulfilled).catch(onRejected(opt, this));
13657
13750
  },
13658
- hasCellRules: function hasCellRules(type, row2, _ref204) {
13659
- var property = _ref204.property;
13751
+ hasCellRules: function hasCellRules(type, row2, _ref205) {
13752
+ var property = _ref205.property;
13660
13753
  if (!property || !this.editRules) {
13661
13754
  return false;
13662
13755
  }
@@ -13686,10 +13779,10 @@ var Methods$a = {
13686
13779
  * @param { any } defaultValue 需要校验的默认值
13687
13780
  */
13688
13781
  validCellRules: function validCellRules(type, row2, column, defaultValue) {
13689
- var _this69 = this;
13782
+ var _this68 = this;
13690
13783
  var editRules = this.editRules, rowId = this.rowId;
13691
13784
  var property = column.property;
13692
- var _ref205 = {}, _ref205$descriptor = _ref205.descriptor, descriptor = _ref205$descriptor === void 0 ? {} : _ref205$descriptor, _ref205$model = _ref205.model, model = _ref205$model === void 0 ? {} : _ref205$model;
13785
+ var _ref206 = {}, _ref206$descriptor = _ref206.descriptor, descriptor = _ref206$descriptor === void 0 ? {} : _ref206$descriptor, _ref206$model = _ref206.model, model = _ref206$model === void 0 ? {} : _ref206$model;
13693
13786
  if (property && editRules) {
13694
13787
  var rules = get(editRules, property);
13695
13788
  var cellValue = isUndefined(defaultValue) ? get(row2, property) : defaultValue;
@@ -13714,8 +13807,8 @@ var Methods$a = {
13714
13807
  column
13715
13808
  }
13716
13809
  };
13717
- var onRejected3 = function onRejected32(_ref206) {
13718
- var fields = _ref206.fields;
13810
+ var onRejected3 = function onRejected32(_ref207) {
13811
+ var fields = _ref207.fields;
13719
13812
  var cellErrors = Object.keys(fields).map(function(prop) {
13720
13813
  var rules2 = _descriptor[prop];
13721
13814
  _descriptor[prop] = !rules2.message ? Object.assign(rules2, {
@@ -13731,11 +13824,11 @@ var Methods$a = {
13731
13824
  validator.validate(model, validArgs).then(resolve).catch(onRejected3);
13732
13825
  };
13733
13826
  var onFulfilled = function onFulfilled2() {
13734
- _this69.validatedMap[column.id + "-" + row2[rowId]] = false;
13827
+ _this68.validatedMap[column.id + "-" + row2[rowId]] = false;
13735
13828
  return Promise.resolve();
13736
13829
  };
13737
13830
  var onRejected22 = function onRejected23(errors) {
13738
- _this69.validatedMap[column.id + "-" + row2[rowId]] = true;
13831
+ _this68.validatedMap[column.id + "-" + row2[rowId]] = true;
13739
13832
  return Promise.reject(errors);
13740
13833
  };
13741
13834
  return new Promise(executor).then(onFulfilled).catch(onRejected22);
@@ -13752,9 +13845,16 @@ var Methods$a = {
13752
13845
  this.clostValidTooltip(void 0);
13753
13846
  return this.$nextTick();
13754
13847
  },
13848
+ clearValidateMap: function clearValidateMap() {
13849
+ if (this.validatedMap) {
13850
+ for (var key in this.validatedMap) {
13851
+ this.validatedMap[key] = false;
13852
+ }
13853
+ }
13854
+ },
13755
13855
  // 触发校验
13756
13856
  triggerValidate: function triggerValidate(type) {
13757
- var _this70 = this;
13857
+ var _this69 = this;
13758
13858
  var editConfig = this.editConfig, editRules = this.editRules, editStore = this.editStore, validStore = this.validStore;
13759
13859
  var actived = editStore.actived;
13760
13860
  if (!actived.row || !editRules) {
@@ -13765,10 +13865,10 @@ var Methods$a = {
13765
13865
  return Promise.resolve();
13766
13866
  }
13767
13867
  var onfulfilled = function onfulfilled2() {
13768
- editConfig.mode === "row" && validStore.visible && validStore.row === row2 && validStore.column === column && _this70.clearValidate();
13868
+ editConfig.mode === "row" && validStore.visible && validStore.row === row2 && validStore.column === column && _this69.clearValidate();
13769
13869
  };
13770
- var onrejected = function onrejected2(_ref207) {
13771
- var rule = _ref207.rule;
13870
+ var onrejected = function onrejected2(_ref208) {
13871
+ var rule = _ref208.rule;
13772
13872
  if (rule.trigger && type !== rule.trigger) {
13773
13873
  return Promise.resolve();
13774
13874
  }
@@ -13778,14 +13878,14 @@ var Methods$a = {
13778
13878
  row: row2,
13779
13879
  rule
13780
13880
  };
13781
- _this70.showValidTooltip(rest);
13881
+ _this69.showValidTooltip(rest);
13782
13882
  return Promise.reject(rest);
13783
13883
  };
13784
13884
  return this.validCellRules(type, row2, column).then(onfulfilled).catch(onrejected);
13785
13885
  },
13786
13886
  // 弹出校验错误提示
13787
13887
  showValidTooltip: function showValidTooltip(params) {
13788
- var _this71 = this;
13888
+ var _this70 = this;
13789
13889
  var $refs = this.$refs, height2 = this.height, tableData = this.tableData, validOpts2 = this.validOpts;
13790
13890
  var cell = params.cell, column = params.column, row2 = params.row, rule = params.rule;
13791
13891
  var content = rule.message;
@@ -13793,7 +13893,7 @@ var Methods$a = {
13793
13893
  var isMessageTooltip = validOpts2.isMessageTooltip, isMessageDefault = validOpts2.isMessageDefault, isMessageInline = validOpts2.isMessageInline;
13794
13894
  var showMsg = isMessageTooltip || isMessageDefault && !height2 && tableData.length < 2;
13795
13895
  this.$nextTick(function() {
13796
- Object.assign(_this71.validStore, {
13896
+ Object.assign(_this70.validStore, {
13797
13897
  row: row2,
13798
13898
  column,
13799
13899
  rule,
@@ -13801,19 +13901,19 @@ var Methods$a = {
13801
13901
  visible: true
13802
13902
  });
13803
13903
  if (validTip && showMsg) {
13804
- _this71.clostValidTooltip();
13805
- _this71.validTipContent = content;
13904
+ _this70.clostValidTooltip();
13905
+ _this70.validTipContent = content;
13806
13906
  validTip.state.referenceElm = cell;
13807
13907
  validTip.$refs.popper && (validTip.$refs.popper.style.display = "none");
13808
13908
  validTip.doDestroy();
13809
13909
  validTip.setExpectedState(true);
13810
- _this71.activateTooltipValid(validTip);
13910
+ _this70.activateTooltipValid(validTip);
13811
13911
  } else if (isMessageInline) {
13812
- _this71.$nextTick(function() {
13813
- return _this71.recalculate();
13912
+ _this70.$nextTick(function() {
13913
+ return _this70.recalculate();
13814
13914
  });
13815
13915
  }
13816
- emitEvent(_this71, "valid-error", [params]);
13916
+ emitEvent(_this70, "valid-error", [params]);
13817
13917
  });
13818
13918
  },
13819
13919
  // 关闭 validTip
@@ -13834,12 +13934,12 @@ var Validator = {
13834
13934
  };
13835
13935
  var Methods$9 = {
13836
13936
  bindResize: function bindResize() {
13837
- var _this72 = this;
13937
+ var _this71 = this;
13838
13938
  var parentElem = this.getParentElem();
13839
13939
  if ((parentElem == null ? void 0 : parentElem.nodeType) === Node.ELEMENT_NODE) {
13840
13940
  (this.$resize = new Resize$1(function() {
13841
- _this72.updateParentHeight();
13842
- _this72.recalculate();
13941
+ _this71.updateParentHeight();
13942
+ _this71.recalculate();
13843
13943
  }, GlobalConfig$1.resizeInterval)).observe(parentElem);
13844
13944
  }
13845
13945
  },
@@ -13862,7 +13962,7 @@ var Methods$8 = {
13862
13962
  initFetchOption: function initFetchOption() {
13863
13963
  var _this$fetchData = this.fetchData, fetchData = _this$fetchData === void 0 ? {} : _this$fetchData, _this$dataset = this.dataset, dataset = _this$dataset === void 0 ? {} : _this$dataset;
13864
13964
  if (fetchData.api || dataset.source || dataset.value || dataset.api) {
13865
- var _ref208 = fetchData || dataset.source || dataset.api || {}, loading = _ref208.loading, fields = _ref208.fields, api = _ref208.api, reloadConfig = _ref208.reloadConfig;
13965
+ var _ref209 = fetchData || dataset.source || dataset.api || {}, loading = _ref209.loading, fields = _ref209.fields, api = _ref209.api, reloadConfig = _ref209.reloadConfig;
13866
13966
  var isReloadFilter = false;
13867
13967
  var isReloadScroll = false;
13868
13968
  if (reloadConfig) {
@@ -13883,7 +13983,7 @@ var Methods$8 = {
13883
13983
  但为避免破坏性变更,暂保留
13884
13984
  */
13885
13985
  handleFetch: function handleFetch(code, sortArg) {
13886
- var _this73 = this;
13986
+ var _this72 = this;
13887
13987
  var pager = this.pager, sortData = this.sortData, filterData = this.filterData, pagerConfig = this.pagerConfig, fetchOption = this.fetchOption, fetchData = this.fetchData, dataset = this.dataset;
13888
13988
  var _fetchData$reloadConf = fetchData.reloadConfig, reloadConfig = _fetchData$reloadConf === void 0 ? {} : _fetchData$reloadConf;
13889
13989
  var _reloadConfig$scroll = reloadConfig.scroll, scroll = _reloadConfig$scroll === void 0 ? false : _reloadConfig$scroll;
@@ -13900,7 +14000,7 @@ var Methods$8 = {
13900
14000
  error("ui.grid.error.notQuery");
13901
14001
  return this.$nextTick();
13902
14002
  }
13903
- var _ref209 = fetchData || dataset.source || dataset.api || {}, args = _ref209.args, loading = _ref209.loading;
14003
+ var _ref210 = fetchData || dataset.source || dataset.api || {}, args = _ref210.args, loading = _ref210.loading;
13904
14004
  var field = sortData.field, order = sortData.order, prop = sortData.prop, property = sortData.property;
13905
14005
  var sortByData = {
13906
14006
  field,
@@ -13944,7 +14044,7 @@ var Methods$8 = {
13944
14044
  }, params);
13945
14045
  }
13946
14046
  return search.then(this.loadFetchData).catch(function(error2) {
13947
- _this73.tableLoading = false;
14047
+ _this72.tableLoading = false;
13948
14048
  throw error2;
13949
14049
  });
13950
14050
  },
@@ -13966,8 +14066,8 @@ var Methods$8 = {
13966
14066
  if (pagerConfig && !Array.isArray(rest)) {
13967
14067
  var _rest$result;
13968
14068
  var total = getObj(rest, fields.total || "page.total") || (rest == null ? void 0 : (_rest$result = rest.result) == null ? void 0 : _rest$result.length) || 0;
13969
- var data6 = getObj(rest, fields.result || fields.data || "result") || [];
13970
- this.tableData = data6;
14069
+ var data7 = getObj(rest, fields.result || fields.data || "result") || [];
14070
+ this.tableData = data7;
13971
14071
  pagerConfig.total = total;
13972
14072
  var setTotal = pagerSlot && pagerSlot.componentInstance.setTotal;
13973
14073
  setTotal && setTotal(total);
@@ -14008,8 +14108,8 @@ var Methods$7 = {
14008
14108
  }
14009
14109
  },
14010
14110
  // 表格内置分页渲染器
14011
- renderPager: function renderPager(_ref210) {
14012
- var $slots = _ref210.$slots, _vm = _ref210._vm, loading = _ref210.loading, pager = _ref210.pager, pagerConfig = _ref210.pagerConfig, tableLoading = _ref210.tableLoading, vSize3 = _ref210.vSize;
14111
+ renderPager: function renderPager(_ref211) {
14112
+ var $slots = _ref211.$slots, _vm = _ref211._vm, loading = _ref211.loading, pager = _ref211.pager, pagerConfig = _ref211.pagerConfig, tableLoading = _ref211.tableLoading, vSize3 = _ref211.vSize;
14013
14113
  var res = null;
14014
14114
  var fetchData = _vm.fetchData;
14015
14115
  if ($slots.pager) {
@@ -14036,19 +14136,19 @@ var Methods$7 = {
14036
14136
  return res;
14037
14137
  },
14038
14138
  pageChangeEvent: function pageChangeEvent(params) {
14039
- var _this74 = this;
14139
+ var _this73 = this;
14040
14140
  this.tablePageLoading = true;
14041
14141
  if (!this.tasks.updatePage) {
14042
14142
  this.tasks.updatePage = debounce(200, function() {
14043
14143
  var eventParams = _extends({
14044
- $grid: _this74
14144
+ $grid: _this73
14045
14145
  }, params);
14046
- var toolbarVm = _this74.getVm("toolbar");
14047
- emitEvent(_this74, "page-change", eventParams);
14048
- _this74.emitter.emit("page-change", eventParams);
14049
- _this74.handleFetch("query").then(function() {
14050
- _this74.realTimeTablePage = _extends({}, _this74.tablePage);
14051
- _this74.tablePageLoading = false;
14146
+ var toolbarVm = _this73.getVm("toolbar");
14147
+ emitEvent(_this73, "page-change", eventParams);
14148
+ _this73.emitter.emit("page-change", eventParams);
14149
+ _this73.handleFetch("query").then(function() {
14150
+ _this73.realTimeTablePage = _extends({}, _this73.tablePage);
14151
+ _this73.tablePageLoading = false;
14052
14152
  });
14053
14153
  if (toolbarVm) {
14054
14154
  toolbarVm.orderSetting();
@@ -14070,7 +14170,7 @@ var Methods$7 = {
14070
14170
  }
14071
14171
  },
14072
14172
  beforePageChangeHandler: function beforePageChangeHandler(params) {
14073
- var _this75 = this;
14173
+ var _this74 = this;
14074
14174
  if (!this.showSaveMsg) {
14075
14175
  var eventParams = extend(false, {
14076
14176
  $grid: this
@@ -14085,8 +14185,8 @@ var Methods$7 = {
14085
14185
  var next = function next2(res) {
14086
14186
  if (res === "confirm") {
14087
14187
  rollback && rollback();
14088
- emitEvent(_this75, "cancel-page-change", _this75);
14089
- _this75.emitter.emit("cancel-page-change", _this75);
14188
+ emitEvent(_this74, "cancel-page-change", _this74);
14189
+ _this74.emitter.emit("cancel-page-change", _this74);
14090
14190
  } else {
14091
14191
  callback && callback();
14092
14192
  }
@@ -14103,8 +14203,8 @@ var Pager = {
14103
14203
  Object.assign(host.methods, Methods$7);
14104
14204
  }
14105
14205
  };
14106
- function setBodyRecords(_ref211) {
14107
- var body = _ref211.body, insertRecords = _ref211.insertRecords, pendingRecords = _ref211.pendingRecords;
14206
+ function setBodyRecords(_ref212) {
14207
+ var body = _ref212.body, insertRecords = _ref212.insertRecords, pendingRecords = _ref212.pendingRecords;
14108
14208
  if (insertRecords.length) {
14109
14209
  body.pendingRecords = pendingRecords.filter(function(row2) {
14110
14210
  return !insertRecords.includes(row2);
@@ -14119,8 +14219,8 @@ function setBodyRecords(_ref211) {
14119
14219
  function canInvokeSaveDataApi(body, removeRecords, updateRecords) {
14120
14220
  return body.insertRecords.length || removeRecords.length || updateRecords.length || body.pendingRecords.length;
14121
14221
  }
14122
- function doRemoveOrShowMsg(_ref212) {
14123
- var _vm = _ref212._vm, canInvoke = _ref212.canInvoke, code = _ref212.code, isMsg2 = _ref212.isMsg, pendingRecords = _ref212.pendingRecords, resolve = _ref212.resolve, valid = _ref212.valid;
14222
+ function doRemoveOrShowMsg(_ref213) {
14223
+ var _vm = _ref213._vm, canInvoke = _ref213.canInvoke, code = _ref213.code, isMsg2 = _ref213.isMsg, pendingRecords = _ref213.pendingRecords, resolve = _ref213.resolve, valid = _ref213.valid;
14124
14224
  if (valid && !canInvoke) {
14125
14225
  if (isMsg2) {
14126
14226
  if (pendingRecords.length) {
@@ -14136,8 +14236,8 @@ function doRemoveOrShowMsg(_ref212) {
14136
14236
  resolve();
14137
14237
  }
14138
14238
  }
14139
- function invokeSaveDataApi(_ref213) {
14140
- var _vm = _ref213._vm, args = _ref213.args, body = _ref213.body, code = _ref213.code, removeRecords = _ref213.removeRecords, resolve = _ref213.resolve, saveData = _ref213.saveData, updateRecords = _ref213.updateRecords, valid = _ref213.valid;
14239
+ function invokeSaveDataApi(_ref214) {
14240
+ var _vm = _ref214._vm, args = _ref214.args, body = _ref214.body, code = _ref214.code, removeRecords = _ref214.removeRecords, resolve = _ref214.resolve, saveData = _ref214.saveData, updateRecords = _ref214.updateRecords, valid = _ref214.valid;
14141
14241
  var canInvoke = false;
14142
14242
  if (valid) {
14143
14243
  canInvoke = canInvokeSaveDataApi(body, removeRecords, updateRecords);
@@ -14164,9 +14264,9 @@ function invokeSaveDataApi(_ref213) {
14164
14264
  }
14165
14265
  var Methods$6 = {
14166
14266
  // 表格工具栏渲染器
14167
- getRenderedToolbar: function getRenderedToolbar(_ref214) {
14168
- var $slots = _ref214.$slots, _vm = _ref214._vm, loading = _ref214.loading, tableLoading = _ref214.tableLoading, toolbar = _ref214.toolbar;
14169
- return _vm.renderedToolbar = function() {
14267
+ getRenderedToolbar: function getRenderedToolbar(_ref215) {
14268
+ var $slots = _ref215.$slots, _vm = _ref215._vm, loading = _ref215.loading, tableLoading = _ref215.tableLoading, toolbar = _ref215.toolbar;
14269
+ return _vm.renderedToolbar = (function() {
14170
14270
  var res = null;
14171
14271
  if ($slots.toolbar) {
14172
14272
  res = $slots.toolbar();
@@ -14181,10 +14281,10 @@ var Methods$6 = {
14181
14281
  });
14182
14282
  }
14183
14283
  return res;
14184
- }();
14284
+ })();
14185
14285
  },
14186
14286
  handleSave: function handleSave(code, args) {
14187
- var _this76 = this;
14287
+ var _this75 = this;
14188
14288
  var saveData = this.saveData, isMsg2 = this.isMsg;
14189
14289
  if (!saveData) {
14190
14290
  error("ui.grid.error.notSave");
@@ -14202,7 +14302,7 @@ var Methods$6 = {
14202
14302
  return;
14203
14303
  }
14204
14304
  var canInvoke = invokeSaveDataApi({
14205
- _vm: _this76,
14305
+ _vm: _this75,
14206
14306
  args,
14207
14307
  body,
14208
14308
  code,
@@ -14213,7 +14313,7 @@ var Methods$6 = {
14213
14313
  valid
14214
14314
  });
14215
14315
  doRemoveOrShowMsg({
14216
- _vm: _this76,
14316
+ _vm: _this75,
14217
14317
  canInvoke,
14218
14318
  code,
14219
14319
  isMsg: isMsg2,
@@ -14229,11 +14329,11 @@ var Methods$6 = {
14229
14329
  pendingRecords
14230
14330
  });
14231
14331
  return new Promise(function(resolve) {
14232
- _this76.validate(validRows, getCallback(resolve));
14332
+ _this75.validate(validRows, getCallback(resolve));
14233
14333
  });
14234
14334
  },
14235
14335
  handleDelete: function handleDelete(code, args) {
14236
- var _this77 = this;
14336
+ var _this76 = this;
14237
14337
  var deleteData = this.deleteData, isMsg2 = this.isMsg;
14238
14338
  if (!deleteData) {
14239
14339
  error("ui.grid.error.notDelete");
@@ -14241,7 +14341,7 @@ var Methods$6 = {
14241
14341
  }
14242
14342
  var selecteds = this.getSelectRecords(true);
14243
14343
  var afterRemove = function afterRemove2() {
14244
- var removeds = _this77.getRemoveRecords();
14344
+ var removeds = _this76.getRemoveRecords();
14245
14345
  if (!removeds.length && isMsg2 && !selecteds.length) {
14246
14346
  Modal.message({
14247
14347
  id: code,
@@ -14251,34 +14351,34 @@ var Methods$6 = {
14251
14351
  }
14252
14352
  if (removeds.length) {
14253
14353
  var apiArgs = [{
14254
- $grid: _this77,
14354
+ $grid: _this76,
14255
14355
  changeRecords: {
14256
14356
  removeRecords: removeds
14257
14357
  }
14258
14358
  }].concat(args);
14259
14359
  var stopLoading = function stopLoading2() {
14260
- _this77.tableLoading = false;
14360
+ _this76.tableLoading = false;
14261
14361
  };
14262
- _this77.tableLoading = true;
14263
- return deleteData.api.apply(_this77, apiArgs).then(stopLoading).catch(stopLoading).then(function() {
14264
- return _this77.commitProxy("reload");
14362
+ _this76.tableLoading = true;
14363
+ return deleteData.api.apply(_this76, apiArgs).then(stopLoading).catch(stopLoading).then(function() {
14364
+ return _this76.commitProxy("reload");
14265
14365
  });
14266
14366
  }
14267
14367
  };
14268
14368
  this.remove(selecteds).then(afterRemove);
14269
14369
  },
14270
- handleFullScreen: function handleFullScreen(_ref215) {
14271
- var _this78 = this;
14272
- var show2 = _ref215[0];
14370
+ handleFullScreen: function handleFullScreen(_ref216) {
14371
+ var _this77 = this;
14372
+ var show2 = _ref216[0];
14273
14373
  this.fullScreenClass = show2 ? "tiny-fullscreen-full" : "";
14274
14374
  this.$nextTick(function() {
14275
- _this78.recalculate();
14276
- emitEvent(_this78, "fullscreen", show2);
14277
- _this78.emitter.emit("fullscreen", show2);
14375
+ _this77.recalculate();
14376
+ emitEvent(_this77, "fullscreen", show2);
14377
+ _this77.emitter.emit("fullscreen", show2);
14278
14378
  });
14279
14379
  },
14280
14380
  commitProxy: function commitProxy(code) {
14281
- var _this79 = this;
14381
+ var _this78 = this;
14282
14382
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
14283
14383
  args[_key2 - 1] = arguments[_key2];
14284
14384
  }
@@ -14286,19 +14386,19 @@ var Methods$6 = {
14286
14386
  if (code === "insert") {
14287
14387
  this.insert();
14288
14388
  } else if (code === "insert_actived") {
14289
- this.insert().then(function(_ref216) {
14290
- var row2 = _ref216.row;
14291
- return _this79.setActiveRow(row2);
14389
+ this.insert().then(function(_ref217) {
14390
+ var row2 = _ref217.row;
14391
+ return _this78.setActiveRow(row2);
14292
14392
  });
14293
14393
  } else if (code === "mark_cancel") {
14294
14394
  this.triggerPendingEvent(code);
14295
14395
  } else if (code === "delete_selection") {
14296
14396
  this.handleDeleteRow(code, "ui.grid.deleteSelectRecord", function() {
14297
- return _this79.commitProxy(["delete"].concat(args));
14397
+ return _this78.commitProxy(["delete"].concat(args));
14298
14398
  });
14299
14399
  } else if (code === "remove_selection") {
14300
14400
  this.handleDeleteRow(code, "ui.grid.removeSelectRecord", function() {
14301
- return _this79.removeSelecteds();
14401
+ return _this78.removeSelecteds();
14302
14402
  });
14303
14403
  } else if (code === "export") {
14304
14404
  this.exportCsv();
@@ -14374,11 +14474,11 @@ var Methods$6 = {
14374
14474
  });
14375
14475
  }
14376
14476
  if (selecteds.length) {
14377
- var _ref217 = {}, _ref217$plus = _ref217.plus, plus = _ref217$plus === void 0 ? [] : _ref217$plus, _ref217$minus = _ref217.minus, minus = _ref217$minus === void 0 ? [] : _ref217$minus, tmp = _ref217.tmp;
14378
- selecteds.forEach(function(data6) {
14379
- var selectedPending = pendings.includes(data6);
14477
+ var _ref218 = {}, _ref218$plus = _ref218.plus, plus = _ref218$plus === void 0 ? [] : _ref218$plus, _ref218$minus = _ref218.minus, minus = _ref218$minus === void 0 ? [] : _ref218$minus, tmp = _ref218.tmp;
14478
+ selecteds.forEach(function(data7) {
14479
+ var selectedPending = pendings.includes(data7);
14380
14480
  tmp = selectedPending ? minus : plus;
14381
- tmp.push(data6);
14481
+ tmp.push(data7);
14382
14482
  });
14383
14483
  tmp = minus.length ? pendings.filter(function(item) {
14384
14484
  return !~minus.indexOf(item);
@@ -14397,8 +14497,8 @@ var Toolbar = {
14397
14497
  };
14398
14498
  var Methods$5 = {
14399
14499
  renderColumnAnchor: function renderColumnAnchor(params, _vm) {
14400
- var _ref218 = params || {}, _ref218$anchors = _ref218.anchors, anchors = _ref218$anchors === void 0 ? [] : _ref218$anchors, _ref218$action = _ref218.action, action = _ref218$action === void 0 ? function() {
14401
- } : _ref218$action;
14500
+ var _ref219 = params || {}, _ref219$anchors = _ref219.anchors, anchors = _ref219$anchors === void 0 ? [] : _ref219$anchors, _ref219$action = _ref219.action, action = _ref219$action === void 0 ? function() {
14501
+ } : _ref219$action;
14402
14502
  var viewType2 = _vm.viewType;
14403
14503
  return h("div", {
14404
14504
  class: ["tiny-grid__column-anchor", _vm.viewCls("columnAnchor")],
@@ -14433,8 +14533,8 @@ var Methods$5 = {
14433
14533
  }, [iconVnode, spanVnode]);
14434
14534
  }));
14435
14535
  },
14436
- buildColumnAnchor: function buildColumnAnchor(_ref219) {
14437
- var property = _ref219.property, label = _ref219.label, anchors = _ref219.anchors, activeAnchor = _ref219.activeAnchor;
14536
+ buildColumnAnchor: function buildColumnAnchor(_ref220) {
14537
+ var property = _ref220.property, label = _ref220.label, anchors = _ref220.anchors, activeAnchor = _ref220.activeAnchor;
14438
14538
  var visibleColumn = this.getColumns();
14439
14539
  var column = visibleColumn.find(function(col) {
14440
14540
  return !col.type && col.property === property;
@@ -14468,7 +14568,7 @@ var Methods$5 = {
14468
14568
  }
14469
14569
  },
14470
14570
  buildColumnAnchorParams: function buildColumnAnchorParams() {
14471
- var _this80 = this;
14571
+ var _this79 = this;
14472
14572
  var columnAnchor = this.columnAnchor;
14473
14573
  var anchors = [];
14474
14574
  var activeAnchor = {
@@ -14478,19 +14578,19 @@ var Methods$5 = {
14478
14578
  if (Array.isArray(columnAnchor) && columnAnchor.length) {
14479
14579
  columnAnchor.forEach(function(item) {
14480
14580
  if (typeof item === "string") {
14481
- _this80.buildColumnAnchor({
14581
+ _this79.buildColumnAnchor({
14482
14582
  property: item,
14483
14583
  anchors
14484
14584
  });
14485
14585
  } else if (Array.isArray(item)) {
14486
- if (item.length > 1) _this80.buildColumnAnchor({
14586
+ if (item.length > 1) _this79.buildColumnAnchor({
14487
14587
  property: item[0],
14488
14588
  label: item[1],
14489
14589
  anchors
14490
14590
  });
14491
14591
  } else if (item && typeof item === "object") {
14492
14592
  var field = item.field, other = _objectWithoutPropertiesLoose(item, _excluded2);
14493
- _this80.buildColumnAnchor({
14593
+ _this79.buildColumnAnchor({
14494
14594
  property: field,
14495
14595
  label: other,
14496
14596
  anchors,
@@ -14506,27 +14606,27 @@ var Methods$5 = {
14506
14606
  anchors,
14507
14607
  activeAnchor,
14508
14608
  action: function action(field, e) {
14509
- return _this80.anchorAction({
14609
+ return _this79.anchorAction({
14510
14610
  field,
14511
14611
  anchors,
14512
- _vm: _this80,
14612
+ _vm: _this79,
14513
14613
  e
14514
14614
  });
14515
14615
  }
14516
14616
  };
14517
14617
  this._delayActivateAnchor = function() {
14518
- _this80._delayActivateAnchor = void 0;
14618
+ _this79._delayActivateAnchor = void 0;
14519
14619
  setTimeout(function() {
14520
- return _this80.anchorAction({
14620
+ return _this79.anchorAction({
14521
14621
  field: activeAnchor.field,
14522
14622
  anchors,
14523
- _vm: _this80
14623
+ _vm: _this79
14524
14624
  });
14525
14625
  }, activeAnchor.delay);
14526
14626
  };
14527
14627
  },
14528
- anchorAction: function anchorAction(_ref220) {
14529
- var field = _ref220.field, anchors = _ref220.anchors, _vm = _ref220._vm;
14628
+ anchorAction: function anchorAction(_ref221) {
14629
+ var field = _ref221.field, anchors = _ref221.anchors, _vm = _ref221._vm;
14530
14630
  var fromAnchor = anchors.find(function(anchor) {
14531
14631
  return anchor.active;
14532
14632
  });
@@ -14572,8 +14672,8 @@ var ColumnAnchor = {
14572
14672
  Object.assign(host.methods, Methods$5);
14573
14673
  }
14574
14674
  };
14575
- var createHandlerOnEnd = function createHandlerOnEnd2(_ref221) {
14576
- var _vm = _ref221._vm, refresh = _ref221.refresh;
14675
+ var createHandlerOnEnd = function createHandlerOnEnd2(_ref222) {
14676
+ var _vm = _ref222._vm, refresh = _ref222.refresh;
14577
14677
  return function(event) {
14578
14678
  var insertRecords = _vm.getInsertRecords();
14579
14679
  if (insertRecords.length) {
@@ -14619,7 +14719,7 @@ var createHandlerOnEnd = function createHandlerOnEnd2(_ref221) {
14619
14719
  _vm.tableFullData = [].concat(tableTreeData);
14620
14720
  }
14621
14721
  _vm.$emit("row-drop-end", event, _vm, _vm.scrollYLoad ? tableTreeData : _vm.tableFullData);
14622
- refresh && _vm.data && !isVue2 && _vm.refreshData(_vm.data);
14722
+ refresh && _vm.data && _vm.refreshData(_vm.data);
14623
14723
  };
14624
14724
  };
14625
14725
  var getSortColumns = function getSortColumns2(columns2) {
@@ -14641,15 +14741,15 @@ var getSortColumns = function getSortColumns2(columns2) {
14641
14741
  var Methods$4 = {
14642
14742
  // 处理列拖拽
14643
14743
  columnDrop: function columnDrop(headerEl) {
14644
- var _this81 = this;
14645
- var _ref222 = this.dropConfig || {}, plugin = _ref222.plugin, onBeforeMove = _ref222.onBeforeMove, filter2 = _ref222.filter;
14744
+ var _this80 = this;
14745
+ var _ref223 = this.dropConfig || {}, plugin = _ref223.plugin, onBeforeMove = _ref223.onBeforeMove, filter2 = _ref223.filter;
14646
14746
  var columnDropContainer = headerEl.querySelector(".tiny-grid-header__row");
14647
14747
  var columnDropOptions = _extends({}, this.dropConfig, {
14648
14748
  handle: ".tiny-grid-header__column:not(.col__fixed)",
14649
14749
  filter: filter2,
14650
14750
  onEnd: function onEnd(event) {
14651
14751
  var item = event.item, newIndex = event.newIndex, oldIndex = event.oldIndex;
14652
- var _this81$getTableColum = _this81.getTableColumn(), fullColumn = _this81$getTableColum.fullColumn, tableColumn2 = _this81$getTableColum.tableColumn;
14752
+ var _this80$getTableColum = _this80.getTableColumn(), fullColumn = _this80$getTableColum.fullColumn, tableColumn2 = _this80$getTableColum.tableColumn;
14653
14753
  var sortVisibleCols = getSortColumns(tableColumn2);
14654
14754
  var targetThElem = item;
14655
14755
  var wrapperElem = targetThElem.parentNode;
@@ -14670,21 +14770,21 @@ var Methods$4 = {
14670
14770
  status: "error"
14671
14771
  });
14672
14772
  }
14673
- var oldColumnIndex = _this81.getColumnIndex(sortVisibleCols[oldIndex]);
14674
- var newColumnIndex = _this81.getColumnIndex(sortVisibleCols[newIndex]);
14773
+ var oldColumnIndex = _this80.getColumnIndex(sortVisibleCols[oldIndex]);
14774
+ var newColumnIndex = _this80.getColumnIndex(sortVisibleCols[newIndex]);
14675
14775
  var currCol = fullColumn.splice(oldColumnIndex, 1)[0];
14676
14776
  fullColumn.splice(newColumnIndex, 0, currCol);
14677
- _this81.loadColumn(fullColumn);
14678
- _this81.$emit("column-drop-end", event, _this81);
14679
- var toolbarVm = _this81.getVm("toolbar");
14680
- _this81.isDragHeaderSorting && toolbarVm && toolbarVm.updateSetting();
14777
+ _this80.loadColumn(fullColumn);
14778
+ _this80.$emit("column-drop-end", event, _this80);
14779
+ var toolbarVm = _this80.getVm("toolbar");
14780
+ _this80.isDragHeaderSorting && toolbarVm && toolbarVm.updateSetting();
14681
14781
  },
14682
14782
  onStart: function onStart(event) {
14683
- _this81.$emit("column-drop-start", event, _this81);
14783
+ _this80.$emit("column-drop-start", event, _this80);
14684
14784
  },
14685
14785
  onMove: function onMove(event) {
14686
- var cancel = typeof onBeforeMove === "function" ? onBeforeMove("column", null, event, _this81) : true;
14687
- _this81.$emit("column-drop-move", event, _this81);
14786
+ var cancel = typeof onBeforeMove === "function" ? onBeforeMove("column", null, event, _this80) : true;
14787
+ _this80.$emit("column-drop-move", event, _this80);
14688
14788
  return cancel === void 0 || cancel;
14689
14789
  }
14690
14790
  });
@@ -14692,7 +14792,7 @@ var Methods$4 = {
14692
14792
  },
14693
14793
  // 处理行拖拽
14694
14794
  rowDrop: function rowDrop(bodyEl) {
14695
- var _this82 = this;
14795
+ var _this81 = this;
14696
14796
  var _this$dropConfig = this.dropConfig, plugin = _this$dropConfig.plugin, onBeforeMove = _this$dropConfig.onBeforeMove, filter2 = _this$dropConfig.filter, _this$dropConfig$refr = _this$dropConfig.refresh, refresh = _this$dropConfig$refr === void 0 ? true : _this$dropConfig$refr, rowHandle = _this$dropConfig.rowHandle, trigger = _this$dropConfig.trigger;
14697
14797
  var rowDropContainer = bodyEl.querySelector(".tiny-grid__body tbody");
14698
14798
  var handle = trigger || ".tiny-grid-body__row";
@@ -14707,15 +14807,15 @@ var Methods$4 = {
14707
14807
  refresh
14708
14808
  }),
14709
14809
  onStart: function onStart(event) {
14710
- _this82.$emit("row-drop-start", event, _this82);
14810
+ _this81.$emit("row-drop-start", event, _this81);
14711
14811
  },
14712
14812
  onMove: function onMove(event) {
14713
- var insertRecords = _this82.getInsertRecords();
14813
+ var insertRecords = _this81.getInsertRecords();
14714
14814
  if (insertRecords.length) return false;
14715
14815
  var dragged = event.dragged;
14716
- var selfRow = _this82.getRowNode(dragged).item;
14717
- var cancel = typeof onBeforeMove === "function" ? onBeforeMove("row", selfRow, event, _this82) : true;
14718
- _this82.$emit("row-drop-move", event, _this82);
14816
+ var selfRow = _this81.getRowNode(dragged).item;
14817
+ var cancel = typeof onBeforeMove === "function" ? onBeforeMove("row", selfRow, event, _this81) : true;
14818
+ _this81.$emit("row-drop-move", event, _this81);
14719
14819
  return cancel === void 0 || cancel;
14720
14820
  }
14721
14821
  });
@@ -14735,8 +14835,8 @@ var Sort = {
14735
14835
  Object.assign(host.methods, Methods$3);
14736
14836
  }
14737
14837
  };
14738
- function createTooltipRange(_ref223) {
14739
- var _vm = _ref223._vm, cell = _ref223.cell, column = _ref223.column, isHeader = _ref223.isHeader;
14838
+ function createTooltipRange(_ref224) {
14839
+ var _vm = _ref224._vm, cell = _ref224.cell, column = _ref224.column, isHeader = _ref224.isHeader;
14740
14840
  var range = document.createRange();
14741
14841
  var rangeEnd;
14742
14842
  range.setStart(cell, 0);
@@ -14754,8 +14854,8 @@ function createTooltipRange(_ref223) {
14754
14854
  range.setEnd(cell, rangeEnd);
14755
14855
  return range;
14756
14856
  }
14757
- function processContentMethod(_ref224) {
14758
- var _vm = _ref224._vm, column = _ref224.column, content = _ref224.content, contentMethod = _ref224.contentMethod, event = _ref224.event, isHeader = _ref224.isHeader, row2 = _ref224.row, showTip = _ref224.showTip;
14857
+ function processContentMethod(_ref225) {
14858
+ var _vm = _ref225._vm, column = _ref225.column, content = _ref225.content, contentMethod = _ref225.contentMethod, event = _ref225.event, isHeader = _ref225.isHeader, row2 = _ref225.row, showTip = _ref225.showTip;
14759
14859
  if (contentMethod) {
14760
14860
  _vm.tooltipContent = contentMethod({
14761
14861
  event,
@@ -14907,15 +15007,15 @@ var Tooltip = {
14907
15007
  Object.assign(host.methods, Methods$2);
14908
15008
  }
14909
15009
  };
14910
- function onHalfSelectionProperty(_ref225) {
14911
- var checkStrictly = _ref225.checkStrictly, property = _ref225.property, row2 = _ref225.row, treeConfig = _ref225.treeConfig, treeIndeterminates = _ref225.treeIndeterminates, value = _ref225.value;
15010
+ function onHalfSelectionProperty(_ref226) {
15011
+ var checkStrictly = _ref226.checkStrictly, property = _ref226.property, row2 = _ref226.row, treeConfig = _ref226.treeConfig, treeIndeterminates = _ref226.treeIndeterminates, value = _ref226.value;
14912
15012
  if (property && treeConfig && !checkStrictly && value === -1) {
14913
15013
  treeIndeterminates.push(row2);
14914
15014
  set(row2, property, false);
14915
15015
  }
14916
15016
  }
14917
- function onFullSelectionProperty(_ref226) {
14918
- var checkMethod = _ref226.checkMethod, checkStrictly = _ref226.checkStrictly, property = _ref226.property, row2 = _ref226.row, treeConfig = _ref226.treeConfig, treeIndeterminates = _ref226.treeIndeterminates, value = _ref226.value;
15017
+ function onFullSelectionProperty(_ref227) {
15018
+ var checkMethod = _ref227.checkMethod, checkStrictly = _ref227.checkStrictly, property = _ref227.property, row2 = _ref227.row, treeConfig = _ref227.treeConfig, treeIndeterminates = _ref227.treeIndeterminates, value = _ref227.value;
14919
15019
  if (property && treeConfig && !checkStrictly && value !== -1) {
14920
15020
  eachTree([row2], function(item, $rowIndex) {
14921
15021
  if (row2 === item || !checkMethod || checkMethod({
@@ -14930,8 +15030,8 @@ function onFullSelectionProperty(_ref226) {
14930
15030
  }, treeConfig);
14931
15031
  }
14932
15032
  }
14933
- function getVItemsOnParentSlctProp(_ref227) {
14934
- var checkMethod = _ref227.checkMethod, matchObj = _ref227.matchObj;
15033
+ function getVItemsOnParentSlctProp(_ref228) {
15034
+ var checkMethod = _ref228.checkMethod, matchObj = _ref228.matchObj;
14935
15035
  var tinyItems;
14936
15036
  if (checkMethod) {
14937
15037
  tinyItems = matchObj.items.filter(function(item, $rowIndex) {
@@ -14945,8 +15045,8 @@ function getVItemsOnParentSlctProp(_ref227) {
14945
15045
  }
14946
15046
  return tinyItems;
14947
15047
  }
14948
- function getParentStatusOnParentSlctProp(_ref228) {
14949
- var indeterminatesItem = _ref228.indeterminatesItem, matchObj = _ref228.matchObj, property = _ref228.property, vItems = _ref228.vItems, value = _ref228.value;
15048
+ function getParentStatusOnParentSlctProp(_ref229) {
15049
+ var indeterminatesItem = _ref229.indeterminatesItem, matchObj = _ref229.matchObj, property = _ref229.property, vItems = _ref229.vItems, value = _ref229.value;
14950
15050
  var parentStatus;
14951
15051
  if (indeterminatesItem) {
14952
15052
  parentStatus = -1;
@@ -14961,8 +15061,8 @@ function getParentStatusOnParentSlctProp(_ref228) {
14961
15061
  }
14962
15062
  return parentStatus;
14963
15063
  }
14964
- function onHalfSelection(_ref229) {
14965
- var checkStrictly = _ref229.checkStrictly, property = _ref229.property, row2 = _ref229.row, selection = _ref229.selection, treeConfig = _ref229.treeConfig, treeIndeterminates = _ref229.treeIndeterminates, value = _ref229.value;
15064
+ function onHalfSelection(_ref230) {
15065
+ var checkStrictly = _ref230.checkStrictly, property = _ref230.property, row2 = _ref230.row, selection = _ref230.selection, treeConfig = _ref230.treeConfig, treeIndeterminates = _ref230.treeIndeterminates, value = _ref230.value;
14966
15066
  if (!property && treeConfig && !checkStrictly && value === -1) {
14967
15067
  treeIndeterminates.push(row2);
14968
15068
  remove(selection, function(item) {
@@ -14973,8 +15073,8 @@ function onHalfSelection(_ref229) {
14973
15073
  var addSelection = function addSelection2(selection, item) {
14974
15074
  return !selection.includes(item) && selection.push(item);
14975
15075
  };
14976
- function onFullSelection(_ref230) {
14977
- var checkMethod = _ref230.checkMethod, checkStrictly = _ref230.checkStrictly, property = _ref230.property, row2 = _ref230.row, selection = _ref230.selection, treeConfig = _ref230.treeConfig, treeIndeterminates = _ref230.treeIndeterminates, value = _ref230.value;
15076
+ function onFullSelection(_ref231) {
15077
+ var checkMethod = _ref231.checkMethod, checkStrictly = _ref231.checkStrictly, property = _ref231.property, row2 = _ref231.row, selection = _ref231.selection, treeConfig = _ref231.treeConfig, treeIndeterminates = _ref231.treeIndeterminates, value = _ref231.value;
14978
15078
  if (!property && treeConfig && !checkStrictly && value !== -1) {
14979
15079
  eachTree([row2], function(item, $rowIndex) {
14980
15080
  if (row2 === item || !checkMethod || checkMethod({
@@ -14995,8 +15095,8 @@ function onFullSelection(_ref230) {
14995
15095
  }, treeConfig);
14996
15096
  }
14997
15097
  }
14998
- function getParentStatusOnParentSelection(_ref231) {
14999
- var indeterminatesItem = _ref231.indeterminatesItem, matchObj = _ref231.matchObj, selection = _ref231.selection, vItems = _ref231.vItems, value = _ref231.value;
15098
+ function getParentStatusOnParentSelection(_ref232) {
15099
+ var indeterminatesItem = _ref232.indeterminatesItem, matchObj = _ref232.matchObj, selection = _ref232.selection, vItems = _ref232.vItems, value = _ref232.value;
15000
15100
  var parentStatus;
15001
15101
  if (indeterminatesItem) {
15002
15102
  parentStatus = -1;
@@ -15009,8 +15109,8 @@ function getParentStatusOnParentSelection(_ref231) {
15009
15109
  }
15010
15110
  return parentStatus;
15011
15111
  }
15012
- function hasCheckField(_ref232, value, _vm) {
15013
- var row2 = _ref232.row;
15112
+ function hasCheckField(_ref233, value, _vm) {
15113
+ var row2 = _ref233.row;
15014
15114
  var tableFullData = _vm.tableFullData, _vm$selectConfig = _vm.selectConfig, selectConfig = _vm$selectConfig === void 0 ? {} : _vm$selectConfig, treeConfig = _vm.treeConfig, treeIndeterminates = _vm.treeIndeterminates;
15015
15115
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly, checkMethod = selectConfig.checkMethod;
15016
15116
  onHalfSelectionProperty({
@@ -15058,8 +15158,8 @@ function hasCheckField(_ref232, value, _vm) {
15058
15158
  set(row2, property, value);
15059
15159
  }
15060
15160
  }
15061
- function onSelectTreeCheckStrictly(_ref233, value, _vm) {
15062
- var row2 = _ref233.row;
15161
+ function onSelectTreeCheckStrictly(_ref234, value, _vm) {
15162
+ var row2 = _ref234.row;
15063
15163
  var selection = _vm.selection, tableFullData = _vm.tableFullData, _vm$selectConfig2 = _vm.selectConfig, selectConfig = _vm$selectConfig2 === void 0 ? {} : _vm$selectConfig2, treeConfig = _vm.treeConfig, treeIndeterminates = _vm.treeIndeterminates;
15064
15164
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly, checkMethod = selectConfig.checkMethod;
15065
15165
  onHalfSelection({
@@ -15103,8 +15203,8 @@ function onSelectTreeCheckStrictly(_ref233, value, _vm) {
15103
15203
  }
15104
15204
  }
15105
15205
  }
15106
- function onSelectOther(_ref234, value, _vm) {
15107
- var row2 = _ref234.row;
15206
+ function onSelectOther(_ref235, value, _vm) {
15207
+ var row2 = _ref235.row;
15108
15208
  var selection = _vm.selection, _vm$selectConfig3 = _vm.selectConfig, selectConfig = _vm$selectConfig3 === void 0 ? {} : _vm$selectConfig3, treeConfig = _vm.treeConfig;
15109
15209
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly;
15110
15210
  if (!property && !(treeConfig && !checkStrictly)) {
@@ -15117,8 +15217,8 @@ function onSelectOther(_ref234, value, _vm) {
15117
15217
  }
15118
15218
  }
15119
15219
  }
15120
- function hasNoCheckField(_ref235, value, _vm) {
15121
- var row2 = _ref235.row;
15220
+ function hasNoCheckField(_ref236, value, _vm) {
15221
+ var row2 = _ref236.row;
15122
15222
  onSelectTreeCheckStrictly({
15123
15223
  row: row2
15124
15224
  }, value, _vm);
@@ -15126,8 +15226,8 @@ function hasNoCheckField(_ref235, value, _vm) {
15126
15226
  row: row2
15127
15227
  }, value, _vm);
15128
15228
  }
15129
- function pushSelectRow(_ref236) {
15130
- var afterFullData = _ref236.afterFullData, checkMethod = _ref236.checkMethod, checkStrictly = _ref236.checkStrictly; _ref236.property; var selectRows = _ref236.selectRows, selection = _ref236.selection, treeConfig = _ref236.treeConfig, value = _ref236.value;
15229
+ function pushSelectRow(_ref237) {
15230
+ var afterFullData = _ref237.afterFullData, checkMethod = _ref237.checkMethod, checkStrictly = _ref237.checkStrictly; _ref237.property; var selectRows = _ref237.selectRows, selection = _ref237.selection, treeConfig = _ref237.treeConfig, value = _ref237.value;
15131
15231
  if (!checkStrictly && value) {
15132
15232
  eachTree(afterFullData, function(row2, $rowIndex) {
15133
15233
  if (!checkMethod || checkMethod({
@@ -15149,8 +15249,8 @@ function pushSelectRow(_ref236) {
15149
15249
  }, treeConfig);
15150
15250
  }
15151
15251
  }
15152
- function hasCheckFieldNoStrictly(_ref237) {
15153
- var afterFullData = _ref237.afterFullData, checkMethod = _ref237.checkMethod, checkStrictly = _ref237.checkStrictly, property = _ref237.property, selection = _ref237.selection, treeConfig = _ref237.treeConfig, value = _ref237.value;
15252
+ function hasCheckFieldNoStrictly(_ref238) {
15253
+ var afterFullData = _ref238.afterFullData, checkMethod = _ref238.checkMethod, checkStrictly = _ref238.checkStrictly, property = _ref238.property, selection = _ref238.selection, treeConfig = _ref238.treeConfig, value = _ref238.value;
15154
15254
  if (!checkStrictly && property) {
15155
15255
  var indexKey = (treeConfig ? "$" : "") + "rowIndex";
15156
15256
  var setValFn = function setValFn2(row2, rowIndex) {
@@ -15176,8 +15276,8 @@ function hasCheckFieldNoStrictly(_ref237) {
15176
15276
  }
15177
15277
  }
15178
15278
  }
15179
- function filterSelectRow(_ref238) {
15180
- var afterFullData = _ref238.afterFullData, checkMethod = _ref238.checkMethod, checkStrictly = _ref238.checkStrictly, selectRows = _ref238.selectRows, selection = _ref238.selection, value = _ref238.value;
15279
+ function filterSelectRow(_ref239) {
15280
+ var afterFullData = _ref239.afterFullData, checkMethod = _ref239.checkMethod, checkStrictly = _ref239.checkStrictly, selectRows = _ref239.selectRows, selection = _ref239.selection, value = _ref239.value;
15181
15281
  if (!checkStrictly && value && checkMethod) {
15182
15282
  selectRows = afterFullData.filter(function(row2, rowIndex) {
15183
15283
  return selection.includes(row2) || checkMethod({
@@ -15199,8 +15299,8 @@ function filterSelectRow(_ref238) {
15199
15299
  }
15200
15300
  return selectRows;
15201
15301
  }
15202
- function hasNoCheckFieldNoStrictly(_ref239) {
15203
- var afterFullData = _ref239.afterFullData, checkMethod = _ref239.checkMethod, checkStrictly = _ref239.checkStrictly, property = _ref239.property, selection = _ref239.selection, treeConfig = _ref239.treeConfig, value = _ref239.value;
15302
+ function hasNoCheckFieldNoStrictly(_ref240) {
15303
+ var afterFullData = _ref240.afterFullData, checkMethod = _ref240.checkMethod, checkStrictly = _ref240.checkStrictly, property = _ref240.property, selection = _ref240.selection, treeConfig = _ref240.treeConfig, value = _ref240.value;
15204
15304
  var selectRows = [];
15205
15305
  if (treeConfig) {
15206
15306
  pushSelectRow({
@@ -15225,8 +15325,8 @@ function hasNoCheckFieldNoStrictly(_ref239) {
15225
15325
  }
15226
15326
  return selectRows;
15227
15327
  }
15228
- function setSelectionNoStrictly(_ref240) {
15229
- var _vm = _ref240._vm, checkStrictly = _ref240.checkStrictly, reserve = _ref240.reserve, selectRows = _ref240.selectRows, selection = _ref240.selection, value = _ref240.value, afterFullData = _ref240.afterFullData;
15328
+ function setSelectionNoStrictly(_ref241) {
15329
+ var _vm = _ref241._vm, checkStrictly = _ref241.checkStrictly, reserve = _ref241.reserve, selectRows = _ref241.selectRows, selection = _ref241.selection, value = _ref241.value, afterFullData = _ref241.afterFullData;
15230
15330
  if (!checkStrictly) {
15231
15331
  if (reserve) {
15232
15332
  var unCheckedRows = afterFullData.filter(function(row2) {
@@ -15246,7 +15346,7 @@ var Methods$1 = {
15246
15346
  // 处理默认勾选
15247
15347
  handleSelectionDefChecked: function handleSelectionDefChecked() {
15248
15348
  var fullDataRowIdData = this.fullDataRowIdData;
15249
- var _ref241 = this.selectConfig || {}, checkAll = _ref241.checkAll, checkRowKeys = _ref241.checkRowKeys;
15349
+ var _ref242 = this.selectConfig || {}, checkAll = _ref242.checkAll, checkRowKeys = _ref242.checkRowKeys;
15250
15350
  if (checkAll) {
15251
15351
  this.setAllSelection(true);
15252
15352
  return;
@@ -15266,13 +15366,13 @@ var Methods$1 = {
15266
15366
  }
15267
15367
  },
15268
15368
  setSelection: function setSelection(rows, value) {
15269
- var _this83 = this;
15369
+ var _this82 = this;
15270
15370
  if (rows) {
15271
15371
  if (!isArray(rows)) {
15272
15372
  rows = [rows];
15273
15373
  }
15274
15374
  rows.forEach(function(row2) {
15275
- return _this83.handleSelectRow({
15375
+ return _this82.handleSelectRow({
15276
15376
  row: row2
15277
15377
  }, !!value);
15278
15378
  });
@@ -15280,8 +15380,8 @@ var Methods$1 = {
15280
15380
  return this.$nextTick();
15281
15381
  },
15282
15382
  // 多选,行选中事件。value:选中true、不选false、不确定-1
15283
- handleSelectRow: function handleSelectRow(_ref242, value) {
15284
- var row2 = _ref242.row;
15383
+ handleSelectRow: function handleSelectRow(_ref243, value) {
15384
+ var row2 = _ref243.row;
15285
15385
  hasCheckField({
15286
15386
  row: row2
15287
15387
  }, value, this);
@@ -15292,7 +15392,7 @@ var Methods$1 = {
15292
15392
  },
15293
15393
  handleToggleCheckRowEvent: function handleToggleCheckRowEvent(params, event) {
15294
15394
  var selection = this.selection;
15295
- var _ref243 = this.selectConfig || {}, checkField = _ref243.checkField;
15395
+ var _ref244 = this.selectConfig || {}, checkField = _ref244.checkField;
15296
15396
  var row2 = params.row;
15297
15397
  var value = checkField ? !get(row2, checkField) : !~selection.indexOf(row2);
15298
15398
  if (event) {
@@ -15360,8 +15460,8 @@ var Methods$1 = {
15360
15460
  // 根据表格选中状态,给头部复现框赋值状态(全选,半选,未选)
15361
15461
  checkSelectionStatus: function checkSelectionStatus() {
15362
15462
  var afterFullData = this.afterFullData, selection = this.selection, treeIndeterminates = this.treeIndeterminates;
15363
- var _ref244 = this.selectConfig || {}, checkField = _ref244.checkField, checkMethod = _ref244.checkMethod;
15364
- var _ref245 = {}, everyHandler = _ref245.everyHandler, someHandler = _ref245.someHandler;
15463
+ var _ref245 = this.selectConfig || {}, checkField = _ref245.checkField, checkMethod = _ref245.checkMethod;
15464
+ var _ref246 = {}, everyHandler = _ref246.everyHandler, someHandler = _ref246.someHandler;
15365
15465
  if (checkField) {
15366
15466
  everyHandler = checkMethod ? function(row2, rowIndex) {
15367
15467
  return !checkMethod({
@@ -15410,7 +15510,7 @@ var Methods$1 = {
15410
15510
  // 保留选中状态
15411
15511
  reserveCheckSelection: function reserveCheckSelection() {
15412
15512
  var fullDataRowIdData = this.fullDataRowIdData, selection = this.selection;
15413
- var _ref246 = this.selectConfig || {}, reserve = _ref246.reserve;
15513
+ var _ref247 = this.selectConfig || {}, reserve = _ref247.reserve;
15414
15514
  var rowkey = getRowkey(this);
15415
15515
  if (reserve && selection.length) {
15416
15516
  this.selection = selection.map(function(row2) {
@@ -15438,7 +15538,7 @@ var Methods$1 = {
15438
15538
  },
15439
15539
  clearSelection: function clearSelection() {
15440
15540
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
15441
- var _ref247 = this.selectConfig || {}, checkField = _ref247.checkField;
15541
+ var _ref248 = this.selectConfig || {}, checkField = _ref248.checkField;
15442
15542
  if (checkField) {
15443
15543
  treeConfig ? eachTree(tableFullData, function(item) {
15444
15544
  return set(item, checkField, false);
@@ -15564,9 +15664,9 @@ var Checkbox = {
15564
15664
  };
15565
15665
  var Methods = {
15566
15666
  // 展开树节点事件
15567
- triggerTreeExpandEvent: function triggerTreeExpandEvent(event, _ref248) {
15568
- var _this84 = this;
15569
- var row2 = _ref248.row;
15667
+ triggerTreeExpandEvent: function triggerTreeExpandEvent(event, _ref249) {
15668
+ var _this83 = this;
15669
+ var row2 = _ref249.row;
15570
15670
  var currentColumn = this.currentColumn, currentRow = this.currentRow;
15571
15671
  var rest = this.toggleTreeExpansion(row2);
15572
15672
  var eventParams = {
@@ -15577,9 +15677,9 @@ var Methods = {
15577
15677
  emitEvent(this, "toggle-tree-change", [eventParams, event]);
15578
15678
  this.$nextTick(function() {
15579
15679
  if (currentRow) {
15580
- _this84.setCurrentRow(currentRow);
15680
+ _this83.setCurrentRow(currentRow);
15581
15681
  } else if (currentColumn) {
15582
- _this84.setCurrentColumn(currentColumn);
15682
+ _this83.setCurrentColumn(currentColumn);
15583
15683
  }
15584
15684
  });
15585
15685
  return rest;
@@ -15590,7 +15690,7 @@ var Methods = {
15590
15690
  },
15591
15691
  // 处理默认展开树节点
15592
15692
  handleDefaultTreeExpand: function handleDefaultTreeExpand() {
15593
- var _this85 = this;
15693
+ var _this84 = this;
15594
15694
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
15595
15695
  if (!treeConfig) return;
15596
15696
  var children = treeConfig.children, expandAll = treeConfig.expandAll, rowids = treeConfig.expandRowKeys;
@@ -15603,7 +15703,7 @@ var Methods = {
15603
15703
  filterTree(tableFullData, function(row2) {
15604
15704
  return isNonEmptyArr(row2[children]) && treeExpandeds.push(row2);
15605
15705
  }, treeConfig);
15606
- _this85.treeExpandeds = treeExpandeds;
15706
+ _this84.treeExpandeds = treeExpandeds;
15607
15707
  };
15608
15708
  var doExpandRows = function doExpandRows2() {
15609
15709
  rowids.forEach(function(rowid2) {
@@ -15612,7 +15712,7 @@ var Methods = {
15612
15712
  }, treeConfig);
15613
15713
  matchObj && isNonEmptyArr(matchObj.item[children]) && treeExpandeds.push(matchObj.item);
15614
15714
  });
15615
- _this85.treeExpandeds = treeExpandeds;
15715
+ _this84.treeExpandeds = treeExpandeds;
15616
15716
  };
15617
15717
  expandAll ? doExpandAll() : rowids ? doExpandRows() : "";
15618
15718
  graphFullData(this);
@@ -15677,12 +15777,12 @@ var Methods = {
15677
15777
  return ~this.treeExpandeds.indexOf(row2);
15678
15778
  },
15679
15779
  clearTreeExpand: function clearTreeExpand() {
15680
- var _this86 = this;
15780
+ var _this85 = this;
15681
15781
  var hasExpand = this.treeExpandeds.length;
15682
15782
  this.treeExpandeds = [];
15683
15783
  graphFullData(this);
15684
15784
  return this.handleTableData().then(function() {
15685
- return hasExpand ? _this86.recalculate() : 0;
15785
+ return hasExpand ? _this85.recalculate() : 0;
15686
15786
  });
15687
15787
  },
15688
15788
  getTreeExpandeds: function getTreeExpandeds() {