@opentinyvue/vue-grid 3.25.0 → 3.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 { debounce, PopupManager, PopperJS, extend, browserInfo, isObject, isEmptyObject, isServer, throttle, addClass, removeClass, getDataset, random, isNull, fastdom, toDecimal, logger, tryToCurrency, tryToDecimal, tryToInt, toFileSize, truncate, toRate, isNumber as isNumber$1, toBoolValue, toDate, getDateWithNewTimezone, isDate, formatDateByPattern, toDateStr, on, Validator as Validator$1, getObj, getStyle, preventDefault, off, callInterceptor, hasClass } from '@opentinyvue/utils';
4
+ import { debounce, PopupManager, PopperJS, extend, browserInfo, isObject, isEmptyObject, isServer, throttle, addClass, removeClass, getDataset, random, isNull, getActualTarget, fastdom, toDecimal, logger, tryToCurrency, tryToDecimal, tryToInt, toFileSize, truncate, toRate, isNumber as isNumber$1, toBoolValue, toDate, getDateWithNewTimezone, isDate, formatDateByPattern, toDateStr, on, Validator as Validator$1, getObj, getStyle, preventDefault, off, callInterceptor, hasClass } from '@opentinyvue/utils';
5
5
  import { iconError, iconSortTriangleDescending, iconSortTriangleAscending, iconSortTriangle, iconUnfilter, iconEdit, iconConmentRefresh, iconMinscreen, iconFullscreen, iconSetting, iconChevronRight, iconChevronDown, iconGridNoData, iconRadio, iconRadioselected, iconSearch, iconCheckedSur, iconCheck, iconHalfselect, iconArrowBottom, IconEllipsis, iconClose, iconYes, iconExpand, iconPutAway, iconEllipsis, iconMarkOn } from '@opentinyvue/vue-icon';
6
6
  import { $prefix, hooks, defineComponent, h, $install, isVue2, isVnode, $props, mergeClass, resolveTheme, useInstanceSlots, useRelation, emitter, resolveMode, useBreakpoint, setup as setup$1 } from '@opentinyvue/vue-common';
7
7
  import { uniqueId, toNumber as toNumber$1, isBoolean, each, isObject as isObject$1, isFunction, isArray, findIndexOf, get, set, clone, clear, destructuring, mapTree, has, isUndefined, find as find$1, isEqual, filterTree, arrayEach, isNumber, findTree as findTree$1, sum, template, assign, objectMap, eachTree, sortBy, isString, remove, toStringJSON, toArray, arrayIndexOf } from '@opentinyvue/vue-renderless/grid/static/';
@@ -84,7 +84,7 @@ function _regenerator() {
84
84
  var e, t2, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag";
85
85
  function i(r2, n2, o2, i2) {
86
86
  var c2 = n2 && n2.prototype instanceof Generator ? n2 : Generator, u2 = Object.create(c2.prototype);
87
- return _regeneratorDefine2(u2, "_invoke", function(r3, n3, o3) {
87
+ return _regeneratorDefine2(u2, "_invoke", (function(r3, n3, o3) {
88
88
  var i3, c3, u3, f2 = 0, p = o3 || [], y = false, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d2(t3, r4) {
89
89
  return i3 = t3, c3 = 0, u3 = e, G.n = r4, a;
90
90
  } };
@@ -117,7 +117,7 @@ function _regenerator() {
117
117
  }
118
118
  return { value: t2, done: y };
119
119
  };
120
- }(r2, o2, i2), true), u2;
120
+ })(r2, o2, i2), true), u2;
121
121
  }
122
122
  var a = {};
