@opentinyvue/vue-grid 2.25.0 → 2.26.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 { throttle, addClass, removeClass, debounce, PopupManager, PopperJS, extend, browserInfo, isObject, isEmptyObject, isServer, getDataset, random, isNull, fastdom, toDecimal, logger, tryToCurrency, tryToDecimal, tryToInt, toFileSize, truncate, toRate, isNumber as isNumber$1, toBoolValue, on, toDate, getDateWithNewTimezone, isDate, formatDateByPattern, toDateStr, off, Validator as Validator$1, getObj, getStyle, preventDefault, callInterceptor, hasClass } from '@opentinyvue/utils';
4
+ import { throttle, addClass, removeClass, debounce, PopupManager, PopperJS, extend, browserInfo, isObject, isEmptyObject, isServer, getDataset, random, isNull, getActualTarget, fastdom, toDecimal, logger, tryToCurrency, tryToDecimal, tryToInt, toFileSize, truncate, toRate, isNumber as isNumber$1, toBoolValue, on, toDate, getDateWithNewTimezone, isDate, formatDateByPattern, toDateStr, off, Validator as Validator$1, getObj, getStyle, preventDefault, 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/';
@@ -122,7 +122,7 @@ function _regenerator() {
122
122
  var e, t2, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
123
123
  function i(r2, n2, o2, i2) {
124
124
  var c2 = n2 && n2.prototype instanceof Generator ? n2 : Generator, u2 = Object.create(c2.prototype);
125
- return _regeneratorDefine2(u2, "_invoke", function(r3, n3, o3) {
125
+ return _regeneratorDefine2(u2, "_invoke", (function(r3, n3, o3) {
126
126
  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) {
127
127
  return i3 = t3, c3 = 0, u3 = e, G.n = r4, a;
128
128
  } };
@@ -155,7 +155,7 @@ function _regenerator() {
155
155
  }
156
156
  return { value: t2, done: y };
157
157
  };
158
- }(r2, o2, i2), true), u2;
158
+ })(r2, o2, i2), true), u2;
159
159
  }
160
160
  var a = {};
161
161
  function Generator() {
@@ -187,15 +187,12 @@ function _regeneratorDefine2(e, r, n, t2) {
187
187
  i = 0;
188
188
  }
189
189
  _regeneratorDefine2 = function _regeneratorDefine(e2, r2, n2, t3) {
190
- if (r2) i ? i(e2, r2, { value: n2, enumerable: !t3, configurable: !t3, writable: !t3 }) : e2[r2] = n2;
191
- else {
192
- var o = function o2(r3, n3) {
193
- _regeneratorDefine2(e2, r3, function(e3) {
194
- return this._invoke(r3, n3, e3);
195
- });
196
- };
197
- o("next", 0), o("throw", 1), o("return", 2);
190
+ function o(r3, n3) {
191
+ _regeneratorDefine2(e2, r3, function(e3) {
192
+ return this._invoke(r3, n3, e3);
193
+ });
198
194
  }
195
+ 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));
199
196
  }, _regeneratorDefine2(e, r, n, t2);
200
197
  }