123
123
  function Generator() {
@@ -149,15 +149,12 @@ function _regeneratorDefine2(e, r, n, t2) {
149
149
  i = 0;
150
150
  }
151
151
  _regeneratorDefine2 = function _regeneratorDefine(e2, r2, n2, t3) {
152
- if (r2) i ? i(e2, r2, { value: n2, enumerable: !t3, configurable: !t3, writable: !t3 }) : e2[r2] = n2;
153
- else {
154
- var o = function o2(r3, n3) {
155
- _regeneratorDefine2(e2, r3, function(e3) {
156
- return this._invoke(r3, n3, e3);
157
- });
158
- };
159
- o("next", 0), o("throw", 1), o("return", 2);
152
+ function o(r3, n3) {
153
+ _regeneratorDefine2(e2, r3, function(e3) {
154
+ return this._invoke(r3, n3, e3);
155
+ });
160
156
  }
157
+ r2 ? i ? i(e2, r2, { value: n2, enumerable: !t3, configurable: !t3, writable: !t3 }) : e2[r2] = n2 : (o("next", 0), o("throw", 1), o("return", 2));
161
158
  }, _regeneratorDefine2(e, r, n, t2);
162
159
  }
163
160
  function asyncGeneratorStep(n, t2, e, r, o, a, c) {
@@ -233,7 +230,8 @@ var GlobalConfig$1 = {
233
230
  editConfig: {
234
231
  trigger: "click",
235
232
  mode: "cell",
236
- showStatus: true
233
+ showStatus: true,
234
+ validateOnActive: true
237
235
  },
238
236
  // 默认开启点击头部单元格触发排序
239
237
  sortConfig: {
@@ -645,8 +643,8 @@ function defaultFilterRender(h2, renderOpts, params, context) {
645
643
  function defaultFilterMethod(_ref2) {
646
644
  var option = _ref2.option, row2 = _ref2.row, column = _ref2.column;
647
645
  var cellValue = get(row2, column.property);
648
- var data6 = option.data;
649
- return cellValue == data6;
646
+ var data7 = option.data;
647
+ return cellValue == data7;
650
648
  }
651
649
  function renderSelectEdit(h2, renderOpts, params, context) {
652
650
  var column = params.column, $table = params.$table, row2 = params.row;
@@ -856,10 +854,10 @@ var Formatter = {
856
854
  label: "label",
857
855
  value: "value"
858
856
  }, this.own.formatConfig);
859
- var data6 = Array.isArray(format2.data) && find$1(format2.data, function(item) {
857
+ var data7 = Array.isArray(format2.data) && find$1(format2.data, function(item) {
860
858
  return item[format2.value] === value;
861
859
  });
862
- return data6 ? data6[format2.label] : "";
860
+ return data7 ? data7[format2.label] : "";
863
861
  },
864
862
  select: function select(cellValue) {
865
863
  var _this$editor = this.editor, options = _this$editor.options, optionGroups = _this$editor.optionGroups, _this$editor$optionPr = _this$editor.optionProps, optionProps = _this$editor$optionPr === void 0 ? {} : _this$editor$optionPr, _this$editor$optionGr = _this$editor.optionGroupProps, optionGroupProps = _this$editor$optionGr === void 0 ? {} : _this$editor$optionGr;
@@ -1781,9 +1779,9 @@ var _getTreeLength = function getTreeLength(tree, childrenKey) {
1781
1779
  return length;
1782
1780
  };
1783
1781
  var getTiledLength = function getTiledLength2(props) {
1784
- var data6 = props.data || [];
1782
+ var data7 = props.data || [];
1785
1783
  var _ref14 = props.treeConfig || {}, childrenKey = _ref14.children;
1786
- return props.treeConfig ? _getTreeLength(data6, childrenKey) : data6.length;
1784
+ return props.treeConfig ? _getTreeLength(data7, childrenKey) : data7.length;
1787
1785
  };
1788
1786
  var useData = function useData2(props) {
1789
1787
  var _hooks$getCurrentInst3;
@@ -2401,7 +2399,7 @@ var doSpan = function doSpan2(_ref31) {
2401
2399
  attrs.visible = rowspan > 0 && colspan > 0;
2402
2400
  };
2403
2401
  var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2404
- var row2 = _ref33.row, $rowIndex = _ref33.$rowIndex, column = _ref33.column, data6 = _ref33.data;
2402
+ var row2 = _ref33.row, $rowIndex = _ref33.$rowIndex, column = _ref33.column, data7 = _ref33.data;
2405
2403
  var fields = [];
2406
2404
  if (column.visible && rowSpan) {
2407
2405
  rowSpan.forEach(function(item) {
@@ -2409,8 +2407,8 @@ var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2409
2407
  });
2410
2408
  var cellVal = row2[column.property];
2411
2409
  if (cellVal && fields.includes(column.property)) {
2412
- var prevSiblingRow = data6[$rowIndex - 1];
2413
- var nextSiblingRow = data6[$rowIndex + 1];
2410
+ var prevSiblingRow = data7[$rowIndex - 1];
2411
+ var nextSiblingRow = data7[$rowIndex + 1];
2414
2412
  if ((prevSiblingRow == null ? void 0 : prevSiblingRow[column.property]) === cellVal) {
2415
2413
  return {
2416
2414
  rowspan: 0,
@@ -2420,7 +2418,7 @@ var rowSpanMethod = function rowSpanMethod2(rowSpan, _ref33) {
2420
2418
  var rowspanCount = 1;
2421
2419
  while (((_nextSiblingRow = nextSiblingRow) == null ? void 0 : _nextSiblingRow[column.property]) === cellVal) {
2422
2420
  var _nextSiblingRow;
2423
- nextSiblingRow = data6[++rowspanCount + $rowIndex];
2421
+ nextSiblingRow = data7[++rowspanCount + $rowIndex];
2424
2422
  }
2425
2423
  if (rowspanCount > 1) {
2426
2424
  return {
@@ -2946,8 +2944,12 @@ function renderRows(_vm) {
2946
2944
  value: 0
2947
2945
  };
2948
2946
  var $seq = "";
2949
- rowPool.forEach(function(_ref48, $rowIndex) {
2950
- var id3 = _ref48.id, _ref48$item = _ref48.item, row2 = _ref48$item.payload, rowLevel = _ref48$item.level, used = _ref48.used;
2947
+ var lastVisibleIndex = rowPool.findLastIndex(function(_ref48) {
2948
+ var used = _ref48.used;
2949
+ return Boolean(used);
2950
+ });
2951
+ rowPool.forEach(function(_ref49, $rowIndex) {
2952
+ var id3 = _ref49.id, _ref49$item = _ref49.item, row2 = _ref49$item.payload, rowLevel = _ref49$item.level, used = _ref49.used;
2951
2953
  var rowActived = editConfig && actived.row === row2;
2952
2954
  var virtualRow = isVirtualRow(row2);
2953
2955
  var isSkipRowRender = hideMethod && hideMethod(row2, rowLevel) || virtualRow;
@@ -2984,7 +2986,8 @@ function renderRows(_vm) {
2984
2986
  isSkipRowRender,
2985
2987
  row: row2,
2986
2988
  rowActived,
2987
- rowClassName
2989
+ rowClassName,
2990
+ lastVisibleIndex
2988
2991
  };
2989
2992
  Object.assign(args, {
2990
2993
  rowIndex,
@@ -3066,8 +3069,8 @@ function renderRowExpanded(args) {
3066
3069
  }
3067
3070
  }
3068
3071
  }
3069
- function renderRowAfter(_ref49) {
3070
- var $table = _ref49.$table, _vm = _ref49._vm, row2 = _ref49.row, rowIndex = _ref49.rowIndex, rows = _ref49.rows, id3 = _ref49.id, used = _ref49.used;
3072
+ function renderRowAfter(_ref50) {
3073
+ var $table = _ref50.$table, _vm = _ref50._vm, row2 = _ref50.row, rowIndex = _ref50.rowIndex, rows = _ref50.rows, id3 = _ref50.id, used = _ref50.used;
3071
3074
  typeof $table.renderRowAfter === "function" && $table.renderRowAfter({
3072
3075
  rows,
3073
3076
  row: row2,
@@ -3079,9 +3082,9 @@ function renderRowAfter(_ref49) {
3079
3082
  }, h);
3080
3083
  }
3081
3084
  function renderRow(args) {
3082
- var _ref50;
3085
+ var _ref51;
3083
3086
  var $rowIndex = args.$rowIndex, $seq = args.$seq, $table = args.$table, _vm = args._vm, editStore = args.editStore, id3 = args.id, isSkipRowRender = args.isSkipRowRender, row2 = args.row, rowActived = args.rowActived, rowClassName = args.rowClassName;
3084
- var rowIndex = args.rowIndex, rowLevel = args.rowLevel, rowid2 = args.rowid, rows = args.rows, selection = args.selection, selectRow = args.selectRow, seq = args.seq, treeConfig = args.treeConfig, used = args.used;
3087
+ var rowIndex = args.rowIndex, rowLevel = args.rowLevel, rowid2 = args.rowid, rows = args.rows, selection = args.selection, selectRow = args.selectRow, seq = args.seq, treeConfig = args.treeConfig, used = args.used, lastVisibleIndex = args.lastVisibleIndex;
3085
3088
  if (isSkipRowRender) {
3086
3089
  return;
3087
3090
  }
@@ -3103,7 +3106,7 @@ function renderRow(args) {
3103
3106
  "style": {
3104
3107
  display: used ? void 0 : "none"
3105
3108
  },
3106
- "class": ["tiny-grid-body__row", (_ref50 = {}, _ref50["row__level-" + rowLevel] = treeConfig, _ref50["row__new"] = editStore.insertList.includes(row2), _ref50["row__selected"] = selection.includes(row2), _ref50["row__radio"] = selectRow === row2, _ref50["row__actived"] = rowActived, _ref50), rowClassName ? isFunction(rowClassName) ? rowClassName({
3109
+ "class": ["tiny-grid-body__row", (_ref51 = {}, _ref51["row__level-" + rowLevel] = treeConfig, _ref51["row__new"] = editStore.insertList.includes(row2), _ref51["row__selected"] = selection.includes(row2), _ref51["row__radio"] = selectRow === row2, _ref51["row__actived"] = rowActived, _ref51["row__last-visible"] = lastVisibleIndex === $rowIndex, _ref51), rowClassName ? isFunction(rowClassName) ? rowClassName({
3107
3110
  $table,
3108
3111
  $seq,
3109
3112
  seq,
@@ -3113,8 +3116,8 @@ function renderRow(args) {
3113
3116
  rowIndex,
3114
3117
  $rowIndex
3115
3118
  }) : rowClassName : ""]
3116
- }, [columnPool.map(function(_ref51, $columnIndex) {
3117
- var id4 = _ref51.id, column = _ref51.item, used2 = _ref51.used;
3119
+ }, [columnPool.map(function(_ref52, $columnIndex) {
3120
+ var id4 = _ref52.id, column = _ref52.item, used2 = _ref52.used;
3118
3121
  return renderColumn({
3119
3122
  $columnIndex,
3120
3123
  $table,
@@ -3128,8 +3131,8 @@ function renderRow(args) {
3128
3131
  });
3129
3132
  })]));
3130
3133
  }
3131
- function renderRowGroupTds(_ref52) {
3132
- var $table = _ref52.$table, closeable = _ref52.closeable, render17 = _ref52.render, renderGroupCell = _ref52.renderGroupCell, row2 = _ref52.row, tds = _ref52.tds, title = _ref52.title, _vm = _ref52._vm;
3134
+ function renderRowGroupTds(_ref53) {
3135
+ var $table = _ref53.$table, closeable = _ref53.closeable, render17 = _ref53.render, renderGroupCell = _ref53.renderGroupCell, row2 = _ref53.row, tds = _ref53.tds, title = _ref53.title, _vm = _ref53._vm;
3133
3136
  var targetColumn = $table._rowGroupTargetColumn;
3134
3137
  var value = row2.value || "";
3135
3138
  var columnPool = _vm.columnPool;
@@ -3168,8 +3171,8 @@ function renderRowGroupTds(_ref52) {
3168
3171
  }, [row2.children.length])]) : renderGroupCell ? renderGroupCell(h, params) : null])]));
3169
3172
  }
3170
3173
  }
3171
- function renderRowGroupData(_ref53) {
3172
- var $table = _ref53.$table, _vm = _ref53._vm, id3 = _ref53.id, row2 = _ref53.row, rowGroup = _ref53.rowGroup, rowid2 = _ref53.rowid, rows = _ref53.rows, used = _ref53.used, virtualRow = _ref53.virtualRow;
3174
+ function renderRowGroupData(_ref54) {
3175
+ var $table = _ref54.$table, _vm = _ref54._vm, id3 = _ref54.id, row2 = _ref54.row, rowGroup = _ref54.rowGroup, rowid2 = _ref54.rowid, rows = _ref54.rows, used = _ref54.used, virtualRow = _ref54.virtualRow;
3173
3176
  if (!virtualRow) return;
3174
3177
  var title = rowGroup.title, _rowGroup$closeable2 = rowGroup.closeable, closeable = _rowGroup$closeable2 === void 0 ? true : _rowGroup$closeable2, render17 = rowGroup.render, renderGroupCell = rowGroup.renderGroupCell, className = rowGroup.className;
3175
3178
  var tds = [];
@@ -3210,8 +3213,8 @@ function renderRowGroupData(_ref53) {
3210
3213
  "onClick": onClick
3211
3214
  }, [tds]));
3212
3215
  }
3213
- function renderTable(_ref54) {
3214
- var $table = _ref54.$table, _vm = _ref54._vm;
3216
+ function renderTable(_ref55) {
3217
+ var $table = _ref55.$table, _vm = _ref55._vm;
3215
3218
  var tableLayout = $table.tableLayout, scrollXLoad = $table.scrollXLoad, scrollYLoad = $table.scrollYLoad, bodyTableWidth = $table.bodyTableWidth, isColumnWidthAssigned = $table.isColumnWidthAssigned;
3216
3219
  var columnPool = _vm.columnPool, isNoData = _vm.isNoData;
3217
3220
  if (!isColumnWidthAssigned) {
@@ -3232,8 +3235,8 @@ function renderTable(_ref54) {
3232
3235
  // 列分组(用于指定列宽)
3233
3236
  createVNode("colgroup", {
3234
3237
  "ref": "colgroup"
3235
- }, [columnPool.map(function(_ref55) {
3236
- var id3 = _ref55.id, column = _ref55.item, used = _ref55.used;
3238
+ }, [columnPool.map(function(_ref56) {
3239
+ var id3 = _ref56.id, column = _ref56.item, used = _ref56.used;
3237
3240
  return createVNode("col", {
3238
3241
  "key": id3,
3239
3242
  "name": column.id,
@@ -3331,9 +3334,9 @@ var Body = /* @__PURE__ */ defineComponent({
3331
3334
  tableData: Array,
3332
3335
  footerData: Array
3333
3336
  },
3334
- setup: function setup3(props, _ref56) {
3337
+ setup: function setup3(props, _ref57) {
3335
3338
  var _hooks$getCurrentInst4;
3336
- var slots = _ref56.slots;
3339
+ var slots = _ref57.slots;
3337
3340
  var vm = (_hooks$getCurrentInst4 = hooks.getCurrentInstance()) == null ? void 0 : _hooks$getCurrentInst4.proxy;
3338
3341
  var $table = vm == null ? void 0 : vm.$parent;
3339
3342
  var rowHeight = hooks.computed(function() {
@@ -3570,18 +3573,18 @@ var Body = /* @__PURE__ */ defineComponent({
3570
3573
  var $el = this.$el, $table = this.$parent;
3571
3574
  var dragClientX = event.clientX, dragBtnElem = event.target;
3572
3575
  var column = params.column;
3573
- var _ref57 = {}, _ref57$dragLeft = _ref57.dragLeft, dragLeft = _ref57$dragLeft === void 0 ? 0 : _ref57$dragLeft, _ref57$minInterval = _ref57.minInterval, minInterval = _ref57$minInterval === void 0 ? 40 : _ref57$minInterval;
3576
+ var _ref58 = {}, _ref58$dragLeft = _ref58.dragLeft, dragLeft = _ref58$dragLeft === void 0 ? 0 : _ref58$dragLeft, _ref58$minInterval = _ref58.minInterval, minInterval = _ref58$minInterval === void 0 ? 40 : _ref58$minInterval;
3574
3577
  var _$table$$refs = $table.$refs, resizeBarElem = _$table$$refs.resizeBar, tableBody = _$table$$refs.tableBody;
3575
- var _ref58 = {}, _ref58$cell = _ref58.cell, cell = _ref58$cell === void 0 ? dragBtnElem.parentNode : _ref58$cell, _ref58$dragBtnWidth = _ref58.dragBtnWidth, dragBtnWidth = _ref58$dragBtnWidth === void 0 ? dragBtnElem.clientWidth : _ref58$dragBtnWidth;
3576
- var _ref59 = {}, _ref59$pos = _ref59.pos, pos = _ref59$pos === void 0 ? getOffsetPos(dragBtnElem, $el) : _ref59$pos, _ref59$tableBodyElem = _ref59.tableBodyElem, tableBodyElem = _ref59$tableBodyElem === void 0 ? tableBody.$el : _ref59$tableBodyElem;
3578
+ 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;
3579
+ var _ref60 = {}, _ref60$pos = _ref60.pos, pos = _ref60$pos === void 0 ? getOffsetPos(dragBtnElem, $el) : _ref60$pos, _ref60$tableBodyElem = _ref60.tableBodyElem, tableBodyElem = _ref60$tableBodyElem === void 0 ? tableBody.$el : _ref60$tableBodyElem;
3577
3580
  var dragMinLeft = pos.left - cell.clientWidth + dragBtnWidth + minInterval;
3578
3581
  var dragPosLeft = pos.left + Math.floor(dragBtnWidth);
3579
- var _ref60 = {}, _ref60$oldMousemove = _ref60.oldMousemove, oldMousemove = _ref60$oldMousemove === void 0 ? document.onmousemove : _ref60$oldMousemove, _ref60$oldMouseup = _ref60.oldMouseup, oldMouseup = _ref60$oldMouseup === void 0 ? document.onmouseup : _ref60$oldMouseup;
3582
+ var _ref61 = {}, _ref61$oldMousemove = _ref61.oldMousemove, oldMousemove = _ref61$oldMousemove === void 0 ? document.onmousemove : _ref61$oldMousemove, _ref61$oldMouseup = _ref61.oldMouseup, oldMouseup = _ref61$oldMouseup === void 0 ? document.onmouseup : _ref61$oldMouseup;
3580
3583
  var handleMousemoveEvent = function handleMousemoveEvent2(event2) {
3581
3584
  var _$table$resizableConf;
3582
3585
  event2.stopPropagation();
3583
3586
  event2.preventDefault();
3584
- var _ref61 = {}, _ref61$offsetX = _ref61.offsetX, offsetX = _ref61$offsetX === void 0 ? event2.clientX - dragClientX : _ref61$offsetX, _ref61$left = _ref61.left, left = _ref61$left === void 0 ? offsetX + dragPosLeft : _ref61$left;
3587
+ var _ref62 = {}, _ref62$offsetX = _ref62.offsetX, offsetX = _ref62$offsetX === void 0 ? event2.clientX - dragClientX : _ref62$offsetX, _ref62$left = _ref62.left, left = _ref62$left === void 0 ? offsetX + dragPosLeft : _ref62$left;
3585
3588
  var scrollLeft = tableBodyElem.scrollLeft;
3586
3589
  dragLeft = Math.max(left, dragMinLeft);
3587
3590
  if ((_$table$resizableConf = $table.resizableConfig) != null && _$table$resizableConf.limit) {
@@ -3656,14 +3659,14 @@ var Radio = defineComponent({
3656
3659
  return this.size || this.$parent.size || this.$parent.vSize;
3657
3660
  }
3658
3661
  },
3659
- setup: function setup4(props, _ref62) {
3660
- var slots = _ref62.slots;
3662
+ setup: function setup4(props, _ref63) {
3663
+ var slots = _ref63.slots;
3661
3664
  return {
3662
3665
  slots
3663
3666
  };
3664
3667
  },
3665
3668
  render: function render2() {
3666
- var _ref63, _this2 = this;
3669
+ var _ref64, _this2 = this;
3667
3670
  var disabled = this.disabled, vSize3 = this.vSize, modelValue = this.modelValue, label = this.label, name = this.name;
3668
3671
  var $slots = this.slots;
3669
3672
  var disableClass = "disabled";
@@ -3680,7 +3683,7 @@ var Radio = defineComponent({
3680
3683
  return content;
3681
3684
  };
3682
3685
  return h("label", {
3683
- class: ["tiny-grid-radio", (_ref63 = {}, _ref63["size__" + vSize3] = vSize3, _ref63["is__" + disableClass] = disabled, _ref63)]
3686
+ class: ["tiny-grid-radio", (_ref64 = {}, _ref64["size__" + vSize3] = vSize3, _ref64["is__" + disableClass] = disabled, _ref64)]
3684
3687
  }, [h("input", {
3685
3688
  attrs: {
3686
3689
  type: "radio",
@@ -3715,8 +3718,8 @@ $install(Radio);
3715
3718
  function _isSlot(s) {
3716
3719
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
3717
3720
  }
3718
- var renderInputArgs = function renderInputArgs2(_ref64) {
3719
- var _vm = _ref64._vm, inputFilter = _ref64.inputFilter;
3721
+ var renderInputArgs = function renderInputArgs2(_ref65) {
3722
+ var _vm = _ref65._vm, inputFilter = _ref65.inputFilter;
3720
3723
  var isAddbyProgram = false;
3721
3724
  if (typeof inputFilter.relations_addby !== "undefined") {
3722
3725
  isAddbyProgram = inputFilter.relations_addby === "program";
@@ -3744,9 +3747,9 @@ var renderInputArgs = function renderInputArgs2(_ref64) {
3744
3747
  inputRelations
3745
3748
  };
3746
3749
  };
3747
- var renderInputProps = function renderInputProps2(_ref65) {
3750
+ var renderInputProps = function renderInputProps2(_ref66) {
3748
3751
  var _on3;
3749
- var InputComponent = _ref65.InputComponent, condition2 = _ref65.condition, event = _ref65.event, inputFilter = _ref65.inputFilter, isNativeInput = _ref65.isNativeInput, prop = _ref65.prop;
3752
+ var InputComponent = _ref66.InputComponent, condition2 = _ref66.condition, event = _ref66.event, inputFilter = _ref66.inputFilter, isNativeInput = _ref66.isNativeInput, prop = _ref66.prop;
3750
3753
  var inputProps = {
3751
3754
  style: "width:100%",
3752
3755
  on: (_on3 = {}, _on3[event] = function(value) {
@@ -3792,8 +3795,8 @@ var iconRender = function iconRender2(checked, index2, halfChecked) {
3792
3795
  }), null) : createVNode(Check, props, null);
3793
3796
  }
3794
3797
  };
3795
- var renderEnumableOptions = function renderEnumableOptions2(_ref66) {
3796
- var iconRender3 = _ref66.iconRender, _vm = _ref66._vm, filterStore = _ref66.filterStore, selectAll = _ref66.selectAll, searchable = _ref66.searchable;
3798
+ var renderEnumableOptions = function renderEnumableOptions2(_ref67) {
3799
+ var iconRender3 = _ref67.iconRender, _vm = _ref67._vm, filterStore = _ref67.filterStore, selectAll = _ref67.selectAll, searchable = _ref67.searchable;
3797
3800
  var resultList = filterStore.options.filter(function(value) {
3798
3801
  var _value$label;
3799
3802
  return (_value$label = value.label) == null ? void 0 : _value$label.toString().includes(filterStore.searchValue);
@@ -3874,7 +3877,7 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
3874
3877
  };
3875
3878
  },
3876
3879
  render: function render3() {
3877
- var _this3 = this, _ref67;
3880
+ var _this3 = this, _ref68;
3878
3881
  var filterStore = this.filterStore, $grid = this.$grid, $table = this.$parent, optimizeOpts = this.optimizeOpts, renderInput2 = this.renderInput, renderEnumable2 = this.renderEnumable, renderDefault2 = this.renderDefault, renderExtends2 = this.renderExtends, renderBase2 = this.renderBase, renderSimple2 = this.renderSimple;
3879
3882
  var args = filterStore.args, column = filterStore.column, options = filterStore.options, _filterStore$layout = filterStore.layout, layout2 = _filterStore$layout === void 0 ? "input,enum,default,extends,base" : _filterStore$layout;
3880
3883
  var layoutMap = {
@@ -3895,9 +3898,9 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
3895
3898
  attrs: filterStore.attrs
3896
3899
  } : filterStore.attrs;
3897
3900
  return createVNode("div", mergeProps(wrapperAttrs, {
3898
- "class": ["tiny-grid__wrapper", "tiny-grid__filter-wrapper", "filter__prevent-default", (_ref67 = {
3901
+ "class": ["tiny-grid__wrapper", "tiny-grid__filter-wrapper", "filter__prevent-default", (_ref68 = {
3899
3902
  "tiny-grid__animat": optimizeOpts.animat
3900
- }, _ref67[map.filterActive] = filterStore.visible, _ref67["tiny-grid__filter-simple"] = layout2.includes("simple"), _ref67["filter-wrapper-saas"] = $table.isThemeSaas, _ref67)],
3903
+ }, _ref68[map.filterActive] = filterStore.visible, _ref68["tiny-grid__filter-simple"] = layout2.includes("simple"), _ref68["filter-wrapper-saas"] = $table.isThemeSaas, _ref68)],
3901
3904
  "style": filterStore.style
3902
3905
  }), [filterStore.visible ? createVNode("div", {
3903
3906
  "class": ["tiny-grid__filter-body", {
@@ -4003,7 +4006,7 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
4003
4006
  // 筛选扩展项
4004
4007
  renderExtends: function renderExtends() {
4005
4008
  var _this6 = this;
4006
- var filterStore = this.filterStore;
4009
+ var filterStore = this.filterStore, condition2 = this.condition;
4007
4010
  if (!filterStore.extends) {
4008
4011
  return null;
4009
4012
  }
@@ -4011,7 +4014,9 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
4011
4014
  "class": "tiny-grid__filter-panel filter-panel__clear"
4012
4015
  }, [filterStore.extends.map(function(item) {
4013
4016
  return createVNode("li", {
4014
- "class": "tiny-grid__filter-option",
4017
+ "class": ["tiny-grid__filter-option", {
4018
+ active: condition2.value === (item.value || item.label)
4019
+ }],
4015
4020
  "onClick": function onClick() {
4016
4021
  _this6.filterExtends(item);
4017
4022
  }
@@ -4050,8 +4055,8 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
4050
4055
  "class": "tiny-grid__filter-panel"
4051
4056
  }, [isAddbyProgram ? null : createVNode("li", {
4052
4057
  "class": "tiny-grid__filter-option filter-option__radios"
4053
- }, [inputRelations.map(function(_ref68) {
4054
- var label = _ref68.label, value = _ref68.value, method = _ref68.method;
4058
+ }, [inputRelations.map(function(_ref69) {
4059
+ var label = _ref69.label, value = _ref69.value, method = _ref69.method;
4055
4060
  return createVNode(Radio, {
4056
4061
  "modelValue": condition2.relation,
4057
4062
  "label": value,
@@ -4405,8 +4410,8 @@ var Panel$1 = /* @__PURE__ */ defineComponent({
4405
4410
  });
4406
4411
  }
4407
4412
  });
4408
- function handleFilterConditionCustom(_ref69) {
4409
- var column = _ref69.column, condition2 = _ref69.condition, method = _ref69.method, property = _ref69.property, row2 = _ref69.row;
4413
+ function handleFilterConditionCustom(_ref70) {
4414
+ var column = _ref70.column, condition2 = _ref70.condition, method = _ref70.method, property = _ref70.property, row2 = _ref70.row;
4410
4415
  var ret = {
4411
4416
  flag: false,
4412
4417
  result: null
@@ -4421,8 +4426,8 @@ function handleFilterConditionCustom(_ref69) {
4421
4426
  }
4422
4427
  return ret;
4423
4428
  }
4424
- function handleFilterConditionExtend(_ref70) {
4425
- var column = _ref70.column, condition2 = _ref70.condition, property = _ref70.property, row2 = _ref70.row;
4429
+ function handleFilterConditionExtend(_ref71) {
4430
+ var column = _ref71.column, condition2 = _ref71.condition, property = _ref71.property, row2 = _ref71.row;
4426
4431
  var ret = {
4427
4432
  flag: false,
4428
4433
  result: null
@@ -4455,8 +4460,8 @@ function findRelationMethod(relation, relations) {
4455
4460
  return method;
4456
4461
  }
4457
4462
  }
4458
- function handleFilterRelations(_ref71) {
4459
- var inputFilter = _ref71.inputFilter;
4463
+ function handleFilterRelations(_ref72) {
4464
+ var inputFilter = _ref72.inputFilter;
4460
4465
  var relations = [];
4461
4466
  if (typeof inputFilter === "object" && Array.isArray(inputFilter.relations)) {
4462
4467
  relations = inputFilter.relations;
@@ -4469,8 +4474,8 @@ function modifyValueCheckStr(value) {
4469
4474
  }
4470
4475
  return value;
4471
4476
  }
4472
- function handleDefaultCheckStr(_ref72) {
4473
- var column = _ref72.column, input = _ref72.input, relation = _ref72.relation, relationMethod = _ref72.relationMethod, relations = _ref72.relations, result = _ref72.result, row2 = _ref72.row, value = _ref72.value;
4477
+ function handleDefaultCheckStr(_ref73) {
4478
+ var column = _ref73.column, input = _ref73.input, relation = _ref73.relation, relationMethod = _ref73.relationMethod, relations = _ref73.relations, result = _ref73.result, row2 = _ref73.row, value = _ref73.value;
4474
4479
  if (typeof relationMethod !== "function") {
4475
4480
  relationMethod = findRelationMethod(relation, relations);
4476
4481
  }
@@ -4487,8 +4492,8 @@ function handleDefaultCheckStr(_ref72) {
4487
4492
  result
4488
4493
  };
4489
4494
  }
4490
- function handleFilterCheckStr(_ref73) {
4491
- var column = _ref73.column, relationMethod = _ref73.relationMethod, relations = _ref73.relations, row2 = _ref73.row;
4495
+ function handleFilterCheckStr(_ref74) {
4496
+ var column = _ref74.column, relationMethod = _ref74.relationMethod, relations = _ref74.relations, row2 = _ref74.row;
4492
4497
  return function(value, input, relation, dateList) {
4493
4498
  var result = false;
4494
4499
  value = modifyValueCheckStr(value);
@@ -4541,8 +4546,8 @@ function handleFilterCheckStr(_ref73) {
4541
4546
  return result;
4542
4547
  };
4543
4548
  }
4544
- function handleFilterCheck(_ref74) {
4545
- var checkStr = _ref74.checkStr, empty = _ref74.empty, input = _ref74.input, property = _ref74.property, relation = _ref74.relation, row2 = _ref74.row, valueList = _ref74.valueList, dateList = _ref74.dateList;
4549
+ function handleFilterCheck(_ref75) {
4550
+ var checkStr = _ref75.checkStr, empty = _ref75.empty, input = _ref75.input, property = _ref75.property, relation = _ref75.relation, row2 = _ref75.row, valueList = _ref75.valueList, dateList = _ref75.dateList;
4546
4551
  return function() {
4547
4552
  var value = get(row2, property);
4548
4553
  if (empty === true) {
@@ -4714,8 +4719,8 @@ var Methods$f = {
4714
4719
  });
4715
4720
  return check();
4716
4721
  },
4717
- getOptions: function getOptions(_ref75) {
4718
- var property = _ref75.property, filter2 = _ref75.filter;
4722
+ getOptions: function getOptions(_ref76) {
4723
+ var property = _ref76.property, filter2 = _ref76.filter;
4719
4724
  var values = filter2.values, _filter$value = filter2.value, value = _filter$value === void 0 ? "value" : _filter$value, _filter$label = filter2.label, label = _filter$label === void 0 ? "label" : _filter$label, dataset = filter2.dataset;
4720
4725
  if (typeof values === "function") {
4721
4726
  return values({
@@ -4781,8 +4786,8 @@ var Methods$f = {
4781
4786
  args: params
4782
4787
  }, filter2, {
4783
4788
  defaultFilter: isBoolean(filter2.defaultFilter) ? filter2.defaultFilter : true,
4784
- options: options.map(function(_ref76) {
4785
- var value = _ref76.value, label = _ref76.label;
4789
+ options: options.map(function(_ref77) {
4790
+ var value = _ref77.value, label = _ref77.label;
4786
4791
  return {
4787
4792
  value,
4788
4793
  label,
@@ -4960,8 +4965,8 @@ var Children = defineComponent({
4960
4965
  }
4961
4966
  }
4962
4967
  });
4963
- var onMenuItem = function onMenuItem2(_ref77) {
4964
- var tableInstance = _ref77.tableInstance, item = _ref77.item, getEventTargetNode2 = _ref77.getEventTargetNode, toKebab2 = _ref77.toKebab;
4968
+ var onMenuItem = function onMenuItem2(_ref78) {
4969
+ var tableInstance = _ref78.tableInstance, item = _ref78.item, getEventTargetNode2 = _ref78.getEventTargetNode, toKebab2 = _ref78.toKebab;
4965
4970
  return {
4966
4971
  click: function click(event) {
4967
4972
  tableInstance.ctxMenuLinkEvent(event, item);
@@ -5016,8 +5021,8 @@ function createMenuItem(args) {
5016
5021
  }
5017
5022
  return res;
5018
5023
  }
5019
- function getMenuItemCreator(_ref78) {
5020
- var ctxMenuStore = _ref78.ctxMenuStore, getEventTargetNode2 = _ref78.getEventTargetNode, tableInstance = _ref78.tableInstance, toKebab2 = _ref78.toKebab;
5024
+ function getMenuItemCreator(_ref79) {
5025
+ var ctxMenuStore = _ref79.ctxMenuStore, getEventTargetNode2 = _ref79.getEventTargetNode, tableInstance = _ref79.tableInstance, toKebab2 = _ref79.toKebab;
5021
5026
  return function(options, gIndex) {
5022
5027
  return h("ul", {
5023
5028
  class: "tiny-grid-menu__option-wrapper",
@@ -5086,9 +5091,9 @@ var Methods$e = {
5086
5091
  return this.$nextTick();
5087
5092
  },
5088
5093
  // 处理菜单的移动
5089
- moveCtxMenu: function moveCtxMenu(_ref79) {
5094
+ moveCtxMenu: function moveCtxMenu(_ref80) {
5090
5095
  var _this9 = this;
5091
- var event = _ref79.event, keyCode = _ref79.keyCode, ctxMenuStore = _ref79.ctxMenuStore, property = _ref79.property, operKey = _ref79.operKey, operRest = _ref79.operRest, menuList = _ref79.menuList;
5096
+ var event = _ref80.event, keyCode = _ref80.keyCode, ctxMenuStore = _ref80.ctxMenuStore, property = _ref80.property, operKey = _ref80.operKey, operRest = _ref80.operRest, menuList = _ref80.menuList;
5092
5097
  var selectIndex = findIndexOf(menuList, function(item) {
5093
5098
  return ctxMenuStore[property] === item;
5094
5099
  });
@@ -5329,16 +5334,16 @@ var Loading = defineComponent({
5329
5334
  }
5330
5335
  });
5331
5336
  $install(Loading);
5332
- function handleActivedCheckCell(_ref80) {
5333
- var actived = _ref80.actived, column = _ref80.column, editConfig = _ref80.editConfig, row2 = _ref80.row;
5337
+ function handleActivedCheckCell(_ref81) {
5338
+ var actived = _ref81.actived, column = _ref81.column, editConfig = _ref81.editConfig, row2 = _ref81.row;
5334
5339
  return actived.row !== row2 || (editConfig.mode === "cell" ? actived.column !== column : false);
5335
5340
  }
5336
- function handleActivedCanActive(_ref81) {
5337
- var editConfig = _ref81.editConfig, params = _ref81.params;
5341
+ function handleActivedCanActive(_ref82) {
5342
+ var editConfig = _ref82.editConfig, params = _ref82.params;
5338
5343
  return !(editConfig != null && editConfig.activeMethod) || editConfig.activeMethod(params);
5339
5344
  }
5340
- function handleActivedDoActive(_ref82) {
5341
- var _vm = _ref82._vm, actived = _ref82.actived, canActive = _ref82.canActive, cell = _ref82.cell, column = _ref82.column, editConfig = _ref82.editConfig, event = _ref82.event, params = _ref82.params, row2 = _ref82.row, tableColumn2 = _ref82.tableColumn, type = _ref82.type;
5345
+ function handleActivedDoActive(_ref83) {
5346
+ var _vm = _ref83._vm, actived = _ref83.actived, canActive = _ref83.canActive, cell = _ref83.cell, column = _ref83.column, editConfig = _ref83.editConfig, event = _ref83.event, params = _ref83.params, row2 = _ref83.row, tableColumn2 = _ref83.tableColumn, type = _ref83.type;
5342
5347
  if (canActive) {
5343
5348
  if (_vm.keyboardConfig || _vm.mouseConfig) {
5344
5349
  _vm.clearCopyed(event);
@@ -5365,14 +5370,14 @@ function handleActivedDoActive(_ref82) {
5365
5370
  }
5366
5371
  return type;
5367
5372
  }
5368
- function handleActivedClearActive(_ref83) {
5369
- var _vm = _ref83._vm, canActive = _ref83.canActive, event = _ref83.event;
5373
+ function handleActivedClearActive(_ref84) {
5374
+ var _vm = _ref84._vm, canActive = _ref84.canActive, event = _ref84.event;
5370
5375
  if (!canActive) {
5371
5376
  _vm.clearActived(event);
5372
5377
  }
5373
5378
  }
5374
- function handleActivedTryActive(_ref84) {
5375
- var _vm = _ref84._vm, actived = _ref84.actived, cell = _ref84.cell, column = _ref84.column, editor = _ref84.editor, event = _ref84.event, isActiveCell = _ref84.isActiveCell, params = _ref84.params, row2 = _ref84.row;
5379
+ function handleActivedTryActive(_ref85) {
5380
+ var _vm = _ref85._vm, actived = _ref85.actived, cell = _ref85.cell, column = _ref85.column, editor = _ref85.editor, event = _ref85.event, isActiveCell = _ref85.isActiveCell, params = _ref85.params, row2 = _ref85.row;
5376
5381
  if (editor && cell && !isActiveCell) {
5377
5382
  var oldColumn = actived.column;
5378
5383
  if (oldColumn !== column) {
@@ -5394,8 +5399,8 @@ var insertedField = GlobalConfig$1.constant.insertedField;
5394
5399
  var getCellRender = function getCellRender2(isTreeNode, treeCellRender, treeRender, context) {
5395
5400
  return context[isTreeNode ? treeCellRender : treeRender];
5396
5401
  };
5397
- function processRenderer(_ref85) {
5398
- var h2 = _ref85.h, params = _ref85.params, renderer = _ref85.renderer, value = _ref85.value;
5402
+ function processRenderer(_ref86) {
5403
+ var h2 = _ref86.h, params = _ref86.params, renderer = _ref86.renderer, value = _ref86.value;
5399
5404
  var result = {
5400
5405
  flag: false,
5401
5406
  vnodes: null
@@ -5420,13 +5425,13 @@ function processRenderer(_ref85) {
5420
5425
  }
5421
5426
  return result;
5422
5427
  }
5423
- function processAsyncColumn(_ref86) {
5424
- var $table = _ref86.$table, column = _ref86.column, format = _ref86.format, h2 = _ref86.h, params = _ref86.params, row2 = _ref86.row;
5428
+ function processAsyncColumn(_ref87) {
5429
+ var $table = _ref87.$table, column = _ref87.column, format = _ref87.format, h2 = _ref87.h, params = _ref87.params, row2 = _ref87.row;
5425
5430
  var result = {
5426
5431
  flag: false,
5427
5432
  vnodes: null
5428
5433
  };
5429
- var _ref87 = format.async || {}, fetch = _ref87.fetch, loadingText = _ref87.loadingText;
5434
+ var _ref88 = format.async || {}, fetch = _ref88.fetch, loadingText = _ref88.loadingText;
5430
5435
  if ($table.isAsyncColumn && row2[insertedField] !== true && typeof fetch === "function") {
5431
5436
  var cellText = row2[$table.getAsyncColumnName(column.property)];
5432
5437
  var loadingRender = loadingText || "loading ...";
@@ -5440,8 +5445,8 @@ function processAsyncColumn(_ref86) {
5440
5445
  }
5441
5446
  return result;
5442
5447
  }
5443
- function getColumnRuleTypeIndex(_ref88) {
5444
- var _vm = _ref88._vm, isTreeNode = _ref88.isTreeNode, renMaps = _ref88.renMaps, type = _ref88.type;
5448
+ function getColumnRuleTypeIndex(_ref89) {
5449
+ var _vm = _ref89._vm, isTreeNode = _ref89.isTreeNode, renMaps = _ref89.renMaps, type = _ref89.type;
5445
5450
  return {
5446
5451
  match: function match() {
5447
5452
  return type === "index";
@@ -5452,8 +5457,8 @@ function getColumnRuleTypeIndex(_ref88) {
5452
5457
  }
5453
5458
  };
5454
5459
  }
5455
- function getColumnRuleTypeRadio(_ref89) {
5456
- var _vm = _ref89._vm, isTreeNode = _ref89.isTreeNode, renMaps = _ref89.renMaps, type = _ref89.type;
5460
+ function getColumnRuleTypeRadio(_ref90) {
5461
+ var _vm = _ref90._vm, isTreeNode = _ref90.isTreeNode, renMaps = _ref90.renMaps, type = _ref90.type;
5457
5462
  return {
5458
5463
  match: function match() {
5459
5464
  return type === "radio";
@@ -5464,8 +5469,8 @@ function getColumnRuleTypeRadio(_ref89) {
5464
5469
  }
5465
5470
  };
5466
5471
  }
5467
- function getColumnRuleTypeSelection(_ref90) {
5468
- var _vm = _ref90._vm, isTreeNode = _ref90.isTreeNode, renMaps = _ref90.renMaps, selectConfig = _ref90.selectConfig, type = _ref90.type;
5472
+ function getColumnRuleTypeSelection(_ref91) {
5473
+ var _vm = _ref91._vm, isTreeNode = _ref91.isTreeNode, renMaps = _ref91.renMaps, selectConfig = _ref91.selectConfig, type = _ref91.type;
5469
5474
  return {
5470
5475
  match: function match() {
5471
5476
  return type === "selection";
@@ -5479,8 +5484,8 @@ function getColumnRuleTypeSelection(_ref90) {
5479
5484
  }
5480
5485
  };
5481
5486
  }
5482
- function getColumnRuleTypeExpand(_ref91) {
5483
- var _vm = _ref91._vm, renMaps = _ref91.renMaps, type = _ref91.type;
5487
+ function getColumnRuleTypeExpand(_ref92) {
5488
+ var _vm = _ref92._vm, renMaps = _ref92.renMaps, type = _ref92.type;
5484
5489
  return {
5485
5490
  match: function match() {
5486
5491
  return type === "expand";
@@ -5491,8 +5496,8 @@ function getColumnRuleTypeExpand(_ref91) {
5491
5496
  }
5492
5497
  };
5493
5498
  }
5494
- function getColumnRuleTypeOperation(_ref92) {
5495
- var _vm = _ref92._vm, renMaps = _ref92.renMaps, type = _ref92.type;
5499
+ function getColumnRuleTypeOperation(_ref93) {
5500
+ var _vm = _ref93._vm, renMaps = _ref93.renMaps, type = _ref93.type;
5496
5501
  return {
5497
5502
  match: function match() {
5498
5503
  return type === "operation";
@@ -5502,8 +5507,8 @@ function getColumnRuleTypeOperation(_ref92) {
5502
5507
  }
5503
5508
  };
5504
5509
  }
5505
- function getColumnRuleTypeOther(_ref93) {
5506
- var $table = _ref93.$table, _vm = _ref93._vm, colProps = _ref93.colProps, editor = _ref93.editor, filter2 = _ref93.filter, isTreeNode = _ref93.isTreeNode, renMaps = _ref93.renMaps, type = _ref93.type;
5510
+ function getColumnRuleTypeOther(_ref94) {
5511
+ var $table = _ref94.$table, _vm = _ref94._vm, colProps = _ref94.colProps, editor = _ref94.editor, filter2 = _ref94.filter, isTreeNode = _ref94.isTreeNode, renMaps = _ref94.renMaps, type = _ref94.type;
5507
5512
  return {
5508
5513
  match: function match() {
5509
5514
  return !~["index", "radio", "selection", "expand", "operation"].indexOf(type);
@@ -5622,7 +5627,9 @@ var Cell = {
5622
5627
  }
5623
5628
  }
5624
5629
  if (typeof title === "function") {
5625
- return [title(h2, params)];
5630
+ return [h2("div", {
5631
+ class: "tiny-grid-cell-text"
5632
+ }, [title(h2, params)])];
5626
5633
  }
5627
5634
  if (type === "card") {
5628
5635
  return [formatText(getFuncText(own.title), 1)];
@@ -5670,7 +5677,7 @@ var Cell = {
5670
5677
  },
5671
5678
  // 树节点
5672
5679
  renderTreeIcon: function renderTreeIcon(h2, params) {
5673
- var _ref95, _$table$$grid, _$table$$grid$designC, _$table$$grid$designC2, _ref96;
5680
+ var _ref96, _$table$$grid, _$table$$grid$designC, _$table$$grid$designC2, _ref97;
5674
5681
  var $table = params.$table, level = params.level, row2 = params.row;
5675
5682
  var treeConfig = $table.treeConfig, treeExpandeds = $table.treeExpandeds;
5676
5683
  var children = treeConfig.children, indent = treeConfig.indent, renderIcon = treeConfig.renderIcon, trigger = treeConfig.trigger, bubbling = treeConfig.bubbling;
@@ -5685,13 +5692,13 @@ var Cell = {
5685
5692
  }
5686
5693
  };
5687
5694
  var icon = GlobalConfig$1.icon;
5688
- var defaultIcon = function defaultIcon2(h22, _ref94) {
5689
- var active = _ref94.active;
5695
+ var defaultIcon = function defaultIcon2(h22, _ref95) {
5696
+ var active = _ref95.active;
5690
5697
  var IconExpand = iconExpand();
5691
5698
  var IconPutAway = iconPutAway();
5692
5699
  return active ? h22(IconExpand) : h22(IconPutAway);
5693
5700
  };
5694
- var customExpandIcon = (_ref95 = renderIcon || ((_$table$$grid = $table.$grid) == null ? void 0 : (_$table$$grid$designC = _$table$$grid.designConfig) == null ? void 0 : (_$table$$grid$designC2 = _$table$$grid$designC.treeConfig) == null ? void 0 : _$table$$grid$designC2.renderIcon)) != null ? _ref95 : defaultIcon;
5701
+ var customExpandIcon = (_ref96 = renderIcon || ((_$table$$grid = $table.$grid) == null ? void 0 : (_$table$$grid$designC = _$table$$grid.designConfig) == null ? void 0 : (_$table$$grid$designC2 = _$table$$grid$designC.treeConfig) == null ? void 0 : _$table$$grid$designC2.renderIcon)) != null ? _ref96 : defaultIcon;
5695
5702
  if (trigger && trigger !== "default") {
5696
5703
  listeners = {};
5697
5704
  }
@@ -5714,7 +5721,7 @@ var Cell = {
5714
5721
  width: level * (indent || 16) + "px"
5715
5722
  }
5716
5723
  }), h2("span", {
5717
- class: ["tiny-grid-tree-wrapper", (_ref96 = {}, _ref96[map.isActive] = isActive, _ref96)],
5724
+ class: ["tiny-grid-tree-wrapper", (_ref97 = {}, _ref97[map.isActive] = isActive, _ref97)],
5718
5725
  on: listeners
5719
5726
  }, iconVNode)];
5720
5727
  },
@@ -5736,7 +5743,7 @@ var Cell = {
5736
5743
  var $table = params.$table, column = params.column, row2 = params.row, seq = params.seq; params.level;
5737
5744
  var startIndex = $table.startIndex, treeConfig = $table.treeConfig, treeOrdered = $table.treeOrdered;
5738
5745
  var indexMethod = column.indexMethod, slots = column.slots;
5739
- var _ref97 = treeConfig || {}, _ref97$temporaryIndex = _ref97.temporaryIndex, temporaryIndex = _ref97$temporaryIndex === void 0 ? "_$index_" : _ref97$temporaryIndex;
5746
+ var _ref98 = treeConfig || {}, _ref98$temporaryIndex = _ref98.temporaryIndex, temporaryIndex = _ref98$temporaryIndex === void 0 ? "_$index_" : _ref98$temporaryIndex;
5740
5747
  var isTreeOrderedFalse = treeConfig && !treeOrdered;
5741
5748
  var indexValue = startIndex + seq;
5742
5749
  if (isTreeOrderedFalse) {
@@ -5757,7 +5764,7 @@ var Cell = {
5757
5764
  return [formatText(value, 1)];
5758
5765
  },
5759
5766
  renderRadioCell: function renderRadioCell(h2, params) {
5760
- var _ref98;
5767
+ var _ref99;
5761
5768
  var $table = params.$table, slots = params.column.slots, row2 = params.row;
5762
5769
  var _$table$radioConfig2 = $table.radioConfig, radioConfig = _$table$radioConfig2 === void 0 ? {} : _$table$radioConfig2, selectRow = $table.selectRow, vSize3 = $table.vSize;
5763
5770
  var labelField = radioConfig.labelField, checkMethod = radioConfig.checkMethod;
@@ -5782,7 +5789,7 @@ var Cell = {
5782
5789
  }
5783
5790
  };
5784
5791
  return [h2("label", {
5785
- class: ["tiny-grid-radio", (_ref98 = {}, _ref98["size__" + vSize3] = vSize3, _ref98["is__disabled"] = disabled, _ref98)]
5792
+ class: ["tiny-grid-radio", (_ref99 = {}, _ref99["size__" + vSize3] = vSize3, _ref99["is__disabled"] = disabled, _ref99)]
5786
5793
  }, [h2("input", options), h2("span", {
5787
5794
  class: "tiny-grid-radio__icon"
5788
5795
  }, [h2(iconRadio(), {
@@ -5797,7 +5804,7 @@ var Cell = {
5797
5804
  return Cell.renderTreeIcon(h2, params).concat(Cell.renderRadioCell(h2, params));
5798
5805
  },
5799
5806
  renderSelectionHeader: function renderSelectionHeader(h2, params) {
5800
- var _ref99;
5807
+ var _ref100;
5801
5808
  var $table = params.$table, column = params.column;
5802
5809
  var slots = column.slots, own = column.own;
5803
5810
  var headerCheckDisabled = $table.headerCheckDisabled, isAllSelected = $table.isAllSelected, isIndeterminate = $table.isIndeterminate, selectConfig = $table.selectConfig, vSize3 = $table.vSize;
@@ -5824,7 +5831,7 @@ var Cell = {
5824
5831
  }
5825
5832
  };
5826
5833
  var vnode = h2("label", {
5827
- class: ["tiny-grid-checkbox tiny-select-header", (_ref99 = {}, _ref99["size__" + vSize3] = vSize3, _ref99["is__disabled"] = headerCheckDisabled, _ref99["is__indeterminate"] = isIndeterminate, _ref99)],
5834
+ class: ["tiny-grid-checkbox tiny-select-header", (_ref100 = {}, _ref100["size__" + vSize3] = vSize3, _ref100["is__disabled"] = headerCheckDisabled, _ref100["is__indeterminate"] = isIndeterminate, _ref100)],
5828
5835
  key: random()
5829
5836
  }, [h2("input", options), h2("span", {
5830
5837
  class: "tiny-grid-checkbox__icon"
@@ -5846,12 +5853,12 @@ var Cell = {
5846
5853
  return [vnode, dropdownVnode];
5847
5854
  },
5848
5855
  renderSelectionCell: function renderSelectionCell(h2, params) {
5849
- var _ref101;
5856
+ var _ref102;
5850
5857
  var $table = params.$table, column = params.column, row2 = params.row;
5851
5858
  var slots = column.slots;
5852
5859
  var _$table$selectConfig2 = $table.selectConfig, selectConfig = _$table$selectConfig2 === void 0 ? {} : _$table$selectConfig2, treeConfig = $table.treeConfig, treeIndeterminates = $table.treeIndeterminates, vSize3 = $table.vSize;
5853
5860
  var labelField = selectConfig.labelField, checkMethod = selectConfig.checkMethod;
5854
- var _ref100 = {}, _ref100$indeterminate = _ref100.indeterminate, indeterminate = _ref100$indeterminate === void 0 ? false : _ref100$indeterminate, _ref100$isDisabled = _ref100.isDisabled, isDisabled = _ref100$isDisabled === void 0 ? !!checkMethod : _ref100$isDisabled;
5861
+ var _ref101 = {}, _ref101$indeterminate = _ref101.indeterminate, indeterminate = _ref101$indeterminate === void 0 ? false : _ref101$indeterminate, _ref101$isDisabled = _ref101.isDisabled, isDisabled = _ref101$isDisabled === void 0 ? !!checkMethod : _ref101$isDisabled;
5855
5862
  var options = {
5856
5863
  attrs: {
5857
5864
  type: "checkbox"
@@ -5866,7 +5873,7 @@ var Cell = {
5866
5873
  checked: ~$table.selection.indexOf(row2)
5867
5874
  };
5868
5875
  var twcls = params.twcls;
5869
- var labelCls = ["tiny-grid-checkbox tiny-select-cell", (_ref101 = {}, _ref101["size__" + vSize3] = vSize3, _ref101["is__indeterminate"] = indeterminate, _ref101["is__disabled"] = isDisabled, _ref101)];
5876
+ var labelCls = ["tiny-grid-checkbox tiny-select-cell", (_ref102 = {}, _ref102["size__" + vSize3] = vSize3, _ref102["is__indeterminate"] = indeterminate, _ref102["is__disabled"] = isDisabled, _ref102)];
5870
5877
  var inputCls = null;
5871
5878
  var spanCls = "tiny-grid-checkbox__icon";
5872
5879
  var svgCls = "tiny-svg-size icon-checked-sur";
@@ -5912,12 +5919,12 @@ var Cell = {
5912
5919
  },
5913
5920
  // TODO: 与renderSelectionCell代码方法高度相似,待提取公共逻辑。
5914
5921
  renderSelectionCellByProp: function renderSelectionCellByProp(h2, params) {
5915
- var _ref103;
5922
+ var _ref104;
5916
5923
  var $table = params.$table, column = params.column, row2 = params.row;
5917
5924
  var slots = column.slots;
5918
5925
  var _$table$selectConfig3 = $table.selectConfig, selectConfig = _$table$selectConfig3 === void 0 ? {} : _$table$selectConfig3, treeConfig = $table.treeConfig, treeIndeterminates = $table.treeIndeterminates, vSize3 = $table.vSize;
5919
5926
  var property = selectConfig.checkField, checkMethod = selectConfig.checkMethod, labelField = selectConfig.labelField;
5920
- var _ref102 = {}, _ref102$indeterminate = _ref102.indeterminate, indeterminate = _ref102$indeterminate === void 0 ? false : _ref102$indeterminate, _ref102$isDisabled = _ref102.isDisabled, isDisabled = _ref102$isDisabled === void 0 ? !!checkMethod : _ref102$isDisabled;
5927
+ var _ref103 = {}, _ref103$indeterminate = _ref103.indeterminate, indeterminate = _ref103$indeterminate === void 0 ? false : _ref103$indeterminate, _ref103$isDisabled = _ref103.isDisabled, isDisabled = _ref103$isDisabled === void 0 ? !!checkMethod : _ref103$isDisabled;
5921
5928
  var options = {
5922
5929
  attrs: {
5923
5930
  type: "checkbox"
@@ -5938,7 +5945,7 @@ var Cell = {
5938
5945
  };
5939
5946
  var vnode = h2("label", {
5940
5947
  key: random(),
5941
- class: ["tiny-grid-checkbox", (_ref103 = {}, _ref103["size__" + vSize3] = vSize3, _ref103["is__indeterminate"] = indeterminate, _ref103["is__disabled"] = isDisabled, _ref103)]
5948
+ class: ["tiny-grid-checkbox", (_ref104 = {}, _ref104["size__" + vSize3] = vSize3, _ref104["is__indeterminate"] = indeterminate, _ref104["is__disabled"] = isDisabled, _ref104)]
5942
5949
  }, [h2("input", options), h2("span", {
5943
5950
  class: "tiny-grid-checkbox__icon"
5944
5951
  }, [h2(iconCheck(), {
@@ -5957,7 +5964,7 @@ var Cell = {
5957
5964
  },
5958
5965
  // 展开行
5959
5966
  renderExpandCell: function renderExpandCell(h2, params) {
5960
- var _column$slots, _ref104;
5967
+ var _column$slots, _ref105;
5961
5968
  var $table = params.$table, row2 = params.row, column = params.column;
5962
5969
  var _$table$expandConfig3 = $table.expandConfig, expandConfig = _$table$expandConfig3 === void 0 ? {} : _$table$expandConfig3;
5963
5970
  var _expandConfig$showIco = expandConfig.showIcon, showIcon = _expandConfig$showIco === void 0 ? true : _expandConfig$showIco, expandMethod = expandConfig.activeMethod;
@@ -5972,7 +5979,7 @@ var Cell = {
5972
5979
  expandActive: "expand__active"
5973
5980
  };
5974
5981
  return [h2("span", {
5975
- class: ["tiny-grid__expanded", (_ref104 = {}, _ref104[map.expandActive] = expandActive, _ref104)],
5982
+ class: ["tiny-grid__expanded", (_ref105 = {}, _ref105[map.expandActive] = expandActive, _ref105)],
5976
5983
  on: {
5977
5984
  click: function click(event) {
5978
5985
  if (!hideExpand) {
@@ -6042,7 +6049,7 @@ var Cell = {
6042
6049
  return Cell.renderHeader(h2, params).concat(Cell.renderFilterIcon(h2, params, suffixCls[1]));
6043
6050
  },
6044
6051
  renderFilterIcon: function renderFilterIcon(h2, params, cls) {
6045
- var _ref105, _ref106;
6052
+ var _ref106, _ref107;
6046
6053
  if (cls === void 0) {
6047
6054
  cls = "";
6048
6055
  }
@@ -6054,9 +6061,9 @@ var Cell = {
6054
6061
  hasFilter: "has__Filter"
6055
6062
  };
6056
6063
  return [h2("span", {
6057
- class: ["tiny-grid-filter-wrapper " + cls, (_ref105 = {}, _ref105[map.isActive] = filterStore.visible && filterStore.column === column, _ref105)]
6064
+ class: ["tiny-grid-filter-wrapper " + cls, (_ref106 = {}, _ref106[map.isActive] = filterStore.visible && filterStore.column === column, _ref106)]
6058
6065
  }, [h2(icon.filter, {
6059
- class: ["tiny-svg-size tiny-grid-filter__btn " + column.id, (_ref106 = {}, _ref106[map.hasFilter] = column.filter && column.filter.hasFilter, _ref106)],
6066
+ class: ["tiny-svg-size tiny-grid-filter__btn " + column.id, (_ref107 = {}, _ref107[map.hasFilter] = column.filter && column.filter.hasFilter, _ref107)],
6060
6067
  on: {
6061
6068
  click: function click(event) {
6062
6069
  $table.triggerFilterEvent(event, params.column, params);
@@ -6213,8 +6220,8 @@ var Cell = {
6213
6220
  };
6214
6221
  var handleItemClick = function handleItemClick2(itemData) {
6215
6222
  var realName = (itemData == null ? void 0 : itemData.name) || itemData;
6216
- var buttonConfig = visibleButtons.find(function(_ref107) {
6217
- var buttonName = _ref107.name;
6223
+ var buttonConfig = visibleButtons.find(function(_ref108) {
6224
+ var buttonName = _ref108.name;
6218
6225
  return buttonName === realName;
6219
6226
  });
6220
6227
  buttonConfig.click(window.event || {}, _extends({
@@ -6268,8 +6275,10 @@ var Cell = {
6268
6275
  return renderBig(buttonConfig, viewClass);
6269
6276
  });
6270
6277
  }
6278
+ var rowKey = row2[getRowkey($table)];
6271
6279
  return [h2("span", {
6272
6280
  class: "tiny-grid__oper-col-wrapper",
6281
+ key: rowKey,
6273
6282
  attrs: {
6274
6283
  "data-tag": "operation-cell-buttons"
6275
6284
  }
@@ -6316,40 +6325,40 @@ function isTargetRadioOrCheckbox(event, column, colType, targetType) {
6316
6325
  var target = event.target;
6317
6326
  return target && column.type === colType && target.tagName.toLowerCase() === "input" && target.type === (targetType || colType);
6318
6327
  }
6319
- function onClickExpandColumn(_ref108) {
6320
- var $el = _ref108.$el, _vm = _ref108._vm, column = _ref108.column, event = _ref108.event, expandConfig = _ref108.expandConfig, params = _ref108.params;
6328
+ function onClickExpandColumn(_ref109) {
6329
+ var $el = _ref109.$el, _vm = _ref109._vm, column = _ref109.column, event = _ref109.event, expandConfig = _ref109.expandConfig, params = _ref109.params;
6321
6330
  if ((expandConfig.trigger === "row" || column.type === "expand" && expandConfig.trigger === "cell") && !_vm.getEventTargetNode(event, $el, "tiny-grid__expanded").flag) {
6322
6331
  _vm.triggerRowExpandEvent(event, params);
6323
6332
  }
6324
6333
  }
6325
- function onClickTreeNodeColumn(_ref109) {
6326
- var _vm = _ref109._vm, column = _ref109.column, event = _ref109.event, params = _ref109.params, treeConfig = _ref109.treeConfig;
6334
+ function onClickTreeNodeColumn(_ref110) {
6335
+ var _vm = _ref110._vm, column = _ref110.column, event = _ref110.event, params = _ref110.params, treeConfig = _ref110.treeConfig;
6327
6336
  if (treeConfig.trigger === "row" || column.treeNode && treeConfig.trigger === "cell") {
6328
6337
  _vm.triggerTreeExpandEvent(event, params);
6329
6338
  }
6330
6339
  }
6331
- function onHighlightCurrentRow(_ref110) {
6332
- var $el = _ref110.$el, _vm = _ref110._vm, event = _ref110.event, highlightCurrentRow = _ref110.highlightCurrentRow, params = _ref110.params, radioConfig = _ref110.radioConfig;
6340
+ function onHighlightCurrentRow(_ref111) {
6341
+ var $el = _ref111.$el, _vm = _ref111._vm, event = _ref111.event, highlightCurrentRow = _ref111.highlightCurrentRow, params = _ref111.params, radioConfig = _ref111.radioConfig;
6333
6342
  if (highlightCurrentRow) {
6334
6343
  if (radioConfig.trigger === "row" || !_vm.getEventTargetNode(event, $el, "tiny-grid-checkbox").flag && !_vm.getEventTargetNode(event, $el, "tiny-grid-radio").flag) {
6335
6344
  _vm.triggerCurrentRowEvent(event, params);
6336
6345
  }
6337
6346
  }
6338
6347
  }
6339
- function onClickRadioColumn(_ref111) {
6340
- var $el = _ref111.$el, _vm = _ref111._vm, column = _ref111.column, event = _ref111.event, params = _ref111.params, radioConfig = _ref111.radioConfig;
6348
+ function onClickRadioColumn(_ref112) {
6349
+ var $el = _ref112.$el, _vm = _ref112._vm, column = _ref112.column, event = _ref112.event, params = _ref112.params, radioConfig = _ref112.radioConfig;
6341
6350
  if ((radioConfig.trigger === "row" || column.type === "radio" && radioConfig.trigger === "cell") && !_vm.getEventTargetNode(event, $el, "tiny-grid-radio").flag) {
6342
6351
  _vm.triggerRadioRowEvent(event, params);
6343
6352
  }
6344
6353
  }
6345
- function onClickSelectColumn(_ref112) {
6346
- var _vm = _ref112._vm, column = _ref112.column, event = _ref112.event, params = _ref112.params, selectConfig = _ref112.selectConfig;
6354
+ function onClickSelectColumn(_ref113) {
6355
+ var _vm = _ref113._vm, column = _ref113.column, event = _ref113.event, params = _ref113.params, selectConfig = _ref113.selectConfig;
6347
6356
  if ((selectConfig.trigger === "row" || column.type === "selection" && selectConfig.trigger === "cell") && !_vm.getEventTargetNode(event, params.cell, "tiny-grid-checkbox").flag) {
6348
6357
  _vm.handleToggleCheckRowEvent(params, event);
6349
6358
  }
6350
6359
  }
6351
- function onClickCellSelect(_ref113) {
6352
- var _vm = _ref113._vm, actived = _ref113.actived, cell = _ref113.cell, column = _ref113.column, editConfig = _ref113.editConfig, event = _ref113.event, mouseConfig = _ref113.mouseConfig, params = _ref113.params, row2 = _ref113.row;
6360
+ function onClickCellSelect(_ref114) {
6361
+ var _vm = _ref114._vm, actived = _ref114.actived, cell = _ref114.cell, column = _ref114.column, editConfig = _ref114.editConfig, event = _ref114.event, mouseConfig = _ref114.mouseConfig, params = _ref114.params, row2 = _ref114.row;
6353
6362
  if (!mouseConfig.checked && editConfig) {
6354
6363
  if (editConfig.trigger === "manual") {
6355
6364
  if (actived.args && actived.row === row2 && column !== actived.column) {
@@ -6368,8 +6377,8 @@ function onClickCellSelect(_ref113) {
6368
6377
  }
6369
6378
  }
6370
6379
  }
6371
- function onGroupHeader(_ref114) {
6372
- var _vm = _ref114._vm, isGroup2 = _ref114.isGroup, headerProps2 = _ref114.headerProps;
6380
+ function onGroupHeader(_ref115) {
6381
+ var _vm = _ref115._vm, isGroup2 = _ref115.isGroup, headerProps2 = _ref115.headerProps;
6373
6382
  if (isGroup2) {
6374
6383
  eachTree(_vm.collectColumn, function(column) {
6375
6384
  if (column.children && column.children.length) {
@@ -6380,14 +6389,14 @@ function onGroupHeader(_ref114) {
6380
6389
  }, headerProps2);
6381
6390
  }
6382
6391
  }
6383
- function reassignNotFixed(_ref115) {
6384
- var centerList = _ref115.centerList, column = _ref115.column;
6392
+ function reassignNotFixed(_ref116) {
6393
+ var centerList = _ref116.centerList, column = _ref116.column;
6385
6394
  if (!column.fixed) {
6386
6395
  centerList.push(column);
6387
6396
  }
6388
6397
  }
6389
- function reassignFixedRight(_ref116) {
6390
- var column = _ref116.column, columnIndex = _ref116.columnIndex, isColspan = _ref116.isColspan, rightEndIndex = _ref116.rightEndIndex, rightList = _ref116.rightList;
6398
+ function reassignFixedRight(_ref117) {
6399
+ var column = _ref117.column, columnIndex = _ref117.columnIndex, isColspan = _ref117.isColspan, rightEndIndex = _ref117.rightEndIndex, rightList = _ref117.rightList;
6391
6400
  if (column.fixed === "right") {
6392
6401
  if (!isColspan) {
6393
6402
  if (rightEndIndex === null) {
@@ -6406,8 +6415,8 @@ function reassignFixedRight(_ref116) {
6406
6415
  rightEndIndex
6407
6416
  };
6408
6417
  }
6409
- function reassignFixedLeft(_ref117) {
6410
- var column = _ref117.column, columnIndex = _ref117.columnIndex, isColspan = _ref117.isColspan, leftList = _ref117.leftList, leftStartIndex = _ref117.leftStartIndex, letIndex = _ref117.letIndex;
6418
+ function reassignFixedLeft(_ref118) {
6419
+ var column = _ref118.column, columnIndex = _ref118.columnIndex, isColspan = _ref118.isColspan, leftList = _ref118.leftList, leftStartIndex = _ref118.leftStartIndex, letIndex = _ref118.letIndex;
6411
6420
  if (column.fixed === "left") {
6412
6421
  if (leftStartIndex === null) {
6413
6422
  leftStartIndex = letIndex;
@@ -6427,14 +6436,14 @@ function reassignFixedLeft(_ref117) {
6427
6436
  isColspan
6428
6437
  };
6429
6438
  }
6430
- function showGroupFixedError(_ref118) {
6431
- var isColspan = _ref118.isColspan, isGroup2 = _ref118.isGroup, leftStartIndex = _ref118.leftStartIndex, rightEndIndex = _ref118.rightEndIndex, visibleColumn = _ref118.visibleColumn;
6439
+ function showGroupFixedError(_ref119) {
6440
+ var isColspan = _ref119.isColspan, isGroup2 = _ref119.isGroup, leftStartIndex = _ref119.leftStartIndex, rightEndIndex = _ref119.rightEndIndex, visibleColumn = _ref119.visibleColumn;
6432
6441
  if (isGroup2 && (isColspan || leftStartIndex || rightEndIndex !== null && rightEndIndex !== visibleColumn.length)) {
6433
6442
  error("ui.grid.error.groupFixed");
6434
6443
  }
6435
6444
  }
6436
- function onScrollXLoad(_ref119) {
6437
- var _vm = _ref119._vm, scrollX = _ref119.scrollX, scrollXLoad = _ref119.scrollXLoad, scrollXStore = _ref119.scrollXStore, tableColumn2 = _ref119.tableColumn, visibleColumn = _ref119.visibleColumn;
6445
+ function onScrollXLoad(_ref120) {
6446
+ var _vm = _ref120._vm, scrollX = _ref120.scrollX, scrollXLoad = _ref120.scrollXLoad, scrollXStore = _ref120.scrollXStore, tableColumn2 = _ref120.tableColumn, visibleColumn = _ref120.visibleColumn;
6438
6447
  if (scrollXLoad) {
6439
6448
  if (_vm.resizable || visibleColumn.some(function(column) {
6440
6449
  return column.resizable;
@@ -6453,10 +6462,10 @@ function onScrollXLoad(_ref119) {
6453
6462
  }
6454
6463
  return tableColumn2;
6455
6464
  }
6456
- function mapFetchColumnPromise(_ref120) {
6457
- var _vm = _ref120._vm, fetchColumns = _ref120.fetchColumns, tableColumn2 = _ref120.tableColumn;
6458
- return fetchColumns.map(function(_ref121) {
6459
- var format = _ref121.format, columnValues = _ref121.columnValues;
6465
+ function mapFetchColumnPromise(_ref121) {
6466
+ var _vm = _ref121._vm, fetchColumns = _ref121.fetchColumns, tableColumn2 = _ref121.tableColumn;
6467
+ return fetchColumns.map(function(_ref122) {
6468
+ var format = _ref122.format, columnValues = _ref122.columnValues;
6460
6469
  return format.async.fetch({
6461
6470
  columns: tableColumn2,
6462
6471
  columnValues,
@@ -6464,8 +6473,8 @@ function mapFetchColumnPromise(_ref120) {
6464
6473
  });
6465
6474
  });
6466
6475
  }
6467
- function preprocessDataObjectFormat(_ref122) {
6468
- var columnCount = _ref122.columnCount, columnValues = _ref122.columnValues, columnValuesMap = _ref122.columnValuesMap, fields = _ref122.fields;
6476
+ function preprocessDataObjectFormat(_ref123) {
6477
+ var columnCount = _ref123.columnCount, columnValues = _ref123.columnValues, columnValuesMap = _ref123.columnValuesMap, fields = _ref123.fields;
6469
6478
  if (columnCount) {
6470
6479
  columnValues.forEach(function(col) {
6471
6480
  if (typeof col === "object") {
@@ -6477,8 +6486,8 @@ function preprocessDataObjectFormat(_ref122) {
6477
6486
  });
6478
6487
  }
6479
6488
  }
6480
- function preventDupRender(_ref123) {
6481
- var asyncColumnName = _ref123.asyncColumnName, cellTexts = _ref123.cellTexts, cellValuesCount = _ref123.cellValuesCount, columnData = _ref123.columnData, columnValuesMap = _ref123.columnValuesMap, isRender = _ref123.isRender, property = _ref123.property, renderCount = _ref123.renderCount, row2 = _ref123.row, splitConfig = _ref123.splitConfig;
6489
+ function preventDupRender(_ref124) {
6490
+ var asyncColumnName = _ref124.asyncColumnName, cellTexts = _ref124.cellTexts, cellValuesCount = _ref124.cellValuesCount, columnData = _ref124.columnData, columnValuesMap = _ref124.columnValuesMap, isRender = _ref124.isRender, property = _ref124.property, renderCount = _ref124.renderCount, row2 = _ref124.row, splitConfig = _ref124.splitConfig;
6482
6491
  var cellEachIndex = 0;
6483
6492
  if (!isRender && cellValuesCount) {
6484
6493
  var cellLabel;
@@ -6503,8 +6512,8 @@ function preventDupRender(_ref123) {
6503
6512
  }
6504
6513
  return renderCount;
6505
6514
  }
6506
- function handleResolveColumnComplete(_ref124) {
6507
- var _vm = _ref124._vm, columnData = _ref124.columnData, complete = _ref124.complete;
6515
+ function handleResolveColumnComplete(_ref125) {
6516
+ var _vm = _ref125._vm, columnData = _ref125.columnData, complete = _ref125.complete;
6508
6517
  if (typeof complete === "function") {
6509
6518
  complete({
6510
6519
  columnData,
@@ -6513,8 +6522,8 @@ function handleResolveColumnComplete(_ref124) {
6513
6522
  }
6514
6523
  }
6515
6524
  var isWebkit = browserInfo["-webkit"];
6516
- function computeScrollYLoad(_ref125) {
6517
- var _vm = _ref125._vm, scrollLoad = _ref125.scrollLoad, scrollY = _ref125.scrollY, scrollYLoad = _ref125.scrollYLoad, scrollYStore = _ref125.scrollYStore, tableBodyElem = _ref125.tableBodyElem;
6525
+ function computeScrollYLoad(_ref126) {
6526
+ var _vm = _ref126._vm, scrollLoad = _ref126.scrollLoad, scrollY = _ref126.scrollY, scrollYLoad = _ref126.scrollYLoad, scrollYStore = _ref126.scrollYStore, tableBodyElem = _ref126.tableBodyElem;
6518
6527
  if (scrollYLoad || scrollLoad) {
6519
6528
  scrollYStore.rowHeight = _vm.rowHeight;
6520
6529
  }
@@ -6534,8 +6543,8 @@ function computeScrollYLoad(_ref125) {
6534
6543
  _vm.updateScrollYSpace();
6535
6544
  }
6536
6545
  }
6537
- function computeScrollXLoad(_ref126) {
6538
- var _vm = _ref126._vm, scrollX = _ref126.scrollX, scrollXLoad = _ref126.scrollXLoad, scrollXStore = _ref126.scrollXStore, tableBodyElem = _ref126.tableBodyElem, visibleColumn = _ref126.visibleColumn;
6546
+ function computeScrollXLoad(_ref127) {
6547
+ var _vm = _ref127._vm, scrollX = _ref127.scrollX, scrollXLoad = _ref127.scrollXLoad, scrollXStore = _ref127.scrollXStore, tableBodyElem = _ref127.tableBodyElem, visibleColumn = _ref127.visibleColumn;
6539
6548
  if (scrollXLoad) {
6540
6549
  var clientWidth = tableBodyElem.clientWidth;
6541
6550
  var width = 0;
@@ -6575,16 +6584,17 @@ var calcTableWidth = function calcTableWidth2($table) {
6575
6584
  var pxArr = columnStore.pxList, scaleArr = columnStore.scaleList, pxMinArr = columnStore.pxMinList, scaleMinArr = columnStore.scaleMinList, autoArr = columnStore.autoList, resizeArr = columnStore.resizeList;
6576
6585
  var remainWidth = clientWidth;
6577
6586
  var totalWidth = 0;
6578
- pxMinArr.forEach(function(column) {
6587
+ var minArr = new Array(pxMinArr.length + scaleMinArr.length);
6588
+ pxMinArr.forEach(function(column, index2) {
6579
6589
  var width = parseInt(column.minWidth);
6580
6590
  totalWidth += width;
6581
- column.renderWidth = width;
6591
+ minArr[index2 + scaleMinArr.length] = width;
6582
6592
  });
6583
6593
  var meanWidth = remainWidth / 100;
6584
- scaleMinArr.forEach(function(column) {
6594
+ scaleMinArr.forEach(function(column, index2) {
6585
6595
  var width = Math.floor(parseInt(column.minWidth) * meanWidth);
6586
6596
  totalWidth += width;
6587
- column.renderWidth = width;
6597
+ minArr[index2] = width;
6588
6598
  });
6589
6599
  scaleArr.forEach(function(column) {
6590
6600
  var width = Math.floor(parseInt(column.width) * meanWidth);
@@ -6605,9 +6615,9 @@ var calcTableWidth = function calcTableWidth2($table) {
6605
6615
  meanWidth = remainWidth > 0 ? Math.floor(remainWidth / (scaleMinArr.length + pxMinArr.length + autoArr.length)) : 0;
6606
6616
  if (fit) {
6607
6617
  if (remainWidth > 0) {
6608
- scaleMinArr.concat(pxMinArr).forEach(function(column) {
6618
+ scaleMinArr.concat(pxMinArr).forEach(function(column, index2) {
6609
6619
  totalWidth += meanWidth;
6610
- column.renderWidth += meanWidth;
6620
+ minArr[index2] += meanWidth;
6611
6621
  });
6612
6622
  }
6613
6623
  } else {
@@ -6615,23 +6625,27 @@ var calcTableWidth = function calcTableWidth2($table) {
6615
6625
  }
6616
6626
  autoArr.forEach(function(column, index2) {
6617
6627
  var width = Math.max(meanWidth, minCellWidth);
6618
- column.renderWidth = width;
6628
+ var renderWidth = width;
6619
6629
  totalWidth += width;
6620
6630
  if (fit && index2 === autoArr.length - 1) {
6621
6631
  var odiffer = clientWidth - totalWidth;
6622
6632
  if (odiffer > 0) {
6623
- column.renderWidth += odiffer;
6633
+ renderWidth += odiffer;
6624
6634
  totalWidth = clientWidth;
6625
6635
  }
6626
6636
  }
6637
+ column.renderWidth = renderWidth;
6627
6638
  });
6628
6639
  var remainingSpace = bodyWidth - totalWidth;
6629
6640
  if (fit && remainingSpace > 0) {
6630
- scaleMinArr.concat(pxMinArr).slice(0, remainingSpace).forEach(function(column) {
6641
+ scaleMinArr.concat(pxMinArr).slice(0, remainingSpace).forEach(function(column, index2) {
6631
6642
  totalWidth += 1;
6632
- column.renderWidth += 1;
6643
+ minArr[index2] += 1;
6633
6644
  });
6634
6645
  }
6646
+ scaleMinArr.concat(pxMinArr).forEach(function(column, index2) {
6647
+ column.renderWidth = minArr[index2];
6648
+ });
6635
6649
  return {
6636
6650
  totalWidth,
6637
6651
  offsetWidth,
@@ -6641,8 +6655,8 @@ var calcTableWidth = function calcTableWidth2($table) {
6641
6655
  function calcFixedDetails(_vm) {
6642
6656
  var collectColumn2 = _vm.collectColumn, visibleColumn = _vm.visibleColumn, columnStore = _vm.columnStore, isGroup2 = _vm.isGroup;
6643
6657
  var leftList = columnStore.leftList, rightList = columnStore.rightList;
6644
- visibleColumn.forEach(function(_ref127) {
6645
- var fixedDetails = _ref127.fixedDetails;
6658
+ visibleColumn.forEach(function(_ref128) {
6659
+ var fixedDetails = _ref128.fixedDetails;
6646
6660
  if (fixedDetails) {
6647
6661
  fixedDetails.isLeftLast = false;
6648
6662
  fixedDetails.isRightFirst = false;
@@ -6653,8 +6667,8 @@ function calcFixedDetails(_vm) {
6653
6667
  var length = leftList.length;
6654
6668
  var value = 0;
6655
6669
  if (Array.isArray(leftList) && length > 0) {
6656
- leftList.forEach(function(_ref128, i) {
6657
- var fixedDetails = _ref128.fixedDetails, renderWidth = _ref128.renderWidth;
6670
+ leftList.forEach(function(_ref129, i) {
6671
+ var fixedDetails = _ref129.fixedDetails, renderWidth = _ref129.renderWidth;
6658
6672
  fixedDetails.isLeftLast = i === length - 1;
6659
6673
  fixedDetails.left = value;
6660
6674
  value += renderWidth;
@@ -6664,8 +6678,8 @@ function calcFixedDetails(_vm) {
6664
6678
  value = 0;
6665
6679
  if (Array.isArray(rightList) && length > 0) {
6666
6680
  var reversed = [].concat(rightList).reverse();
6667
- reversed.forEach(function(_ref129, i) {
6668
- var fixedDetails = _ref129.fixedDetails, renderWidth = _ref129.renderWidth;
6681
+ reversed.forEach(function(_ref130, i) {
6682
+ var fixedDetails = _ref130.fixedDetails, renderWidth = _ref130.renderWidth;
6669
6683
  fixedDetails.isRightFirst = i === length - 1;
6670
6684
  fixedDetails.right = value;
6671
6685
  value += renderWidth;
@@ -6737,10 +6751,10 @@ var headerProps = {
6737
6751
  };
6738
6752
  var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6739
6753
  var startIndex = opt.startIndex, fetchColumns = opt.fetchColumns, tableData = opt.tableData, asyncRenderMap = opt.asyncRenderMap, isScrollLoad = opt.isScrollLoad;
6740
- return function(data6) {
6741
- if (data6.length) {
6754
+ return function(data7) {
6755
+ if (data7.length) {
6742
6756
  ctx._isUpdateData = true;
6743
- data6.forEach(function(item, i) {
6757
+ data7.forEach(function(item, i) {
6744
6758
  var columnValues = [];
6745
6759
  var columnValuesMap = {};
6746
6760
  var k = startIndex;
@@ -6748,7 +6762,7 @@ var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6748
6762
  var columnCount = 0;
6749
6763
  var columnData = [];
6750
6764
  var _fetchColumns$i = fetchColumns[i], _fetchColumns$i$forma = _fetchColumns$i.format, format = _fetchColumns$i$forma === void 0 ? {} : _fetchColumns$i$forma, property = _fetchColumns$i.property;
6751
- var _ref130 = format.async || {}, _ref130$splitConfig = _ref130.splitConfig, splitConfig = _ref130$splitConfig === void 0 ? {} : _ref130$splitConfig, _ref130$fields = _ref130.fields, fields = _ref130$fields === void 0 ? {} : _ref130$fields, complete = _ref130.complete;
6765
+ var _ref131 = format.async || {}, _ref131$splitConfig = _ref131.splitConfig, splitConfig = _ref131$splitConfig === void 0 ? {} : _ref131$splitConfig, _ref131$fields = _ref131.fields, fields = _ref131$fields === void 0 ? {} : _ref131$fields, complete = _ref131.complete;
6752
6766
  columnValues = isArray(item) ? item : get(item, fields.data || "values");
6753
6767
  columnCount = columnValues.length;
6754
6768
  preprocessDataObjectFormat({
@@ -6799,8 +6813,8 @@ var handleAllColumnPromises = function handleAllColumnPromises2(opt, ctx) {
6799
6813
  }
6800
6814
  };
6801
6815
  };
6802
- function handleGlobalMousedownOnFilterWrapper(_ref131) {
6803
- var $el = _ref131.$el, _vm = _ref131._vm, event = _ref131.event, filterStore = _ref131.filterStore, filterWrapper = _ref131.filterWrapper;
6816
+ function handleGlobalMousedownOnFilterWrapper(_ref132) {
6817
+ var $el = _ref132.$el, _vm = _ref132._vm, event = _ref132.event, filterStore = _ref132.filterStore, filterWrapper = _ref132.filterWrapper;
6804
6818
  if (filterWrapper) {
6805
6819
  if (_vm.getEventTargetNode(event, $el, "tiny-grid-filter-wrapper").flag) ;
6806
6820
  else if (_vm.getEventTargetNode(event, filterWrapper.$el).flag) ;
@@ -6811,14 +6825,14 @@ function handleGlobalMousedownOnFilterWrapper(_ref131) {
6811
6825
  }
6812
6826
  }
6813
6827
  }
6814
- function handleGlobalMousedownOnCtxMenu(_ref132) {
6815
- var _vm = _ref132._vm, ctxMenuStore = _ref132.ctxMenuStore, event = _ref132.event;
6828
+ function handleGlobalMousedownOnCtxMenu(_ref133) {
6829
+ var _vm = _ref133._vm, ctxMenuStore = _ref133.ctxMenuStore, event = _ref133.event;
6816
6830
  if (ctxMenuStore.visible && _vm.$refs.ctxWrapper && !_vm.getEventTargetNode(event, _vm.$refs.ctxWrapper.$el).flag) {
6817
6831
  _vm.closeMenu();
6818
6832
  }
6819
6833
  }
6820
- function handleGlobalBlurOutside(_ref133) {
6821
- var _vm = _ref133._vm, actived = _ref133.actived, event = _ref133.event;
6834
+ function handleGlobalBlurOutside(_ref134) {
6835
+ var _vm = _ref134._vm, actived = _ref134.actived, event = _ref134.event;
6822
6836
  var custblur = _vm.blurOutside(actived, event);
6823
6837
  if (typeof custblur === "boolean") {
6824
6838
  custblur || setTimeout(function() {
@@ -6828,8 +6842,8 @@ function handleGlobalBlurOutside(_ref133) {
6828
6842
  }
6829
6843
  return false;
6830
6844
  }
6831
- function handleGlobalIsClear(_ref134) {
6832
- var $el = _ref134.$el, _vm = _ref134._vm, actived = _ref134.actived, editConfig = _ref134.editConfig, event = _ref134.event, isClear = _ref134.isClear, isReadonlyCol = _ref134.isReadonlyCol;
6845
+ function handleGlobalIsClear(_ref135) {
6846
+ var $el = _ref135.$el, _vm = _ref135._vm, actived = _ref135.actived, editConfig = _ref135.editConfig, event = _ref135.event, isClear = _ref135.isClear, isReadonlyCol = _ref135.isReadonlyCol;
6833
6847
  if (editConfig.mode === "row") {
6834
6848
  var rowNode = _vm.getEventTargetNode(event, $el, "tiny-grid-body__row");
6835
6849
  var isOtherRow = rowNode.flag ? rowNode.targetElem !== actived.args.cell.parentNode : 0;
@@ -6843,11 +6857,12 @@ function handleGlobalIsClear(_ref134) {
6843
6857
  }
6844
6858
  return isClear;
6845
6859
  }
6846
- function handleGlobalClearActived(_ref135) {
6860
+ function handleGlobalClearActived(_ref136) {
6847
6861
  var _vm$$refs$tableBody;
6848
- var $el = _ref135.$el, _vm = _ref135._vm, event = _ref135.event, isClear = _ref135.isClear;
6862
+ var $el = _ref136.$el, _vm = _ref136._vm, event = _ref136.event, isClear = _ref136.isClear;
6849
6863
  var tableContent = (_vm$$refs$tableBody = _vm.$refs.tableBody) == null ? void 0 : _vm$$refs$tableBody.$refs.table;
6850
- if (isClear || !_vm.getEventTargetNode(event, $el).flag || _vm.$refs.tableHeader && _vm.$refs.tableHeader.$el.contains(event.target) || tableContent && !tableContent.contains(event.target)) {
6864
+ var actualTarget = getActualTarget(event);
6865
+ if (isClear || !_vm.getEventTargetNode(event, $el).flag || _vm.$refs.tableHeader && _vm.$refs.tableHeader.$el.contains(actualTarget) || tableContent && !tableContent.contains(actualTarget)) {
6851
6866
  setTimeout(function() {
6852
6867
  return _vm.clearActived(event);
6853
6868
  });
@@ -6856,8 +6871,8 @@ function handleGlobalClearActived(_ref135) {
6856
6871
  function checkOtherKey(keyCode) {
6857
6872
  return keyCode >= 48 && keyCode <= 57 || keyCode >= 65 && keyCode <= 90 || keyCode >= 96 && keyCode <= 111 || keyCode >= 186 && keyCode <= 192 || keyCode >= 219 && keyCode <= 222 || keyCode === 32;
6858
6873
  }
6859
- function rule1(_ref136) {
6860
- var isKeyEsc = _ref136.isKeyEsc, _vm = _ref136._vm, event = _ref136.event, actived = _ref136.actived, mouseConfig = _ref136.mouseConfig;
6874
+ function rule1(_ref137) {
6875
+ var isKeyEsc = _ref137.isKeyEsc, _vm = _ref137._vm, event = _ref137.event, actived = _ref137.actived, mouseConfig = _ref137.mouseConfig;
6861
6876
  return {
6862
6877
  match: function match() {
6863
6878
  return isKeyEsc;
@@ -6871,8 +6886,8 @@ function rule1(_ref136) {
6871
6886
  }
6872
6887
  };
6873
6888
  }
6874
- function rule2(_ref137) {
6875
- var isKeySpacebar = _ref137.isKeySpacebar, keyboardConfig = _ref137.keyboardConfig, selected = _ref137.selected, _vm = _ref137._vm, event = _ref137.event;
6889
+ function rule2(_ref138) {
6890
+ var isKeySpacebar = _ref138.isKeySpacebar, keyboardConfig = _ref138.keyboardConfig, selected = _ref138.selected, _vm = _ref138._vm, event = _ref138.event;
6876
6891
  return {
6877
6892
  match: function match() {
6878
6893
  return isKeySpacebar && (keyboardConfig.isArrow || keyboardConfig.isTab) && selected.row && selected.column && (selected.column.type === "selection" || selected.column.type === "radio");
@@ -6902,8 +6917,8 @@ function rule3(args) {
6902
6917
  }
6903
6918
  };
6904
6919
  }
6905
- function rule4(_ref138) {
6906
- var isOperCtxMenu = _ref138.isOperCtxMenu, _vm = _ref138._vm, event = _ref138.event;
6920
+ function rule4(_ref139) {
6921
+ var isOperCtxMenu = _ref139.isOperCtxMenu, _vm = _ref139._vm, event = _ref139.event;
6907
6922
  return {
6908
6923
  match: function match() {
6909
6924
  return isOperCtxMenu;
@@ -6915,8 +6930,8 @@ function rule4(_ref138) {
6915
6930
  }
6916
6931
  };
6917
6932
  }
6918
- function rule5(_ref139) {
6919
- var isKeyF2 = _ref139.isKeyF2, _vm = _ref139._vm, event = _ref139.event, selected = _ref139.selected;
6933
+ function rule5(_ref140) {
6934
+ var isKeyF2 = _ref140.isKeyF2, _vm = _ref140._vm, event = _ref140.event, selected = _ref140.selected;
6920
6935
  return {
6921
6936
  match: function match() {
6922
6937
  return isKeyF2;
@@ -6929,8 +6944,8 @@ function rule5(_ref139) {
6929
6944
  }
6930
6945
  };
6931
6946
  }
6932
- function rule6(_ref140) {
6933
- var isOperArrowKeys = _ref140.isOperArrowKeys, keyboardConfig = _ref140.keyboardConfig, _vm = _ref140._vm, event = _ref140.event, selected = _ref140.selected;
6947
+ function rule6(_ref141) {
6948
+ var isOperArrowKeys = _ref141.isOperArrowKeys, keyboardConfig = _ref141.keyboardConfig, _vm = _ref141._vm, event = _ref141.event, selected = _ref141.selected;
6934
6949
  return {
6935
6950
  match: function match() {
6936
6951
  return isOperArrowKeys && keyboardConfig.isArrow;
@@ -6943,8 +6958,8 @@ function rule6(_ref140) {
6943
6958
  }
6944
6959
  };
6945
6960
  }
6946
- function rule7(_ref141) {
6947
- var isKeyTab = _ref141.isKeyTab, keyboardConfig = _ref141.keyboardConfig, _vm = _ref141._vm, event = _ref141.event, selected = _ref141.selected, actived = _ref141.actived;
6961
+ function rule7(_ref142) {
6962
+ var isKeyTab = _ref142.isKeyTab, keyboardConfig = _ref142.keyboardConfig, _vm = _ref142._vm, event = _ref142.event, selected = _ref142.selected, actived = _ref142.actived;
6948
6963
  return {
6949
6964
  match: function match() {
6950
6965
  return isKeyTab && keyboardConfig.isTab;
@@ -6973,8 +6988,8 @@ function rule8(args) {
6973
6988
  }
6974
6989
  };
6975
6990
  }
6976
- function rule9(_ref142) {
6977
- var keyboardConfig = _ref142.keyboardConfig, isKeyWithCtrl = _ref142.isKeyWithCtrl, isKeyA = _ref142.isKeyA, isKeyX = _ref142.isKeyX, isKeyC = _ref142.isKeyC, isKeyV = _ref142.isKeyV, _vm = _ref142._vm, event = _ref142.event;
6991
+ function rule9(_ref143) {
6992
+ var keyboardConfig = _ref143.keyboardConfig, isKeyWithCtrl = _ref143.isKeyWithCtrl, isKeyA = _ref143.isKeyA, isKeyX = _ref143.isKeyX, isKeyC = _ref143.isKeyC, isKeyV = _ref143.isKeyV, _vm = _ref143._vm, event = _ref143.event;
6978
6993
  return {
6979
6994
  match: function match() {
6980
6995
  return keyboardConfig.isCut && isKeyWithCtrl && (isKeyA || isKeyX || isKeyC || isKeyV);
@@ -6986,8 +7001,8 @@ function rule9(_ref142) {
6986
7001
  }
6987
7002
  };
6988
7003
  }
6989
- function rule10(_ref143) {
6990
- var keyboardConfig = _ref143.keyboardConfig, isKeyWithCtrl = _ref143.isKeyWithCtrl, _vm = _ref143._vm, event = _ref143.event, selected = _ref143.selected, actived = _ref143.actived;
7004
+ function rule10(_ref144) {
7005
+ var keyboardConfig = _ref144.keyboardConfig, isKeyWithCtrl = _ref144.isKeyWithCtrl, _vm = _ref144._vm, event = _ref144.event, selected = _ref144.selected, actived = _ref144.actived;
6991
7006
  return {
6992
7007
  match: function match() {
6993
7008
  return keyboardConfig.isEdit && !isKeyWithCtrl && !(selected.row === actived.row && selected.column === actived.column);
@@ -7180,9 +7195,9 @@ function handleGlobalMousewheelEvent(event) {
7180
7195
  this.clostTooltip();
7181
7196
  this.closeMenu();
7182
7197
  }
7183
- function handleEscKeyDown(_ref144) {
7198
+ function handleEscKeyDown(_ref145) {
7184
7199
  var _this10 = this;
7185
- var event = _ref144.event, actived = _ref144.actived, mouseConfig = _ref144.mouseConfig;
7200
+ var event = _ref145.event, actived = _ref145.actived, mouseConfig = _ref145.mouseConfig;
7186
7201
  this.closeMenu();
7187
7202
  this.closeFilter();
7188
7203
  if (actived.row) {
@@ -7194,9 +7209,9 @@ function handleEscKeyDown(_ref144) {
7194
7209
  }
7195
7210
  }
7196
7211
  }
7197
- function handleEnterKeyDown(_ref145) {
7212
+ function handleEnterKeyDown(_ref146) {
7198
7213
  var _this11 = this;
7199
- var event = _ref145.event, selected = _ref145.selected, actived = _ref145.actived;
7214
+ var event = _ref146.event, selected = _ref146.selected, actived = _ref146.actived;
7200
7215
  var highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow, treeConfig = this.treeConfig;
7201
7216
  var isLeftArrow = event.keyCode === 37;
7202
7217
  var isUpArrow = event.keyCode === 38;
@@ -7226,8 +7241,8 @@ function handleEnterKeyDown(_ref145) {
7226
7241
  }
7227
7242
  }
7228
7243
  }
7229
- function handleCtxMenu(_ref146) {
7230
- var event = _ref146.event;
7244
+ function handleCtxMenu(_ref147) {
7245
+ var event = _ref147.event;
7231
7246
  var ctxMenuStore = this.ctxMenuStore;
7232
7247
  event.preventDefault();
7233
7248
  if (ctxMenuStore.showChild && hasChildrenList(ctxMenuStore.selected)) {
@@ -7252,8 +7267,8 @@ function handleCtxMenu(_ref146) {
7252
7267
  });
7253
7268
  }
7254
7269
  }
7255
- function handleArrowKeyDown(_ref147) {
7256
- var event = _ref147.event, selected = _ref147.selected;
7270
+ function handleArrowKeyDown(_ref148) {
7271
+ var event = _ref148.event, selected = _ref148.selected;
7257
7272
  var highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow;
7258
7273
  var isLeftArrow = event.keyCode === 37;
7259
7274
  var isUpArrow = event.keyCode === 38;
@@ -7272,9 +7287,9 @@ function handleArrowKeyDown(_ref147) {
7272
7287
  this.moveCurrentRow(isUpArrow, isDownArrow, event);
7273
7288
  }
7274
7289
  }
7275
- function handleDelKeyDown(_ref148) {
7290
+ function handleDelKeyDown(_ref149) {
7276
7291
  var _this12 = this;
7277
- var event = _ref148.event, selected = _ref148.selected;
7292
+ var event = _ref149.event, selected = _ref149.selected;
7278
7293
  var _this$keyboardConfig = this.keyboardConfig, keyboardConfig = _this$keyboardConfig === void 0 ? {} : _this$keyboardConfig, treeConfig = this.treeConfig, highlightCurrentRow = this.highlightCurrentRow, currentRow = this.currentRow;
7279
7294
  var isBack = event.keyCode === 8;
7280
7295
  if (keyboardConfig.isDel && (selected.row || selected.column)) {
@@ -7299,8 +7314,8 @@ function handleDelKeyDown(_ref148) {
7299
7314
  }
7300
7315
  }
7301
7316
  }
7302
- function handleSpaceKeyDown(_ref149) {
7303
- var event = _ref149.event, selected = _ref149.selected;
7317
+ function handleSpaceKeyDown(_ref150) {
7318
+ var event = _ref150.event, selected = _ref150.selected;
7304
7319
  event.preventDefault();
7305
7320
  if (selected.column.type === "selection") {
7306
7321
  this.handleToggleCheckRowEvent(selected.args, event);
@@ -7308,8 +7323,8 @@ function handleSpaceKeyDown(_ref149) {
7308
7323
  this.triggerRadioRowEvent(event, selected.args);
7309
7324
  }
7310
7325
  }
7311
- function handleTabKeyDown(_ref150) {
7312
- var event = _ref150.event, selected = _ref150.selected, actived = _ref150.actived;
7326
+ function handleTabKeyDown(_ref151) {
7327
+ var event = _ref151.event, selected = _ref151.selected, actived = _ref151.actived;
7313
7328
  var isShiftKey = event.shiftKey;
7314
7329
  var useTab = this.editConfig.useTab;
7315
7330
  if (selected.row || selected.column) {
@@ -7318,8 +7333,8 @@ function handleTabKeyDown(_ref150) {
7318
7333
  this.moveTabSelected(actived.args, isShiftKey, event, useTab);
7319
7334
  }
7320
7335
  }
7321
- function handleCopyKeyDown(_ref151) {
7322
- var event = _ref151.event;
7336
+ function handleCopyKeyDown(_ref152) {
7337
+ var event = _ref152.event;
7323
7338
  if (event.keyCode === 65) {
7324
7339
  this.handleAllChecked(event);
7325
7340
  } else if (event.keyCode === 88 || event.keyCode === 67) {
@@ -7328,15 +7343,15 @@ function handleCopyKeyDown(_ref151) {
7328
7343
  this.handlePaste(event);
7329
7344
  }
7330
7345
  }
7331
- function handleF2KeyDown(_ref152) {
7332
- var event = _ref152.event, selected = _ref152.selected;
7346
+ function handleF2KeyDown(_ref153) {
7347
+ var event = _ref153.event, selected = _ref153.selected;
7333
7348
  if (selected.row && selected.column) {
7334
7349
  event.preventDefault();
7335
7350
  this.handleActived(selected.args, event);
7336
7351
  }
7337
7352
  }
7338
- function handleOtherKeyDown(_ref153) {
7339
- var event = _ref153.event, selected = _ref153.selected;
7353
+ function handleOtherKeyDown(_ref154) {
7354
+ var event = _ref154.event, selected = _ref154.selected;
7340
7355
  var _this$keyboardConfig2 = this.keyboardConfig, keyboardConfig = _this$keyboardConfig2 === void 0 ? {} : _this$keyboardConfig2;
7341
7356
  var keyCode = event.keyCode;
7342
7357
  var isOtherKey = checkOtherKey(keyCode);
@@ -7457,12 +7472,12 @@ var Methods$d = {
7457
7472
  }
7458
7473
  return this.clearActived();
7459
7474
  },
7460
- refreshData: function refreshData(data6) {
7475
+ refreshData: function refreshData(data7) {
7461
7476
  var _this15 = this;
7462
7477
  var next = function next2() {
7463
7478
  _this15.tableData = [];
7464
7479
  _this15.cellStatus.clear();
7465
- return _this15.loadTableData(data6 || _this15.tableFullData);
7480
+ return _this15.loadTableData(data7 || _this15.tableFullData);
7466
7481
  };
7467
7482
  return this.$nextTick().then(next);
7468
7483
  },
@@ -7491,7 +7506,7 @@ var Methods$d = {
7491
7506
  // 处理表格数据(过滤,排序,虚拟滚动需要渲染数据的条数)
7492
7507
  handleTableData: function handleTableData(force) {
7493
7508
  var _this$tableFullColumn, _this$tableFullColumn2;
7494
- if (force && ((_this$tableFullColumn = this.tableFullColumn) == null ? void 0 : _this$tableFullColumn.length) > 0) {
7509
+ if (force && (((_this$tableFullColumn = this.tableFullColumn) == null ? void 0 : _this$tableFullColumn.length) > 0 || this.viewType !== GlobalConfig$1.viewConfig.DEFAULT)) {
7495
7510
  this.updateAfterFullData();
7496
7511
  this.updateSelectionStatus();
7497
7512
  this.handleSelectionHeader();
@@ -7570,7 +7585,7 @@ var Methods$d = {
7570
7585
  },
7571
7586
  reloadRow: function reloadRow(row2, record, field) {
7572
7587
  var tableData = this.tableData, treeConfig = this.treeConfig, treeOrdered = this.treeOrdered;
7573
- var _ref154 = treeConfig || {}, childrenKey = _ref154.children, _ref154$temporaryInde = _ref154.temporaryIndex, temporaryIndex = _ref154$temporaryInde === void 0 ? "_$index_" : _ref154$temporaryInde;
7588
+ var _ref155 = treeConfig || {}, childrenKey = _ref155.children, _ref155$temporaryInde = _ref155.temporaryIndex, temporaryIndex = _ref155$temporaryInde === void 0 ? "_$index_" : _ref155$temporaryInde;
7574
7589
  var rowKey = getRowkey(this);
7575
7590
  var originRow = this.getOriginRow(row2);
7576
7591
  var hasSrc = originRow && row2;
@@ -7579,7 +7594,7 @@ var Methods$d = {
7579
7594
  set(originRow, field, get(record || row2, field));
7580
7595
  }
7581
7596
  if (hasSrcNoField && record) {
7582
- var _extends4, _ref155;
7597
+ var _extends4, _ref156;
7583
7598
  var backupRow = this.defineField(_extends({}, record, (_extends4 = {}, _extends4[rowKey] = originRow[rowKey], _extends4)));
7584
7599
  var rowChildren, clonedRow;
7585
7600
  if (treeConfig) {
@@ -7595,7 +7610,7 @@ var Methods$d = {
7595
7610
  }
7596
7611
  this.setOriginRow(row2, backupRow);
7597
7612
  clear(row2, void 0);
7598
- Object.assign(row2, clonedRow, treeConfig ? (_ref155 = {}, _ref155[childrenKey] = rowChildren, _ref155) : null);
7613
+ Object.assign(row2, clonedRow, treeConfig ? (_ref156 = {}, _ref156[childrenKey] = rowChildren, _ref156) : null);
7599
7614
  this.updateCache();
7600
7615
  }
7601
7616
  if (hasSrcNoField && !record) {
@@ -7641,7 +7656,7 @@ var Methods$d = {
7641
7656
  }
7642
7657
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig, treeOrdered = this.treeOrdered;
7643
7658
  var rowKey = getRowkey(this);
7644
- var _ref156 = treeConfig || {}, childrenKey = _ref156.children, _ref156$temporaryInde = _ref156.temporaryIndex, temporaryIndex = _ref156$temporaryInde === void 0 ? "_$index_" : _ref156$temporaryInde;
7659
+ var _ref157 = treeConfig || {}, childrenKey = _ref157.children, _ref157$temporaryInde = _ref157.temporaryIndex, temporaryIndex = _ref157$temporaryInde === void 0 ? "_$index_" : _ref157$temporaryInde;
7645
7660
  var isTreeOrderedFalse = treeConfig && !treeOrdered;
7646
7661
  var backupMap = /* @__PURE__ */ new WeakMap();
7647
7662
  this.fullDataRowIdData = {};
@@ -7660,7 +7675,7 @@ var Methods$d = {
7660
7675
  _this22.fullDataRowIdData[rowId] = rowCache;
7661
7676
  _this22.fullDataRowMap.set(hooks.toRaw(row2), rowCache);
7662
7677
  if (backup) {
7663
- var _ref157;
7678
+ var _ref158;
7664
7679
  if (isTreeOrderedFalse) {
7665
7680
  var parentIndex;
7666
7681
  if (parent) {
@@ -7668,7 +7683,7 @@ var Methods$d = {
7668
7683
  }
7669
7684
  set(row2, temporaryIndex, (parentIndex ? parentIndex + "." : "") + (index2 + 1));
7670
7685
  }
7671
- var childrenField = treeConfig ? (_ref157 = {}, _ref157[childrenKey] = void 0, _ref157) : {};
7686
+ var childrenField = treeConfig ? (_ref158 = {}, _ref158[childrenKey] = void 0, _ref158) : {};
7672
7687
  var backupRow = deepCopy ? clone(_extends({}, row2, childrenField), true) : _extends({}, row2, childrenField);
7673
7688
  backupMap.set(row2, backupRow);
7674
7689
  return backupRow;
@@ -7744,8 +7759,8 @@ var Methods$d = {
7744
7759
  row2 = clone(row2, true);
7745
7760
  }
7746
7761
  var rowKey = getRowkey(this);
7747
- this.visibleColumn.forEach(function(_ref158) {
7748
- var property = _ref158.property, editor = _ref158.editor;
7762
+ this.visibleColumn.forEach(function(_ref159) {
7763
+ var property = _ref159.property, editor = _ref159.editor;
7749
7764
  var propNotExist = property && !has(row2, property);
7750
7765
  var propDefaultValue = editor && !isUndefined(editor.defaultValue) ? editor.defaultValue : null;
7751
7766
  if (propNotExist) {
@@ -7809,7 +7824,7 @@ var Methods$d = {
7809
7824
  var value = get(row2, field);
7810
7825
  var originalValue = get(originalRow, field);
7811
7826
  var column = this.getColumnByField(field);
7812
- var equals = column.equals || this.equals;
7827
+ var equals = (column == null ? void 0 : column.equals) || this.equals;
7813
7828
  var result;
7814
7829
  if (equals) {
7815
7830
  result = equals({
@@ -7903,7 +7918,7 @@ var Methods$d = {
7903
7918
  var _this$selectConfig = this.selectConfig, selectConfig = _this$selectConfig === void 0 ? {} : _this$selectConfig, selection = this.selection;
7904
7919
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
7905
7920
  var checkField = selectConfig.checkField;
7906
- var _ref159 = {}, _ref159$rowList = _ref159.rowList, rowList = _ref159$rowList === void 0 ? [] : _ref159$rowList;
7921
+ var _ref160 = {}, _ref160$rowList = _ref160.rowList, rowList = _ref160$rowList === void 0 ? [] : _ref160$rowList;
7907
7922
  if (checkField && treeConfig) {
7908
7923
  rowList = filterTree(tableFullData, function(row2) {
7909
7924
  return get(row2, checkField);
@@ -7932,8 +7947,8 @@ var Methods$d = {
7932
7947
  var tableData = this.tableFullData;
7933
7948
  var updateFilter = function updateFilter2(tableData2) {
7934
7949
  var remoteFilter = _this26.remoteFilter, visibleColumn = _this26.visibleColumn;
7935
- var filterColumn = visibleColumn.filter(function(_ref160) {
7936
- var filter2 = _ref160.filter;
7950
+ var filterColumn = visibleColumn.filter(function(_ref161) {
7951
+ var filter2 = _ref161.filter;
7937
7952
  return !!filter2;
7938
7953
  });
7939
7954
  return tableData2.filter(function(row2) {
@@ -7962,8 +7977,8 @@ var Methods$d = {
7962
7977
  } else {
7963
7978
  var sortedFlag = false;
7964
7979
  if (sortOpts2.multipleColumnSort) {
7965
- var sortColumns = visibleColumn.filter(function(_ref161) {
7966
- var order2 = _ref161.order;
7980
+ var sortColumns = visibleColumn.filter(function(_ref162) {
7981
+ var order2 = _ref162.order;
7967
7982
  return !!order2;
7968
7983
  });
7969
7984
  if (sortColumns.length > 1) {
@@ -8040,16 +8055,13 @@ var Methods$d = {
8040
8055
  };
8041
8056
  },
8042
8057
  handleDefault: function handleDefault() {
8043
- var _this28 = this;
8044
8058
  this.handleAsyncColumn(this.tableData);
8045
8059
  this.isCheckable && this.selectConfig && this.handleSelectionDefChecked();
8046
8060
  this.radioConfig && this.handleRadioDefChecked();
8047
8061
  this.expandConfig && this.handleDefaultRowExpand();
8048
8062
  this.treeConfig && this.handleDefaultTreeExpand();
8049
8063
  this.updateFooter();
8050
- this.$nextTick(function() {
8051
- return setTimeout(_this28.recalculate);
8052
- });
8064
+ this.$nextTick(this.recalculate);
8053
8065
  },
8054
8066
  // 动态列处理
8055
8067
  mergeCustomColumn: function mergeCustomColumn(customColumns, sort2, colWidth) {
@@ -8074,7 +8086,7 @@ var Methods$d = {
8074
8086
  });
8075
8087
  }
8076
8088
  if (hasCustomsOrColWidth && !isGroupOrNonSort) {
8077
- var _ref162 = {}, _ref162$collectColumn = _ref162.collectColumn, collectColumn2 = _ref162$collectColumn === void 0 ? [] : _ref162$collectColumn, _ref162$customMap = _ref162.customMap, customMap = _ref162$customMap === void 0 ? {} : _ref162$customMap, _ref162$orderColumn = _ref162.orderColumn, orderColumn = _ref162$orderColumn === void 0 ? [] : _ref162$orderColumn;
8089
+ var _ref163 = {}, _ref163$collectColumn = _ref163.collectColumn, collectColumn2 = _ref163$collectColumn === void 0 ? [] : _ref163$collectColumn, _ref163$customMap = _ref163.customMap, customMap = _ref163$customMap === void 0 ? {} : _ref163$customMap, _ref163$orderColumn = _ref163.orderColumn, orderColumn = _ref163$orderColumn === void 0 ? [] : _ref163$orderColumn;
8078
8090
  mapTree(customColumns, function(customCol) {
8079
8091
  var targetCol = find$1(fullColumn, function(item) {
8080
8092
  return customCol.property && item.property === customCol.property;
@@ -8127,11 +8139,11 @@ var Methods$d = {
8127
8139
  },
8128
8140
  // 初始化加载动态列:customColumns 列信息,sort 是否按顺序加载
8129
8141
  reloadCustoms: function reloadCustoms(customColumns, sort2, colWidth) {
8130
- var _this29 = this;
8142
+ var _this28 = this;
8131
8143
  this.mergeCustomColumn(customColumns, sort2, colWidth);
8132
8144
  this.handleTableData(true);
8133
8145
  return this.refreshColumn().then(function() {
8134
- return _this29.tableFullColumn.slice(0);
8146
+ return _this28.tableFullColumn.slice(0);
8135
8147
  });
8136
8148
  },
8137
8149
  watchColumn: function watchColumn(value) {
@@ -8178,7 +8190,7 @@ var Methods$d = {
8178
8190
  * 如果使用了分组表头,固定列必须在左侧或者右侧
8179
8191
  */
8180
8192
  refreshColumn: function refreshColumn() {
8181
- var _this30 = this;
8193
+ var _this29 = this;
8182
8194
  var leftList = [], centerList = [], rightList = [];
8183
8195
  var letIndex = 0, leftStartIndex = null, rightEndIndex = null, isColspan = void 0;
8184
8196
  var columnStore = this.columnStore, isGroup2 = this.isGroup;
@@ -8250,9 +8262,9 @@ var Methods$d = {
8250
8262
  this.updateFooter();
8251
8263
  this.recalculate();
8252
8264
  return this.$nextTick().then(function() {
8253
- _this30.$emit("after-refresh-column");
8254
- if (_this30.isColumnReady) {
8255
- _this30.attemptRestoreScroll();
8265
+ _this29.$emit("after-refresh-column");
8266
+ if (_this29.isColumnReady) {
8267
+ _this29.attemptRestoreScroll();
8256
8268
  }
8257
8269
  });
8258
8270
  },
@@ -8332,7 +8344,7 @@ var Methods$d = {
8332
8344
  * 支持(width=?、width=?px、width=?%、min-width=?、min-width=?px、min-width=?%)
8333
8345
  */
8334
8346
  recalculate: function recalculate() {
8335
- var _this31 = this;
8347
+ var _this30 = this;
8336
8348
  var elemStore = this.elemStore, scrollXLoad = this.scrollXLoad, scrollYLoad = this.scrollYLoad, scrollLoad = this.scrollLoad, _tableVisible = this._tableVisible;
8337
8349
  var bodyWrapper = elemStore["main-body-wrapper"];
8338
8350
  if (!_tableVisible) {
@@ -8344,7 +8356,7 @@ var Methods$d = {
8344
8356
  this.autoCellWidth();
8345
8357
  if (scrollXLoad || scrollYLoad || scrollLoad) {
8346
8358
  return this.computeScrollLoad().then(function() {
8347
- _this31.autoCellWidth();
8359
+ _this30.autoCellWidth();
8348
8360
  });
8349
8361
  }
8350
8362
  return this.computeScrollLoad();
@@ -8402,17 +8414,17 @@ var Methods$d = {
8402
8414
  this.currentRow && this.setCurrentRow(this.currentRow);
8403
8415
  },
8404
8416
  preventEvent: function preventEvent(event, type, args, next, end) {
8405
- var _this32 = this;
8417
+ var _this31 = this;
8406
8418
  var eventList = Interceptor.get(type);
8407
8419
  if (!eventList.some(function(listener) {
8408
- return listener(args, event, _this32) === false;
8420
+ return listener(args, event, _this31) === false;
8409
8421
  })) {
8410
8422
  next && next();
8411
8423
  }
8412
8424
  end && end();
8413
8425
  },
8414
- blurOutside: function blurOutside(_ref163, event) {
8415
- var row2 = _ref163.row, args = _ref163.args, column = _ref163.column;
8426
+ blurOutside: function blurOutside(_ref164, event) {
8427
+ var row2 = _ref164.row, args = _ref164.args, column = _ref164.column;
8416
8428
  var editConfig = this.editConfig, getEventTargetNode2 = this.getEventTargetNode, $el = this.$el;
8417
8429
  if (column && row2) {
8418
8430
  var editor = column.editor;
@@ -8441,7 +8453,7 @@ var Methods$d = {
8441
8453
  } else if (isArray(blurClassConfig)) {
8442
8454
  blurClass = blurClassConfig.slice(0);
8443
8455
  }
8444
- if (args != null && args.cell.contains(event.target)) {
8456
+ if (args != null && args.cell.contains(getActualTarget(event))) {
8445
8457
  return true;
8446
8458
  }
8447
8459
  if (editConfig.mode === "row" && getEventTargetNode2(event, $el, "tiny-grid-body__column").flag) {
@@ -8472,7 +8484,7 @@ var Methods$d = {
8472
8484
  // 处理单选框默认勾选
8473
8485
  handleRadioDefChecked: function handleRadioDefChecked() {
8474
8486
  var fullDataRowIdData = this.fullDataRowIdData;
8475
- var _ref164 = this.radioConfig || {}, checkRowKey = _ref164.checkRowKey;
8487
+ var _ref165 = this.radioConfig || {}, checkRowKey = _ref165.checkRowKey;
8476
8488
  var rowid2 = checkRowKey && encodeURIComponent(checkRowKey);
8477
8489
  var rowCache = fullDataRowIdData[rowid2];
8478
8490
  if (rowid2 && rowCache) {
@@ -8482,7 +8494,7 @@ var Methods$d = {
8482
8494
  // 单选,行选中事件
8483
8495
  triggerRadioRowEvent: function triggerRadioRowEvent(event, params) {
8484
8496
  var selectRow = this.selectRow;
8485
- var _ref165 = this.radioConfig || {}, checkMethod = _ref165.checkMethod;
8497
+ var _ref166 = this.radioConfig || {}, checkMethod = _ref166.checkMethod;
8486
8498
  if (checkMethod && !checkMethod(params)) {
8487
8499
  return;
8488
8500
  }
@@ -8581,12 +8593,15 @@ var Methods$d = {
8581
8593
  },
8582
8594
  // 当单元格发生改变时,如果存在规则,则校验
8583
8595
  handleChangeCell: function handleChangeCell(event, params) {
8584
- var _this33 = this;
8596
+ var _this32 = this;
8585
8597
  this.triggerValidate("blur").catch(function(e) {
8586
8598
  return e;
8587
8599
  }).then(function() {
8588
- _this33.handleActived(params, event).then(function() {
8589
- return _this33.triggerValidate("change");
8600
+ _this32.handleActived(params, event).then(function() {
8601
+ var _this32$editConfig;
8602
+ if ((_this32$editConfig = _this32.editConfig) != null && _this32$editConfig.validateOnActive) {
8603
+ return _this32.triggerValidate("change");
8604
+ }
8590
8605
  }).catch(function(e) {
8591
8606
  return e;
8592
8607
  });
@@ -8657,7 +8672,7 @@ var Methods$d = {
8657
8672
  },
8658
8673
  // 列双击点击事件:如果是双击模式,则激活为编辑状态
8659
8674
  triggerCellDBLClickEvent: function triggerCellDBLClickEvent(event, params) {
8660
- var _this34 = this;
8675
+ var _this33 = this;
8661
8676
  var editStore = this.editStore, editConfig = this.editConfig;
8662
8677
  var actived = editStore.actived;
8663
8678
  var isActiveNewCell = !actived.args || event.currentTarget !== actived.args.cell;
@@ -8666,8 +8681,8 @@ var Methods$d = {
8666
8681
  this.triggerValidate("blur").catch(function(e) {
8667
8682
  return e;
8668
8683
  }).then(function() {
8669
- _this34.handleActived(params, event).then(function() {
8670
- return _this34.triggerValidate("change");
8684
+ _this33.handleActived(params, event).then(function() {
8685
+ return _this33.triggerValidate("change");
8671
8686
  }).catch(function(e) {
8672
8687
  return e;
8673
8688
  });
@@ -8675,7 +8690,7 @@ var Methods$d = {
8675
8690
  }
8676
8691
  if (isDblclickNewCell && editConfig.mode === "cell") {
8677
8692
  this.handleActived(params, event).then(function() {
8678
- return _this34.triggerValidate("change");
8693
+ return _this33.triggerValidate("change");
8679
8694
  }).catch(function(e) {
8680
8695
  return e;
8681
8696
  });
@@ -8734,8 +8749,8 @@ var Methods$d = {
8734
8749
  this.groupExpandeds.push(row2);
8735
8750
  },
8736
8751
  // 展开行事件
8737
- triggerRowExpandEvent: function triggerRowExpandEvent(event, _ref166) {
8738
- var row2 = _ref166.row;
8752
+ triggerRowExpandEvent: function triggerRowExpandEvent(event, _ref167) {
8753
+ var row2 = _ref167.row;
8739
8754
  var rest = this.toggleRowExpansion(row2);
8740
8755
  var eventParams = {
8741
8756
  $table: this,
@@ -8752,7 +8767,7 @@ var Methods$d = {
8752
8767
  // 处理默认展开行
8753
8768
  handleDefaultRowExpand: function handleDefaultRowExpand() {
8754
8769
  var fullDataRowIdData = this.fullDataRowIdData, tableFullData = this.tableFullData;
8755
- var _ref167 = this.expandConfig || {}, expandAll = _ref167.expandAll, expandRowKeys = _ref167.expandRowKeys;
8770
+ var _ref168 = this.expandConfig || {}, expandAll = _ref168.expandAll, expandRowKeys = _ref168.expandRowKeys;
8756
8771
  if (expandAll) {
8757
8772
  this.expandeds = tableFullData.slice(0);
8758
8773
  return;
@@ -8773,7 +8788,7 @@ var Methods$d = {
8773
8788
  // 设置展开行,二个参数设置这一行展开与否;支持单行;支持多行
8774
8789
  setRowExpansion: function setRowExpansion(rows, expanded) {
8775
8790
  var expandeds = this.expandeds;
8776
- var _ref168 = this.expandConfig || {}, accordion = _ref168.accordion;
8791
+ var _ref169 = this.expandConfig || {}, accordion = _ref169.accordion;
8777
8792
  var isToggle = arguments.length === 1;
8778
8793
  var isAccordionCloseAll = false;
8779
8794
  if (!rows) {
@@ -8805,11 +8820,11 @@ var Methods$d = {
8805
8820
  return ~this.expandeds.indexOf(row2);
8806
8821
  },
8807
8822
  clearRowExpand: function clearRowExpand() {
8808
- var _this35 = this;
8823
+ var _this34 = this;
8809
8824
  var hasExpand = this.expandeds.length;
8810
8825
  this.expandeds = [];
8811
8826
  return this.$nextTick().then(function() {
8812
- return hasExpand ? _this35.recalculate() : 0;
8827
+ return hasExpand ? _this34.recalculate() : 0;
8813
8828
  });
8814
8829
  },
8815
8830
  // 获取虚拟滚动状态
@@ -8828,13 +8843,13 @@ var Methods$d = {
8828
8843
  this.loadScrollXData(event);
8829
8844
  },
8830
8845
  debounceScrollX: function debounceScrollX(event) {
8831
- var _this36 = this;
8846
+ var _this35 = this;
8832
8847
  if (!this.tasks.debounceScrollX) {
8833
8848
  this.tasks.debounceScrollXHandler = null;
8834
8849
  this.tasks.debounceScrollX = function() {
8835
8850
  return requestAnimationFrame(function() {
8836
- _this36.tasks.debounceScrollXHandler = null;
8837
- _this36.loadScrollXData(event);
8851
+ _this35.tasks.debounceScrollXHandler = null;
8852
+ _this35.loadScrollXData(event);
8838
8853
  });
8839
8854
  };
8840
8855
  }
@@ -8849,7 +8864,7 @@ var Methods$d = {
8849
8864
  var scrollXStore = this.scrollXStore, visibleColumn = this.visibleColumn;
8850
8865
  var offsetSize = scrollXStore.offsetSize, renderSize = scrollXStore.renderSize, startIndex = scrollXStore.startIndex, visibleIndex = scrollXStore.visibleIndex, visibleSize = scrollXStore.visibleSize;
8851
8866
  var scrollLeft = this.$refs.tableBody.$el.scrollLeft;
8852
- var _ref169 = {}, _ref169$preload = _ref169.preload, preload = _ref169$preload === void 0 ? false : _ref169$preload, _ref169$toVisibleInde = _ref169.toVisibleIndex, toVisibleIndex = _ref169$toVisibleInde === void 0 ? 0 : _ref169$toVisibleInde, _ref169$width = _ref169.width, width = _ref169$width === void 0 ? 0 : _ref169$width;
8867
+ var _ref170 = {}, _ref170$preload = _ref170.preload, preload = _ref170$preload === void 0 ? false : _ref170$preload, _ref170$toVisibleInde = _ref170.toVisibleIndex, toVisibleIndex = _ref170$toVisibleInde === void 0 ? 0 : _ref170$toVisibleInde, _ref170$width = _ref170.width, width = _ref170$width === void 0 ? 0 : _ref170$width;
8853
8868
  for (var i = 0; i < visibleColumn.length; i++) {
8854
8869
  width += visibleColumn[i].renderWidth;
8855
8870
  if (scrollLeft < width) {
@@ -8885,21 +8900,21 @@ var Methods$d = {
8885
8900
  },
8886
8901
  // 处理滚动分页相关逻辑
8887
8902
  debounceScrollLoad: function debounceScrollLoad(event) {
8888
- var _this37 = this;
8903
+ var _this36 = this;
8889
8904
  if (!this.tasks.debounceScrollLoad) {
8890
8905
  this.tasks.debounceScrollLoad = debounce(debounceScrollLoadDuration, function() {
8891
- var _this37$scrollLoadSto = _this37.scrollLoadStore, scrollHeight = _this37$scrollLoadSto.scrollHeight, bodyHeight = _this37$scrollLoadSto.bodyHeight;
8892
- var _this37$$grid$tablePa = _this37.$grid.tablePage, currentPage = _this37$$grid$tablePa.currentPage, pageSize = _this37$$grid$tablePa.pageSize;
8906
+ var _this36$scrollLoadSto = _this36.scrollLoadStore, scrollHeight = _this36$scrollLoadSto.scrollHeight, bodyHeight = _this36$scrollLoadSto.bodyHeight;
8907
+ var _this36$$grid$tablePa = _this36.$grid.tablePage, currentPage = _this36$$grid$tablePa.currentPage, pageSize = _this36$$grid$tablePa.pageSize;
8893
8908
  var max = scrollHeight - bodyHeight;
8894
- var scrollTop = event.target.scrollTop;
8909
+ var scrollTop = getActualTarget(event).scrollTop;
8895
8910
  if (scrollTop > max) {
8896
8911
  scrollTop = max;
8897
8912
  }
8898
- var rowHeight = _this37.scrollYStore.rowHeight;
8913
+ var rowHeight = _this36.scrollYStore.rowHeight;
8899
8914
  var visibleIndex = Math.ceil(scrollTop / rowHeight);
8900
8915
  var page = Math.ceil(visibleIndex / pageSize) + 1;
8901
8916
  if (currentPage !== page) {
8902
- _this37.$grid.pageCurrentChange(page);
8917
+ _this36.$grid.pageCurrentChange(page);
8903
8918
  }
8904
8919
  });
8905
8920
  }
@@ -8907,10 +8922,10 @@ var Methods$d = {
8907
8922
  },
8908
8923
  // 纵向 Y 可视渲染处理
8909
8924
  loadScrollYData: function loadScrollYData(event) {
8910
- var _this38 = this;
8925
+ var _this37 = this;
8911
8926
  var scrollYStore = this.scrollYStore;
8912
8927
  var startIndex = scrollYStore.startIndex, renderSize = scrollYStore.renderSize, offsetSize = scrollYStore.offsetSize, visibleIndex = scrollYStore.visibleIndex, visibleSize = scrollYStore.visibleSize, rowHeight = scrollYStore.rowHeight;
8913
- var scrollTop = event.target.scrollTop;
8928
+ var _getActualTarget = getActualTarget(event), scrollTop = _getActualTarget.scrollTop;
8914
8929
  var toVisibleIndex = Math.ceil(scrollTop / rowHeight);
8915
8930
  var preload = false;
8916
8931
  if (visibleIndex === toVisibleIndex) {
@@ -8933,7 +8948,7 @@ var Methods$d = {
8933
8948
  }
8934
8949
  scrollYStore.visibleIndex = toVisibleIndex;
8935
8950
  this.$nextTick(function() {
8936
- _this38.updateSelectedCls(true);
8951
+ _this37.updateSelectedCls(true);
8937
8952
  });
8938
8953
  },
8939
8954
  getRowHeight: function getRowHeight() {
@@ -8941,16 +8956,16 @@ var Methods$d = {
8941
8956
  },
8942
8957
  // 计算可视渲染相关数据
8943
8958
  computeScrollLoad: function computeScrollLoad() {
8944
- var _this39 = this;
8959
+ var _this38 = this;
8945
8960
  return this.$nextTick().then(function() {
8946
- var $refs = _this39.$refs, optimizeOpts = _this39.optimizeOpts, visibleColumn = _this39.visibleColumn;
8947
- var scrollLoad = _this39.scrollLoad, scrollXLoad = _this39.scrollXLoad, scrollXStore = _this39.scrollXStore, scrollYLoad = _this39.scrollYLoad, scrollYStore = _this39.scrollYStore;
8961
+ var $refs = _this38.$refs, optimizeOpts = _this38.optimizeOpts, visibleColumn = _this38.visibleColumn;
8962
+ var scrollLoad = _this38.scrollLoad, scrollXLoad = _this38.scrollXLoad, scrollXStore = _this38.scrollXStore, scrollYLoad = _this38.scrollYLoad, scrollYStore = _this38.scrollYStore;
8948
8963
  var scrollX = optimizeOpts.scrollX, scrollY = optimizeOpts.scrollY;
8949
8964
  var tableBody = $refs.tableBody;
8950
8965
  var bodyElem = tableBody ? tableBody.$el : null;
8951
8966
  if (bodyElem) {
8952
8967
  computeScrollXLoad({
8953
- _vm: _this39,
8968
+ _vm: _this38,
8954
8969
  scrollX,
8955
8970
  scrollXLoad,
8956
8971
  scrollXStore,
@@ -8958,7 +8973,7 @@ var Methods$d = {
8958
8973
  visibleColumn
8959
8974
  });
8960
8975
  computeScrollYLoad({
8961
- _vm: _this39,
8976
+ _vm: _this38,
8962
8977
  scrollLoad,
8963
8978
  scrollY,
8964
8979
  scrollYLoad,
@@ -8966,7 +8981,7 @@ var Methods$d = {
8966
8981
  tableBodyElem: bodyElem
8967
8982
  });
8968
8983
  }
8969
- _this39.$nextTick(_this39.updateStyle);
8984
+ _this38.$nextTick(_this38.updateStyle);
8970
8985
  });
8971
8986
  },
8972
8987
  updateScrollXData: function updateScrollXData() {
@@ -8996,10 +9011,10 @@ var Methods$d = {
8996
9011
  }
8997
9012
  },
8998
9013
  updateScrollYData: function updateScrollYData() {
8999
- var _this40 = this;
9014
+ var _this39 = this;
9000
9015
  this.updateScrollYSpace();
9001
9016
  this.handleTableData().then(function() {
9002
- return _this40.updateStyle();
9017
+ return _this39.updateStyle();
9003
9018
  });
9004
9019
  },
9005
9020
  // 更新纵向 Y 可视渲染上下剩余空间大小
@@ -9016,7 +9031,7 @@ var Methods$d = {
9016
9031
  },
9017
9032
  updateScrollLoadBar: function updateScrollLoadBar(event) {
9018
9033
  var $el = this.$el, elemStore = this.elemStore, scrollLoad = this.scrollLoad, scrollLoadStore = this.scrollLoadStore;
9019
- if (scrollLoad && $el.contains(event.target)) {
9034
+ if (scrollLoad && $el.contains(getActualTarget(event))) {
9020
9035
  var wheelDelta = event.wheelDelta ? event.wheelDelta : -event.detail * 40;
9021
9036
  var scrollElm = elemStore["main-body-ySpace"];
9022
9037
  var scrollHeight = scrollLoadStore.scrollHeight, bodyHeight = scrollLoadStore.bodyHeight;
@@ -9045,7 +9060,7 @@ var Methods$d = {
9045
9060
  return this.scrollToColumn(column, isDelayArg, move);
9046
9061
  },
9047
9062
  scrollToTreeRow: function scrollToTreeRow(row2) {
9048
- var _this41 = this;
9063
+ var _this40 = this;
9049
9064
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
9050
9065
  if (!treeConfig) {
9051
9066
  return this.$nextTick();
@@ -9058,20 +9073,20 @@ var Methods$d = {
9058
9073
  }
9059
9074
  var nodes = matchObj.nodes;
9060
9075
  nodes.forEach(function(row22, index2) {
9061
- if (index2 === nodes.length - 1 || _this41.hasTreeExpand(row22)) {
9076
+ if (index2 === nodes.length - 1 || _this40.hasTreeExpand(row22)) {
9062
9077
  return;
9063
9078
  }
9064
- _this41.setTreeExpansion(row22, true);
9079
+ _this40.setTreeExpansion(row22, true);
9065
9080
  });
9066
9081
  return this.$nextTick();
9067
9082
  },
9068
9083
  scrollToColumn: function scrollToColumn(column, isDelay, move) {
9069
- var _this42 = this;
9084
+ var _this41 = this;
9070
9085
  var hasColCache = this.fullColumnMap.has(column);
9071
9086
  column && hasColCache && colToVisible(this, column, move);
9072
9087
  return isDelay && (this.scrollXLoad || this.scrollYLoad) ? new Promise(function(resolve) {
9073
9088
  return setTimeout(function() {
9074
- return resolve(_this42.$nextTick());
9089
+ return resolve(_this41.$nextTick());
9075
9090
  }, 50);
9076
9091
  }) : this.$nextTick();
9077
9092
  },
@@ -9079,7 +9094,7 @@ var Methods$d = {
9079
9094
  this.lastScrollTop = 0;
9080
9095
  },
9081
9096
  clearScroll: function clearScroll() {
9082
- var _this43 = this;
9097
+ var _this42 = this;
9083
9098
  var $grid = this.$grid, scrollXStore = this.scrollXStore, scrollYStore = this.scrollYStore, elemStore = this.elemStore;
9084
9099
  var _$grid$fetchOption = $grid.fetchOption, fetchOption = _$grid$fetchOption === void 0 ? {} : _$grid$fetchOption;
9085
9100
  var _fetchOption$isReload2 = fetchOption.isReloadScroll, isReloadScroll = _fetchOption$isReload2 === void 0 ? false : _fetchOption$isReload2;
@@ -9100,7 +9115,7 @@ var Methods$d = {
9100
9115
  });
9101
9116
  return this.$nextTick(function() {
9102
9117
  var tableBodyElem = elemStore["main-body-wrapper"];
9103
- if (_this43.afterMounted) {
9118
+ if (_this42.afterMounted) {
9104
9119
  fastdom.mutate(function() {
9105
9120
  tableBodyElem && Object.assign(tableBodyElem, {
9106
9121
  scrollLeft: 0,
@@ -9117,16 +9132,16 @@ var Methods$d = {
9117
9132
  return;
9118
9133
  }
9119
9134
  if (footerMethod && showFooter) {
9120
- var data6 = footerMethod({
9135
+ var data7 = footerMethod({
9121
9136
  columns: tableColumn2,
9122
9137
  data: afterFullData
9123
9138
  });
9124
- if (data6.length && data6.some(function(value) {
9139
+ if (data7.length && data7.some(function(value) {
9125
9140
  return !isArray(value);
9126
9141
  })) {
9127
- data6 = [data6];
9142
+ data7 = [data7];
9128
9143
  }
9129
- this.footerData = tableColumn2.length ? data6 : [];
9144
+ this.footerData = tableColumn2.length ? data7 : [];
9130
9145
  }
9131
9146
  if (summaryConfig) {
9132
9147
  var fields = summaryConfig.fields, fraction = summaryConfig.fraction, text = summaryConfig.text, _truncate = summaryConfig.truncate;
@@ -9146,7 +9161,7 @@ var Methods$d = {
9146
9161
  },
9147
9162
  // 更新列状态:如果组件值v-model发生change,调用该函数更新列的编辑状态。如果单元格配置了校验规则,则进行校验
9148
9163
  updateStatus: function updateStatus(scope, cellValue, renderOpts) {
9149
- var _this44 = this;
9164
+ var _this43 = this;
9150
9165
  var $refs = this.$refs, editRules = this.editRules, tableData = this.tableData, validStore = this.validStore;
9151
9166
  var tableBody = $refs.tableBody;
9152
9167
  if (!scope || !tableBody) {
@@ -9156,9 +9171,9 @@ var Methods$d = {
9156
9171
  var type = "change";
9157
9172
  var refreshStatus = function refreshStatus2() {
9158
9173
  if (!isUndefined(cellValue)) {
9159
- var _this44$$refs$tableBo;
9160
- _this44.updateRowStatus(row2);
9161
- (_this44$$refs$tableBo = _this44.$refs.tableBody) == null ? void 0 : _this44$$refs$tableBo.$forceUpdate();
9174
+ var _this43$$refs$tableBo;
9175
+ _this43.updateRowStatus(row2);
9176
+ (_this43$$refs$tableBo = _this43.$refs.tableBody) == null ? void 0 : _this43$$refs$tableBo.$forceUpdate();
9162
9177
  }
9163
9178
  };
9164
9179
  if (!editRules || !this.hasCellRules(type, row2, column)) {
@@ -9177,13 +9192,13 @@ var Methods$d = {
9177
9192
  if (!cell) {
9178
9193
  return;
9179
9194
  }
9180
- return _this44.validCellRules(type, row2, column, cellValue).then(function() {
9195
+ return _this43.validCellRules(type, row2, column, cellValue).then(function() {
9181
9196
  refreshStatus();
9182
- _this44.clearValidate();
9183
- }).catch(function(_ref170) {
9184
- var rule = _ref170.rule;
9197
+ _this43.clearValidate();
9198
+ }).catch(function(_ref171) {
9199
+ var rule = _ref171.rule;
9185
9200
  refreshStatus();
9186
- _this44.showValidTooltip({
9201
+ _this43.showValidTooltip({
9187
9202
  rule,
9188
9203
  row: row2,
9189
9204
  column,
@@ -9195,15 +9210,15 @@ var Methods$d = {
9195
9210
  },
9196
9211
  /* X/Y 方向滚动 */
9197
9212
  updateScrollStatus: function updateScrollStatus() {
9198
- var _this45 = this;
9213
+ var _this44 = this;
9199
9214
  if (!this.tasks.updateScrollStatus) {
9200
9215
  this.tasks.updateScrollStatus = debounce(AsyncCollectTimeout, function() {
9201
- var scrollXLoad = _this45.scrollXLoad, scrollYLoad = _this45.scrollYLoad, isAsyncColumn = _this45.isAsyncColumn;
9216
+ var scrollXLoad = _this44.scrollXLoad, scrollYLoad = _this44.scrollYLoad, isAsyncColumn = _this44.isAsyncColumn;
9202
9217
  if (isAsyncColumn && (scrollXLoad || scrollYLoad)) {
9203
- var tableData = _this45.tableData, scrollXStore = _this45.scrollXStore, scrollYStore = _this45.scrollYStore, tableFullData = _this45.tableFullData, _this45$scrollDirecti = _this45.scrollDirection, scrollDirection = _this45$scrollDirecti === void 0 ? "N" : _this45$scrollDirecti;
9218
+ var tableData = _this44.tableData, scrollXStore = _this44.scrollXStore, scrollYStore = _this44.scrollYStore, tableFullData = _this44.tableFullData, _this44$scrollDirecti = _this44.scrollDirection, scrollDirection = _this44$scrollDirecti === void 0 ? "N" : _this44$scrollDirecti;
9204
9219
  var isInit = scrollXLoad && scrollXStore.visibleIndex === 0 || scrollYLoad && scrollYStore.visibleIndex === 0;
9205
9220
  if (isInit || scrollDirection !== "N") {
9206
- _this45.handleResolveColumn(tableFullData, _this45.collectAsyncColumn(tableData));
9221
+ _this44.handleResolveColumn(tableFullData, _this44.collectAsyncColumn(tableData));
9207
9222
  }
9208
9223
  }
9209
9224
  });
@@ -9220,7 +9235,7 @@ var Methods$d = {
9220
9235
  },
9221
9236
  // 收集异步列
9222
9237
  collectAsyncColumn: function collectAsyncColumn(tableData) {
9223
- var _this46 = this;
9238
+ var _this45 = this;
9224
9239
  var fetchColumns = [];
9225
9240
  var rowId = this.rowId, asyncRenderMap = this.asyncRenderMap, tableColumn2 = this.tableColumn;
9226
9241
  if (!rowId) {
@@ -9228,8 +9243,8 @@ var Methods$d = {
9228
9243
  return fetchColumns;
9229
9244
  }
9230
9245
  tableColumn2.forEach(function(col) {
9231
- var _ref171 = col.format || {}, async = _ref171.async;
9232
- var _ref172 = async || {}, fetch = _ref172.fetch, _ref172$splitConfig = _ref172.splitConfig, splitConfig = _ref172$splitConfig === void 0 ? {} : _ref172$splitConfig;
9246
+ var _ref172 = col.format || {}, async = _ref172.async;
9247
+ var _ref173 = async || {}, fetch = _ref173.fetch, _ref173$splitConfig = _ref173.splitConfig, splitConfig = _ref173$splitConfig === void 0 ? {} : _ref173$splitConfig;
9233
9248
  if (typeof fetch === "function") {
9234
9249
  var columnValues = [];
9235
9250
  tableData.forEach(function(row2) {
@@ -9239,7 +9254,7 @@ var Methods$d = {
9239
9254
  }
9240
9255
  var cellValuesCount = 1;
9241
9256
  var cellValues = [cellValue];
9242
- var uniqueKey = _this46.getAsyncColumnUniqueKey(col.property, row2);
9257
+ var uniqueKey = _this45.getAsyncColumnUniqueKey(col.property, row2);
9243
9258
  if (splitConfig.enabled === true) {
9244
9259
  cellValues = cellValue.split(splitConfig.valueSplit || ",");
9245
9260
  cellValuesCount = cellValues.length;
@@ -9289,8 +9304,8 @@ var Methods$d = {
9289
9304
  }, this));
9290
9305
  },
9291
9306
  // Publish methods 与工具栏对接
9292
- connect: function connect(_ref173) {
9293
- var toolbar = _ref173.toolbar;
9307
+ connect: function connect(_ref174) {
9308
+ var toolbar = _ref174.toolbar;
9294
9309
  this.$toolbar = toolbar;
9295
9310
  },
9296
9311
  // 检查触发源是否属于目标节点
@@ -9316,7 +9331,7 @@ var Methods$d = {
9316
9331
  },
9317
9332
  handleDataChange: function handleDataChange() {
9318
9333
  if (Array.isArray(this.data)) {
9319
- !this._isUpdateData && this.loadTableData(this.data, true);
9334
+ !this._isUpdateData && this.loadTableData(this.data);
9320
9335
  this._isUpdateData = false;
9321
9336
  }
9322
9337
  },
@@ -9349,8 +9364,8 @@ var Methods$d = {
9349
9364
  },
9350
9365
  // 尝试恢复滚动位置,规范了最大滚动位置的取值
9351
9366
  attemptRestoreScroll: function attemptRestoreScroll(options) {
9352
- var _this47 = this;
9353
- var _ref174 = options || this, lastScrollTop = _ref174.lastScrollTop, lastScrollLeft = _ref174.lastScrollLeft;
9367
+ var _this46 = this;
9368
+ var _ref175 = options || this, lastScrollTop = _ref175.lastScrollTop, lastScrollLeft = _ref175.lastScrollLeft;
9354
9369
  var scrollXLoad = this.scrollXLoad, scrollYLoad = this.scrollYLoad, elemStore = this.elemStore;
9355
9370
  var tableBodyElem = elemStore["main-body-wrapper"];
9356
9371
  if ((lastScrollTop || lastScrollLeft) && tableBodyElem) {
@@ -9360,14 +9375,14 @@ var Methods$d = {
9360
9375
  lastScrollTop = Math.min(lastScrollTop, maxScrollTop);
9361
9376
  lastScrollLeft = Math.min(lastScrollLeft, maxScrollLeft);
9362
9377
  fastdom.mutate(function() {
9363
- _this47.restoreScollFlag = true;
9364
- _this47.scrollTo(lastScrollLeft, lastScrollTop);
9378
+ _this46.restoreScollFlag = true;
9379
+ _this46.scrollTo(lastScrollLeft, lastScrollTop);
9365
9380
  requestAnimationFrame(function() {
9366
- var _this47$$refs$tableBo;
9367
- return (_this47$$refs$tableBo = _this47.$refs.tableBody) == null ? void 0 : _this47$$refs$tableBo.resetStickyWrapperScrollPos();
9381
+ var _this46$$refs$tableBo;
9382
+ return (_this46$$refs$tableBo = _this46.$refs.tableBody) == null ? void 0 : _this46$$refs$tableBo.resetStickyWrapperScrollPos();
9368
9383
  });
9369
- scrollXLoad && _this47.triggerScrollXEvent();
9370
- scrollYLoad && _this47.triggerScrollYEvent({
9384
+ scrollXLoad && _this46.triggerScrollXEvent();
9385
+ scrollYLoad && _this46.triggerScrollYEvent({
9371
9386
  target: {
9372
9387
  scrollTop: lastScrollTop
9373
9388
  }
@@ -9427,7 +9442,7 @@ var _sfc_main$8 = defineComponent({
9427
9442
  row: Object
9428
9443
  }),
9429
9444
  render: function render8() {
9430
- var _this48 = this;
9445
+ var _this47 = this;
9431
9446
  var datas = this.datas, row2 = this.row;
9432
9447
  var primaryColumn = datas.primaryColumn, contentColumns = datas.contentColumns, genParams2 = datas.genParams, config2 = datas.config, cardView2 = datas.cardView;
9433
9448
  var _config$cardConfig = config2.cardConfig, cardConfig = _config$cardConfig === void 0 ? {} : _config$cardConfig;
@@ -9439,8 +9454,8 @@ var _sfc_main$8 = defineComponent({
9439
9454
  };
9440
9455
  var ons = function ons2() {
9441
9456
  return {
9442
- mouseenter: _this48.handleMouseenter,
9443
- mouseleave: _this48.handleMouseleave
9457
+ mouseenter: _this47.handleMouseenter,
9458
+ mouseleave: _this47.handleMouseleave
9444
9459
  };
9445
9460
  };
9446
9461
  if (!primaryColumn || !primaryColumn.renderCell) {
@@ -9600,8 +9615,8 @@ var _sfc_main$7 = defineComponent({
9600
9615
  return typeof hidden === "boolean" && hidden || typeof hidden === "function" && hidden(row2);
9601
9616
  };
9602
9617
  var handleItemClick = function handleItemClick2(name) {
9603
- var buttonConfig = visibleButtons.find(function(_ref175) {
9604
- var buttonName = _ref175.name;
9618
+ var buttonConfig = visibleButtons.find(function(_ref176) {
9619
+ var buttonName = _ref176.name;
9605
9620
  return buttonName === name;
9606
9621
  });
9607
9622
  buttonConfig.click(window.event || {}, _extends({
@@ -10340,9 +10355,9 @@ function mergeScrollDirStore(scrollDir, scrollDirStore) {
10340
10355
  });
10341
10356
  }
10342
10357
  }
10343
- function loadStatic(data6, _vm) {
10344
- if (data6 && data6.length > 0) {
10345
- _vm.loadTableData(data6, true);
10358
+ function loadStatic(data7, _vm) {
10359
+ if (data7 && data7.length > 0) {
10360
+ _vm.loadTableData(data7, true);
10346
10361
  _vm.updateStyle();
10347
10362
  }
10348
10363
  }
@@ -10954,7 +10969,15 @@ var Table = defineComponent({
10954
10969
  this.handleSelectionHeader();
10955
10970
  },
10956
10971
  parentHeight: function parentHeight() {
10957
- this.$nextTick(this.recalculate);
10972
+ this.recalculate();
10973
+ },
10974
+ // 选项式监控在vue2可以检测到顶层数组splice项替换/$set项替换
10975
+ // array.splice(index, 1, newItem)
10976
+ // this.$set(array, index, newItem)
10977
+ data: function data5(array1, array2) {
10978
+ if (isVue2 && array1 === array2 && array1.length === array2.length) {
10979
+ this.handleDataChange();
10980
+ }
10958
10981
  }
10959
10982
  },
10960
10983
  created: function created() {
@@ -11011,13 +11034,13 @@ var Table = defineComponent({
11011
11034
  cellStatus: /* @__PURE__ */ new Map(),
11012
11035
  // 是否具有type selection列
11013
11036
  isCheckable: false
11014
- }), scrollXStore = _Object$assign.scrollXStore, scrollYStore = _Object$assign.scrollYStore, optimizeOpts = _Object$assign.optimizeOpts, data6 = _Object$assign.data;
11037
+ }), scrollXStore = _Object$assign.scrollXStore, scrollYStore = _Object$assign.scrollYStore, optimizeOpts = _Object$assign.optimizeOpts, data7 = _Object$assign.data;
11015
11038
  var scrollX = optimizeOpts.scrollX, scrollY = optimizeOpts.scrollY;
11016
11039
  verifyConfig(this);
11017
11040
  mergeScrollDirStore(scrollX, scrollXStore);
11018
11041
  mergeScrollDirStore(scrollY, scrollYStore);
11019
11042
  mergeTreeConfig(this);
11020
- loadStatic(data6, this);
11043
+ loadStatic(data7, this);
11021
11044
  bindEvent(this);
11022
11045
  this.$grid.connect({
11023
11046
  name: "table",
@@ -11092,8 +11115,8 @@ var Table = defineComponent({
11092
11115
  return extend(true, {}, GlobalConfig$1.optimization, props.optimization);
11093
11116
  });
11094
11117
  var rowHeight = hooks.computed(function() {
11095
- var _optimizeOpts$value, _GlobalConfig$1$rowHe;
11096
- return ((_optimizeOpts$value = optimizeOpts.value) == null ? void 0 : _optimizeOpts$value.scrollY.rHeight) || ((_GlobalConfig$1$rowHe = GlobalConfig$1.rowHeight[tinyTheme.value]) == null ? void 0 : _GlobalConfig$1$rowHe[vSize3.value || "default"]) || 40;
11118
+ var _optimizeOpts$value, _optimizeOpts$value$s, _GlobalConfig$1$rowHe;
11119
+ return ((_optimizeOpts$value = optimizeOpts.value) == null ? void 0 : (_optimizeOpts$value$s = _optimizeOpts$value.scrollY) == null ? void 0 : _optimizeOpts$value$s.rHeight) || ((_GlobalConfig$1$rowHe = GlobalConfig$1.rowHeight[tinyTheme.value]) == null ? void 0 : _GlobalConfig$1$rowHe[vSize3.value || "default"]) || 40;
11097
11120
  });
11098
11121
  var headerRowHeight = hooks.computed(function() {
11099
11122
  var _GlobalConfig$1$heade;
@@ -11453,8 +11476,8 @@ var Column = defineComponent({
11453
11476
  default: null
11454
11477
  }
11455
11478
  },
11456
- setup: function setup7(props, _ref176) {
11457
- var slots = _ref176.slots;
11479
+ setup: function setup7(props, _ref177) {
11480
+ var slots = _ref177.slots;
11458
11481
  var reactive = hooks.reactive, inject = hooks.inject, getCurrentInstance = hooks.getCurrentInstance, onUpdated = hooks.onUpdated, watch = hooks.watch, nextTick = hooks.nextTick;
11459
11482
  var currentInstance = getCurrentInstance();
11460
11483
  var instance = currentInstance.proxy;
@@ -11508,7 +11531,7 @@ var Column = defineComponent({
11508
11531
  warn("ui.grid.error.chainCallError");
11509
11532
  }
11510
11533
  var hasSubColumn = findTree(slotVnode, function(node) {
11511
- var _ref177 = node || {}, componentOptions = _ref177.componentOptions, type = _ref177.type;
11534
+ var _ref178 = node || {}, componentOptions = _ref178.componentOptions, type = _ref178.type;
11512
11535
  var componentName = type && type.name || componentOptions && componentOptions.Ctor.extendOptions.name;
11513
11536
  return $table.isValidCustomColumn(componentName);
11514
11537
  }, null, null);
@@ -11588,7 +11611,7 @@ var Grid = defineComponent({
11588
11611
  isMultipleHistory: Boolean,
11589
11612
  selectToolbar: [Boolean, Object]
11590
11613
  }),
11591
- data: function data5() {
11614
+ data: function data6() {
11592
11615
  return {
11593
11616
  emitter: emitter(),
11594
11617
  fetchOption: null,
@@ -11627,10 +11650,10 @@ var Grid = defineComponent({
11627
11650
  return this.proxyOpts.message !== false;
11628
11651
  },
11629
11652
  tableProps: function tableProps() {
11630
- var _this49 = this;
11653
+ var _this48 = this;
11631
11654
  var rest = {};
11632
11655
  propKeys.forEach(function(key) {
11633
- return rest[key] = _this49[key];
11656
+ return rest[key] = _this48[key];
11634
11657
  });
11635
11658
  return rest;
11636
11659
  },
@@ -11683,10 +11706,10 @@ var Grid = defineComponent({
11683
11706
  this.toolbar && this.$refs.toolbar && this.$refs.toolbar.loadStorage();
11684
11707
  },
11685
11708
  viewType: function viewType(value) {
11686
- var _this50 = this;
11709
+ var _this49 = this;
11687
11710
  if (value === V_MF) {
11688
11711
  this.$nextTick(function() {
11689
- return _this50.recalculate();
11712
+ return _this49.recalculate();
11690
11713
  });
11691
11714
  }
11692
11715
  }
@@ -11756,8 +11779,8 @@ var Grid = defineComponent({
11756
11779
  var tinyTheme = hooks.ref(resolveTheme(props, context));
11757
11780
  var tinyMode = hooks.ref(resolveMode(props, context));
11758
11781
  var breakpoint = useBreakpoint();
11759
- var renderless = function renderless2(props2, hooks2, _ref178) {
11760
- var _ref178$designConfig = _ref178.designConfig, designConfig = _ref178$designConfig === void 0 ? null : _ref178$designConfig;
11782
+ var renderless = function renderless2(props2, hooks2, _ref179) {
11783
+ var _ref179$designConfig = _ref179.designConfig, designConfig = _ref179$designConfig === void 0 ? null : _ref179$designConfig;
11761
11784
  return {
11762
11785
  tableListeners,
11763
11786
  designConfig,
@@ -11781,7 +11804,7 @@ var Grid = defineComponent({
11781
11804
  });
11782
11805
  },
11783
11806
  render: function render16() {
11784
- var _this51 = this;
11807
+ var _this50 = this;
11785
11808
  var fetchOption = this.fetchOption, listeners = this.listeners, loading = this.loading, optimizOpt2 = this.optimizOpt, editConfigOpt2 = this.editConfigOpt, tooltipOpt2 = this.tooltipOpt, pager = this.pager, pagerConfig = this.pagerConfig, remoteFilter = this.remoteFilter, remoteSort = this.remoteSort, selectToolbar = this.selectToolbar;
11786
11809
  var seqIndex2 = this.seqIndex, $slots = this.slots, tableCustoms2 = this.tableCustoms, tableData = this.tableData, tableListeners = this.tableListeners, tableLoading = this.tableLoading, tableProps2 = this.tableProps, toolbar = this.toolbar, vSize3 = this.vSize, designConfig = this.designConfig, viewType2 = this.viewType;
11787
11810
  var columnAnchor = this.columnAnchor, columnAnchorParams = this.columnAnchorParams, fullScreenClass = this.fullScreenClass;
@@ -11810,13 +11833,13 @@ var Grid = defineComponent({
11810
11833
  }
11811
11834
  toolbar && !(toolbar.setting && toolbar.setting.storage) && (props.customs = tableCustoms2);
11812
11835
  toolbar && (tableOns["update:customs"] = function(value) {
11813
- return _this51.tableCustoms = value;
11836
+ return _this50.tableCustoms = value;
11814
11837
  });
11815
11838
  tableOns["column-init-ready"] = this.handleColumnInitReady;
11816
11839
  var renderedToolbar = function renderedToolbar2() {
11817
- return _this51.getRenderedToolbar({
11840
+ return _this50.getRenderedToolbar({
11818
11841
  $slots,
11819
- _vm: _this51,
11842
+ _vm: _this50,
11820
11843
  loading,
11821
11844
  tableLoading,
11822
11845
  toolbar
@@ -11845,12 +11868,12 @@ var Grid = defineComponent({
11845
11868
  methods: {
11846
11869
  // 配置高度减去(表格锚点+工具栏+分页)计算得出表格高度
11847
11870
  updateParentHeight: function updateParentHeight2() {
11848
- var _this52 = this;
11871
+ var _this51 = this;
11849
11872
  if (!this.tasks.updateParentHeight) {
11850
11873
  this.tasks.updateParentHeight = debounce(10, function() {
11851
- var $el = _this52.$el, $refs = _this52.$refs;
11874
+ var $el = _this51.$el, $refs = _this51.$refs;
11852
11875
  var tinyTable = $refs.tinyTable, tinyGridColumnAnchor = $refs.tinyGridColumnAnchor;
11853
- var toolbarVm = _this52.getVm("toolbar");
11876
+ var toolbarVm = _this51.getVm("toolbar");
11854
11877
  if (tinyTable) {
11855
11878
  var columnAnchorHeight = 0;
11856
11879
  if (tinyGridColumnAnchor) {
@@ -11864,8 +11887,8 @@ var Grid = defineComponent({
11864
11887
  this.tasks.updateParentHeight();
11865
11888
  },
11866
11889
  // 向缓存添加实例
11867
- connect: function connect2(_ref179) {
11868
- var name = _ref179.name, vm = _ref179.vm;
11890
+ connect: function connect2(_ref180) {
11891
+ var name = _ref180.name, vm = _ref180.vm;
11869
11892
  if (name && typeof name === "string" && vm) {
11870
11893
  this.vmStore[name] = vm;
11871
11894
  }
@@ -11937,8 +11960,8 @@ var Grid = defineComponent({
11937
11960
  Grid.install = function(Vue) {
11938
11961
  Vue.component(Grid.name, Grid);
11939
11962
  };
11940
- function operArrs(_ref180) {
11941
- var _vm = _ref180._vm, editStore = _ref180.editStore, newRecords = _ref180.newRecords, newRecordsCopy = _ref180.newRecordsCopy, nowData = _ref180.nowData, row2 = _ref180.row, tableFullData = _ref180.tableFullData, tableSourceData = _ref180.tableSourceData;
11963
+ function operArrs(_ref181) {
11964
+ var _vm = _ref181._vm, editStore = _ref181.editStore, newRecords = _ref181.newRecords, newRecordsCopy = _ref181.newRecordsCopy, nowData = _ref181.nowData, row2 = _ref181.row, tableFullData = _ref181.tableFullData, tableSourceData = _ref181.tableSourceData;
11942
11965
  if (row2 === -1) {
11943
11966
  Array.prototype.push.apply(nowData, newRecords);
11944
11967
  Array.prototype.push.apply(tableFullData, newRecords);
@@ -11963,38 +11986,38 @@ function operArrs(_ref180) {
11963
11986
  Array.prototype.push.apply(_vm.temporaryRows, newRecordsCopy);
11964
11987
  }
11965
11988
  var _setActiveCell = function _setActiveCell2(row2, field) {
11966
- var _this53 = this;
11989
+ var _this52 = this;
11967
11990
  var next1 = function next12() {
11968
11991
  if (!row2 || !field) {
11969
- return _this53.$nextTick();
11992
+ return _this52.$nextTick();
11970
11993
  }
11971
- var column = find$1(_this53.visibleColumn, function(column2) {
11994
+ var column = find$1(_this52.visibleColumn, function(column2) {
11972
11995
  return column2.property === field;
11973
11996
  });
11974
11997
  if (!column || !column.editor) {
11975
- return _this53.$nextTick();
11998
+ return _this52.$nextTick();
11976
11999
  }
11977
12000
  var next2 = function next22(cell) {
11978
12001
  if (!cell) {
11979
12002
  return;
11980
12003
  }
11981
- var rowIndex = _this53.getRowIndex(row2);
11982
- var columnIndex = _this53.getColumnIndex(column);
11983
- _this53.handleActived({
12004
+ var rowIndex = _this52.getRowIndex(row2);
12005
+ var columnIndex = _this52.getColumnIndex(column);
12006
+ _this52.handleActived({
11984
12007
  row: row2,
11985
12008
  rowIndex,
11986
12009
  column,
11987
12010
  columnIndex,
11988
12011
  cell,
11989
- $table: _this53
12012
+ $table: _this52
11990
12013
  });
11991
- _this53.lastCallTime = Date.now();
12014
+ _this52.lastCallTime = Date.now();
11992
12015
  };
11993
- getCell(_this53, {
12016
+ getCell(_this52, {
11994
12017
  row: row2,
11995
12018
  column
11996
12019
  }).then(next2);
11997
- return _this53.$nextTick();
12020
+ return _this52.$nextTick();
11998
12021
  };
11999
12022
  return this.scrollToRow(row2, true).then(next1);
12000
12023
  };
@@ -12004,7 +12027,7 @@ var Methods$c = {
12004
12027
  },
12005
12028
  // 根据位置从指定行添加数据
12006
12029
  _insertAt: function _insertAt(records, row2) {
12007
- var _this54 = this;
12030
+ var _this53 = this;
12008
12031
  var afterFullData = this.afterFullData, editStore = this.editStore, isAsyncColumn = this.isAsyncColumn, scrollYLoad = this.scrollYLoad, tableFullData = this.tableFullData, _this$tableSourceData = this.tableSourceData, tableSourceData = _this$tableSourceData === void 0 ? [] : _this$tableSourceData, treeConfig = this.treeConfig;
12009
12032
  if (treeConfig) {
12010
12033
  throw new Error(error("ui.grid.error.treeInsert"));
@@ -12022,7 +12045,7 @@ var Methods$c = {
12022
12045
  }
12023
12046
  var nowData = afterFullData;
12024
12047
  var newRecords = records.map(function(record) {
12025
- return hooks.reactive(_this54.defineField(_extends({}, record)));
12048
+ return hooks.reactive(_this53.defineField(_extends({}, record)));
12026
12049
  });
12027
12050
  var newRecordsCopy = clone(newRecords, true);
12028
12051
  operArrs({
@@ -12047,7 +12070,7 @@ var Methods$c = {
12047
12070
  rows: newRecords
12048
12071
  };
12049
12072
  return this.$nextTick().then(function() {
12050
- _this54.recalculate();
12073
+ _this53.recalculate();
12051
12074
  return res;
12052
12075
  });
12053
12076
  },
@@ -12057,7 +12080,7 @@ var Methods$c = {
12057
12080
  * 如果传 rows 则删除多行
12058
12081
  */
12059
12082
  _remove: function _remove(rows) {
12060
- var _this55 = this;
12083
+ var _this54 = this;
12061
12084
  var afterFullData = this.afterFullData, scrollYLoad = this.scrollYLoad, _this$selectConfig3 = this.selectConfig, selectConfig = _this$selectConfig3 === void 0 ? {} : _this$selectConfig3;
12062
12085
  var selection = this.selection, tableFullData = this.tableFullData, treeConfig = this.treeConfig, _this$tableSourceData2 = this.tableSourceData, tableSourceData = _this$tableSourceData2 === void 0 ? [] : _this$tableSourceData2;
12063
12086
  var _this$editStore = this.editStore, insertList = _this$editStore.insertList, removeList = _this$editStore.removeList;
@@ -12101,9 +12124,9 @@ var Methods$c = {
12101
12124
  }
12102
12125
  remove(tableSourceData, function(row3) {
12103
12126
  return find$1(insertList, function(r) {
12104
- return getRowid(_this55, r) === getRowid(_this55, row3);
12127
+ return getRowid(_this54, r) === getRowid(_this54, row3);
12105
12128
  }) && find$1(rows, function(r) {
12106
- return getRowid(_this55, r) === getRowid(_this55, row3);
12129
+ return getRowid(_this54, r) === getRowid(_this54, row3);
12107
12130
  });
12108
12131
  });
12109
12132
  remove(insertList, function(row3) {
@@ -12121,7 +12144,7 @@ var Methods$c = {
12121
12144
  rows: rest
12122
12145
  };
12123
12146
  return this.$nextTick().then(function() {
12124
- _this55.recalculate();
12147
+ _this54.recalculate();
12125
12148
  return res;
12126
12149
  });
12127
12150
  },
@@ -12129,10 +12152,10 @@ var Methods$c = {
12129
12152
  * 删除选中数据
12130
12153
  */
12131
12154
  _removeSelecteds: function _removeSelecteds() {
12132
- var _this56 = this;
12155
+ var _this55 = this;
12133
12156
  var selectRecords = this.getSelectRecords(true);
12134
12157
  var callback = function callback2(params) {
12135
- _this56.clearSelection();
12158
+ _this55.clearSelection();
12136
12159
  return params;
12137
12160
  };
12138
12161
  return this.remove(selectRecords).then(callback);
@@ -12200,10 +12223,10 @@ var Methods$c = {
12200
12223
  * 只精准匹配row的更改。如果是树表格,子节点更改状态不会影响父节点的更新状态
12201
12224
  */
12202
12225
  _getUpdateRecords: function _getUpdateRecords() {
12203
- var _this57 = this;
12226
+ var _this56 = this;
12204
12227
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
12205
12228
  var handler6 = function handler7(row2) {
12206
- return !_this57.isTemporaryRow(row2) && _this57.hasRowChange(row2);
12229
+ return !_this56.isTemporaryRow(row2) && _this56.hasRowChange(row2);
12207
12230
  };
12208
12231
  var updateRecords = treeConfig ? filterTree(tableFullData, handler6, treeConfig) : tableFullData.filter(handler6);
12209
12232
  return updateRecords;
@@ -12212,13 +12235,13 @@ var Methods$c = {
12212
12235
  * 处理激活编辑
12213
12236
  */
12214
12237
  handleActived: function handleActived(params, event) {
12215
- var _this58 = this;
12238
+ var _this57 = this;
12216
12239
  return _asyncToGenerator(/* @__PURE__ */ _regenerator().m(function _callee() {
12217
12240
  var editConfig, editStore, tableColumn2, cell, column, row2, editor, actived, isActiveCell, type, canActive, args;
12218
12241
  return _regenerator().w(function(_context) {
12219
12242
  while (1) switch (_context.n) {
12220
12243
  case 0:
12221
- editConfig = _this58.editConfig, editStore = _this58.editStore, tableColumn2 = _this58.tableColumn;
12244
+ editConfig = _this57.editConfig, editStore = _this57.editStore, tableColumn2 = _this57.tableColumn;
12222
12245
  cell = params.cell, column = params.column, row2 = params.row;
12223
12246
  editor = column.editor;
12224
12247
  actived = editStore.actived;
@@ -12241,7 +12264,7 @@ var Methods$c = {
12241
12264
  case 1:
12242
12265
  canActive = _context.v;
12243
12266
  args = {
12244
- _vm: _this58,
12267
+ _vm: _this57,
12245
12268
  actived,
12246
12269
  canActive,
12247
12270
  cell,
@@ -12257,14 +12280,14 @@ var Methods$c = {
12257
12280
  });
12258
12281
  type = handleActivedDoActive(args);
12259
12282
  handleActivedClearActive({
12260
- _vm: _this58,
12283
+ _vm: _this57,
12261
12284
  canActive,
12262
12285
  event
12263
12286
  });
12264
- emitEvent(_this58, type, [params, event]);
12287
+ emitEvent(_this57, type, [params, event]);
12265
12288
  case 2:
12266
12289
  handleActivedTryActive({
12267
- _vm: _this58,
12290
+ _vm: _this57,
12268
12291
  actived,
12269
12292
  cell,
12270
12293
  column,
@@ -12274,7 +12297,7 @@ var Methods$c = {
12274
12297
  params,
12275
12298
  row: row2
12276
12299
  });
12277
- return _context.a(2, _this58.$nextTick());
12300
+ return _context.a(2, _this57.$nextTick());
12278
12301
  }
12279
12302
  }, _callee);
12280
12303
  }))();
@@ -12305,14 +12328,14 @@ var Methods$c = {
12305
12328
  * 清除已激活的编辑
12306
12329
  */
12307
12330
  _clearActived: function _clearActived(event) {
12308
- var _this59 = this;
12331
+ var _this58 = this;
12309
12332
  var _this$editConfig2 = this.editConfig, editConfig = _this$editConfig2 === void 0 ? {} : _this$editConfig2, editStore = this.editStore, tableColumn2 = this.tableColumn;
12310
12333
  var actived = editStore.actived;
12311
12334
  var args = actived.args, column = actived.column, row2 = actived.row;
12312
12335
  var isActived = row2 || column;
12313
12336
  if (isActived && editConfig.mode === "row") {
12314
12337
  tableColumn2.forEach(function(column22) {
12315
- return _this59._setColumnModel(row2, column22);
12338
+ return _this58._setColumnModel(row2, column22);
12316
12339
  });
12317
12340
  }
12318
12341
  if (isActived && editConfig.mode !== "row") {
@@ -12323,7 +12346,7 @@ var Methods$c = {
12323
12346
  this.updateRowStatus(actived.row);
12324
12347
  this.updateFooter();
12325
12348
  var row22 = args.row, column2 = args.column;
12326
- var _ref181 = column2 || {}, editor = _ref181.editor;
12349
+ var _ref182 = column2 || {}, editor = _ref182.editor;
12327
12350
  if ((editor == null ? void 0 : editor.component) === "input" && (editor == null ? void 0 : (_editor$attrs = editor.attrs) == null ? void 0 : _editor$attrs.type) === "number") {
12328
12351
  row22[column2.property] = +row22[column2.property];
12329
12352
  }
@@ -12392,7 +12415,7 @@ var Methods$c = {
12392
12415
  * 只对trigger为dblclick有效,选中单元格
12393
12416
  */
12394
12417
  _setSelectCell: function _setSelectCell(row2, field) {
12395
- var _this60 = this;
12418
+ var _this59 = this;
12396
12419
  var editConfig = this.editConfig, tableData = this.tableData, visibleColumn = this.visibleColumn;
12397
12420
  if (!row2 || !field || editConfig.trigger === "manual") {
12398
12421
  return this.$nextTick();
@@ -12413,7 +12436,7 @@ var Methods$c = {
12413
12436
  columnIndex,
12414
12437
  cell
12415
12438
  };
12416
- _this60.handleSelected(params, {});
12439
+ _this59.handleSelected(params, {});
12417
12440
  };
12418
12441
  getCell(this, {
12419
12442
  row: row2,
@@ -12441,37 +12464,37 @@ var Methods$c = {
12441
12464
  * 处理选中源
12442
12465
  */
12443
12466
  handleSelected: function handleSelected(params, event, noDebounce) {
12444
- var _this61 = this;
12467
+ var _this60 = this;
12445
12468
  var editConfig = this.editConfig, editStore = this.editStore, elemStore = this.elemStore, _this$mouseConfig3 = this.mouseConfig, mouseConfig = _this$mouseConfig3 === void 0 ? {} : _this$mouseConfig3;
12446
12469
  var actived = editStore.actived, selected = editStore.selected;
12447
- var _ref182 = params || {}, cell = _ref182.cell, column = _ref182.column, row2 = _ref182.row;
12470
+ var _ref183 = params || {}, cell = _ref183.cell, column = _ref183.column, row2 = _ref183.row;
12448
12471
  var selectMethod = function selectMethod2() {
12449
12472
  var _cell$parentNode;
12450
12473
  if (selected.row === row2 && selected.column === column || actived.row === row2 && (editConfig.mode !== "cell" || actived.column === column)) {
12451
- return _this61.$nextTick();
12474
+ return _this60.$nextTick();
12452
12475
  }
12453
- if (_this61.keyboardConfig || _this61.mouseConfig) {
12454
- _this61.clearChecked(event);
12455
- _this61.clearIndexChecked();
12456
- _this61.clearHeaderChecked();
12457
- _this61.clearSelected(event);
12476
+ if (_this60.keyboardConfig || _this60.mouseConfig) {
12477
+ _this60.clearChecked(event);
12478
+ _this60.clearIndexChecked();
12479
+ _this60.clearHeaderChecked();
12480
+ _this60.clearSelected(event);
12458
12481
  }
12459
- _this61.clearActived(event);
12482
+ _this60.clearActived(event);
12460
12483
  selected.args = params;
12461
12484
  selected.row = row2;
12462
12485
  selected.column = column;
12463
- _this61.updateSelectedCls();
12486
+ _this60.updateSelectedCls();
12464
12487
  if (!mouseConfig.checked) {
12465
- return _this61.$nextTick();
12488
+ return _this60.$nextTick();
12466
12489
  }
12467
12490
  var headerElem = elemStore["main-body-headerList"];
12468
- _this61.handleChecked([[cell]]);
12491
+ _this60.handleChecked([[cell]]);
12469
12492
  if (!headerElem) {
12470
- return _this61.$nextTick();
12493
+ return _this60.$nextTick();
12471
12494
  }
12472
- _this61.handleHeaderChecked([[headerElem == null ? void 0 : headerElem.querySelector("." + (column == null ? void 0 : column.id))]]);
12473
- _this61.handleIndexChecked([[cell == null ? void 0 : (_cell$parentNode = cell.parentNode) == null ? void 0 : _cell$parentNode.querySelector(".col__index")]]);
12474
- return _this61.$nextTick();
12495
+ _this60.handleHeaderChecked([[headerElem == null ? void 0 : headerElem.querySelector("." + (column == null ? void 0 : column.id))]]);
12496
+ _this60.handleIndexChecked([[cell == null ? void 0 : (_cell$parentNode = cell.parentNode) == null ? void 0 : _cell$parentNode.querySelector(".col__index")]]);
12497
+ return _this60.$nextTick();
12475
12498
  };
12476
12499
  selectMethod = noDebounce ? selectMethod : debounce(20, selectMethod);
12477
12500
  return selectMethod();
@@ -12625,7 +12648,7 @@ function handleCellMousedownEvent(args1) {
12625
12648
  var $el = args1.$el, _vm = args1._vm, bodyList = args1.bodyList, cell = args1.cell, cellFirstElementChild = args1.cellFirstElementChild;
12626
12649
  var cellLastElementChild = args1.cellLastElementChild, headStart = args1.headStart, headerList = args1.headerList, isIndex = args1.isIndex, startCellNode = args1.startCellNode;
12627
12650
  var _vm$mouseConfig2 = _vm.mouseConfig, mouseConfig = _vm$mouseConfig2 === void 0 ? {} : _vm$mouseConfig2;
12628
- var _ref183 = mouseConfig || {}, _ref183$updateInterva = _ref183.updateInterval, updateInterval = _ref183$updateInterva === void 0 ? 10 : _ref183$updateInterva;
12651
+ var _ref184 = mouseConfig || {}, _ref184$updateInterva = _ref184.updateInterval, updateInterval = _ref184$updateInterva === void 0 ? 10 : _ref184$updateInterva;
12629
12652
  var oldMousemove = document.onmousemove;
12630
12653
  var oldMouseup = document.onmouseup;
12631
12654
  var updateEvent = function updateEvent2(event) {
@@ -12664,8 +12687,8 @@ function onCellMousedownSelectEditable(args) {
12664
12687
  _vm.handleSelected(params, event);
12665
12688
  }
12666
12689
  }
12667
- function onCellMousedownSelect(_ref184) {
12668
- var _vm = _ref184._vm, editConfig = _ref184.editConfig, event = _ref184.event, mouseConfig = _ref184.mouseConfig, params = _ref184.params;
12690
+ function onCellMousedownSelect(_ref185) {
12691
+ var _vm = _ref185._vm, editConfig = _ref185.editConfig, event = _ref185.event, mouseConfig = _ref185.mouseConfig, params = _ref185.params;
12669
12692
  if (!editConfig && mouseConfig.selected) {
12670
12693
  _vm.handleSelected(params, event);
12671
12694
  }
@@ -12684,8 +12707,8 @@ function onCellMousedownIndexColumn(args) {
12684
12707
  _vm.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(cell)));
12685
12708
  }
12686
12709
  }
12687
- function onCellMousedownNotIndexColumn(_ref185) {
12688
- var _vm = _ref185._vm, cell = _ref185.cell, column = _ref185.column, event = _ref185.event, headerList = _ref185.headerList, isIndex = _ref185.isIndex, params = _ref185.params;
12710
+ function onCellMousedownNotIndexColumn(_ref186) {
12711
+ var _vm = _ref186._vm, cell = _ref186.cell, column = _ref186.column, event = _ref186.event, headerList = _ref186.headerList, isIndex = _ref186.isIndex, params = _ref186.params;
12689
12712
  if (!isIndex) {
12690
12713
  var firstCell = cell.parentNode.firstElementChild;
12691
12714
  _vm.handleSelected(params, event);
@@ -12693,8 +12716,8 @@ function onCellMousedownNotIndexColumn(_ref185) {
12693
12716
  _vm.handleIndexChecked([[firstCell]]);
12694
12717
  }
12695
12718
  }
12696
- function handleHeaderCellMousedownEvent(_ref186) {
12697
- var $el = _ref186.$el, _vm = _ref186._vm, bodyList = _ref186.bodyList, cell = _ref186.cell, headerList = _ref186.headerList, startCell = _ref186.startCell;
12719
+ function handleHeaderCellMousedownEvent(_ref187) {
12720
+ var $el = _ref187.$el, _vm = _ref187._vm, bodyList = _ref187.bodyList, cell = _ref187.cell, headerList = _ref187.headerList, startCell = _ref187.startCell;
12698
12721
  var oldMousemove = document.onmousemove;
12699
12722
  var oldMouseup = document.onmouseup;
12700
12723
  var updateEvent = function updateEvent2(event) {
@@ -12727,8 +12750,8 @@ var removeCellClass = function removeCellClass2(bodyRef, clazz) {
12727
12750
  return removeClass(elem, clazz);
12728
12751
  });
12729
12752
  };
12730
- var getCellIndex = function getCellIndex2(_ref187) {
12731
- var cell = _ref187.cell, bodyList = _ref187.bodyList;
12753
+ var getCellIndex = function getCellIndex2(_ref188) {
12754
+ var cell = _ref188.cell, bodyList = _ref188.bodyList;
12732
12755
  var trElem = cell.parentNode;
12733
12756
  var cIndex = arrayIndexOf(trElem.children, cell);
12734
12757
  var rIndex = arrayIndexOf(bodyList, trElem);
@@ -12737,8 +12760,8 @@ var getCellIndex = function getCellIndex2(_ref187) {
12737
12760
  cIndex
12738
12761
  };
12739
12762
  };
12740
- var getModify = function getModify2(_ref188) {
12741
- var offsetTop = _ref188.offsetTop, offsetLeft = _ref188.offsetLeft, cWidth = _ref188.cWidth, cHeight = _ref188.cHeight;
12763
+ var getModify = function getModify2(_ref189) {
12764
+ var offsetTop = _ref189.offsetTop, offsetLeft = _ref189.offsetLeft, cWidth = _ref189.cWidth, cHeight = _ref189.cHeight;
12742
12765
  var modifyDomStyle = function modifyDomStyle2(dom, styleOptions) {
12743
12766
  return dom && Object.assign(dom.style, styleOptions);
12744
12767
  };
@@ -12765,8 +12788,8 @@ var getModify = function getModify2(_ref188) {
12765
12788
  });
12766
12789
  };
12767
12790
  };
12768
- var writeClipboardText = function writeClipboardText2(_ref189) {
12769
- var $table = _ref189.$table, columns2 = _ref189.columns, rows = _ref189.rows, rowNodes = _ref189.rowNodes;
12791
+ var writeClipboardText = function writeClipboardText2(_ref190) {
12792
+ var $table = _ref190.$table, columns2 = _ref190.columns, rows = _ref190.rows, rowNodes = _ref190.rowNodes;
12770
12793
  var _$table$keyboardConfi = $table.keyboardConfig, keyboardConfig = _$table$keyboardConfi === void 0 ? {} : _$table$keyboardConfi;
12771
12794
  var _keyboardConfig$clipb = keyboardConfig.clipboard, clipboard = _keyboardConfig$clipb === void 0 ? {} : _keyboardConfig$clipb;
12772
12795
  var writeMethod = clipboard.writeMethod, _clipboard$cellSplit = clipboard.cellSplit, cellSplit = _clipboard$cellSplit === void 0 ? "," : _clipboard$cellSplit, _clipboard$rowSplit = clipboard.rowSplit, rowSplit = _clipboard$rowSplit === void 0 ? ";" : _clipboard$rowSplit;
@@ -12813,7 +12836,7 @@ var Methods$b = {
12813
12836
  var params = _extends({}, args);
12814
12837
  var columnIndex = visibleColumn.indexOf(params.column);
12815
12838
  var rowIndex = tableData.indexOf(params.row);
12816
- var _ref190 = {}, targetColumn = _ref190.targetColumn, targetColumnIndex = _ref190.targetColumnIndex, targetRow = _ref190.targetRow, targetRowIndex = _ref190.targetRowIndex;
12839
+ var _ref191 = {}, targetColumn = _ref191.targetColumn, targetColumnIndex = _ref191.targetColumnIndex, targetRow = _ref191.targetRow, targetRowIndex = _ref191.targetRowIndex;
12817
12840
  event.preventDefault();
12818
12841
  var checkColumn = function checkColumn2(column) {
12819
12842
  return !hasIndexColumn2(column) && (edit ? column.editor : true);
@@ -12876,7 +12899,7 @@ var Methods$b = {
12876
12899
  },
12877
12900
  // 当前行方向键移动处理
12878
12901
  moveCurrentRow: function moveCurrentRow(isUpArrow, isDwArrow, event) {
12879
- var _this62 = this;
12902
+ var _this61 = this;
12880
12903
  var afterFullData = this.afterFullData, currentRow = this.currentRow, treeConfig = this.treeConfig;
12881
12904
  var targetRow;
12882
12905
  event.preventDefault();
@@ -12899,17 +12922,17 @@ var Methods$b = {
12899
12922
  }
12900
12923
  if (targetRow) {
12901
12924
  this.scrollToRow(targetRow).then(function() {
12902
- return _this62.triggerCurrentRowEvent(event, {
12903
- $table: _this62,
12925
+ return _this61.triggerCurrentRowEvent(event, {
12926
+ $table: _this61,
12904
12927
  row: targetRow
12905
12928
  });
12906
12929
  });
12907
12930
  }
12908
12931
  },
12909
12932
  // 可编辑方向键移动处理
12910
- moveSelected: function moveSelected(_ref191) {
12911
- var _this63 = this;
12912
- var args = _ref191.args, isLeftArrow = _ref191.isLeftArrow, isUpArrow = _ref191.isUpArrow, isRightArrow = _ref191.isRightArrow, isDownArrow = _ref191.isDownArrow, event = _ref191.event;
12933
+ moveSelected: function moveSelected(_ref192) {
12934
+ var _this62 = this;
12935
+ var args = _ref192.args, isLeftArrow = _ref192.isLeftArrow, isUpArrow = _ref192.isUpArrow, isRightArrow = _ref192.isRightArrow, isDownArrow = _ref192.isDownArrow, event = _ref192.event;
12913
12936
  var hasIndexColumn2 = this.hasIndexColumn, visibleColumn = this.tableColumn, tableData = this.tableFullData;
12914
12937
  var params = _extends({}, args);
12915
12938
  var column = params.column;
@@ -12938,8 +12961,8 @@ var Methods$b = {
12938
12961
  }
12939
12962
  getCell(this, params).then(function(resCell) {
12940
12963
  params.cell = resCell;
12941
- _this63.handleSelected(params, event, true);
12942
- _this63.scrollToRow(params.row, params.column, false, {
12964
+ _this62.handleSelected(params, event, true);
12965
+ _this62.scrollToRow(params.row, params.column, false, {
12943
12966
  isLeftArrow,
12944
12967
  isRightArrow,
12945
12968
  from: column
@@ -12948,7 +12971,7 @@ var Methods$b = {
12948
12971
  },
12949
12972
  // 表头按下事件
12950
12973
  triggerHeaderCellMousedownEvent: function triggerHeaderCellMousedownEvent(event, params) {
12951
- var _this64 = this;
12974
+ var _this63 = this;
12952
12975
  var $el = this.$el, elemStore = this.elemStore, _this$mouseConfig4 = this.mouseConfig, mouseConfig = _this$mouseConfig4 === void 0 ? {} : _this$mouseConfig4, tableData = this.tableData;
12953
12976
  var headerList = elemStore["main-body-headerList"].children;
12954
12977
  var bodyList = elemStore["main-body-list"].children;
@@ -12992,10 +13015,10 @@ var Methods$b = {
12992
13015
  params.row = tableData[0];
12993
13016
  getCell(this, params).then(function(cellRes) {
12994
13017
  params.cell = cellRes;
12995
- _this64.handleSelected(params, event);
13018
+ _this63.handleSelected(params, event);
12996
13019
  var rowNodes = getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTr.querySelector(".col__index")));
12997
- _this64.handleIndexChecked(rowNodes);
12998
- _this64.handleChecked(getRowNodes(bodyList, getCellNodeIndex(startCell), getCellNodeIndex(lastCell)));
13020
+ _this63.handleIndexChecked(rowNodes);
13021
+ _this63.handleChecked(getRowNodes(bodyList, getCellNodeIndex(startCell), getCellNodeIndex(lastCell)));
12999
13022
  });
13000
13023
  this.closeMenu();
13001
13024
  },
@@ -13129,9 +13152,9 @@ var Methods$b = {
13129
13152
  return this.$nextTick();
13130
13153
  },
13131
13154
  _getMouseCheckeds: function _getMouseCheckeds() {
13132
- var _this65 = this;
13155
+ var _this64 = this;
13133
13156
  var _this$editStore$check = this.editStore.checked.rowNodes, rowNodes = _this$editStore$check === void 0 ? [] : _this$editStore$check;
13134
- var _ref192 = {}, _ref192$rows = _ref192.rows, rows = _ref192$rows === void 0 ? [] : _ref192$rows, _ref192$columns = _ref192.columns, columns2 = _ref192$columns === void 0 ? [] : _ref192$columns;
13157
+ var _ref193 = {}, _ref193$rows = _ref193.rows, rows = _ref193$rows === void 0 ? [] : _ref193$rows, _ref193$columns = _ref193.columns, columns2 = _ref193$columns === void 0 ? [] : _ref193$columns;
13135
13158
  var res = {
13136
13159
  rows,
13137
13160
  columns: columns2,
@@ -13139,10 +13162,10 @@ var Methods$b = {
13139
13162
  };
13140
13163
  if (rowNodes && rowNodes.length) {
13141
13164
  res.rows = rowNodes.map(function(arr) {
13142
- return _this65.getRowNode(arr[0].parentNode).item;
13165
+ return _this64.getRowNode(arr[0].parentNode).item;
13143
13166
  });
13144
13167
  res.columns = rowNodes[0].map(function(col) {
13145
- return _this65.getColumnNode(col).item;
13168
+ return _this64.getColumnNode(col).item;
13146
13169
  });
13147
13170
  }
13148
13171
  return res;
@@ -13160,7 +13183,7 @@ var Methods$b = {
13160
13183
  if (!mouseConfig || !mouseConfig.checked) {
13161
13184
  return;
13162
13185
  }
13163
- var _ref193 = {}, cHeight = _ref193.cHeight, cWidth = _ref193.cWidth, offsetLeft = _ref193.offsetLeft, offsetTop = _ref193.offsetTop;
13186
+ var _ref194 = {}, cHeight = _ref194.cHeight, cWidth = _ref194.cWidth, offsetLeft = _ref194.offsetLeft, offsetTop = _ref194.offsetTop;
13164
13187
  cWidth = cHeight = -2;
13165
13188
  offsetTop = offsetLeft = 0;
13166
13189
  this.clearChecked();
@@ -13195,7 +13218,7 @@ var Methods$b = {
13195
13218
  this.editStore.checked.rowNodes = rowNodes;
13196
13219
  },
13197
13220
  handleAllChecked: function handleAllChecked(event) {
13198
- var _this66 = this;
13221
+ var _this65 = this;
13199
13222
  var elemStore = this.elemStore, _this$mouseConfig6 = this.mouseConfig, mouseConfig = _this$mouseConfig6 === void 0 ? {} : _this$mouseConfig6, tableData = this.tableData, visibleColumn = this.visibleColumn;
13200
13223
  if (!mouseConfig.checked) {
13201
13224
  return;
@@ -13223,10 +13246,10 @@ var Methods$b = {
13223
13246
  params.columnIndex = this.getColumnIndex(params.column);
13224
13247
  getCell(this, params).then(function(resCell) {
13225
13248
  params.cell = resCell;
13226
- _this66.handleSelected(params, event, true);
13227
- _this66.handleHeaderChecked(getRowNodes(headerList, getCellNodeIndex(cell.nextElementSibling), getCellNodeIndex(cell.parentNode.lastElementChild)));
13228
- _this66.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTrElem.querySelector(selectorColumnId))));
13229
- _this66.handleChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell.nextElementSibling), getCellNodeIndex(lastTrElem.lastElementChild)));
13249
+ _this65.handleSelected(params, event, true);
13250
+ _this65.handleHeaderChecked(getRowNodes(headerList, getCellNodeIndex(cell.nextElementSibling), getCellNodeIndex(cell.parentNode.lastElementChild)));
13251
+ _this65.handleIndexChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell), getCellNodeIndex(lastTrElem.querySelector(selectorColumnId))));
13252
+ _this65.handleChecked(getRowNodes(bodyList, getCellNodeIndex(firstCell.nextElementSibling), getCellNodeIndex(lastTrElem.lastElementChild)));
13230
13253
  });
13231
13254
  },
13232
13255
  handleIndexChecked: function handleIndexChecked(rowNodes) {
@@ -13289,7 +13312,7 @@ var Methods$b = {
13289
13312
  var editStore = this.editStore, tableColumn2 = this.tableColumn, tableData = this.tableData;
13290
13313
  var copyed = editStore.copyed;
13291
13314
  var rowNodes = editStore.checked.rowNodes;
13292
- var _ref194 = {}, cHeight = _ref194.cHeight, cWidth = _ref194.cWidth, offsetLeft = _ref194.offsetLeft, offsetTop = _ref194.offsetTop, _ref194$rows = _ref194.rows, rows = _ref194$rows === void 0 ? [] : _ref194$rows, _ref194$columns = _ref194.columns, columns2 = _ref194$columns === void 0 ? [] : _ref194$columns;
13315
+ var _ref195 = {}, cHeight = _ref195.cHeight, cWidth = _ref195.cWidth, offsetLeft = _ref195.offsetLeft, offsetTop = _ref195.offsetTop, _ref195$rows = _ref195.rows, rows = _ref195$rows === void 0 ? [] : _ref195$rows, _ref195$columns = _ref195.columns, columns2 = _ref195$columns === void 0 ? [] : _ref195$columns;
13293
13316
  cWidth = cHeight = -3;
13294
13317
  offsetTop = offsetLeft = 0;
13295
13318
  this.clearCopyed();
@@ -13381,7 +13404,8 @@ var Methods$b = {
13381
13404
  var equalOrContain = function equalOrContain2(elm, target) {
13382
13405
  return elm && (elm === target || elm.contains(target));
13383
13406
  };
13384
- if (!equalOrContain($grid.$el, event.target) && !equalOrContain(tableWrapper, event.target) && !equalOrContain(tooltip && tooltip.state.popperElm, event.target) && !equalOrContain(validTip && validTip.state.popperElm, event.target)) {
13407
+ var actualTarget = getActualTarget(event);
13408
+ if (!equalOrContain($grid.$el, actualTarget) && !equalOrContain(tableWrapper, actualTarget) && !equalOrContain(tooltip && tooltip.state.popperElm, actualTarget) && !equalOrContain(validTip && validTip.state.popperElm, actualTarget)) {
13385
13409
  if (autoClearMouseChecked) {
13386
13410
  this.clearChecked();
13387
13411
  this.clearSelected();
@@ -13411,13 +13435,13 @@ function adjustParams(rows, cb, vaildDatas) {
13411
13435
  vaildDatas
13412
13436
  };
13413
13437
  }
13414
- var columnHandler = function columnHandler2(_ref195) {
13415
- var _vm = _ref195._vm, colValidPromiseArr = _ref195.colValidPromiseArr, editRules = _ref195.editRules, isAll = _ref195.isAll, row2 = _ref195.row, validRest = _ref195.validRest;
13438
+ var columnHandler = function columnHandler2(_ref196) {
13439
+ var _vm = _ref196._vm, colValidPromiseArr = _ref196.colValidPromiseArr, editRules = _ref196.editRules, isAll = _ref196.isAll, row2 = _ref196.row, validRest = _ref196.validRest;
13416
13440
  return function(column, columnIndex) {
13417
13441
  if (has(editRules, column.property)) {
13418
13442
  colValidPromiseArr.push(new Promise(function(resolve, reject) {
13419
- _vm.validCellRules("all", row2, column).then(resolve).catch(function(_ref196) {
13420
- var rule = _ref196.rule, rules = _ref196.rules;
13443
+ _vm.validCellRules("all", row2, column).then(resolve).catch(function(_ref197) {
13444
+ var rule = _ref197.rule, rules = _ref197.rules;
13421
13445
  var rowIndex = _vm.getRowIndex(row2);
13422
13446
  var rest = {
13423
13447
  rule,
@@ -13441,8 +13465,8 @@ var columnHandler = function columnHandler2(_ref195) {
13441
13465
  }
13442
13466
  };
13443
13467
  };
13444
- function validTree(_ref197) {
13445
- var treeConfig = _ref197.treeConfig, handleVaild = _ref197.handleVaild, hasTreeExpand2 = _ref197.hasTreeExpand, vaildDatas = _ref197.vaildDatas, treeOpts = _ref197.treeOpts;
13468
+ function validTree(_ref198) {
13469
+ var treeConfig = _ref198.treeConfig, handleVaild = _ref198.handleVaild, hasTreeExpand2 = _ref198.hasTreeExpand, vaildDatas = _ref198.vaildDatas, treeOpts = _ref198.treeOpts;
13446
13470
  if (treeConfig.validHidden === false) {
13447
13471
  var _recurValid = function recurValid(row2) {
13448
13472
  var children = row2[treeConfig.children || "children"];
@@ -13456,8 +13480,8 @@ function validTree(_ref197) {
13456
13480
  eachTree(vaildDatas, handleVaild, treeOpts);
13457
13481
  }
13458
13482
  }
13459
- var realValid = function realValid2(_ref198) {
13460
- var _vm = _ref198._vm, editRules = _ref198.editRules, isAll = _ref198.isAll, validRest = _ref198.validRest, treeConfig = _ref198.treeConfig, hasTreeExpand2 = _ref198.hasTreeExpand, vaildDatas = _ref198.vaildDatas, treeOpts = _ref198.treeOpts;
13483
+ var realValid = function realValid2(_ref199) {
13484
+ var _vm = _ref199._vm, editRules = _ref199.editRules, isAll = _ref199.isAll, validRest = _ref199.validRest, treeConfig = _ref199.treeConfig, hasTreeExpand2 = _ref199.hasTreeExpand, vaildDatas = _ref199.vaildDatas, treeOpts = _ref199.treeOpts;
13461
13485
  var rowValids = [];
13462
13486
  var columns2 = _vm.getColumns();
13463
13487
  var handleVaild = function handleVaild2(row2) {
@@ -13485,7 +13509,7 @@ var realValid = function realValid2(_ref198) {
13485
13509
  }
13486
13510
  return rowValids;
13487
13511
  };
13488
- var Rule = /* @__PURE__ */ function() {
13512
+ var Rule = /* @__PURE__ */ (function() {
13489
13513
  function Rule2(rule) {
13490
13514
  Object.assign(this, {
13491
13515
  $options: rule,
@@ -13505,12 +13529,12 @@ var Rule = /* @__PURE__ */ function() {
13505
13529
  return getFuncText(this.$options.message);
13506
13530
  }
13507
13531
  }]);
13508
- }();
13532
+ })();
13509
13533
  var onRejected = function onRejected2(opt, _this) {
13510
13534
  var isAll = opt.isAll, validRest = opt.validRest, cb = opt.cb, afterFullData = opt.afterFullData, treeConfig = opt.treeConfig;
13511
13535
  return function(params) {
13512
- var _ref199;
13513
- var args = isAll ? validRest : (_ref199 = {}, _ref199[params.column.property] = params, _ref199);
13536
+ var _ref200;
13537
+ var args = isAll ? validRest : (_ref200 = {}, _ref200[params.column.property] = params, _ref200);
13514
13538
  var funcFinish = function funcFinish2(args2, reject, resolve) {
13515
13539
  return function() {
13516
13540
  opt.status = false;
@@ -13566,21 +13590,21 @@ var Methods$a = {
13566
13590
  },
13567
13591
  // 聚焦到校验通过的单元格并弹出校验错误提示
13568
13592
  handleValidError: function handleValidError(params) {
13569
- var _this67 = this;
13593
+ var _this66 = this;
13570
13594
  var event = {
13571
13595
  type: "valid-error",
13572
13596
  trigger: "call"
13573
13597
  };
13574
13598
  this.handleActived(params, event).then(function() {
13575
- return _this67.showValidTooltip(params);
13599
+ return _this66.showValidTooltip(params);
13576
13600
  });
13577
13601
  },
13578
13602
  validatePromise: function validatePromise(row2, column, columnIndex, isAll, validRest) {
13579
- var _this68 = this;
13580
- function onrejected(_ref201) {
13581
- var _vm = _ref201._vm, reject = _ref201.reject, resolve = _ref201.resolve;
13582
- return function(_ref202) {
13583
- var rule = _ref202.rule, rules = _ref202.rules;
13603
+ var _this67 = this;
13604
+ function onrejected(_ref202) {
13605
+ var _vm = _ref202._vm, reject = _ref202.reject, resolve = _ref202.resolve;
13606
+ return function(_ref203) {
13607
+ var rule = _ref203.rule, rules = _ref203.rules;
13584
13608
  var rest = {
13585
13609
  $table: _vm,
13586
13610
  column,
@@ -13599,8 +13623,8 @@ var Methods$a = {
13599
13623
  };
13600
13624
  }
13601
13625
  return new Promise(function(resolve, reject) {
13602
- _this68.validCellRules("all", row2, column).then(resolve).catch(onrejected({
13603
- _vm: _this68,
13626
+ _this67.validCellRules("all", row2, column).then(resolve).catch(onrejected({
13627
+ _vm: _this67,
13604
13628
  reject,
13605
13629
  resolve
13606
13630
  }));
@@ -13616,7 +13640,7 @@ var Methods$a = {
13616
13640
  */
13617
13641
  beginValidate: function beginValidate(rows, callback, isAll) {
13618
13642
  var afterFullData = this.afterFullData, editRules = this.editRules, hasTreeExpand2 = this.hasTreeExpand, treeConfig = this.treeConfig, treeOpts = this.treeOpts;
13619
- var _ref203 = {}, _ref203$status = _ref203.status, status = _ref203$status === void 0 ? true : _ref203$status, _ref203$validRest = _ref203.validRest, validRest = _ref203$validRest === void 0 ? {} : _ref203$validRest;
13643
+ var _ref204 = {}, _ref204$status = _ref204.status, status = _ref204$status === void 0 ? true : _ref204$status, _ref204$validRest = _ref204.validRest, validRest = _ref204$validRest === void 0 ? {} : _ref204$validRest;
13620
13644
  var _adjustParams = adjustParams(rows, callback, afterFullData), vaildDatas = _adjustParams.vaildDatas, cb = _adjustParams.cb;
13621
13645
  var opt = {
13622
13646
  isAll,
@@ -13651,12 +13675,11 @@ var Methods$a = {
13651
13675
  return Promise.reject(validRest[ruleKeys[0]][0]);
13652
13676
  }
13653
13677
  cb && cb(opt.status);
13654
- return opt.status;
13655
13678
  };
13656
13679
  return Promise.all(rowValids).then(onFulfilled).catch(onRejected(opt, this));
13657
13680
  },
13658
- hasCellRules: function hasCellRules(type, row2, _ref204) {
13659
- var property = _ref204.property;
13681
+ hasCellRules: function hasCellRules(type, row2, _ref205) {
13682
+ var property = _ref205.property;
13660
13683
  if (!property || !this.editRules) {
13661
13684
  return false;
13662
13685
  }
@@ -13686,10 +13709,10 @@ var Methods$a = {
13686
13709
  * @param { any } defaultValue 需要校验的默认值
13687
13710
  */
13688
13711
  validCellRules: function validCellRules(type, row2, column, defaultValue) {
13689
- var _this69 = this;
13712
+ var _this68 = this;
13690
13713
  var editRules = this.editRules, rowId = this.rowId;
13691
13714
  var property = column.property;
13692
- var _ref205 = {}, _ref205$descriptor = _ref205.descriptor, descriptor = _ref205$descriptor === void 0 ? {} : _ref205$descriptor, _ref205$model = _ref205.model, model = _ref205$model === void 0 ? {} : _ref205$model;
13715
+ var _ref206 = {}, _ref206$descriptor = _ref206.descriptor, descriptor = _ref206$descriptor === void 0 ? {} : _ref206$descriptor, _ref206$model = _ref206.model, model = _ref206$model === void 0 ? {} : _ref206$model;
13693
13716
  if (property && editRules) {
13694
13717
  var rules = get(editRules, property);
13695
13718
  var cellValue = isUndefined(defaultValue) ? get(row2, property) : defaultValue;
@@ -13714,8 +13737,8 @@ var Methods$a = {
13714
13737
  column
13715
13738
  }
13716
13739
  };
13717
- var onRejected3 = function onRejected32(_ref206) {
13718
- var fields = _ref206.fields;
13740
+ var onRejected3 = function onRejected32(_ref207) {
13741
+ var fields = _ref207.fields;
13719
13742
  var cellErrors = Object.keys(fields).map(function(prop) {
13720
13743
  var rules2 = _descriptor[prop];
13721
13744
  _descriptor[prop] = !rules2.message ? Object.assign(rules2, {
@@ -13731,11 +13754,11 @@ var Methods$a = {
13731
13754
  validator.validate(model, validArgs).then(resolve).catch(onRejected3);
13732
13755
  };
13733
13756
  var onFulfilled = function onFulfilled2() {
13734
- _this69.validatedMap[column.id + "-" + row2[rowId]] = false;
13757
+ _this68.validatedMap[column.id + "-" + row2[rowId]] = false;
13735
13758
  return Promise.resolve();
13736
13759
  };
13737
13760
  var onRejected22 = function onRejected23(errors) {
13738
- _this69.validatedMap[column.id + "-" + row2[rowId]] = true;
13761
+ _this68.validatedMap[column.id + "-" + row2[rowId]] = true;
13739
13762
  return Promise.reject(errors);
13740
13763
  };
13741
13764
  return new Promise(executor).then(onFulfilled).catch(onRejected22);
@@ -13754,7 +13777,7 @@ var Methods$a = {
13754
13777
  },
13755
13778
  // 触发校验
13756
13779
  triggerValidate: function triggerValidate(type) {
13757
- var _this70 = this;
13780
+ var _this69 = this;
13758
13781
  var editConfig = this.editConfig, editRules = this.editRules, editStore = this.editStore, validStore = this.validStore;
13759
13782
  var actived = editStore.actived;
13760
13783
  if (!actived.row || !editRules) {
@@ -13765,10 +13788,10 @@ var Methods$a = {
13765
13788
  return Promise.resolve();
13766
13789
  }
13767
13790
  var onfulfilled = function onfulfilled2() {
13768
- editConfig.mode === "row" && validStore.visible && validStore.row === row2 && validStore.column === column && _this70.clearValidate();
13791
+ editConfig.mode === "row" && validStore.visible && validStore.row === row2 && validStore.column === column && _this69.clearValidate();
13769
13792
  };
13770
- var onrejected = function onrejected2(_ref207) {
13771
- var rule = _ref207.rule;
13793
+ var onrejected = function onrejected2(_ref208) {
13794
+ var rule = _ref208.rule;
13772
13795
  if (rule.trigger && type !== rule.trigger) {
13773
13796
  return Promise.resolve();
13774
13797
  }
@@ -13778,14 +13801,14 @@ var Methods$a = {
13778
13801
  row: row2,
13779
13802
  rule
13780
13803
  };
13781
- _this70.showValidTooltip(rest);
13804
+ _this69.showValidTooltip(rest);
13782
13805
  return Promise.reject(rest);
13783
13806
  };
13784
13807
  return this.validCellRules(type, row2, column).then(onfulfilled).catch(onrejected);
13785
13808
  },
13786
13809
  // 弹出校验错误提示
13787
13810
  showValidTooltip: function showValidTooltip(params) {
13788
- var _this71 = this;
13811
+ var _this70 = this;
13789
13812
  var $refs = this.$refs, height2 = this.height, tableData = this.tableData, validOpts2 = this.validOpts;
13790
13813
  var cell = params.cell, column = params.column, row2 = params.row, rule = params.rule;
13791
13814
  var content = rule.message;
@@ -13793,7 +13816,7 @@ var Methods$a = {
13793
13816
  var isMessageTooltip = validOpts2.isMessageTooltip, isMessageDefault = validOpts2.isMessageDefault, isMessageInline = validOpts2.isMessageInline;
13794
13817
  var showMsg = isMessageTooltip || isMessageDefault && !height2 && tableData.length < 2;
13795
13818
  this.$nextTick(function() {
13796
- Object.assign(_this71.validStore, {
13819
+ Object.assign(_this70.validStore, {
13797
13820
  row: row2,
13798
13821
  column,
13799
13822
  rule,
@@ -13801,19 +13824,19 @@ var Methods$a = {
13801
13824
  visible: true
13802
13825
  });
13803
13826
  if (validTip && showMsg) {
13804
- _this71.clostValidTooltip();
13805
- _this71.validTipContent = content;
13827
+ _this70.clostValidTooltip();
13828
+ _this70.validTipContent = content;
13806
13829
  validTip.state.referenceElm = cell;
13807
13830
  validTip.$refs.popper && (validTip.$refs.popper.style.display = "none");
13808
13831
  validTip.doDestroy();
13809
13832
  validTip.setExpectedState(true);
13810
- _this71.activateTooltipValid(validTip);
13833
+ _this70.activateTooltipValid(validTip);
13811
13834
  } else if (isMessageInline) {
13812
- _this71.$nextTick(function() {
13813
- return _this71.recalculate();
13835
+ _this70.$nextTick(function() {
13836
+ return _this70.recalculate();
13814
13837
  });
13815
13838
  }
13816
- emitEvent(_this71, "valid-error", [params]);
13839
+ emitEvent(_this70, "valid-error", [params]);
13817
13840
  });
13818
13841
  },
13819
13842
  // 关闭 validTip
@@ -13834,12 +13857,12 @@ var Validator = {
13834
13857
  };
13835
13858
  var Methods$9 = {
13836
13859
  bindResize: function bindResize() {
13837
- var _this72 = this;
13860
+ var _this71 = this;
13838
13861
  var parentElem = this.getParentElem();
13839
13862
  if ((parentElem == null ? void 0 : parentElem.nodeType) === Node.ELEMENT_NODE) {
13840
13863
  (this.$resize = new Resize$1(function() {
13841
- _this72.updateParentHeight();
13842
- _this72.recalculate();
13864
+ _this71.updateParentHeight();
13865
+ _this71.recalculate();
13843
13866
  }, GlobalConfig$1.resizeInterval)).observe(parentElem);
13844
13867
  }
13845
13868
  },
@@ -13862,7 +13885,7 @@ var Methods$8 = {
13862
13885
  initFetchOption: function initFetchOption() {
13863
13886
  var _this$fetchData = this.fetchData, fetchData = _this$fetchData === void 0 ? {} : _this$fetchData, _this$dataset = this.dataset, dataset = _this$dataset === void 0 ? {} : _this$dataset;
13864
13887
  if (fetchData.api || dataset.source || dataset.value || dataset.api) {
13865
- var _ref208 = fetchData || dataset.source || dataset.api || {}, loading = _ref208.loading, fields = _ref208.fields, api = _ref208.api, reloadConfig = _ref208.reloadConfig;
13888
+ var _ref209 = fetchData || dataset.source || dataset.api || {}, loading = _ref209.loading, fields = _ref209.fields, api = _ref209.api, reloadConfig = _ref209.reloadConfig;
13866
13889
  var isReloadFilter = false;
13867
13890
  var isReloadScroll = false;
13868
13891
  if (reloadConfig) {
@@ -13883,7 +13906,7 @@ var Methods$8 = {
13883
13906
  但为避免破坏性变更,暂保留
13884
13907
  */
13885
13908
  handleFetch: function handleFetch(code, sortArg) {
13886
- var _this73 = this;
13909
+ var _this72 = this;
13887
13910
  var pager = this.pager, sortData = this.sortData, filterData = this.filterData, pagerConfig = this.pagerConfig, fetchOption = this.fetchOption, fetchData = this.fetchData, dataset = this.dataset;
13888
13911
  var _fetchData$reloadConf = fetchData.reloadConfig, reloadConfig = _fetchData$reloadConf === void 0 ? {} : _fetchData$reloadConf;
13889
13912
  var _reloadConfig$scroll = reloadConfig.scroll, scroll = _reloadConfig$scroll === void 0 ? false : _reloadConfig$scroll;
@@ -13900,7 +13923,7 @@ var Methods$8 = {
13900
13923
  error("ui.grid.error.notQuery");
13901
13924
  return this.$nextTick();
13902
13925
  }
13903
- var _ref209 = fetchData || dataset.source || dataset.api || {}, args = _ref209.args, loading = _ref209.loading;
13926
+ var _ref210 = fetchData || dataset.source || dataset.api || {}, args = _ref210.args, loading = _ref210.loading;
13904
13927
  var field = sortData.field, order = sortData.order, prop = sortData.prop, property = sortData.property;
13905
13928
  var sortByData = {
13906
13929
  field,
@@ -13944,7 +13967,7 @@ var Methods$8 = {
13944
13967
  }, params);
13945
13968
  }
13946
13969
  return search.then(this.loadFetchData).catch(function(error2) {
13947
- _this73.tableLoading = false;
13970
+ _this72.tableLoading = false;
13948
13971
  throw error2;
13949
13972
  });
13950
13973
  },
@@ -13966,8 +13989,8 @@ var Methods$8 = {
13966
13989
  if (pagerConfig && !Array.isArray(rest)) {
13967
13990
  var _rest$result;
13968
13991
  var total = getObj(rest, fields.total || "page.total") || (rest == null ? void 0 : (_rest$result = rest.result) == null ? void 0 : _rest$result.length) || 0;
13969
- var data6 = getObj(rest, fields.result || fields.data || "result") || [];
13970
- this.tableData = data6;
13992
+ var data7 = getObj(rest, fields.result || fields.data || "result") || [];
13993
+ this.tableData = data7;
13971
13994
  pagerConfig.total = total;
13972
13995
  var setTotal = pagerSlot && pagerSlot.componentInstance.setTotal;
13973
13996
  setTotal && setTotal(total);
@@ -14008,8 +14031,8 @@ var Methods$7 = {
14008
14031
  }
14009
14032
  },
14010
14033
  // 表格内置分页渲染器
14011
- renderPager: function renderPager(_ref210) {
14012
- var $slots = _ref210.$slots, _vm = _ref210._vm, loading = _ref210.loading, pager = _ref210.pager, pagerConfig = _ref210.pagerConfig, tableLoading = _ref210.tableLoading, vSize3 = _ref210.vSize;
14034
+ renderPager: function renderPager(_ref211) {
14035
+ var $slots = _ref211.$slots, _vm = _ref211._vm, loading = _ref211.loading, pager = _ref211.pager, pagerConfig = _ref211.pagerConfig, tableLoading = _ref211.tableLoading, vSize3 = _ref211.vSize;
14013
14036
  var res = null;
14014
14037
  var fetchData = _vm.fetchData;
14015
14038
  if ($slots.pager) {
@@ -14036,19 +14059,19 @@ var Methods$7 = {
14036
14059
  return res;
14037
14060
  },
14038
14061
  pageChangeEvent: function pageChangeEvent(params) {
14039
- var _this74 = this;
14062
+ var _this73 = this;
14040
14063
  this.tablePageLoading = true;
14041
14064
  if (!this.tasks.updatePage) {
14042
14065
  this.tasks.updatePage = debounce(200, function() {
14043
14066
  var eventParams = _extends({
14044
- $grid: _this74
14067
+ $grid: _this73
14045
14068
  }, params);
14046
- var toolbarVm = _this74.getVm("toolbar");
14047
- emitEvent(_this74, "page-change", eventParams);
14048
- _this74.emitter.emit("page-change", eventParams);
14049
- _this74.handleFetch("query").then(function() {
14050
- _this74.realTimeTablePage = _extends({}, _this74.tablePage);
14051
- _this74.tablePageLoading = false;
14069
+ var toolbarVm = _this73.getVm("toolbar");
14070
+ emitEvent(_this73, "page-change", eventParams);
14071
+ _this73.emitter.emit("page-change", eventParams);
14072
+ _this73.handleFetch("query").then(function() {
14073
+ _this73.realTimeTablePage = _extends({}, _this73.tablePage);
14074
+ _this73.tablePageLoading = false;
14052
14075
  });
14053
14076
  if (toolbarVm) {
14054
14077
  toolbarVm.orderSetting();
@@ -14070,7 +14093,7 @@ var Methods$7 = {
14070
14093
  }
14071
14094
  },
14072
14095
  beforePageChangeHandler: function beforePageChangeHandler(params) {
14073
- var _this75 = this;
14096
+ var _this74 = this;
14074
14097
  if (!this.showSaveMsg) {
14075
14098
  var eventParams = extend(false, {
14076
14099
  $grid: this
@@ -14085,8 +14108,8 @@ var Methods$7 = {
14085
14108
  var next = function next2(res) {
14086
14109
  if (res === "confirm") {
14087
14110
  rollback && rollback();
14088
- emitEvent(_this75, "cancel-page-change", _this75);
14089
- _this75.emitter.emit("cancel-page-change", _this75);
14111
+ emitEvent(_this74, "cancel-page-change", _this74);
14112
+ _this74.emitter.emit("cancel-page-change", _this74);
14090
14113
  } else {
14091
14114
  callback && callback();
14092
14115
  }
@@ -14103,8 +14126,8 @@ var Pager = {
14103
14126
  Object.assign(host.methods, Methods$7);
14104
14127
  }
14105
14128
  };
14106
- function setBodyRecords(_ref211) {
14107
- var body = _ref211.body, insertRecords = _ref211.insertRecords, pendingRecords = _ref211.pendingRecords;
14129
+ function setBodyRecords(_ref212) {
14130
+ var body = _ref212.body, insertRecords = _ref212.insertRecords, pendingRecords = _ref212.pendingRecords;
14108
14131
  if (insertRecords.length) {
14109
14132
  body.pendingRecords = pendingRecords.filter(function(row2) {
14110
14133
  return !insertRecords.includes(row2);
@@ -14119,8 +14142,8 @@ function setBodyRecords(_ref211) {
14119
14142
  function canInvokeSaveDataApi(body, removeRecords, updateRecords) {
14120
14143
  return body.insertRecords.length || removeRecords.length || updateRecords.length || body.pendingRecords.length;
14121
14144
  }
14122
- function doRemoveOrShowMsg(_ref212) {
14123
- var _vm = _ref212._vm, canInvoke = _ref212.canInvoke, code = _ref212.code, isMsg2 = _ref212.isMsg, pendingRecords = _ref212.pendingRecords, resolve = _ref212.resolve, valid = _ref212.valid;
14145
+ function doRemoveOrShowMsg(_ref213) {
14146
+ var _vm = _ref213._vm, canInvoke = _ref213.canInvoke, code = _ref213.code, isMsg2 = _ref213.isMsg, pendingRecords = _ref213.pendingRecords, resolve = _ref213.resolve, valid = _ref213.valid;
14124
14147
  if (valid && !canInvoke) {
14125
14148
  if (isMsg2) {
14126
14149
  if (pendingRecords.length) {
@@ -14136,8 +14159,8 @@ function doRemoveOrShowMsg(_ref212) {
14136
14159
  resolve();
14137
14160
  }
14138
14161
  }
14139
- function invokeSaveDataApi(_ref213) {
14140
- var _vm = _ref213._vm, args = _ref213.args, body = _ref213.body, code = _ref213.code, removeRecords = _ref213.removeRecords, resolve = _ref213.resolve, saveData = _ref213.saveData, updateRecords = _ref213.updateRecords, valid = _ref213.valid;
14162
+ function invokeSaveDataApi(_ref214) {
14163
+ var _vm = _ref214._vm, args = _ref214.args, body = _ref214.body, code = _ref214.code, removeRecords = _ref214.removeRecords, resolve = _ref214.resolve, saveData = _ref214.saveData, updateRecords = _ref214.updateRecords, valid = _ref214.valid;
14141
14164
  var canInvoke = false;
14142
14165
  if (valid) {
14143
14166
  canInvoke = canInvokeSaveDataApi(body, removeRecords, updateRecords);
@@ -14164,9 +14187,9 @@ function invokeSaveDataApi(_ref213) {
14164
14187
  }
14165
14188
  var Methods$6 = {
14166
14189
  // 表格工具栏渲染器
14167
- getRenderedToolbar: function getRenderedToolbar(_ref214) {
14168
- var $slots = _ref214.$slots, _vm = _ref214._vm, loading = _ref214.loading, tableLoading = _ref214.tableLoading, toolbar = _ref214.toolbar;
14169
- return _vm.renderedToolbar = function() {
14190
+ getRenderedToolbar: function getRenderedToolbar(_ref215) {
14191
+ var $slots = _ref215.$slots, _vm = _ref215._vm, loading = _ref215.loading, tableLoading = _ref215.tableLoading, toolbar = _ref215.toolbar;
14192
+ return _vm.renderedToolbar = (function() {
14170
14193
  var res = null;
14171
14194
  if ($slots.toolbar) {
14172
14195
  res = $slots.toolbar();
@@ -14181,10 +14204,10 @@ var Methods$6 = {
14181
14204
  });
14182
14205
  }
14183
14206
  return res;
14184
- }();
14207
+ })();
14185
14208
  },
14186
14209
  handleSave: function handleSave(code, args) {
14187
- var _this76 = this;
14210
+ var _this75 = this;
14188
14211
  var saveData = this.saveData, isMsg2 = this.isMsg;
14189
14212
  if (!saveData) {
14190
14213
  error("ui.grid.error.notSave");
@@ -14202,7 +14225,7 @@ var Methods$6 = {
14202
14225
  return;
14203
14226
  }
14204
14227
  var canInvoke = invokeSaveDataApi({
14205
- _vm: _this76,
14228
+ _vm: _this75,
14206
14229
  args,
14207
14230
  body,
14208
14231
  code,
@@ -14213,7 +14236,7 @@ var Methods$6 = {
14213
14236
  valid
14214
14237
  });
14215
14238
  doRemoveOrShowMsg({
14216
- _vm: _this76,
14239
+ _vm: _this75,
14217
14240
  canInvoke,
14218
14241
  code,
14219
14242
  isMsg: isMsg2,
@@ -14229,11 +14252,11 @@ var Methods$6 = {
14229
14252
  pendingRecords
14230
14253
  });
14231
14254
  return new Promise(function(resolve) {
14232
- _this76.validate(validRows, getCallback(resolve));
14255
+ _this75.validate(validRows, getCallback(resolve));
14233
14256
  });
14234
14257
  },
14235
14258
  handleDelete: function handleDelete(code, args) {
14236
- var _this77 = this;
14259
+ var _this76 = this;
14237
14260
  var deleteData = this.deleteData, isMsg2 = this.isMsg;
14238
14261
  if (!deleteData) {
14239
14262
  error("ui.grid.error.notDelete");
@@ -14241,7 +14264,7 @@ var Methods$6 = {
14241
14264
  }
14242
14265
  var selecteds = this.getSelectRecords(true);
14243
14266
  var afterRemove = function afterRemove2() {
14244
- var removeds = _this77.getRemoveRecords();
14267
+ var removeds = _this76.getRemoveRecords();
14245
14268
  if (!removeds.length && isMsg2 && !selecteds.length) {
14246
14269
  Modal.message({
14247
14270
  id: code,
@@ -14251,34 +14274,34 @@ var Methods$6 = {
14251
14274
  }
14252
14275
  if (removeds.length) {
14253
14276
  var apiArgs = [{
14254
- $grid: _this77,
14277
+ $grid: _this76,
14255
14278
  changeRecords: {
14256
14279
  removeRecords: removeds
14257
14280
  }
14258
14281
  }].concat(args);
14259
14282
  var stopLoading = function stopLoading2() {
14260
- _this77.tableLoading = false;
14283
+ _this76.tableLoading = false;
14261
14284
  };
14262
- _this77.tableLoading = true;
14263
- return deleteData.api.apply(_this77, apiArgs).then(stopLoading).catch(stopLoading).then(function() {
14264
- return _this77.commitProxy("reload");
14285
+ _this76.tableLoading = true;
14286
+ return deleteData.api.apply(_this76, apiArgs).then(stopLoading).catch(stopLoading).then(function() {
14287
+ return _this76.commitProxy("reload");
14265
14288
  });
14266
14289
  }
14267
14290
  };
14268
14291
  this.remove(selecteds).then(afterRemove);
14269
14292
  },
14270
- handleFullScreen: function handleFullScreen(_ref215) {
14271
- var _this78 = this;
14272
- var show2 = _ref215[0];
14293
+ handleFullScreen: function handleFullScreen(_ref216) {
14294
+ var _this77 = this;
14295
+ var show2 = _ref216[0];
14273
14296
  this.fullScreenClass = show2 ? "tiny-fullscreen-full" : "";
14274
14297
  this.$nextTick(function() {
14275
- _this78.recalculate();
14276
- emitEvent(_this78, "fullscreen", show2);
14277
- _this78.emitter.emit("fullscreen", show2);
14298
+ _this77.recalculate();
14299
+ emitEvent(_this77, "fullscreen", show2);
14300
+ _this77.emitter.emit("fullscreen", show2);
14278
14301
  });
14279
14302
  },
14280
14303
  commitProxy: function commitProxy(code) {
14281
- var _this79 = this;
14304
+ var _this78 = this;
14282
14305
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
14283
14306
  args[_key2 - 1] = arguments[_key2];
14284
14307
  }
@@ -14286,19 +14309,19 @@ var Methods$6 = {
14286
14309
  if (code === "insert") {
14287
14310
  this.insert();
14288
14311
  } else if (code === "insert_actived") {
14289
- this.insert().then(function(_ref216) {
14290
- var row2 = _ref216.row;
14291
- return _this79.setActiveRow(row2);
14312
+ this.insert().then(function(_ref217) {
14313
+ var row2 = _ref217.row;
14314
+ return _this78.setActiveRow(row2);
14292
14315
  });
14293
14316
  } else if (code === "mark_cancel") {
14294
14317
  this.triggerPendingEvent(code);
14295
14318
  } else if (code === "delete_selection") {
14296
14319
  this.handleDeleteRow(code, "ui.grid.deleteSelectRecord", function() {
14297
- return _this79.commitProxy(["delete"].concat(args));
14320
+ return _this78.commitProxy(["delete"].concat(args));
14298
14321
  });
14299
14322
  } else if (code === "remove_selection") {
14300
14323
  this.handleDeleteRow(code, "ui.grid.removeSelectRecord", function() {
14301
- return _this79.removeSelecteds();
14324
+ return _this78.removeSelecteds();
14302
14325
  });
14303
14326
  } else if (code === "export") {
14304
14327
  this.exportCsv();
@@ -14374,11 +14397,11 @@ var Methods$6 = {
14374
14397
  });
14375
14398
  }
14376
14399
  if (selecteds.length) {
14377
- var _ref217 = {}, _ref217$plus = _ref217.plus, plus = _ref217$plus === void 0 ? [] : _ref217$plus, _ref217$minus = _ref217.minus, minus = _ref217$minus === void 0 ? [] : _ref217$minus, tmp = _ref217.tmp;
14378
- selecteds.forEach(function(data6) {
14379
- var selectedPending = pendings.includes(data6);
14400
+ 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;
14401
+ selecteds.forEach(function(data7) {
14402
+ var selectedPending = pendings.includes(data7);
14380
14403
  tmp = selectedPending ? minus : plus;
14381
- tmp.push(data6);
14404
+ tmp.push(data7);
14382
14405
  });
14383
14406
  tmp = minus.length ? pendings.filter(function(item) {
14384
14407
  return !~minus.indexOf(item);
@@ -14397,8 +14420,8 @@ var Toolbar = {
14397
14420
  };
14398
14421
  var Methods$5 = {
14399
14422
  renderColumnAnchor: function renderColumnAnchor(params, _vm) {
14400
- var _ref218 = params || {}, _ref218$anchors = _ref218.anchors, anchors = _ref218$anchors === void 0 ? [] : _ref218$anchors, _ref218$action = _ref218.action, action = _ref218$action === void 0 ? function() {
14401
- } : _ref218$action;
14423
+ var _ref219 = params || {}, _ref219$anchors = _ref219.anchors, anchors = _ref219$anchors === void 0 ? [] : _ref219$anchors, _ref219$action = _ref219.action, action = _ref219$action === void 0 ? function() {
14424
+ } : _ref219$action;
14402
14425
  var viewType2 = _vm.viewType;
14403
14426
  return h("div", {
14404
14427
  class: ["tiny-grid__column-anchor", _vm.viewCls("columnAnchor")],
@@ -14433,8 +14456,8 @@ var Methods$5 = {
14433
14456
  }, [iconVnode, spanVnode]);
14434
14457
  }));
14435
14458
  },
14436
- buildColumnAnchor: function buildColumnAnchor(_ref219) {
14437
- var property = _ref219.property, label = _ref219.label, anchors = _ref219.anchors, activeAnchor = _ref219.activeAnchor;
14459
+ buildColumnAnchor: function buildColumnAnchor(_ref220) {
14460
+ var property = _ref220.property, label = _ref220.label, anchors = _ref220.anchors, activeAnchor = _ref220.activeAnchor;
14438
14461
  var visibleColumn = this.getColumns();
14439
14462
  var column = visibleColumn.find(function(col) {
14440
14463
  return !col.type && col.property === property;
@@ -14468,7 +14491,7 @@ var Methods$5 = {
14468
14491
  }
14469
14492
  },
14470
14493
  buildColumnAnchorParams: function buildColumnAnchorParams() {
14471
- var _this80 = this;
14494
+ var _this79 = this;
14472
14495
  var columnAnchor = this.columnAnchor;
14473
14496
  var anchors = [];
14474
14497
  var activeAnchor = {
@@ -14478,19 +14501,19 @@ var Methods$5 = {
14478
14501
  if (Array.isArray(columnAnchor) && columnAnchor.length) {
14479
14502
  columnAnchor.forEach(function(item) {
14480
14503
  if (typeof item === "string") {
14481
- _this80.buildColumnAnchor({
14504
+ _this79.buildColumnAnchor({
14482
14505
  property: item,
14483
14506
  anchors
14484
14507
  });
14485
14508
  } else if (Array.isArray(item)) {
14486
- if (item.length > 1) _this80.buildColumnAnchor({
14509
+ if (item.length > 1) _this79.buildColumnAnchor({
14487
14510
  property: item[0],
14488
14511
  label: item[1],
14489
14512
  anchors
14490
14513
  });
14491
14514
  } else if (item && typeof item === "object") {
14492
14515
  var field = item.field, other = _objectWithoutPropertiesLoose(item, _excluded2);
14493
- _this80.buildColumnAnchor({
14516
+ _this79.buildColumnAnchor({
14494
14517
  property: field,
14495
14518
  label: other,
14496
14519
  anchors,
@@ -14506,27 +14529,27 @@ var Methods$5 = {
14506
14529
  anchors,
14507
14530
  activeAnchor,
14508
14531
  action: function action(field, e) {
14509
- return _this80.anchorAction({
14532
+ return _this79.anchorAction({
14510
14533
  field,
14511
14534
  anchors,
14512
- _vm: _this80,
14535
+ _vm: _this79,
14513
14536
  e
14514
14537
  });
14515
14538
  }
14516
14539
  };
14517
14540
  this._delayActivateAnchor = function() {
14518
- _this80._delayActivateAnchor = void 0;
14541
+ _this79._delayActivateAnchor = void 0;
14519
14542
  setTimeout(function() {
14520
- return _this80.anchorAction({
14543
+ return _this79.anchorAction({
14521
14544
  field: activeAnchor.field,
14522
14545
  anchors,
14523
- _vm: _this80
14546
+ _vm: _this79
14524
14547
  });
14525
14548
  }, activeAnchor.delay);
14526
14549
  };
14527
14550
  },
14528
- anchorAction: function anchorAction(_ref220) {
14529
- var field = _ref220.field, anchors = _ref220.anchors, _vm = _ref220._vm;
14551
+ anchorAction: function anchorAction(_ref221) {
14552
+ var field = _ref221.field, anchors = _ref221.anchors, _vm = _ref221._vm;
14530
14553
  var fromAnchor = anchors.find(function(anchor) {
14531
14554
  return anchor.active;
14532
14555
  });
@@ -14572,8 +14595,8 @@ var ColumnAnchor = {
14572
14595
  Object.assign(host.methods, Methods$5);
14573
14596
  }
14574
14597
  };
14575
- var createHandlerOnEnd = function createHandlerOnEnd2(_ref221) {
14576
- var _vm = _ref221._vm, refresh = _ref221.refresh;
14598
+ var createHandlerOnEnd = function createHandlerOnEnd2(_ref222) {
14599
+ var _vm = _ref222._vm, refresh = _ref222.refresh;
14577
14600
  return function(event) {
14578
14601
  var insertRecords = _vm.getInsertRecords();
14579
14602
  if (insertRecords.length) {
@@ -14619,7 +14642,7 @@ var createHandlerOnEnd = function createHandlerOnEnd2(_ref221) {
14619
14642
  _vm.tableFullData = [].concat(tableTreeData);
14620
14643
  }
14621
14644
  _vm.$emit("row-drop-end", event, _vm, _vm.scrollYLoad ? tableTreeData : _vm.tableFullData);
14622
- refresh && _vm.data && !isVue2 && _vm.refreshData(_vm.data);
14645
+ refresh && _vm.data && _vm.refreshData(_vm.data);
14623
14646
  };
14624
14647
  };
14625
14648
  var getSortColumns = function getSortColumns2(columns2) {
@@ -14641,15 +14664,15 @@ var getSortColumns = function getSortColumns2(columns2) {
14641
14664
  var Methods$4 = {
14642
14665
  // 处理列拖拽
14643
14666
  columnDrop: function columnDrop(headerEl) {
14644
- var _this81 = this;
14645
- var _ref222 = this.dropConfig || {}, plugin = _ref222.plugin, onBeforeMove = _ref222.onBeforeMove, filter2 = _ref222.filter;
14667
+ var _this80 = this;
14668
+ var _ref223 = this.dropConfig || {}, plugin = _ref223.plugin, onBeforeMove = _ref223.onBeforeMove, filter2 = _ref223.filter;
14646
14669
  var columnDropContainer = headerEl.querySelector(".tiny-grid-header__row");
14647
14670
  var columnDropOptions = _extends({}, this.dropConfig, {
14648
14671
  handle: ".tiny-grid-header__column:not(.col__fixed)",
14649
14672
  filter: filter2,
14650
14673
  onEnd: function onEnd(event) {
14651
14674
  var item = event.item, newIndex = event.newIndex, oldIndex = event.oldIndex;
14652
- var _this81$getTableColum = _this81.getTableColumn(), fullColumn = _this81$getTableColum.fullColumn, tableColumn2 = _this81$getTableColum.tableColumn;
14675
+ var _this80$getTableColum = _this80.getTableColumn(), fullColumn = _this80$getTableColum.fullColumn, tableColumn2 = _this80$getTableColum.tableColumn;
14653
14676
  var sortVisibleCols = getSortColumns(tableColumn2);
14654
14677
  var targetThElem = item;
14655
14678
  var wrapperElem = targetThElem.parentNode;
@@ -14670,21 +14693,21 @@ var Methods$4 = {
14670
14693
  status: "error"
14671
14694
  });
14672
14695
  }
14673
- var oldColumnIndex = _this81.getColumnIndex(sortVisibleCols[oldIndex]);
14674
- var newColumnIndex = _this81.getColumnIndex(sortVisibleCols[newIndex]);
14696
+ var oldColumnIndex = _this80.getColumnIndex(sortVisibleCols[oldIndex]);
14697
+ var newColumnIndex = _this80.getColumnIndex(sortVisibleCols[newIndex]);
14675
14698
  var currCol = fullColumn.splice(oldColumnIndex, 1)[0];
14676
14699
  fullColumn.splice(newColumnIndex, 0, currCol);
14677
- _this81.loadColumn(fullColumn);
14678
- _this81.$emit("column-drop-end", event, _this81);
14679
- var toolbarVm = _this81.getVm("toolbar");
14680
- _this81.isDragHeaderSorting && toolbarVm && toolbarVm.updateSetting();
14700
+ _this80.loadColumn(fullColumn);
14701
+ _this80.$emit("column-drop-end", event, _this80);
14702
+ var toolbarVm = _this80.getVm("toolbar");
14703
+ _this80.isDragHeaderSorting && toolbarVm && toolbarVm.updateSetting();
14681
14704
  },
14682
14705
  onStart: function onStart(event) {
14683
- _this81.$emit("column-drop-start", event, _this81);
14706
+ _this80.$emit("column-drop-start", event, _this80);
14684
14707
  },
14685
14708
  onMove: function onMove(event) {
14686
- var cancel = typeof onBeforeMove === "function" ? onBeforeMove("column", null, event, _this81) : true;
14687
- _this81.$emit("column-drop-move", event, _this81);
14709
+ var cancel = typeof onBeforeMove === "function" ? onBeforeMove("column", null, event, _this80) : true;
14710
+ _this80.$emit("column-drop-move", event, _this80);
14688
14711
  return cancel === void 0 || cancel;
14689
14712
  }
14690
14713
  });
@@ -14692,7 +14715,7 @@ var Methods$4 = {
14692
14715
  },
14693
14716
  // 处理行拖拽
14694
14717
  rowDrop: function rowDrop(bodyEl) {
14695
- var _this82 = this;
14718
+ var _this81 = this;
14696
14719
  var _this$dropConfig = this.dropConfig, plugin = _this$dropConfig.plugin, onBeforeMove = _this$dropConfig.onBeforeMove, filter2 = _this$dropConfig.filter, _this$dropConfig$refr = _this$dropConfig.refresh, refresh = _this$dropConfig$refr === void 0 ? true : _this$dropConfig$refr, rowHandle = _this$dropConfig.rowHandle, trigger = _this$dropConfig.trigger;
14697
14720
  var rowDropContainer = bodyEl.querySelector(".tiny-grid__body tbody");
14698
14721
  var handle = trigger || ".tiny-grid-body__row";
@@ -14707,15 +14730,15 @@ var Methods$4 = {
14707
14730
  refresh
14708
14731
  }),
14709
14732
  onStart: function onStart(event) {
14710
- _this82.$emit("row-drop-start", event, _this82);
14733
+ _this81.$emit("row-drop-start", event, _this81);
14711
14734
  },
14712
14735
  onMove: function onMove(event) {
14713
- var insertRecords = _this82.getInsertRecords();
14736
+ var insertRecords = _this81.getInsertRecords();
14714
14737
  if (insertRecords.length) return false;
14715
14738
  var dragged = event.dragged;
14716
- var selfRow = _this82.getRowNode(dragged).item;
14717
- var cancel = typeof onBeforeMove === "function" ? onBeforeMove("row", selfRow, event, _this82) : true;
14718
- _this82.$emit("row-drop-move", event, _this82);
14739
+ var selfRow = _this81.getRowNode(dragged).item;
14740
+ var cancel = typeof onBeforeMove === "function" ? onBeforeMove("row", selfRow, event, _this81) : true;
14741
+ _this81.$emit("row-drop-move", event, _this81);
14719
14742
  return cancel === void 0 || cancel;
14720
14743
  }
14721
14744
  });
@@ -14735,8 +14758,8 @@ var Sort = {
14735
14758
  Object.assign(host.methods, Methods$3);
14736
14759
  }
14737
14760
  };
14738
- function createTooltipRange(_ref223) {
14739
- var _vm = _ref223._vm, cell = _ref223.cell, column = _ref223.column, isHeader = _ref223.isHeader;
14761
+ function createTooltipRange(_ref224) {
14762
+ var _vm = _ref224._vm, cell = _ref224.cell, column = _ref224.column, isHeader = _ref224.isHeader;
14740
14763
  var range = document.createRange();
14741
14764
  var rangeEnd;
14742
14765
  range.setStart(cell, 0);
@@ -14754,8 +14777,8 @@ function createTooltipRange(_ref223) {
14754
14777
  range.setEnd(cell, rangeEnd);
14755
14778
  return range;
14756
14779
  }
14757
- function processContentMethod(_ref224) {
14758
- var _vm = _ref224._vm, column = _ref224.column, content = _ref224.content, contentMethod = _ref224.contentMethod, event = _ref224.event, isHeader = _ref224.isHeader, row2 = _ref224.row, showTip = _ref224.showTip;
14780
+ function processContentMethod(_ref225) {
14781
+ var _vm = _ref225._vm, column = _ref225.column, content = _ref225.content, contentMethod = _ref225.contentMethod, event = _ref225.event, isHeader = _ref225.isHeader, row2 = _ref225.row, showTip = _ref225.showTip;
14759
14782
  if (contentMethod) {
14760
14783
  _vm.tooltipContent = contentMethod({
14761
14784
  event,
@@ -14907,15 +14930,15 @@ var Tooltip = {
14907
14930
  Object.assign(host.methods, Methods$2);
14908
14931
  }
14909
14932
  };
14910
- function onHalfSelectionProperty(_ref225) {
14911
- var checkStrictly = _ref225.checkStrictly, property = _ref225.property, row2 = _ref225.row, treeConfig = _ref225.treeConfig, treeIndeterminates = _ref225.treeIndeterminates, value = _ref225.value;
14933
+ function onHalfSelectionProperty(_ref226) {
14934
+ var checkStrictly = _ref226.checkStrictly, property = _ref226.property, row2 = _ref226.row, treeConfig = _ref226.treeConfig, treeIndeterminates = _ref226.treeIndeterminates, value = _ref226.value;
14912
14935
  if (property && treeConfig && !checkStrictly && value === -1) {
14913
14936
  treeIndeterminates.push(row2);
14914
14937
  set(row2, property, false);
14915
14938
  }
14916
14939
  }
14917
- function onFullSelectionProperty(_ref226) {
14918
- var checkMethod = _ref226.checkMethod, checkStrictly = _ref226.checkStrictly, property = _ref226.property, row2 = _ref226.row, treeConfig = _ref226.treeConfig, treeIndeterminates = _ref226.treeIndeterminates, value = _ref226.value;
14940
+ function onFullSelectionProperty(_ref227) {
14941
+ var checkMethod = _ref227.checkMethod, checkStrictly = _ref227.checkStrictly, property = _ref227.property, row2 = _ref227.row, treeConfig = _ref227.treeConfig, treeIndeterminates = _ref227.treeIndeterminates, value = _ref227.value;
14919
14942
  if (property && treeConfig && !checkStrictly && value !== -1) {
14920
14943
  eachTree([row2], function(item, $rowIndex) {
14921
14944
  if (row2 === item || !checkMethod || checkMethod({
@@ -14930,8 +14953,8 @@ function onFullSelectionProperty(_ref226) {
14930
14953
  }, treeConfig);
14931
14954
  }
14932
14955
  }
14933
- function getVItemsOnParentSlctProp(_ref227) {
14934
- var checkMethod = _ref227.checkMethod, matchObj = _ref227.matchObj;
14956
+ function getVItemsOnParentSlctProp(_ref228) {
14957
+ var checkMethod = _ref228.checkMethod, matchObj = _ref228.matchObj;
14935
14958
  var tinyItems;
14936
14959
  if (checkMethod) {
14937
14960
  tinyItems = matchObj.items.filter(function(item, $rowIndex) {
@@ -14945,8 +14968,8 @@ function getVItemsOnParentSlctProp(_ref227) {
14945
14968
  }
14946
14969
  return tinyItems;
14947
14970
  }
14948
- function getParentStatusOnParentSlctProp(_ref228) {
14949
- var indeterminatesItem = _ref228.indeterminatesItem, matchObj = _ref228.matchObj, property = _ref228.property, vItems = _ref228.vItems, value = _ref228.value;
14971
+ function getParentStatusOnParentSlctProp(_ref229) {
14972
+ var indeterminatesItem = _ref229.indeterminatesItem, matchObj = _ref229.matchObj, property = _ref229.property, vItems = _ref229.vItems, value = _ref229.value;
14950
14973
  var parentStatus;
14951
14974
  if (indeterminatesItem) {
14952
14975
  parentStatus = -1;
@@ -14961,8 +14984,8 @@ function getParentStatusOnParentSlctProp(_ref228) {
14961
14984
  }
14962
14985
  return parentStatus;
14963
14986
  }
14964
- function onHalfSelection(_ref229) {
14965
- var checkStrictly = _ref229.checkStrictly, property = _ref229.property, row2 = _ref229.row, selection = _ref229.selection, treeConfig = _ref229.treeConfig, treeIndeterminates = _ref229.treeIndeterminates, value = _ref229.value;
14987
+ function onHalfSelection(_ref230) {
14988
+ var checkStrictly = _ref230.checkStrictly, property = _ref230.property, row2 = _ref230.row, selection = _ref230.selection, treeConfig = _ref230.treeConfig, treeIndeterminates = _ref230.treeIndeterminates, value = _ref230.value;
14966
14989
  if (!property && treeConfig && !checkStrictly && value === -1) {
14967
14990
  treeIndeterminates.push(row2);
14968
14991
  remove(selection, function(item) {
@@ -14973,8 +14996,8 @@ function onHalfSelection(_ref229) {
14973
14996
  var addSelection = function addSelection2(selection, item) {
14974
14997
  return !selection.includes(item) && selection.push(item);
14975
14998
  };
14976
- function onFullSelection(_ref230) {
14977
- var checkMethod = _ref230.checkMethod, checkStrictly = _ref230.checkStrictly, property = _ref230.property, row2 = _ref230.row, selection = _ref230.selection, treeConfig = _ref230.treeConfig, treeIndeterminates = _ref230.treeIndeterminates, value = _ref230.value;
14999
+ function onFullSelection(_ref231) {
15000
+ var checkMethod = _ref231.checkMethod, checkStrictly = _ref231.checkStrictly, property = _ref231.property, row2 = _ref231.row, selection = _ref231.selection, treeConfig = _ref231.treeConfig, treeIndeterminates = _ref231.treeIndeterminates, value = _ref231.value;
14978
15001
  if (!property && treeConfig && !checkStrictly && value !== -1) {
14979
15002
  eachTree([row2], function(item, $rowIndex) {
14980
15003
  if (row2 === item || !checkMethod || checkMethod({
@@ -14995,8 +15018,8 @@ function onFullSelection(_ref230) {
14995
15018
  }, treeConfig);
14996
15019
  }
14997
15020
  }
14998
- function getParentStatusOnParentSelection(_ref231) {
14999
- var indeterminatesItem = _ref231.indeterminatesItem, matchObj = _ref231.matchObj, selection = _ref231.selection, vItems = _ref231.vItems, value = _ref231.value;
15021
+ function getParentStatusOnParentSelection(_ref232) {
15022
+ var indeterminatesItem = _ref232.indeterminatesItem, matchObj = _ref232.matchObj, selection = _ref232.selection, vItems = _ref232.vItems, value = _ref232.value;
15000
15023
  var parentStatus;
15001
15024
  if (indeterminatesItem) {
15002
15025
  parentStatus = -1;
@@ -15009,8 +15032,8 @@ function getParentStatusOnParentSelection(_ref231) {
15009
15032
  }
15010
15033
  return parentStatus;
15011
15034
  }
15012
- function hasCheckField(_ref232, value, _vm) {
15013
- var row2 = _ref232.row;
15035
+ function hasCheckField(_ref233, value, _vm) {
15036
+ var row2 = _ref233.row;
15014
15037
  var tableFullData = _vm.tableFullData, _vm$selectConfig = _vm.selectConfig, selectConfig = _vm$selectConfig === void 0 ? {} : _vm$selectConfig, treeConfig = _vm.treeConfig, treeIndeterminates = _vm.treeIndeterminates;
15015
15038
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly, checkMethod = selectConfig.checkMethod;
15016
15039
  onHalfSelectionProperty({
@@ -15058,8 +15081,8 @@ function hasCheckField(_ref232, value, _vm) {
15058
15081
  set(row2, property, value);
15059
15082
  }
15060
15083
  }
15061
- function onSelectTreeCheckStrictly(_ref233, value, _vm) {
15062
- var row2 = _ref233.row;
15084
+ function onSelectTreeCheckStrictly(_ref234, value, _vm) {
15085
+ var row2 = _ref234.row;
15063
15086
  var selection = _vm.selection, tableFullData = _vm.tableFullData, _vm$selectConfig2 = _vm.selectConfig, selectConfig = _vm$selectConfig2 === void 0 ? {} : _vm$selectConfig2, treeConfig = _vm.treeConfig, treeIndeterminates = _vm.treeIndeterminates;
15064
15087
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly, checkMethod = selectConfig.checkMethod;
15065
15088
  onHalfSelection({
@@ -15103,8 +15126,8 @@ function onSelectTreeCheckStrictly(_ref233, value, _vm) {
15103
15126
  }
15104
15127
  }
15105
15128
  }
15106
- function onSelectOther(_ref234, value, _vm) {
15107
- var row2 = _ref234.row;
15129
+ function onSelectOther(_ref235, value, _vm) {
15130
+ var row2 = _ref235.row;
15108
15131
  var selection = _vm.selection, _vm$selectConfig3 = _vm.selectConfig, selectConfig = _vm$selectConfig3 === void 0 ? {} : _vm$selectConfig3, treeConfig = _vm.treeConfig;
15109
15132
  var property = selectConfig.checkField, checkStrictly = selectConfig.checkStrictly;
15110
15133
  if (!property && !(treeConfig && !checkStrictly)) {
@@ -15117,8 +15140,8 @@ function onSelectOther(_ref234, value, _vm) {
15117
15140
  }
15118
15141
  }
15119
15142
  }
15120
- function hasNoCheckField(_ref235, value, _vm) {
15121
- var row2 = _ref235.row;
15143
+ function hasNoCheckField(_ref236, value, _vm) {
15144
+ var row2 = _ref236.row;
15122
15145
  onSelectTreeCheckStrictly({
15123
15146
  row: row2
15124
15147
  }, value, _vm);
@@ -15126,8 +15149,8 @@ function hasNoCheckField(_ref235, value, _vm) {
15126
15149
  row: row2
15127
15150
  }, value, _vm);
15128
15151
  }
15129
- function pushSelectRow(_ref236) {
15130
- var afterFullData = _ref236.afterFullData, checkMethod = _ref236.checkMethod, checkStrictly = _ref236.checkStrictly; _ref236.property; var selectRows = _ref236.selectRows, selection = _ref236.selection, treeConfig = _ref236.treeConfig, value = _ref236.value;
15152
+ function pushSelectRow(_ref237) {
15153
+ var afterFullData = _ref237.afterFullData, checkMethod = _ref237.checkMethod, checkStrictly = _ref237.checkStrictly; _ref237.property; var selectRows = _ref237.selectRows, selection = _ref237.selection, treeConfig = _ref237.treeConfig, value = _ref237.value;
15131
15154
  if (!checkStrictly && value) {
15132
15155
  eachTree(afterFullData, function(row2, $rowIndex) {
15133
15156
  if (!checkMethod || checkMethod({
@@ -15149,8 +15172,8 @@ function pushSelectRow(_ref236) {
15149
15172
  }, treeConfig);
15150
15173
  }
15151
15174
  }
15152
- function hasCheckFieldNoStrictly(_ref237) {
15153
- var afterFullData = _ref237.afterFullData, checkMethod = _ref237.checkMethod, checkStrictly = _ref237.checkStrictly, property = _ref237.property, selection = _ref237.selection, treeConfig = _ref237.treeConfig, value = _ref237.value;
15175
+ function hasCheckFieldNoStrictly(_ref238) {
15176
+ var afterFullData = _ref238.afterFullData, checkMethod = _ref238.checkMethod, checkStrictly = _ref238.checkStrictly, property = _ref238.property, selection = _ref238.selection, treeConfig = _ref238.treeConfig, value = _ref238.value;
15154
15177
  if (!checkStrictly && property) {
15155
15178
  var indexKey = (treeConfig ? "$" : "") + "rowIndex";
15156
15179
  var setValFn = function setValFn2(row2, rowIndex) {
@@ -15176,8 +15199,8 @@ function hasCheckFieldNoStrictly(_ref237) {
15176
15199
  }
15177
15200
  }
15178
15201
  }
15179
- function filterSelectRow(_ref238) {
15180
- var afterFullData = _ref238.afterFullData, checkMethod = _ref238.checkMethod, checkStrictly = _ref238.checkStrictly, selectRows = _ref238.selectRows, selection = _ref238.selection, value = _ref238.value;
15202
+ function filterSelectRow(_ref239) {
15203
+ var afterFullData = _ref239.afterFullData, checkMethod = _ref239.checkMethod, checkStrictly = _ref239.checkStrictly, selectRows = _ref239.selectRows, selection = _ref239.selection, value = _ref239.value;
15181
15204
  if (!checkStrictly && value && checkMethod) {
15182
15205
  selectRows = afterFullData.filter(function(row2, rowIndex) {
15183
15206
  return selection.includes(row2) || checkMethod({
@@ -15199,8 +15222,8 @@ function filterSelectRow(_ref238) {
15199
15222
  }
15200
15223
  return selectRows;
15201
15224
  }
15202
- function hasNoCheckFieldNoStrictly(_ref239) {
15203
- var afterFullData = _ref239.afterFullData, checkMethod = _ref239.checkMethod, checkStrictly = _ref239.checkStrictly, property = _ref239.property, selection = _ref239.selection, treeConfig = _ref239.treeConfig, value = _ref239.value;
15225
+ function hasNoCheckFieldNoStrictly(_ref240) {
15226
+ var afterFullData = _ref240.afterFullData, checkMethod = _ref240.checkMethod, checkStrictly = _ref240.checkStrictly, property = _ref240.property, selection = _ref240.selection, treeConfig = _ref240.treeConfig, value = _ref240.value;
15204
15227
  var selectRows = [];
15205
15228
  if (treeConfig) {
15206
15229
  pushSelectRow({
@@ -15225,8 +15248,8 @@ function hasNoCheckFieldNoStrictly(_ref239) {
15225
15248
  }
15226
15249
  return selectRows;
15227
15250
  }
15228
- function setSelectionNoStrictly(_ref240) {
15229
- var _vm = _ref240._vm, checkStrictly = _ref240.checkStrictly, reserve = _ref240.reserve, selectRows = _ref240.selectRows, selection = _ref240.selection, value = _ref240.value, afterFullData = _ref240.afterFullData;
15251
+ function setSelectionNoStrictly(_ref241) {
15252
+ var _vm = _ref241._vm, checkStrictly = _ref241.checkStrictly, reserve = _ref241.reserve, selectRows = _ref241.selectRows, selection = _ref241.selection, value = _ref241.value, afterFullData = _ref241.afterFullData;
15230
15253
  if (!checkStrictly) {
15231
15254
  if (reserve) {
15232
15255
  var unCheckedRows = afterFullData.filter(function(row2) {
@@ -15246,7 +15269,7 @@ var Methods$1 = {
15246
15269
  // 处理默认勾选
15247
15270
  handleSelectionDefChecked: function handleSelectionDefChecked() {
15248
15271
  var fullDataRowIdData = this.fullDataRowIdData;
15249
- var _ref241 = this.selectConfig || {}, checkAll = _ref241.checkAll, checkRowKeys = _ref241.checkRowKeys;
15272
+ var _ref242 = this.selectConfig || {}, checkAll = _ref242.checkAll, checkRowKeys = _ref242.checkRowKeys;
15250
15273
  if (checkAll) {
15251
15274
  this.setAllSelection(true);
15252
15275
  return;
@@ -15266,13 +15289,13 @@ var Methods$1 = {
15266
15289
  }
15267
15290
  },
15268
15291
  setSelection: function setSelection(rows, value) {
15269
- var _this83 = this;
15292
+ var _this82 = this;
15270
15293
  if (rows) {
15271
15294
  if (!isArray(rows)) {
15272
15295
  rows = [rows];
15273
15296
  }
15274
15297
  rows.forEach(function(row2) {
15275
- return _this83.handleSelectRow({
15298
+ return _this82.handleSelectRow({
15276
15299
  row: row2
15277
15300
  }, !!value);
15278
15301
  });
@@ -15280,8 +15303,8 @@ var Methods$1 = {
15280
15303
  return this.$nextTick();
15281
15304
  },
15282
15305
  // 多选,行选中事件。value:选中true、不选false、不确定-1
15283
- handleSelectRow: function handleSelectRow(_ref242, value) {
15284
- var row2 = _ref242.row;
15306
+ handleSelectRow: function handleSelectRow(_ref243, value) {
15307
+ var row2 = _ref243.row;
15285
15308
  hasCheckField({
15286
15309
  row: row2
15287
15310
  }, value, this);
@@ -15292,7 +15315,7 @@ var Methods$1 = {
15292
15315
  },
15293
15316
  handleToggleCheckRowEvent: function handleToggleCheckRowEvent(params, event) {
15294
15317
  var selection = this.selection;
15295
- var _ref243 = this.selectConfig || {}, checkField = _ref243.checkField;
15318
+ var _ref244 = this.selectConfig || {}, checkField = _ref244.checkField;
15296
15319
  var row2 = params.row;
15297
15320
  var value = checkField ? !get(row2, checkField) : !~selection.indexOf(row2);
15298
15321
  if (event) {
@@ -15360,8 +15383,8 @@ var Methods$1 = {
15360
15383
  // 根据表格选中状态,给头部复现框赋值状态(全选,半选,未选)
15361
15384
  checkSelectionStatus: function checkSelectionStatus() {
15362
15385
  var afterFullData = this.afterFullData, selection = this.selection, treeIndeterminates = this.treeIndeterminates;
15363
- var _ref244 = this.selectConfig || {}, checkField = _ref244.checkField, checkMethod = _ref244.checkMethod;
15364
- var _ref245 = {}, everyHandler = _ref245.everyHandler, someHandler = _ref245.someHandler;
15386
+ var _ref245 = this.selectConfig || {}, checkField = _ref245.checkField, checkMethod = _ref245.checkMethod;
15387
+ var _ref246 = {}, everyHandler = _ref246.everyHandler, someHandler = _ref246.someHandler;
15365
15388
  if (checkField) {
15366
15389
  everyHandler = checkMethod ? function(row2, rowIndex) {
15367
15390
  return !checkMethod({
@@ -15410,7 +15433,7 @@ var Methods$1 = {
15410
15433
  // 保留选中状态
15411
15434
  reserveCheckSelection: function reserveCheckSelection() {
15412
15435
  var fullDataRowIdData = this.fullDataRowIdData, selection = this.selection;
15413
- var _ref246 = this.selectConfig || {}, reserve = _ref246.reserve;
15436
+ var _ref247 = this.selectConfig || {}, reserve = _ref247.reserve;
15414
15437
  var rowkey = getRowkey(this);
15415
15438
  if (reserve && selection.length) {
15416
15439
  this.selection = selection.map(function(row2) {
@@ -15438,7 +15461,7 @@ var Methods$1 = {
15438
15461
  },
15439
15462
  clearSelection: function clearSelection() {
15440
15463
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
15441
- var _ref247 = this.selectConfig || {}, checkField = _ref247.checkField;
15464
+ var _ref248 = this.selectConfig || {}, checkField = _ref248.checkField;
15442
15465
  if (checkField) {
15443
15466
  treeConfig ? eachTree(tableFullData, function(item) {
15444
15467
  return set(item, checkField, false);
@@ -15564,9 +15587,9 @@ var Checkbox = {
15564
15587
  };
15565
15588
  var Methods = {
15566
15589
  // 展开树节点事件
15567
- triggerTreeExpandEvent: function triggerTreeExpandEvent(event, _ref248) {
15568
- var _this84 = this;
15569
- var row2 = _ref248.row;
15590
+ triggerTreeExpandEvent: function triggerTreeExpandEvent(event, _ref249) {
15591
+ var _this83 = this;
15592
+ var row2 = _ref249.row;
15570
15593
  var currentColumn = this.currentColumn, currentRow = this.currentRow;
15571
15594
  var rest = this.toggleTreeExpansion(row2);
15572
15595
  var eventParams = {
@@ -15577,9 +15600,9 @@ var Methods = {
15577
15600
  emitEvent(this, "toggle-tree-change", [eventParams, event]);
15578
15601
  this.$nextTick(function() {
15579
15602
  if (currentRow) {
15580
- _this84.setCurrentRow(currentRow);
15603
+ _this83.setCurrentRow(currentRow);
15581
15604
  } else if (currentColumn) {
15582
- _this84.setCurrentColumn(currentColumn);
15605
+ _this83.setCurrentColumn(currentColumn);
15583
15606
  }
15584
15607
  });
15585
15608
  return rest;
@@ -15590,7 +15613,7 @@ var Methods = {
15590
15613
  },
15591
15614
  // 处理默认展开树节点
15592
15615
  handleDefaultTreeExpand: function handleDefaultTreeExpand() {
15593
- var _this85 = this;
15616
+ var _this84 = this;
15594
15617
  var tableFullData = this.tableFullData, treeConfig = this.treeConfig;
15595
15618
  if (!treeConfig) return;
15596
15619
  var children = treeConfig.children, expandAll = treeConfig.expandAll, rowids = treeConfig.expandRowKeys;
@@ -15603,7 +15626,7 @@ var Methods = {
15603
15626
  filterTree(tableFullData, function(row2) {
15604
15627
  return isNonEmptyArr(row2[children]) && treeExpandeds.push(row2);
15605
15628
  }, treeConfig);
15606
- _this85.treeExpandeds = treeExpandeds;
15629
+ _this84.treeExpandeds = treeExpandeds;
15607
15630
  };
15608
15631
  var doExpandRows = function doExpandRows2() {
15609
15632
  rowids.forEach(function(rowid2) {
@@ -15612,7 +15635,7 @@ var Methods = {
15612
15635
  }, treeConfig);
15613
15636
  matchObj && isNonEmptyArr(matchObj.item[children]) && treeExpandeds.push(matchObj.item);
15614
15637
  });
15615
- _this85.treeExpandeds = treeExpandeds;
15638
+ _this84.treeExpandeds = treeExpandeds;
15616
15639
  };
15617
15640
  expandAll ? doExpandAll() : rowids ? doExpandRows() : "";
15618
15641
  graphFullData(this);
@@ -15677,12 +15700,12 @@ var Methods = {
15677
15700
  return ~this.treeExpandeds.indexOf(row2);
15678
15701
  },
15679
15702
  clearTreeExpand: function clearTreeExpand() {
15680
- var _this86 = this;
15703
+ var _this85 = this;
15681
15704
  var hasExpand = this.treeExpandeds.length;
15682
15705
  this.treeExpandeds = [];
15683
15706
  graphFullData(this);
15684
15707
  return this.handleTableData().then(function() {
15685
- return hasExpand ? _this86.recalculate() : 0;
15708
+ return hasExpand ? _this85.recalculate() : 0;
15686
15709
  });
15687
15710
  },
15688
15711
  getTreeExpandeds: function getTreeExpandeds() {