201
198
  function asyncGeneratorStep(n, t2, e, r, o, a, c) {
@@ -271,7 +268,8 @@ var GlobalConfig$1 = {
271
268
  editConfig: {
272
269
  trigger: "click",
273
270
  mode: "cell",
274
- showStatus: true
271
+ showStatus: true,
272
+ validateOnActive: true
275
273
  },
276
274
  // 默认开启点击头部单元格触发排序
277
275
  sortConfig: {
@@ -683,8 +681,8 @@ function defaultFilterRender(h2, renderOpts, params, context) {
683
681
  function defaultFilterMethod(_ref2) {
684
682
  var option = _ref2.option, row2 = _ref2.row, column = _ref2.column;
685
683
  var cellValue = get(row2, column.property);
686
- var data6 = option.data;
687
- return cellValue == data6;
684
+ var data7 = option.data;
685
+ return cellValue == data7;
688
686
  }
689
687
  function renderSelectEdit(h2, renderOpts, params, context) {
690
688
  var column = params.column, $table = params.$table, row2 = params.row;
@@ -894,10 +892,10 @@ var Formatter = {
894
892
  label: "label",
895
893
  value: "value"
896
894
  }, this.own.formatConfig);
897
- var data6 = Array.isArray(format2.data) && find$1(format2.data, function(item) {
895
+ var data7 = Array.isArray(format2.data) && find$1(format2.data, function(item) {
898
896
  return item[format2.value] === value;
899
897
  });
900
- return data6 ? data6[format2.label] : "";
898
+ return data7 ? data7[format2.label] : "";
901
899
  },
902
900
  select: function select(cellValue) {
903
901
  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;
@@ -1819,9 +1817,9 @@ var _getTreeLength = function getTreeLength(tree, childrenKey) {
1819
1817
  return length;
1820
1818
  };
1821
1819
  var getTiledLength = function getTiledLength2(props) {
1822
- var data6 = props.data || [];
1820
+ var data7 = props.data || [];
1823
1821
  var _ref14 = props.treeConfig || {}, childrenKey = _ref14.children;
1824
- return props.treeConfig ? _getTreeLength(data6, childrenKey) : data6.length;
1822
+ return props.treeConfig ? _getTreeLength(data7, childrenKey) : data7.length;
1825
1823
  };
1826
1824
  var useData = function useData2(props) {
1827
1825
  var _hooks$getCurrentInst3;
@@ -2439,7 +2437,7 @@ var doSpan = function doSpan2(_ref31) {
2439
2437
  attrs.visible = rowspan > 0 && colspan > 0;
2440
2438
  };
2441
2439
  var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2442
- var row2 = _ref33.row, $rowIndex = _ref33.$rowIndex, column = _ref33.column, data6 = _ref33.data;
2440
+ var row2 = _ref33.row, $rowIndex = _ref33.$rowIndex, column = _ref33.column, data7 = _ref33.data;
2443
2441
  var fields = [];
2444
2442
  if (column.visible && rowSpan) {
2445
2443
  rowSpan.forEach(function(item) {
@@ -2447,8 +2445,8 @@ var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2447
2445
  });
2448
2446
  var cellVal = row2[column.property];
2449
2447
  if (cellVal && fields.includes(column.property)) {
2450
- var prevSiblingRow = data6[$rowIndex - 1];
2451
- var nextSiblingRow = data6[$rowIndex + 1];
2448
+ var prevSiblingRow = data7[$rowIndex - 1];
2449
+ var nextSiblingRow = data7[$rowIndex + 1];
2452
2450
  if ((prevSiblingRow == null ? void 0 : prevSiblingRow[column.property]) === cellVal) {
2453
2451
  return {
2454
2452
  rowspan: 0,
@@ -2458,7 +2456,7 @@ var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2458
2456
  var rowspanCount = 1;
2459
2457
  while (((_nextSiblingRow = nextSiblingRow) == null ? void 0 : _nextSiblingRow[column.property]) === cellVal) {
2460
2458
  var _nextSiblingRow;
2461
- nextSiblingRow = data6[++rowspanCount + $rowIndex];
2459
+ nextSiblingRow = data7[++rowspanCount + $rowIndex];
2462
2460
  }
2463
2461
  if (rowspanCount > 1) {
2464
2462
  return {
@@ -3002,8 +3000,12 @@ function renderRows(_vm) {
3002
3000
  value: 0
3003
3001
  };
3004
3002
  var $seq = "";
3005
- rowPool.forEach(function(_ref48, $rowIndex) {
3006
- var id3 = _ref48.id, _ref48$item = _ref48.item, row2 = _ref48$item.payload, rowLevel = _ref48$item.level, used = _ref48.used;
3003
+ var lastVisibleIndex = rowPool.findLastIndex(function(_ref48) {
3004
+ var used = _ref48.used;
3005
+ return Boolean(used);
3006
+ });
3007
+ rowPool.forEach(function(_ref49, $rowIndex) {
3008
+ var id3 = _ref49.id, _ref49$item = _ref49.item, row2 = _ref49$item.payload, rowLevel = _ref49$item.level, used = _ref49.used;
3007
3009
  var rowActived = editConfig && actived.row === row2;
3008
3010
  var virtualRow = isVirtualRow(row2);
3009
3011
  var isSkipRowRender = hideMethod && hideMethod(row2, rowLevel) || virtualRow;
@@ -3040,7 +3042,8 @@ function renderRows(_vm) {
3040
3042
  isSkipRowRender,
3041
3043
  row: row2,
3042
3044
  rowActived,
3043
- rowClassName
3045
+ rowClassName,
3046
+ lastVisibleIndex
3044
3047
  };
3045
3048
  Object.assign(args, {
3046
3049
  rowIndex,
@@ -3124,8 +3127,8 @@ function renderRowExpanded(args) {
3124
3127
  }
3125
3128
  }
3126
3129
  }
3127
- function renderRowAfter(_ref49) {
3128
- var $table = _ref49.$table, _vm = _ref49._vm, row2 = _ref49.row, rowIndex = _ref49.rowIndex, rows = _ref49.rows, id3 = _ref49.id, used = _ref49.used;
3130
+ function renderRowAfter(_ref50) {
3131
+ var $table = _ref50.$table, _vm = _ref50._vm, row2 = _ref50.row, rowIndex = _ref50.rowIndex, rows = _ref50.rows, id3 = _ref50.id, used = _ref50.used;
3129
3132
  typeof $table.renderRowAfter === "function" && $table.renderRowAfter({
3130
3133
  rows,
3131
3134
  row: row2,
@@ -3137,9 +3140,9 @@ function renderRowAfter(_ref49) {
3137
3140
  }, h);
3138
3141
  }
3139
3142
  function renderRow(args) {
3140
- var _ref50;
3143
+ var _ref51;
3141
3144
  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;
3142
- 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;
3145
+ 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;
3143
3146
  if (isSkipRowRender) {
3144
3147
  return;
3145
3148
  }
@@ -3163,7 +3166,7 @@ function renderRow(args) {
3163
3166
  "style": {
3164
3167
  display: used ? void 0 : "none"
3165
3168
  },
3166
- "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({
3169
+ "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({
3167
3170
  $table,
3168
3171
  $seq,
3169
3172
  seq,
@@ -3173,8 +3176,8 @@ function renderRow(args) {
3173
3176
  rowIndex,
3174
3177
  $rowIndex
3175
3178
  }) : rowClassName : ""]
3176
- }, [columnPool.map(function(_ref51, $columnIndex) {
3177
- var id4 = _ref51.id, column = _ref51.item, used2 = _ref51.used;
3179
+ }, [columnPool.map(function(_ref52, $columnIndex) {
3180
+ var id4 = _ref52.id, column = _ref52.item, used2 = _ref52.used;
3178
3181
  return renderColumn({
3179
3182
  $columnIndex,
3180
3183
  $table,
@@ -3188,8 +3191,8 @@ function renderRow(args) {
3188
3191
  });
3189
3192
  })]));
3190
3193
  }
3191
- function renderRowGroupTds(_ref52) {
3192
- var $table = _ref52.$table, closeable = _ref52.closeable, render19 = _ref52.render, renderGroupCell = _ref52.renderGroupCell, row2 = _ref52.row, tds = _ref52.tds, title = _ref52.title, _vm = _ref52._vm;
3194
+ function renderRowGroupTds(_ref53) {
3195
+ var $table = _ref53.$table, closeable = _ref53.closeable, render19 = _ref53.render, renderGroupCell = _ref53.renderGroupCell, row2 = _ref53.row, tds = _ref53.tds, title = _ref53.title, _vm = _ref53._vm;
3193
3196
  var targetColumn = $table._rowGroupTargetColumn;
3194
3197
  var value = row2.value || "";
3195
3198
  var columnPool = _vm.columnPool;
@@ -3230,8 +3233,8 @@ function renderRowGroupTds(_ref52) {
3230
3233
  }, [row2.children.length])]) : renderGroupCell ? renderGroupCell(h, params) : null])]));
3231
3234
  }
3232
3235
  }
3233
- function renderRowGroupData(_ref53) {
3234
- 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;
3236
+ function renderRowGroupData(_ref54) {
3237
+ 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;
3235
3238
  if (!virtualRow) return;
3236
3239
  var title = rowGroup.title, _rowGroup$closeable2 = rowGroup.closeable, closeable = _rowGroup$closeable2 === void 0 ? true : _rowGroup$closeable2, render19 = rowGroup.render, renderGroupCell = rowGroup.renderGroupCell, className = rowGroup.className;
3237
3240
  var tds = [];
@@ -3276,8 +3279,8 @@ function renderRowGroupData(_ref53) {
3276
3279
  }
3277
3280
  }, [tds]));
3278
3281
  }
3279
- function renderTable(_ref54) {
3280
- var $table = _ref54.$table, _vm = _ref54._vm;
3282
+ function renderTable(_ref55) {
3283
+ var $table = _ref55.$table, _vm = _ref55._vm;
3281
3284
  var tableLayout = $table.tableLayout, scrollXLoad = $table.scrollXLoad, scrollYLoad = $table.scrollYLoad, bodyTableWidth = $table.bodyTableWidth, isColumnWidthAssigned = $table.isColumnWidthAssigned;
3282
3285
  var columnPool = _vm.columnPool, isNoData = _vm.isNoData;
3283
3286
  if (!isColumnWidthAssigned) {
@@ -3300,8 +3303,8 @@ function renderTable(_ref54) {
3300
3303
  // 列分组(用于指定列宽)
3301
3304
  h("colgroup", {
3302
3305
  "ref": "colgroup"
3303
- }, [columnPool.map(function(_ref55) {
3304
- var id3 = _ref55.id, column = _ref55.item, used = _ref55.used;
3306
+ }, [columnPool.map(function(_ref56) {
3307
+ var id3 = _ref56.id, column = _ref56.item, used = _ref56.used;
3305
3308
  return h("col", {
3306
3309
  "key": id3,
3307
3310
  "attrs": {
@@ -3401,9 +3404,9 @@ var Body = defineComponent({
3401
3404
  tableData: Array,
3402
3405
  footerData: Array
3403
3406
  },
3404
- setup: function setup3(props, _ref56) {
3407
+ setup: function setup3(props, _ref57) {
3405
3408
  var _hooks$getCurrentInst4;
3406
- var slots = _ref56.slots;
3409
+ var slots = _ref57.slots;
3407
3410
  var vm = (_hooks$getCurrentInst4 = hooks.getCurrentInstance()) == null ? void 0 : _hooks$getCurrentInst4.proxy;
3408
3411
  var $table = vm == null ? void 0 : vm.$parent;
3409
3412
  var rowHeight = hooks.computed(function() {
@@ -3643,18 +3646,18 @@ var Body = defineComponent({
3643
3646
  var $el = this.$el, $table = this.$parent;
3644
3647
  var dragClientX = event.clientX, dragBtnElem = event.target;
3645
3648
  var column = params.column;
3646
- 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;
3649
+ 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;
3647
3650
  var _$table$$refs = $table.$refs, resizeBarElem = _$table$$refs.resizeBar, tableBody = _$table$$refs.tableBody;
3648
- 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;
3649
- 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;
3651
+ 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;
3652
+ 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;
3650
3653
  var dragMinLeft = pos.left - cell.clientWidth + dragBtnWidth + minInterval;
3651
3654
  var dragPosLeft = pos.left + Math.floor(dragBtnWidth);
3652
- 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;
3655
+ 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;
3653
3656
  var handleMousemoveEvent = function handleMousemoveEvent2(event2) {
3654
3657
  var _$table$resizableConf;
3655
3658
  event2.stopPropagation();
3656
3659
  event2.preventDefault();
3657
- 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;
3660
+ 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;
3658
3661
  var scrollLeft = tableBodyElem.scrollLeft;
3659
3662
  dragLeft = Math.max(left, dragMinLeft);
3660
3663
  if ((_$table$resizableConf = $table.resizableConfig) != null && _$table$resizableConf.limit) {
@@ -3729,14 +3732,14 @@ var Radio = defineComponent({
3729
3732
  return this.size || this.$parent.size || this.$parent.vSize;
3730
3733
  }
3731
3734
  },
3732
- setup: function setup4(props, _ref62) {
3733
- var slots = _ref62.slots;
3735
+ setup: function setup4(props, _ref63) {
3736
+ var slots = _ref63.slots;
3734
3737
  return {
3735
3738
  slots
3736
3739
  };
3737
3740
  },
3738
3741
  render: function render2() {
3739
- var _ref63, _this2 = this;
3742
+ var _ref64, _this2 = this;
3740
3743
  var disabled = this.disabled, vSize3 = this.vSize, modelValue = this.modelValue, label = this.label, name = this.name;
3741
3744
  var $slots = this.slots;
3742
3745
  var disableClass = "disabled";
@@ -3753,7 +3756,7 @@ var Radio = defineComponent({
3753
3756
  return content;
3754
3757
  };
3755
3758
  return h("label", {
3756
- class: ["tiny-grid-radio", (_ref63 = {}, _ref63["size__" + vSize3] = vSize3, _ref63["is__" + disableClass] = disabled, _ref63)]
3759
+ class: ["tiny-grid-radio", (_ref64 = {}, _ref64["size__" + vSize3] = vSize3, _ref64["is__" + disableClass] = disabled, _ref64)]
3757
3760
  }, [h("input", {
3758
3761
  attrs: {
3759
3762
  type: "radio",
@@ -3785,8 +3788,8 @@ Radio.model = {
3785
3788
  event: "update:modelValue"
3786
3789
  };
3787
3790
  $install(Radio);
3788
- var renderInputArgs = function renderInputArgs2(_ref64) {
3789
- var _vm = _ref64._vm, inputFilter = _ref64.inputFilter;
3791
+ var renderInputArgs = function renderInputArgs2(_ref65) {
3792
+ var _vm = _ref65._vm, inputFilter = _ref65.inputFilter;
3790
3793
  var isAddbyProgram = false;
3791
3794
  if (typeof inputFilter.relations_addby !== "undefined") {
3792
3795
  isAddbyProgram = inputFilter.relations_addby === "program";
@@ -3814,9 +3817,9 @@ var renderInputArgs = function renderInputArgs2(_ref64) {
3814
3817
  inputRelations
3815
3818
  };
3816
3819
  };
3817
- var renderInputProps = function renderInputProps2(_ref65) {
3820
+ var renderInputProps = function renderInputProps2(_ref66) {
3818
3821
  var _on3;
3819
- var InputComponent = _ref65.InputComponent, condition2 = _ref65.condition, event = _ref65.event, inputFilter = _ref65.inputFilter, isNativeInput = _ref65.isNativeInput, prop = _ref65.prop;
3822
+ var InputComponent = _ref66.InputComponent, condition2 = _ref66.condition, event = _ref66.event, inputFilter = _ref66.inputFilter, isNativeInput = _ref66.isNativeInput, prop = _ref66.prop;
3820
3823
  var inputProps = {
3821
3824
  style: "width:100%",
3822
3825
  on: (_on3 = {}, _on3[event] = function(value) {
@@ -3862,8 +3865,8 @@ var iconRender = function iconRender2(checked, index2, halfChecked) {
3862
3865
  }])) : h(Check, _mergeJSXProps6([{}, props]));
3863
3866
  }
3864
3867
  };
3865
- var renderEnumableOptions = function renderEnumableOptions2(_ref66) {
3866
- var iconRender3 = _ref66.iconRender, _vm = _ref66._vm, filterStore = _ref66.filterStore, selectAll = _ref66.selectAll, searchable = _ref66.searchable;
3868
+ var renderEnumableOptions = function renderEnumableOptions2(_ref67) {
3869
+ var iconRender3 = _ref67.iconRender, _vm = _ref67._vm, filterStore = _ref67.filterStore, selectAll = _ref67.selectAll, searchable = _ref67.searchable;
3867
3870
  var resultList = filterStore.options.filter(function(value) {
3868
3871
  var _value$label;
3869
3872
  return (_value$label = value.label) == null ? void 0 : _value$label.toString().includes(filterStore.searchValue);
@@ -3952,7 +3955,7 @@ var Panel$1 = defineComponent({
3952
3955
  };
3953
3956
  },
3954
3957
  render: function render3() {
3955
- var _this3 = this, _ref67;
3958
+ var _this3 = this, _ref68;
3956
3959
  var h2 = arguments[0];
3957
3960
  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;
3958
3961
  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;
@@ -3974,9 +3977,9 @@ var Panel$1 = defineComponent({
3974
3977
  attrs: filterStore.attrs
3975
3978
  } : filterStore.attrs;
3976
3979
  return h2("div", _mergeJSXProps6([{}, wrapperAttrs, {
3977
- "class": ["tiny-grid__wrapper", "tiny-grid__filter-wrapper", "filter__prevent-default", (_ref67 = {
3980
+ "class": ["tiny-grid__wrapper", "tiny-grid__filter-wrapper", "filter__prevent-default", (_ref68 = {
3978
3981
  "tiny-grid__animat": optimizeOpts.animat
3979
- }, _ref67[map.filterActive] = filterStore.visible, _ref67["tiny-grid__filter-simple"] = layout2.includes("simple"), _ref67["filter-wrapper-saas"] = $table.isThemeSaas, _ref67)],
3982
+ }, _ref68[map.filterActive] = filterStore.visible, _ref68["tiny-grid__filter-simple"] = layout2.includes("simple"), _ref68["filter-wrapper-saas"] = $table.isThemeSaas, _ref68)],
3980
3983
  "style": filterStore.style
3981
3984
  }]), [filterStore.visible ? h2("div", {
3982
3985
  "class": ["tiny-grid__filter-body", {
@@ -4093,7 +4096,7 @@ var Panel$1 = defineComponent({
4093
4096
  renderExtends: function renderExtends() {
4094
4097
  var _this6 = this;
4095
4098
  var h2 = this.$createElement;
4096
- var filterStore = this.filterStore;
4099
+ var filterStore = this.filterStore, condition2 = this.condition;
4097
4100
  if (!filterStore.extends) {
4098
4101
  return null;
4099
4102
  }
@@ -4101,7 +4104,9 @@ var Panel$1 = defineComponent({
4101
4104
  "class": "tiny-grid__filter-panel filter-panel__clear"
4102
4105
  }, [filterStore.extends.map(function(item) {
4103
4106
  return h2("li", {
4104
- "class": "tiny-grid__filter-option",
4107
+ "class": ["tiny-grid__filter-option", {
4108
+ active: condition2.value === (item.value || item.label)
4109
+ }],
4105
4110
  "on": {
4106
4111
  "click": function click() {
4107
4112
  _this6.filterExtends(item);
@@ -4142,8 +4147,8 @@ var Panel$1 = defineComponent({
4142
4147
  "class": "tiny-grid__filter-panel"
4143
4148
  }, [isAddbyProgram ? null : h2("li", {
4144
4149
  "class": "tiny-grid__filter-option filter-option__radios"
4145
- }, [inputRelations.map(function(_ref68) {
4146
- var label = _ref68.label, value = _ref68.value, method = _ref68.method;
4150
+ }, [inputRelations.map(function(_ref69) {
4151
+ var label = _ref69.label, value = _ref69.value, method = _ref69.method;
4147
4152
  return h2(Radio, {
4148
4153
  "attrs": {
4149
4154
  "modelValue": condition2.relation,
@@ -4509,8 +4514,8 @@ var Panel$1 = defineComponent({
4509
4514
  });
4510
4515
  }
4511
4516
  });
4512
- function handleFilterConditionCustom(_ref69) {
4513
- var column = _ref69.column, condition2 = _ref69.condition, method = _ref69.method, property = _ref69.property, row2 = _ref69.row;
4517
+ function handleFilterConditionCustom(_ref70) {
4518
+ var column = _ref70.column, condition2 = _ref70.condition, method = _ref70.method, property = _ref70.property, row2 = _ref70.row;
4514
4519
  var ret = {
4515
4520
  flag: false,
4516
4521
  result: null
@@ -4525,8 +4530,8 @@ function handleFilterConditionCustom(_ref69) {
4525
4530
  }
4526
4531
  return ret;
4527
4532
  }
4528
- function handleFilterConditionExtend(_ref70) {
4529
- var column = _ref70.column, condition2 = _ref70.condition, property = _ref70.property, row2 = _ref70.row;
4533
+ function handleFilterConditionExtend(_ref71) {
4534
+ var column = _ref71.column, condition2 = _ref71.condition, property = _ref71.property, row2 = _ref71.row;
4530
4535
  var ret = {
4531
4536
  flag: false,
4532
4537
  result: null
@@ -4559,8 +4564,8 @@ function findRelationMethod(relation, relations) {
4559
4564
  return method;
4560
4565
  }
4561
4566
  }
4562
- function handleFilterRelations(_ref71) {
4563
- var inputFilter = _ref71.inputFilter;
4567
+ function handleFilterRelations(_ref72) {
4568
+ var inputFilter = _ref72.inputFilter;
4564
4569
  var relations = [];
4565
4570
  if (typeof inputFilter === "object" && Array.isArray(inputFilter.relations)) {
4566
4571
  relations = inputFilter.relations;
@@ -4573,8 +4578,8 @@ function modifyValueCheckStr(value) {
4573
4578
  }
4574
4579
  return value;
4575
4580
  }
4576
- function handleDefaultCheckStr(_ref72) {
4577
- 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;
4581
+ function handleDefaultCheckStr(_ref73) {
4582
+ 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;
4578
4583
  if (typeof relationMethod !== "function") {
4579
4584
  relationMethod = findRelationMethod(relation, relations);
4580
4585
  }
@@ -4591,8 +4596,8 @@ function handleDefaultCheckStr(_ref72) {
4591
4596
  result
4592
4597
  };
4593
4598
  }
4594
- function handleFilterCheckStr(_ref73) {
4595
- var column = _ref73.column, relationMethod = _ref73.relationMethod, relations = _ref73.relations, row2 = _ref73.row;
4599
+ function handleFilterCheckStr(_ref74) {
4600
+ var column = _ref74.column, relationMethod = _ref74.relationMethod, relations = _ref74.relations, row2 = _ref74.row;
4596
4601
  return function(value, input, relation, dateList) {
4597
4602
  var result = false;
4598
4603
  value = modifyValueCheckStr(value);
@@ -4645,8 +4650,8 @@ function handleFilterCheckStr(_ref73) {
4645
4650
  return result;
4646
4651
  };
4647
4652
  }
4648
- function handleFilterCheck(_ref74) {
4649
- 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;
4653
+ function handleFilterCheck(_ref75) {
4654
+ 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;
4650
4655
  return function() {
4651
4656
  var value = get(row2, property);
4652
4657
  if (empty === true) {
@@ -4818,8 +4823,8 @@ var Methods$f = {
4818
4823
  });
4819
4824
  return check();
4820
4825
  },
4821
- getOptions: function getOptions(_ref75) {
4822
- var property = _ref75.property, filter2 = _ref75.filter;
4826
+ getOptions: function getOptions(_ref76) {
4827
+ var property = _ref76.property, filter2 = _ref76.filter;
4823
4828
  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;
4824
4829
  if (typeof values === "function") {
4825
4830
  return values({
@@ -4885,8 +4890,8 @@ var Methods$f = {
4885
4890
  args: params
4886
4891
  }, filter2, {
4887
4892
  defaultFilter: isBoolean(filter2.defaultFilter) ? filter2.defaultFilter : true,
4888
- options: options.map(function(_ref76) {
4889
- var value = _ref76.value, label = _ref76.label;
4893
+ options: options.map(function(_ref77) {
4894
+ var value = _ref77.value, label = _ref77.label;
4890
4895
  return {
4891
4896
  value,
4892
4897
  label,
@@ -5064,8 +5069,8 @@ var Children = defineComponent({
5064
5069
  }
5065
5070
  }
5066
5071
  });
5067
- var onMenuItem = function onMenuItem2(_ref77) {
5068
- var tableInstance = _ref77.tableInstance, item = _ref77.item, getEventTargetNode2 = _ref77.getEventTargetNode, toKebab2 = _ref77.toKebab;
5072
+ var onMenuItem = function onMenuItem2(_ref78) {
5073
+ var tableInstance = _ref78.tableInstance, item = _ref78.item, getEventTargetNode2 = _ref78.getEventTargetNode, toKebab2 = _ref78.toKebab;
5069
5074
  return {
5070
5075
  click: function click(event) {
5071
5076
  tableInstance.ctxMenuLinkEvent(event, item);
@@ -5120,8 +5125,8 @@ function createMenuItem(args) {
5120
5125
  }
5121
5126
  return res;
5122
5127
  }
5123
- function getMenuItemCreator(_ref78) {
5124
- var ctxMenuStore = _ref78.ctxMenuStore, getEventTargetNode2 = _ref78.getEventTargetNode, tableInstance = _ref78.tableInstance, toKebab2 = _ref78.toKebab;
5128
+ function getMenuItemCreator(_ref79) {
5129
+ var ctxMenuStore = _ref79.ctxMenuStore, getEventTargetNode2 = _ref79.getEventTargetNode, tableInstance = _ref79.tableInstance, toKebab2 = _ref79.toKebab;
5125
5130
  return function(options, gIndex) {
5126
5131
  return h("ul", {
5127
5132
  class: "tiny-grid-menu__option-wrapper",
@@ -5190,9 +5195,9 @@ var Methods$e = {
5190
5195
  return this.$nextTick();
5191
5196
  },
5192
5197
  // 处理菜单的移动
5193
- moveCtxMenu: function moveCtxMenu(_ref79) {
5198
+ moveCtxMenu: function moveCtxMenu(_ref80) {
5194
5199
  var _this0 = this;
5195
- var event = _ref79.event, keyCode = _ref79.keyCode, ctxMenuStore = _ref79.ctxMenuStore, property = _ref79.property, operKey = _ref79.operKey, operRest = _ref79.operRest, menuList = _ref79.menuList;
5200
+ var event = _ref80.event, keyCode = _ref80.keyCode, ctxMenuStore = _ref80.ctxMenuStore, property = _ref80.property, operKey = _ref80.operKey, operRest = _ref80.operRest, menuList = _ref80.menuList;
5196
5201
  var selectIndex = findIndexOf(menuList, function(item) {
5197
5202
  return ctxMenuStore[property] === item;
5198
5203
  });
@@ -5433,16 +5438,16 @@ var Loading = defineComponent({
5433
5438
  }
5434
5439
  });
5435
5440
  $install(Loading);
5436
- function handleActivedCheckCell(_ref80) {
5437
- var actived = _ref80.actived, column = _ref80.column, editConfig = _ref80.editConfig, row2 = _ref80.row;
5441
+ function handleActivedCheckCell(_ref81) {
5442
+ var actived = _ref81.actived, column = _ref81.column, editConfig = _ref81.editConfig, row2 = _ref81.row;
5438
5443
  return actived.row !== row2 || (editConfig.mode === "cell" ? actived.column !== column : false);
5439
5444
  }
5440
- function handleActivedCanActive(_ref81) {
5441
- var editConfig = _ref81.editConfig, params = _ref81.params;
5445
+ function handleActivedCanActive(_ref82) {
5446
+ var editConfig = _ref82.editConfig, params = _ref82.params;
5442
5447
  return !(editConfig != null && editConfig.activeMethod) || editConfig.activeMethod(params);
5443
5448
  }
5444
- function handleActivedDoActive(_ref82) {
5445
- 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;
5449
+ function handleActivedDoActive(_ref83) {
5450
+ 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;
5446
5451
  if (canActive) {
5447
5452
  if (_vm.keyboardConfig || _vm.mouseConfig) {
5448
5453
  _vm.clearCopyed(event);
@@ -5469,14 +5474,14 @@ function handleActivedDoActive(_ref82) {
5469
5474
  }
5470
5475
  return type;
5471
5476
  }
5472
- function handleActivedClearActive(_ref83) {
5473
- var _vm = _ref83._vm, canActive = _ref83.canActive, event = _ref83.event;
5477
+ function handleActivedClearActive(_ref84) {
5478
+ var _vm = _ref84._vm, canActive = _ref84.canActive, event = _ref84.event;
5474
5479
  if (!canActive) {
5475
5480
  _vm.clearActived(event);
5476
5481
  }
5477
5482
  }
5478
- function handleActivedTryActive(_ref84) {
5479
- 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;
5483
+ function handleActivedTryActive(_ref85) {
5484
+ 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;
5480
5485
  if (editor && cell && !isActiveCell) {
5481
5486
  var oldColumn = actived.column;
5482
5487
  if (oldColumn !== column) {
@@ -5498,8 +5503,8 @@ var insertedField = GlobalConfig$1.constant.insertedField;
5498
5503
  var getCellRender = function getCellRender2(isTreeNode, treeCellRender, treeRender, context) {
5499
5504
  return context[isTreeNode ? treeCellRender : treeRender];
5500
5505
  };
5501
- function processRenderer(_ref85) {
5502
- var h2 = _ref85.h, params = _ref85.params, renderer = _ref85.renderer, value = _ref85.value;
5506
+ function processRenderer(_ref86) {
5507
+ var h2 = _ref86.h, params = _ref86.params, renderer = _ref86.renderer, value = _ref86.value;
5503
5508
  var result = {
5504
5509
  flag: false,
5505
5510
  vnodes: null
@@ -5524,13 +5529,13 @@ function processRenderer(_ref85) {
5524
5529
  }
5525
5530
  return result;
5526
5531
  }
5527
- function processAsyncColumn(_ref86) {
5528
- var $table = _ref86.$table, column = _ref86.column, format = _ref86.format, h2 = _ref86.h, params = _ref86.params, row2 = _ref86.row;
5532
+ function processAsyncColumn(_ref87) {
5533
+ var $table = _ref87.$table, column = _ref87.column, format = _ref87.format, h2 = _ref87.h, params = _ref87.params, row2 = _ref87.row;
5529
5534
  var result = {
5530
5535
  flag: false,
5531
5536
  vnodes: null
5532
5537
  };
5533
- var _ref87 = format.async || {}, fetch = _ref87.fetch, loadingText = _ref87.loadingText;
5538
+ var _ref88 = format.async || {}, fetch = _ref88.fetch, loadingText = _ref88.loadingText;
5534
5539
  if ($table.isAsyncColumn && row2[insertedField] !== true && typeof fetch === "function") {
5535
5540
  var cellText = row2[$table.getAsyncColumnName(column.property)];
5536
5541
  var loadingRender = loadingText || "loading ...";
@@ -5544,8 +5549,8 @@ function processAsyncColumn(_ref86) {
5544
5549
  }
5545
5550
  return result;
5546
5551
  }
5547
- function getColumnRuleTypeIndex(_ref88) {
5548
- var _vm = _ref88._vm, isTreeNode = _ref88.isTreeNode, renMaps = _ref88.renMaps, type = _ref88.type;
5552
+ function getColumnRuleTypeIndex(_ref89) {
5553
+ var _vm = _ref89._vm, isTreeNode = _ref89.isTreeNode, renMaps = _ref89.renMaps, type = _ref89.type;
5549
5554
  return {
5550
5555
  match: function match() {
5551
5556
  return type === "index";
@@ -5556,8 +5561,8 @@ function getColumnRuleTypeIndex(_ref88) {
5556
5561
  }
5557
5562
  };
5558
5563
  }
5559
- function getColumnRuleTypeRadio(_ref89) {
5560
- var _vm = _ref89._vm, isTreeNode = _ref89.isTreeNode, renMaps = _ref89.renMaps, type = _ref89.type;
5564
+ function getColumnRuleTypeRadio(_ref90) {
5565
+ var _vm = _ref90._vm, isTreeNode = _ref90.isTreeNode, renMaps = _ref90.renMaps, type = _ref90.type;
5561
5566
  return {
5562
5567
  match: function match() {
5563
5568
  return type === "radio";
@@ -5568,8 +5573,8 @@ function getColumnRuleTypeRadio(_ref89) {
5568
5573
  }
5569
5574
  };
5570
5575
  }
5571
- function getColumnRuleTypeSelection(_ref90) {
5572
- var _vm = _ref90._vm, isTreeNode = _ref90.isTreeNode, renMaps = _ref90.renMaps, selectConfig = _ref90.selectConfig, type = _ref90.type;
5576
+ function getColumnRuleTypeSelection(_ref91) {
5577
+ var _vm = _ref91._vm, isTreeNode = _ref91.isTreeNode, renMaps = _ref91.renMaps, selectConfig = _ref91.selectConfig, type = _ref91.type;
5573
5578
  return {
5574
5579
  match: function match() {
5575
5580
  return type === "selection";
@@ -5583,8 +5588,8 @@ function getColumnRuleTypeSelection(_ref90) {
5583
5588
  }
5584
5589
  };
5585
5590
  }
5586
- function getColumnRuleTypeExpand(_ref91) {
5587
- var _vm = _ref91._vm, renMaps = _ref91.renMaps, type = _ref91.type;
5591
+ function getColumnRuleTypeExpand(_ref92) {
5592
+ var _vm = _ref92._vm, renMaps = _ref92.renMaps, type = _ref92.type;
5588
5593
  return {
5589
5594
  match: function match() {
5590
5595
  return type === "expand";
@@ -5595,8 +5600,8 @@ function getColumnRuleTypeExpand(_ref91) {
5595
5600
  }
5596
5601
  };
5597
5602
  }
5598
- function getColumnRuleTypeOperation(_ref92) {
5599
- var _vm = _ref92._vm, renMaps = _ref92.renMaps, type = _ref92.type;
5603
+ function getColumnRuleTypeOperation(_ref93) {
5604
+ var _vm = _ref93._vm, renMaps = _ref93.renMaps, type = _ref93.type;
5600
5605
  return {
5601
5606
  match: function match() {
5602
5607
  return type === "operation";
@@ -5606,8 +5611,8 @@ function getColumnRuleTypeOperation(_ref92) {
5606
5611
  }
5607
5612
  };
5608
5613
  }
5609
- function getColumnRuleTypeOther(_ref93) {
5610
- 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;
5614
+ function getColumnRuleTypeOther(_ref94) {
5615
+ 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;
5611
5616
  return {
5612
5617
  match: function match() {
5613
5618
  return !~["index", "radio", "selection", "expand", "operation"].indexOf(type);
@@ -5726,7 +5731,9 @@ var Cell = {
5726
5731
  }
5727
5732
  }
5728
5733
  if (typeof title === "function") {
5729
- return [title(h2, params)];
5734
+ return [h2("div", {
5735
+ class: "tiny-grid-cell-text"
5736
+ }, [title(h2, params)])];
5730
5737
  }
5731
5738
  if (type === "card") {
5732
5739
  return [formatText(getFuncText(own.title), 1)];
@@ -5774,7 +5781,7 @@ var Cell = {
5774
5781
  },
5775
5782
  // 树节点
5776
5783
  renderTreeIcon: function renderTreeIcon(h2, params) {
5777
- var _ref95, _$table$$grid, _$table$$grid$designC, _$table$$grid$designC2, _ref96;
5784
+ var _ref96, _$table$$grid, _$table$$grid$designC, _$table$$grid$designC2, _ref97;
5778
5785
  var $table = params.$table, level = params.level, row2 = params.row;
5779
5786
  var treeConfig = $table.treeConfig, treeExpandeds = $table.treeExpandeds;
5780
5787
  var children = treeConfig.children, indent = treeConfig.indent, renderIcon = treeConfig.renderIcon, trigger = treeConfig.trigger, bubbling = treeConfig.bubbling;
@@ -5789,13 +5796,13 @@ var Cell = {
5789
5796
  }
5790
5797
  };
5791
5798
  var icon = GlobalConfig$1.icon;
5792
- var defaultIcon = function defaultIcon2(h22, _ref94) {
5793
- var active = _ref94.active;
5799
+ var defaultIcon = function defaultIcon2(h22, _ref95) {
5800
+ var active = _ref95.active;
5794
5801
  var IconExpand = iconExpand();
5795
5802
  var IconPutAway = iconPutAway();
5796
5803
  return active ? h22(IconExpand) : h22(IconPutAway);
5797
5804
  };
5798
- 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;
5805
+ 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;
5799
5806
  if (trigger && trigger !== "default") {
5800
5807
  listeners = {};
5801
5808
  }
@@ -5818,7 +5825,7 @@ var Cell = {
5818
5825
  width: level * (indent || 16) + "px"
5819
5826
  }
5820
5827
  }), h2("span", {
5821
- class: ["tiny-grid-tree-wrapper", (_ref96 = {}, _ref96[map.isActive] = isActive, _ref96)],
5828
+ class: ["tiny-grid-tree-wrapper", (_ref97 = {}, _ref97[map.isActive] = isActive, _ref97)],
5822
5829
  on: listeners
5823
5830
  }, iconVNode)];
5824
5831
  },
@@ -5840,7 +5847,7 @@ var Cell = {
5840
5847
  var $table = params.$table, column = params.column, row2 = params.row, seq = params.seq; params.level;
5841
5848
  var startIndex = $table.startIndex, treeConfig = $table.treeConfig, treeOrdered = $table.treeOrdered;
5842
5849
  var indexMethod = column.indexMethod, slots = column.slots;
5843
- var _ref97 = treeConfig || {}, _ref97$temporaryIndex = _ref97.temporaryIndex, temporaryIndex = _ref97$temporaryIndex === void 0 ? "_$index_" : _ref97$temporaryIndex;
5850
+ var _ref98 = treeConfig || {}, _ref98$temporaryIndex = _ref98.temporaryIndex, temporaryIndex = _ref98$temporaryIndex === void 0 ? "_$index_" : _ref98$temporaryIndex;
5844
5851
  var isTreeOrderedFalse = treeConfig && !treeOrdered;
5845
5852
  var indexValue = startIndex + seq;
5846
5853
  if (isTreeOrderedFalse) {
@@ -5861,7 +5868,7 @@ var Cell = {
5861
5868
  return [formatText(value, 1)];
5862
5869
  },
5863
5870
  renderRadioCell: function renderRadioCell(h2, params) {
5864
- var _ref98;
5871
+ var _ref99;
5865
5872
  var $table = params.$table, slots = params.column.slots, row2 = params.row;
5866
5873
  var _$table$radioConfig2 = $table.radioConfig, radioConfig = _$table$radioConfig2 === void 0 ? {} : _$table$radioConfig2, selectRow = $table.selectRow, vSize3 = $table.vSize;
5867
5874
  var labelField = radioConfig.labelField, checkMethod = radioConfig.checkMethod;
@@ -5886,7 +5893,7 @@ var Cell = {
5886
5893
  }
5887
5894
  };
5888
5895
  return [h2("label", {
5889
- class: ["tiny-grid-radio", (_ref98 = {}, _ref98["size__" + vSize3] = vSize3, _ref98["is__disabled"] = disabled, _ref98)]
5896
+ class: ["tiny-grid-radio", (_ref99 = {}, _ref99["size__" + vSize3] = vSize3, _ref99["is__disabled"] = disabled, _ref99)]
5890
5897
  }, [h2("input", options), h2("span", {
5891
5898
  class: "tiny-grid-radio__icon"
5892
5899
  }, [h2(iconRadio(), {
@@ -5901,7 +5908,7 @@ var Cell = {
5901
5908
  return Cell.renderTreeIcon(h2, params).concat(Cell.renderRadioCell(h2, params));
5902
5909
  },
5903
5910
  renderSelectionHeader: function renderSelectionHeader(h2, params) {
5904
- var _ref99;
5911
+ var _ref100;
5905
5912
  var $table = params.$table, column = params.column;
5906
5913
  var slots = column.slots, own = column.own;
5907
5914
  var headerCheckDisabled = $table.headerCheckDisabled, isAllSelected = $table.isAllSelected, isIndeterminate = $table.isIndeterminate, selectConfig = $table.selectConfig, vSize3 = $table.vSize;
@@ -5928,7 +5935,7 @@ var Cell = {
5928
5935
  }
5929
5936
  };
5930
5937
  var vnode = h2("label", {
5931
- class: ["tiny-grid-checkbox tiny-select-header", (_ref99 = {}, _ref99["size__" + vSize3] = vSize3, _ref99["is__disabled"] = headerCheckDisabled, _ref99["is__indeterminate"] = isIndeterminate, _ref99)],
5938
+ class: ["tiny-grid-checkbox tiny-select-header", (_ref100 = {}, _ref100["size__" + vSize3] = vSize3, _ref100["is__disabled"] = headerCheckDisabled, _ref100["is__indeterminate"] = isIndeterminate, _ref100)],
5932
5939
  key: random()
5933
5940
  }, [h2("input", options), h2("span", {
5934
5941
  class: "tiny-grid-checkbox__icon"
@@ -5950,12 +5957,12 @@ var Cell = {
5950
5957
  return [vnode, dropdownVnode];
5951
5958
  },
5952
5959
  renderSelectionCell: function renderSelectionCell(h2, params) {
5953
- var _ref101;
5960
+ var _ref102;
5954
5961
  var $table = params.$table, column = params.column, row2 = params.row;
5955
5962
  var slots = column.slots;
5956
5963
  var _$table$selectConfig2 = $table.selectConfig, selectConfig = _$table$selectConfig2 === void 0 ? {} : _$table$selectConfig2, treeConfig = $table.treeConfig, treeIndeterminates = $table.treeIndeterminates, vSize3 = $table.vSize;
5957
5964
  var labelField = selectConfig.labelField, checkMethod = selectConfig.checkMethod;
5958
- 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;
5965
+ 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;
5959
5966
  var options = {
5960
5967
  attrs: {
5961
5968
  type: "checkbox"
@@ -5970,7 +5977,7 @@ var Cell = {
5970
5977
  checked: ~$table.selection.indexOf(row2)
5971
5978
  };
5972
5979
  var twcls = params.twcls;
5973
- var labelCls = ["tiny-grid-checkbox tiny-select-cell", (_ref101 = {}, _ref101["size__" + vSize3] = vSize3, _ref101["is__indeterminate"] = indeterminate, _ref101["is__disabled"] = isDisabled, _ref101)];
5980
+ var labelCls = ["tiny-grid-checkbox tiny-select-cell", (_ref102 = {}, _ref102["size__" + vSize3] = vSize3, _ref102["is__indeterminate"] = indeterminate, _ref102["is__disabled"] = isDisabled, _ref102)];
5974
5981
  var inputCls = null;
5975
5982
  var spanCls = "tiny-grid-checkbox__icon";
5976
5983
  var svgCls = "tiny-svg-size icon-checked-sur";
@@ -6016,12 +6023,12 @@ var Cell = {
6016
6023
  },
6017
6024
  // TODO: 与renderSelectionCell代码方法高度相似,待提取公共逻辑。
6018
6025
  renderSelectionCellByProp: function renderSelectionCellByProp(h2, params) {
6019
- var _ref103;
6026
+ var _ref104;
6020
6027
  var $table = params.$table, column = params.column, row2 = params.row;
6021
6028
  var slots = column.slots;
6022
6029
  var _$table$selectConfig3 = $table.selectConfig, selectConfig = _$table$selectConfig3 === void 0 ? {} : _$table$selectConfig3, treeConfig = $table.treeConfig, treeIndeterminates = $table.treeIndeterminates, vSize3 = $table.vSize;
6023
6030
  var property = selectConfig.checkField, checkMethod = selectConfig.checkMethod, labelField = selectConfig.labelField;
6024
- 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;
6031
+ 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;
6025
6032
  var options = {
6026
6033
  attrs: {
6027
6034
  type: "checkbox"
@@ -6042,7 +6049,7 @@ var Cell = {
6042
6049
  };
6043
6050
  var vnode = h2("label", {
6044
6051
  key: random(),
6045
- class: ["tiny-grid-checkbox", (_ref103 = {}, _ref103["size__" + vSize3] = vSize3, _ref103["is__indeterminate"] = indeterminate, _ref103["is__disabled"] = isDisabled, _ref103)]
6052
+ class: ["tiny-grid-checkbox", (_ref104 = {}, _ref104["size__" + vSize3] = vSize3, _ref104["is__indeterminate"] = indeterminate, _ref104["is__disabled"] = isDisabled, _ref104)]
6046
6053
  }, [h2("input", options), h2("span", {
6047
6054
  class: "tiny-grid-checkbox__icon"
6048
6055
  }, [h2(iconCheck(), {
@@ -6061,7 +6068,7 @@ var Cell = {
6061
6068
  },
6062
6069
  // 展开行
6063
6070
  renderExpandCell: function renderExpandCell(h2, params) {
6064
- var _column$slots, _ref104;
6071
+ var _column$slots, _ref105;
6065
6072
  var $table = params.$table, row2 = params.row, column = params.column;
6066
6073
  var _$table$expandConfig3 = $table.expandConfig, expandConfig = _$table$expandConfig3 === void 0 ? {} : _$table$expandConfig3;
6067
6074
  var _expandConfig$showIco = expandConfig.showIcon, showIcon = _expandConfig$showIco === void 0 ? true : _expandConfig$showIco, expandMethod = expandConfig.activeMethod;
@@ -6076,7 +6083,7 @@ var Cell = {
6076
6083
  expandActive: "expand__active"
6077
6084
  };
6078
6085
  return [h2("span", {
6079
- class: ["tiny-grid__expanded", (_ref104 = {}, _ref104[map.expandActive] = expandActive, _ref104)],
6086
+ class: ["tiny-grid__expanded", (_ref105 = {}, _ref105[map.expandActive] = expandActive, _ref105)],
6080
6087
  on: {
6081
6088
  click: function click(event) {
6082
6089
  if (!hideExpand) {
@@ -6146,7 +6153,7 @@ var Cell = {
6146
6153
  return Cell.renderHeader(h2, params).concat(Cell.renderFilterIcon(h2, params, suffixCls[1]));
6147
6154
  },
6148
6155
  renderFilterIcon: function renderFilterIcon(h2, params, cls) {
6149
- var _ref105, _ref106;
6156
+ var _ref106, _ref107;
6150
6157
  if (cls === void 0) {
6151
6158
  cls = "";
6152
6159
  }
@@ -6158,9 +6165,9 @@ var Cell = {
6158
6165
  hasFilter: "has__Filter"
6159
6166
  };
6160
6167
  return [h2("span", {
6161
- class: ["tiny-grid-filter-wrapper " + cls, (_ref105 = {}, _ref105[map.isActive] = filterStore.visible && filterStore.column === column, _ref105)]
6168
+ class: ["tiny-grid-filter-wrapper " + cls, (_ref106 = {}, _ref106[map.isActive] = filterStore.visible && filterStore.column === column, _ref106)]
6162
6169
  }, [h2(icon.filter, {
6163
- class: ["tiny-svg-size tiny-grid-filter__btn " + column.id, (_ref106 = {}, _ref106[map.hasFilter] = column.filter && column.filter.hasFilter, _ref106)],
6170
+ class: ["tiny-svg-size tiny-grid-filter__btn " + column.id, (_ref107 = {}, _ref107[map.hasFilter] = column.filter && column.filter.hasFilter, _ref107)],
6164
6171
  on: {
6165
6172
  click: function click(event) {
6166
6173
  $table.triggerFilterEvent(event, params.column, params);
@@ -6317,8 +6324,8 @@ var Cell = {
6317
6324
  };
6318
6325
  var handleItemClick = function handleItemClick2(itemData) {
6319
6326
  var realName = (itemData == null ? void 0 : itemData.name) || itemData;
6320
- var buttonConfig = visibleButtons.find(function(_ref107) {
6321
- var buttonName = _ref107.name;
6327
+ var buttonConfig = visibleButtons.find(function(_ref108) {
6328
+ var buttonName = _ref108.name;
6322
6329
  return buttonName === realName;
6323
6330
  });
6324
6331
  buttonConfig.click(window.event || {}, _extends({
@@ -6372,8 +6379,10 @@ var Cell = {
6372
6379
  return renderBig(buttonConfig, viewClass);
6373
6380
  });
6374
6381
  }
6382
+ var rowKey = row2[getRowkey($table)];
6375
6383
  return [h2("span", {
6376
6384
  class: "tiny-grid__oper-col-wrapper",
6385
+ key: rowKey,
6377
6386
  attrs: {
6378
6387
  "data-tag": "operation-cell-buttons"
6379
6388
  }
@@ -6420,40 +6429,40 @@ function isTargetRadioOrCheckbox(event, column, colType, targetType) {
6420
6429
  var target = event.target;
6421
6430
  return target && column.type === colType && target.tagName.toLowerCase() === "input" && target.type === (targetType || colType);
6422
6431
  }
6423
- function onClickExpandColumn(_ref108) {
6424
- var $el = _ref108.$el, _vm = _ref108._vm, column = _ref108.column, event = _ref108.event, expandConfig = _ref108.expandConfig, params = _ref108.params;
6432
+ function onClickExpandColumn(_ref109) {
6433
+ var $el = _ref109.$el, _vm = _ref109._vm, column = _ref109.column, event = _ref109.event, expandConfig = _ref109.expandConfig, params = _ref109.params;
6425
6434
  if ((expandConfig.trigger === "row" || column.type === "expand" && expandConfig.trigger === "cell") && !_vm.getEventTargetNode(event, $el, "tiny-grid__expanded").flag) {
6426
6435
  _vm.triggerRowExpandEvent(event, params);
6427
6436
  }
6428
6437
  }
6429
- function onClickTreeNodeColumn(_ref109) {
6430
- var _vm = _ref109._vm, column = _ref109.column, event = _ref109.event, params = _ref109.params, treeConfig = _ref109.treeConfig;
6438
+ function onClickTreeNodeColumn(_ref110) {
6439
+ var _vm = _ref110._vm, column = _ref110.column, event = _ref110.event, params = _ref110.params, treeConfig = _ref110.treeConfig;
6431
6440
  if (treeConfig.trigger === "row" || column.treeNode && treeConfig.trigger === "cell") {
6432
6441
  _vm.triggerTreeExpandEvent(event, params);
6433
6442
  }
6434
6443
  }
6435
- function onHighlightCurrentRow(_ref110) {
6436
- var $el = _ref110.$el, _vm = _ref110._vm, event = _ref110.event, highlightCurrentRow = _ref110.highlightCurrentRow, params = _ref110.params, radioConfig = _ref110.radioConfig;
6444
+ function onHighlightCurrentRow(_ref111) {
6445
+ var $el = _ref111.$el, _vm = _ref111._vm, event = _ref111.event, highlightCurrentRow = _ref111.highlightCurrentRow, params = _ref111.params, radioConfig = _ref111.radioConfig;
6437
6446
  if (highlightCurrentRow) {
6438
6447
  if (radioConfig.trigger === "row" || !_vm.getEventTargetNode(event, $el, "tiny-grid-checkbox").flag && !_vm.getEventTargetNode(event, $el, "tiny-grid-radio").flag) {
6439
6448
  _vm.triggerCurrentRowEvent(event, params);
6440
6449
  }
6441
6450
  }
6442
6451
  }
6443
- function onClickRadioColumn(_ref111) {
6444
- var $el = _ref111.$el, _vm = _ref111._vm, column = _ref111.column, event = _ref111.event, params = _ref111.params, radioConfig = _ref111.radioConfig;
6452
+ function onClickRadioColumn(_ref112) {
6453
+ var $el = _ref112.$el, _vm = _ref112._vm, column = _ref112.column, event = _ref112.event, params = _ref112.params, radioConfig = _ref112.radioConfig;
6445
6454
  if ((radioConfig.trigger === "row" || column.type === "radio" && radioConfig.trigger === "cell") && !_vm.getEventTargetNode(event, $el, "tiny-grid-radio").flag) {
6446
6455
  _vm.triggerRadioRowEvent(event, params);
6447
6456
  }
6448
6457
  }
6449
- function onClickSelectColumn(_ref112) {
6450
- var _vm = _ref112._vm, column = _ref112.column, event = _ref112.event, params = _ref112.params, selectConfig = _ref112.selectConfig;
6458
+ function onClickSelectColumn(_ref113) {
6459
+ var _vm = _ref113._vm, column = _ref113.column, event = _ref113.event, params = _ref113.params, selectConfig = _ref113.selectConfig;
6451
6460
  if ((selectConfig.trigger === "row" || column.type === "selection" && selectConfig.trigger === "cell") && !_vm.getEventTargetNode(event, params.cell, "tiny-grid-checkbox").flag) {
6452
6461
  _vm.handleToggleCheckRowEvent(params, event);
6453
6462
  }
6454
6463
  }
6455
- function onClickCellSelect(_ref113) {
6456
- 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;
6464
+ function onClickCellSelect(_ref114) {
6465
+ 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;
6457
6466
  if (!mouseConfig.checked && editConfig) {
6458
6467
  if (editConfig.trigger === "manual") {
6459
6468
  if (actived.args && actived.row === row2 && column !== actived.column) {
@@ -6472,8 +6481,8 @@ function onClickCellSelect(_ref113) {
6472
6481
  }
6473
6482
  }
6474
6483
  }
6475
- function onGroupHeader(_ref114) {
6476
- var _vm = _ref114._vm, isGroup2 = _ref114.isGroup, headerProps2 = _ref114.headerProps;
6484
+ function onGroupHeader(_ref115) {
6485
+ var _vm = _ref115._vm, isGroup2 = _ref115.isGroup, headerProps2 = _ref115.headerProps;
6477
6486
  if (isGroup2) {
6478
6487
  eachTree(_vm.collectColumn, function(column) {
6479
6488
  if (column.children && column.children.length) {
@@ -6484,14 +6493,14 @@ function onGroupHeader(_ref114) {
6484
6493
  }, headerProps2);
6485
6494
  }
6486
6495
  }
6487
- function reassignNotFixed(_ref115) {
6488
- var centerList = _ref115.centerList, column = _ref115.column;
6496
+ function reassignNotFixed(_ref116) {
6497
+ var centerList = _ref116.centerList, column = _ref116.column;
6489
6498
  if (!column.fixed) {
6490
6499
  centerList.push(column);
6491
6500
  }
6492
6501
  }
6493
- function reassignFixedRight(_ref116) {
6494
- var column = _ref116.column, columnIndex = _ref116.columnIndex, isColspan = _ref116.isColspan, rightEndIndex = _ref116.rightEndIndex, rightList = _ref116.rightList;
6502
+ function reassignFixedRight(_ref117) {
6503
+ var column = _ref117.column, columnIndex = _ref117.columnIndex, isColspan = _ref117.isColspan, rightEndIndex = _ref117.rightEndIndex, rightList = _ref117.rightList;
6495
6504
  if (column.fixed === "right") {
6496
6505
  if (!isColspan) {
6497
6506
  if (rightEndIndex === null) {
@@ -6510,8 +6519,8 @@ function reassignFixedRight(_ref116) {
6510
6519
  rightEndIndex
6511
6520
  };
6512
6521
  }
6513
- function reassignFixedLeft(_ref117) {
6514
- var column = _ref117.column, columnIndex = _ref117.columnIndex, isColspan = _ref117.isColspan, leftList = _ref117.leftList, leftStartIndex = _ref117.leftStartIndex, letIndex = _ref117.letIndex;
6522
+ function reassignFixedLeft(_ref118) {
6523
+ var column = _ref118.column, columnIndex = _ref118.columnIndex, isColspan = _ref118.isColspan, leftList = _ref118.leftList, leftStartIndex = _ref118.leftStartIndex, letIndex = _ref118.letIndex;
6515
6524
  if (column.fixed === "left") {
6516
6525
  if (leftStartIndex === null) {
6517
6526
  leftStartIndex = letIndex;
@@ -6531,14 +6540,14 @@ function reassignFixedLeft(_ref117) {
6531
6540
  isColspan
6532
6541
  };
6533
6542
  }
6534
- function showGroupFixedError(_ref118) {
6535
- var isColspan = _ref118.isColspan, isGroup2 = _ref118.isGroup, leftStartIndex = _ref118.leftStartIndex, rightEndIndex = _ref118.rightEndIndex, visibleColumn = _ref118.visibleColumn;
6543
+ function showGroupFixedError(_ref119) {
6544
+ var isColspan = _ref119.isColspan, isGroup2 = _ref119.isGroup, leftStartIndex = _ref119.leftStartIndex, rightEndIndex = _ref119.rightEndIndex, visibleColumn = _ref119.visibleColumn;
6536
6545
  if (isGroup2 && (isColspan || leftStartIndex || rightEndIndex !== null && rightEndIndex !== visibleColumn.length)) {
6537
6546
  error("ui.grid.error.groupFixed");
6538
6547
  }
6539
6548
  }
6540
- function onScrollXLoad(_ref119) {
6541
- var _vm = _ref119._vm, scrollX = _ref119.scrollX, scrollXLoad = _ref119.scrollXLoad, scrollXStore = _ref119.scrollXStore, tableColumn2 = _ref119.tableColumn, visibleColumn = _ref119.visibleColumn;
6549
+ function onScrollXLoad(_ref120) {
6550
+ var _vm = _ref120._vm, scrollX = _ref120.scrollX, scrollXLoad = _ref120.scrollXLoad, scrollXStore = _ref120.scrollXStore, tableColumn2 = _ref120.tableColumn, visibleColumn = _ref120.visibleColumn;
6542
6551
  if (scrollXLoad) {
6543
6552
  if (_vm.resizable || visibleColumn.some(function(column) {
6544
6553
  return column.resizable;
@@ -6557,10 +6566,10 @@ function onScrollXLoad(_ref119) {
6557
6566
  }
6558
6567
  return tableColumn2;
6559
6568
  }
6560
- function mapFetchColumnPromise(_ref120) {
6561
- var _vm = _ref120._vm, fetchColumns = _ref120.fetchColumns, tableColumn2 = _ref120.tableColumn;
6562
- return fetchColumns.map(function(_ref121) {
6563
- var format = _ref121.format, columnValues = _ref121.columnValues;
6569
+ function mapFetchColumnPromise(_ref121) {
6570
+ var _vm = _ref121._vm, fetchColumns = _ref121.fetchColumns, tableColumn2 = _ref121.tableColumn;
6571
+ return fetchColumns.map(function(_ref122) {
6572
+ var format = _ref122.format, columnValues = _ref122.columnValues;
6564
6573
  return format.async.fetch({
6565
6574
  columns: tableColumn2,
6566
6575
  columnValues,
@@ -6568,8 +6577,8 @@ function mapFetchColumnPromise(_ref120) {
6568
6577
  });
6569
6578
  });
6570
6579
  }
6571
- function preprocessDataObjectFormat(_ref122) {
6572
- var columnCount = _ref122.columnCount, columnValues = _ref122.columnValues, columnValuesMap = _ref122.columnValuesMap, fields = _ref122.fields;
6580
+ function preprocessDataObjectFormat(_ref123) {
6581
+ var columnCount = _ref123.columnCount, columnValues = _ref123.columnValues, columnValuesMap = _ref123.columnValuesMap, fields = _ref123.fields;
6573
6582
  if (columnCount) {
6574
6583
  columnValues.forEach(function(col) {
6575
6584
  if (typeof col === "object") {
@@ -6581,8 +6590,8 @@ function preprocessDataObjectFormat(_ref122) {
6581
6590
  });
6582
6591
  }
6583
6592
  }
6584
- function preventDupRender(_ref123) {
6585
- 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;
6593
+ function preventDupRender(_ref124) {
6594
+ 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;
6586
6595
  var cellEachIndex = 0;
6587
6596
  if (!isRender && cellValuesCount) {
6588
6597
  var cellLabel;
@@ -6607,8 +6616,8 @@ function preventDupRender(_ref123) {
6607
6616
  }
6608
6617
  return renderCount;
6609
6618
  }
6610
- function handleResolveColumnComplete(_ref124) {
6611
- var _vm = _ref124._vm, columnData = _ref124.columnData, complete = _ref124.complete;
6619
+ function handleResolveColumnComplete(_ref125) {
6620
+ var _vm = _ref125._vm, columnData = _ref125.columnData, complete = _ref125.complete;
6612
6621
  if (typeof complete === "function") {
6613
6622
  complete({
6614
6623
  columnData,
@@ -6617,8 +6626,8 @@ function handleResolveColumnComplete(_ref124) {
6617
6626
  }
6618
6627
  }
6619
6628
  var isWebkit = browserInfo["-webkit"];
6620
- function computeScrollYLoad(_ref125) {
6621
- var _vm = _ref125._vm, scrollLoad = _ref125.scrollLoad, scrollY = _ref125.scrollY, scrollYLoad = _ref125.scrollYLoad, scrollYStore = _ref125.scrollYStore, tableBodyElem = _ref125.tableBodyElem;
6629
+ function computeScrollYLoad(_ref126) {
6630
+ var _vm = _ref126._vm, scrollLoad = _ref126.scrollLoad, scrollY = _ref126.scrollY, scrollYLoad = _ref126.scrollYLoad, scrollYStore = _ref126.scrollYStore, tableBodyElem = _ref126.tableBodyElem;
6622
6631
  if (scrollYLoad || scrollLoad) {
6623
6632
  scrollYStore.rowHeight = _vm.rowHeight;
6624
6633
  }
@@ -6638,8 +6647,8 @@ function computeScrollYLoad(_ref125) {
6638
6647
  _vm.updateScrollYSpace();
6639
6648
  }
6640
6649
  }
6641
- function computeScrollXLoad(_ref126) {
6642
- var _vm = _ref126._vm, scrollX = _ref126.scrollX, scrollXLoad = _ref126.scrollXLoad, scrollXStore = _ref126.scrollXStore, tableBodyElem = _ref126.tableBodyElem, visibleColumn = _ref126.visibleColumn;
6650
+ function computeScrollXLoad(_ref127) {
6651
+ var _vm = _ref127._vm, scrollX = _ref127.scrollX, scrollXLoad = _ref127.scrollXLoad, scrollXStore = _ref127.scrollXStore, tableBodyElem = _ref127.tableBodyElem, visibleColumn = _ref127.visibleColumn;
6643
6652
  if (scrollXLoad) {
6644
6653
  var clientWidth = tableBodyElem.clientWidth;
6645
6654
  var width = 0;
@@ -6679,16 +6688,17 @@ var calcTableWidth = function calcTableWidth2($table) {
6679
6688
  var pxArr = columnStore.pxList, scaleArr = columnStore.scaleList, pxMinArr = columnStore.pxMinList, scaleMinArr = columnStore.scaleMinList, autoArr = columnStore.autoList, resizeArr = columnStore.resizeList;
6680
6689
  var remainWidth = clientWidth;
6681
6690
  var totalWidth = 0;
6682
- pxMinArr.forEach(function(column) {
6691
+ var minArr = new Array(pxMinArr.length + scaleMinArr.length);
6692
+ pxMinArr.forEach(function(column, index2) {
6683
6693
  var width = parseInt(column.minWidth);
6684
6694
  totalWidth += width;
6685
- column.renderWidth = width;
6695
+ minArr[index2 + scaleMinArr.length] = width;
6686
6696
  });
6687
6697
  var meanWidth = remainWidth / 100;
6688
- scaleMinArr.forEach(function(column) {
6698
+ scaleMinArr.forEach(function(column, index2) {
6689
6699
  var width = Math.floor(parseInt(column.minWidth) * meanWidth);
6690
6700
  totalWidth += width;
6691
- column.renderWidth = width;
6701
+ minArr[index2] = width;
6692
6702
  });
6693
6703
  scaleArr.forEach(function(column) {
6694
6704
  var width = Math.floor(parseInt(column.width) * meanWidth);
@@ -6709,9 +6719,9 @@ var calcTableWidth = function calcTableWidth2($table) {
6709
6719
  meanWidth = remainWidth > 0 ? Math.floor(remainWidth / (scaleMinArr.length + pxMinArr.length + autoArr.length)) : 0;
6710
6720
  if (fit) {
6711
6721
  if (remainWidth > 0) {
6712
- scaleMinArr.concat(pxMinArr).forEach(function(column) {
6722
+ scaleMinArr.concat(pxMinArr).forEach(function(column, index2) {
6713
6723
  totalWidth += meanWidth;
6714
- column.renderWidth += meanWidth;
6724
+ minArr[index2] += meanWidth;
6715
6725
  });
6716
6726
  }
6717
6727
  } else {
@@ -6719,23 +6729,27 @@ var calcTableWidth = function calcTableWidth2($table) {
6719
6729
  }
6720
6730
  autoArr.forEach(function(column, index2) {
6721
6731
  var width = Math.max(meanWidth, minCellWidth);
6722
- column.renderWidth = width;
6732
+ var renderWidth = width;
6723
6733
  totalWidth += width;
6724
6734
  if (fit && index2 === autoArr.length - 1) {
6725
6735
  var odiffer = clientWidth - totalWidth;
6726
6736
  if (odiffer > 0) {
6727
- column.renderWidth += odiffer;
6737
+ renderWidth += odiffer;
6728
6738
  totalWidth = clientWidth;
6729
6739
  }
6730
6740
  }
6741
+ column.renderWidth = renderWidth;
6731
6742
  });
6732
6743
  var remainingSpace = bodyWidth - totalWidth;
6733
6744
  if (fit && remainingSpace > 0) {
6734
- scaleMinArr.concat(pxMinArr).slice(0, remainingSpace).forEach(function(column) {
6745
+ scaleMinArr.concat(pxMinArr).slice(0, remainingSpace).forEach(function(column, index2) {
6735
6746
  totalWidth += 1;
6736
- column.renderWidth += 1;
6747
+ minArr[index2] += 1;
6737
6748
  });
6738
6749
  }
6750
+ scaleMinArr.concat(pxMinArr).forEach(function(column, index2) {
6751
+ column.renderWidth = minArr[index2];
6752
+ });
6739
6753
  return {
6740
6754
  totalWidth,
6741
6755
  offsetWidth,
@@ -6745,8 +6759,8 @@ var calcTableWidth = function calcTableWidth2($table) {
6745
6759
  function calcFixedDetails(_vm) {
6746
6760
  var collectColumn2 = _vm.collectColumn, visibleColumn = _vm.visibleColumn, columnStore = _vm.columnStore, isGroup2 = _vm.isGroup;
6747
6761
  var leftList = columnStore.leftList, rightList = columnStore.rightList;
6748
- visibleColumn.forEach(function(_ref127) {
6749
- var fixedDetails = _ref127.fixedDetails;
6762
+ visibleColumn.forEach(function(_ref128) {
6763
+ var fixedDetails = _ref128.fixedDetails;
6750
6764
  if (fixedDetails) {
6751
6765
  fixedDetails.isLeftLast = false;
6752
6766
  fixedDetails.isRightFirst = false;
@@ -6757,8 +6771,8 @@ function calcFixedDetails(_vm) {
6757
6771
  var length = leftList.length;
6758
6772
  var value = 0;
6759
6773
  if (Array.isArray(leftList) && length > 0) {
6760
- leftList.forEach(function(_ref128, i) {
6761
- var fixedDetails = _ref128.fixedDetails, renderWidth = _ref128.renderWidth;
6774
+ leftList.forEach(function(_ref129, i) {
6775
+ var fixedDetails = _ref129.fixedDetails, renderWidth = _ref129.renderWidth;
6762
6776
  fixedDetails.isLeftLast = i === length - 1;
6763
6777
  fixedDetails.left = value;
6764
6778
  value += renderWidth;
@@ -6768,8 +6782,8 @@ function calcFixedDetails(_vm) {
6768
6782
  value = 0;
6769
6783
  if (Array.isArray(rightList) && length > 0) {
6770
6784
  var reversed = [].concat(rightList).reverse();
6771
- reversed.forEach(function(_ref129, i) {
6772
- var fixedDetails = _ref129.fixedDetails, renderWidth = _ref129.renderWidth;
6785
+ reversed.forEach(function(_ref130, i) {
6786
+ var fixedDetails = _ref130.fixedDetails, renderWidth = _ref130.renderWidth;
6773
6787
  fixedDetails.isRightFirst = i === length - 1;
6774
6788
  fixedDetails.right = value;
6775
6789
  value += renderWidth;
@@ -6841,10 +6855,10 @@ var headerProps = {
6841
6855
  };
6842
6856
  var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6843
6857
  var startIndex = opt.startIndex, fetchColumns = opt.fetchColumns, tableData = opt.tableData, asyncRenderMap = opt.asyncRenderMap, isScrollLoad = opt.isScrollLoad;
6844
- return function(data6) {
6845
- if (data6.length) {
6858
+ return function(data7) {
6859
+ if (data7.length) {
6846
6860
  ctx._isUpdateData = true;
6847
- data6.forEach(function(item, i) {
6861
+ data7.forEach(function(item, i) {
6848
6862
  var columnValues = [];
6849
6863
  var columnValuesMap = {};
6850
6864
  var k = startIndex;
@@ -6852,7 +6866,7 @@ var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6852
6866
  var columnCount = 0;
6853
6867
  var columnData = [];
6854
6868
  var _fetchColumns$i = fetchColumns[i], _fetchColumns$i$forma = _fetchColumns$i.format, format = _fetchColumns$i$forma === void 0 ? {} : _fetchColumns$i$forma, property = _fetchColumns$i.property;
6855
- 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;
6869
+ 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;
6856
6870
  columnValues = isArray(item) ? item : get(item, fields.data || "values");
6857
6871
  columnCount = columnValues.length;
6858
6872
  preprocessDataObjectFormat({
@@ -6903,8 +6917,8 @@ var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6903
6917
  }
6904
6918
  };
6905
6919
  };
6906
- function handleGlobalMousedownOnFilterWrapper(_ref131) {
6907
- var $el = _ref131.$el, _vm = _ref131._vm, event = _ref131.event, filterStore = _ref131.filterStore, filterWrapper = _ref131.filterWrapper;
6920
+ function handleGlobalMousedownOnFilterWrapper(_ref132) {
6921
+ var $el = _ref132.$el, _vm = _ref132._vm, event = _ref132.event, filterStore = _ref132.filterStore, filterWrapper = _ref132.filterWrapper;
6908
6922
  if (filterWrapper) {
6909
6923
  if (_vm.getEventTargetNode(event, $el, "tiny-grid-filter-wrapper").flag) ;
6910
6924
  else if (_vm.getEventTargetNode(event, filterWrapper.$el).flag) ;
@@ -6915,14 +6929,14 @@ function handleGlobalMousedownOnFilterWrapper(_ref131) {
6915
6929
  }
6916
6930
  }
6917
6931
  }
6918
- function handleGlobalMousedownOnCtxMenu(_ref132) {
6919
- var _vm = _ref132._vm, ctxMenuStore = _ref132.ctxMenuStore, event = _ref132.event;
6932
+ function handleGlobalMousedownOnCtxMenu(_ref133) {
6933
+ var _vm = _ref133._vm, ctxMenuStore = _ref133.ctxMenuStore, event = _ref133.event;
6920
6934
  if (ctxMenuStore.visible && _vm.$refs.ctxWrapper && !_vm.getEventTargetNode(event, _vm.$refs.ctxWrapper.$el).flag) {
6921
6935
  _vm.closeMenu();
6922
6936
  }
6923
6937
  }
6924
- function handleGlobalBlurOutside(_ref133) {
6925
- var _vm = _ref133._vm, actived = _ref133.actived, event = _ref133.event;
6938
+ function handleGlobalBlurOutside(_ref134) {
6939
+ var _vm = _ref134._vm, actived = _ref134.actived, event = _ref134.event;
6926
6940
  var custblur = _vm.blurOutside(actived, event);
6927
6941
  if (typeof custblur === "boolean") {
6928
6942
  custblur || setTimeout(function() {
@@ -6932,8 +6946,8 @@ function handleGlobalBlurOutside(_ref133) {
6932
6946
  }
6933
6947
  return false;
6934
6948
  }
6935
- function handleGlobalIsClear(_ref134) {
6936
- var $el = _ref134.$el, _vm = _ref134._vm, actived = _ref134.actived, editConfig = _ref134.editConfig, event = _ref134.event, isClear = _ref134.isClear, isReadonlyCol = _ref134.isReadonlyCol;
6949
+ function handleGlobalIsClear(_ref135) {
6950
+ var $el = _ref135.$el, _vm = _ref135._vm, actived = _ref135.actived, editConfig = _ref135.editConfig, event = _ref135.event, isClear = _ref135.isClear, isReadonlyCol = _ref135.isReadonlyCol;
6937
6951
  if (editConfig.mode === "row") {
6938
6952
  var rowNode = _vm.getEventTargetNode(event, $el, "tiny-grid-body__row");
6939
6953
  var isOtherRow = rowNode.flag ? rowNode.targetElem !== actived.args.cell.parentNode : 0;
@@ -6947,11 +6961,12 @@ function handleGlobalIsClear(_ref134) {
6947
6961
  }
6948
6962
  return isClear;
6949
6963
  }
6950
- function handleGlobalClearActived(_ref135) {
6964
+ function handleGlobalClearActived(_ref136) {
6951
6965
  var _vm$$refs$tableBody;
6952
- var $el = _ref135.$el, _vm = _ref135._vm, event = _ref135.event, isClear = _ref135.isClear;
6966
+ var $el = _ref136.$el, _vm = _ref136._vm, event = _ref136.event, isClear = _ref136.isClear;
6953
6967
  var tableContent = (_vm$$refs$tableBody = _vm.$refs.tableBody) == null ? void 0 : _vm$$refs$tableBody.$refs.table;
6954
- if (isClear || !_vm.getEventTargetNode(event, $el).flag || _vm.$refs.tableHeader && _vm.$refs.tableHeader.$el.contains(event.target) || tableContent && !tableContent.contains(event.target)) {
6968
+ var actualTarget = getActualTarget(event);
6969
+ if (isClear || !_vm.getEventTargetNode(event, $el).flag || _vm.$refs.tableHeader && _vm.$refs.tableHeader.$el.contains(actualTarget) || tableContent && !tableContent.contains(actualTarget)) {
6955
6970
  setTimeout(function() {
6956
6971
  return _vm.clearActived(event);
6957
6972
  });
@@ -6960,8 +6975,8 @@ function handleGlobalClearActived(_ref135) {
6960
6975
  function checkOtherKey(keyCode) {
6961
6976
  return keyCode >= 48 && keyCode <= 57 || keyCode >= 65 && keyCode <= 90 || keyCode >= 96 && keyCode <= 111 || keyCode >= 186 && keyCode <= 192 || keyCode >= 219 && keyCode <= 222 || keyCode === 32;
6962
6977
  }
6963
- function rule1(_ref136) {
6964
- var isKeyEsc = _ref136.isKeyEsc, _vm = _ref136._vm, event = _ref136.event, actived = _ref136.actived, mouseConfig = _ref136.mouseConfig;
6978
+ function rule1(_ref137) {
6979
+ var isKeyEsc = _ref137.isKeyEsc, _vm = _ref137._vm, event = _ref137.event, actived = _ref137.actived, mouseConfig = _ref137.mouseConfig;
6965
6980
  return {
6966
6981
  match: function match() {
6967
6982
  return isKeyEsc;
@@ -6975,8 +6990,8 @@ function rule1(_ref136) {
6975
6990
  }
6976
6991
  };
6977
6992
  }
6978
- function rule2(_ref137) {
6979
- var isKeySpacebar = _ref137.isKeySpacebar, keyboardConfig = _ref137.keyboardConfig, selected = _ref137.selected, _vm = _ref137._vm, event = _ref137.event;
6993
+ function rule2(_ref138) {
6994
+ var isKeySpacebar = _ref138.isKeySpacebar, keyboardConfig = _ref138.keyboardConfig, selected = _ref138.selected, _vm = _ref138._vm, event = _ref138.event;
6980
6995
  return {
6981
6996
  match: function match() {
6982
6997
  return isKeySpacebar && (keyboardConfig.isArrow || keyboardConfig.isTab) && selected.row && selected.column && (selected.column.type === "selection" || selected.column.type === "radio");
@@ -7006,8 +7021,8 @@ function rule3(args) {
7006
7021
  }
7007
7022
  };
7008
7023
  }
7009
- function rule4(_ref138) {
7010
- var isOperCtxMenu = _ref138.isOperCtxMenu, _vm = _ref138._vm, event = _ref138.event;
7024
+ function rule4(_ref139) {
7025
+ var isOperCtxMenu = _ref139.isOperCtxMenu, _vm = _ref139._vm, event = _ref139.event;
7011
7026
  return {
7012
7027
  match: function match() {
7013
7028
  return isOperCtxMenu;
@@ -7019,8 +7034,8 @@ function rule4(_ref138) {
7019
7034
  }
7020
7035
  };
7021
7036
  }
7022
- function rule5(_ref139) {
7023
- var isKeyF2 = _ref139.isKeyF2, _vm = _ref139._vm, event = _ref139.event, selected = _ref139.selected;
7037
+ function rule5(_ref140) {
7038
+ var isKeyF2 = _ref140.isKeyF2, _vm = _ref140._vm, event = _ref140.event, selected = _ref140.selected;
7024
7039
  return {
7025
7040
  match: function match() {
7026
7041
  return isKeyF2;
@@ -7033,8 +7048,8 @@ function rule5(_ref139) {
7033
7048
  }
7034
7049
  };
7035
7050
  }
7036
- function rule6(_ref140) {
7037
- var isOperArrowKeys = _ref140.isOperArrowKeys, keyboardConfig = _ref140.keyboardConfig, _vm = _ref140._vm, event = _ref140.event, selected = _ref140.selected;
7051
+ function rule6(_ref141) {
7052
+ var isOperArrowKeys = _ref141.isOperArrowKeys, keyboardConfig = _ref141.keyboardConfig, _vm = _ref141._vm, event = _ref141.event, selected = _ref141.selected;
7038
7053
  return {
7039
7054
  match: function match() {
7040
7055
  return isOperArrowKeys && keyboardConfig.isArrow;
@@ -7047,8 +7062,8 @@ function rule6(_ref140) {
7047
7062
  }
7048
7063
  };
7049
7064
  }
7050
- function rule7(_ref141) {
7051
- var isKeyTab = _ref141.isKeyTab, keyboardConfig = _ref141.keyboardConfig, _vm = _ref141._vm, event = _ref141.event, selected = _ref141.selected, actived = _ref141.actived;
7065
+ function rule7(_ref142) {
7066
+ var isKeyTab = _ref142.isKeyTab, keyboardConfig = _ref142.keyboardConfig, _vm = _ref142._vm, event = _ref142.event, selected = _ref142.selected, actived = _ref142.actived;
7052
7067
  return {
7053
7068
  match: function match() {
7054
7069
  return isKeyTab && keyboardConfig.isTab;
@@ -7077,8 +7092,8 @@ function rule8(args) {
7077
7092
  }
7078
7093
  };
7079
7094
  }
7080
- function rule9(_ref142) {
7081
- 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;
7095
+ function rule9(_ref143) {
7096
+ 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;
7082
7097
  return {
7083
7098
  match: function match() {
7084
7099
  return keyboardConfig.isCut && isKeyWithCtrl && (isKeyA || isKeyX || isKeyC || isKeyV);
@@ -7090,8 +7105,8 @@ function rule9(_ref142) {
7090
7105
  }
7091
7106
  };
7092
7107
  }
7093
- function rule10(_ref143) {
7094
- var keyboardConfig = _ref143.keyboardConfig, isKeyWithCtrl = _ref143.isKeyWithCtrl, _vm = _ref143._vm, event = _ref143.event, selected = _ref143.selected, actived = _ref143.actived;
7108
+ function rule10(_ref144) {
7109
+ var keyboardConfig = _ref144.keyboardConfig, isKeyWithCtrl = _ref144.isKeyWithCtrl, _vm = _ref144._vm, event = _ref144.event, selected = _ref144.selected, actived = _ref144.actived;
7095
7110
  return {
7096
7111
  match: function match() {
7097
7112
  return keyboardConfig.isEdit && !isKeyWithCtrl && !(selected.row === actived.row && selected.column === actived.column);
@@ -7284,9 +7299,9 @@ function handleGlobalMousewheelEvent(event) {
7284
7299
  this.clostTooltip();
7285
7300
  this.closeMenu();
7286
7301
  }
7287
- function handleEscKeyDown(_ref144) {
7302
+ function handleEscKeyDown(_ref145) {
7288
7303
  var _this11 = this;
7289
- var event = _ref144.event, actived = _ref144.actived, mouseConfig = _ref144.mouseConfig;
7304
+ var event = _ref145.event, actived = _ref145.actived, mouseConfig = _ref145.mouseConfig;
7290
7305
  this.closeMenu();
7291
7306
  this.closeFilter();
7292
7307
  if (actived.row) {
@@ -7298,9 +7313,9 @@ function handleEscKeyDown(_ref144) {
7298
7313
  }
7299
7314
  }
7300
7315
  }
7301
- function handleEnterKeyDown(_ref145) {
7316
+ function handleEnterKeyDown(_ref146) {
7302
7317
  var _this12 = this;
7303
- var event = _ref145.event, selected = _ref145.selected, actived = _ref145.actived;
7318
+ var event = _ref146.event, selected = _ref146.selected, actived = _ref146.actived;
7304
7319
  var highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow, treeConfig = this.treeConfig;
7305
7320
  var isLeftArrow = event.keyCode === 37;
7306
7321
  var isUpArrow = event.keyCode === 38;
@@ -7330,8 +7345,8 @@ function handleEnterKeyDown(_ref145) {
7330
7345
  }
7331
7346
  }
7332
7347
  }
7333
- function handleCtxMenu(_ref146) {
7334
- var event = _ref146.event;
7348
+ function handleCtxMenu(_ref147) {
7349
+ var event = _ref147.event;
7335
7350
  var ctxMenuStore = this.ctxMenuStore;
7336
7351
  event.preventDefault();
7337
7352
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
@@ -7356,8 +7371,8 @@ function handleCtxMenu(_ref146) {
7356
7371
  });
7357
7372
  }
7358
7373
  }
7359
- function handleArrowKeyDown(_ref147) {
7360
- var event = _ref147.event, selected = _ref147.selected;
7374
+ function handleArrowKeyDown(_ref148) {
7375
+ var event = _ref148.event, selected = _ref148.selected;
7361
7376
  var highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow;
7362
7377
  var isLeftArrow = event.keyCode === 37;
7363
7378
  var isUpArrow = event.keyCode === 38;
@@ -7376,9 +7391,9 @@ function handleArrowKeyDown(_ref147) {
7376
7391
  this.moveCurrentRow(isUpArrow, isDownArrow, event);
7377
7392
  }
7378
7393
  }
7379
- function handleDelKeyDown(_ref148) {
7394
+ function handleDelKeyDown(_ref149) {
7380
7395
  var _this13 = this;
7381
- var event = _ref148.event, selected = _ref148.selected;
7396
+ var event = _ref149.event, selected = _ref149.selected;
7382
7397
  var _this$keyboardConfig = this.keyboardConfig, keyboardConfig = _this$keyboardConfig === void 0 ? {} : _this$keyboardConfig, treeConfig = this.treeConfig, highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow;
7383
7398
  var isBack = event.keyCode === 8;
7384
7399
  if (keyboardConfig.isDel && (selected.row || selected.column)) {
@@ -7403,8 +7418,8 @@ function handleDelKeyDown(_ref148) {
7403
7418
  }
7404
7419
  }
7405
7420
  }
7406
- function handleSpaceKeyDown(_ref149) {
7407
- var event = _ref149.event, selected = _ref149.selected;
7421
+ function handleSpaceKeyDown(_ref150) {
7422
+ var event = _ref150.event, selected = _ref150.selected;
7408
7423
  event.preventDefault();
7409
7424
  if (selected.column.type === "selection") {
7410
7425
  this.handleToggleCheckRowEvent(selected.args, event);
@@ -7412,8 +7427,8 @@ function handleSpaceKeyDown(_ref149) {
7412
7427
  this.triggerRadioRowEvent(event, selected.args);
7413
7428
  }
7414
7429
  }
7415
- function handleTabKeyDown(_ref150) {
7416
- var event = _ref150.event, selected = _ref150.selected, actived = _ref150.actived;
7430
+ function handleTabKeyDown(_ref151) {
7431
+ var event = _ref151.event, selected = _ref151.selected, actived = _ref151.actived;
7417
7432
  var isShiftKey = event.shiftKey;
7418
7433
  var useTab = this.editConfig.useTab;
7419
7434
  if (selected.row || selected.column) {
@@ -7422,8 +7437,8 @@ function handleTabKeyDown(_ref150) {
7422
7437
  this.moveTabSelected(actived.args, isShiftKey, event, useTab);
7423
7438
  }
7424
7439
  }
7425
- function handleCopyKeyDown(_ref151) {
7426
- var event = _ref151.event;
7440
+ function handleCopyKeyDown(_ref152) {
7441
+ var event = _ref152.event;
7427
7442
  if (event.keyCode === 65) {
7428
7443
  this.handleAllChecked(event);
7429
7444
  } else if (event.keyCode === 88 || event.keyCode === 67) {
@@ -7432,15 +7447,15 @@ function handleCopyKeyDown(_ref151) {
7432
7447
  this.handlePaste(event);
7433
7448
  }
7434
7449
  }
7435
- function handleF2KeyDown(_ref152) {
7436
- var event = _ref152.event, selected = _ref152.selected;
7450
+ function handleF2KeyDown(_ref153) {
7451
+ var event = _ref153.event, selected = _ref153.selected;
7437
7452
  if (selected.row && selected.column) {
7438
7453
  event.preventDefault();
7439
7454
  this.handleActived(selected.args, event);
7440
7455
  }
7441
7456
  }
7442
- function handleOtherKeyDown(_ref153) {
7443
- var event = _ref153.event, selected = _ref153.selected;
7457
+ function handleOtherKeyDown(_ref154) {
7458
+ var event = _ref154.event, selected = _ref154.selected;
7444
7459
  var _this$keyboardConfig2 = this.keyboardConfig, keyboardConfig = _this$keyboardConfig2 === void 0 ? {} : _this$keyboardConfig2;
7445
7460
  var keyCode = event.keyCode;
7446
7461
  var isOtherKey = checkOtherKey(keyCode);
@@ -7561,12 +7576,12 @@ var Methods$d = {
7561
7576
  }
7562
7577
  return this.clearActived();
7563
7578
  },
7564
- refreshData: function refreshData(data6) {
7579
+ refreshData: function refreshData(data7) {
7565
7580
  var _this16 = this;
7566
7581
  var next = function next2() {
7567
7582
  _this16.tableData = [];
7568
7583
  _this16.cellStatus.clear();
7569
- return _this16.loadTableData(data6 || _this16.tableFullData);
7584
+ return _this16.loadTableData(data7 || _this16.tableFullData);
7570
7585
  };
7571
7586
  return this.$nextTick().then(next);
7572
7587
  },
@@ -7595,7 +7610,7 @@ var Methods$d = {
7595
7610
  // 处理表格数据(过滤,排序,虚拟滚动需要渲染数据的条数)
7596
7611
  handleTableData: function handleTableData(force) {
7597
7612
  var _this$tableFullColumn, _this$tableFullColumn2;
7598
- if (force && ((_this$tableFullColumn = this.tableFullColumn) == null ? void 0 : _this$tableFullColumn.length) > 0) {
7613
+ if (force && (((_this$tableFullColumn = this.tableFullColumn) == null ? void 0 : _this$tableFullColumn.length) > 0 || this.viewType !== GlobalConfig$1.viewConfig.DEFAULT)) {
7599
7614
  this.updateAfterFullData();
7600
7615
  this.updateSelectionStatus();
7601
7616
  this.handleSelectionHeader();
@@ -7674,7 +7689,7 @@ var Methods$d = {
7674
7689
  },
7675
7690
  reloadRow: function reloadRow(row2, record, field) {
7676
7691
  var tableData = this.tableData, treeConfig = this.treeConfig, treeOrdered = this.treeOrdered;
7677
- var _ref154 = treeConfig || {}, childrenKey = _ref154.children, _ref154$temporaryInde = _ref154.temporaryIndex, temporaryIndex = _ref154$temporaryInde === void 0 ? "_$index_" : _ref154$temporaryInde;
7692
+ var _ref155 = treeConfig || {}, childrenKey = _ref155.children, _ref155$temporaryInde = _ref155.temporaryIndex, temporaryIndex = _ref155$temporaryInde === void 0 ? "_$index_" : _ref155$temporaryInde;
7678
7693
  var rowKey = getRowkey(this);
7679
7694
  var originRow = this.getOriginRow(row2);
7680
7695
  var hasSrc = originRow && row2;
@@ -7683,7 +7698,7 @@ var Methods$d = {
7683
7698
  set(originRow, field, get(record || row2, field));
7684
7699
  }
7685
7700
  if (hasSrcNoField && record) {
7686
- var _extends4, _ref155;
7701
+ var _extends4, _ref156;
7687
7702
  var backupRow = this.defineField(_extends({}, record, (_extends4 = {}, _extends4[rowKey] = originRow[rowKey], _extends4)));
7688
7703
  var rowChildren, clonedRow;
7689
7704
  if (treeConfig) {
@@ -7699,7 +7714,7 @@ var Methods$d = {
7699
7714
  }
7700
7715
  this.setOriginRow(row2, backupRow);
7701
7716
  clear(row2, void 0);
7702
- Object.assign(row2, clonedRow, treeConfig ? (_ref155 = {}, _ref155[childrenKey] = rowChildren, _ref155) : null);
7717
+ Object.assign(row2, clonedRow, treeConfig ? (_ref156 = {}, _ref156[childrenKey] = rowChildren, _ref156) : null);
7703
7718
  this.updateCache();
7704
7719
  }
7705
7720
  if (hasSrcNoField && !record) {
@@ -7745,7 +7760,7 @@ var Methods$d = {
7745
7760
  }
7746
7761
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig, treeOrdered = this.treeOrdered;
7747
7762
  var rowKey = getRowkey(this);
7748
- var _ref156 = treeConfig || {}, childrenKey = _ref156.children, _ref156$temporaryInde = _ref156.temporaryIndex, temporaryIndex = _ref156$temporaryInde === void 0 ? "_$index_" : _ref156$temporaryInde;
7763
+ var _ref157 = treeConfig || {}, childrenKey = _ref157.children, _ref157$temporaryInde = _ref157.temporaryIndex, temporaryIndex = _ref157$temporaryInde === void 0 ? "_$index_" : _ref157$temporaryInde;
7749
7764
  var isTreeOrderedFalse = treeConfig && !treeOrdered;
7750
7765
  var backupMap = /* @__PURE__ */ new WeakMap();
7751
7766
  this.fullDataRowIdData = {};
@@ -7764,7 +7779,7 @@ var Methods$d = {
7764
7779
  _this23.fullDataRowIdData[rowId] = rowCache;
7765
7780
  _this23.fullDataRowMap.set(hooks.toRaw(row2), rowCache);
7766
7781
  if (backup) {
7767
- var _ref157;
7782
+ var _ref158;
7768
7783
  if (isTreeOrderedFalse) {
7769
7784
  var parentIndex;
7770
7785
  if (parent) {
@@ -7772,7 +7787,7 @@ var Methods$d = {
7772
7787
  }
7773
7788
  set(row2, temporaryIndex, (parentIndex ? parentIndex + "." : "") + (index2 + 1));
7774
7789
  }
7775
- var childrenField = treeConfig ? (_ref157 = {}, _ref157[childrenKey] = void 0, _ref157) : {};
7790
+ var childrenField = treeConfig ? (_ref158 = {}, _ref158[childrenKey] = void 0, _ref158) : {};
7776
7791
  var backupRow = deepCopy ? clone(_extends({}, row2, childrenField), true) : _extends({}, row2, childrenField);
7777
7792
  backupMap.set(row2, backupRow);
7778
7793
  return backupRow;
@@ -7848,8 +7863,8 @@ var Methods$d = {
7848
7863
  row2 = clone(row2, true);
7849
7864
  }
7850
7865
  var rowKey = getRowkey(this);
7851
- this.visibleColumn.forEach(function(_ref158) {
7852
- var property = _ref158.property, editor = _ref158.editor;
7866
+ this.visibleColumn.forEach(function(_ref159) {
7867
+ var property = _ref159.property, editor = _ref159.editor;
7853
7868
  var propNotExist = property && !has(row2, property);
7854
7869
  var propDefaultValue = editor && !isUndefined(editor.defaultValue) ? editor.defaultValue : null;
7855
7870
  if (propNotExist) {
@@ -7913,7 +7928,7 @@ var Methods$d = {
7913
7928
  var value = get(row2, field);
7914
7929
  var originalValue = get(originalRow, field);
7915
7930
  var column = this.getColumnByField(field);
7916
- var equals = column.equals || this.equals;
7931
+ var equals = (column == null ? void 0 : column.equals) || this.equals;
7917
7932
  var result;
7918
7933
  if (equals) {
7919
7934
  result = equals({
@@ -8007,7 +8022,7 @@ var Methods$d = {
8007
8022
  var _this$selectConfig = this.selectConfig, selectConfig = _this$selectConfig === void 0 ? {} : _this$selectConfig, selection = this.selection;
8008
8023
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
8009
8024
  var checkField = selectConfig.checkField;
8010
- var _ref159 = {}, _ref159$rowList = _ref159.rowList, rowList = _ref159$rowList === void 0 ? [] : _ref159$rowList;
8025
+ var _ref160 = {}, _ref160$rowList = _ref160.rowList, rowList = _ref160$rowList === void 0 ? [] : _ref160$rowList;
8011
8026
  if (checkField && treeConfig) {
8012
8027
  rowList = filterTree(tableFullData, function(row2) {
8013
8028
  return get(row2, checkField);
@@ -8036,8 +8051,8 @@ var Methods$d = {
8036
8051
  var tableData = this.tableFullData;
8037
8052
  var updateFilter = function updateFilter2(tableData2) {
8038
8053
  var remoteFilter = _this27.remoteFilter, visibleColumn = _this27.visibleColumn;
8039
- var filterColumn = visibleColumn.filter(function(_ref160) {
8040
- var filter2 = _ref160.filter;
8054
+ var filterColumn = visibleColumn.filter(function(_ref161) {
8055
+ var filter2 = _ref161.filter;
8041
8056
  return !!filter2;
8042
8057
  });
8043
8058
  return tableData2.filter(function(row2) {
@@ -8066,8 +8081,8 @@ var Methods$d = {
8066
8081
  } else {
8067
8082
  var sortedFlag = false;
8068
8083
  if (sortOpts2.multipleColumnSort) {
8069
- var sortColumns = visibleColumn.filter(function(_ref161) {
8070
- var order2 = _ref161.order;
8084
+ var sortColumns = visibleColumn.filter(function(_ref162) {
8085
+ var order2 = _ref162.order;
8071
8086
  return !!order2;
8072
8087
  });
8073
8088
  if (sortColumns.length > 1) {
@@ -8144,16 +8159,13 @@ var Methods$d = {
8144
8159
  };
8145
8160
  },
8146
8161
  handleDefault: function handleDefault() {
8147
- var _this29 = this;
8148
8162
  this.handleAsyncColumn(this.tableData);
8149
8163
  this.isCheckable && this.selectConfig && this.handleSelectionDefChecked();
8150
8164
  this.radioConfig && this.handleRadioDefChecked();
8151
8165
  this.expandConfig && this.handleDefaultRowExpand();
8152
8166
  this.treeConfig && this.handleDefaultTreeExpand();
8153
8167
  this.updateFooter();
8154
- this.$nextTick(function() {
8155
- return setTimeout(_this29.recalculate);
8156
- });
8168
+ this.$nextTick(this.recalculate);
8157
8169
  },
8158
8170
  // 动态列处理
8159
8171
  mergeCustomColumn: function mergeCustomColumn(customColumns, sort2, colWidth) {
@@ -8178,7 +8190,7 @@ var Methods$d = {
8178
8190
  });
8179
8191
  }
8180
8192
  if (hasCustomsOrColWidth && !isGroupOrNonSort) {
8181
- 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;
8193
+ 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;
8182
8194
  mapTree(customColumns, function(customCol) {
8183
8195
  var targetCol = find$1(fullColumn, function(item) {
8184
8196
  return customCol.property && item.property === customCol.property;
@@ -8231,11 +8243,11 @@ var Methods$d = {
8231
8243
  },
8232
8244
  // 初始化加载动态列:customColumns 列信息,sort 是否按顺序加载
8233
8245
  reloadCustoms: function reloadCustoms(customColumns, sort2, colWidth) {
8234
- var _this30 = this;
8246
+ var _this29 = this;
8235
8247
  this.mergeCustomColumn(customColumns, sort2, colWidth);
8236
8248
  this.handleTableData(true);
8237
8249
  return this.refreshColumn().then(function() {
8238
- return _this30.tableFullColumn.slice(0);
8250
+ return _this29.tableFullColumn.slice(0);
8239
8251
  });
8240
8252
  },
8241
8253
  watchColumn: function watchColumn(value) {
@@ -8282,7 +8294,7 @@ var Methods$d = {
8282
8294
  * 如果使用了分组表头,固定列必须在左侧或者右侧
8283
8295
  */
8284
8296
  refreshColumn: function refreshColumn() {
8285
- var _this31 = this;
8297
+ var _this30 = this;
8286
8298
  var leftList = [], centerList = [], rightList = [];
8287
8299
  var letIndex = 0, leftStartIndex = null, rightEndIndex = null, isColspan = void 0;
8288
8300
  var columnStore = this.columnStore, isGroup2 = this.isGroup;
@@ -8354,9 +8366,9 @@ var Methods$d = {
8354
8366
  this.updateFooter();
8355
8367
  this.recalculate();
8356
8368
  return this.$nextTick().then(function() {
8357
- _this31.$emit("after-refresh-column");
8358
- if (_this31.isColumnReady) {
8359
- _this31.attemptRestoreScroll();
8369
+ _this30.$emit("after-refresh-column");
8370
+ if (_this30.isColumnReady) {
8371
+ _this30.attemptRestoreScroll();
8360
8372
  }
8361
8373
  });
8362
8374
  },
@@ -8436,7 +8448,7 @@ var Methods$d = {
8436
8448
  * 支持(width=?、width=?px、width=?%、min-width=?、min-width=?px、min-width=?%)
8437
8449
  */
8438
8450
  recalculate: function recalculate() {
8439
- var _this32 = this;
8451
+ var _this31 = this;
8440
8452
  var elemStore = this.elemStore, scrollXLoad = this.scrollXLoad, scrollYLoad = this.scrollYLoad, scrollLoad = this.scrollLoad, _tableVisible = this._tableVisible;
8441
8453
  var bodyWrapper = elemStore["main-body-wrapper"];
8442
8454
  if (!_tableVisible) {
@@ -8448,7 +8460,7 @@ var Methods$d = {
8448
8460
  this.autoCellWidth();
8449
8461
  if (scrollXLoad || scrollYLoad || scrollLoad) {
8450
8462
  return this.computeScrollLoad().then(function() {
8451
- _this32.autoCellWidth();
8463
+ _this31.autoCellWidth();
8452
8464
  });
8453
8465
  }
8454
8466
  return this.computeScrollLoad();
@@ -8506,17 +8518,17 @@ var Methods$d = {
8506
8518
  this.currentRow && this.setCurrentRow(this.currentRow);
8507
8519
  },
8508
8520
  preventEvent: function preventEvent(event, type, args, next, end) {
8509
- var _this33 = this;
8521
+ var _this32 = this;
8510
8522
  var eventList = Interceptor.get(type);
8511
8523
  if (!eventList.some(function(listener) {
8512
- return listener(args, event, _this33) === false;
8524
+ return listener(args, event, _this32) === false;
8513
8525
  })) {
8514
8526
  next && next();
8515
8527
  }
8516
8528
  end && end();
8517
8529
  },
8518
- blurOutside: function blurOutside(_ref163, event) {
8519
- var row2 = _ref163.row, args = _ref163.args, column = _ref163.column;
8530
+ blurOutside: function blurOutside(_ref164, event) {
8531
+ var row2 = _ref164.row, args = _ref164.args, column = _ref164.column;
8520
8532
  var editConfig = this.editConfig, getEventTargetNode2 = this.getEventTargetNode, $el = this.$el;
8521
8533
  if (column && row2) {
8522
8534
  var editor = column.editor;
@@ -8545,7 +8557,7 @@ var Methods$d = {
8545
8557
  } else if (isArray(blurClassConfig)) {
8546
8558
  blurClass = blurClassConfig.slice(0);
8547
8559
  }
8548
- if (args != null && args.cell.contains(event.target)) {
8560
+ if (args != null && args.cell.contains(getActualTarget(event))) {
8549
8561
  return true;
8550
8562
  }
8551
8563
  if (editConfig.mode === "row" && getEventTargetNode2(event, $el, "tiny-grid-body__column").flag) {
@@ -8576,7 +8588,7 @@ var Methods$d = {
8576
8588
  // 处理单选框默认勾选
8577
8589
  handleRadioDefChecked: function handleRadioDefChecked() {
8578
8590
  var fullDataRowIdData = this.fullDataRowIdData;
8579
- var _ref164 = this.radioConfig || {}, checkRowKey = _ref164.checkRowKey;
8591
+ var _ref165 = this.radioConfig || {}, checkRowKey = _ref165.checkRowKey;
8580
8592
  var rowid2 = checkRowKey && encodeURIComponent(checkRowKey);
8581
8593
  var rowCache = fullDataRowIdData[rowid2];
8582
8594
  if (rowid2 && rowCache) {
@@ -8586,7 +8598,7 @@ var Methods$d = {
8586
8598
  // 单选,行选中事件
8587
8599
  triggerRadioRowEvent: function triggerRadioRowEvent(event, params) {
8588
8600
  var selectRow = this.selectRow;
8589
- var _ref165 = this.radioConfig || {}, checkMethod = _ref165.checkMethod;
8601
+ var _ref166 = this.radioConfig || {}, checkMethod = _ref166.checkMethod;
8590
8602
  if (checkMethod && !checkMethod(params)) {
8591
8603
  return;
8592
8604
  }
@@ -8685,12 +8697,15 @@ var Methods$d = {
8685
8697
  },
8686
8698
  // 当单元格发生改变时,如果存在规则,则校验
8687
8699
  handleChangeCell: function handleChangeCell(event, params) {
8688
- var _this34 = this;
8700
+ var _this33 = this;
8689
8701
  this.triggerValidate("blur").catch(function(e) {
8690
8702
  return e;
8691
8703
  }).then(function() {
8692
- _this34.handleActived(params, event).then(function() {
8693
- return _this34.triggerValidate("change");
8704
+ _this33.handleActived(params, event).then(function() {
8705
+ var _this33$editConfig;
8706
+ if ((_this33$editConfig = _this33.editConfig) != null && _this33$editConfig.validateOnActive) {
8707
+ return _this33.triggerValidate("change");
8708
+ }
8694
8709
  }).catch(function(e) {
8695
8710
  return e;
8696
8711
  });
@@ -8761,7 +8776,7 @@ var Methods$d = {
8761
8776
  },
8762
8777
  // 列双击点击事件:如果是双击模式,则激活为编辑状态
8763
8778
  triggerCellDBLClickEvent: function triggerCellDBLClickEvent(event, params) {
8764
- var _this35 = this;
8779
+ var _this34 = this;
8765
8780
  var editStore = this.editStore, editConfig = this.editConfig;
8766
8781
  var actived = editStore.actived;
8767
8782
  var isActiveNewCell = !actived.args || event.currentTarget !== actived.args.cell;
@@ -8770,8 +8785,8 @@ var Methods$d = {
8770
8785
  this.triggerValidate("blur").catch(function(e) {
8771
8786
  return e;
8772
8787
  }).then(function() {
8773
- _this35.handleActived(params, event).then(function() {
8774
- return _this35.triggerValidate("change");
8788
+ _this34.handleActived(params, event).then(function() {
8789
+ return _this34.triggerValidate("change");
8775
8790
  }).catch(function(e) {
8776
8791
  return e;
8777
8792
  });
@@ -8779,7 +8794,7 @@ var Methods$d = {
8779
8794
  }
8780
8795
  if (isDblclickNewCell && editConfig.mode === "cell") {
8781
8796
  this.handleActived(params, event).then(function() {
8782
- return _this35.triggerValidate("change");
8797
+ return _this34.triggerValidate("change");
8783
8798
  }).catch(function(e) {
8784
8799
  return e;
8785
8800
  });
@@ -8838,8 +8853,8 @@ var Methods$d = {
8838
8853
  this.groupExpandeds.push(row2);
8839
8854
  },
8840
8855
  // 展开行事件
8841
- triggerRowExpandEvent: function triggerRowExpandEvent(event, _ref166) {
8842
- var row2 = _ref166.row;
8856
+ triggerRowExpandEvent: function triggerRowExpandEvent(event, _ref167) {
8857
+ var row2 = _ref167.row;
8843
8858
  var rest = this.toggleRowExpansion(row2);
8844
8859
  var eventParams = {
8845
8860
  $table: this,
@@ -8856,7 +8871,7 @@ var Methods$d = {
8856
8871
  // 处理默认展开行
8857
8872
  handleDefaultRowExpand: function handleDefaultRowExpand() {
8858
8873
  var fullDataRowIdData = this.fullDataRowIdData, tableFullData = this.tableFullData;
8859
- var _ref167 = this.expandConfig || {}, expandAll = _ref167.expandAll, expandRowKeys = _ref167.expandRowKeys;
8874
+ var _ref168 = this.expandConfig || {}, expandAll = _ref168.expandAll, expandRowKeys = _ref168.expandRowKeys;
8860
8875
  if (expandAll) {
8861
8876
  this.expandeds = tableFullData.slice(0);
8862
8877
  return;
@@ -8877,7 +8892,7 @@ var Methods$d = {
8877
8892
  // 设置展开行,二个参数设置这一行展开与否;支持单行;支持多行
8878
8893
  setRowExpansion: function setRowExpansion(rows, expanded) {
8879
8894
  var expandeds = this.expandeds;
8880
- var _ref168 = this.expandConfig || {}, accordion = _ref168.accordion;
8895
+ var _ref169 = this.expandConfig || {}, accordion = _ref169.accordion;
8881
8896
  var isToggle = arguments.length === 1;
8882
8897
  var isAccordionCloseAll = false;
8883
8898
  if (!rows) {
@@ -8909,11 +8924,11 @@ var Methods$d = {
8909
8924
  return ~this.expandeds.indexOf(row2);
8910
8925
  },
8911
8926
  clearRowExpand: function clearRowExpand() {
8912
- var _this36 = this;
8927
+ var _this35 = this;
8913
8928
  var hasExpand = this.expandeds.length;
8914
8929
  this.expandeds = [];
8915
8930
  return this.$nextTick().then(function() {
8916
- return hasExpand ? _this36.recalculate() : 0;
8931
+ return hasExpand ? _this35.recalculate() : 0;
8917
8932
  });
8918
8933
  },
8919
8934
  // 获取虚拟滚动状态
@@ -8932,13 +8947,13 @@ var Methods$d = {
8932
8947
  this.loadScrollXData(event);
8933
8948
  },
8934
8949
  debounceScrollX: function debounceScrollX(event) {
8935
- var _this37 = this;
8950
+ var _this36 = this;
8936
8951
  if (!this.tasks.debounceScrollX) {
8937
8952
  this.tasks.debounceScrollXHandler = null;
8938
8953
  this.tasks.debounceScrollX = function() {
8939
8954
  return requestAnimationFrame(function() {
8940
- _this37.tasks.debounceScrollXHandler = null;
8941
- _this37.loadScrollXData(event);
8955
+ _this36.tasks.debounceScrollXHandler = null;
8956
+ _this36.loadScrollXData(event);
8942
8957
  });
8943
8958
  };
8944
8959
  }
@@ -8953,7 +8968,7 @@ var Methods$d = {
8953
8968
  var scrollXStore = this.scrollXStore, visibleColumn = this.visibleColumn;
8954
8969
  var offsetSize = scrollXStore.offsetSize, renderSize = scrollXStore.renderSize, startIndex = scrollXStore.startIndex, visibleIndex = scrollXStore.visibleIndex, visibleSize = scrollXStore.visibleSize;
8955
8970
  var scrollLeft = this.$refs.tableBody.$el.scrollLeft;
8956
- 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;
8971
+ 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;
8957
8972
  for (var i = 0; i < visibleColumn.length; i++) {
8958
8973
  width += visibleColumn[i].renderWidth;
8959
8974
  if (scrollLeft < width) {
@@ -8989,21 +9004,21 @@ var Methods$d = {
8989
9004
  },
8990
9005
  // 处理滚动分页相关逻辑
8991
9006
  debounceScrollLoad: function debounceScrollLoad(event) {
8992
- var _this38 = this;
9007
+ var _this37 = this;
8993
9008
  if (!this.tasks.debounceScrollLoad) {
8994
9009
  this.tasks.debounceScrollLoad = debounce(debounceScrollLoadDuration, function() {
8995
- var _this38$scrollLoadSto = _this38.scrollLoadStore, scrollHeight = _this38$scrollLoadSto.scrollHeight, bodyHeight = _this38$scrollLoadSto.bodyHeight;
8996
- var _this38$$grid$tablePa = _this38.$grid.tablePage, currentPage = _this38$$grid$tablePa.currentPage, pageSize = _this38$$grid$tablePa.pageSize;
9010
+ var _this37$scrollLoadSto = _this37.scrollLoadStore, scrollHeight = _this37$scrollLoadSto.scrollHeight, bodyHeight = _this37$scrollLoadSto.bodyHeight;
9011
+ var _this37$$grid$tablePa = _this37.$grid.tablePage, currentPage = _this37$$grid$tablePa.currentPage, pageSize = _this37$$grid$tablePa.pageSize;
8997
9012
  var max = scrollHeight - bodyHeight;
8998
- var scrollTop = event.target.scrollTop;
9013
+ var scrollTop = getActualTarget(event).scrollTop;
8999
9014
  if (scrollTop > max) {
9000
9015
  scrollTop = max;
9001
9016
  }
9002
- var rowHeight = _this38.scrollYStore.rowHeight;
9017
+ var rowHeight = _this37.scrollYStore.rowHeight;
9003
9018
  var visibleIndex = Math.ceil(scrollTop / rowHeight);
9004
9019
  var page = Math.ceil(visibleIndex / pageSize) + 1;
9005
9020
  if (currentPage !== page) {
9006
- _this38.$grid.pageCurrentChange(page);
9021
+ _this37.$grid.pageCurrentChange(page);
9007
9022
  }
9008
9023
  });
9009
9024
  }
@@ -9011,10 +9026,10 @@ var Methods$d = {
9011
9026
  },
9012
9027
  // 纵向 Y 可视渲染处理
9013
9028
  loadScrollYData: function loadScrollYData(event) {
9014
- var _this39 = this;
9029
+ var _this38 = this;
9015
9030
  var scrollYStore = this.scrollYStore;
9016
9031
  var startIndex = scrollYStore.startIndex, renderSize = scrollYStore.renderSize, offsetSize = scrollYStore.offsetSize, visibleIndex = scrollYStore.visibleIndex, visibleSize = scrollYStore.visibleSize, rowHeight = scrollYStore.rowHeight;
9017
- var scrollTop = event.target.scrollTop;
9032
+ var _getActualTarget = getActualTarget(event), scrollTop = _getActualTarget.scrollTop;
9018
9033
  var toVisibleIndex = Math.ceil(scrollTop / rowHeight);
9019
9034
  var preload = false;
9020
9035
  if (visibleIndex === toVisibleIndex) {
@@ -9037,7 +9052,7 @@ var Methods$d = {
9037
9052
  }
9038
9053
  scrollYStore.visibleIndex = toVisibleIndex;
9039
9054
  this.$nextTick(function() {
9040
- _this39.updateSelectedCls(true);
9055
+ _this38.updateSelectedCls(true);
9041
9056
  });
9042
9057
  },
9043
9058
  getRowHeight: function getRowHeight() {
@@ -9045,16 +9060,16 @@ var Methods$d = {
9045
9060
  },
9046
9061
  // 计算可视渲染相关数据
9047
9062
  computeScrollLoad: function computeScrollLoad() {
9048
- var _this40 = this;
9063
+ var _this39 = this;
9049
9064
  return this.$nextTick().then(function() {
9050
- var $refs = _this40.$refs, optimizeOpts = _this40.optimizeOpts, visibleColumn = _this40.visibleColumn;
9051
- var scrollLoad = _this40.scrollLoad, scrollXLoad = _this40.scrollXLoad, scrollXStore = _this40.scrollXStore, scrollYLoad = _this40.scrollYLoad, scrollYStore = _this40.scrollYStore;
9065
+ var $refs = _this39.$refs, optimizeOpts = _this39.optimizeOpts, visibleColumn = _this39.visibleColumn;
9066
+ var scrollLoad = _this39.scrollLoad, scrollXLoad = _this39.scrollXLoad, scrollXStore = _this39.scrollXStore, scrollYLoad = _this39.scrollYLoad, scrollYStore = _this39.scrollYStore;
9052
9067
  var scrollX = optimizeOpts.scrollX, scrollY = optimizeOpts.scrollY;
9053
9068
  var tableBody = $refs.tableBody;
9054
9069
  var bodyElem = tableBody ? tableBody.$el : null;
9055
9070
  if (bodyElem) {
9056
9071
  computeScrollXLoad({
9057
- _vm: _this40,
9072
+ _vm: _this39,
9058
9073
  scrollX,
9059
9074
  scrollXLoad,
9060
9075
  scrollXStore,
@@ -9062,7 +9077,7 @@ var Methods$d = {
9062
9077
  visibleColumn
9063
9078
  });
9064
9079
  computeScrollYLoad({
9065
- _vm: _this40,
9080
+ _vm: _this39,
9066
9081
  scrollLoad,
9067
9082
  scrollY,
9068
9083
  scrollYLoad,
@@ -9070,7 +9085,7 @@ var Methods$d = {
9070
9085
  tableBodyElem: bodyElem
9071
9086
  });
9072
9087
  }
9073
- _this40.$nextTick(_this40.updateStyle);
9088
+ _this39.$nextTick(_this39.updateStyle);
9074
9089
  });
9075
9090
  },
9076
9091
  updateScrollXData: function updateScrollXData() {
@@ -9100,10 +9115,10 @@ var Methods$d = {
9100
9115
  }
9101
9116
  },
9102
9117
  updateScrollYData: function updateScrollYData() {
9103
- var _this41 = this;
9118
+ var _this40 = this;
9104
9119
  this.updateScrollYSpace();
9105
9120
  this.handleTableData().then(function() {
9106
- return _this41.updateStyle();
9121
+ return _this40.updateStyle();
9107
9122
  });
9108
9123
  },
9109
9124
  // 更新纵向 Y 可视渲染上下剩余空间大小
@@ -9120,7 +9135,7 @@ var Methods$d = {
9120
9135
  },
9121
9136
  updateScrollLoadBar: function updateScrollLoadBar(event) {
9122
9137
  var $el = this.$el, elemStore = this.elemStore, scrollLoad = this.scrollLoad, scrollLoadStore = this.scrollLoadStore;
9123
- if (scrollLoad && $el.contains(event.target)) {
9138
+ if (scrollLoad && $el.contains(getActualTarget(event))) {
9124
9139
  var wheelDelta = event.wheelDelta ? event.wheelDelta : -event.detail * 40;
9125
9140
  var scrollElm = elemStore["main-body-ySpace"];
9126
9141
  var scrollHeight = scrollLoadStore.scrollHeight, bodyHeight = scrollLoadStore.bodyHeight;
@@ -9149,7 +9164,7 @@ var Methods$d = {
9149
9164
  return this.scrollToColumn(column, isDelayArg, move);
9150
9165
  },
9151
9166
  scrollToTreeRow: function scrollToTreeRow(row2) {
9152
- var _this42 = this;
9167
+ var _this41 = this;
9153
9168
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
9154
9169
  if (!treeConfig) {
9155
9170
  return this.$nextTick();
@@ -9162,20 +9177,20 @@ var Methods$d = {
9162
9177
  }
9163
9178
  var nodes = matchObj.nodes;
9164
9179
  nodes.forEach(function(row22, index2) {
9165
- if (index2 === nodes.length - 1 || _this42.hasTreeExpand(row22)) {
9180
+ if (index2 === nodes.length - 1 || _this41.hasTreeExpand(row22)) {
9166
9181
  return;
9167
9182
  }
9168
- _this42.setTreeExpansion(row22, true);
9183
+ _this41.setTreeExpansion(row22, true);
9169
9184
  });
9170
9185
  return this.$nextTick();
9171
9186
  },
9172
9187
  scrollToColumn: function scrollToColumn(column, isDelay, move) {
9173
- var _this43 = this;
9188
+ var _this42 = this;
9174
9189
  var hasColCache = this.fullColumnMap.has(column);
9175
9190
  column && hasColCache && colToVisible(this, column, move);
9176
9191
  return isDelay && (this.scrollXLoad || this.scrollYLoad) ? new Promise(function(resolve) {
9177
9192
  return setTimeout(function() {
9178
- return resolve(_this43.$nextTick());
9193
+ return resolve(_this42.$nextTick());
9179
9194
  }, 50);
9180
9195
  }) : this.$nextTick();
9181
9196
  },
@@ -9183,7 +9198,7 @@ var Methods$d = {
9183
9198
  this.lastScrollTop = 0;
9184
9199
  },
9185
9200
  clearScroll: function clearScroll() {
9186
- var _this44 = this;
9201
+ var _this43 = this;
9187
9202
  var $grid = this.$grid, scrollXStore = this.scrollXStore, scrollYStore = this.scrollYStore, elemStore = this.elemStore;
9188
9203
  var _$grid$fetchOption = $grid.fetchOption, fetchOption = _$grid$fetchOption === void 0 ? {} : _$grid$fetchOption;
9189
9204
  var _fetchOption$isReload2 = fetchOption.isReloadScroll, isReloadScroll = _fetchOption$isReload2 === void 0 ? false : _fetchOption$isReload2;
@@ -9204,7 +9219,7 @@ var Methods$d = {
9204
9219
  });
9205
9220
  return this.$nextTick(function() {
9206
9221
  var tableBodyElem = elemStore["main-body-wrapper"];
9207
- if (_this44.afterMounted) {
9222
+ if (_this43.afterMounted) {
9208
9223
  fastdom.mutate(function() {
9209
9224
  tableBodyElem && Object.assign(tableBodyElem, {
9210
9225
  scrollLeft: 0,
@@ -9221,16 +9236,16 @@ var Methods$d = {
9221
9236
  return;
9222
9237
  }
9223
9238
  if (footerMethod && showFooter) {
9224
- var data6 = footerMethod({
9239
+ var data7 = footerMethod({
9225
9240
  columns: tableColumn2,
9226
9241
  data: afterFullData
9227
9242
  });
9228
- if (data6.length && data6.some(function(value) {
9243
+ if (data7.length && data7.some(function(value) {
9229
9244
  return !isArray(value);
9230
9245
  })) {
9231
- data6 = [data6];
9246
+ data7 = [data7];
9232
9247
  }
9233
- this.footerData = tableColumn2.length ? data6 : [];
9248
+ this.footerData = tableColumn2.length ? data7 : [];
9234
9249
  }
9235
9250
  if (summaryConfig) {
9236
9251
  var fields = summaryConfig.fields, fraction = summaryConfig.fraction, text = summaryConfig.text, _truncate = summaryConfig.truncate;
@@ -9250,7 +9265,7 @@ var Methods$d = {
9250
9265
  },
9251
9266
  // 更新列状态:如果组件值v-model发生change,调用该函数更新列的编辑状态。如果单元格配置了校验规则,则进行校验
9252
9267
  updateStatus: function updateStatus(scope, cellValue, renderOpts) {
9253
- var _this45 = this;
9268
+ var _this44 = this;
9254
9269
  var $refs = this.$refs, editRules = this.editRules, tableData = this.tableData, validStore = this.validStore;
9255
9270
  var tableBody = $refs.tableBody;
9256
9271
  if (!scope || !tableBody) {
@@ -9260,9 +9275,9 @@ var Methods$d = {
9260
9275
  var type = "change";
9261
9276
  var refreshStatus = function refreshStatus2() {
9262
9277
  if (!isUndefined(cellValue)) {
9263
- var _this45$$refs$tableBo;
9264
- _this45.updateRowStatus(row2);
9265
- (_this45$$refs$tableBo = _this45.$refs.tableBody) == null ? void 0 : _this45$$refs$tableBo.$forceUpdate();
9278
+ var _this44$$refs$tableBo;
9279
+ _this44.updateRowStatus(row2);
9280
+ (_this44$$refs$tableBo = _this44.$refs.tableBody) == null ? void 0 : _this44$$refs$tableBo.$forceUpdate();
9266
9281
  }
9267
9282
  };
9268
9283
  if (!editRules || !this.hasCellRules(type, row2, column)) {
@@ -9281,13 +9296,13 @@ var Methods$d = {
9281
9296
  if (!cell) {
9282
9297
  return;
9283
9298
  }
9284
- return _this45.validCellRules(type, row2, column, cellValue).then(function() {
9299
+ return _this44.validCellRules(type, row2, column, cellValue).then(function() {
9285
9300
  refreshStatus();
9286
- _this45.clearValidate();
9287
- }).catch(function(_ref170) {
9288
- var rule = _ref170.rule;
9301
+ _this44.clearValidate();
9302
+ }).catch(function(_ref171) {
9303
+ var rule = _ref171.rule;
9289
9304
  refreshStatus();
9290
- _this45.showValidTooltip({
9305
+ _this44.showValidTooltip({
9291
9306
  rule,
9292
9307
  row: row2,
9293
9308
  column,
@@ -9299,15 +9314,15 @@ var Methods$d = {
9299
9314
  },
9300
9315
  /* X/Y 方向滚动 */
9301
9316
  updateScrollStatus: function updateScrollStatus() {
9302
- var _this46 = this;
9317
+ var _this45 = this;
9303
9318
  if (!this.tasks.updateScrollStatus) {
9304
9319
  this.tasks.updateScrollStatus = debounce(AsyncCollectTimeout, function() {
9305
- var scrollXLoad = _this46.scrollXLoad, scrollYLoad = _this46.scrollYLoad, isAsyncColumn = _this46.isAsyncColumn;
9320
+ var scrollXLoad = _this45.scrollXLoad, scrollYLoad = _this45.scrollYLoad, isAsyncColumn = _this45.isAsyncColumn;
9306
9321
  if (isAsyncColumn && (scrollXLoad || scrollYLoad)) {
9307
- var tableData = _this46.tableData, scrollXStore = _this46.scrollXStore, scrollYStore = _this46.scrollYStore, tableFullData = _this46.tableFullData, _this46$scrollDirecti = _this46.scrollDirection, scrollDirection = _this46$scrollDirecti === void 0 ? "N" : _this46$scrollDirecti;
9322
+ 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;
9308
9323
  var isInit = scrollXLoad && scrollXStore.visibleIndex === 0 || scrollYLoad && scrollYStore.visibleIndex === 0;
9309
9324
  if (isInit || scrollDirection !== "N") {
9310
- _this46.handleResolveColumn(tableFullData, _this46.collectAsyncColumn(tableData));
9325
+ _this45.handleResolveColumn(tableFullData, _this45.collectAsyncColumn(tableData));
9311
9326
  }
9312
9327
  }
9313
9328
  });
@@ -9324,7 +9339,7 @@ var Methods$d = {
9324
9339
  },
9325
9340
  // 收集异步列
9326
9341
  collectAsyncColumn: function collectAsyncColumn(tableData) {
9327
- var _this47 = this;
9342
+ var _this46 = this;
9328
9343
  var fetchColumns = [];
9329
9344
  var rowId = this.rowId, asyncRenderMap = this.asyncRenderMap, tableColumn2 = this.tableColumn;
9330
9345
  if (!rowId) {
@@ -9332,8 +9347,8 @@ var Methods$d = {
9332
9347
  return fetchColumns;
9333
9348
  }
9334
9349
  tableColumn2.forEach(function(col) {
9335
- var _ref171 = col.format || {}, async = _ref171.async;
9336
- var _ref172 = async || {}, fetch = _ref172.fetch, _ref172$splitConfig = _ref172.splitConfig, splitConfig = _ref172$splitConfig === void 0 ? {} : _ref172$splitConfig;
9350
+ var _ref172 = col.format || {}, async = _ref172.async;
9351
+ var _ref173 = async || {}, fetch = _ref173.fetch, _ref173$splitConfig = _ref173.splitConfig, splitConfig = _ref173$splitConfig === void 0 ? {} : _ref173$splitConfig;
9337
9352
  if (typeof fetch === "function") {
9338
9353
  var columnValues = [];
9339
9354
  tableData.forEach(function(row2) {
@@ -9343,7 +9358,7 @@ var Methods$d = {
9343
9358
  }
9344
9359
  var cellValuesCount = 1;
9345
9360
  var cellValues = [cellValue];
9346
- var uniqueKey = _this47.getAsyncColumnUniqueKey(col.property, row2);
9361
+ var uniqueKey = _this46.getAsyncColumnUniqueKey(col.property, row2);
9347
9362
  if (splitConfig.enabled === true) {
9348
9363
  cellValues = cellValue.split(splitConfig.valueSplit || ",");
9349
9364
  cellValuesCount = cellValues.length;
@@ -9393,8 +9408,8 @@ var Methods$d = {
9393
9408
  }, this));
9394
9409
  },
9395
9410
  // Publish methods 与工具栏对接
9396
- connect: function connect(_ref173) {
9397
- var toolbar = _ref173.toolbar;
9411
+ connect: function connect(_ref174) {
9412
+ var toolbar = _ref174.toolbar;
9398
9413
  this.$toolbar = toolbar;
9399
9414
  },
9400
9415
  // 检查触发源是否属于目标节点
@@ -9420,7 +9435,7 @@ var Methods$d = {
9420
9435
  },
9421
9436
  handleDataChange: function handleDataChange() {
9422
9437
  if (Array.isArray(this.data)) {
9423
- !this._isUpdateData && this.loadTableData(this.data, true);
9438
+ !this._isUpdateData && this.loadTableData(this.data);
9424
9439
  this._isUpdateData = false;
9425
9440
  }
9426
9441
  },
@@ -9453,8 +9468,8 @@ var Methods$d = {
9453
9468
  },
9454
9469
  // 尝试恢复滚动位置,规范了最大滚动位置的取值
9455
9470
  attemptRestoreScroll: function attemptRestoreScroll(options) {
9456
- var _this48 = this;
9457
- var _ref174 = options || this, lastScrollTop = _ref174.lastScrollTop, lastScrollLeft = _ref174.lastScrollLeft;
9471
+ var _this47 = this;
9472
+ var _ref175 = options || this, lastScrollTop = _ref175.lastScrollTop, lastScrollLeft = _ref175.lastScrollLeft;
9458
9473
  var scrollXLoad = this.scrollXLoad, scrollYLoad = this.scrollYLoad, elemStore = this.elemStore;
9459
9474
  var tableBodyElem = elemStore["main-body-wrapper"];
9460
9475
  if ((lastScrollTop || lastScrollLeft) && tableBodyElem) {
@@ -9464,14 +9479,14 @@ var Methods$d = {
9464
9479
  lastScrollTop = Math.min(lastScrollTop, maxScrollTop);
9465
9480
  lastScrollLeft = Math.min(lastScrollLeft, maxScrollLeft);
9466
9481
  fastdom.mutate(function() {
9467
- _this48.restoreScollFlag = true;
9468
- _this48.scrollTo(lastScrollLeft, lastScrollTop);
9482
+ _this47.restoreScollFlag = true;
9483
+ _this47.scrollTo(lastScrollLeft, lastScrollTop);
9469
9484
  requestAnimationFrame(function() {
9470
- var _this48$$refs$tableBo;
9471
- return (_this48$$refs$tableBo = _this48.$refs.tableBody) == null ? void 0 : _this48$$refs$tableBo.resetStickyWrapperScrollPos();
9485
+ var _this47$$refs$tableBo;
9486
+ return (_this47$$refs$tableBo = _this47.$refs.tableBody) == null ? void 0 : _this47$$refs$tableBo.resetStickyWrapperScrollPos();
9472
9487
  });
9473
- scrollXLoad && _this48.triggerScrollXEvent();
9474
- scrollYLoad && _this48.triggerScrollYEvent({
9488
+ scrollXLoad && _this47.triggerScrollXEvent();
9489
+ scrollYLoad && _this47.triggerScrollYEvent({
9475
9490
  target: {
9476
9491
  scrollTop: lastScrollTop
9477
9492
  }
@@ -9532,9 +9547,9 @@ function __vue2_injectStyles$9(context) {
9532
9547
  this[o] = __cssModules$9[o];
9533
9548
  }
9534
9549
  }
9535
- var ColumnType = /* @__PURE__ */ function() {
9550
+ var ColumnType = /* @__PURE__ */ (function() {
9536
9551
  return __component__$9.exports;
9537
- }();
9552
+ })();
9538
9553
  var __vue2_script$8 = defineComponent({
9539
9554
  inject: ["$mftable"],
9540
9555
  props: _extends({}, $props, {
@@ -9542,7 +9557,7 @@ var __vue2_script$8 = defineComponent({
9542
9557
  row: Object
9543
9558
  }),
9544
9559
  render: function render8() {
9545
- var _this49 = this;
9560
+ var _this48 = this;
9546
9561
  var datas = this.datas, row2 = this.row;
9547
9562
  var primaryColumn = datas.primaryColumn, contentColumns = datas.contentColumns, genParams2 = datas.genParams, config2 = datas.config, cardView2 = datas.cardView;
9548
9563
  var _config$cardConfig = config2.cardConfig, cardConfig = _config$cardConfig === void 0 ? {} : _config$cardConfig;
@@ -9554,8 +9569,8 @@ var __vue2_script$8 = defineComponent({
9554
9569
  };
9555
9570
  var ons = function ons2() {
9556
9571
  return {
9557
- mouseenter: _this49.handleMouseenter,
9558
- mouseleave: _this49.handleMouseleave
9572
+ mouseenter: _this48.handleMouseenter,
9573
+ mouseleave: _this48.handleMouseleave
9559
9574
  };
9560
9575
  };
9561
9576
  if (!primaryColumn || !primaryColumn.renderCell) {
@@ -9700,9 +9715,9 @@ function __vue2_injectStyles$8(context) {
9700
9715
  this[o] = __cssModules$8[o];
9701
9716
  }
9702
9717
  }
9703
- var ColumnContent = /* @__PURE__ */ function() {
9718
+ var ColumnContent = /* @__PURE__ */ (function() {
9704
9719
  return __component__$8.exports;
9705
- }();
9720
+ })();
9706
9721
  var __vue2_script$7 = defineComponent({
9707
9722
  props: _extends({}, $props, {
9708
9723
  datas: Object,
@@ -9726,8 +9741,8 @@ var __vue2_script$7 = defineComponent({
9726
9741
  return typeof hidden === "boolean" && hidden || typeof hidden === "function" && hidden(row2);
9727
9742
  };
9728
9743
  var handleItemClick = function handleItemClick2(name) {
9729
- var buttonConfig = visibleButtons.find(function(_ref175) {
9730
- var buttonName = _ref175.name;
9744
+ var buttonConfig = visibleButtons.find(function(_ref176) {
9745
+ var buttonName = _ref176.name;
9731
9746
  return buttonName === name;
9732
9747
  });
9733
9748
  buttonConfig.click(window.event || {}, _extends({
@@ -9816,9 +9831,9 @@ function __vue2_injectStyles$7(context) {
9816
9831
  this[o] = __cssModules$7[o];
9817
9832
  }
9818
9833
  }
9819
- var ColumnLink = /* @__PURE__ */ function() {
9834
+ var ColumnLink = /* @__PURE__ */ (function() {
9820
9835
  return __component__$7.exports;
9821
- }();
9836
+ })();
9822
9837
  var __vue2_script$6 = defineComponent({
9823
9838
  props: _extends({}, $props, {
9824
9839
  datas: Object,
@@ -9874,9 +9889,9 @@ function __vue2_injectStyles$6(context) {
9874
9889
  this[o] = __cssModules$6[o];
9875
9890
  }
9876
9891
  }
9877
- var ColumnLayout = /* @__PURE__ */ function() {
9892
+ var ColumnLayout = /* @__PURE__ */ (function() {
9878
9893
  return __component__$6.exports;
9879
- }();
9894
+ })();
9880
9895
  var __vue2_script$5 = defineComponent({
9881
9896
  components: {
9882
9897
  ColumnLayout
@@ -9946,9 +9961,9 @@ function __vue2_injectStyles$5(context) {
9946
9961
  this[o] = __cssModules$5[o];
9947
9962
  }
9948
9963
  }
9949
- var TableRow = /* @__PURE__ */ function() {
9964
+ var TableRow = /* @__PURE__ */ (function() {
9950
9965
  return __component__$5.exports;
9951
- }();
9966
+ })();
9952
9967
  var __vue2_script$4 = defineComponent({
9953
9968
  inject: ["$mftable"],
9954
9969
  props: _extends({}, $props),
@@ -9973,9 +9988,9 @@ function __vue2_injectStyles$4(context) {
9973
9988
  this[o] = __cssModules$4[o];
9974
9989
  }
9975
9990
  }
9976
- var ListView = /* @__PURE__ */ function() {
9991
+ var ListView = /* @__PURE__ */ (function() {
9977
9992
  return __component__$4.exports;
9978
- }();
9993
+ })();
9979
9994
  var __vue2_script$3 = defineComponent({
9980
9995
  inject: ["$mftable"],
9981
9996
  props: _extends({}, $props),
@@ -10000,9 +10015,9 @@ function __vue2_injectStyles$3(context) {
10000
10015
  this[o] = __cssModules$3[o];
10001
10016
  }
10002
10017
  }
10003
- var GanttView = /* @__PURE__ */ function() {
10018
+ var GanttView = /* @__PURE__ */ (function() {
10004
10019
  return __component__$3.exports;
10005
- }();
10020
+ })();
10006
10021
  var __vue2_script$2 = defineComponent({
10007
10022
  inject: ["$mftable"],
10008
10023
  props: _extends({}, $props),
@@ -10027,9 +10042,9 @@ function __vue2_injectStyles$2(context) {
10027
10042
  this[o] = __cssModules$2[o];
10028
10043
  }
10029
10044
  }
10030
- var CustomView = /* @__PURE__ */ function() {
10045
+ var CustomView = /* @__PURE__ */ (function() {
10031
10046
  return __component__$2.exports;
10032
- }();
10047
+ })();
10033
10048
  var __vue2_script$1 = defineComponent({
10034
10049
  inject: ["$mftable"],
10035
10050
  props: _extends({}, $props),
@@ -10062,9 +10077,9 @@ function __vue2_injectStyles$1(context) {
10062
10077
  this[o] = __cssModules$1[o];
10063
10078
  }
10064
10079
  }
10065
- var CustomEmpty = /* @__PURE__ */ function() {
10080
+ var CustomEmpty = /* @__PURE__ */ (function() {
10066
10081
  return __component__$1.exports;
10067
- }();
10082
+ })();
10068
10083
  var __vue2_script = defineComponent({
10069
10084
  components: {
10070
10085
  TableRow,
@@ -10496,9 +10511,9 @@ function __vue2_injectStyles(context) {
10496
10511
  this[o] = __cssModules[o];
10497
10512
  }
10498
10513
  }
10499
- var MfTable = /* @__PURE__ */ function() {
10514
+ var MfTable = /* @__PURE__ */ (function() {
10500
10515
  return __component__.exports;
10501
- }();
10516
+ })();
10502
10517
  var themes$1 = GlobalConfig$1.themes, viewConfig$1 = GlobalConfig$1.viewConfig, columnLevelKey$1 = GlobalConfig$1.columnLevelKey, defaultColumnName$1 = GlobalConfig$1.defaultColumnName;
10503
10518
  var T_TINY = themes$1.TINY, T_SAAS$1 = themes$1.SAAS;
10504
10519
  var V_DEFAULT$1 = viewConfig$1.DEFAULT, V_MF$1 = viewConfig$1.MF;
@@ -10540,9 +10555,9 @@ function mergeScrollDirStore(scrollDir, scrollDirStore) {
10540
10555
  });
10541
10556
  }
10542
10557
  }
10543
- function loadStatic(data6, _vm) {
10544
- if (data6 && data6.length > 0) {
10545
- _vm.loadTableData(data6, true);
10558
+ function loadStatic(data7, _vm) {
10559
+ if (data7 && data7.length > 0) {
10560
+ _vm.loadTableData(data7, true);
10546
10561
  _vm.updateStyle();
10547
10562
  }
10548
10563
  }
@@ -11154,7 +11169,15 @@ var Table = defineComponent({
11154
11169
  this.handleSelectionHeader();
11155
11170
  },
11156
11171
  parentHeight: function parentHeight() {
11157
- this.$nextTick(this.recalculate);
11172
+ this.recalculate();
11173
+ },
11174
+ // 选项式监控在vue2可以检测到顶层数组splice项替换/$set项替换
11175
+ // array.splice(index, 1, newItem)
11176
+ // this.$set(array, index, newItem)
11177
+ data: function data5(array1, array2) {
11178
+ if (isVue2 && array1 === array2 && array1.length === array2.length) {
11179
+ this.handleDataChange();
11180
+ }
11158
11181
  }
11159
11182
  },
11160
11183
  created: function created() {
@@ -11211,13 +11234,13 @@ var Table = defineComponent({
11211
11234
  cellStatus: /* @__PURE__ */ new Map(),
11212
11235
  // 是否具有type selection列
11213
11236
  isCheckable: false
11214
- }), scrollXStore = _Object$assign.scrollXStore, scrollYStore = _Object$assign.scrollYStore, optimizeOpts = _Object$assign.optimizeOpts, data6 = _Object$assign.data;
11237
+ }), scrollXStore = _Object$assign.scrollXStore, scrollYStore = _Object$assign.scrollYStore, optimizeOpts = _Object$assign.optimizeOpts, data7 = _Object$assign.data;
11215
11238
  var scrollX = optimizeOpts.scrollX, scrollY = optimizeOpts.scrollY;
11216
11239
  verifyConfig(this);
11217
11240
  mergeScrollDirStore(scrollX, scrollXStore);
11218
11241
  mergeScrollDirStore(scrollY, scrollYStore);
11219
11242
  mergeTreeConfig(this);
11220
- loadStatic(data6, this);
11243
+ loadStatic(data7, this);
11221
11244
  bindEvent(this);
11222
11245
  this.$grid.connect({
11223
11246
  name: "table",
@@ -11292,8 +11315,8 @@ var Table = defineComponent({
11292
11315
  return extend(true, {}, GlobalConfig$1.optimization, props.optimization);
11293
11316
  });
11294
11317
  var rowHeight = hooks.computed(function() {
11295
- var _optimizeOpts$value, _GlobalConfig$1$rowHe;
11296
- 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;
11318
+ var _optimizeOpts$value, _optimizeOpts$value$s, _GlobalConfig$1$rowHe;
11319
+ 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;
11297
11320
  });
11298
11321
  var headerRowHeight = hooks.computed(function() {
11299
11322
  var _GlobalConfig$1$heade;
@@ -11653,8 +11676,8 @@ var Column = defineComponent({
11653
11676
  default: null
11654
11677
  }
11655
11678
  },
11656
- setup: function setup7(props, _ref176) {
11657
- var slots = _ref176.slots;
11679
+ setup: function setup7(props, _ref177) {
11680
+ var slots = _ref177.slots;
11658
11681
  var reactive = hooks.reactive, inject = hooks.inject, getCurrentInstance = hooks.getCurrentInstance, onUpdated = hooks.onUpdated, watch = hooks.watch, nextTick = hooks.nextTick;
11659
11682
  var currentInstance = getCurrentInstance();
11660
11683
  var instance = currentInstance.proxy;
@@ -11708,7 +11731,7 @@ var Column = defineComponent({
11708
11731
  warn("ui.grid.error.chainCallError");
11709
11732
  }
11710
11733
  var hasSubColumn = findTree(slotVnode, function(node) {
11711
- var _ref177 = node || {}, componentOptions = _ref177.componentOptions, type = _ref177.type;
11734
+ var _ref178 = node || {}, componentOptions = _ref178.componentOptions, type = _ref178.type;
11712
11735
  var componentName = type && type.name || componentOptions && componentOptions.Ctor.extendOptions.name;
11713
11736
  return $table.isValidCustomColumn(componentName);
11714
11737
  }, null, null);
@@ -11788,7 +11811,7 @@ var Grid = defineComponent({
11788
11811
  isMultipleHistory: Boolean,
11789
11812
  selectToolbar: [Boolean, Object]
11790
11813
  }),
11791
- data: function data5() {
11814
+ data: function data6() {
11792
11815
  return {
11793
11816
  emitter: emitter(),
11794
11817
  fetchOption: null,
@@ -11827,10 +11850,10 @@ var Grid = defineComponent({
11827
11850
  return this.proxyOpts.message !== false;
11828
11851
  },
11829
11852
  tableProps: function tableProps() {
11830
- var _this50 = this;
11853
+ var _this49 = this;
11831
11854
  var rest = {};
11832
11855
  propKeys.forEach(function(key) {
11833
- return rest[key] = _this50[key];
11856
+ return rest[key] = _this49[key];
11834
11857
  });
11835
11858
  return rest;
11836
11859
  },
@@ -11883,10 +11906,10 @@ var Grid = defineComponent({
11883
11906
  this.toolbar && this.$refs.toolbar && this.$refs.toolbar.loadStorage();
11884
11907
  },
11885
11908
  viewType: function viewType(value) {
11886
- var _this51 = this;
11909
+ var _this50 = this;
11887
11910
  if (value === V_MF) {
11888
11911
  this.$nextTick(function() {
11889
- return _this51.recalculate();
11912
+ return _this50.recalculate();
11890
11913
  });
11891
11914
  }
11892
11915
  }
@@ -11956,8 +11979,8 @@ var Grid = defineComponent({
11956
11979
  var tinyTheme = hooks.ref(resolveTheme(props, context));
11957
11980
  var tinyMode = hooks.ref(resolveMode(props, context));
11958
11981
  var breakpoint = useBreakpoint();
11959
- var renderless = function renderless2(props2, hooks2, _ref178) {
11960
- var _ref178$designConfig = _ref178.designConfig, designConfig = _ref178$designConfig === void 0 ? null : _ref178$designConfig;
11982
+ var renderless = function renderless2(props2, hooks2, _ref179) {
11983
+ var _ref179$designConfig = _ref179.designConfig, designConfig = _ref179$designConfig === void 0 ? null : _ref179$designConfig;
11961
11984
  return {
11962
11985
  tableListeners,
11963
11986
  designConfig,
@@ -11981,7 +12004,7 @@ var Grid = defineComponent({
11981
12004
  });
11982
12005
  },
11983
12006
  render: function render18() {
11984
- var _this52 = this;
12007
+ var _this51 = this;
11985
12008
  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;
11986
12009
  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;
11987
12010
  var columnAnchor = this.columnAnchor, columnAnchorParams = this.columnAnchorParams, fullScreenClass = this.fullScreenClass;
@@ -12010,13 +12033,13 @@ var Grid = defineComponent({
12010
12033
  }
12011
12034
  toolbar && !(toolbar.setting && toolbar.setting.storage) && (props.customs = tableCustoms2);
12012
12035
  toolbar && (tableOns["update:customs"] = function(value) {
12013
- return _this52.tableCustoms = value;
12036
+ return _this51.tableCustoms = value;
12014
12037
  });
12015
12038
  tableOns["column-init-ready"] = this.handleColumnInitReady;
12016
12039
  var renderedToolbar = function renderedToolbar2() {
12017
- return _this52.getRenderedToolbar({
12040
+ return _this51.getRenderedToolbar({
12018
12041
  $slots,
12019
- _vm: _this52,
12042
+ _vm: _this51,
12020
12043
  loading,
12021
12044
  tableLoading,
12022
12045
  toolbar
@@ -12045,12 +12068,12 @@ var Grid = defineComponent({
12045
12068
  methods: {
12046
12069
  // 配置高度减去(表格锚点+工具栏+分页)计算得出表格高度
12047
12070
  updateParentHeight: function updateParentHeight2() {
12048
- var _this53 = this;
12071
+ var _this52 = this;
12049
12072
  if (!this.tasks.updateParentHeight) {
12050
12073
  this.tasks.updateParentHeight = debounce(10, function() {
12051
- var $el = _this53.$el, $refs = _this53.$refs;
12074
+ var $el = _this52.$el, $refs = _this52.$refs;
12052
12075
  var tinyTable = $refs.tinyTable, tinyGridColumnAnchor = $refs.tinyGridColumnAnchor;
12053
- var toolbarVm = _this53.getVm("toolbar");
12076
+ var toolbarVm = _this52.getVm("toolbar");
12054
12077
  if (tinyTable) {
12055
12078
  var columnAnchorHeight = 0;
12056
12079
  if (tinyGridColumnAnchor) {
@@ -12064,8 +12087,8 @@ var Grid = defineComponent({
12064
12087
  this.tasks.updateParentHeight();
12065
12088
  },
12066
12089
  // 向缓存添加实例
12067
- connect: function connect2(_ref179) {
12068
- var name = _ref179.name, vm = _ref179.vm;
12090
+ connect: function connect2(_ref180) {
12091
+ var name = _ref180.name, vm = _ref180.vm;
12069
12092
  if (name && typeof name === "string" && vm) {
12070
12093
  this.vmStore[name] = vm;
12071
12094
  }
@@ -12137,8 +12160,8 @@ var Grid = defineComponent({
12137
12160
  Grid.install = function(Vue) {
12138
12161
  Vue.component(Grid.name, Grid);
12139
12162
  };
12140
- function operArrs(_ref180) {
12141
- 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;
12163
+ function operArrs(_ref181) {
12164
+ 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;
12142
12165
  if (row2 === -1) {
12143
12166
  Array.prototype.push.apply(nowData, newRecords);
12144
12167
  Array.prototype.push.apply(tableFullData, newRecords);
@@ -12163,38 +12186,38 @@ function operArrs(_ref180) {
12163
12186
  Array.prototype.push.apply(_vm.temporaryRows, newRecordsCopy);
12164
12187
  }
12165
12188
  var _setActiveCell = function _setActiveCell2(row2, field) {
12166
- var _this54 = this;
12189
+ var _this53 = this;
12167
12190
  var next1 = function next12() {
12168
12191
  if (!row2 || !field) {
12169
- return _this54.$nextTick();
12192
+ return _this53.$nextTick();
12170
12193
  }
12171
- var column = find$1(_this54.visibleColumn, function(column2) {
12194
+ var column = find$1(_this53.visibleColumn, function(column2) {
12172
12195
  return column2.property === field;
12173
12196
  });
12174
12197
  if (!column || !column.editor) {
12175
- return _this54.$nextTick();
12198
+ return _this53.$nextTick();
12176
12199
  }
12177
12200
  var next2 = function next22(cell) {
12178
12201
  if (!cell) {
12179
12202
  return;
12180
12203
  }
12181
- var rowIndex = _this54.getRowIndex(row2);
12182
- var columnIndex = _this54.getColumnIndex(column);
12183
- _this54.handleActived({
12204
+ var rowIndex = _this53.getRowIndex(row2);
12205
+ var columnIndex = _this53.getColumnIndex(column);
12206
+ _this53.handleActived({
12184
12207
  row: row2,
12185
12208
  rowIndex,
12186
12209
  column,
12187
12210
  columnIndex,
12188
12211
  cell,
12189
- $table: _this54
12212
+ $table: _this53
12190
12213
  });
12191
- _this54.lastCallTime = Date.now();
12214
+ _this53.lastCallTime = Date.now();
12192
12215
  };
12193
- getCell(_this54, {
12216
+ getCell(_this53, {
12194
12217
  row: row2,
12195
12218
  column
12196
12219
  }).then(next2);
12197
- return _this54.$nextTick();
12220
+ return _this53.$nextTick();
12198
12221
  };
12199
12222
  return this.scrollToRow(row2, true).then(next1);
12200
12223
  };
@@ -12204,7 +12227,7 @@ var Methods$c = {
12204
12227
  },
12205
12228
  // 根据位置从指定行添加数据
12206
12229
  _insertAt: function _insertAt(records, row2) {
12207
- var _this55 = this;
12230
+ var _this54 = this;
12208
12231
  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;
12209
12232
  if (treeConfig) {
12210
12233
  throw new Error(error("ui.grid.error.treeInsert"));
@@ -12222,7 +12245,7 @@ var Methods$c = {
12222
12245
  }
12223
12246
  var nowData = afterFullData;
12224
12247
  var newRecords = records.map(function(record) {
12225
- return hooks.reactive(_this55.defineField(_extends({}, record)));
12248
+ return hooks.reactive(_this54.defineField(_extends({}, record)));
12226
12249
  });
12227
12250
  var newRecordsCopy = clone(newRecords, true);
12228
12251
  operArrs({
@@ -12247,7 +12270,7 @@ var Methods$c = {
12247
12270
  rows: newRecords
12248
12271
  };
12249
12272
  return this.$nextTick().then(function() {
12250
- _this55.recalculate();
12273
+ _this54.recalculate();
12251
12274
  return res;
12252
12275
  });
12253
12276
  },
@@ -12257,7 +12280,7 @@ var Methods$c = {
12257
12280
  * 如果传 rows 则删除多行
12258
12281
  */
12259
12282
  _remove: function _remove(rows) {
12260
- var _this56 = this;
12283
+ var _this55 = this;
12261
12284
  var afterFullData = this.afterFullData, scrollYLoad = this.scrollYLoad, _this$selectConfig3 = this.selectConfig, selectConfig = _this$selectConfig3 === void 0 ? {} : _this$selectConfig3;
12262
12285
  var selection = this.selection, tableFullData = this.tableFullData, treeConfig = this.treeConfig, _this$tableSourceData2 = this.tableSourceData, tableSourceData = _this$tableSourceData2 === void 0 ? [] : _this$tableSourceData2;
12263
12286
  var _this$editStore = this.editStore, insertList = _this$editStore.insertList, removeList = _this$editStore.removeList;
@@ -12301,9 +12324,9 @@ var Methods$c = {
12301
12324
  }
12302
12325
  remove(tableSourceData, function(row3) {
12303
12326
  return find$1(insertList, function(r) {
12304
- return getRowid(_this56, r) === getRowid(_this56, row3);
12327
+ return getRowid(_this55, r) === getRowid(_this55, row3);
12305
12328
  }) && find$1(rows, function(r) {
12306
- return getRowid(_this56, r) === getRowid(_this56, row3);
12329
+ return getRowid(_this55, r) === getRowid(_this55, row3);
12307
12330
  });
12308
12331
  });
12309
12332
  remove(insertList, function(row3) {
@@ -12321,7 +12344,7 @@ var Methods$c = {
12321
12344
  rows: rest
12322
12345
  };
12323
12346
  return this.$nextTick().then(function() {
12324
- _this56.recalculate();
12347
+ _this55.recalculate();
12325
12348
  return res;
12326
12349
  });
12327
12350
  },
@@ -12329,10 +12352,10 @@ var Methods$c = {
12329
12352
  * 删除选中数据
12330
12353
  */
12331
12354
  _removeSelecteds: function _removeSelecteds() {
12332
- var _this57 = this;
12355
+ var _this56 = this;
12333
12356
  var selectRecords = this.getSelectRecords(true);
12334
12357
  var callback = function callback2(params) {
12335
- _this57.clearSelection();
12358
+ _this56.clearSelection();
12336
12359
  return params;
12337
12360
  };
12338
12361
  return this.remove(selectRecords).then(callback);
@@ -12400,10 +12423,10 @@ var Methods$c = {
12400
12423
  * 只精准匹配row的更改。如果是树表格,子节点更改状态不会影响父节点的更新状态
12401
12424
  */
12402
12425
  _getUpdateRecords: function _getUpdateRecords() {
12403
- var _this58 = this;
12426
+ var _this57 = this;
12404
12427
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
12405
12428
  var handler6 = function handler7(row2) {
12406
- return !_this58.isTemporaryRow(row2) && _this58.hasRowChange(row2);
12429
+ return !_this57.isTemporaryRow(row2) && _this57.hasRowChange(row2);
12407
12430
  };
12408
12431
  var updateRecords = treeConfig ? filterTree(tableFullData, handler6, treeConfig) : tableFullData.filter(handler6);
12409
12432
  return updateRecords;
@@ -12412,13 +12435,13 @@ var Methods$c = {
12412
12435
  * 处理激活编辑
12413
12436
  */
12414
12437
  handleActived: function handleActived(params, event) {
12415
- var _this59 = this;
12438
+ var _this58 = this;
12416
12439
  return _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
12417
12440
  var editConfig, editStore, tableColumn2, cell, column, row2, editor, actived, isActiveCell, type, canActive, args;
12418
12441
  return _regenerator().w(function(_context) {
12419
12442
  while (1) switch (_context.n) {
12420
12443
  case 0:
12421
- editConfig = _this59.editConfig, editStore = _this59.editStore, tableColumn2 = _this59.tableColumn;
12444
+ editConfig = _this58.editConfig, editStore = _this58.editStore, tableColumn2 = _this58.tableColumn;
12422
12445
  cell = params.cell, column = params.column, row2 = params.row;
12423
12446
  editor = column.editor;
12424
12447
  actived = editStore.actived;
@@ -12441,7 +12464,7 @@ var Methods$c = {
12441
12464
  case 1:
12442
12465
  canActive = _context.v;
12443
12466
  args = {
12444
- _vm: _this59,
12467
+ _vm: _this58,
12445
12468
  actived,
12446
12469
  canActive,
12447
12470
  cell,
@@ -12457,14 +12480,14 @@ var Methods$c = {
12457
12480
  });
12458
12481
  type = handleActivedDoActive(args);
12459
12482
  handleActivedClearActive({
12460
- _vm: _this59,
12483
+ _vm: _this58,
12461
12484
  canActive,
12462
12485
  event
12463
12486
  });
12464
- emitEvent(_this59, type, [params, event]);
12487
+ emitEvent(_this58, type, [params, event]);
12465
12488
  case 2:
12466
12489
  handleActivedTryActive({
12467
- _vm: _this59,
12490
+ _vm: _this58,
12468
12491
  actived,
12469
12492
  cell,
12470
12493
  column,
@@ -12474,7 +12497,7 @@ var Methods$c = {
12474
12497
  params,
12475
12498
  row: row2
12476
12499
  });
12477
- return _context.a(2, _this59.$nextTick());
12500
+ return _context.a(2, _this58.$nextTick());
12478
12501
  }
12479
12502
  }, _callee);
12480
12503
  }))();
@@ -12505,14 +12528,14 @@ var Methods$c = {
12505
12528
  * 清除已激活的编辑
12506
12529
  */
12507
12530
  _clearActived: function _clearActived(event) {
12508
- var _this60 = this;
12531
+ var _this59 = this;
12509
12532
  var _this$editConfig2 = this.editConfig, editConfig = _this$editConfig2 === void 0 ? {} : _this$editConfig2, editStore = this.editStore, tableColumn2 = this.tableColumn;
12510
12533
  var actived = editStore.actived;
12511
12534
  var args = actived.args, column = actived.column, row2 = actived.row;
12512
12535
  var isActived = row2 || column;
12513
12536
  if (isActived && editConfig.mode === "row") {
12514
12537
  tableColumn2.forEach(function(column22) {
12515
- return _this60._setColumnModel(row2, column22);
12538
+ return _this59._setColumnModel(row2, column22);
12516
12539
  });
12517
12540
  }
12518
12541
  if (isActived && editConfig.mode !== "row") {
@@ -12523,7 +12546,7 @@ var Methods$c = {
12523
12546
  this.updateRowStatus(actived.row);
12524
12547
  this.updateFooter();
12525
12548
  var row22 = args.row, column2 = args.column;
12526
- var _ref181 = column2 || {}, editor = _ref181.editor;
12549
+ var _ref182 = column2 || {}, editor = _ref182.editor;
12527
12550
  if ((editor == null ? void 0 : editor.component) === "input" && (editor == null ? void 0 : (_editor$attrs = editor.attrs) == null ? void 0 : _editor$attrs.type) === "number") {
12528
12551
  row22[column2.property] = +row22[column2.property];
12529
12552
  }
@@ -12592,7 +12615,7 @@ var Methods$c = {
12592
12615
  * 只对trigger为dblclick有效,选中单元格
12593
12616
  */
12594
12617
  _setSelectCell: function _setSelectCell(row2, field) {
12595
- var _this61 = this;
12618
+ var _this60 = this;
12596
12619
  var editConfig = this.editConfig, tableData = this.tableData, visibleColumn = this.visibleColumn;
12597
12620
  if (!row2 || !field || editConfig.trigger === "manual") {
12598
12621
  return this.$nextTick();
@@ -12613,7 +12636,7 @@ var Methods$c = {
12613
12636
  columnIndex,
12614
12637
  cell
12615
12638
  };
12616
- _this61.handleSelected(params, {});
12639
+ _this60.handleSelected(params, {});
12617
12640
  };
12618
12641
  getCell(this, {
12619
12642
  row: row2,
@@ -12641,37 +12664,37 @@ var Methods$c = {
12641
12664
  * 处理选中源
12642
12665
  */
12643
12666
  handleSelected: function handleSelected(params, event, noDebounce) {
12644
- var _this62 = this;
12667
+ var _this61 = this;
12645
12668
  var editConfig = this.editConfig, editStore = this.editStore, elemStore = this.elemStore, _this$mouseConfig3 = this.mouseConfig, mouseConfig = _this$mouseConfig3 === void 0 ? {} : _this$mouseConfig3;
12646
12669
  var actived = editStore.actived, selected = editStore.selected;
12647
- var _ref182 = params || {}, cell = _ref182.cell, column = _ref182.column, row2 = _ref182.row;
12670
+ var _ref183 = params || {}, cell = _ref183.cell, column = _ref183.column, row2 = _ref183.row;
12648
12671
  var selectMethod = function selectMethod2() {
12649
12672
  var _cell$parentNode;
12650
12673
  if (selected.row === row2 && selected.column === column || actived.row === row2 && (editConfig.mode !== "cell" || actived.column === column)) {
12651
- return _this62.$nextTick();
12674
+ return _this61.$nextTick();
12652
12675
  }
12653
- if (_this62.keyboardConfig || _this62.mouseConfig) {
12654
- _this62.clearChecked(event);
12655
- _this62.clearIndexChecked();
12656
- _this62.clearHeaderChecked();
12657
- _this62.clearSelected(event);
12676
+ if (_this61.keyboardConfig || _this61.mouseConfig) {
12677
+ _this61.clearChecked(event);
12678
+ _this61.clearIndexChecked();
12679
+ _this61.clearHeaderChecked();
12680
+ _this61.clearSelected(event);
12658
12681
  }
12659
- _this62.clearActived(event);
12682
+ _this61.clearActived(event);
12660
12683
  selected.args = params;
12661
12684
  selected.row = row2;
12662
12685
  selected.column = column;
12663
- _this62.updateSelectedCls();
12686
+ _this61.updateSelectedCls();
12664
12687
  if (!mouseConfig.checked) {
12665
- return _this62.$nextTick();
12688
+ return _this61.$nextTick();
12666
12689
  }
12667
12690
  var headerElem = elemStore["main-body-headerList"];
12668
- _this62.handleChecked([[cell]]);
12691
+ _this61.handleChecked([[cell]]);
12669
12692
  if (!headerElem) {
12670
- return _this62.$nextTick();
12693
+ return _this61.$nextTick();
12671
12694
  }
12672
- _this62.handleHeaderChecked([[headerElem == null ? void 0 : headerElem.querySelector("." + (column == null ? void 0 : column.id))]]);
12673
- _this62.handleIndexChecked([[cell == null ? void 0 : (_cell$parentNode = cell.parentNode) == null ? void 0 : _cell$parentNode.querySelector(".col__index")]]);
12674
- return _this62.$nextTick();
12695
+ _this61.handleHeaderChecked([[headerElem == null ? void 0 : headerElem.querySelector("." + (column == null ? void 0 : column.id))]]);
12696
+ _this61.handleIndexChecked([[cell == null ? void 0 : (_cell$parentNode = cell.parentNode) == null ? void 0 : _cell$parentNode.querySelector(".col__index")]]);
12697
+ return _this61.$nextTick();
12675
12698
  };
12676
12699
  selectMethod = noDebounce ? selectMethod : debounce(20, selectMethod);
12677
12700
  return selectMethod();
@@ -12825,7 +12848,7 @@ function handleCellMousedownEvent(args1) {
12825
12848
  var $el = args1.$el, _vm = args1._vm, bodyList = args1.bodyList, cell = args1.cell, cellFirstElementChild = args1.cellFirstElementChild;
12826
12849
  var cellLastElementChild = args1.cellLastElementChild, headStart = args1.headStart, headerList = args1.headerList, isIndex = args1.isIndex, startCellNode = args1.startCellNode;
12827
12850
  var _vm$mouseConfig2 = _vm.mouseConfig, mouseConfig = _vm$mouseConfig2 === void 0 ? {} : _vm$mouseConfig2;
12828
- var _ref183 = mouseConfig || {}, _ref183$updateInterva = _ref183.updateInterval, updateInterval = _ref183$updateInterva === void 0 ? 10 : _ref183$updateInterva;
12851
+ var _ref184 = mouseConfig || {}, _ref184$updateInterva = _ref184.updateInterval, updateInterval = _ref184$updateInterva === void 0 ? 10 : _ref184$updateInterva;
12829
12852
  var oldMousemove = document.onmousemove;
12830
12853
  var oldMouseup = document.onmouseup;
12831
12854
  var updateEvent = function updateEvent2(event) {
@@ -12864,8 +12887,8 @@ function onCellMousedownSelectEditable(args) {
12864
12887
  _vm.handleSelected(params, event);
12865
12888
  }
12866
12889
  }
12867
- function onCellMousedownSelect(_ref184) {
12868
- var _vm = _ref184._vm, editConfig = _ref184.editConfig, event = _ref184.event, mouseConfig = _ref184.mouseConfig, params = _ref184.params;
12890
+ function onCellMousedownSelect(_ref185) {
12891
+ var _vm = _ref185._vm, editConfig = _ref185.editConfig, event = _ref185.event, mouseConfig = _ref185.mouseConfig, params = _ref185.params;
12869
12892
  if (!editConfig && mouseConfig.selected) {
12870
12893
  _vm.handleSelected(params, event);
12871
12894
  }
@@ -12884,8 +12907,8 @@ function onCellMousedownIndexColumn(args) {
12884
12907
  _vm.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(cell)));
12885
12908
  }
12886
12909
  }
12887
- function onCellMousedownNotIndexColumn(_ref185) {
12888
- var _vm = _ref185._vm, cell = _ref185.cell, column = _ref185.column, event = _ref185.event, headerList = _ref185.headerList, isIndex = _ref185.isIndex, params = _ref185.params;
12910
+ function onCellMousedownNotIndexColumn(_ref186) {
12911
+ var _vm = _ref186._vm, cell = _ref186.cell, column = _ref186.column, event = _ref186.event, headerList = _ref186.headerList, isIndex = _ref186.isIndex, params = _ref186.params;
12889
12912
  if (!isIndex) {
12890
12913
  var firstCell = cell.parentNode.firstElementChild;
12891
12914
  _vm.handleSelected(params, event);
@@ -12893,8 +12916,8 @@ function onCellMousedownNotIndexColumn(_ref185) {
12893
12916
  _vm.handleIndexChecked([[firstCell]]);
12894
12917
  }
12895
12918
  }
12896
- function handleHeaderCellMousedownEvent(_ref186) {
12897
- var $el = _ref186.$el, _vm = _ref186._vm, bodyList = _ref186.bodyList, cell = _ref186.cell, headerList = _ref186.headerList, startCell = _ref186.startCell;
12919
+ function handleHeaderCellMousedownEvent(_ref187) {
12920
+ var $el = _ref187.$el, _vm = _ref187._vm, bodyList = _ref187.bodyList, cell = _ref187.cell, headerList = _ref187.headerList, startCell = _ref187.startCell;
12898
12921
  var oldMousemove = document.onmousemove;
12899
12922
  var oldMouseup = document.onmouseup;
12900
12923
  var updateEvent = function updateEvent2(event) {
@@ -12927,8 +12950,8 @@ var removeCellClass = function removeCellClass2(bodyRef, clazz) {
12927
12950
  return removeClass(elem, clazz);
12928
12951
  });
12929
12952
  };
12930
- var getCellIndex = function getCellIndex2(_ref187) {
12931
- var cell = _ref187.cell, bodyList = _ref187.bodyList;
12953
+ var getCellIndex = function getCellIndex2(_ref188) {
12954
+ var cell = _ref188.cell, bodyList = _ref188.bodyList;
12932
12955
  var trElem = cell.parentNode;
12933
12956
  var cIndex = arrayIndexOf(trElem.children, cell);
12934
12957
  var rIndex = arrayIndexOf(bodyList, trElem);
@@ -12937,8 +12960,8 @@ var getCellIndex = function getCellIndex2(_ref187) {
12937
12960
  cIndex
12938
12961
  };
12939
12962
  };
12940
- var getModify = function getModify2(_ref188) {
12941
- var offsetTop = _ref188.offsetTop, offsetLeft = _ref188.offsetLeft, cWidth = _ref188.cWidth, cHeight = _ref188.cHeight;
12963
+ var getModify = function getModify2(_ref189) {
12964
+ var offsetTop = _ref189.offsetTop, offsetLeft = _ref189.offsetLeft, cWidth = _ref189.cWidth, cHeight = _ref189.cHeight;
12942
12965
  var modifyDomStyle = function modifyDomStyle2(dom, styleOptions) {
12943
12966
  return dom && Object.assign(dom.style, styleOptions);
12944
12967
  };
@@ -12965,8 +12988,8 @@ var getModify = function getModify2(_ref188) {
12965
12988
  });
12966
12989
  };
12967
12990
  };
12968
- var writeClipboardText = function writeClipboardText2(_ref189) {
12969
- var $table = _ref189.$table, columns2 = _ref189.columns, rows = _ref189.rows, rowNodes = _ref189.rowNodes;
12991
+ var writeClipboardText = function writeClipboardText2(_ref190) {
12992
+ var $table = _ref190.$table, columns2 = _ref190.columns, rows = _ref190.rows, rowNodes = _ref190.rowNodes;
12970
12993
  var _$table$keyboardConfi = $table.keyboardConfig, keyboardConfig = _$table$keyboardConfi === void 0 ? {} : _$table$keyboardConfi;
12971
12994
  var _keyboardConfig$clipb = keyboardConfig.clipboard, clipboard = _keyboardConfig$clipb === void 0 ? {} : _keyboardConfig$clipb;
12972
12995
  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;
@@ -13013,7 +13036,7 @@ var Methods$b = {
13013
13036
  var params = _extends({}, args);
13014
13037
  var columnIndex = visibleColumn.indexOf(params.column);
13015
13038
  var rowIndex = tableData.indexOf(params.row);
13016
- var _ref190 = {}, targetColumn = _ref190.targetColumn, targetColumnIndex = _ref190.targetColumnIndex, targetRow = _ref190.targetRow, targetRowIndex = _ref190.targetRowIndex;
13039
+ var _ref191 = {}, targetColumn = _ref191.targetColumn, targetColumnIndex = _ref191.targetColumnIndex, targetRow = _ref191.targetRow, targetRowIndex = _ref191.targetRowIndex;
13017
13040
  event.preventDefault();
13018
13041
  var checkColumn = function checkColumn2(column) {
13019
13042
  return !hasIndexColumn2(column) && (edit ? column.editor : true);
@@ -13076,7 +13099,7 @@ var Methods$b = {
13076
13099
  },
13077
13100
  // 当前行方向键移动处理
13078
13101
  moveCurrentRow: function moveCurrentRow(isUpArrow, isDwArrow, event) {
13079
- var _this63 = this;
13102
+ var _this62 = this;
13080
13103
  var afterFullData = this.afterFullData, currentRow = this.currentRow, treeConfig = this.treeConfig;
13081
13104
  var targetRow;
13082
13105
  event.preventDefault();
@@ -13099,17 +13122,17 @@ var Methods$b = {
13099
13122
  }
13100
13123
  if (targetRow) {
13101
13124
  this.scrollToRow(targetRow).then(function() {
13102
- return _this63.triggerCurrentRowEvent(event, {
13103
- $table: _this63,
13125
+ return _this62.triggerCurrentRowEvent(event, {
13126
+ $table: _this62,
13104
13127
  row: targetRow
13105
13128
  });
13106
13129
  });
13107
13130
  }
13108
13131
  },
13109
13132
  // 可编辑方向键移动处理
13110
- moveSelected: function moveSelected(_ref191) {
13111
- var _this64 = this;
13112
- var args = _ref191.args, isLeftArrow = _ref191.isLeftArrow, isUpArrow = _ref191.isUpArrow, isRightArrow = _ref191.isRightArrow, isDownArrow = _ref191.isDownArrow, event = _ref191.event;
13133
+ moveSelected: function moveSelected(_ref192) {
13134
+ var _this63 = this;
13135
+ var args = _ref192.args, isLeftArrow = _ref192.isLeftArrow, isUpArrow = _ref192.isUpArrow, isRightArrow = _ref192.isRightArrow, isDownArrow = _ref192.isDownArrow, event = _ref192.event;
13113
13136
  var hasIndexColumn2 = this.hasIndexColumn, visibleColumn = this.tableColumn, tableData = this.tableFullData;
13114
13137
  var params = _extends({}, args);
13115
13138
  var column = params.column;
@@ -13138,8 +13161,8 @@ var Methods$b = {
13138
13161
  }
13139
13162
  getCell(this, params).then(function(resCell) {
13140
13163
  params.cell = resCell;
13141
- _this64.handleSelected(params, event, true);
13142
- _this64.scrollToRow(params.row, params.column, false, {
13164
+ _this63.handleSelected(params, event, true);
13165
+ _this63.scrollToRow(params.row, params.column, false, {
13143
13166
  isLeftArrow,
13144
13167
  isRightArrow,
13145
13168
  from: column
@@ -13148,7 +13171,7 @@ var Methods$b = {
13148
13171
  },
13149
13172
  // 表头按下事件
13150
13173
  triggerHeaderCellMousedownEvent: function triggerHeaderCellMousedownEvent(event, params) {
13151
- var _this65 = this;
13174
+ var _this64 = this;
13152
13175
  var $el = this.$el, elemStore = this.elemStore, _this$mouseConfig4 = this.mouseConfig, mouseConfig = _this$mouseConfig4 === void 0 ? {} : _this$mouseConfig4, tableData = this.tableData;
13153
13176
  var headerList = elemStore["main-body-headerList"].children;
13154
13177
  var bodyList = elemStore["main-body-list"].children;
@@ -13192,10 +13215,10 @@ var Methods$b = {
13192
13215
  params.row = tableData[0];
13193
13216
  getCell(this, params).then(function(cellRes) {
13194
13217
  params.cell = cellRes;
13195
- _this65.handleSelected(params, event);
13218
+ _this64.handleSelected(params, event);
13196
13219
  var rowNodes = getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTr.querySelector(".col__index")));
13197
- _this65.handleIndexChecked(rowNodes);
13198
- _this65.handleChecked(getRowNodes(bodyList, getCellNodeIndex(startCell), getCellNodeIndex(lastCell)));
13220
+ _this64.handleIndexChecked(rowNodes);
13221
+ _this64.handleChecked(getRowNodes(bodyList, getCellNodeIndex(startCell), getCellNodeIndex(lastCell)));
13199
13222
  });
13200
13223
  this.closeMenu();
13201
13224
  },
@@ -13329,9 +13352,9 @@ var Methods$b = {
13329
13352
  return this.$nextTick();
13330
13353
  },
13331
13354
  _getMouseCheckeds: function _getMouseCheckeds() {
13332
- var _this66 = this;
13355
+ var _this65 = this;
13333
13356
  var _this$editStore$check = this.editStore.checked.rowNodes, rowNodes = _this$editStore$check === void 0 ? [] : _this$editStore$check;
13334
- var _ref192 = {}, _ref192$rows = _ref192.rows, rows = _ref192$rows === void 0 ? [] : _ref192$rows, _ref192$columns = _ref192.columns, columns2 = _ref192$columns === void 0 ? [] : _ref192$columns;
13357
+ var _ref193 = {}, _ref193$rows = _ref193.rows, rows = _ref193$rows === void 0 ? [] : _ref193$rows, _ref193$columns = _ref193.columns, columns2 = _ref193$columns === void 0 ? [] : _ref193$columns;
13335
13358
  var res = {
13336
13359
  rows,
13337
13360
  columns: columns2,
@@ -13339,10 +13362,10 @@ var Methods$b = {
13339
13362
  };
13340
13363
  if (rowNodes && rowNodes.length) {
13341
13364
  res.rows = rowNodes.map(function(arr) {
13342
- return _this66.getRowNode(arr[0].parentNode).item;
13365
+ return _this65.getRowNode(arr[0].parentNode).item;
13343
13366
  });
13344
13367
  res.columns = rowNodes[0].map(function(col) {
13345
- return _this66.getColumnNode(col).item;
13368
+ return _this65.getColumnNode(col).item;
13346
13369
  });
13347
13370
  }
13348
13371
  return res;
@@ -13360,7 +13383,7 @@ var Methods$b = {
13360
13383
  if (!mouseConfig || !mouseConfig.checked) {
13361
13384
  return;
13362
13385
  }
13363
- var _ref193 = {}, cHeight = _ref193.cHeight, cWidth = _ref193.cWidth, offsetLeft = _ref193.offsetLeft, offsetTop = _ref193.offsetTop;
13386
+ var _ref194 = {}, cHeight = _ref194.cHeight, cWidth = _ref194.cWidth, offsetLeft = _ref194.offsetLeft, offsetTop = _ref194.offsetTop;
13364
13387
  cWidth = cHeight = -2;
13365
13388
  offsetTop = offsetLeft = 0;
13366
13389
  this.clearChecked();
@@ -13395,7 +13418,7 @@ var Methods$b = {
13395
13418
  this.editStore.checked.rowNodes = rowNodes;
13396
13419
  },
13397
13420
  handleAllChecked: function handleAllChecked(event) {
13398
- var _this67 = this;
13421
+ var _this66 = this;
13399
13422
  var elemStore = this.elemStore, _this$mouseConfig6 = this.mouseConfig, mouseConfig = _this$mouseConfig6 === void 0 ? {} : _this$mouseConfig6, tableData = this.tableData, visibleColumn = this.visibleColumn;
13400
13423
  if (!mouseConfig.checked) {
13401
13424
  return;
@@ -13423,10 +13446,10 @@ var Methods$b = {
13423
13446
  params.columnIndex = this.getColumnIndex(params.column);
13424
13447
  getCell(this, params).then(function(resCell) {
13425
13448
  params.cell = resCell;
13426
- _this67.handleSelected(params, event, true);
13427
- _this67.handleHeaderChecked(getRowNodes(headerList, getCellNodeIndex(cell.nextElementSibling), getCellNodeIndex(cell.parentNode.lastElementChild)));
13428
- _this67.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTrElem.querySelector(selectorColumnId))));
13429
- _this67.handleChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell.nextElementSibling), getCellNodeIndex(lastTrElem.lastElementChild)));
13449
+ _this66.handleSelected(params, event, true);
13450
+ _this66.handleHeaderChecked(getRowNodes(headerList, getCellNodeIndex(cell.nextElementSibling), getCellNodeIndex(cell.parentNode.lastElementChild)));
13451
+ _this66.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTrElem.querySelector(selectorColumnId))));
13452
+ _this66.handleChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell.nextElementSibling), getCellNodeIndex(lastTrElem.lastElementChild)));
13430
13453
  });
13431
13454
  },
13432
13455
  handleIndexChecked: function handleIndexChecked(rowNodes) {
@@ -13489,7 +13512,7 @@ var Methods$b = {
13489
13512
  var editStore = this.editStore, tableColumn2 = this.tableColumn, tableData = this.tableData;
13490
13513
  var copyed = editStore.copyed;
13491
13514
  var rowNodes = editStore.checked.rowNodes;
13492
- 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;
13515
+ 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;
13493
13516
  cWidth = cHeight = -3;
13494
13517
  offsetTop = offsetLeft = 0;
13495
13518
  this.clearCopyed();
@@ -13581,7 +13604,8 @@ var Methods$b = {
13581
13604
  var equalOrContain = function equalOrContain2(elm, target) {
13582
13605
  return elm && (elm === target || elm.contains(target));
13583
13606
  };
13584
- if (!equalOrContain($grid.$el, event.target) && !equalOrContain(tableWrapper, event.target) && !equalOrContain(tooltip && tooltip.state.popperElm, event.target) && !equalOrContain(validTip && validTip.state.popperElm, event.target)) {
13607
+ var actualTarget = getActualTarget(event);
13608
+ if (!equalOrContain($grid.$el, actualTarget) && !equalOrContain(tableWrapper, actualTarget) && !equalOrContain(tooltip && tooltip.state.popperElm, actualTarget) && !equalOrContain(validTip && validTip.state.popperElm, actualTarget)) {
13585
13609
  if (autoClearMouseChecked) {
13586
13610
  this.clearChecked();
13587
13611
  this.clearSelected();
@@ -13611,13 +13635,13 @@ function adjustParams(rows, cb, vaildDatas) {
13611
13635
  vaildDatas
13612
13636
  };
13613
13637
  }
13614
- var columnHandler = function columnHandler2(_ref195) {
13615
- var _vm = _ref195._vm, colValidPromiseArr = _ref195.colValidPromiseArr, editRules = _ref195.editRules, isAll = _ref195.isAll, row2 = _ref195.row, validRest = _ref195.validRest;
13638
+ var columnHandler = function columnHandler2(_ref196) {
13639
+ var _vm = _ref196._vm, colValidPromiseArr = _ref196.colValidPromiseArr, editRules = _ref196.editRules, isAll = _ref196.isAll, row2 = _ref196.row, validRest = _ref196.validRest;
13616
13640
  return function(column, columnIndex) {
13617
13641
  if (has(editRules, column.property)) {
13618
13642
  colValidPromiseArr.push(new Promise(function(resolve, reject) {
13619
- _vm.validCellRules("all", row2, column).then(resolve).catch(function(_ref196) {
13620
- var rule = _ref196.rule, rules = _ref196.rules;
13643
+ _vm.validCellRules("all", row2, column).then(resolve).catch(function(_ref197) {
13644
+ var rule = _ref197.rule, rules = _ref197.rules;
13621
13645
  var rowIndex = _vm.getRowIndex(row2);
13622
13646
  var rest = {
13623
13647
  rule,
@@ -13641,8 +13665,8 @@ var columnHandler = function columnHandler2(_ref195) {
13641
13665
  }
13642
13666
  };
13643
13667
  };
13644
- function validTree(_ref197) {
13645
- var treeConfig = _ref197.treeConfig, handleVaild = _ref197.handleVaild, hasTreeExpand2 = _ref197.hasTreeExpand, vaildDatas = _ref197.vaildDatas, treeOpts = _ref197.treeOpts;
13668
+ function validTree(_ref198) {
13669
+ var treeConfig = _ref198.treeConfig, handleVaild = _ref198.handleVaild, hasTreeExpand2 = _ref198.hasTreeExpand, vaildDatas = _ref198.vaildDatas, treeOpts = _ref198.treeOpts;
13646
13670
  if (treeConfig.validHidden === false) {
13647
13671
  var _recurValid = function recurValid(row2) {
13648
13672
  var children = row2[treeConfig.children || "children"];
@@ -13656,8 +13680,8 @@ function validTree(_ref197) {
13656
13680
  eachTree(vaildDatas, handleVaild, treeOpts);
13657
13681
  }
13658
13682
  }
13659
- var realValid = function realValid2(_ref198) {
13660
- 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;
13683
+ var realValid = function realValid2(_ref199) {
13684
+ 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;
13661
13685
  var rowValids = [];
13662
13686
  var columns2 = _vm.getColumns();
13663
13687
  var handleVaild = function handleVaild2(row2) {
@@ -13685,7 +13709,7 @@ var realValid = function realValid2(_ref198) {
13685
13709
  }
13686
13710
  return rowValids;
13687
13711
  };
13688
- var Rule = /* @__PURE__ */ function() {
13712
+ var Rule = /* @__PURE__ */ (function() {
13689
13713
  function Rule2(rule) {
13690
13714
  Object.assign(this, {
13691
13715
  $options: rule,
@@ -13705,12 +13729,12 @@ var Rule = /* @__PURE__ */ function() {
13705
13729
  return getFuncText(this.$options.message);
13706
13730
  }
13707
13731
  }]);
13708
- }();
13732
+ })();
13709
13733
  var onRejected = function onRejected2(opt, _this) {
13710
13734
  var isAll = opt.isAll, validRest = opt.validRest, cb = opt.cb, afterFullData = opt.afterFullData, treeConfig = opt.treeConfig;
13711
13735
  return function(params) {
13712
- var _ref199;
13713
- var args = isAll ? validRest : (_ref199 = {}, _ref199[params.column.property] = params, _ref199);
13736
+ var _ref200;
13737
+ var args = isAll ? validRest : (_ref200 = {}, _ref200[params.column.property] = params, _ref200);
13714
13738
  var funcFinish = function funcFinish2(args2, reject, resolve) {
13715
13739
  return function() {
13716
13740
  opt.status = false;
@@ -13766,21 +13790,21 @@ var Methods$a = {
13766
13790
  },
13767
13791
  // 聚焦到校验通过的单元格并弹出校验错误提示
13768
13792
  handleValidError: function handleValidError(params) {
13769
- var _this68 = this;
13793
+ var _this67 = this;
13770
13794
  var event = {
13771
13795
  type: "valid-error",
13772
13796
  trigger: "call"
13773
13797
  };
13774
13798
  this.handleActived(params, event).then(function() {
13775
- return _this68.showValidTooltip(params);
13799
+ return _this67.showValidTooltip(params);
13776
13800
  });
13777
13801
  },
13778
13802
  validatePromise: function validatePromise(row2, column, columnIndex, isAll, validRest) {
13779
- var _this69 = this;
13780
- function onrejected(_ref201) {
13781
- var _vm = _ref201._vm, reject = _ref201.reject, resolve = _ref201.resolve;
13782
- return function(_ref202) {
13783
- var rule = _ref202.rule, rules = _ref202.rules;
13803
+ var _this68 = this;
13804
+ function onrejected(_ref202) {
13805
+ var _vm = _ref202._vm, reject = _ref202.reject, resolve = _ref202.resolve;
13806
+ return function(_ref203) {
13807
+ var rule = _ref203.rule, rules = _ref203.rules;
13784
13808
  var rest = {
13785
13809
  $table: _vm,
13786
13810
  column,
@@ -13799,8 +13823,8 @@ var Methods$a = {
13799
13823
  };
13800
13824
  }
13801
13825
  return new Promise(function(resolve, reject) {
13802
- _this69.validCellRules("all", row2, column).then(resolve).catch(onrejected({
13803
- _vm: _this69,
13826
+ _this68.validCellRules("all", row2, column).then(resolve).catch(onrejected({
13827
+ _vm: _this68,
13804
13828
  reject,
13805
13829
  resolve
13806
13830
  }));
@@ -13816,7 +13840,7 @@ var Methods$a = {
13816
13840
  */
13817
13841
  beginValidate: function beginValidate(rows, callback, isAll) {
13818
13842
  var afterFullData = this.afterFullData, editRules = this.editRules, hasTreeExpand2 = this.hasTreeExpand, treeConfig = this.treeConfig, treeOpts = this.treeOpts;
13819
- 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;
13843
+ 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;
13820
13844
  var _adjustParams = adjustParams(rows, callback, afterFullData), vaildDatas = _adjustParams.vaildDatas, cb = _adjustParams.cb;
13821
13845
  var opt = {
13822
13846
  isAll,
@@ -13851,12 +13875,11 @@ var Methods$a = {
13851
13875
  return Promise.reject(validRest[ruleKeys[0]][0]);
13852
13876
  }
13853
13877
  cb && cb(opt.status);
13854
- return opt.status;
13855
13878
  };
13856
13879
  return Promise.all(rowValids).then(onFulfilled).catch(onRejected(opt, this));
13857
13880
  },
13858
- hasCellRules: function hasCellRules(type, row2, _ref204) {
13859
- var property = _ref204.property;
13881
+ hasCellRules: function hasCellRules(type, row2, _ref205) {
13882
+ var property = _ref205.property;
13860
13883
  if (!property || !this.editRules) {
13861
13884
  return false;
13862
13885
  }
@@ -13886,10 +13909,10 @@ var Methods$a = {
13886
13909
  * @param { any } defaultValue 需要校验的默认值
13887
13910
  */
13888
13911
  validCellRules: function validCellRules(type, row2, column, defaultValue) {
13889
- var _this70 = this;
13912
+ var _this69 = this;
13890
13913
  var editRules = this.editRules, rowId = this.rowId;
13891
13914
  var property = column.property;
13892
- var _ref205 = {}, _ref205$descriptor = _ref205.descriptor, descriptor = _ref205$descriptor === void 0 ? {} : _ref205$descriptor, _ref205$model = _ref205.model, model = _ref205$model === void 0 ? {} : _ref205$model;
13915
+ var _ref206 = {}, _ref206$descriptor = _ref206.descriptor, descriptor = _ref206$descriptor === void 0 ? {} : _ref206$descriptor, _ref206$model = _ref206.model, model = _ref206$model === void 0 ? {} : _ref206$model;
13893
13916
  if (property && editRules) {
13894
13917
  var rules = get(editRules, property);
13895
13918
  var cellValue = isUndefined(defaultValue) ? get(row2, property) : defaultValue;
@@ -13914,8 +13937,8 @@ var Methods$a = {
13914
13937
  column
13915
13938
  }
13916
13939
  };
13917
- var onRejected3 = function onRejected32(_ref206) {
13918
- var fields = _ref206.fields;
13940
+ var onRejected3 = function onRejected32(_ref207) {
13941
+ var fields = _ref207.fields;
13919
13942
  var cellErrors = Object.keys(fields).map(function(prop) {
13920
13943
  var rules2 = _descriptor[prop];
13921
13944
  _descriptor[prop] = !rules2.message ? Object.assign(rules2, {
@@ -13931,11 +13954,11 @@ var Methods$a = {
13931
13954
  validator.validate(model, validArgs).then(resolve).catch(onRejected3);
13932
13955
  };
13933
13956
  var onFulfilled = function onFulfilled2() {
13934
- _this70.validatedMap[column.id + "-" + row2[rowId]] = false;
13957
+ _this69.validatedMap[column.id + "-" + row2[rowId]] = false;
13935
13958
  return Promise.resolve();
13936
13959
  };
13937
13960
  var onRejected22 = function onRejected23(errors) {
13938
- _this70.validatedMap[column.id + "-" + row2[rowId]] = true;
13961
+ _this69.validatedMap[column.id + "-" + row2[rowId]] = true;
13939
13962
  return Promise.reject(errors);
13940
13963
  };
13941
13964
  return new Promise(executor).then(onFulfilled).catch(onRejected22);
@@ -13954,7 +13977,7 @@ var Methods$a = {
13954
13977
  },
13955
13978
  // 触发校验
13956
13979
  triggerValidate: function triggerValidate(type) {
13957
- var _this71 = this;
13980
+ var _this70 = this;
13958
13981
  var editConfig = this.editConfig, editRules = this.editRules, editStore = this.editStore, validStore = this.validStore;
13959
13982
  var actived = editStore.actived;
13960
13983
  if (!actived.row || !editRules) {
@@ -13965,10 +13988,10 @@ var Methods$a = {
13965
13988
  return Promise.resolve();
13966
13989
  }
13967
13990
  var onfulfilled = function onfulfilled2() {
13968
- editConfig.mode === "row" && validStore.visible && validStore.row === row2 && validStore.column === column && _this71.clearValidate();
13991
+ editConfig.mode === "row" && validStore.visible && validStore.row === row2 && validStore.column === column && _this70.clearValidate();
13969
13992
  };
13970
- var onrejected = function onrejected2(_ref207) {
13971
- var rule = _ref207.rule;
13993
+ var onrejected = function onrejected2(_ref208) {
13994
+ var rule = _ref208.rule;
13972
13995
  if (rule.trigger && type !== rule.trigger) {
13973
13996
  return Promise.resolve();
13974
13997
  }
@@ -13978,14 +14001,14 @@ var Methods$a = {
13978
14001
  row: row2,
13979
14002
  rule
13980
14003
  };
13981
- _this71.showValidTooltip(rest);
14004
+ _this70.showValidTooltip(rest);
13982
14005
  return Promise.reject(rest);
13983
14006
  };
13984
14007
  return this.validCellRules(type, row2, column).then(onfulfilled).catch(onrejected);
13985
14008
  },
13986
14009
  // 弹出校验错误提示
13987
14010
  showValidTooltip: function showValidTooltip(params) {
13988
- var _this72 = this;
14011
+ var _this71 = this;
13989
14012
  var $refs = this.$refs, height2 = this.height, tableData = this.tableData, validOpts2 = this.validOpts;
13990
14013
  var cell = params.cell, column = params.column, row2 = params.row, rule = params.rule;
13991
14014
  var content = rule.message;
@@ -13993,7 +14016,7 @@ var Methods$a = {
13993
14016
  var isMessageTooltip = validOpts2.isMessageTooltip, isMessageDefault = validOpts2.isMessageDefault, isMessageInline = validOpts2.isMessageInline;
13994
14017
  var showMsg = isMessageTooltip || isMessageDefault && !height2 && tableData.length < 2;
13995
14018
  this.$nextTick(function() {
13996
- Object.assign(_this72.validStore, {
14019
+ Object.assign(_this71.validStore, {
13997
14020
  row: row2,
13998
14021
  column,
13999
14022
  rule,
@@ -14001,19 +14024,19 @@ var Methods$a = {
14001
14024
  visible: true
14002
14025
  });
14003
14026
  if (validTip && showMsg) {
14004
- _this72.clostValidTooltip();
14005
- _this72.validTipContent = content;
14027
+ _this71.clostValidTooltip();
14028
+ _this71.validTipContent = content;
14006
14029
  validTip.state.referenceElm = cell;
14007
14030
  validTip.$refs.popper && (validTip.$refs.popper.style.display = "none");
14008
14031
  validTip.doDestroy();
14009
14032
  validTip.setExpectedState(true);
14010
- _this72.activateTooltipValid(validTip);
14033
+ _this71.activateTooltipValid(validTip);
14011
14034
  } else if (isMessageInline) {
14012
- _this72.$nextTick(function() {
14013
- return _this72.recalculate();
14035
+ _this71.$nextTick(function() {
14036
+ return _this71.recalculate();
14014
14037
  });
14015
14038
  }
14016
- emitEvent(_this72, "valid-error", [params]);
14039
+ emitEvent(_this71, "valid-error", [params]);
14017
14040
  });
14018
14041
  },
14019
14042
  // 关闭 validTip
@@ -14034,12 +14057,12 @@ var Validator = {
14034
14057
  };
14035
14058
  var Methods$9 = {
14036
14059
  bindResize: function bindResize() {
14037
- var _this73 = this;
14060
+ var _this72 = this;
14038
14061
  var parentElem = this.getParentElem();
14039
14062
  if ((parentElem == null ? void 0 : parentElem.nodeType) === Node.ELEMENT_NODE) {
14040
14063
  (this.$resize = new Resize$1(function() {
14041
- _this73.updateParentHeight();
14042
- _this73.recalculate();
14064
+ _this72.updateParentHeight();
14065
+ _this72.recalculate();
14043
14066
  }, GlobalConfig$1.resizeInterval)).observe(parentElem);
14044
14067
  }
14045
14068
  },
@@ -14062,7 +14085,7 @@ var Methods$8 = {
14062
14085
  initFetchOption: function initFetchOption() {
14063
14086
  var _this$fetchData = this.fetchData, fetchData = _this$fetchData === void 0 ? {} : _this$fetchData, _this$dataset = this.dataset, dataset = _this$dataset === void 0 ? {} : _this$dataset;
14064
14087
  if (fetchData.api || dataset.source || dataset.value || dataset.api) {
14065
- var _ref208 = fetchData || dataset.source || dataset.api || {}, loading = _ref208.loading, fields = _ref208.fields, api = _ref208.api, reloadConfig = _ref208.reloadConfig;
14088
+ var _ref209 = fetchData || dataset.source || dataset.api || {}, loading = _ref209.loading, fields = _ref209.fields, api = _ref209.api, reloadConfig = _ref209.reloadConfig;
14066
14089
  var isReloadFilter = false;
14067
14090
  var isReloadScroll = false;
14068
14091
  if (reloadConfig) {
@@ -14083,7 +14106,7 @@ var Methods$8 = {
14083
14106
  但为避免破坏性变更,暂保留
14084
14107
  */
14085
14108
  handleFetch: function handleFetch(code, sortArg) {
14086
- var _this74 = this;
14109
+ var _this73 = this;
14087
14110
  var pager = this.pager, sortData = this.sortData, filterData = this.filterData, pagerConfig = this.pagerConfig, fetchOption = this.fetchOption, fetchData = this.fetchData, dataset = this.dataset;
14088
14111
  var _fetchData$reloadConf = fetchData.reloadConfig, reloadConfig = _fetchData$reloadConf === void 0 ? {} : _fetchData$reloadConf;
14089
14112
  var _reloadConfig$scroll = reloadConfig.scroll, scroll = _reloadConfig$scroll === void 0 ? false : _reloadConfig$scroll;
@@ -14100,7 +14123,7 @@ var Methods$8 = {
14100
14123
  error("ui.grid.error.notQuery");
14101
14124
  return this.$nextTick();
14102
14125
  }
14103
- var _ref209 = fetchData || dataset.source || dataset.api || {}, args = _ref209.args, loading = _ref209.loading;
14126
+ var _ref210 = fetchData || dataset.source || dataset.api || {}, args = _ref210.args, loading = _ref210.loading;
14104
14127
  var field = sortData.field, order = sortData.order, prop = sortData.prop, property = sortData.property;
14105
14128
  var sortByData = {
14106
14129
  field,
@@ -14144,7 +14167,7 @@ var Methods$8 = {
14144
14167
  }, params);
14145
14168
  }
14146
14169
  return search.then(this.loadFetchData).catch(function(error2) {
14147
- _this74.tableLoading = false;
14170
+ _this73.tableLoading = false;
14148
14171
  throw error2;
14149
14172
  });
14150
14173
  },
@@ -14166,8 +14189,8 @@ var Methods$8 = {
14166
14189
  if (pagerConfig && !Array.isArray(rest)) {
14167
14190
  var _rest$result;
14168
14191
  var total = getObj(rest, fields.total || "page.total") || (rest == null ? void 0 : (_rest$result = rest.result) == null ? void 0 : _rest$result.length) || 0;
14169
- var data6 = getObj(rest, fields.result || fields.data || "result") || [];
14170
- this.tableData = data6;
14192
+ var data7 = getObj(rest, fields.result || fields.data || "result") || [];
14193
+ this.tableData = data7;
14171
14194
  pagerConfig.total = total;
14172
14195
  var setTotal = pagerSlot && pagerSlot.componentInstance.setTotal;
14173
14196
  setTotal && setTotal(total);
@@ -14208,8 +14231,8 @@ var Methods$7 = {
14208
14231
  }
14209
14232
  },
14210
14233
  // 表格内置分页渲染器
14211
- renderPager: function renderPager(_ref210) {
14212
- var $slots = _ref210.$slots, _vm = _ref210._vm, loading = _ref210.loading, pager = _ref210.pager, pagerConfig = _ref210.pagerConfig, tableLoading = _ref210.tableLoading, vSize3 = _ref210.vSize;
14234
+ renderPager: function renderPager(_ref211) {
14235
+ var $slots = _ref211.$slots, _vm = _ref211._vm, loading = _ref211.loading, pager = _ref211.pager, pagerConfig = _ref211.pagerConfig, tableLoading = _ref211.tableLoading, vSize3 = _ref211.vSize;
14213
14236
  var res = null;
14214
14237
  var fetchData = _vm.fetchData;
14215
14238
  if ($slots.pager) {
@@ -14236,19 +14259,19 @@ var Methods$7 = {
14236
14259
  return res;
14237
14260
  },
14238
14261
  pageChangeEvent: function pageChangeEvent(params) {
14239
- var _this75 = this;
14262
+ var _this74 = this;
14240
14263
  this.tablePageLoading = true;
14241
14264
  if (!this.tasks.updatePage) {
14242
14265
  this.tasks.updatePage = debounce(200, function() {
14243
14266
  var eventParams = _extends({
14244
- $grid: _this75
14267
+ $grid: _this74
14245
14268
  }, params);
14246
- var toolbarVm = _this75.getVm("toolbar");
14247
- emitEvent(_this75, "page-change", eventParams);
14248
- _this75.emitter.emit("page-change", eventParams);
14249
- _this75.handleFetch("query").then(function() {
14250
- _this75.realTimeTablePage = _extends({}, _this75.tablePage);
14251
- _this75.tablePageLoading = false;
14269
+ var toolbarVm = _this74.getVm("toolbar");
14270
+ emitEvent(_this74, "page-change", eventParams);
14271
+ _this74.emitter.emit("page-change", eventParams);
14272
+ _this74.handleFetch("query").then(function() {
14273
+ _this74.realTimeTablePage = _extends({}, _this74.tablePage);
14274
+ _this74.tablePageLoading = false;
14252
14275
  });
14253
14276
  if (toolbarVm) {
14254
14277
  toolbarVm.orderSetting();
@@ -14270,7 +14293,7 @@ var Methods$7 = {
14270
14293
  }
14271
14294
  },
14272
14295
  beforePageChangeHandler: function beforePageChangeHandler(params) {
14273
- var _this76 = this;
14296
+ var _this75 = this;
14274
14297
  if (!this.showSaveMsg) {
14275
14298
  var eventParams = extend(false, {
14276
14299
  $grid: this
@@ -14285,8 +14308,8 @@ var Methods$7 = {
14285
14308
  var next = function next2(res) {
14286
14309
  if (res === "confirm") {
14287
14310
  rollback && rollback();
14288
- emitEvent(_this76, "cancel-page-change", _this76);
14289
- _this76.emitter.emit("cancel-page-change", _this76);
14311
+ emitEvent(_this75, "cancel-page-change", _this75);
14312
+ _this75.emitter.emit("cancel-page-change", _this75);
14290
14313
  } else {
14291
14314
  callback && callback();
14292
14315
  }
@@ -14303,8 +14326,8 @@ var Pager = {
14303
14326
  Object.assign(host.methods, Methods$7);
14304
14327
  }
14305
14328
  };
14306
- function setBodyRecords(_ref211) {
14307
- var body = _ref211.body, insertRecords = _ref211.insertRecords, pendingRecords = _ref211.pendingRecords;
14329
+ function setBodyRecords(_ref212) {
14330
+ var body = _ref212.body, insertRecords = _ref212.insertRecords, pendingRecords = _ref212.pendingRecords;
14308
14331
  if (insertRecords.length) {
14309
14332
  body.pendingRecords = pendingRecords.filter(function(row2) {
14310
14333
  return !insertRecords.includes(row2);
@@ -14319,8 +14342,8 @@ function setBodyRecords(_ref211) {
14319
14342
  function canInvokeSaveDataApi(body, removeRecords, updateRecords) {
14320
14343
  return body.insertRecords.length || removeRecords.length || updateRecords.length || body.pendingRecords.length;
14321
14344
  }
14322
- function doRemoveOrShowMsg(_ref212) {
14323
- var _vm = _ref212._vm, canInvoke = _ref212.canInvoke, code = _ref212.code, isMsg2 = _ref212.isMsg, pendingRecords = _ref212.pendingRecords, resolve = _ref212.resolve, valid = _ref212.valid;
14345
+ function doRemoveOrShowMsg(_ref213) {
14346
+ var _vm = _ref213._vm, canInvoke = _ref213.canInvoke, code = _ref213.code, isMsg2 = _ref213.isMsg, pendingRecords = _ref213.pendingRecords, resolve = _ref213.resolve, valid = _ref213.valid;
14324
14347
  if (valid && !canInvoke) {
14325
14348
  if (isMsg2) {
14326
14349
  if (pendingRecords.length) {
@@ -14336,8 +14359,8 @@ function doRemoveOrShowMsg(_ref212) {
14336
14359
  resolve();
14337
14360
  }
14338
14361
  }
14339
- function invokeSaveDataApi(_ref213) {
14340
- 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;
14362
+ function invokeSaveDataApi(_ref214) {
14363
+ 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;
14341
14364
  var canInvoke = false;
14342
14365
  if (valid) {
14343
14366
  canInvoke = canInvokeSaveDataApi(body, removeRecords, updateRecords);
@@ -14364,9 +14387,9 @@ function invokeSaveDataApi(_ref213) {
14364
14387
  }
14365
14388
  var Methods$6 = {
14366
14389
  // 表格工具栏渲染器
14367
- getRenderedToolbar: function getRenderedToolbar(_ref214) {
14368
- var $slots = _ref214.$slots, _vm = _ref214._vm, loading = _ref214.loading, tableLoading = _ref214.tableLoading, toolbar = _ref214.toolbar;
14369
- return _vm.renderedToolbar = function() {
14390
+ getRenderedToolbar: function getRenderedToolbar(_ref215) {
14391
+ var $slots = _ref215.$slots, _vm = _ref215._vm, loading = _ref215.loading, tableLoading = _ref215.tableLoading, toolbar = _ref215.toolbar;
14392
+ return _vm.renderedToolbar = (function() {
14370
14393
  var res = null;
14371
14394
  if ($slots.toolbar) {
14372
14395
  res = $slots.toolbar();
@@ -14381,10 +14404,10 @@ var Methods$6 = {
14381
14404
  });
14382
14405
  }
14383
14406
  return res;
14384
- }();
14407
+ })();
14385
14408
  },
14386
14409
  handleSave: function handleSave(code, args) {
14387
- var _this77 = this;
14410
+ var _this76 = this;
14388
14411
  var saveData = this.saveData, isMsg2 = this.isMsg;
14389
14412
  if (!saveData) {
14390
14413
  error("ui.grid.error.notSave");
@@ -14402,7 +14425,7 @@ var Methods$6 = {
14402
14425
  return;
14403
14426
  }
14404
14427
  var canInvoke = invokeSaveDataApi({
14405
- _vm: _this77,
14428
+ _vm: _this76,
14406
14429
  args,
14407
14430
  body,
14408
14431
  code,
@@ -14413,7 +14436,7 @@ var Methods$6 = {
14413
14436
  valid
14414
14437
  });
14415
14438
  doRemoveOrShowMsg({
14416
- _vm: _this77,
14439
+ _vm: _this76,
14417
14440
  canInvoke,
14418
14441
  code,
14419
14442
  isMsg: isMsg2,
@@ -14429,11 +14452,11 @@ var Methods$6 = {
14429
14452
  pendingRecords
14430
14453
  });
14431
14454
  return new Promise(function(resolve) {
14432
- _this77.validate(validRows, getCallback(resolve));
14455
+ _this76.validate(validRows, getCallback(resolve));
14433
14456
  });
14434
14457
  },
14435
14458
  handleDelete: function handleDelete(code, args) {
14436
- var _this78 = this;
14459
+ var _this77 = this;
14437
14460
  var deleteData = this.deleteData, isMsg2 = this.isMsg;
14438
14461
  if (!deleteData) {
14439
14462
  error("ui.grid.error.notDelete");
@@ -14441,7 +14464,7 @@ var Methods$6 = {
14441
14464
  }
14442
14465
  var selecteds = this.getSelectRecords(true);
14443
14466
  var afterRemove = function afterRemove2() {
14444
- var removeds = _this78.getRemoveRecords();
14467
+ var removeds = _this77.getRemoveRecords();
14445
14468
  if (!removeds.length && isMsg2 && !selecteds.length) {
14446
14469
  Modal.message({
14447
14470
  id: code,
@@ -14451,34 +14474,34 @@ var Methods$6 = {
14451
14474
  }
14452
14475
  if (removeds.length) {
14453
14476
  var apiArgs = [{
14454
- $grid: _this78,
14477
+ $grid: _this77,
14455
14478
  changeRecords: {
14456
14479
  removeRecords: removeds
14457
14480
  }
14458
14481
  }].concat(args);
14459
14482
  var stopLoading = function stopLoading2() {
14460
- _this78.tableLoading = false;
14483
+ _this77.tableLoading = false;
14461
14484
  };
14462
- _this78.tableLoading = true;
14463
- return deleteData.api.apply(_this78, apiArgs).then(stopLoading).catch(stopLoading).then(function() {
14464
- return _this78.commitProxy("reload");
14485
+ _this77.tableLoading = true;
14486
+ return deleteData.api.apply(_this77, apiArgs).then(stopLoading).catch(stopLoading).then(function() {
14487
+ return _this77.commitProxy("reload");
14465
14488
  });
14466
14489
  }
14467
14490
  };
14468
14491
  this.remove(selecteds).then(afterRemove);
14469
14492
  },
14470
- handleFullScreen: function handleFullScreen(_ref215) {
14471
- var _this79 = this;
14472
- var show2 = _ref215[0];
14493
+ handleFullScreen: function handleFullScreen(_ref216) {
14494
+ var _this78 = this;
14495
+ var show2 = _ref216[0];
14473
14496
  this.fullScreenClass = show2 ? "tiny-fullscreen-full" : "";
14474
14497
  this.$nextTick(function() {
14475
- _this79.recalculate();
14476
- emitEvent(_this79, "fullscreen", show2);
14477
- _this79.emitter.emit("fullscreen", show2);
14498
+ _this78.recalculate();
14499
+ emitEvent(_this78, "fullscreen", show2);
14500
+ _this78.emitter.emit("fullscreen", show2);
14478
14501
  });
14479
14502
  },
14480
14503
  commitProxy: function commitProxy(code) {
14481
- var _this80 = this;
14504
+ var _this79 = this;
14482
14505
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
14483
14506
  args[_key2 - 1] = arguments[_key2];
14484
14507
  }
@@ -14486,19 +14509,19 @@ var Methods$6 = {
14486
14509
  if (code === "insert") {
14487
14510
  this.insert();
14488
14511
  } else if (code === "insert_actived") {
14489
- this.insert().then(function(_ref216) {
14490
- var row2 = _ref216.row;
14491
- return _this80.setActiveRow(row2);
14512
+ this.insert().then(function(_ref217) {
14513
+ var row2 = _ref217.row;
14514
+ return _this79.setActiveRow(row2);
14492
14515
  });
14493
14516
  } else if (code === "mark_cancel") {
14494
14517
  this.triggerPendingEvent(code);
14495
14518
  } else if (code === "delete_selection") {
14496
14519
  this.handleDeleteRow(code, "ui.grid.deleteSelectRecord", function() {
14497
- return _this80.commitProxy(["delete"].concat(args));
14520
+ return _this79.commitProxy(["delete"].concat(args));
14498
14521
  });
14499
14522
  } else if (code === "remove_selection") {
14500
14523
  this.handleDeleteRow(code, "ui.grid.removeSelectRecord", function() {
14501
- return _this80.removeSelecteds();
14524
+ return _this79.removeSelecteds();
14502
14525
  });
14503
14526
  } else if (code === "export") {
14504
14527
  this.exportCsv();
@@ -14574,11 +14597,11 @@ var Methods$6 = {
14574
14597
  });
14575
14598
  }
14576
14599
  if (selecteds.length) {
14577
- 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;
14578
- selecteds.forEach(function(data6) {
14579
- var selectedPending = pendings.includes(data6);
14600
+ 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;
14601
+ selecteds.forEach(function(data7) {
14602
+ var selectedPending = pendings.includes(data7);
14580
14603
  tmp = selectedPending ? minus : plus;
14581
- tmp.push(data6);
14604
+ tmp.push(data7);
14582
14605
  });
14583
14606
  tmp = minus.length ? pendings.filter(function(item) {
14584
14607
  return !~minus.indexOf(item);
@@ -14597,8 +14620,8 @@ var Toolbar = {
14597
14620
  };
14598
14621
  var Methods$5 = {
14599
14622
  renderColumnAnchor: function renderColumnAnchor(params, _vm) {
14600
- var _ref218 = params || {}, _ref218$anchors = _ref218.anchors, anchors = _ref218$anchors === void 0 ? [] : _ref218$anchors, _ref218$action = _ref218.action, action = _ref218$action === void 0 ? function() {
14601
- } : _ref218$action;
14623
+ var _ref219 = params || {}, _ref219$anchors = _ref219.anchors, anchors = _ref219$anchors === void 0 ? [] : _ref219$anchors, _ref219$action = _ref219.action, action = _ref219$action === void 0 ? function() {
14624
+ } : _ref219$action;
14602
14625
  var viewType2 = _vm.viewType;
14603
14626
  return h("div", {
14604
14627
  class: ["tiny-grid__column-anchor", _vm.viewCls("columnAnchor")],
@@ -14633,8 +14656,8 @@ var Methods$5 = {
14633
14656
  }, [iconVnode, spanVnode]);
14634
14657
  }));
14635
14658
  },
14636
- buildColumnAnchor: function buildColumnAnchor(_ref219) {
14637
- var property = _ref219.property, label = _ref219.label, anchors = _ref219.anchors, activeAnchor = _ref219.activeAnchor;
14659
+ buildColumnAnchor: function buildColumnAnchor(_ref220) {
14660
+ var property = _ref220.property, label = _ref220.label, anchors = _ref220.anchors, activeAnchor = _ref220.activeAnchor;
14638
14661
  var visibleColumn = this.getColumns();
14639
14662
  var column = visibleColumn.find(function(col) {
14640
14663
  return !col.type && col.property === property;
@@ -14668,7 +14691,7 @@ var Methods$5 = {
14668
14691
  }
14669
14692
  },
14670
14693
  buildColumnAnchorParams: function buildColumnAnchorParams() {
14671
- var _this81 = this;
14694
+ var _this80 = this;
14672
14695
  var columnAnchor = this.columnAnchor;
14673
14696
  var anchors = [];
14674
14697
  var activeAnchor = {
@@ -14678,19 +14701,19 @@ var Methods$5 = {
14678
14701
  if (Array.isArray(columnAnchor) && columnAnchor.length) {
14679
14702
  columnAnchor.forEach(function(item) {
14680
14703
  if (typeof item === "string") {
14681
- _this81.buildColumnAnchor({
14704
+ _this80.buildColumnAnchor({
14682
14705
  property: item,
14683
14706
  anchors
14684
14707
  });
14685
14708
  } else if (Array.isArray(item)) {
14686
- if (item.length > 1) _this81.buildColumnAnchor({
14709
+ if (item.length > 1) _this80.buildColumnAnchor({
14687
14710
  property: item[0],
14688
14711
  label: item[1],
14689
14712
  anchors
14690
14713
  });
14691
14714
  } else if (item && typeof item === "object") {
14692
14715
  var field = item.field, other = _objectWithoutPropertiesLoose(item, _excluded2);
14693
- _this81.buildColumnAnchor({
14716
+ _this80.buildColumnAnchor({
14694
14717
  property: field,
14695
14718
  label: other,
14696
14719
  anchors,
@@ -14706,27 +14729,27 @@ var Methods$5 = {
14706
14729
  anchors,
14707
14730
  activeAnchor,
14708
14731
  action: function action(field, e) {
14709
- return _this81.anchorAction({
14732
+ return _this80.anchorAction({
14710
14733
  field,
14711
14734
  anchors,
14712
- _vm: _this81,
14735
+ _vm: _this80,
14713
14736
  e
14714
14737
  });
14715
14738
  }
14716
14739
  };
14717
14740
  this._delayActivateAnchor = function() {
14718
- _this81._delayActivateAnchor = void 0;
14741
+ _this80._delayActivateAnchor = void 0;
14719
14742
  setTimeout(function() {
14720
- return _this81.anchorAction({
14743
+ return _this80.anchorAction({
14721
14744
  field: activeAnchor.field,
14722
14745
  anchors,
14723
- _vm: _this81
14746
+ _vm: _this80
14724
14747
  });
14725
14748
  }, activeAnchor.delay);
14726
14749
  };
14727
14750
  },
14728
- anchorAction: function anchorAction(_ref220) {
14729
- var field = _ref220.field, anchors = _ref220.anchors, _vm = _ref220._vm;
14751
+ anchorAction: function anchorAction(_ref221) {
14752
+ var field = _ref221.field, anchors = _ref221.anchors, _vm = _ref221._vm;
14730
14753
  var fromAnchor = anchors.find(function(anchor) {
14731
14754
  return anchor.active;
14732
14755
  });
@@ -14772,8 +14795,8 @@ var ColumnAnchor = {
14772
14795
  Object.assign(host.methods, Methods$5);
14773
14796
  }
14774
14797
  };
14775
- var createHandlerOnEnd = function createHandlerOnEnd2(_ref221) {
14776
- var _vm = _ref221._vm, refresh = _ref221.refresh;
14798
+ var createHandlerOnEnd = function createHandlerOnEnd2(_ref222) {
14799
+ var _vm = _ref222._vm, refresh = _ref222.refresh;
14777
14800
  return function(event) {
14778
14801
  var insertRecords = _vm.getInsertRecords();
14779
14802
  if (insertRecords.length) {
@@ -14819,7 +14842,7 @@ var createHandlerOnEnd = function createHandlerOnEnd2(_ref221) {
14819
14842
  _vm.tableFullData = [].concat(tableTreeData);
14820
14843
  }
14821
14844
  _vm.$emit("row-drop-end", event, _vm, _vm.scrollYLoad ? tableTreeData : _vm.tableFullData);
14822
- refresh && _vm.data && !isVue2 && _vm.refreshData(_vm.data);
14845
+ refresh && _vm.data && _vm.refreshData(_vm.data);
14823
14846
  };
14824
14847
  };
14825
14848
  var getSortColumns = function getSortColumns2(columns2) {
@@ -14841,15 +14864,15 @@ var getSortColumns = function getSortColumns2(columns2) {
14841
14864
  var Methods$4 = {
14842
14865
  // 处理列拖拽
14843
14866
  columnDrop: function columnDrop(headerEl) {
14844
- var _this82 = this;
14845
- var _ref222 = this.dropConfig || {}, plugin = _ref222.plugin, onBeforeMove = _ref222.onBeforeMove, filter2 = _ref222.filter;
14867
+ var _this81 = this;
14868
+ var _ref223 = this.dropConfig || {}, plugin = _ref223.plugin, onBeforeMove = _ref223.onBeforeMove, filter2 = _ref223.filter;
14846
14869
  var columnDropContainer = headerEl.querySelector(".tiny-grid-header__row");
14847
14870
  var columnDropOptions = _extends({}, this.dropConfig, {
14848
14871
  handle: ".tiny-grid-header__column:not(.col__fixed)",
14849
14872
  filter: filter2,
14850
14873
  onEnd: function onEnd(event) {
14851
14874
  var item = event.item, newIndex = event.newIndex, oldIndex = event.oldIndex;
14852
- var _this82$getTableColum = _this82.getTableColumn(), fullColumn = _this82$getTableColum.fullColumn, tableColumn2 = _this82$getTableColum.tableColumn;
14875
+ var _this81$getTableColum = _this81.getTableColumn(), fullColumn = _this81$getTableColum.fullColumn, tableColumn2 = _this81$getTableColum.tableColumn;
14853
14876
  var sortVisibleCols = getSortColumns(tableColumn2);
14854
14877
  var targetThElem = item;
14855
14878
  var wrapperElem = targetThElem.parentNode;
@@ -14870,21 +14893,21 @@ var Methods$4 = {
14870
14893
  status: "error"
14871
14894
  });
14872
14895
  }
14873
- var oldColumnIndex = _this82.getColumnIndex(sortVisibleCols[oldIndex]);
14874
- var newColumnIndex = _this82.getColumnIndex(sortVisibleCols[newIndex]);
14896
+ var oldColumnIndex = _this81.getColumnIndex(sortVisibleCols[oldIndex]);
14897
+ var newColumnIndex = _this81.getColumnIndex(sortVisibleCols[newIndex]);
14875
14898
  var currCol = fullColumn.splice(oldColumnIndex, 1)[0];
14876
14899
  fullColumn.splice(newColumnIndex, 0, currCol);
14877
- _this82.loadColumn(fullColumn);
14878
- _this82.$emit("column-drop-end", event, _this82);
14879
- var toolbarVm = _this82.getVm("toolbar");
14880
- _this82.isDragHeaderSorting && toolbarVm && toolbarVm.updateSetting();
14900
+ _this81.loadColumn(fullColumn);
14901
+ _this81.$emit("column-drop-end", event, _this81);
14902
+ var toolbarVm = _this81.getVm("toolbar");
14903
+ _this81.isDragHeaderSorting && toolbarVm && toolbarVm.updateSetting();
14881
14904
  },
14882
14905
  onStart: function onStart(event) {
14883
- _this82.$emit("column-drop-start", event, _this82);
14906
+ _this81.$emit("column-drop-start", event, _this81);
14884
14907
  },
14885
14908
  onMove: function onMove(event) {
14886
- var cancel = typeof onBeforeMove === "function" ? onBeforeMove("column", null, event, _this82) : true;
14887
- _this82.$emit("column-drop-move", event, _this82);
14909
+ var cancel = typeof onBeforeMove === "function" ? onBeforeMove("column", null, event, _this81) : true;
14910
+ _this81.$emit("column-drop-move", event, _this81);
14888
14911
  return cancel === void 0 || cancel;
14889
14912
  }
14890
14913
  });
@@ -14892,7 +14915,7 @@ var Methods$4 = {
14892
14915
  },
14893
14916
  // 处理行拖拽
14894
14917
  rowDrop: function rowDrop(bodyEl) {
14895
- var _this83 = this;
14918
+ var _this82 = this;
14896
14919
  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;
14897
14920
  var rowDropContainer = bodyEl.querySelector(".tiny-grid__body tbody");
14898
14921
  var handle = trigger || ".tiny-grid-body__row";
@@ -14907,15 +14930,15 @@ var Methods$4 = {
14907
14930
  refresh
14908
14931
  }),
14909
14932
  onStart: function onStart(event) {
14910
- _this83.$emit("row-drop-start", event, _this83);
14933
+ _this82.$emit("row-drop-start", event, _this82);
14911
14934
  },
14912
14935
  onMove: function onMove(event) {
14913
- var insertRecords = _this83.getInsertRecords();
14936
+ var insertRecords = _this82.getInsertRecords();
14914
14937
  if (insertRecords.length) return false;
14915
14938
  var dragged = event.dragged;
14916
- var selfRow = _this83.getRowNode(dragged).item;
14917
- var cancel = typeof onBeforeMove === "function" ? onBeforeMove("row", selfRow, event, _this83) : true;
14918
- _this83.$emit("row-drop-move", event, _this83);
14939
+ var selfRow = _this82.getRowNode(dragged).item;
14940
+ var cancel = typeof onBeforeMove === "function" ? onBeforeMove("row", selfRow, event, _this82) : true;
14941
+ _this82.$emit("row-drop-move", event, _this82);
14919
14942
  return cancel === void 0 || cancel;
14920
14943
  }
14921
14944
  });
@@ -14935,8 +14958,8 @@ var Sort = {
14935
14958
  Object.assign(host.methods, Methods$3);
14936
14959
  }
14937
14960
  };
14938
- function createTooltipRange(_ref223) {
14939
- var _vm = _ref223._vm, cell = _ref223.cell, column = _ref223.column, isHeader = _ref223.isHeader;
14961
+ function createTooltipRange(_ref224) {
14962
+ var _vm = _ref224._vm, cell = _ref224.cell, column = _ref224.column, isHeader = _ref224.isHeader;
14940
14963
  var range = document.createRange();
14941
14964
  var rangeEnd;
14942
14965
  range.setStart(cell, 0);
@@ -14954,8 +14977,8 @@ function createTooltipRange(_ref223) {
14954
14977
  range.setEnd(cell, rangeEnd);
14955
14978
  return range;
14956
14979
  }
14957
- function processContentMethod(_ref224) {
14958
- 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;
14980
+ function processContentMethod(_ref225) {
14981
+ 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;
14959
14982
  if (contentMethod) {
14960
14983
  _vm.tooltipContent = contentMethod({
14961
14984
  event,
@@ -15107,15 +15130,15 @@ var Tooltip = {
15107
15130
  Object.assign(host.methods, Methods$2);
15108
15131
  }
15109
15132
  };
15110
- function onHalfSelectionProperty(_ref225) {
15111
- var checkStrictly = _ref225.checkStrictly, property = _ref225.property, row2 = _ref225.row, treeConfig = _ref225.treeConfig, treeIndeterminates = _ref225.treeIndeterminates, value = _ref225.value;
15133
+ function onHalfSelectionProperty(_ref226) {
15134
+ var checkStrictly = _ref226.checkStrictly, property = _ref226.property, row2 = _ref226.row, treeConfig = _ref226.treeConfig, treeIndeterminates = _ref226.treeIndeterminates, value = _ref226.value;
15112
15135
  if (property && treeConfig && !checkStrictly && value === -1) {
15113
15136
  treeIndeterminates.push(row2);
15114
15137
  set(row2, property, false);
15115
15138
  }
15116
15139
  }
15117
- function onFullSelectionProperty(_ref226) {
15118
- var checkMethod = _ref226.checkMethod, checkStrictly = _ref226.checkStrictly, property = _ref226.property, row2 = _ref226.row, treeConfig = _ref226.treeConfig, treeIndeterminates = _ref226.treeIndeterminates, value = _ref226.value;
15140
+ function onFullSelectionProperty(_ref227) {
15141
+ var checkMethod = _ref227.checkMethod, checkStrictly = _ref227.checkStrictly, property = _ref227.property, row2 = _ref227.row, treeConfig = _ref227.treeConfig, treeIndeterminates = _ref227.treeIndeterminates, value = _ref227.value;
15119
15142
  if (property && treeConfig && !checkStrictly && value !== -1) {
15120
15143
  eachTree([row2], function(item, $rowIndex) {
15121
15144
  if (row2 === item || !checkMethod || checkMethod({
@@ -15130,8 +15153,8 @@ function onFullSelectionProperty(_ref226) {
15130
15153
  }, treeConfig);
15131
15154
  }
15132
15155
  }
15133
- function getVItemsOnParentSlctProp(_ref227) {
15134
- var checkMethod = _ref227.checkMethod, matchObj = _ref227.matchObj;
15156
+ function getVItemsOnParentSlctProp(_ref228) {
15157
+ var checkMethod = _ref228.checkMethod, matchObj = _ref228.matchObj;
15135
15158
  var tinyItems;
15136
15159
  if (checkMethod) {
15137
15160
  tinyItems = matchObj.items.filter(function(item, $rowIndex) {
@@ -15145,8 +15168,8 @@ function getVItemsOnParentSlctProp(_ref227) {
15145
15168
  }
15146
15169
  return tinyItems;
15147
15170
  }
15148
- function getParentStatusOnParentSlctProp(_ref228) {
15149
- var indeterminatesItem = _ref228.indeterminatesItem, matchObj = _ref228.matchObj, property = _ref228.property, vItems = _ref228.vItems, value = _ref228.value;
15171
+ function getParentStatusOnParentSlctProp(_ref229) {
15172
+ var indeterminatesItem = _ref229.indeterminatesItem, matchObj = _ref229.matchObj, property = _ref229.property, vItems = _ref229.vItems, value = _ref229.value;
15150
15173
  var parentStatus;
15151
15174
  if (indeterminatesItem) {
15152
15175
  parentStatus = -1;
@@ -15161,8 +15184,8 @@ function getParentStatusOnParentSlctProp(_ref228) {
15161
15184
  }
15162
15185
  return parentStatus;
15163
15186
  }
15164
- function onHalfSelection(_ref229) {
15165
- var checkStrictly = _ref229.checkStrictly, property = _ref229.property, row2 = _ref229.row, selection = _ref229.selection, treeConfig = _ref229.treeConfig, treeIndeterminates = _ref229.treeIndeterminates, value = _ref229.value;
15187
+ function onHalfSelection(_ref230) {
15188
+ var checkStrictly = _ref230.checkStrictly, property = _ref230.property, row2 = _ref230.row, selection = _ref230.selection, treeConfig = _ref230.treeConfig, treeIndeterminates = _ref230.treeIndeterminates, value = _ref230.value;
15166
15189
  if (!property && treeConfig && !checkStrictly && value === -1) {
15167
15190
  treeIndeterminates.push(row2);
15168
15191
  remove(selection, function(item) {
@@ -15173,8 +15196,8 @@ function onHalfSelection(_ref229) {
15173
15196
  var addSelection = function addSelection2(selection, item) {
15174
15197
  return !selection.includes(item) && selection.push(item);
15175
15198
  };
15176
- function onFullSelection(_ref230) {
15177
- 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;
15199
+ function onFullSelection(_ref231) {
15200
+ 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;
15178
15201
  if (!property && treeConfig && !checkStrictly && value !== -1) {
15179
15202
  eachTree([row2], function(item, $rowIndex) {
15180
15203
  if (row2 === item || !checkMethod || checkMethod({
@@ -15195,8 +15218,8 @@ function onFullSelection(_ref230) {
15195
15218
  }, treeConfig);
15196
15219
  }
15197
15220
  }
15198
- function getParentStatusOnParentSelection(_ref231) {
15199
- var indeterminatesItem = _ref231.indeterminatesItem, matchObj = _ref231.matchObj, selection = _ref231.selection, vItems = _ref231.vItems, value = _ref231.value;
15221
+ function getParentStatusOnParentSelection(_ref232) {
15222
+ var indeterminatesItem = _ref232.indeterminatesItem, matchObj = _ref232.matchObj, selection = _ref232.selection, vItems = _ref232.vItems, value = _ref232.value;
15200
15223
  var parentStatus;
15201
15224
  if (indeterminatesItem) {
15202
15225
  parentStatus = -1;
@@ -15209,8 +15232,8 @@ function getParentStatusOnParentSelection(_ref231) {
15209
15232
  }
15210
15233
  return parentStatus;
15211
15234
  }
15212
- function hasCheckField(_ref232, value, _vm) {
15213
- var row2 = _ref232.row;
15235
+ function hasCheckField(_ref233, value, _vm) {
15236
+ var row2 = _ref233.row;
15214
15237
  var tableFullData = _vm.tableFullData, _vm$selectConfig = _vm.selectConfig, selectConfig = _vm$selectConfig === void 0 ? {} : _vm$selectConfig, treeConfig = _vm.treeConfig, treeIndeterminates = _vm.treeIndeterminates;
15215
15238
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly, checkMethod = selectConfig.checkMethod;
15216
15239
  onHalfSelectionProperty({
@@ -15258,8 +15281,8 @@ function hasCheckField(_ref232, value, _vm) {
15258
15281
  set(row2, property, value);
15259
15282
  }
15260
15283
  }
15261
- function onSelectTreeCheckStrictly(_ref233, value, _vm) {
15262
- var row2 = _ref233.row;
15284
+ function onSelectTreeCheckStrictly(_ref234, value, _vm) {
15285
+ var row2 = _ref234.row;
15263
15286
  var selection = _vm.selection, tableFullData = _vm.tableFullData, _vm$selectConfig2 = _vm.selectConfig, selectConfig = _vm$selectConfig2 === void 0 ? {} : _vm$selectConfig2, treeConfig = _vm.treeConfig, treeIndeterminates = _vm.treeIndeterminates;
15264
15287
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly, checkMethod = selectConfig.checkMethod;
15265
15288
  onHalfSelection({
@@ -15303,8 +15326,8 @@ function onSelectTreeCheckStrictly(_ref233, value, _vm) {
15303
15326
  }
15304
15327
  }
15305
15328
  }
15306
- function onSelectOther(_ref234, value, _vm) {
15307
- var row2 = _ref234.row;
15329
+ function onSelectOther(_ref235, value, _vm) {
15330
+ var row2 = _ref235.row;
15308
15331
  var selection = _vm.selection, _vm$selectConfig3 = _vm.selectConfig, selectConfig = _vm$selectConfig3 === void 0 ? {} : _vm$selectConfig3, treeConfig = _vm.treeConfig;
15309
15332
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly;
15310
15333
  if (!property && !(treeConfig && !checkStrictly)) {
@@ -15317,8 +15340,8 @@ function onSelectOther(_ref234, value, _vm) {
15317
15340
  }
15318
15341
  }
15319
15342
  }
15320
- function hasNoCheckField(_ref235, value, _vm) {
15321
- var row2 = _ref235.row;
15343
+ function hasNoCheckField(_ref236, value, _vm) {
15344
+ var row2 = _ref236.row;
15322
15345
  onSelectTreeCheckStrictly({
15323
15346
  row: row2
15324
15347
  }, value, _vm);
@@ -15326,8 +15349,8 @@ function hasNoCheckField(_ref235, value, _vm) {
15326
15349
  row: row2
15327
15350
  }, value, _vm);
15328
15351
  }
15329
- function pushSelectRow(_ref236) {
15330
- 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;
15352
+ function pushSelectRow(_ref237) {
15353
+ 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;
15331
15354
  if (!checkStrictly && value) {
15332
15355
  eachTree(afterFullData, function(row2, $rowIndex) {
15333
15356
  if (!checkMethod || checkMethod({
@@ -15349,8 +15372,8 @@ function pushSelectRow(_ref236) {
15349
15372
  }, treeConfig);
15350
15373
  }
15351
15374
  }
15352
- function hasCheckFieldNoStrictly(_ref237) {
15353
- var afterFullData = _ref237.afterFullData, checkMethod = _ref237.checkMethod, checkStrictly = _ref237.checkStrictly, property = _ref237.property, selection = _ref237.selection, treeConfig = _ref237.treeConfig, value = _ref237.value;
15375
+ function hasCheckFieldNoStrictly(_ref238) {
15376
+ var afterFullData = _ref238.afterFullData, checkMethod = _ref238.checkMethod, checkStrictly = _ref238.checkStrictly, property = _ref238.property, selection = _ref238.selection, treeConfig = _ref238.treeConfig, value = _ref238.value;
15354
15377
  if (!checkStrictly && property) {
15355
15378
  var indexKey = (treeConfig ? "$" : "") + "rowIndex";
15356
15379
  var setValFn = function setValFn2(row2, rowIndex) {
@@ -15376,8 +15399,8 @@ function hasCheckFieldNoStrictly(_ref237) {
15376
15399
  }
15377
15400
  }
15378
15401
  }
15379
- function filterSelectRow(_ref238) {
15380
- var afterFullData = _ref238.afterFullData, checkMethod = _ref238.checkMethod, checkStrictly = _ref238.checkStrictly, selectRows = _ref238.selectRows, selection = _ref238.selection, value = _ref238.value;
15402
+ function filterSelectRow(_ref239) {
15403
+ var afterFullData = _ref239.afterFullData, checkMethod = _ref239.checkMethod, checkStrictly = _ref239.checkStrictly, selectRows = _ref239.selectRows, selection = _ref239.selection, value = _ref239.value;
15381
15404
  if (!checkStrictly && value && checkMethod) {
15382
15405
  selectRows = afterFullData.filter(function(row2, rowIndex) {
15383
15406
  return selection.includes(row2) || checkMethod({
@@ -15399,8 +15422,8 @@ function filterSelectRow(_ref238) {
15399
15422
  }
15400
15423
  return selectRows;
15401
15424
  }
15402
- function hasNoCheckFieldNoStrictly(_ref239) {
15403
- var afterFullData = _ref239.afterFullData, checkMethod = _ref239.checkMethod, checkStrictly = _ref239.checkStrictly, property = _ref239.property, selection = _ref239.selection, treeConfig = _ref239.treeConfig, value = _ref239.value;
15425
+ function hasNoCheckFieldNoStrictly(_ref240) {
15426
+ var afterFullData = _ref240.afterFullData, checkMethod = _ref240.checkMethod, checkStrictly = _ref240.checkStrictly, property = _ref240.property, selection = _ref240.selection, treeConfig = _ref240.treeConfig, value = _ref240.value;
15404
15427
  var selectRows = [];
15405
15428
  if (treeConfig) {
15406
15429
  pushSelectRow({
@@ -15425,8 +15448,8 @@ function hasNoCheckFieldNoStrictly(_ref239) {
15425
15448
  }
15426
15449
  return selectRows;
15427
15450
  }
15428
- function setSelectionNoStrictly(_ref240) {
15429
- var _vm = _ref240._vm, checkStrictly = _ref240.checkStrictly, reserve = _ref240.reserve, selectRows = _ref240.selectRows, selection = _ref240.selection, value = _ref240.value, afterFullData = _ref240.afterFullData;
15451
+ function setSelectionNoStrictly(_ref241) {
15452
+ var _vm = _ref241._vm, checkStrictly = _ref241.checkStrictly, reserve = _ref241.reserve, selectRows = _ref241.selectRows, selection = _ref241.selection, value = _ref241.value, afterFullData = _ref241.afterFullData;
15430
15453
  if (!checkStrictly) {
15431
15454
  if (reserve) {
15432
15455
  var unCheckedRows = afterFullData.filter(function(row2) {
@@ -15446,7 +15469,7 @@ var Methods$1 = {
15446
15469
  // 处理默认勾选
15447
15470
  handleSelectionDefChecked: function handleSelectionDefChecked() {
15448
15471
  var fullDataRowIdData = this.fullDataRowIdData;
15449
- var _ref241 = this.selectConfig || {}, checkAll = _ref241.checkAll, checkRowKeys = _ref241.checkRowKeys;
15472
+ var _ref242 = this.selectConfig || {}, checkAll = _ref242.checkAll, checkRowKeys = _ref242.checkRowKeys;
15450
15473
  if (checkAll) {
15451
15474
  this.setAllSelection(true);
15452
15475
  return;
@@ -15466,13 +15489,13 @@ var Methods$1 = {
15466
15489
  }
15467
15490
  },
15468
15491
  setSelection: function setSelection(rows, value) {
15469
- var _this84 = this;
15492
+ var _this83 = this;
15470
15493
  if (rows) {
15471
15494
  if (!isArray(rows)) {
15472
15495
  rows = [rows];
15473
15496
  }
15474
15497
  rows.forEach(function(row2) {
15475
- return _this84.handleSelectRow({
15498
+ return _this83.handleSelectRow({
15476
15499
  row: row2
15477
15500
  }, !!value);
15478
15501
  });
@@ -15480,8 +15503,8 @@ var Methods$1 = {
15480
15503
  return this.$nextTick();
15481
15504
  },
15482
15505
  // 多选,行选中事件。value:选中true、不选false、不确定-1
15483
- handleSelectRow: function handleSelectRow(_ref242, value) {
15484
- var row2 = _ref242.row;
15506
+ handleSelectRow: function handleSelectRow(_ref243, value) {
15507
+ var row2 = _ref243.row;
15485
15508
  hasCheckField({
15486
15509
  row: row2
15487
15510
  }, value, this);
@@ -15492,7 +15515,7 @@ var Methods$1 = {
15492
15515
  },
15493
15516
  handleToggleCheckRowEvent: function handleToggleCheckRowEvent(params, event) {
15494
15517
  var selection = this.selection;
15495
- var _ref243 = this.selectConfig || {}, checkField = _ref243.checkField;
15518
+ var _ref244 = this.selectConfig || {}, checkField = _ref244.checkField;
15496
15519
  var row2 = params.row;
15497
15520
  var value = checkField ? !get(row2, checkField) : !~selection.indexOf(row2);
15498
15521
  if (event) {
@@ -15560,8 +15583,8 @@ var Methods$1 = {
15560
15583
  // 根据表格选中状态,给头部复现框赋值状态(全选,半选,未选)
15561
15584
  checkSelectionStatus: function checkSelectionStatus() {
15562
15585
  var afterFullData = this.afterFullData, selection = this.selection, treeIndeterminates = this.treeIndeterminates;
15563
- var _ref244 = this.selectConfig || {}, checkField = _ref244.checkField, checkMethod = _ref244.checkMethod;
15564
- var _ref245 = {}, everyHandler = _ref245.everyHandler, someHandler = _ref245.someHandler;
15586
+ var _ref245 = this.selectConfig || {}, checkField = _ref245.checkField, checkMethod = _ref245.checkMethod;
15587
+ var _ref246 = {}, everyHandler = _ref246.everyHandler, someHandler = _ref246.someHandler;
15565
15588
  if (checkField) {
15566
15589
  everyHandler = checkMethod ? function(row2, rowIndex) {
15567
15590
  return !checkMethod({
@@ -15610,7 +15633,7 @@ var Methods$1 = {
15610
15633
  // 保留选中状态
15611
15634
  reserveCheckSelection: function reserveCheckSelection() {
15612
15635
  var fullDataRowIdData = this.fullDataRowIdData, selection = this.selection;
15613
- var _ref246 = this.selectConfig || {}, reserve = _ref246.reserve;
15636
+ var _ref247 = this.selectConfig || {}, reserve = _ref247.reserve;
15614
15637
  var rowkey = getRowkey(this);
15615
15638
  if (reserve && selection.length) {
15616
15639
  this.selection = selection.map(function(row2) {
@@ -15638,7 +15661,7 @@ var Methods$1 = {
15638
15661
  },
15639
15662
  clearSelection: function clearSelection() {
15640
15663
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
15641
- var _ref247 = this.selectConfig || {}, checkField = _ref247.checkField;
15664
+ var _ref248 = this.selectConfig || {}, checkField = _ref248.checkField;
15642
15665
  if (checkField) {
15643
15666
  treeConfig ? eachTree(tableFullData, function(item) {
15644
15667
  return set(item, checkField, false);
@@ -15764,9 +15787,9 @@ var Checkbox = {
15764
15787
  };
15765
15788
  var Methods = {
15766
15789
  // 展开树节点事件
15767
- triggerTreeExpandEvent: function triggerTreeExpandEvent(event, _ref248) {
15768
- var _this85 = this;
15769
- var row2 = _ref248.row;
15790
+ triggerTreeExpandEvent: function triggerTreeExpandEvent(event, _ref249) {
15791
+ var _this84 = this;
15792
+ var row2 = _ref249.row;
15770
15793
  var currentColumn = this.currentColumn, currentRow = this.currentRow;
15771
15794
  var rest = this.toggleTreeExpansion(row2);
15772
15795
  var eventParams = {
@@ -15777,9 +15800,9 @@ var Methods = {
15777
15800
  emitEvent(this, "toggle-tree-change", [eventParams, event]);
15778
15801
  this.$nextTick(function() {
15779
15802
  if (currentRow) {
15780
- _this85.setCurrentRow(currentRow);
15803
+ _this84.setCurrentRow(currentRow);
15781
15804
  } else if (currentColumn) {
15782
- _this85.setCurrentColumn(currentColumn);
15805
+ _this84.setCurrentColumn(currentColumn);
15783
15806
  }
15784
15807
  });
15785
15808
  return rest;
@@ -15790,7 +15813,7 @@ var Methods = {
15790
15813
  },
15791
15814
  // 处理默认展开树节点
15792
15815
  handleDefaultTreeExpand: function handleDefaultTreeExpand() {
15793
- var _this86 = this;
15816
+ var _this85 = this;
15794
15817
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
15795
15818
  if (!treeConfig) return;
15796
15819
  var children = treeConfig.children, expandAll = treeConfig.expandAll, rowids = treeConfig.expandRowKeys;
@@ -15803,7 +15826,7 @@ var Methods = {
15803
15826
  filterTree(tableFullData, function(row2) {
15804
15827
  return isNonEmptyArr(row2[children]) && treeExpandeds.push(row2);
15805
15828
  }, treeConfig);
15806
- _this86.treeExpandeds = treeExpandeds;
15829
+ _this85.treeExpandeds = treeExpandeds;
15807
15830
  };
15808
15831
  var doExpandRows = function doExpandRows2() {
15809
15832
  rowids.forEach(function(rowid2) {
@@ -15812,7 +15835,7 @@ var Methods = {
15812
15835
  }, treeConfig);
15813
15836
  matchObj && isNonEmptyArr(matchObj.item[children]) && treeExpandeds.push(matchObj.item);
15814
15837
  });
15815
- _this86.treeExpandeds = treeExpandeds;
15838
+ _this85.treeExpandeds = treeExpandeds;
15816
15839
  };
15817
15840
  expandAll ? doExpandAll() : rowids ? doExpandRows() : "";
15818
15841
  graphFullData(this);
@@ -15877,12 +15900,12 @@ var Methods = {
15877
15900
  return ~this.treeExpandeds.indexOf(row2);
15878
15901
  },
15879
15902
  clearTreeExpand: function clearTreeExpand() {
15880
- var _this87 = this;
15903
+ var _this86 = this;
15881
15904
  var hasExpand = this.treeExpandeds.length;
15882
15905
  this.treeExpandeds = [];
15883
15906
  graphFullData(this);
15884
15907
  return this.handleTableData().then(function() {
15885
- return hasExpand ? _this87.recalculate() : 0;
15908
+ return hasExpand ? _this86.recalculate() : 0;
15886
15909
  });
15887
15910
  },
15888
15911
  getTreeExpandeds: function getTreeExpandeds() {