vxe-table 3.9.0-rc.2 → 3.9.0-rc.21

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.
Files changed (186) hide show
  1. package/es/grid/src/grid.js +120 -66
  2. package/es/locale/lang/en-US.js +2 -8
  3. package/es/locale/lang/es-ES.js +2 -1
  4. package/es/locale/lang/hu-HU.d.ts +2 -0
  5. package/es/locale/lang/hu-HU.js +497 -501
  6. package/es/locale/lang/ja-JP.js +2 -8
  7. package/es/locale/lang/ko-KR.d.ts +2 -0
  8. package/es/locale/lang/ko-KR.js +2 -8
  9. package/es/locale/lang/pt-BR.js +2 -8
  10. package/es/locale/lang/ru-RU.d.ts +2 -0
  11. package/es/locale/lang/ru-RU.js +497 -503
  12. package/es/locale/lang/uk-UA.d.ts +2 -0
  13. package/es/locale/lang/uk-UA.js +667 -0
  14. package/es/locale/lang/vi-VN.js +2 -8
  15. package/es/locale/lang/zh-CHT.d.ts +2 -0
  16. package/es/locale/lang/zh-CHT.js +667 -0
  17. package/es/locale/lang/zh-CN.js +2 -8
  18. package/es/locale/lang/zh-HK.js +2 -2
  19. package/es/locale/lang/zh-MO.js +2 -2
  20. package/es/locale/lang/zh-TC.js +2 -673
  21. package/es/locale/lang/zh-TW.js +2 -2
  22. package/es/style.css +1 -1
  23. package/es/style.min.css +1 -1
  24. package/es/table/index.js +29 -3
  25. package/es/table/module/custom/panel.js +183 -173
  26. package/es/table/module/edit/mixin.js +33 -24
  27. package/es/table/module/export/export-panel.js +32 -4
  28. package/es/table/module/export/import-panel.js +24 -5
  29. package/es/table/module/export/mixin.js +11 -11
  30. package/es/table/module/menu/mixin.js +2 -2
  31. package/es/table/module/validator/mixin.js +4 -4
  32. package/es/table/render/index.js +23 -38
  33. package/es/table/src/body.js +1 -0
  34. package/es/table/src/columnInfo.js +3 -3
  35. package/es/table/src/methods.js +48 -40
  36. package/es/table/src/props.js +65 -15
  37. package/es/table/src/table.js +161 -55
  38. package/es/table/src/util.js +3 -2
  39. package/es/table/style.css +37 -23
  40. package/es/table/style.min.css +1 -1
  41. package/es/toolbar/src/toolbar.js +21 -7
  42. package/es/ui/index.js +5 -4
  43. package/es/ui/src/log.js +1 -1
  44. package/es/ui/src/vn.js +24 -1
  45. package/es/vxe-table/style.css +37 -23
  46. package/es/vxe-table/style.min.css +1 -1
  47. package/lib/grid/src/grid.js +115 -68
  48. package/lib/grid/src/grid.min.js +1 -1
  49. package/lib/index.umd.js +632 -330
  50. package/lib/index.umd.min.js +1 -1
  51. package/lib/locale/lang/en-US.js +2 -8
  52. package/lib/locale/lang/en-US.min.js +1 -1
  53. package/lib/locale/lang/en-US.umd.js +2 -8
  54. package/lib/locale/lang/es-ES.js +2 -1
  55. package/lib/locale/lang/es-ES.min.js +1 -1
  56. package/lib/locale/lang/es-ES.umd.js +2 -1
  57. package/lib/locale/lang/hu-HU.d.ts +2 -0
  58. package/lib/locale/lang/hu-HU.js +497 -501
  59. package/lib/locale/lang/hu-HU.min.js +1 -1
  60. package/lib/locale/lang/hu-HU.umd.js +687 -0
  61. package/lib/locale/lang/ja-JP.js +2 -8
  62. package/lib/locale/lang/ja-JP.min.js +1 -1
  63. package/lib/locale/lang/ja-JP.umd.js +2 -8
  64. package/lib/locale/lang/ko-KR.d.ts +2 -0
  65. package/lib/locale/lang/ko-KR.js +2 -8
  66. package/lib/locale/lang/ko-KR.min.js +1 -1
  67. package/lib/locale/lang/ko-KR.umd.js +687 -0
  68. package/lib/locale/lang/pt-BR.js +2 -8
  69. package/lib/locale/lang/pt-BR.min.js +1 -1
  70. package/lib/locale/lang/pt-BR.umd.js +2 -8
  71. package/lib/locale/lang/ru-RU.d.ts +2 -0
  72. package/lib/locale/lang/ru-RU.js +497 -503
  73. package/lib/locale/lang/ru-RU.min.js +1 -1
  74. package/lib/locale/lang/ru-RU.umd.js +687 -0
  75. package/lib/locale/lang/uk-UA.d.ts +2 -0
  76. package/lib/locale/lang/uk-UA.js +673 -0
  77. package/lib/locale/lang/uk-UA.min.js +1 -0
  78. package/lib/locale/lang/uk-UA.umd.js +687 -0
  79. package/lib/locale/lang/vi-VN.js +2 -8
  80. package/lib/locale/lang/vi-VN.min.js +1 -1
  81. package/lib/locale/lang/zh-CHT.d.ts +2 -0
  82. package/lib/locale/lang/zh-CHT.js +673 -0
  83. package/lib/locale/lang/zh-CHT.min.js +1 -0
  84. package/lib/locale/lang/zh-CHT.umd.js +687 -0
  85. package/lib/locale/lang/zh-CN.js +2 -8
  86. package/lib/locale/lang/zh-CN.min.js +1 -1
  87. package/lib/locale/lang/zh-CN.umd.js +2 -8
  88. package/lib/locale/lang/zh-HK.js +2 -2
  89. package/lib/locale/lang/zh-HK.min.js +1 -1
  90. package/lib/locale/lang/zh-HK.umd.js +7 -677
  91. package/lib/locale/lang/zh-MO.js +2 -2
  92. package/lib/locale/lang/zh-MO.min.js +1 -1
  93. package/lib/locale/lang/zh-MO.umd.js +7 -677
  94. package/lib/locale/lang/zh-TC.js +3 -673
  95. package/lib/locale/lang/zh-TC.min.js +1 -1
  96. package/lib/locale/lang/zh-TC.umd.js +7 -677
  97. package/lib/locale/lang/zh-TW.js +2 -2
  98. package/lib/locale/lang/zh-TW.min.js +1 -1
  99. package/lib/locale/lang/zh-TW.umd.js +7 -677
  100. package/lib/style.css +1 -1
  101. package/lib/style.min.css +1 -1
  102. package/lib/table/index.js +30 -3
  103. package/lib/table/index.min.js +1 -1
  104. package/lib/table/module/custom/panel.js +12 -7
  105. package/lib/table/module/custom/panel.min.js +1 -1
  106. package/lib/table/module/edit/mixin.js +32 -23
  107. package/lib/table/module/edit/mixin.min.js +1 -1
  108. package/lib/table/module/export/export-panel.js +31 -4
  109. package/lib/table/module/export/export-panel.min.js +1 -1
  110. package/lib/table/module/export/import-panel.js +23 -5
  111. package/lib/table/module/export/import-panel.min.js +1 -1
  112. package/lib/table/module/export/mixin.js +11 -11
  113. package/lib/table/module/export/mixin.min.js +1 -1
  114. package/lib/table/module/menu/mixin.js +2 -2
  115. package/lib/table/module/menu/mixin.min.js +1 -1
  116. package/lib/table/module/validator/mixin.js +4 -4
  117. package/lib/table/module/validator/mixin.min.js +1 -1
  118. package/lib/table/render/index.js +27 -41
  119. package/lib/table/render/index.min.js +1 -1
  120. package/lib/table/src/body.js +1 -1
  121. package/lib/table/src/body.min.js +1 -1
  122. package/lib/table/src/columnInfo.js +3 -3
  123. package/lib/table/src/columnInfo.min.js +1 -1
  124. package/lib/table/src/methods.js +47 -40
  125. package/lib/table/src/methods.min.js +1 -1
  126. package/lib/table/src/props.js +7 -0
  127. package/lib/table/src/props.min.js +1 -1
  128. package/lib/table/src/table.js +147 -48
  129. package/lib/table/src/table.min.js +1 -1
  130. package/lib/table/src/util.js +3 -2
  131. package/lib/table/src/util.min.js +1 -1
  132. package/lib/table/style/style.css +37 -23
  133. package/lib/table/style/style.min.css +1 -1
  134. package/lib/toolbar/src/toolbar.js +21 -7
  135. package/lib/toolbar/src/toolbar.min.js +1 -1
  136. package/lib/ui/index.js +6 -5
  137. package/lib/ui/index.min.js +1 -1
  138. package/lib/ui/src/log.js +1 -1
  139. package/lib/ui/src/log.min.js +1 -1
  140. package/lib/ui/src/vn.js +26 -1
  141. package/lib/ui/src/vn.min.js +1 -1
  142. package/lib/vxe-table/style/style.css +37 -23
  143. package/lib/vxe-table/style/style.min.css +1 -1
  144. package/package.json +2 -2
  145. package/packages/grid/src/grid.ts +127 -65
  146. package/packages/locale/lang/en-US.ts +2 -10
  147. package/packages/locale/lang/es-ES.ts +2 -1
  148. package/packages/locale/lang/hu-HU.ts +497 -503
  149. package/packages/locale/lang/ja-JP.ts +2 -10
  150. package/packages/locale/lang/ko-KR.ts +2 -10
  151. package/packages/locale/lang/pt-BR.ts +2 -10
  152. package/packages/locale/lang/ru-RU.ts +497 -505
  153. package/packages/locale/lang/uk-UA.ts +667 -0
  154. package/packages/locale/lang/vi-VN.ts +2 -10
  155. package/packages/locale/lang/zh-CHT.ts +667 -0
  156. package/packages/locale/lang/zh-CN.ts +2 -10
  157. package/packages/locale/lang/zh-HK.ts +2 -2
  158. package/packages/locale/lang/zh-MO.ts +2 -2
  159. package/packages/locale/lang/zh-TC.ts +2 -674
  160. package/packages/locale/lang/zh-TW.ts +2 -2
  161. package/packages/table/index.ts +28 -5
  162. package/packages/table/module/custom/panel.ts +186 -175
  163. package/packages/table/module/edit/mixin.ts +32 -23
  164. package/packages/table/module/export/export-panel.ts +36 -4
  165. package/packages/table/module/export/import-panel.ts +28 -5
  166. package/packages/table/module/export/mixin.ts +11 -11
  167. package/packages/table/module/menu/mixin.ts +2 -2
  168. package/packages/table/module/validator/mixin.ts +4 -4
  169. package/packages/table/render/index.ts +26 -40
  170. package/packages/table/src/body.ts +1 -0
  171. package/packages/table/src/columnInfo.ts +3 -3
  172. package/packages/table/src/methods.ts +47 -40
  173. package/packages/table/src/props.ts +68 -15
  174. package/packages/table/src/table.ts +167 -56
  175. package/packages/table/src/util.ts +3 -2
  176. package/packages/toolbar/src/toolbar.ts +21 -7
  177. package/packages/ui/index.ts +3 -2
  178. package/packages/ui/src/vn.ts +26 -1
  179. package/styles/components/table.scss +82 -17
  180. package/types/all.d.ts +2 -2
  181. /package/es/{iconfont.1726028471123.ttf → iconfont.1727868548661.ttf} +0 -0
  182. /package/es/{iconfont.1726028471123.woff → iconfont.1727868548661.woff} +0 -0
  183. /package/es/{iconfont.1726028471123.woff2 → iconfont.1727868548661.woff2} +0 -0
  184. /package/lib/{iconfont.1726028471123.ttf → iconfont.1727868548661.ttf} +0 -0
  185. /package/lib/{iconfont.1726028471123.woff → iconfont.1727868548661.woff} +0 -0
  186. /package/lib/{iconfont.1726028471123.woff2 → iconfont.1727868548661.woff2} +0 -0
@@ -1 +1 @@
1
- function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_ui=require("../../ui"),_cell=_interopRequireDefault(require("./cell")),_util=require("./util"),_vn=require("../../ui/src/vn"),_log=require("../../ui/src/log");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var i;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(i="Object"===(i={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}var getConfig=_ui.VxeUI.getConfig,getI18n=_ui.VxeUI.getI18n,renderer=_ui.VxeUI.renderer,formats=_ui.VxeUI.formats,interceptor=_ui.VxeUI.interceptor,isWebkit=_dom.browse["-webkit"]&&!_dom.browse.edge,debounceScrollYDuration=_dom.browse.msie?80:20,customStorageKey="VXE_CUSTOM_STORE",_getColumnList=function(e){var t=[];return e.forEach(function(e){t.push.apply(t,_toConsumableArray(e.children&&e.children.length?_getColumnList(e.children):[e]))}),t};function eqCellValue(e,t,i){e=_xeUtils.default.get(e,i),t=_xeUtils.default.get(t,i);return!(!(0,_utils.eqEmptyValue)(e)||!(0,_utils.eqEmptyValue)(t))||(_xeUtils.default.isString(e)||_xeUtils.default.isNumber(e)?""+e==""+t:_xeUtils.default.isEqual(e,t))}function getNextSortOrder(e,t){e=e.sortOpts.orders,t=t.order||null,t=e.indexOf(t)+1;return e[t<e.length?t:0]}var getCustomStorageMap=function(e){var t=getConfig().version,i=_xeUtils.default.toStringJSON(localStorage.getItem(customStorageKey)||""),i=i&&i._v===t?i:{_v:t};return(e?i[e]:i)||{}},setCustomStorageMap=function(e,t){var i=getConfig().version,r=getCustomStorageMap();r[e]=t||void 0,r._v=i,localStorage.setItem(customStorageKey,_xeUtils.default.toJSONString(r))},getRecoverRowMaps=function(e,t){var i=e.fullAllDataRowIdData,r={};return _xeUtils.default.each(t,function(e,t){i[t]&&(r[t]=e)}),r};function handleReserveRow(e,t){var i=e.fullDataRowIdData,r=[];return _xeUtils.default.each(t,function(e,t){i[t]&&-1===r.indexOf(i[t].row)&&r.push(i[t].row)}),r}function computeVirtualX(e){var t=e.$refs,i=e.visibleColumn,e=t.tableBody,t=e?e.$el:null;if(t){for(var r=t.scrollLeft,l=r+t.clientWidth,n=-1,o=0,a=0,s=0,u=i.length;s<u&&(o+=i[s].renderWidth,!(0<=(n=-1===n&&r<o?s:n)&&(a++,l<o)));s++);return{toVisibleIndex:Math.max(0,n),visibleSize:Math.max(8,a)}}return{toVisibleIndex:0,visibleSize:8}}function computeVirtualY(e){var t,i,r=e.$refs,l=e.vSize,e=e.rowHeightMaps,n=r.tableHeader,r=r.tableBody,r=r?r.$el:null;return r?(n=n?n.$el:null,i=0,{rowHeight:i=(i=(t=!(t=r.querySelector("tr"))&&n?n.querySelector("tr"):t)?t.clientHeight:i)||e[l||"default"],visibleSize:Math.max(8,Math.ceil(r.clientHeight/i)+2)}):{rowHeight:0,visibleSize:8}}function calculateMergerOffserIndex(e,t,i){for(var r=0,l=e.length;r<l;r++){var n=e[r],o=t.startIndex,a=t.endIndex,s=n[i],n=s+n[i+"span"];s<o&&o<n&&(t.startIndex=s),s<a&&a<n&&(t.endIndex=n),t.startIndex===o&&t.endIndex===a||(r=-1)}}function setMerges(e,t,o,a){var i,s;t&&(i=e.treeConfig,s=e.visibleColumn,_xeUtils.default.isArray(t)||(t=[t]),i&&t.length&&(0,_log.errLog)("vxe.error.noTree",["merge-cells | merge-footer-items"]),t.forEach(function(e){var t,i,r=e.row,l=e.col,n=e.rowspan,e=e.colspan;a&&_xeUtils.default.isNumber(r)&&(r=a[r]),_xeUtils.default.isNumber(l)&&(l=s[l]),(a?r:_xeUtils.default.isNumber(r))&&l&&(n||e)&&(n=_xeUtils.default.toNumber(n)||1,e=_xeUtils.default.toNumber(e)||1,1<n||1<e)&&(t=_xeUtils.default.findIndexOf(o,function(e){return e._row===r&&e._col===l}),(t=o[t])?(t.rowspan=n,t.colspan=e,t._rowspan=n,t._colspan=e):(t=a?a.indexOf(r):r,i=s.indexOf(l),o.push({row:t,col:i,rowspan:n,colspan:e,_row:r,_col:l,_rowspan:n,_colspan:e})))}))}function removeMerges(e,t,r,l){var i,n,o=[];return t&&(i=e.treeConfig,n=e.visibleColumn,_xeUtils.default.isArray(t)||(t=[t]),i&&t.length&&(0,_log.errLog)("vxe.error.noTree",["merge-cells | merge-footer-items"]),t.forEach(function(e){var t=e.row,i=e.col,e=(l&&_xeUtils.default.isNumber(t)&&(t=l[t]),_xeUtils.default.isNumber(i)&&(i=n[i]),_xeUtils.default.findIndexOf(r,function(e){return e._row===t&&e._col===i}));-1<e&&(e=r.splice(e,1),o.push(e[0]))})),o}function clearAllSort(e){e.tableFullColumn.forEach(function(e){e.order=null})}function calcHeight(e,t){var i=e.parentHeight,t=e[t],r=0;return r=t?"100%"===t||"auto"===t?i:(e=e.getExcludeHeight(),r=(0,_dom.isScale)(t)?Math.floor((_xeUtils.default.toInteger(t)||1)/100*i):_xeUtils.default.toNumber(t),Math.max(40,r-e)):r}function getOrderField(t,i){var r=i.sortBy,l=i.sortType;return function(e){e=r?_xeUtils.default.isFunction(r)?r({row:e,column:i}):_xeUtils.default.get(e,r):t.getCellLabel(e,i);return l&&"auto"!==l?"number"===l?_xeUtils.default.toNumber(e):"string"===l?_xeUtils.default.toValueString(e):e:isNaN(e)?e:_xeUtils.default.toNumber(e)}}var Methods={callSlot:function(e,t,i,r){if(e){var l=this.$xegrid;if(l)return l.callSlot(e,t,i,r);if(_xeUtils.default.isFunction(e))return(0,_vn.getSlotVNs)(e.call(this,t,i,r))}return[]},getParentElem:function(){var e=this.$el,t=this.$xegrid;return(t?t.$el:e).parentNode},getParentHeight:function(){var e=this.$el,t=this.$xegrid,i=this.height,e=e.parentNode,i="100%"===i||"auto"===i?(0,_dom.getPaddingTopBottomSize)(e):0;return Math.floor(t?t.getParentHeight():_xeUtils.default.toNumber(getComputedStyle(e).height)-i)},getExcludeHeight:function(){var e=this.$xegrid;return e?e.getExcludeHeight():0},clearAll:function(){return(0,_util.clearTableAllStatus)(this)},syncData:function(){var e=this;return(0,_log.warnLog)("vxe.error.delFunc",["syncData","getData"]),this.$nextTick().then(function(){return e.tableData=[],e.$nextTick().then(function(){return e.loadTableData(e.tableFullData)})})},updateData:function(){var e=this,t=this.scrollXLoad,i=this.scrollYLoad;return this.handleTableData(!0).then(function(){if(e.updateFooter(),e.checkSelectionStatus(),t||i)return t&&e.updateScrollXSpace(),i&&e.updateScrollYSpace(),e.refreshScroll()}).then(function(){return e.updateCellAreas(),e.recalculate(!0)}).then(function(){setTimeout(function(){return e.recalculate()},50)})},handleTableData:function(e){var i=this,t=this.scrollYLoad,r=this.scrollYStore,l=this.fullDataRowIdData,n=this.afterFullData,e=(e&&(this.updateAfterFullData(),n=this.handleVirtualTreeToList()),t?n.slice(r.startIndex,r.endIndex):n.slice(0));return e.forEach(function(e,t){e=(0,_util.getRowid)(i,e),e=l[e];e&&(e.$index=t)}),this.tableData=e,this.$nextTick()},updateScrollYStatus:function(e){var t=this.treeConfig,i=this.treeOpts,r=this.sYOpts,i=i.transform,e=e||this.tableFullData,i=(i||!t)&&!!r.enabled&&-1<r.gt&&(0===r.gt||r.gt<=e.length);return this.scrollYLoad=i},loadTableData:function(e){var r=this,t=this.keepSource,i=this.treeConfig,l=this.treeOpts,n=this.editStore,o=this.scrollYStore,a=this.scrollXStore,s=this.lastScrollLeft,u=this.lastScrollTop,d=this.scrollYLoad,c=this.sXOpts,h=this.sYOpts,f=l.children||l.childrenField,g=[],p=e?e.slice(0):[],x=(i&&(l.transform?("development"===process.env.VUE_APP_VXE_TABLE_ENV&&(l.rowField||(0,_log.errLog)("vxe.error.reqProp",["table.tree-config.rowField"]),l.parentField||(0,_log.errLog)("vxe.error.reqProp",["table.tree-config.parentField"]),f||(0,_log.errLog)("vxe.error.reqProp",["tree-config.childrenField"]),l.mapChildrenField||(0,_log.errLog)("vxe.error.reqProp",["tree-config.mapChildrenField"]),f===l.mapChildrenField)&&(0,_log.errLog)("vxe.error.errConflicts",["tree-config.childrenField","tree-config.mapChildrenField"]),p=(g=_xeUtils.default.toArrayTree(p,{key:l.rowField,parentKey:l.parentField,children:f,mapChildren:l.mapChildrenField})).slice(0)):g=p.slice(0)),o.startIndex=0,o.endIndex=1,a.startIndex=0,a.endIndex=1,n.insertList=[],n.insertMaps={},n.removeList=[],n.removeMaps={},this.updateScrollYStatus(p));return this.scrollYLoad=x,this.tableFullData=p,this.tableFullTreeData=g,this.cacheRowMap(!0),this.tableSynchData=e,t&&this.cacheSourceMap(p),"development"===process.env.VUE_APP_VXE_TABLE_ENV&&x&&(this.height||this.maxHeight||(0,_log.errLog)("vxe.error.reqProp",["table.height | table.max-height | table.scroll-y={enabled: false}"]),this.showOverflow||(0,_log.warnLog)("vxe.error.reqProp",["table.show-overflow"]),this.spanMethod)&&(0,_log.warnLog)("vxe.error.scrollErrProp",["table.span-method"]),this.clearCellAreas&&this.mouseConfig&&(this.clearCellAreas(),this.clearCopyCellArea()),this.clearMergeCells(),this.clearMergeFooterItems(),this.handleTableData(!0),this.updateFooter(),this.$nextTick().then(function(){r.updateHeight(),r.updateStyle()}).then(function(){r.computeScrollLoad()}).then(function(){return x&&(o.endIndex=o.visibleSize),r.handleReserveStatus(),r.checkSelectionStatus(),new Promise(function(i){r.$nextTick().then(function(){return r.recalculate()}).then(function(){var e=s,t=u;c.scrollToLeftOnChange&&(e=0),h.scrollToTopOnChange&&(t=0),d===x?(0,_util.restoreScrollLocation)(r,e,t).then(i):setTimeout(function(){return(0,_util.restoreScrollLocation)(r,e,t).then(i)})})})})},loadData:function(e){var t=this,i=this.inited,r=this.initStatus;return this.loadTableData(e).then(function(){return t.inited=!0,t.initStatus=!0,r||t.handleLoadDefaults(),i||t.handleInitDefaults(),t.recalculate()})},reloadData:function(e){var t=this,i=this.inited;return this.clearAll().then(function(){return t.inited=!0,t.initStatus=!0,t.loadTableData(e)}).then(function(){return t.handleLoadDefaults(),i||t.handleInitDefaults(),t.recalculate()})},setRow:function(e,t){var i;return t&&(i=_xeUtils.default.isArray(i=e)?i:[e]).forEach(function(e){return Object.assign(e,t)}),this.$nextTick()},reloadRow:function(e,t,i){var r=this.keepSource,l=this.tableSourceData,n=this.tableData;return r?((r=l[this.getRowIndex(e)])&&e&&(i?(l=_xeUtils.default.get(t||e,i),_xeUtils.default.set(e,i,l),_xeUtils.default.set(r,i,l)):(i=_xeUtils.default.clone(Object.assign({},t),!0),_xeUtils.default.destructuring(r,Object.assign(e,i)))),this.tableData=n.slice(0)):"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.reqProp",["keep-source"]),this.$nextTick()},loadColumn:function(e){var t=this,e=_xeUtils.default.mapTree(e,function(e){return _cell.default.createColumn(t,e)},{children:"children"});return this.handleColumn(e)},reloadColumn:function(e){var t=this;return this.clearAll().then(function(){return t.loadColumn(e)})},initColumnSort:function(){this.collectColumn.forEach(function(e,t){t+=1;e.sortNumber=t,e.renderSortNumber=t})},handleColumn:function(e){var t=this,i=(this.collectColumn=e,_getColumnList(e));return this.tableFullColumn=i,this._isLoading=!0,this.initColumnSort(),Promise.resolve(this.restoreCustomStorage()).then(function(){return t._isLoading=!1,t.cacheColumnMap(),t.parseColumns().then(function(){t.scrollXLoad&&t.loadScrollXData(!0)}),t.clearMergeCells(),t.clearMergeFooterItems(),t.handleTableData(!0),"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&(0,_log.warnLog)("vxe.error.scrollErrProp",["column.type=expand"]),t.$nextTick().then(function(){return t.$toolbar&&t.$toolbar.syncUpdate({collectColumn:e,$table:t}),t.recalculate()})})},cacheRowMap:function(a){function e(e,t,i,r,l,n){var o=(0,_util.getRowid)(s,e),r=u&&r?(0,_util.toTreePathSeq)(r):t+1,n=n?n.length-1:0,r=((0,_utils.eqEmptyValue)(o)&&(o=(0,_util.getRowUniqueId)(),_xeUtils.default.set(e,x,o)),m&&e[p]&&_xeUtils.default.isUndefined(e[g])&&(e[g]=null),{row:e,rowid:o,seq:r,index:u&&l?-1:t,_index:-1,$index:-1,items:i,parent:l,level:n});a&&(h[o]=r,d.set(e,r)),f[o]=r,c.set(e,r)}var s=this,u=this.treeConfig,t=this.treeOpts,i=this.tableFullData,d=this.fullDataRowMap,c=this.fullAllDataRowMap,r=this.tableFullTreeData,h=this.fullDataRowIdData,f=this.fullAllDataRowIdData,g=t.children||t.childrenField,p=t.hasChild||t.hasChildField,x=(0,_util.getRowkey)(this),m=u&&t.lazy;a&&(h=this.fullDataRowIdData={},d.clear()),f=this.fullAllDataRowIdData={},c.clear(),u?_xeUtils.default.eachTree(r,e,{children:g}):i.forEach(e)},cacheSourceMap:function(e){function t(e){var t=(0,_util.getRowid)(i,e);(0,_utils.eqEmptyValue)(t)&&(t=(0,_util.getRowUniqueId)(),_xeUtils.default.set(e,o,t)),n[t]={row:e,rowid:t}}var i=this,r=this.treeConfig,l=this.treeOpts,n=this.sourceDataRowIdData,e=_xeUtils.default.clone(e,!0),o=(0,_util.getRowkey)(this),n=this.sourceDataRowIdData={};r?(r=l.children||l.childrenField,_xeUtils.default.eachTree(e,t,{children:l.transform?l.mapChildrenField:r})):e.forEach(t),this.tableSourceData=e},getParams:function(){return this.params},loadTreeChildren:function(a,e){var s=this,r=this.keepSource,l=this.tableSourceData,t=this.treeOpts,u=this.fullDataRowIdData,d=this.fullDataRowMap,c=this.fullAllDataRowMap,h=this.fullAllDataRowIdData,n=this.sourceDataRowIdData,o=t.transform,f=t.mapChildrenField,g=t.children||t.childrenField,t=h[(0,_util.getRowid)(this,a)],p=t?t.level:0;return this.createData(e).then(function(e){var t,i;return r&&(t=(0,_util.getRowid)(s,a),(i=_xeUtils.default.findTree(l,function(e){return t===(0,_util.getRowid)(s,e)},{children:g}))&&(i.item[g]=_xeUtils.default.clone(e,!0)),e.forEach(function(e){var t=(0,_util.getRowid)(s,e);n[t]=_xeUtils.default.clone(e,!0)})),_xeUtils.default.eachTree(e,function(e,t,i,r,l,n){var o=(0,_util.getRowid)(s,e),t={row:e,rowid:o,seq:-1,index:t,_index:-1,$index:-1,items:i,parent:l||a,level:p+n.length};u[o]=t,d.set(e,t),h[o]=t,c.set(e,t)},{children:g}),a[g]=e,o&&(a[f]=_xeUtils.default.clone(e,!1)),s.updateAfterDataIndex(),e})},cacheColumnMap:function(){function o(e,t,i,r,l){var n=e.id,o=e.field,a=e.fixed,s=e.type,u=e.treeNode,t={column:e,colid:n,index:t,items:i,parent:l};o&&("development"===process.env.VUE_APP_VXE_TABLE_ENV&&C[o]&&(0,_log.warnLog)("vxe.error.colRepet",["field",o]),C[o]=t),!p&&a&&(p=a),g||"html"!==s||(g=e),u?("development"===process.env.VUE_APP_VXE_TABLE_ENV&&c&&(0,_log.warnLog)("vxe.error.colRepet",["tree-node",u]),c=c||e):"expand"===s&&("development"===process.env.VUE_APP_VXE_TABLE_ENV&&d&&(0,_log.warnLog)("vxe.error.colRepet",["type",s]),d=d||e),"development"===process.env.VUE_APP_VXE_TABLE_ENV&&("checkbox"===s?(h&&(0,_log.warnLog)("vxe.error.colRepet",["type",s]),h=h||e):"radio"===s&&(f&&(0,_log.warnLog)("vxe.error.colRepet",["type",s]),f=f||e)),"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(x.showOverflow&&!1===e.showOverflow&&(0,_log.warnLog)("vxe.error.errConflicts",["table.show-overflow=".concat(x.showOverflow),"column.show-overflow=".concat(e.showOverflow)]),x.showHeaderOverflow&&!1===e.showHeaderOverflow&&(0,_log.warnLog)("vxe.error.errConflicts",["table.show-header-overflow=".concat(x.showHeaderOverflow),"column.show-header-overflow=".concat(e.showHeaderOverflow)]),x.showFooterOverflow)&&!1===e.showFooterOverflow&&(0,_log.warnLog)("vxe.error.errConflicts",["table.show-footer-overflow=".concat(x.showFooterOverflow),"column.show-footer-overflow=".concat(e.showFooterOverflow)]),"development"===process.env.VUE_APP_VXE_TABLE_ENV&&g&&(v.useKey||(0,_log.errLog)("vxe.error.reqProp",["column-config.useKey","column.type=html"]),w.useKey||(0,_log.errLog)("vxe.error.reqProp",["row-config.useKey","column.type=html"])),b&&!1===e.showOverflow&&(b=!1),_[n]&&(0,_log.errLog)("vxe.error.colRepet",["colId",n]),_[n]=t,m.set(e,t)}var d,c,h,f,g,p,x=this,e=this.tableFullColumn,t=this.collectColumn,m=this.fullColumnMap,i=this.showOverflow,v=this.columnOpts,w=this.rowOpts,_=this.fullColumnIdData={},C=this.fullColumnFieldData={},r=t.some(_utils.hasChildrenList),b=!!i;m.clear(),r?_xeUtils.default.eachTree(t,function(e,t,i,r,l,n){e.level=n.length,o(e,t,i,0,l)}):e.forEach(o),"development"===process.env.VUE_APP_VXE_TABLE_ENV&&d&&this.mouseOpts.area&&(0,_log.errLog)("vxe.error.errConflicts",["mouse-config.area","column.type=expand"]),this.isGroup=r,this.treeNodeColumn=c,this.expandColumn=d,this.isAllOverflow=b},getRowNode:function(e){if(e){e=this.fullAllDataRowIdData[e.getAttribute("rowid")];if(e)return{rowid:e.rowid,item:e.row,index:e.index,items:e.items,parent:e.parent}}return null},getColumnNode:function(e){if(e){e=this.fullColumnIdData[e.getAttribute("colid")];if(e)return{colid:e.colid,item:e.column,index:e.index,items:e.items,parent:e.parent}}return null},getRowSeq:function(e){var t=this.fullDataRowIdData;if(e){t=t[(0,_util.getRowid)(this,e)];if(t)return t.seq}return-1},getRowIndex:function(e){return this.fullDataRowMap.has(e)?this.fullDataRowMap.get(e).index:-1},getVTRowIndex:function(e){return this.afterFullData.indexOf(e)},_getRowIndex:function(e){return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["_getRowIndex","getVTRowIndex"]),this.getVTRowIndex(e)},getVMRowIndex:function(e){return this.tableData.indexOf(e)},$getRowIndex:function(e){return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["$getRowIndex","getVMRowIndex"]),this.getVMRowIndex(e)},getColumnIndex:function(e){return this.fullColumnMap.has(e)?this.fullColumnMap.get(e).index:-1},getVTColumnIndex:function(e){return this.visibleColumn.indexOf(e)},_getColumnIndex:function(e){return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["_getColumnIndex","getVTColumnIndex"]),this.getVTColumnIndex(e)},getVMColumnIndex:function(e){return this.tableColumn.indexOf(e)},$getColumnIndex:function(e){return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["$getColumnIndex","getVMColumnIndex"]),this.getVMColumnIndex(e)},isSeqColumn:function(e){return e&&"seq"===e.type},defineField:function(e){var t=this,i=this.radioOpts,r=this.checkboxOpts,n=this.treeConfig,o=this.treeOpts,a=this.expandOpts,s=o.children||o.childrenField,u=(0,_util.getRowkey)(this);return(e=_xeUtils.default.isArray(e)?e:[e||{}]).map(function(l){return t.tableFullColumn.forEach(function(e){var t,i=e.field,r=e.editRender;i&&!_xeUtils.default.has(l,i)&&(t=null,r&&(r=r.defaultValue,_xeUtils.default.isFunction(r)?t=r({column:e}):_xeUtils.default.isUndefined(r)||(t=r)),_xeUtils.default.set(l,i,t))}),[i.labelField,r.checkField,r.labelField,a.labelField].forEach(function(e){e&&(0,_utils.eqEmptyValue)(_xeUtils.default.get(l,e))&&_xeUtils.default.set(l,e,null)}),n&&o.lazy&&_xeUtils.default.isUndefined(l[s])&&(l[s]=null),(0,_utils.eqEmptyValue)(_xeUtils.default.get(l,u))&&_xeUtils.default.set(l,u,(0,_util.getRowUniqueId)()),l})},createData:function(e){var t=this;return this.$nextTick().then(function(){return t.defineField(e)})},createRow:function(e){var t=_xeUtils.default.isArray(e);return this.createData(e=t?e:[e]).then(function(e){return t?e:e[0]})},revertData:function(e,i){var r=this,t=this.keepSource,l=this.tableSourceData,n=this.treeConfig;return t?((t=e)?_xeUtils.default.isArray(e)||(t=[e]):t=_xeUtils.default.toArray(this.getUpdateRecords()),t.length&&t.forEach(function(e){var t;r.isInsertByRow(e)||(t=r.getRowIndex(e),n&&-1===t&&(0,_log.errLog)("vxe.error.noTree",["revertData"]),(t=l[t])&&e&&(i?_xeUtils.default.set(e,i,_xeUtils.default.clone(_xeUtils.default.get(t,i),!0)):_xeUtils.default.destructuring(e,_xeUtils.default.clone(t,!0))))}),e?this.$nextTick():this.reloadData(l)):("development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.reqProp",["keep-source"]),this.$nextTick())},clearData:function(e,t){var i=this.tableFullData,r=this.visibleColumn;return arguments.length?e&&!_xeUtils.default.isArray(e)&&(e=[e]):e=i,t?e.forEach(function(e){return _xeUtils.default.set(e,t,null)}):e.forEach(function(t){r.forEach(function(e){e.field&&(0,_util.setCellValue)(t,e,null)})}),this.$nextTick()},getCellElement:function(e,t){var i,r,t=(0,_util.handleFieldOrColumn)(this,t);return t&&(i=this.$refs,e=(0,_util.getRowid)(this,e),r=null,r=t?i["".concat(t.fixed||"table","Body")]||i.tableBody:r)&&r.$el?r.$el.querySelector('.vxe-body--row[rowid="'.concat(e,'"] .').concat(t.id)):null},getCellLabel:function(e,t){t=(0,_util.handleFieldOrColumn)(this,t);if(!t)return null;var i=t.formatter,r=(0,_util.getCellValue)(e,t),l=r;if(i){var n,o=this.fullAllDataRowMap,a=t.id,s=o.has(e);if(s&&(n=(n=(s=o.get(e)).formatData)||(o.get(e).formatData={}),s)&&n[a]&&n[a].value===r)return n[a].label;o={cellValue:r,row:e,rowIndex:this.getRowIndex(e),column:t,columnIndex:this.getColumnIndex(t)};l=_xeUtils.default.isString(i)?(s=formats.get(i))&&s.cellFormatMethod?s.cellFormatMethod(o):"":_xeUtils.default.isArray(i)?(e=formats.get(i[0]))&&e.cellFormatMethod?e.cellFormatMethod.apply(e,[o].concat(_toConsumableArray(i.slice(1)))):"":i(o),n&&(n[a]={value:r,label:l})}return l},isInsertByRow:function(e){var t=this.editStore,e=(0,_util.getRowid)(this,e);return t.insertList.length&&t.insertMaps[e]},removeInsertRow:function(){return this.remove(this.editStore.insertList)},isUpdateByRow:function(e,t){var i=this.tableFullColumn,r=this.keepSource,l=this.sourceDataRowIdData,n=this.fullDataRowIdData;if(r){r=(0,_util.getRowid)(this,e);if(!n[r])return!1;n=l[r];if(n){var o=n.row;if(1<arguments.length)return!eqCellValue(o,e,t);for(var a=0,s=i.length;a<s;a++){var u=i[a].field;if(u&&!eqCellValue(o,e,u))return!0}}}return!1},getColumns:function(e){var t=this.visibleColumn;return _xeUtils.default.isUndefined(e)?t.slice(0):t[e]},getColid:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e?e.id:null},getColumnById:function(e){var t=this.fullColumnIdData;return t[e]?t[e].column:null},getColumnByField:function(e){var t=this.fullColumnFieldData;return t[e]?t[e].column:null},getParentColumn:function(e){var t=this.fullColumnIdData,e=(0,_util.handleFieldOrColumn)(this,e);return e&&e.parentId&&t[e.parentId]?t[e.parentId].column:null},getTableColumn:function(){return{collectColumn:this.collectColumn.slice(0),fullColumn:this.tableFullColumn.slice(0),visibleColumn:this.visibleColumn.slice(0),tableColumn:this.tableColumn.slice(0)}},getData:function(e){var t=this.data||this.tableSynchData;return _xeUtils.default.isUndefined(e)?t.slice(0):t[e]},getCheckboxRecords:function(i){var r,e=this.tableFullData,t=this.afterFullData,l=this.treeConfig,n=this.treeOpts,o=this.checkboxOpts,a=this.tableFullTreeData,s=this.afterTreeFullData,u=this.afterFullRowMaps,d=n.transform,c=o.checkField,o=n.children||n.childrenField,a=i?d?a:e:d?s:t,h=[];return c?h=l?_xeUtils.default.filterTree(a,function(e){return _xeUtils.default.get(e,c)},{children:d?n.mapChildrenField:o}):a.filter(function(e){return _xeUtils.default.get(e,c)}):(e=this.selectCheckboxMaps,r=this.fullDataRowIdData,_xeUtils.default.each(e,function(e,t){i?r[t]&&h.push(r[t].row):u[t]&&h.push(u[t])})),h},handleVirtualTreeToList:function(){var a,s,u=this,e=this.treeOpts,t=this.treeConfig,d=this.treeExpandedMaps,i=this.afterTreeFullData,r=this.afterFullData;return t&&e.transform?(a=[],s={},_xeUtils.default.eachTree(i,function(e,t,i,r,l){var n=(0,_util.getRowid)(u,e),o=(0,_util.getRowid)(u,l);(!l||s[o]&&d[o])&&(s[n]=1,a.push(e))},{children:e.mapChildrenField}),this.afterFullData=a,this.updateScrollYStatus(a),a):r},updateAfterFullData:function(){var e,d=this,t=this.tableFullColumn,i=this.tableFullData,r=this.filterOpts,l=this.sortOpts,n=this.treeConfig,o=this.treeOpts,a=this.tableFullTreeData,c=r.remote,h=r.filterMethod,s=l.remote,r=l.sortMethod,u=l.multiple,l=l.chronological,f=o.transform,g=[],p=[],x=[],m=[],v=(t.forEach(function(e){var t,i,r=e.field,l=e.sortable,n=e.order,o=e.filters;!c&&o&&o.length&&(t=[],i=[],o.forEach(function(e){e.checked&&(i.push(e),t.push(e.value))}),i.length)&&x.push({column:e,valueList:t,itemList:i}),!s&&l&&n&&m.push({column:e,field:r,property:r,order:n,sortTime:e.sortTime})}),u&&l&&1<m.length&&(m=_xeUtils.default.orderBy(m,"sortTime")),x.length?(t=function(u){return x.every(function(e){var t,i,r,l,n,o,a=e.column,s=e.valueList,e=e.itemList;return!(s.length&&!c)||(t=a.filterMethod,r=a.filterRender,i=a.field,r=(0,_utils.isEnableConf)(r)?renderer.get(r.name):null,l=r&&r.renderFilter?r.tableFilterMethod||r.filterMethod:null,n=r?r.tableFilterDefaultMethod||r.defaultTableFilterMethod||r.defaultFilterMethod:null,o=(0,_util.getCellValue)(u,a),t?e.some(function(e){return t({value:e.value,option:e,cellValue:o,row:u,column:a,$table:d})}):l?e.some(function(e){return l({value:e.value,option:e,cellValue:o,row:u,column:a,$table:d})}):h?h({options:e,values:s,cellValue:o,row:u,column:a}):n?e.some(function(e){return n({value:e.value,option:e,cellValue:o,row:u,column:a,$table:d})}):-1<s.indexOf(_xeUtils.default.get(u,i)))})},n&&f?g=p=_xeUtils.default.searchTree(a,t,Object.assign(Object.assign({},o),{original:!0})):p=g=(n?a:i).filter(t)):n&&f?g=p=_xeUtils.default.searchTree(a,function(){return!0},Object.assign(Object.assign({},o),{original:!0})):p=g=(n?a:i).slice(0),m[0]);!s&&v&&(n&&f?g=p=r?(l=r({data:p,sortList:m,$table:this}),_xeUtils.default.isArray(l)?l:p):_xeUtils.default.orderBy(p,m.map(function(e){var t=e.column,e=e.order;return[getOrderField(d,t),e]})):p=g=r?(t=r({data:g,column:v.column,property:v.field,field:v.field,order:v.order,sortList:m,$table:this}),_xeUtils.default.isArray(t)?t:g):u?_xeUtils.default.orderBy(g,m.map(function(e){var t=e.column,e=e.order;return[getOrderField(d,t),e]})):(_xeUtils.default.isArray(v.sortBy)&&(e=v.sortBy.map(function(e){return[e,v.order]})),_xeUtils.default.orderBy(g,e||[v].map(function(e){var t=e.column,e=e.order;return[getOrderField(d,t),e]})))),this.afterFullData=g,this.afterTreeFullData=p,this.updateAfterDataIndex()},updateAfterDataIndex:function(){var o=this,e=this.treeConfig,t=this.afterFullData,a=this.fullDataRowIdData,s=this.fullAllDataRowIdData,i=this.afterTreeFullData,r=this.treeOpts,l=r.children||r.childrenField,u={};e?_xeUtils.default.eachTree(i,function(e,t,i,r){var l=(0,_util.getRowid)(o,e),n=s[l],r=r.map(function(e,t){return t%2==0?Number(e)+1:"."}).join("");n?(n.seq=r,n._index=t):(s[l]=n={row:e,rowid:l,seq:r,index:-1,$index:-1,_index:t,items:[],parent:null,level:0},a[l]=n),u[l]=e},{children:r.transform?r.mapChildrenField:l}):t.forEach(function(e,t){var i=(0,_util.getRowid)(o,e),r=s[i],l=t+1;r?(r.seq=l,r._index=t):(s[i]=r={row:e,rowid:i,seq:l,index:-1,$index:-1,_index:t,items:[],parent:null,level:0},a[i]=r),u[i]=e}),this.afterFullRowMaps=u},getParentRow:function(e){var t=this.treeConfig,i=this.fullDataRowIdData;if(e&&t){t=_xeUtils.default.isString(e)?e:(0,_util.getRowid)(this,e);if(t)return(e=i[t])?e.parent:null}return null},getRowById:function(e){var t=this.fullDataRowIdData,e=_xeUtils.default.eqNull(e)?"":encodeURIComponent(e);return t[e]?t[e].row:null},getRowid:function(e){var t=this.fullAllDataRowMap;return t.has(e)?t.get(e).rowid:null},getTableData:function(){var e=this.treeConfig,t=this.tableFullData,i=this.afterFullData,r=this.tableData,l=this.footerTableData,n=this.tableFullTreeData;return{fullData:(e?n:t).slice(0),visibleData:i.slice(0),tableData:r.slice(0),footerData:l.slice(0)}},handleLoadDefaults:function(){var e=this;this.checkboxConfig&&this.handleDefaultSelectionChecked(),this.radioConfig&&this.handleDefaultRadioChecked(),this.expandConfig&&this.handleDefaultRowExpand(),this.treeConfig&&this.handleDefaultTreeExpand(),this.mergeCells&&this.handleDefaultMergeCells(),this.mergeFooterItems&&this.handleDefaultMergeFooterItems(),this.$nextTick(function(){return setTimeout(e.recalculate)})},handleInitDefaults:function(){this.sortConfig&&this.handleDefaultSort()},setColumnFixed:function(e,t){var i=this.isMaxFixedColumn,r=this.columnOpts,e=(0,_util.handleFieldOrColumn)(this,e),e=(0,_util.getRootColumn)(this,e);return e&&e.fixed!==t?!e.fixed&&i?(_ui.VxeUI.modal&&_ui.VxeUI.modal.message({status:"error",content:getI18n("vxe.table.maxFixedCol",[r.maxFixedSize])}),this.$nextTick()):(_xeUtils.default.eachTree([e],function(e){e.fixed=t}),this.saveCustomStore("update:fixed"),this.refreshColumn()):this.$nextTick()},clearColumnFixed:function(e){e=(0,_util.handleFieldOrColumn)(this,e),e=(0,_util.getRootColumn)(this,e);return e&&e.fixed?(_xeUtils.default.eachTree([e],function(e){e.fixed=null}),this.saveCustomStore("update:fixed"),this.refreshColumn()):this.$nextTick()},hideColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&e.visible?(e.visible=!1,this.handleCustom()):this.$nextTick()},showColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&!e.visible?(e.visible=!0,this.handleCustom()):this.$nextTick()},setColumnWidth:function(e,t){var i,r,e=(0,_util.handleFieldOrColumn)(this,e);return e?(r=i=_xeUtils.default.toInteger(t),(0,_dom.isScale)(t)&&(t=(t=(t=this.$refs.tableBody)?t.$el:null)?t.clientWidth-1:0,r=Math.floor(i*t)),e.resizeWidth=r,this.refreshColumn()):this.$nextTick()},getColumnWidth:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e?e.renderWidth:0},resetColumn:function(e){var t=this.collectColumn,i=this.customOpts.checkMethod,r=Object.assign({visible:!0,resizable:!0===e,fixed:!0===e,sort:!0===e},e);return _xeUtils.default.eachTree(t,function(e){r.resizable&&(e.resizeWidth=0),r.fixed&&(e.fixed=e.defaultFixed),r.sort&&(e.renderSortNumber=e.sortNumber),i&&!i({column:e})||(e.visible=e.defaultVisible),e.renderResizeWidth=e.renderWidth}),this.saveCustomStore("reset"),this.handleCustom()},handleCustom:function(){return this.mouseConfig&&(this.clearSelected&&this.clearSelected(),this.clearCellAreas)&&(this.clearCellAreas(),this.clearCopyCellArea()),this.analyColumnWidth(),this.refreshColumn(!0)},handleCustomRestore:function(e){var t=this.collectColumn,o=e.resizableData,a=e.sortData,s=e.visibleData,u=e.fixedData,d=!1;(o||a||s||u)&&(_xeUtils.default.eachTree(t,function(e,t,i,r,l){var n=e.getKey();l||(u&&u[n]&&(e.fixed=u[n]),a&&_xeUtils.default.isNumber(a[n])&&(d=!0,e.renderSortNumber=a[n])),o&&_xeUtils.default.isNumber(o[n])&&(e.resizeWidth=o[n]),s&&_xeUtils.default.isBoolean(s[n])&&(e.visible=s[n])}),d)&&(t=_xeUtils.default.orderBy(t,"renderSortNumber"),this.collectColumn=t,this.tableFullColumn=_getColumnList(t))},restoreCustomStorage:function(){var t=this,e=this.tableId,i=this.customConfig,r=this.customOpts,l=r.storage,r=r.restoreStore,n=!0===l,l=n?{}:Object.assign({},l||{}),o=n||l.resizable,a=n||l.visible,s=n||l.fixed,n=n||l.sort;if(i&&(o||a||s||n)){if(e)return l=getCustomStorageMap(e),r?Promise.resolve(r({id:e,type:"restore",storeData:l})).then(function(e){if(e)return t.handleCustomRestore(e)}).catch(function(e){return e}):this.handleCustomRestore(l);(0,_log.errLog)("vxe.error.reqProp",["id"])}},getCustomStoreData:function(){var n,o,a,s,e=this.id,t=this.customOpts,u=this.collectColumn,d=t.checkMethod,c={},h={},f={},g={},t={resizableData:void 0,sortData:void 0,visibleData:void 0,fixedData:void 0};return e?(s=a=o=n=0,_xeUtils.default.eachTree(u,function(e,t,i,r,l){l||(u.forEach(function(e){var t=e.getKey();t&&(o=1,h[t]=e.renderSortNumber)}),e.fixed&&e.fixed!==e.defaultFixed&&(l=e.getKey())&&(a=1,g[l]=e.fixed)),e.resizeWidth&&(l=e.getKey())&&(n=1,c[l]=e.renderWidth),d&&!d({column:e})||(!e.visible&&e.defaultVisible?(l=e.getKey())&&(s=1,f[l]=!1):e.visible&&!e.defaultVisible&&(l=e.getKey())&&(s=1,f[l]=!0))}),n&&(t.resizableData=c),o&&(t.sortData=h),a&&(t.fixedData=g),s&&(t.visibleData=f)):(0,_log.errLog)("vxe.error.reqProp",["id"]),t},saveCustomStore:function(e){var t=this.tableId,i=this.customOpts,r=i.updateStore,i=i.storage,l=!0===i,i=l?{}:Object.assign({},i||{}),n=l||i.resizable,o=l||i.visible,a=l||i.fixed,l=l||i.sort;if(n||o||a||l){if(!t)return(0,_log.errLog)("vxe.error.reqProp",["id"]),this.$nextTick();i="reset"===e?{resizableData:{},sortData:{},visibleData:{},fixedData:{}}:this.getCustomStoreData();if(r)return r({id:t,type:e,storeData:i});setCustomStorageMap(t,"reset"===e?null:i)}return this.$nextTick()},handleUpdateDataQueue:function(){this.upDataFlag++},handleRefreshColumnQueue:function(){this.reColumnFlag++},refreshColumn:function(e){var t=this;return e&&(e=_xeUtils.default.orderBy(this.collectColumn,"renderSortNumber"),this.collectColumn=e,e=_getColumnList(e),this.tableFullColumn=e,this.cacheColumnMap()),this.parseColumns().then(function(){return t.refreshScroll()}).then(function(){return t.recalculate()})},parseColumns:function(){var t,i,r,e=this,o=[],a=[],s=[],l=this.collectColumn,n=this.tableFullColumn,u=this.isGroup,d=this.columnStore,c=this.sXOpts,h=this.scrollXStore,f=(u?(t=[],i=[],r=[],_xeUtils.default.eachTree(l,function(e,t,i,r,l){var n=(0,_utils.hasChildrenList)(e);l&&l.fixed&&(e.fixed=l.fixed),l&&e.fixed!==l.fixed&&(0,_log.errLog)("vxe.error.groupFixed"),n?e.visible=!!_xeUtils.default.findTree(e.children,function(e){return(0,_utils.hasChildrenList)(e)?null:e.visible}):e.visible&&("left"===e.fixed?o:"right"===e.fixed?s:a).push(e)}),l.forEach(function(e){e.visible&&("left"===e.fixed?t:"right"===e.fixed?r:i).push(e)}),this.tableGroupColumn=t.concat(i).concat(r)):n.forEach(function(e){e.visible&&("left"===e.fixed?o:"right"===e.fixed?s:a).push(e)}),o.concat(a).concat(s)),u=c.enabled&&-1<c.gt&&(0===c.gt||c.gt<=n.length);return this.hasFixedColumn=0<o.length||0<s.length,Object.assign(d,{leftList:o,centerList:a,rightList:s}),u&&("development"===process.env.VUE_APP_VXE_TABLE_ENV&&(this.spanMethod&&(0,_log.warnLog)("vxe.error.scrollErrProp",["span-method"]),this.footerSpanMethod)&&(0,_log.warnLog)("vxe.error.scrollErrProp",["footer-span-method"]),l=computeVirtualX(this).visibleSize,h.startIndex=0,h.endIndex=l,h.visibleSize=l),f.length===this.visibleColumn.length&&this.visibleColumn.every(function(e,t){return e===f[t]})||(this.clearMergeCells(),this.clearMergeFooterItems()),this.scrollXLoad=u,this.visibleColumn=f,this.handleTableColumn(),this.updateFooter().then(function(){return e.recalculate()}).then(function(){return e.updateCellAreas(),e.recalculate()})},analyColumnWidth:function(){var e=this.columnOpts,t=e.width,i=e.minWidth,r=[],l=[],n=[],o=[],a=[],s=[],u=[],d=[];this.tableFullColumn.forEach(function(e){t&&!e.width&&(e.width=t),i&&!e.minWidth&&(e.minWidth=i),e.visible&&(e.resizeWidth?r:"auto"===e.width?u:(0,_dom.isPx)(e.width)?l:(0,_dom.isScale)(e.width)?a:(0,_dom.isPx)(e.minWidth)?n:"auto"===e.minWidth?o:(0,_dom.isScale)(e.minWidth)?s:d).push(e)}),Object.assign(this.columnStore,{resizeList:r,pxList:l,pxMinList:n,autoMinList:o,scaleList:a,scaleMinList:s,autoList:u,remainList:d})},refreshScroll:function(){var t=this,i=this.lastScrollLeft,r=this.lastScrollTop,e=this.$refs,l=e.tableBody,n=e.leftBody,o=e.rightBody,e=e.tableFooter,a=l?l.$el:null,s=n?n.$el:null,u=o?o.$el:null,d=e?e.$el:null;return new Promise(function(e){if(i||r)return(0,_util.restoreScrollLocation)(t,i,r).then(function(){setTimeout(e,30)});(0,_dom.setScrollTop)(a,r),(0,_dom.setScrollTop)(s,r),(0,_dom.setScrollTop)(u,r),(0,_dom.setScrollLeft)(d,i),setTimeout(e,30)})},recalculate:function(e){var t=this,i=this.$refs,r=i.tableBody,l=i.tableHeader,i=i.tableFooter,n=r?r.$el:null,o=l?l.$el:null,a=i?i.$el:null;return n&&(this.calcCellWidth(),this.autoCellWidth(o,n,a),!0===e)?this.computeScrollLoad().then(function(){return t.autoCellWidth(o,n,a),t.computeScrollLoad()}):this.computeScrollLoad()},calcCellWidth:function(){var e=this,t=this.autoWidthColumnList;return this.tableData.length&&t.length?(this.isCalcColumn=!0,this.$nextTick().then(function(){var n=e.$el;n&&(t.forEach(function(e){var t=n.querySelectorAll(".vxe-header--column.".concat(e.id,">.vxe-cell,.vxe-body--column.").concat(e.id,">.vxe-cell,.vxe-footer--column.").concat(e.id,">.vxe-cell")),i=t[0],r=0,l=(i&&(i=getComputedStyle(i),r=Math.floor(_xeUtils.default.toNumber(i.paddingLeft)+_xeUtils.default.toNumber(i.paddingRight))+2),e.renderAutoWidth-r);_xeUtils.default.arrayEach(t,function(e){e=e.firstChild;e&&(l=Math.max(l,Math.ceil(e.offsetWidth)+4))}),e.renderAutoWidth=l+r}),e.analyColumnWidth()),e.isCalcColumn=!1})):(this.isCalcColumn=!1,this.$nextTick())},autoCellWidth:function(e,t,i){var r=0,l=t.clientWidth-1,n=l,o=n/100,a=this.fit,s=this.columnStore,u=s.resizeList,d=s.pxMinList,c=s.pxList,h=s.autoMinList,f=s.scaleList,g=s.scaleMinList,p=s.autoList,s=s.remainList;if(d.forEach(function(e){var t=parseInt(e.minWidth);r+=t,e.renderWidth=t}),h.forEach(function(e){var t=Math.max(60,_xeUtils.default.toInteger(e.renderAutoWidth));r+=t,e.renderWidth=t}),g.forEach(function(e){var t=Math.floor(parseInt(e.minWidth)*o);r+=t,e.renderWidth=t}),f.forEach(function(e){var t=Math.floor(parseInt(e.width)*o);r+=t,e.renderWidth=t}),c.forEach(function(e){var t=parseInt(e.width);r+=t,e.renderWidth=t}),p.forEach(function(e){var t=Math.max(60,_xeUtils.default.toInteger(e.renderAutoWidth));r+=t,e.renderWidth=t}),u.forEach(function(e){var t=parseInt(e.resizeWidth);r+=t,e.renderWidth=t}),o=0<(n-=r)?Math.floor(n/(g.length+d.length+h.length+s.length)):0,a?0<n&&g.concat(d).concat(h).forEach(function(e){r+=o,e.renderWidth+=o}):o=40,s.forEach(function(e){var t=Math.max(o,40);e.renderWidth=t,r+=t}),a){var x=f.concat(g).concat(d).concat(h).concat(s),m=x.length-1;if(0<m){var v=l-r;if(0<v){for(;0<v&&0<=m;)v--,x[m--].renderWidth++;r=l}}}c=t.offsetHeight,p=t.clientHeight<t.scrollHeight,this.scrollbarWidth=p?t.offsetWidth-t.clientWidth:0,this.overflowY=p,this.tableWidth=r,this.tableHeight=c,e?(this.headerHeight=e.clientHeight,this.$nextTick(function(){e&&t&&e.scrollLeft!==t.scrollLeft&&(e.scrollLeft=t.scrollLeft)})):this.headerHeight=0,u=!1,n=0,a=0,a=i?(n=i.offsetHeight,u=i.clientWidth<r,Math.max(n-i.clientHeight,0)):(u=l<r,Math.max(c-t.clientHeight,0));this.footerHeight=n,this.overflowX=l<r,this.scrollbarHeight=a,this.updateHeight(),this.parentHeight=Math.max(this.headerHeight+this.footerHeight+20,this.getParentHeight()),u&&this.checkScrolling()},updateHeight:function(){this.customHeight=calcHeight(this,"height"),this.customMinHeight=calcHeight(this,"minHeight"),this.customMaxHeight=calcHeight(this,"maxHeight")},updateStyle:function(){var c=this,t=this.$refs,h=this.isGroup,f=this.fullColumnIdData,g=this.tableColumn,p=this.customHeight,x=this.customMinHeight,m=this.customMaxHeight,v=this.border,w=this.headerHeight,_=this.showFooter,C=this.showOverflow,b=this.showHeaderOverflow,R=this.showFooterOverflow,E=this.footerHeight,T=this.tableHeight,y=this.tableWidth,S=this.scrollbarHeight,k=this.scrollbarWidth,M=this.scrollXLoad,D=this.scrollYLoad,I=this.cellOffsetWidth,L=this.columnStore,U=this.elemStore,e=this.editStore,i=this.currentRow,r=this.mouseConfig,F=this.keyboardConfig,A=this.keyboardOpts,O=this.spanMethod,$=this.mergeList,V=this.mergeFooterList,N=this.footerSpanMethod,B=this.isAllOverflow,P=this.visibleColumn,l=t.emptyPlaceholder,n=U["main-body-wrapper"];return l&&(l.style.top="".concat(w,"px"),l.style.height=n?"".concat(n.offsetHeight-S,"px"):""),0<p&&_&&(p+=S),["main","left","right"].forEach(function(s,e){var a=0<e?s:"",u=L["".concat(a,"List")],d=t["".concat(a,"Container")];["header","body","footer"].forEach(function(l){var e,t,i,r=U["".concat(s,"-").concat(l,"-wrapper")],n=U["".concat(s,"-").concat(l,"-table")],o=("header"===l?(i=y,o=g,h?o=P:a&&(M||b)&&(o=u),i=o.reduce(function(e,t){return e+t.renderWidth},0),n&&(n.style.width=i?"".concat(i+k,"px"):"",_dom.browse.msie)&&_xeUtils.default.arrayEach(n.querySelectorAll(".vxe-resizable"),function(e){e.style.height="".concat(e.parentNode.offsetHeight,"px")}),(o=U["".concat(s,"-").concat(l,"-repair")])&&(o.style.width="".concat(y,"px")),i=U["".concat(s,"-").concat(l,"-list")],h&&i&&_xeUtils.default.arrayEach(i.querySelectorAll(".col--group"),function(e){var t,i,r,l=c.getColumnNode(e);l&&(l=(t=l.item).showHeaderOverflow,l=_xeUtils.default.isBoolean(l)?l:b,r=i=0,(l="title"===l||(!0===l||"tooltip"===l)||"ellipsis"===l)&&_xeUtils.default.eachTree(t.children,function(e){e.children&&t.children.length||r++,i+=e.renderWidth}),e.style.width=l?"".concat(i-r-(v?2:0),"px"):"")})):"body"===l?(o=U["".concat(s,"-").concat(l,"-emptyBlock")],(0,_dom.isNodeElement)(r)&&(i=0,e=x-w-E,m&&(i=m-w-E,a&&(i-=_?0:S),i=Math.max(e,i),r.style.maxHeight="".concat(i,"px")),p?(t=p-w-E,a&&(t-=_?0:S),i&&(t=Math.min(i,t)),r.style.height="".concat(Math.max(e,t),"px")):r.style.height="",r.style.minHeight="".concat(e,"px")),d&&(i="right"===a,t=L["".concat(a,"List")],(0,_dom.isNodeElement)(r)&&(r.style.top="".concat(w,"px")),d.style.height="".concat((0<p?p-w-E:T)+w+E-S*(_?2:1),"px"),d.style.width="".concat(t.reduce(function(e,t){return e+t.renderWidth},i?k:0),"px")),e=y,t=g,e=(t=a?c.expandColumn||!(M||D||C&&B)||$.length||O||F&&A.isMerge?P:u:t).reduce(function(e,t){return e+t.renderWidth},0),n&&(n.style.width=e?"".concat(e,"px"):"",n.style.paddingRight=k&&a&&(_dom.browse["-moz"]||_dom.browse.safari)?"".concat(k,"px"):""),o&&(o.style.width=e?"".concat(e,"px"):"")):"footer"===l&&(i=y,t=g,i=(t=a?c.expandColumn||!M&&!R||V.length&&N?P:u:t).reduce(function(e,t){return e+t.renderWidth},0),(0,_dom.isNodeElement)(r)&&(d&&(r.style.top="".concat(0<p?p-E:T+w,"px")),r.style.marginTop="".concat(-S,"px")),n)&&(n.style.width=i?"".concat(i+k,"px"):""),U["".concat(s,"-").concat(l,"-colgroup")]);o&&_xeUtils.default.arrayEach(o.children,function(e){var o,t,a,i,r=e.getAttribute("name");"col_gutter"===r&&(e.style.width="".concat(k,"px")),f[r]&&(r=(o=f[r].column).showHeaderOverflow,i=o.showFooterOverflow,t=o.showOverflow,e.style.width="".concat(o.renderWidth,"px"),r="ellipsis"===(e="header"===l?_xeUtils.default.isUndefined(r)||_xeUtils.default.isNull(r)?b:r:"footer"===l?_xeUtils.default.isUndefined(i)||_xeUtils.default.isNull(i)?R:i:_xeUtils.default.isUndefined(t)||_xeUtils.default.isNull(t)?C:t),a="title"===e||(!0===e||"tooltip"===e)||r,i=U["".concat(s,"-").concat(l,"-list")],"header"===l||"footer"===l?M&&!a&&(a=!0):(M||D)&&(a=a||!0),i)&&_xeUtils.default.arrayEach(i.querySelectorAll(".".concat(o.id)),function(e){var t=parseInt(e.getAttribute("colspan")||1),e=e.querySelector(".vxe-cell"),i=o.renderWidth;if(e){if(1<t)for(var r=c.getColumnIndex(o),l=1;l<t;l++){var n=c.getColumns(r+l);n&&(i+=n.renderWidth)}e.style.width=a?"".concat(i-I*t,"px"):""}})})})}),i&&this.setCurrentRow(i),r&&r.selected&&e.selected.row&&e.selected.column&&this.addColSdCls(),this.$nextTick()},checkScrolling:function(){var e=this.$refs,t=e.tableBody,i=e.leftContainer,e=e.rightContainer,t=t?t.$el:null;t&&(i&&(0<t.scrollLeft?(0,_dom.addClass):(0,_dom.removeClass))(i,"scrolling--middle"),e)&&(t.clientWidth<t.scrollWidth-Math.ceil(t.scrollLeft)?(0,_dom.addClass):(0,_dom.removeClass))(e,"scrolling--middle")},preventEvent:function(t,e,i,r,l){var n,o=this,a=interceptor.get(e);return a.length||"event.clearEdit"!==e||(a=interceptor.get("event.clearActived"),"development"===process.env.VUE_APP_VXE_TABLE_ENV&&a.length&&(0,_log.warnLog)("vxe.error.delEvent",["event.clearActived","event.clearEdit"])),a.some(function(e){return!1===e(Object.assign({$grid:o.$xegrid,$table:o,$event:t},i))})||r&&(n=r()),l&&l(),n},handleGlobalMousedownEvent:function(i){var e,r=this,l=this.$el,t=this.$refs,n=this.$xegrid,o=this.$toolbar,a=this.mouseConfig,s=this.editStore,u=this.ctxMenuStore,d=this.editRules,c=this.editOpts,h=this.validOpts,f=this.areaOpts,g=this.filterStore,p=this.customStore,x=this.getRowNode,m=s.actived,s=t.ctxWrapper,v=t.filterWrapper,w=t.customWrapper,t=t.validTip,g=(!v||(0,_dom.getEventTargetNode)(i,l,"vxe-cell--filter").flag||(0,_dom.getEventTargetNode)(i,v.$el).flag||(0,_dom.getEventTargetNode)(i,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(i,"event.clearFilter",g.args,this.closeFilter),!w||p.btnEl===i.target||(0,_dom.getEventTargetNode)(i,document.body,"vxe-toolbar-custom-target").flag||(0,_dom.getEventTargetNode)(i,w.$el).flag||(0,_dom.getEventTargetNode)(i,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(i,"event.clearCustom",{},function(){return r.closeCustom()}),m.row?!1===c.autoClear||(v=m.args.cell)&&(0,_dom.getEventTargetNode)(i,v).flag||t&&(0,_dom.getEventTargetNode)(i,t.$el).flag||this.lastCallTime&&!(this.lastCallTime+50<Date.now())||(0,_dom.getEventTargetNode)(i,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(i,"event.clearEdit",m.args,function(){var e,t;(e=(e=(e="row"===c.mode?!!(e=(0,_dom.getEventTargetNode)(i,l,"vxe-body--row")).flag&&x(e.targetElem).item!==m.args.row:!(0,_dom.getEventTargetNode)(i,l,"col--edit").flag)||(0,_dom.getEventTargetNode)(i,l,"vxe-header--row").flag)||(0,_dom.getEventTargetNode)(i,l,"vxe-footer--row").flag)||!r.height||r.overflowY||(t=i.target,(0,_dom.hasClass)(t,"vxe-table--body-wrapper")&&(e=i.offsetY<t.clientHeight)),!e&&(0,_dom.getEventTargetNode)(i,l).flag||setTimeout(function(){return r.clearEdit(i)})}):!a||(0,_dom.getEventTargetNode)(i,l).flag||n&&(0,_dom.getEventTargetNode)(i,n.$el).flag||s&&(0,_dom.getEventTargetNode)(i,s.$el).flag||o&&(0,_dom.getEventTargetNode)(i,o.$el).flag||(this.clearSelected&&this.clearSelected(),f.autoClear&&this.getCellAreas&&(e=this.getCellAreas())&&e.length&&!(0,_dom.getEventTargetNode)(i,document.body,"vxe-table--ignore-areas-clear").flag&&this.preventEvent(i,"event.clearAreas",{},function(){r.clearCellAreas(),r.clearCopyCellArea(),r.emitEvent("clear-cell-area-selection",{cellAreas:e},i)})),u.visible&&s&&!(0,_dom.getEventTargetNode)(i,s.$el).flag&&this.closeMenu(),(0,_dom.getEventTargetNode)(i,(n||this).$el).flag);!g&&d&&h.autoClear&&(this.validErrorMaps={}),this.isActivated=g},handleGlobalBlurEvent:function(){this.closeFilter(),this.closeMenu()},handleGlobalMousewheelEvent:function(){this.closeTooltip(),this.closeMenu()},keydownEvent:function(t){var i=this,r=this.filterStore,l=this.ctxMenuStore,e=this.editStore,n=this.keyboardConfig,o=this.mouseConfig,a=this.mouseOpts,s=this.keyboardOpts,u=e.actived;27===t.keyCode&&this.preventEvent(t,"event.keydown",null,function(){var e;i.emitEvent("keydown-start",{},t),n&&o&&a.area&&i.handleKeyboardEvent?i.handleKeyboardEvent(t):(u.row||r.visible||l.visible)&&(t.stopPropagation(),i.closeFilter(),i.closeMenu(),n)&&s.isEsc&&u.row&&(e=u.args,i.clearEdit(t),o)&&a.selected&&i.$nextTick(function(){return i.handleSelected(e,t)}),i.emitEvent("keydown",{},t),i.emitEvent("keydown-end",{},t)})},handleGlobalKeydownEvent:function(z){var W=this;this.isActivated&&this.preventEvent(z,"event.keydown",null,function(){var e,t,i,r,l,n,o,a=W.filterStore,s=W.isCtxMenu,u=W.ctxMenuStore,d=W.editStore,c=W.editOpts,h=W.editConfig,f=W.mouseConfig,O=W.mouseOpts,g=W.keyboardConfig,p=W.keyboardOpts,x=W.treeConfig,m=W.treeOpts,v=W.highlightCurrentRow,w=W.currentRow,_=W.bodyCtxMenu,C=W.rowOpts,b=d.selected,d=d.actived,R=z.keyCode,$=8===R,V=9===R,E=13===R,T=27===R,y=32===R,S=37===R,k=38===R,M=39===R,D=40===R,N=46===R,I=113===R,L=93===R,P=z.metaKey,B=z.ctrlKey,U=z.shiftKey,q=z.altKey,H=S||k||M||D,s=s&&u.visible&&(E||y||H),F=(0,_utils.isEnableConf)(h)&&d.column&&d.row,m=m.children||m.childrenField,A=c.beforeEditMethod||c.activeMethod;a.visible?T&&W.closeFilter():(s?(z.preventDefault(),u.showChild&&(0,_utils.hasChildrenList)(u.selected)?W.moveCtxMenu(z,R,u,"selectChild",37,!1,u.selected.children):W.moveCtxMenu(z,R,u,"selected",39,!0,W.ctxMenuList)):g&&f&&O.area&&W.handleKeyboardEvent?W.handleKeyboardEvent(z):g&&y&&p.isChecked&&b.row&&b.column&&("checkbox"===b.column.type||"radio"===b.column.type)?(z.preventDefault(),"checkbox"===b.column.type?W.handleToggleCheckRowEvent(z,b.args):W.triggerRadioRowEvent(z,b.args)):I&&(0,_utils.isEnableConf)(h)?F||b.row&&b.column&&(z.stopPropagation(),z.preventDefault(),W.handleEdit(b.args,z)):L?(W._keyCtx=b.row&&b.column&&_.length,clearTimeout(W.keyCtxTimeout),W.keyCtxTimeout=setTimeout(function(){W._keyCtx=!1},1e3)):E&&!q&&g&&p.isEnter&&(b.row||d.row||x&&(C.isCurrent||v)&&w)?B?d.row&&(e=d.args,W.clearEdit(z),f)&&O.selected&&W.$nextTick(function(){return W.handleSelected(e,z)}):b.row||d.row?(a=(b.row?b:d).args,U?p.enterToTab?W.moveTabSelected(a,U,z):W.moveSelected(a,S,!0,M,!1,z):p.enterToTab?W.moveTabSelected(a,U,z):W.moveSelected(a,S,!1,M,!0,z)):x&&(C.isCurrent||v)&&w&&(T=w[m])&&T.length&&(z.preventDefault(),t=T[0],i={$table:W,row:t},W.setTreeExpand(w,!0).then(function(){return W.scrollToRow(t)}).then(function(){return W.triggerCurrentRowEvent(z,i)})):H&&g&&p.isArrow?F||(b.row&&b.column?W.moveSelected(b.args,S,k,M,D,z):(k||D)&&(C.isCurrent||v)&&W.moveCurrentRow(k,D,z)):V&&g&&p.isTab?b.row||b.column?W.moveTabSelected(b.args,U,z):(d.row||d.column)&&W.moveTabSelected(d.args,U,z):g&&p.isDel&&N&&(0,_utils.isEnableConf)(h)&&(b.row||b.column)?F||(s=p.delMethod,u={row:b.row,rowIndex:W.getRowIndex(b.row),column:b.column,columnIndex:W.getColumnIndex(b.column),$table:W,$grid:W.$xegrid},A&&!A(u))||(s?s(u):(0,_util.setCellValue)(b.row,b.column,null),W.updateFooter(),W.emitEvent("cell-delete-value",u,z)):$&&g&&p.isBack&&(0,_utils.isEnableConf)(h)&&(b.row||b.column)?F||(I=p.backMethod,p.isDel&&(0,_utils.isEnableConf)(h)&&(b.row||b.column)&&(L={row:b.row,rowIndex:W.getRowIndex(b.row),column:b.column,columnIndex:W.getColumnIndex(b.column),$table:W,$grid:W.$xegrid},A&&!A(L)||(I?I(L):((0,_util.setCellValue)(b.row,b.column,null),W.handleEdit(b.args,z)),W.emitEvent("cell-backspace-value",L,z)))):$&&g&&x&&p.isBack&&(C.isCurrent||v)&&w?(r=_xeUtils.default.findTree(W.afterTreeFullData,function(e){return e===w},{children:m}).parent)&&(z.preventDefault(),l={row:r,rowIndex:W.getRowIndex(r),$rowIndex:W.getVMRowIndex(r),$table:W,$grid:W.$xegrid},W.setTreeExpand(r,!1).then(function(){return W.scrollToRow(r)}).then(function(){return W.triggerCurrentRowEvent(z,l)})):g&&p.isEdit&&!B&&!P&&(y||48<=R&&R<=57||65<=R&&R<=90||96<=R&&R<=111||186<=R&&R<=192||219<=R&&R<=222)&&(_=p.editMethod,b.column)&&b.row&&(0,_utils.isEnableConf)(b.column.editRender)&&(E=c.beforeEditMethod||c.activeMethod,n={row:b.row,rowIndex:W.getRowIndex(b.row),column:b.column,columnIndex:W.getColumnIndex(b.column),$table:W,$grid:W.$xegrid},!E||E(n))&&(_?_(n):((0,_util.setCellValue)(b.row,b.column,null),W.handleEdit(b.args,z)),o=c.afterEditMethod)&&W.$nextTick(function(){o(n)}),W.emitEvent("keydown",{},z))})},handleGlobalPasteEvent:function(e){var t=this.isActivated,i=this.keyboardConfig,r=this.keyboardOpts,l=this.mouseConfig,n=this.mouseOpts,o=this.editStore,a=this.filterStore,o=o.actived;t&&!a.visible&&(o.row||o.column||i&&r.isClip&&l&&n.area&&this.handlePasteCellAreaEvent&&this.handlePasteCellAreaEvent(e),this.emitEvent("paste",{},e))},handleGlobalCopyEvent:function(e){var t=this.isActivated,i=this.keyboardConfig,r=this.keyboardOpts,l=this.mouseConfig,n=this.mouseOpts,o=this.editStore,a=this.filterStore,o=o.actived;t&&!a.visible&&(o.row||o.column||i&&r.isClip&&l&&n.area&&this.handleCopyCellAreaEvent&&this.handleCopyCellAreaEvent(e),this.emitEvent("copy",{},e))},handleGlobalCutEvent:function(e){var t=this.isActivated,i=this.keyboardConfig,r=this.keyboardOpts,l=this.mouseConfig,n=this.mouseOpts,o=this.editStore,a=this.filterStore,o=o.actived;t&&!a.visible&&(o.row||o.column||i&&r.isClip&&l&&n.area&&this.handleCutCellAreaEvent&&this.handleCutCellAreaEvent(e),this.emitEvent("cut",{},e))},handleGlobalResizeEvent:function(){this.closeMenu(),this.updateCellAreas(),this.recalculate(!0)},handleTargetEnterEvent:function(e){var t=this.$refs.tooltip;clearTimeout(this.tooltipTimeout),e?this.closeTooltip():t&&t.setActived(!0)},handleTargetLeaveEvent:function(){var e=this,t=this.tooltipOpts,i=this.$refs.tooltip;i&&i.setActived(!1),t.enterable?this.tooltipTimeout=setTimeout(function(){(i=e.$refs.tooltip)&&!i.isActived()&&e.closeTooltip()},t.leaveDelay):this.closeTooltip()},triggerHeaderTitleEvent:function(t,e,i){var r,l,n,o=e.content||e.message;o&&(r=this.$refs,l=this.tooltipStore,i=i.column,n=(0,_utils.getFuncText)(o),this.handleTargetEnterEvent(!0),l.row=null,l.column=i,l.visible=!0,l.currOpts=e,this.$nextTick(function(){var e=r.tooltip;e&&e.open(t.currentTarget,n)}))},triggerHeaderTooltipEvent:function(e,t){var i=this.tooltipStore,r=t.column,l=e.currentTarget;this.handleTargetEnterEvent(i.column!==r||i.row),i.column===r&&i.visible||this.handleTooltip(e,l,l,null,t)},triggerBodyTooltipEvent:function(e,t){var i,r,l=this.editConfig,n=this.editOpts,o=this.editStore,a=this.tooltipStore,o=o.actived,s=t.row,u=t.column,d=e.currentTarget;if(this.handleTargetEnterEvent(a.column!==u||a.row!==s),u.editRender&&(0,_utils.isEnableConf)(l)){if("row"===n.mode&&o.row===s)return;if(o.row===s&&o.column===u)return}a.column===u&&a.row===s&&a.visible||(u.treeNode?(i=d.querySelector(".vxe-tree-cell"),"html"===u.type&&(r=d.querySelector(".vxe-cell--html"))):r=d.querySelector("html"===u.type?".vxe-cell--html":".vxe-cell--label"),this.handleTooltip(e,d,i||d.children[0],r,t))},triggerFooterTooltipEvent:function(e,t){var i=t.column,r=this.tooltipStore,l=e.currentTarget;this.handleTargetEnterEvent(!0),r.column===i&&r.visible||this.handleTooltip(e,l,l.querySelector(".vxe-cell--item")||l.children[0],null,t)},handleTooltip:function(e,t,i,r,l){l.cell=t;var n=this.$refs,t=this.tooltipOpts,o=this.tooltipStore,a=l.column,s=l.row,u=t.showAll,d=t.enabled,t=t.contentMethod,l=t?t(l):null,t=t&&!_xeUtils.default.eqNull(l),c=t?l:("html"===a.type?i.innerText:i.textContent).trim(),h=i.scrollWidth>i.clientWidth;return c&&(u||d||t||h)&&(Object.assign(o,{row:s,column:a,visible:!0,currOpts:{}}),this.$nextTick(function(){var e=n.tooltip;e&&e.open(!h&&r||i,(0,_utils.formatText)(c))})),this.$nextTick()},openTooltip:function(e,t){var i=this.$refs.commTip;return i?i.open(e,t):this.$nextTick()},closeTooltip:function(){var e=this.$refs,t=this.tooltipStore,i=e.tooltip,e=e.commTip;return t.visible&&(Object.assign(t,{row:null,column:null,content:null,visible:!1,currOpts:{}}),i)&&i.close(),e&&e.close(),this.$nextTick()},isAllCheckboxChecked:function(){return this.isAllSelected},isAllCheckboxIndeterminate:function(){return!this.isAllSelected&&this.isIndeterminate},isCheckboxIndeterminate:function(){return(0,_log.warnLog)("vxe.error.delFunc",["isCheckboxIndeterminate","isAllCheckboxIndeterminate"]),this.isAllCheckboxIndeterminate()},getCheckboxIndeterminateRecords:function(e){var i,r,t=this.treeConfig,l=this.treeIndeterminateMaps,n=this.fullDataRowIdData;return t?(i=[],r=[],_xeUtils.default.each(l,function(e,t){e&&(i.push(e),n[t])&&r.push(e)}),e?i:r):[]},handleDefaultSelectionChecked:function(){var t,i=this.fullDataRowIdData,e=this.checkboxOpts,r=e.checkAll,e=e.checkRowKeys;r?this.handleCheckedAllCheckboxRow(!0,!0):e&&(t=[],e.forEach(function(e){i[e]&&t.push(i[e].row)}),this.handleCheckedCheckboxRow(t,!0,!0))},handleCheckedCheckboxRow:function(e,t,i){var r=this;return(e=e&&!_xeUtils.default.isArray(e)?[e]:e).forEach(function(e){return r.handleSelectRow({row:e},!!t,i)}),this.$nextTick()},setCheckboxRow:function(e,t){return this.handleCheckedCheckboxRow(e,t,!0)},isCheckedByCheckboxRow:function(e){var t=this.selectCheckboxMaps,i=this.checkboxOpts.checkField;return i?_xeUtils.default.get(e,i):!!t[(0,_util.getRowid)(this,e)]},isIndeterminateByCheckboxRow:function(e){return!!this.treeIndeterminateMaps[(0,_util.getRowid)(this,e)]&&!this.isCheckedByCheckboxRow(e)},handleSelectRow:function(e,i,r){var l=this,n=e.row,e=this.selectCheckboxMaps,t=this.afterFullData,o=this.treeConfig,a=this.treeOpts,s=this.treeIndeterminateMaps,u=this.checkboxOpts,d=u.checkField,c=u.checkStrictly,h=u.checkMethod,f=Object.assign({},e),e=a.children||a.childrenField,g=u.indeterminateField||u.halfField,a=(0,_util.getRowid)(this,n);if(d)if(o&&!c){-1===i?(s[a]||(g&&_xeUtils.default.set(n,g,!0),s[a]=n),_xeUtils.default.set(n,d,!1)):_xeUtils.default.eachTree([n],function(e){(l.eqRow(e,n)||r||!h||h({row:e}))&&(_xeUtils.default.set(e,d,i),g&&_xeUtils.default.set(n,g,!1),delete s[(0,_util.getRowid)(l,e)],l.handleCheckboxReserveRow(n,i))},{children:e});var p,x,m,u=_xeUtils.default.findTree(t,function(e){return l.eqRow(e,n)},{children:e});if(u&&u.parent)return p=[],x={},!r&&h?u.items.forEach(function(e){var t;h({row:e})&&(t=(0,_util.getRowid)(l,e),p.push(x[t]=e))}):u.items.forEach(function(e){var t=(0,_util.getRowid)(l,e);p.push(x[t]=e)}),C=_xeUtils.default.find(u.items,function(e){return!!s[(0,_util.getRowid)(l,e)]})?-1:(m=[],u.items.forEach(function(e){_xeUtils.default.get(e,d)&&m.push(e)}),m.filter(function(e){return x[(0,_util.getRowid)(l,e)]}).length===p.length||!(!m.length&&-1!==i)&&-1),this.selectCheckboxMaps=f,this.handleSelectRow({row:u.parent},C,r)}else!r&&h&&!h({row:n})||(_xeUtils.default.set(n,d,i),this.handleCheckboxReserveRow(n,i));else if(o&&!c){-1===i?(s[a]||(g&&_xeUtils.default.set(n,g,!0),s[a]=n),f[a]&&delete f[a]):_xeUtils.default.eachTree([n],function(e){var t=(0,_util.getRowid)(l,e);(l.eqRow(e,n)||r||!h||h({row:e}))&&(i?f[t]=e:f[t]&&delete f[t],g&&_xeUtils.default.set(n,g,!1),delete s[(0,_util.getRowid)(l,e)],l.handleCheckboxReserveRow(n,i))},{children:e});var v,w,_,C,u=_xeUtils.default.findTree(t,function(e){return l.eqRow(e,n)},{children:e});if(u&&u.parent)return v=[],w={},!r&&h?u.items.forEach(function(e){var t;h({row:e})&&(t=(0,_util.getRowid)(l,e),v.push(w[t]=e))}):u.items.forEach(function(e){var t=(0,_util.getRowid)(l,e);v.push(w[t]=e)}),C=_xeUtils.default.find(u.items,function(e){return!!s[(0,_util.getRowid)(l,e)]})?-1:(_=[],u.items.forEach(function(e){var t=(0,_util.getRowid)(l,e);f[t]&&_.push(e)}),_.filter(function(e){return w[(0,_util.getRowid)(l,e)]}).length===v.length||!(!_.length&&-1!==i)&&-1),this.selectCheckboxMaps=f,this.handleSelectRow({row:u.parent},C,r)}else!r&&h&&!h({row:n})||(i?f[a]||(f[a]=n):f[a]&&delete f[a],this.handleCheckboxReserveRow(n,i));this.selectCheckboxMaps=f,this.checkSelectionStatus()},handleToggleCheckRowEvent:function(e,t){var i=this.selectCheckboxMaps,r=this.checkboxOpts,l=r.checkField,n=t.row;"manual"!==r.trigger&&(r=!1,r=l?!_xeUtils.default.get(n,l):!i[(0,_util.getRowid)(this,n)],e?this.triggerCheckRowEvent(e,t,r):this.handleSelectRow(t,r))},triggerCheckRowEvent:function(e,t,i){var r=this.checkboxOpts,l=this.afterFullData,n=r.checkMethod,o=r.trigger,a=t.row;if("manual"!==o){if(e.stopPropagation(),r.isShiftKey&&e.shiftKey&&!this.treeConfig){o=this.getCheckboxRecords();if(o.length){r=o[0],o=this.getVTRowIndex(a),r=this.getVTRowIndex(r);if(o!==r)return this.setAllCheckboxRow(!1),l=o<r?l.slice(o,r+1):l.slice(r,o+1),this.handleCheckedCheckboxRow(l,!0,!1),void this.emitEvent("checkbox-range-select",Object.assign({rangeRecords:l},t),e)}}n&&!n({row:a})||(this.handleSelectRow(t,i),this.emitEvent("checkbox-change",Object.assign({records:this.getCheckboxRecords(),reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:i},t),e))}},toggleCheckboxRow:function(e){var t=this.selectCheckboxMaps,i=this.checkboxOpts.checkField,i=i?!_xeUtils.default.get(e,i):!t[(0,_util.getRowid)(this,e)];return this.handleSelectRow({row:e},i,!0),this.$nextTick()},handleCheckedAllCheckboxRow:function(t,i){var r=this,e=this.afterFullData,l=this.treeConfig,n=this.treeOpts,o=this.selectCheckboxMaps,a=this.checkboxReserveRowMap,s=this.checkboxOpts,u=this.afterFullRowMaps,d=s.checkField,c=s.reserve,h=s.checkStrictly,f=s.checkMethod,g=s.indeterminateField||s.halfField,s=n.children||n.childrenField,p={};return l||_xeUtils.default.each(o,function(e,t){u[t]||(p[t]=e)}),h?this.isAllSelected=t:(d?(n=function(e){!i&&f&&!f({row:e})||(t&&(p[(0,_util.getRowid)(r,e)]=e),_xeUtils.default.set(e,d,t)),l&&g&&_xeUtils.default.set(e,g,!1)},l?_xeUtils.default.eachTree(e,n,{children:s}):e.forEach(n)):l?t?_xeUtils.default.eachTree(e,function(e){!i&&f&&!f({row:e})||(p[(0,_util.getRowid)(r,e)]=e)},{children:s}):!i&&f&&_xeUtils.default.eachTree(e,function(e){var t=(0,_util.getRowid)(r,e);!f({row:e})&&o[t]&&(p[t]=e)},{children:s}):t?!i&&f?e.forEach(function(e){var t=(0,_util.getRowid)(r,e);(o[t]||f({row:e}))&&(p[t]=e)}):e.forEach(function(e){p[(0,_util.getRowid)(r,e)]=e}):!i&&f&&e.forEach(function(e){var t=(0,_util.getRowid)(r,e);!f({row:e})&&o[t]&&(p[t]=e)}),c&&(t?_xeUtils.default.each(p,function(e,t){a[t]=e}):e.forEach(function(e){return r.handleCheckboxReserveRow(e,!1)})),this.selectCheckboxMaps=d?{}:p),this.treeIndeterminateMaps={},this.treeIndeterminateRowMaps={},this.checkSelectionStatus(),this.$nextTick()},setAllCheckboxRow:function(e){return this.handleCheckedAllCheckboxRow(e,!0)},checkSelectionStatus:function(){var t,i,e,r=this,l=this.afterFullData,n=this.selectCheckboxMaps,o=this.treeIndeterminateMaps,a=this.checkboxOpts,s=this.treeConfig,u=a.checkField,d=a.checkMethod,c=a.indeterminateField||a.halfField;a.checkStrictly||(t=[],e=a=!(i=[]),e=u?(a=l.every(d?function(e){return d({row:e})?!!_xeUtils.default.get(e,u)&&(i.push(e),!0):(t.push(e),!0)}:function(e){return _xeUtils.default.get(e,u)})&&l.length!==t.length,s?c?!a&&l.some(function(e){return _xeUtils.default.get(e,u)||_xeUtils.default.get(e,c)||!!o[(0,_util.getRowid)(r,e)]}):!a&&l.some(function(e){return _xeUtils.default.get(e,u)||!!o[(0,_util.getRowid)(r,e)]}):c?!a&&l.some(function(e){return _xeUtils.default.get(e,u)||_xeUtils.default.get(e,c)}):!a&&l.some(function(e){return _xeUtils.default.get(e,u)})):(a=l.every(d?function(e){return d({row:e})?!!n[(0,_util.getRowid)(r,e)]&&(i.push(e),!0):(t.push(e),!0)}:function(e){return n[(0,_util.getRowid)(r,e)]})&&l.length!==t.length,s?!a&&l.some(function(e){e=(0,_util.getRowid)(r,e);return o[e]||n[e]}):!a&&l.some(function(e){return n[(0,_util.getRowid)(r,e)]})),this.isAllSelected=a,this.isIndeterminate=e)},handleReserveStatus:function(){var e=this.expandColumn,t=this.treeOpts,i=this.treeConfig,r=this.fullDataRowIdData,l=this.fullAllDataRowMap,n=this.currentRow,o=this.selectRadioRow,a=this.radioReserveRow,s=this.radioOpts,u=this.checkboxOpts,d=this.selectCheckboxMaps,c=this.rowExpandedMaps,h=this.treeExpandedMaps,f=this.expandOpts;o&&!l.has(o)&&(this.selectRadioRow=null),s.reserve&&a&&r[o=(0,_util.getRowid)(this,a)]&&this.handleCheckedRadioRow(r[o].row,!0),this.selectCheckboxMaps=getRecoverRowMaps(this,d),u.reserve&&this.handleCheckedCheckboxRow(handleReserveRow(this,this.checkboxReserveRowMap),!0,!0),n&&!l.has(n)&&(this.currentRow=null),this.rowExpandedMaps=e?getRecoverRowMaps(this,c):[],e&&f.reserve&&this.setRowExpand(handleReserveRow(this,this.rowExpandedReserveRowMap),!0),this.treeExpandedMaps=i?getRecoverRowMaps(this,h):[],i&&t.reserve&&this.setTreeExpand(handleReserveRow(this,this.treeExpandedReserveRowMap),!0)},getRadioReserveRecord:function(e){var t=this.fullDataRowIdData,i=this.radioReserveRow,r=this.radioOpts,l=this.afterFullData,n=this.treeConfig,o=this.treeOpts,o=o.children||o.childrenField;if(r.reserve&&i){var a=(0,_util.getRowid)(this,i);if(e){if(!t[a])return i}else{var s=(0,_util.getRowkey)(this);if(n){if(_xeUtils.default.findTree(l,function(e){return a===_xeUtils.default.get(e,s)},{children:o}))return i}else if(!l.some(function(e){return a===_xeUtils.default.get(e,s)}))return i}}return null},clearRadioReserve:function(){return this.radioReserveRow=null,this.$nextTick()},handleRadioReserveRow:function(e){this.radioOpts.reserve&&(this.radioReserveRow=e)},getCheckboxReserveRecords:function(i){var r,t=this,l=this.fullDataRowIdData,e=this.afterFullData,n=this.checkboxReserveRowMap,o=this.checkboxOpts,a=this.treeConfig,s=this.treeOpts,s=s.children||s.childrenField,u=[];return o.reserve&&(r={},a?_xeUtils.default.eachTree(e,function(e){r[(0,_util.getRowid)(t,e)]=1},{children:s}):e.forEach(function(e){r[(0,_util.getRowid)(t,e)]=1}),_xeUtils.default.each(n,function(e,t){e&&(i?l[t]||u.push(e):r[t]||u.push(e))})),u},clearCheckboxReserve:function(){return this.checkboxReserveRowMap={},this.$nextTick()},handleCheckboxReserveRow:function(e,t){var i,r=this.checkboxReserveRowMap;this.checkboxOpts.reserve&&(i=(0,_util.getRowid)(this,e),t?r[i]=e:r[i]&&delete r[i])},handleCheckAllEvent:function(e,t){this.handleCheckedAllCheckboxRow(t),e&&this.emitEvent("checkbox-all",{records:this.getCheckboxRecords(),reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:t},e)},triggerCheckAllEvent:function(e,t){"manual"!==this.checkboxOpts.trigger&&(e&&e.stopPropagation(),this.handleCheckAllEvent(e,t))},toggleAllCheckboxRow:function(){return this.handleCheckAllEvent(null,!this.isAllSelected),this.$nextTick()},clearCheckboxRow:function(){var t=this,e=this.tableFullData,i=this.treeConfig,r=this.treeOpts,l=this.checkboxOpts,n=l.checkField,o=l.reserve,r=r.children||r.childrenField,a=l.indeterminateField||l.halfField;return n&&(l=function(e){i&&a&&_xeUtils.default.set(e,a,!1),_xeUtils.default.set(e,n,!1)},i?_xeUtils.default.eachTree(e,l,{children:r}):e.forEach(l)),o&&e.forEach(function(e){return t.handleCheckboxReserveRow(e,!1)}),this.isAllSelected=!1,this.isIndeterminate=!1,this.selectCheckboxMaps={},this.treeIndeterminateMaps={},this.$nextTick()},handleDefaultRadioChecked:function(){var e=this.radioOpts,t=this.fullDataRowIdData,i=e.checkRowKey,e=e.reserve;i&&(t[i]&&this.handleCheckedRadioRow(t[i].row,!0),e)&&(t=(0,_util.getRowkey)(this),this.radioReserveRow=_defineProperty({},t,i))},triggerRadioRowEvent:function(e,t){var i,r=this.selectRadioRow,l=this.radioOpts,n=t.row;"manual"!==l.trigger&&(e.stopPropagation(),(i=r!==(n=n))?this.handleCheckedRadioRow(n):l.strict||(i=r===n)&&(n=null,this.clearRadioRow()),i)&&this.emitEvent("radio-change",Object.assign({oldValue:r,newValue:n},t),e)},triggerCurrentRowEvent:function(e,t){var i=this.currentRow,r=t.row,l=i!==r;this.setCurrentRow(r),l&&this.emitEvent("current-change",Object.assign({oldValue:i,newValue:r},t),e)},setCurrentRow:function(e){var t=this.$el,i=this.rowOpts;return this.clearCurrentRow(),this.currentRow=e,(i.isCurrent||this.highlightCurrentRow)&&t&&_xeUtils.default.arrayEach(t.querySelectorAll('[rowid="'.concat((0,_util.getRowid)(this,e),'"]')),function(e){return(0,_dom.addClass)(e,"row--current")}),this.$nextTick()},isCheckedByRadioRow:function(e){return this.selectRadioRow===e},handleCheckedRadioRow:function(e,t){var i=this.radioOpts.checkMethod;return e&&(t||!i||i({row:e}))&&(this.selectRadioRow=e,this.handleRadioReserveRow(e)),this.$nextTick()},setRadioRow:function(e){return this.handleCheckedRadioRow(e,!0)},clearCurrentRow:function(){var e=this.$el;return this.currentRow=null,this.hoverRow=null,e&&_xeUtils.default.arrayEach(e.querySelectorAll(".row--current"),function(e){return(0,_dom.removeClass)(e,"row--current")}),this.$nextTick()},clearRadioRow:function(){return this.selectRadioRow=null,this.$nextTick()},getCurrentRecord:function(){return this.rowOpts.isCurrent||this.highlightCurrentRow?this.currentRow:null},getRadioRecord:function(e){var t=this.selectRadioRow,i=this.fullDataRowIdData,r=this.afterFullRowMaps;if(t){var l=(0,_util.getRowid)(this,t);if(e){if(i[l])return t}else if(r[l])return t}return null},triggerHoverEvent:function(e,t){t=t.row;this.setHoverRow(t)},setHoverRow:function(e){var t=this.$el,i=(0,_util.getRowid)(this,e);this.clearHoverRow(),t&&_xeUtils.default.arrayEach(t.querySelectorAll('[rowid="'.concat(i,'"]')),function(e){return(0,_dom.addClass)(e,"row--hover")}),this.hoverRow=e},clearHoverRow:function(){var e=this.$el;e&&_xeUtils.default.arrayEach(e.querySelectorAll(".vxe-body--row.row--hover"),function(e){return(0,_dom.removeClass)(e,"row--hover")}),this.hoverRow=null},triggerHeaderCellClickEvent:function(e,t){var i=this._lastResizeTime,r=this.sortOpts,l=t.column,n=e.currentTarget,i=i&&i>Date.now()-300,o=(0,_dom.getEventTargetNode)(e,n,"vxe-cell--sort").flag,a=(0,_dom.getEventTargetNode)(e,n,"vxe-cell--filter").flag;return"cell"!==r.trigger||i||o||a||this.triggerSortEvent(e,l,getNextSortOrder(this,l)),this.emitEvent("header-cell-click",Object.assign({triggerResizable:i,triggerSort:o,triggerFilter:a,cell:n},t),e),this.columnOpts.isCurrent||this.highlightCurrentColumn?this.setCurrentColumn(l):this.$nextTick()},triggerHeaderCellDblclickEvent:function(e,t){this.emitEvent("header-cell-dblclick",Object.assign({cell:e.currentTarget},t),e)},getCurrentColumn:function(){return this.columnOpts.isCurrent||this.highlightCurrentColumn?this.currentColumn:null},setCurrentColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&(this.clearCurrentColumn(),this.currentColumn=e),this.$nextTick()},clearCurrentColumn:function(){return this.currentColumn=null,this.$nextTick()},checkValidate:function(e){return this.triggerValidate?this.triggerValidate(e):this.$nextTick()},handleChangeCell:function(e,t){var i=this;this.checkValidate("blur").catch(function(e){return e}).then(function(){i.handleEdit(t,e).then(function(){return i.checkValidate("change")}).catch(function(e){return e})})},triggerCellClickEvent:function(e,t){var i=this.highlightCurrentRow,r=this.editStore,l=this.radioOpts,n=this.expandOpts,o=this.treeOpts,a=this.keyboardOpts,s=this.editConfig,u=this.editOpts,d=this.checkboxOpts,c=this.rowOpts,h=r.actived,r=r.focused,f=t,g=f.row,f=f.column,p=f.type,x=f.treeNode,m="radio"===p,v="checkbox"===p,p="expand"===p,w=e.currentTarget,_=m&&(0,_dom.getEventTargetNode)(e,w,"vxe-cell--radio").flag,C=v&&(0,_dom.getEventTargetNode)(e,w,"vxe-cell--checkbox").flag,b=x&&(0,_dom.getEventTargetNode)(e,w,"vxe-tree--btn-wrapper").flag,R=p&&(0,_dom.getEventTargetNode)(e,w,"vxe-table--expanded").flag;t=Object.assign({cell:w,triggerRadio:_,triggerCheckbox:C,triggerTreeNode:b,triggerExpandNode:R},t),!C&&!_&&(!R&&("row"===n.trigger||p&&"cell"===n.trigger)&&this.triggerRowExpandEvent(e,t),"row"===o.trigger||x&&"cell"===o.trigger)&&this.triggerTreeExpandEvent(e,t),b||(R||(!c.isCurrent&&!i||C||_||this.triggerCurrentRowEvent(e,t),!_&&("row"===l.trigger||m&&"cell"===l.trigger)&&this.triggerRadioRowEvent(e,t),!C&&("row"===d.trigger||v&&"cell"===d.trigger)&&this.handleToggleCheckRowEvent(e,t)),(0,_utils.isEnableConf)(s)&&(a.arrowCursorLock&&e&&"cell"===u.mode&&e.target&&/^input|textarea$/i.test(e.target.tagName)&&(r.column=f,r.row=g),"manual"===u.trigger?h.args&&h.row===g&&f!==h.column&&this.handleChangeCell(e,t):h.args&&g===h.row&&f===h.column||("click"===u.trigger||"dblclick"===u.trigger&&"row"===u.mode&&h.row===g)&&this.handleChangeCell(e,t))),this.emitEvent("cell-click",t,e)},triggerCellDblclickEvent:function(e,t){var i=this,r=this.editStore,l=this.editConfig,n=this.editOpts,r=r.actived,o=e.currentTarget;t.cell=o,!(0,_utils.isEnableConf)(l)||"dblclick"!==n.trigger||r.args&&e.currentTarget===r.args.cell||("row"===n.mode?this.checkValidate("blur").catch(function(e){return e}).then(function(){i.handleEdit(t,e).then(function(){return i.checkValidate("change")}).catch(function(e){return e})}):"cell"===n.mode&&this.handleEdit(t,e).then(function(){return i.checkValidate("change")}).catch(function(e){return e})),this.emitEvent("cell-dblclick",t,e)},handleDefaultSort:function(){var r=this,e=this.sortConfig,t=this.sortOpts,i=t.defaultSort;i&&(i=_xeUtils.default.isArray(i)?i:[i]).length&&((e.multiple?i:i.slice(0,1)).forEach(function(e,t){var i=e.field,e=e.order;i&&e&&(i=r.getColumnByField(i))&&i.sortable&&(i.order=e,i.sortTime=Date.now()+t)}),t.remote||this.handleTableData(!0).then(this.updateStyle))},triggerSortEvent:function(e,t,i){var r=this.sortOpts,l=t.field;(t.sortable||t.remoteSort)&&(i&&t.order!==i?this.sort({field:l,order:i}):this.clearSort(r.multiple?t:null),i={$table:this,$event:e,column:t,field:l,property:l,order:t.order,sortList:this.getSortColumns(),sortTime:t.sortTime},this.mouseConfig&&this.mouseOpts.area&&this.handleSortEvent&&this.handleSortEvent(e,i),this.emitEvent("sort-change",i,e))},setPendingRow:function(e,t){var i=this,r=Object.assign({},this.pendingRowMaps),l=_toConsumableArray(this.pendingRowList);return e&&!_xeUtils.default.isArray(e)&&(e=[e]),t?e.forEach(function(e){var t=(0,_util.getRowid)(i,e);t&&!r[t]&&(l.push(e),r[t]=e)}):e.forEach(function(e){var t=(0,_util.getRowid)(i,e);t&&r[t]&&(-1<(e=i.findRowIndexOf(l,e))&&l.splice(e,1),delete r[t])}),this.pendingRowMaps=r,this.pendingRowList=l,this.$nextTick()},togglePendingRow:function(e){var r=this,l=Object.assign({},this.pendingRowMaps),n=_toConsumableArray(this.pendingRowList);return(e=e&&!_xeUtils.default.isArray(e)?[e]:e).forEach(function(e){var t,i=(0,_util.getRowid)(r,e);i&&(l[i]?(-1<(t=r.findRowIndexOf(n,e))&&n.splice(t,1),delete l[i]):(n.push(e),l[i]=e))}),this.pendingRowMaps=l,this.pendingRowList=n,this.$nextTick()},getPendingRecords:function(){return this.pendingRowList.slice(0)},hasPendingByRow:function(e){return!!this.pendingRowMaps[(0,_util.getRowid)(this,e)]},clearPendingRow:function(){return this.pendingRowMaps={},this.pendingRowList=[],this.$nextTick()},sort:function(e,t){var l,n=this,i=this.sortOpts,r=i.multiple,o=i.remote,a=i.orders;return e&&_xeUtils.default.isString(e)&&(e=[{field:e,order:t}]),(e=_xeUtils.default.isArray(e)?e:[e]).length?(r||clearAllSort(this),(r?e:[e[0]]).forEach(function(e,t){var i=e.field,e=e.order,r=i;(r=_xeUtils.default.isString(i)?n.getColumnByField(i):r)&&(r.sortable||r.remoteSort)&&(l=l||r,-1===a.indexOf(e)&&(e=getNextSortOrder(n,r)),r.order!==e&&(r.order=e),r.sortTime=Date.now()+t)}),(!o||l&&l.remoteSort)&&this.handleTableData(!0),this.$nextTick().then(function(){return n.updateCellAreas(),n.updateStyle()})):this.$nextTick()},clearSort:function(e){var t=this.sortOpts;return e?(e=(0,_util.handleFieldOrColumn)(this,e))&&(e.order=null):clearAllSort(this),t.remote||this.handleTableData(!0),this.$nextTick().then(this.updateStyle)},getSortColumn:function(){return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["getSortColumn","getSortColumns"]),_xeUtils.default.find(this.tableFullColumn,function(e){return(e.sortable||e.remoteSort)&&e.order})},isSort:function(e){return e?(e=(0,_util.handleFieldOrColumn)(this,e))&&e.sortable&&!!e.order:0<this.getSortColumns().length},getSortColumns:function(){var e=this.sortOpts,t=e.multiple,e=e.chronological,r=[];return this.tableFullColumn.forEach(function(e){var t=e.field,i=e.order;(e.sortable||e.remoteSort)&&i&&r.push({column:e,field:t,property:t,order:i,sortTime:e.sortTime})}),t&&e&&1<r.length?_xeUtils.default.orderBy(r,"sortTime"):r},closeFilter:function(){var e=this.filterStore,t=e.column,i=e.visible;return Object.assign(e,{isAllSelected:!1,isIndeterminate:!1,options:[],visible:!1}),i&&this.emitEvent("filter-visible",{column:t,field:t.field,property:t.field,filterList:this.getCheckedFilters(),visible:!1},null),this.$nextTick()},isActiveFilterByColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e?e.filters&&e.filters.some(function(e){return e.checked}):0<this.getCheckedFilters().length},isFilter:function(e){return this.isActiveFilterByColumn(e)},isRowExpandLoaded:function(e){e=this.fullAllDataRowMap.get(e);return e&&e.expandLoaded},clearRowExpandLoaded:function(e){var t=this.expandOpts,i=this.rowExpandLazyLoadedMaps,r=this.fullAllDataRowMap,t=t.lazy,l=(0,_util.getRowid)(this,e),r=r.get(e);return t&&r&&(r.expandLoaded=!1,(e=Object.assign({},i))[l]&&delete e[l],this.rowExpandLazyLoadedMaps=e),this.$nextTick()},reloadRowExpand:function(e){var t=this,i=this.expandOpts,r=this.rowExpandLazyLoadedMaps,i=i.lazy,l=(0,_util.getRowid)(this,e);return i&&!r[l]&&this.clearRowExpandLoaded(e).then(function(){return t.handleAsyncRowExpand(e)}),this.$nextTick()},reloadExpandContent:function(e){return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["reloadExpandContent","reloadRowExpand"]),this.reloadRowExpand(e)},triggerRowExpandEvent:function(e,t){var i=this.expandOpts,r=this.rowExpandLazyLoadedMaps,l=this.expandColumn,t=t.row,n=i.lazy;"manual"===i.trigger||(e.stopPropagation(),i=(0,_util.getRowid)(this,t),n&&r[i])||(n=!this.isRowExpandByRow(t),r=this.getColumnIndex(l),i=this.getVMColumnIndex(l),this.setRowExpand(t,n),this.emitEvent("toggle-row-expand",{expanded:n,column:l,columnIndex:r,$columnIndex:i,row:t,rowIndex:this.getRowIndex(t),$rowIndex:this.getVMRowIndex(t)},e))},toggleRowExpand:function(e){return this.setRowExpand(e,!this.isRowExpandByRow(e))},handleDefaultRowExpand:function(){var t,e=this.expandOpts,i=this.fullDataRowIdData,r=e.expandAll,e=e.expandRowKeys;r?this.setAllRowExpand(!0):e&&(t=[],e.forEach(function(e){i[e]&&t.push(i[e].row)}),this.setRowExpand(t,!0))},setAllRowExpand:function(e){var t=this.treeConfig,i=this.treeOpts,r=this.tableFullData,l=this.tableFullTreeData,i=i.children||i.childrenField,n=[];return t?_xeUtils.default.eachTree(l,function(e){n.push(e)},{children:i}):n=r,this.setRowExpand(n,e)},handleAsyncRowExpand:function(l){var n=this,e=this.fullAllDataRowMap,o=this.expandOpts,a=e.get(l);return new Promise(function(t){var e,i,r=o.loadMethod;r?(e=n.rowExpandLazyLoadedMaps,(e=Object.assign({},e))[i=(0,_util.getRowid)(n,l)]=l,n.rowExpandLazyLoadedMaps=e,r({$table:n,row:l,rowIndex:n.getRowIndex(l),$rowIndex:n.getVMRowIndex(l)}).then(function(){a.expandLoaded=!0;var e=n.rowExpandedMaps,e=Object.assign({},e);e[i]=l,n.rowExpandedMaps=e}).catch(function(){a.expandLoaded=!1}).finally(function(){var e=n.rowExpandLazyLoadedMaps,e=Object.assign({},e);e[i]&&delete e[i],n.rowExpandLazyLoadedMaps=e,t(n.$nextTick().then(n.recalculate))})):t()})},setRowExpand:function(e,t){var r=this,i=this.rowExpandedMaps,l=this.fullAllDataRowIdData,n=this.rowExpandLazyLoadedMaps,o=this.expandOpts,a=this.expandColumn,s=Object.assign({},i),i=o.reserve,u=o.lazy,d=o.accordion,c=o.toggleMethod,h=[],f=this.getColumnIndex(a),g=this.getVMColumnIndex(a);return e&&(_xeUtils.default.isArray(e)||(e=[e]),d&&(s={},e=e.slice(e.length-1,e.length)),o=c?e.filter(function(e){return c({expanded:t,column:a,columnIndex:f,$columnIndex:g,row:e,rowIndex:r.getRowIndex(e),$rowIndex:r.getVMRowIndex(e)})}):e,t?o.forEach(function(e){var t,i=(0,_util.getRowid)(r,e);s[i]||(t=l[i],u&&!t.expandLoaded&&!n[i]?h.push(r.handleAsyncRowExpand(e)):s[i]=e)}):o.forEach(function(e){e=(0,_util.getRowid)(r,e);s[e]&&delete s[e]}),i)&&o.forEach(function(e){return r.handleRowExpandReserve(e,t)}),this.rowExpandedMaps=s,Promise.all(h).then(this.recalculate)},isRowExpandByRow:function(e){return!!this.rowExpandedMaps[(0,_util.getRowid)(this,e)]},isExpandByRow:function(e){return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["isExpandByRow","isRowExpandByRow"]),this.isRowExpandByRow(e)},clearRowExpand:function(){var t=this,e=this.expandOpts,i=this.tableFullData,e=e.reserve,r=this.getRowExpandRecords();return this.rowExpandedMaps={},e&&i.forEach(function(e){return t.handleRowExpandReserve(e,!1)}),this.$nextTick().then(function(){r.length&&t.recalculate()})},clearRowExpandReserve:function(){return this.rowExpandedReserveRowMap={},this.$nextTick()},handleRowExpandReserve:function(e,t){var i,r=this.rowExpandedReserveRowMap;this.expandOpts.reserve&&(i=(0,_util.getRowid)(this,e),t?r[i]=e:r[i]&&delete r[i])},getRowExpandRecords:function(){var t=[];return _xeUtils.default.each(this.rowExpandedMaps,function(e){e&&t.push(e)}),t},getTreeExpandRecords:function(){var t=[];return _xeUtils.default.each(this.treeExpandedMaps,function(e){e&&t.push(e)}),t},getTreeStatus:function(){return this.treeConfig?{config:this.treeOpts,rowExpandeds:this.getTreeExpandRecords()}:null},isTreeExpandLoaded:function(e){e=this.fullAllDataRowMap.get(e);return e&&e.treeLoaded},clearTreeExpandLoaded:function(e){var t=this.treeOpts,i=this.treeExpandedMaps,r=this.fullAllDataRowMap,l=t.transform,t=t.lazy,n=(0,_util.getRowid)(this,e),r=r.get(e);return t&&r&&(r.treeLoaded=!1,i[n])&&delete i[n],l?(this.handleVirtualTreeToList(),this.handleTableData()):this.$nextTick()},reloadTreeExpand:function(e){var t=this,i=this.treeOpts,r=this.treeExpandLazyLoadedMaps,l=i.transform,n=i.lazy,i=i.hasChild||i.hasChildField,o=(0,_util.getRowid)(this,e);return n&&e[i]&&!r[o]&&this.clearTreeExpandLoaded(e).then(function(){return t.handleAsyncTreeExpandChilds(e)}).then(function(){if(l)return t.handleVirtualTreeToList(),t.handleTableData()}).then(function(){return t.recalculate()}),this.$nextTick()},reloadTreeChilds:function(e){return"development"===process.env.VUE_APP_VXE_TABLE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["reloadTreeChilds","reloadTreeExpand"]),this.reloadTreeExpand(e)},triggerTreeExpandEvent:function(e,t){var i=this.treeOpts,r=this.treeExpandLazyLoadedMaps,l=t.row,t=t.column,n=i.lazy;"manual"===i.trigger||(e.stopPropagation(),i=(0,_util.getRowid)(this,l),n&&r[i])||(n=!this.isTreeExpandByRow(l),r=this.getColumnIndex(t),i=this.getVMColumnIndex(t),this.setTreeExpand(l,n),this.emitEvent("toggle-tree-expand",{expanded:n,column:t,columnIndex:r,$columnIndex:i,row:l},e))},toggleTreeExpand:function(e){return this.setTreeExpand(e,!this.isTreeExpandByRow(e))},handleDefaultTreeExpand:function(){var e,i,r,l,t=this.treeConfig,n=this.treeOpts,o=this.tableFullData;t&&(t=n.expandAll,e=n.expandRowKeys,i=n.children||n.childrenField,t?this.setAllTreeExpand(!0):e&&(r=[],l=(0,_util.getRowkey)(this),e.forEach(function(t){var e=_xeUtils.default.findTree(o,function(e){return t===_xeUtils.default.get(e,l)},{children:i});e&&r.push(e.item)}),this.setTreeExpand(r,!0)))},handleAsyncTreeExpandChilds:function(n){var o=this,e=this.treeOpts,t=this.checkboxOpts,a=e.transform,s=e.loadMethod,u=t.checkStrictly;return new Promise(function(e){var t,i,r,l;s?(t=o.fullAllDataRowMap,i=o.treeExpandLazyLoadedMaps,r=(0,_util.getRowid)(o,n),l=t.get(n),i[r]=n,s({$table:o,row:n}).then(function(e){if(l.treeLoaded=!0,i[r]&&(i[r]=null),e=_xeUtils.default.isArray(e)?e:[])return o.loadTreeChildren(n,e).then(function(e){var t=o.treeExpandedMaps,t=Object.assign({},t);return e.length&&!t[r]&&(t[r]=n,o.treeExpandedMaps=t),!u&&o.isCheckedByCheckboxRow(n)&&o.handleCheckedCheckboxRow(e,!0,!0),o.$nextTick().then(function(){if(a)return o.handleTableData()})})}).catch(function(){l.treeLoaded=!1;var e=o.treeExpandLazyLoadedMaps;e[r]&&(e[r]=null)}).finally(function(){o.$nextTick().then(function(){return o.recalculate()}).then(function(){return e()})})):e()})},setAllTreeExpand:function(e){var t=this.tableFullData,i=this.treeOpts,r=i.lazy,l=i.children||i.childrenField,n=[];return _xeUtils.default.eachTree(t,function(e){var t=e[l];(r||t&&t.length)&&n.push(e)},{children:l}),this.setTreeExpand(n,e)},handleBaseTreeExpand:function(e,t){var r=this,l=this.fullAllDataRowMap,i=this.tableFullData,n=this.treeExpandedMaps,o=this.treeOpts,a=this.treeExpandLazyLoadedMaps,s=this.treeNodeColumn,u=o.reserve,d=o.lazy,c=o.accordion,h=o.toggleMethod,f=Object.assign({},n),g=o.children||o.childrenField,p=o.hasChild||o.hasChildField,x=[],m=this.getColumnIndex(s),v=this.getVMColumnIndex(s),w=h?e.filter(function(e){return h({expanded:t,column:s,columnIndex:m,$columnIndex:v,row:e})}):e;return c&&(w=w.length?[w[w.length-1]]:[],n=_xeUtils.default.findTree(i,function(e){return e===w[0]},{children:g}))&&n.items.forEach(function(e){e=(0,_util.getRowid)(r,e);f[e]&&delete f[e]}),t?w.forEach(function(e){var t,i=(0,_util.getRowid)(r,e);f[i]||(t=l.get(e),d&&e[p]&&!t.treeLoaded&&!a[i]?x.push(r.handleAsyncTreeExpandChilds(e)):e[g]&&e[g].length&&(f[i]=e))}):w.forEach(function(e){e=(0,_util.getRowid)(r,e);f[e]&&delete f[e]}),u&&w.forEach(function(e){return r.handleTreeExpandReserve(e,t)}),this.treeExpandedMaps=f,Promise.all(x).then(this.recalculate)},handleVirtualTreeExpand:function(e,t){var i=this;return this.handleBaseTreeExpand(e,t).then(function(){return i.handleVirtualTreeToList(),i.handleTableData()}).then(function(){return i.recalculate()})},setTreeExpand:function(e,t){var i=this.treeOpts.transform;return e&&(e=_xeUtils.default.isArray(e)?e:[e]).length?i?this.handleVirtualTreeExpand(e,t):this.handleBaseTreeExpand(e,t):this.$nextTick()},isTreeExpandByRow:function(e){return!!this.treeExpandedMaps[(0,_util.getRowid)(this,e)]},clearTreeExpand:function(){var t=this,e=this.treeOpts,i=this.tableFullData,r=e.transform,l=e.reserve,e=e.children||e.childrenField,n=this.getTreeExpandRecords();return this.treeExpandedMaps={},l&&_xeUtils.default.eachTree(i,function(e){return t.handleTreeExpandReserve(e,!1)},{children:e}),this.handleTableData().then(function(){if(r)return t.handleVirtualTreeToList(),t.handleTableData()}).then(function(){n.length&&t.recalculate()})},clearTreeExpandReserve:function(){return this.treeExpandedReserveRowMap={},this.$nextTick()},handleTreeExpandReserve:function(e,t){var i,r=this.treeExpandedReserveRowMap;this.treeOpts.reserve&&(i=(0,_util.getRowid)(this,e),t?r[i]=e:r[i]&&delete r[i])},getScroll:function(){var e=this.$refs,t=this.scrollXLoad,i=this.scrollYLoad,e=e.tableBody.$el;return{virtualX:t,virtualY:i,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}},triggerScrollXEvent:function(){this.loadScrollXData()},loadScrollXData:function(){var e=this.mergeList,t=this.mergeFooterList,i=this.scrollXStore,r=i.startIndex,l=i.endIndex,n=i.offsetSize,o=computeVirtualX(this),a=o.toVisibleIndex,o=o.visibleSize,n={startIndex:Math.max(0,a-1-n),endIndex:a+o+n},e=(calculateMergerOffserIndex(e.concat(t),n,"col"),n.startIndex),t=n.endIndex;!(a<=r||l-o-1<=a)||r===e&&l===t||(i.startIndex=e,i.endIndex=t,this.updateScrollXData()),this.closeTooltip()},triggerScrollYEvent:function(e){var t=this.scrollYStore,i=t.adaptive;isWebkit&&i&&2*t.offsetSize+t.visibleSize<=40?this.loadScrollYData(e):this.debounceScrollY(e)},debounceScrollY:_xeUtils.default.debounce(function(e){this.loadScrollYData(e)},debounceScrollYDuration,{leading:!1,trailing:!0}),loadScrollYData:function(e){var t=this.mergeList,i=this.scrollYStore,r=i.startIndex,l=i.endIndex,n=i.visibleSize,o=i.offsetSize,e=(e.currentTarget||e.target).scrollTop,e=Math.floor(e/i.rowHeight),o={startIndex:Math.max(0,e-1-o),endIndex:e+n+o},t=(calculateMergerOffserIndex(t,o,"row"),o.startIndex),o=o.endIndex;!(e<=r||l-n-1<=e)||r===t&&l===o||(i.startIndex=t,i.endIndex=o,this.updateScrollYData())},computeScrollLoad:function(){var o=this;return this.$nextTick().then(function(){var e=o.sYOpts,t=o.sXOpts,i=o.scrollXLoad,r=o.scrollYLoad,l=o.scrollXStore,n=o.scrollYStore,i=(i?(i=computeVirtualX(o).visibleSize,t=t.oSize?_xeUtils.default.toNumber(t.oSize):_dom.browse.msie?10:_dom.browse.edge?5:0,l.offsetSize=t,l.visibleSize=i,l.endIndex=Math.max(l.startIndex+l.visibleSize+t,l.endIndex),o.updateScrollXData()):o.updateScrollXSpace(),computeVirtualY(o)),t=i.rowHeight,l=i.visibleSize;n.rowHeight=t,r?(i=e.oSize?_xeUtils.default.toNumber(e.oSize):_dom.browse.msie?20:_dom.browse.edge?10:0,n.offsetSize=i,n.visibleSize=l,n.endIndex=Math.max(n.startIndex+l+i,n.endIndex),o.updateScrollYData()):o.updateScrollYSpace(),o.rowHeight=t,o.$nextTick(o.updateStyle)})},handleTableColumn:function(){var e=this.scrollXLoad,t=this.visibleColumn,i=this.scrollXStore;this.tableColumn=e?t.slice(i.startIndex,i.endIndex):t.slice(0)},updateScrollXData:function(){var e=this;this.$nextTick(function(){e.handleTableColumn(),e.updateScrollXSpace()})},updateScrollXSpace:function(){var e=this.$refs,t=this.isGroup,r=this.elemStore,i=this.visibleColumn,l=this.scrollXStore,n=this.scrollXLoad,o=this.tableWidth,a=this.scrollbarWidth,s=e.tableHeader,u=e.tableBody,e=e.tableFooter,u=u?u.$el:null;u&&(s=s?s.$el:null,e=e?e.$el:null,s=s?s.querySelector(".vxe-table--header"):null,u=u.querySelector(".vxe-table--body"),e=e?e.querySelector(".vxe-table--footer"):null,i=i.slice(0,l.startIndex).reduce(function(e,t){return e+t.renderWidth},0),l="",n&&(l="".concat(i,"px")),s&&(s.style.marginLeft=t?"":l),u.style.marginLeft=l,e&&(e.style.marginLeft=l),["main"].forEach(function(i){["header","body","footer"].forEach(function(e){var t=r["".concat(i,"-").concat(e,"-xSpace")];t&&(t.style.width=n?"".concat(o+("header"===e?a:0),"px"):"")})}),this.$nextTick(this.updateStyle))},updateScrollYData:function(){var e=this;this.$nextTick(function(){e.handleTableData(),e.updateScrollYSpace()})},updateScrollYSpace:function(){var i=this.elemStore,e=this.scrollYStore,t=this.scrollYLoad,r=this.afterFullData,l=e.startIndex,e=e.rowHeight,r=r.length*e,l=Math.max(0,l*e),n="",o="";t&&(n="".concat(l,"px"),o="".concat(r,"px")),["main","left","right"].forEach(function(t){var e=i["".concat(t,"-body-table")];e&&(e.style.marginTop=n),["header","body","footer"].forEach(function(e){e=i["".concat(t,"-").concat(e,"-ySpace")];e&&(e.style.height=o)})}),this.$nextTick(this.updateStyle)},scrollTo:function(e,t){var i=this,r=this.$refs,l=r.tableBody,n=r.rightBody,r=r.tableFooter,l=l?l.$el:null,n=n?n.$el:null,r=r?r.$el:null;return _xeUtils.default.isNumber(e)&&(0,_dom.setScrollLeft)(r||l,e),_xeUtils.default.isNumber(t)&&(0,_dom.setScrollTop)(n||l,t),this.scrollXLoad||this.scrollYLoad?new Promise(function(e){return setTimeout(function(){return e(i.$nextTick())},50)}):this.$nextTick()},scrollToRow:function(e,t){var i=[];return e&&(this.treeConfig?i.push(this.scrollToTreeRow(e)):i.push((0,_util.rowToVisible)(this,e))),t&&i.push(this.scrollToColumn(t)),Promise.all(i)},scrollToColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&this.fullColumnMap.has(e)?(0,_util.colToVisible)(this,e):this.$nextTick()},scrollToTreeRow:function(t){var i,r=this,e=this.tableFullData,l=this.treeConfig,n=this.treeOpts,n=n.children||n.childrenField,o=[];return l&&(l=_xeUtils.default.findTree(e,function(e){return e===t},{children:n}))&&(i=l.nodes).forEach(function(e,t){t<i.length-1&&!r.isTreeExpandByRow(e)&&o.push(r.setTreeExpand(e,!0))}),Promise.all(o).then(function(){return(0,_util.rowToVisible)(r,t)})},clearScroll:function(){var e=this.$refs,t=this.scrollXStore,i=this.scrollYStore,r=e.tableBody,l=e.rightBody,e=e.tableFooter,r=r?r.$el:null,l=l?l.$el:null,e=e?e.$el:null;return l&&((0,_util.restoreScrollListener)(l),l.scrollTop=0),e&&(e.scrollLeft=0),r&&((0,_util.restoreScrollListener)(r),r.scrollTop=0,r.scrollLeft=0),t.startIndex=0,t.endIndex=t.visibleSize,i.startIndex=0,i.endIndex=i.visibleSize,this.$nextTick()},updateFooter:function(){var e=this.showFooter,t=this.visibleColumn,i=this.footerData,r=this.footerMethod,l=[];return e&&i&&i.length?l=i.slice(0):e&&r&&(l=t.length?r({columns:t,data:this.afterFullData,$table:this,$grid:this.$xegrid}):[]),this.footerTableData=l,this.$nextTick()},updateStatus:function(o,a){var s=this,u=!_xeUtils.default.isUndefined(a);return this.$nextTick().then(function(){var e=s.$refs,t=s.editRules,i=s.validStore,e=e.tableBody;if(o&&e&&t){var r=o.row,l=o.column;if(s.hasCellRules&&s.hasCellRules("change",r,l)){var n=s.getCellElement(r,l);if(n)return s.validCellRules("change",r,l,a).then(function(){u&&i.visible&&(0,_util.setCellValue)(r,l,a),s.clearValidate(r,l)}).catch(function(e){e=e.rule;u&&(0,_util.setCellValue)(r,l,a),s.showValidTooltip({rule:e,row:r,column:l,cell:n})})}}})},handleDefaultMergeCells:function(){this.setMergeCells(this.mergeCells)},setMergeCells:function(e){var t=this;return this.spanMethod&&(0,_log.errLog)("vxe.error.errConflicts",["merge-cells","span-method"]),setMerges(this,e,this.mergeList,this.afterFullData),this.$nextTick().then(function(){return t.updateCellAreas(),t.updateStyle()})},removeMergeCells:function(e){var t=this,i=(this.spanMethod&&(0,_log.errLog)("vxe.error.errConflicts",["merge-cells","span-method"]),removeMerges(this,e,this.mergeList,this.afterFullData));return this.$nextTick().then(function(){return t.updateCellAreas(),t.updateStyle(),i})},getMergeCells:function(){return this.mergeList.slice(0)},clearMergeCells:function(){var e=this;return this.mergeList=[],this.$nextTick().then(function(){return e.updateStyle()})},handleDefaultMergeFooterItems:function(){this.setMergeFooterItems(this.mergeFooterItems)},setMergeFooterItems:function(e){var t=this;return this.footerSpanMethod&&(0,_log.errLog)("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]),setMerges(this,e,this.mergeFooterList,null),this.$nextTick().then(function(){return t.updateCellAreas(),t.updateStyle()})},removeMergeFooterItems:function(e){var t=this,i=(this.footerSpanMethod&&(0,_log.errLog)("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]),removeMerges(this,e,this.mergeFooterList,null));return this.$nextTick().then(function(){return t.updateCellAreas(),t.updateStyle(),i})},getMergeFooterItems:function(){return this.mergeFooterList.slice(0)},clearMergeFooterItems:function(){var e=this;return this.mergeFooterList=[],this.$nextTick().then(function(){return e.updateStyle()})},updateZindex:function(){this.zIndex?this.tZindex=this.zIndex:this.tZindex<(0,_utils.getLastZIndex)()&&(this.tZindex=(0,_utils.nextZIndex)())},updateCellAreas:function(){return this.mouseConfig&&this.mouseOpts.area&&this.handleUpdateCellAreas?this.handleUpdateCellAreas():this.$nextTick()},emitEvent:function(e,t,i){this.$emit(e,Object.assign({$table:this,$grid:this.$xegrid,$event:i},t))},focus:function(){return this.isActivated=!0,this.$nextTick()},blur:function(){return this.isActivated=!1,this.$nextTick()},connect:function(e){return e&&e.syncUpdate?(e.syncUpdate({collectColumn:this.collectColumn,$table:this}),this.$toolbar=e):(0,_log.errLog)("vxe.error.barUnableLink"),this.$nextTick()},getCell:function(e,t){return this.getCellElement(e,t)},findRowIndexOf:function(e,t){var i=this;return t?_xeUtils.default.findIndexOf(e,function(e){return i.eqRow(e,t)}):-1},eqRow:function(e,t){return!(!e||!t||e!==t&&(0,_util.getRowid)(this,e)!==(0,_util.getRowid)(this,t))},getSetupOptions:function(){return getConfig()}},funcs="setFilter,openFilter,clearFilter,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,getPrintHtml,exportData,openImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom".split(","),_default=(funcs.forEach(function(e){Methods[e]=function(){return"development"!==process.env.VUE_APP_VXE_TABLE_ENV||this["_".concat(e)]||("openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print".split(",").includes(e)?(0,_log.errLog)("vxe.error.reqModule",["VxeTableExportModule"]):"fullValidate,validate".split(",").includes(e)?(0,_log.errLog)("vxe.error.reqModule",["VxeTableValidatorModule"]):"setFilter,openFilter,clearFilter,getCheckedFilters".split(",").includes(e)?(0,_log.errLog)("vxe.error.reqModule",["VxeTableFilterModule"]):"insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell".split(",").includes(e)?(0,_log.errLog)("vxe.error.reqModule",["VxeTableEditModule"]):"openCustom".split(",").includes(e)&&(0,_log.errLog)("vxe.error.reqModule",["VxeTableCustomModule"])),this["_".concat(e)]?this["_".concat(e)].apply(this,arguments):null}}),exports.default=Methods);
1
+ function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_dom=require("../../ui/src/dom"),_utils=require("../../ui/src/utils"),_ui=require("../../ui"),_cell=_interopRequireDefault(require("./cell")),_util=require("./util"),_vn=require("../../ui/src/vn"),_log=require("../../ui/src/log");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0===i)return("string"===t?String:Number)(e);i=i.call(e,t||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var i;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(i="Object"===(i={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}var getConfig=_ui.VxeUI.getConfig,getI18n=_ui.VxeUI.getI18n,renderer=_ui.VxeUI.renderer,formats=_ui.VxeUI.formats,interceptor=_ui.VxeUI.interceptor,isWebkit=_dom.browse["-webkit"]&&!_dom.browse.edge,debounceScrollYDuration=_dom.browse.msie?80:20,customStorageKey="VXE_CUSTOM_STORE",_getColumnList=function(e){var t=[];return e.forEach(function(e){t.push.apply(t,_toConsumableArray(e.children&&e.children.length?_getColumnList(e.children):[e]))}),t};function eqCellValue(e,t,i){e=_xeUtils.default.get(e,i),t=_xeUtils.default.get(t,i);return!(!(0,_utils.eqEmptyValue)(e)||!(0,_utils.eqEmptyValue)(t))||(_xeUtils.default.isString(e)||_xeUtils.default.isNumber(e)?""+e==""+t:_xeUtils.default.isEqual(e,t))}function getNextSortOrder(e,t){e=e.sortOpts.orders,t=t.order||null,t=e.indexOf(t)+1;return e[t<e.length?t:0]}var getCustomStorageMap=function(e){var t=getConfig().version,i=_xeUtils.default.toStringJSON(localStorage.getItem(customStorageKey)||""),i=i&&i._v===t?i:{_v:t};return(e?i[e]:i)||{}},setCustomStorageMap=function(e,t){var i=getConfig().version,r=getCustomStorageMap();r[e]=t||void 0,r._v=i,localStorage.setItem(customStorageKey,_xeUtils.default.toJSONString(r))},getRecoverRowMaps=function(e,t){var i=e.fullAllDataRowIdData,r={};return _xeUtils.default.each(t,function(e,t){i[t]&&(r[t]=e)}),r};function handleReserveRow(e,t){var i=e.fullDataRowIdData,r=[];return _xeUtils.default.each(t,function(e,t){i[t]&&-1===r.indexOf(i[t].row)&&r.push(i[t].row)}),r}function computeVirtualX(e){var t=e.$refs,i=e.visibleColumn,e=t.tableBody,t=e?e.$el:null;if(t){for(var r=t.scrollLeft,l=r+t.clientWidth,n=-1,o=0,a=0,s=0,u=i.length;s<u&&(o+=i[s].renderWidth,!(0<=(n=-1===n&&r<o?s:n)&&(a++,l<o)));s++);return{toVisibleIndex:Math.max(0,n),visibleSize:Math.max(8,a)}}return{toVisibleIndex:0,visibleSize:8}}function computeVirtualY(e){var t,i,r=e.$refs,l=e.rowHeightMaps,n=r.tableHeader,r=r.tableBody,r=r?r.$el:null,e=e.computeSize;return r?(n=n?n.$el:null,i=0,{rowHeight:i=(i=(t=!(t=r.querySelector("tr"))&&n?n.querySelector("tr"):t)?t.clientHeight:i)||l[e||"default"],visibleSize:Math.max(8,Math.ceil(r.clientHeight/i)+2)}):{rowHeight:0,visibleSize:8}}function calculateMergerOffserIndex(e,t,i){for(var r=0,l=e.length;r<l;r++){var n=e[r],o=t.startIndex,a=t.endIndex,s=n[i],n=s+n[i+"span"];s<o&&o<n&&(t.startIndex=s),s<a&&a<n&&(t.endIndex=n),t.startIndex===o&&t.endIndex===a||(r=-1)}}function setMerges(e,t,o,a){var i,s;t&&(i=e.treeConfig,s=e.visibleColumn,_xeUtils.default.isArray(t)||(t=[t]),i&&t.length&&(0,_log.errLog)("vxe.error.noTree",["merge-cells | merge-footer-items"]),t.forEach(function(e){var t,i,r=e.row,l=e.col,n=e.rowspan,e=e.colspan;a&&_xeUtils.default.isNumber(r)&&(r=a[r]),_xeUtils.default.isNumber(l)&&(l=s[l]),(a?r:_xeUtils.default.isNumber(r))&&l&&(n||e)&&(n=_xeUtils.default.toNumber(n)||1,e=_xeUtils.default.toNumber(e)||1,1<n||1<e)&&(t=_xeUtils.default.findIndexOf(o,function(e){return e._row===r&&e._col===l}),(t=o[t])?(t.rowspan=n,t.colspan=e,t._rowspan=n,t._colspan=e):(t=a?a.indexOf(r):r,i=s.indexOf(l),o.push({row:t,col:i,rowspan:n,colspan:e,_row:r,_col:l,_rowspan:n,_colspan:e})))}))}function removeMerges(e,t,r,l){var i,n,o=[];return t&&(i=e.treeConfig,n=e.visibleColumn,_xeUtils.default.isArray(t)||(t=[t]),i&&t.length&&(0,_log.errLog)("vxe.error.noTree",["merge-cells | merge-footer-items"]),t.forEach(function(e){var t=e.row,i=e.col,e=(l&&_xeUtils.default.isNumber(t)&&(t=l[t]),_xeUtils.default.isNumber(i)&&(i=n[i]),_xeUtils.default.findIndexOf(r,function(e){return e._row===t&&e._col===i}));-1<e&&(e=r.splice(e,1),o.push(e[0]))})),o}function clearAllSort(e){e.tableFullColumn.forEach(function(e){e.order=null})}function calcHeight(e,t){var i=e.parentHeight,t=e[t],r=0;return r=t?"100%"===t||"auto"===t?i:(e=e.getExcludeHeight(),r=(0,_dom.isScale)(t)?Math.floor((_xeUtils.default.toInteger(t)||1)/100*i):_xeUtils.default.toNumber(t),Math.max(40,r-e)):r}function getOrderField(t,i){var r=i.sortBy,l=i.sortType;return function(e){e=r?_xeUtils.default.isFunction(r)?r({row:e,column:i}):_xeUtils.default.get(e,r):t.getCellLabel(e,i);return l&&"auto"!==l?"number"===l?_xeUtils.default.toNumber(e):"string"===l?_xeUtils.default.toValueString(e):e:isNaN(e)?e:_xeUtils.default.toNumber(e)}}var Methods={callSlot:function(e,t,i,r){if(e){var l=this.$xegrid;if(l)return l.callSlot(e,t,i,r);if(_xeUtils.default.isFunction(e))return(0,_vn.getSlotVNs)(e.call(this,t,i,r))}return[]},getParentElem:function(){var e=this.$el,t=this.$xegrid;return(t?t.$el:e).parentNode},getParentHeight:function(){var e=this.$el,t=this.$xegrid,i=this.height,e=e.parentNode,i="100%"===i||"auto"===i?(0,_dom.getPaddingTopBottomSize)(e):0;return Math.floor(t?t.getParentHeight():_xeUtils.default.toNumber(getComputedStyle(e).height)-i)},getExcludeHeight:function(){var e=this.$xegrid;return e?e.getExcludeHeight():0},clearAll:function(){return(0,_util.clearTableAllStatus)(this)},syncData:function(){var e=this;return(0,_log.warnLog)("vxe.error.delFunc",["syncData","getData"]),this.$nextTick().then(function(){return e.tableData=[],e.$nextTick().then(function(){return e.loadTableData(e.tableFullData)})})},updateData:function(){var e=this,t=this.scrollXLoad,i=this.scrollYLoad;return this.handleTableData(!0).then(function(){if(e.updateFooter(),e.checkSelectionStatus(),t||i)return t&&e.updateScrollXSpace(),i&&e.updateScrollYSpace(),e.refreshScroll()}).then(function(){return e.updateCellAreas(),e.recalculate(!0)}).then(function(){setTimeout(function(){return e.recalculate()},50)})},handleTableData:function(e){var i=this,t=this.scrollYLoad,r=this.scrollYStore,l=this.fullDataRowIdData,n=this.afterFullData,e=(e&&(this.updateAfterFullData(),n=this.handleVirtualTreeToList()),t?n.slice(r.startIndex,r.endIndex):n.slice(0));return e.forEach(function(e,t){e=(0,_util.getRowid)(i,e),e=l[e];e&&(e.$index=t)}),this.tableData=e,this.$nextTick()},updateScrollYStatus:function(e){var t=this.treeConfig,i=this.treeOpts,r=this.sYOpts,i=i.transform,e=e||this.tableFullData,i=(i||!t)&&!!r.enabled&&-1<r.gt&&(0===r.gt||r.gt<=e.length);return this.scrollYLoad=i},loadTableData:function(e){var r=this,t=this.keepSource,i=this.treeConfig,l=this.treeOpts,n=this.editStore,o=this.scrollYStore,a=this.scrollXStore,s=this.lastScrollLeft,u=this.lastScrollTop,d=this.scrollYLoad,c=this.sXOpts,h=this.sYOpts,f=l.children||l.childrenField,g=[],p=e?e.slice(0):[],x=(i&&(l.transform?("development"===process.env.NODE_ENV&&(l.rowField||(0,_log.errLog)("vxe.error.reqProp",["table.tree-config.rowField"]),l.parentField||(0,_log.errLog)("vxe.error.reqProp",["table.tree-config.parentField"]),f||(0,_log.errLog)("vxe.error.reqProp",["tree-config.childrenField"]),l.mapChildrenField||(0,_log.errLog)("vxe.error.reqProp",["tree-config.mapChildrenField"]),f===l.mapChildrenField)&&(0,_log.errLog)("vxe.error.errConflicts",["tree-config.childrenField","tree-config.mapChildrenField"]),p=(g=_xeUtils.default.toArrayTree(p,{key:l.rowField,parentKey:l.parentField,children:f,mapChildren:l.mapChildrenField})).slice(0)):g=p.slice(0)),o.startIndex=0,o.endIndex=1,a.startIndex=0,a.endIndex=1,n.insertList=[],n.insertMaps={},n.removeList=[],n.removeMaps={},this.updateScrollYStatus(p));return this.scrollYLoad=x,this.tableFullData=p,this.tableFullTreeData=g,this.cacheRowMap(!0),this.tableSynchData=e,t&&this.cacheSourceMap(p),"development"===process.env.NODE_ENV&&x&&(this.height||this.maxHeight||(0,_log.errLog)("vxe.error.reqProp",["table.height | table.max-height | table.scroll-y={enabled: false}"]),this.showOverflow||(0,_log.warnLog)("vxe.error.reqProp",["table.show-overflow"]),this.spanMethod)&&(0,_log.warnLog)("vxe.error.scrollErrProp",["table.span-method"]),this.clearCellAreas&&this.mouseConfig&&(this.clearCellAreas(),this.clearCopyCellArea()),this.clearMergeCells(),this.clearMergeFooterItems(),this.handleTableData(!0),this.updateFooter(),this.$nextTick().then(function(){r.updateHeight(),r.updateStyle()}).then(function(){r.computeScrollLoad()}).then(function(){return x&&(o.endIndex=o.visibleSize),r.handleReserveStatus(),r.checkSelectionStatus(),new Promise(function(i){r.$nextTick().then(function(){return r.recalculate()}).then(function(){var e=s,t=u;c.scrollToLeftOnChange&&(e=0),h.scrollToTopOnChange&&(t=0),d===x?(0,_util.restoreScrollLocation)(r,e,t).then(i):setTimeout(function(){return(0,_util.restoreScrollLocation)(r,e,t).then(i)})})})})},loadData:function(e){var t=this,i=this.inited,r=this.initStatus;return this.loadTableData(e).then(function(){return t.inited=!0,t.initStatus=!0,r||t.handleLoadDefaults(),i||t.handleInitDefaults(),t.recalculate()})},reloadData:function(e){var t=this,i=this.inited;return this.clearAll().then(function(){return t.inited=!0,t.initStatus=!0,t.loadTableData(e)}).then(function(){return t.handleLoadDefaults(),i||t.handleInitDefaults(),t.recalculate()})},setRow:function(e,t){var i;return t&&(i=_xeUtils.default.isArray(i=e)?i:[e]).forEach(function(e){return Object.assign(e,t)}),this.$nextTick()},reloadRow:function(e,t,i){var r=this.keepSource,l=this.tableSourceData,n=this.tableData;return r?((r=l[this.getRowIndex(e)])&&e&&(i?(l=_xeUtils.default.get(t||e,i),_xeUtils.default.set(e,i,l),_xeUtils.default.set(r,i,l)):(i=_xeUtils.default.clone(Object.assign({},t),!0),_xeUtils.default.destructuring(r,Object.assign(e,i)))),this.tableData=n.slice(0)):"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.reqProp",["keep-source"]),this.$nextTick()},loadColumn:function(e){var t=this,e=_xeUtils.default.mapTree(e,function(e){return _cell.default.createColumn(t,e)},{children:"children"});return this.handleColumn(e)},reloadColumn:function(e){var t=this;return this.clearAll().then(function(){return t.loadColumn(e)})},initColumnSort:function(){this.collectColumn.forEach(function(e,t){t+=1;e.sortNumber=t,e.renderSortNumber=t})},handleColumn:function(e){var t=this,i=(this.collectColumn=e,_getColumnList(e));return this.tableFullColumn=i,this._isLoading=!0,this.initColumnSort(),Promise.resolve(this.restoreCustomStorage()).then(function(){return t._isLoading=!1,t.cacheColumnMap(),t.parseColumns().then(function(){t.scrollXLoad&&t.loadScrollXData(!0)}),t.clearMergeCells(),t.clearMergeFooterItems(),t.handleTableData(!0),"development"===process.env.NODE_ENV&&(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&(0,_log.warnLog)("vxe.error.scrollErrProp",["column.type=expand"]),t.$nextTick().then(function(){return t.$toolbar&&t.$toolbar.syncUpdate({collectColumn:e,$table:t}),t.recalculate()})})},cacheRowMap:function(a){function e(e,t,i,r,l,n){var o=(0,_util.getRowid)(s,e),r=u&&r?(0,_util.toTreePathSeq)(r):t+1,n=n?n.length-1:0,r=((0,_utils.eqEmptyValue)(o)&&(o=(0,_util.getRowUniqueId)(),_xeUtils.default.set(e,x,o)),m&&e[p]&&_xeUtils.default.isUndefined(e[g])&&(e[g]=null),{row:e,rowid:o,seq:r,index:u&&l?-1:t,_index:-1,$index:-1,items:i,parent:l,level:n});a&&(h[o]=r,d.set(e,r)),f[o]=r,c.set(e,r)}var s=this,u=this.treeConfig,t=this.treeOpts,i=this.tableFullData,d=this.fullDataRowMap,c=this.fullAllDataRowMap,r=this.tableFullTreeData,h=this.fullDataRowIdData,f=this.fullAllDataRowIdData,g=t.children||t.childrenField,p=t.hasChild||t.hasChildField,x=(0,_util.getRowkey)(this),m=u&&t.lazy;a&&(h=this.fullDataRowIdData={},d.clear()),f=this.fullAllDataRowIdData={},c.clear(),u?_xeUtils.default.eachTree(r,e,{children:g}):i.forEach(e)},cacheSourceMap:function(e){function t(e){var t=(0,_util.getRowid)(i,e);(0,_utils.eqEmptyValue)(t)&&(t=(0,_util.getRowUniqueId)(),_xeUtils.default.set(e,o,t)),n[t]={row:e,rowid:t}}var i=this,r=this.treeConfig,l=this.treeOpts,n=this.sourceDataRowIdData,e=_xeUtils.default.clone(e,!0),o=(0,_util.getRowkey)(this),n=this.sourceDataRowIdData={};r?(r=l.children||l.childrenField,_xeUtils.default.eachTree(e,t,{children:l.transform?l.mapChildrenField:r})):e.forEach(t),this.tableSourceData=e},getParams:function(){return this.params},loadTreeChildren:function(a,e){var s=this,r=this.keepSource,l=this.tableSourceData,t=this.treeOpts,u=this.fullDataRowIdData,d=this.fullDataRowMap,c=this.fullAllDataRowMap,h=this.fullAllDataRowIdData,n=this.sourceDataRowIdData,o=t.transform,f=t.mapChildrenField,g=t.children||t.childrenField,t=h[(0,_util.getRowid)(this,a)],p=t?t.level:0;return this.createData(e).then(function(e){var t,i;return r&&(t=(0,_util.getRowid)(s,a),(i=_xeUtils.default.findTree(l,function(e){return t===(0,_util.getRowid)(s,e)},{children:g}))&&(i.item[g]=_xeUtils.default.clone(e,!0)),e.forEach(function(e){var t=(0,_util.getRowid)(s,e);n[t]=_xeUtils.default.clone(e,!0)})),_xeUtils.default.eachTree(e,function(e,t,i,r,l,n){var o=(0,_util.getRowid)(s,e),t={row:e,rowid:o,seq:-1,index:t,_index:-1,$index:-1,items:i,parent:l||a,level:p+n.length};u[o]=t,d.set(e,t),h[o]=t,c.set(e,t)},{children:g}),a[g]=e,o&&(a[f]=_xeUtils.default.clone(e,!1)),s.updateAfterDataIndex(),e})},cacheColumnMap:function(){function o(e,t,i,r,l){var n=e.id,o=e.field,a=e.fixed,s=e.type,u=e.treeNode,t={column:e,colid:n,index:t,items:i,parent:l};o&&("development"===process.env.NODE_ENV&&b[o]&&(0,_log.warnLog)("vxe.error.colRepet",["field",o]),b[o]=t),!p&&a&&(p=a),g||"html"!==s||(g=e),u?("development"===process.env.NODE_ENV&&c&&(0,_log.warnLog)("vxe.error.colRepet",["tree-node",u]),c=c||e):"expand"===s&&("development"===process.env.NODE_ENV&&d&&(0,_log.warnLog)("vxe.error.colRepet",["type",s]),d=d||e),"development"===process.env.NODE_ENV&&("checkbox"===s?(h&&(0,_log.warnLog)("vxe.error.colRepet",["type",s]),h=h||e):"radio"===s&&(f&&(0,_log.warnLog)("vxe.error.colRepet",["type",s]),f=f||e)),"development"===process.env.NODE_ENV&&(x.showOverflow&&!1===e.showOverflow&&(0,_log.warnLog)("vxe.error.errConflicts",["table.show-overflow=".concat(x.showOverflow),"column.show-overflow=".concat(e.showOverflow)]),x.showHeaderOverflow&&!1===e.showHeaderOverflow&&(0,_log.warnLog)("vxe.error.errConflicts",["table.show-header-overflow=".concat(x.showHeaderOverflow),"column.show-header-overflow=".concat(e.showHeaderOverflow)]),x.showFooterOverflow)&&!1===e.showFooterOverflow&&(0,_log.warnLog)("vxe.error.errConflicts",["table.show-footer-overflow=".concat(x.showFooterOverflow),"column.show-footer-overflow=".concat(e.showFooterOverflow)]),"development"===process.env.NODE_ENV&&g&&(v.useKey||(0,_log.errLog)("vxe.error.reqProp",["column-config.useKey","column.type=html"]),w.useKey||(0,_log.errLog)("vxe.error.reqProp",["row-config.useKey","column.type=html"])),_&&!1===e.showOverflow&&(_=!1),C[n]&&(0,_log.errLog)("vxe.error.colRepet",["colId",n]),C[n]=t,m.set(e,t)}var d,c,h,f,g,p,x=this,e=this.tableFullColumn,t=this.collectColumn,m=this.fullColumnMap,i=this.showOverflow,v=this.columnOpts,w=this.rowOpts,C=this.fullColumnIdData={},b=this.fullColumnFieldData={},r=t.some(_utils.hasChildrenList),_=!!i;m.clear(),r?_xeUtils.default.eachTree(t,function(e,t,i,r,l,n){e.level=n.length,o(e,t,i,0,l)}):e.forEach(o),"development"===process.env.NODE_ENV&&d&&this.mouseOpts.area&&(0,_log.errLog)("vxe.error.errConflicts",["mouse-config.area","column.type=expand"]),this.isGroup=r,this.treeNodeColumn=c,this.expandColumn=d,this.isAllOverflow=_},getRowNode:function(e){if(e){e=this.fullAllDataRowIdData[e.getAttribute("rowid")];if(e)return{rowid:e.rowid,item:e.row,index:e.index,items:e.items,parent:e.parent}}return null},getColumnNode:function(e){if(e){e=this.fullColumnIdData[e.getAttribute("colid")];if(e)return{colid:e.colid,item:e.column,index:e.index,items:e.items,parent:e.parent}}return null},getRowSeq:function(e){var t=this.fullDataRowIdData;if(e){t=t[(0,_util.getRowid)(this,e)];if(t)return t.seq}return-1},getRowIndex:function(e){return this.fullDataRowMap.has(e)?this.fullDataRowMap.get(e).index:-1},getVTRowIndex:function(e){return this.afterFullData.indexOf(e)},_getRowIndex:function(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["_getRowIndex","getVTRowIndex"]),this.getVTRowIndex(e)},getVMRowIndex:function(e){return this.tableData.indexOf(e)},$getRowIndex:function(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["$getRowIndex","getVMRowIndex"]),this.getVMRowIndex(e)},getColumnIndex:function(e){return this.fullColumnMap.has(e)?this.fullColumnMap.get(e).index:-1},getVTColumnIndex:function(e){return this.visibleColumn.indexOf(e)},_getColumnIndex:function(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["_getColumnIndex","getVTColumnIndex"]),this.getVTColumnIndex(e)},getVMColumnIndex:function(e){return this.tableColumn.indexOf(e)},$getColumnIndex:function(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["$getColumnIndex","getVMColumnIndex"]),this.getVMColumnIndex(e)},isSeqColumn:function(e){return e&&"seq"===e.type},defineField:function(e){var t=this,i=this.radioOpts,r=this.checkboxOpts,n=this.treeConfig,o=this.treeOpts,a=this.expandOpts,s=o.children||o.childrenField,u=(0,_util.getRowkey)(this);return(e=_xeUtils.default.isArray(e)?e:[e||{}]).map(function(l){return t.tableFullColumn.forEach(function(e){var t,i=e.field,r=e.editRender;i&&!_xeUtils.default.has(l,i)&&(t=null,r&&(r=r.defaultValue,_xeUtils.default.isFunction(r)?t=r({column:e}):_xeUtils.default.isUndefined(r)||(t=r)),_xeUtils.default.set(l,i,t))}),[i.labelField,r.checkField,r.labelField,a.labelField].forEach(function(e){e&&(0,_utils.eqEmptyValue)(_xeUtils.default.get(l,e))&&_xeUtils.default.set(l,e,null)}),n&&o.lazy&&_xeUtils.default.isUndefined(l[s])&&(l[s]=null),(0,_utils.eqEmptyValue)(_xeUtils.default.get(l,u))&&_xeUtils.default.set(l,u,(0,_util.getRowUniqueId)()),l})},createData:function(e){var t=this;return this.$nextTick().then(function(){return t.defineField(e)})},createRow:function(e){var t=_xeUtils.default.isArray(e);return this.createData(e=t?e:[e]).then(function(e){return t?e:e[0]})},revertData:function(e,i){var r=this,t=this.keepSource,l=this.tableSourceData,n=this.treeConfig;return t?((t=e)?_xeUtils.default.isArray(e)||(t=[e]):t=_xeUtils.default.toArray(this.getUpdateRecords()),t.length&&t.forEach(function(e){var t;r.isInsertByRow(e)||(t=r.getRowIndex(e),n&&-1===t&&(0,_log.errLog)("vxe.error.noTree",["revertData"]),(t=l[t])&&e&&(i?_xeUtils.default.set(e,i,_xeUtils.default.clone(_xeUtils.default.get(t,i),!0)):_xeUtils.default.destructuring(e,_xeUtils.default.clone(t,!0))))}),e?this.$nextTick():this.reloadData(l)):("development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.reqProp",["keep-source"]),this.$nextTick())},clearData:function(e,t){var i=this.tableFullData,r=this.visibleColumn;return arguments.length?e&&!_xeUtils.default.isArray(e)&&(e=[e]):e=i,t?e.forEach(function(e){return _xeUtils.default.set(e,t,null)}):e.forEach(function(t){r.forEach(function(e){e.field&&(0,_util.setCellValue)(t,e,null)})}),this.$nextTick()},getCellElement:function(e,t){var i,r,t=(0,_util.handleFieldOrColumn)(this,t);return t&&(i=this.$refs,e=(0,_util.getRowid)(this,e),r=null,r=t?i["".concat(t.fixed||"table","Body")]||i.tableBody:r)&&r.$el?r.$el.querySelector('.vxe-body--row[rowid="'.concat(e,'"] .').concat(t.id)):null},getCellLabel:function(e,t){t=(0,_util.handleFieldOrColumn)(this,t);if(!t)return null;var i=t.formatter,r=(0,_util.getCellValue)(e,t),l=r;if(i){var n,o=this.fullAllDataRowMap,a=t.id,s=o.has(e);if(s&&(n=(n=(s=o.get(e)).formatData)||(o.get(e).formatData={}),s)&&n[a]&&n[a].value===r)return n[a].label;o={cellValue:r,row:e,rowIndex:this.getRowIndex(e),column:t,columnIndex:this.getColumnIndex(t)};l=_xeUtils.default.isString(i)?(e=(s=formats.get(i))?s.tableCellFormatMethod||s.cellFormatMethod:null)?e(o):"":_xeUtils.default.isArray(i)?(s=(t=formats.get(i[0]))?t.tableCellFormatMethod||t.cellFormatMethod:null)?s.apply(void 0,[o].concat(_toConsumableArray(i.slice(1)))):"":i(o),n&&(n[a]={value:r,label:l})}return l},isInsertByRow:function(e){var t=this.editStore,e=(0,_util.getRowid)(this,e);return t.insertList.length&&t.insertMaps[e]},removeInsertRow:function(){return this.remove(this.editStore.insertList)},isUpdateByRow:function(e,t){var i=this.tableFullColumn,r=this.keepSource,l=this.sourceDataRowIdData,n=this.fullDataRowIdData;if(r){r=(0,_util.getRowid)(this,e);if(!n[r])return!1;n=l[r];if(n){var o=n.row;if(1<arguments.length)return!eqCellValue(o,e,t);for(var a=0,s=i.length;a<s;a++){var u=i[a].field;if(u&&!eqCellValue(o,e,u))return!0}}}return!1},getColumns:function(e){var t=this.visibleColumn;return _xeUtils.default.isUndefined(e)?t.slice(0):t[e]},getColid:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e?e.id:null},getColumnById:function(e){var t=this.fullColumnIdData;return t[e]?t[e].column:null},getColumnByField:function(e){var t=this.fullColumnFieldData;return t[e]?t[e].column:null},getParentColumn:function(e){var t=this.fullColumnIdData,e=(0,_util.handleFieldOrColumn)(this,e);return e&&e.parentId&&t[e.parentId]?t[e.parentId].column:null},getTableColumn:function(){return{collectColumn:this.collectColumn.slice(0),fullColumn:this.tableFullColumn.slice(0),visibleColumn:this.visibleColumn.slice(0),tableColumn:this.tableColumn.slice(0)}},getData:function(e){var t=this.data||this.tableSynchData;return _xeUtils.default.isUndefined(e)?t.slice(0):t[e]},getCheckboxRecords:function(i){var r,e=this.tableFullData,t=this.afterFullData,l=this.treeConfig,n=this.treeOpts,o=this.checkboxOpts,a=this.tableFullTreeData,s=this.afterTreeFullData,u=this.afterFullRowMaps,d=n.transform,c=o.checkField,o=n.children||n.childrenField,a=i?d?a:e:d?s:t,h=[];return c?h=l?_xeUtils.default.filterTree(a,function(e){return _xeUtils.default.get(e,c)},{children:d?n.mapChildrenField:o}):a.filter(function(e){return _xeUtils.default.get(e,c)}):(e=this.selectCheckboxMaps,r=this.fullDataRowIdData,_xeUtils.default.each(e,function(e,t){i?r[t]&&h.push(r[t].row):u[t]&&h.push(u[t])})),h},handleVirtualTreeToList:function(){var a,s,u=this,e=this.treeOpts,t=this.treeConfig,d=this.treeExpandedMaps,i=this.afterTreeFullData,r=this.afterFullData;return t&&e.transform?(a=[],s={},_xeUtils.default.eachTree(i,function(e,t,i,r,l){var n=(0,_util.getRowid)(u,e),o=(0,_util.getRowid)(u,l);(!l||s[o]&&d[o])&&(s[n]=1,a.push(e))},{children:e.mapChildrenField}),this.afterFullData=a,this.updateScrollYStatus(a),a):r},updateAfterFullData:function(){var e,d=this,t=this.tableFullColumn,i=this.tableFullData,r=this.filterOpts,l=this.sortOpts,n=this.treeConfig,o=this.treeOpts,a=this.tableFullTreeData,c=r.remote,h=r.filterMethod,s=l.remote,r=l.sortMethod,u=l.multiple,l=l.chronological,f=o.transform,g=[],p=[],x=[],m=[],v=(t.forEach(function(e){var t,i,r=e.field,l=e.sortable,n=e.order,o=e.filters;!c&&o&&o.length&&(t=[],i=[],o.forEach(function(e){e.checked&&(i.push(e),t.push(e.value))}),i.length)&&x.push({column:e,valueList:t,itemList:i}),!s&&l&&n&&m.push({column:e,field:r,property:r,order:n,sortTime:e.sortTime})}),u&&l&&1<m.length&&(m=_xeUtils.default.orderBy(m,"sortTime")),x.length?(t=function(u){return x.every(function(e){var t,i,r,l,n,o,a=e.column,s=e.valueList,e=e.itemList;return!(s.length&&!c)||(t=a.filterMethod,r=a.filterRender,i=a.field,r=(0,_utils.isEnableConf)(r)?renderer.get(r.name):null,l=r?r.tableFilterMethod||r.filterMethod:null,n=r?r.tableFilterDefaultMethod||r.defaultTableFilterMethod||r.defaultFilterMethod:null,o=(0,_util.getCellValue)(u,a),t?e.some(function(e){return t({value:e.value,option:e,cellValue:o,row:u,column:a,$table:d})}):l?e.some(function(e){return l({value:e.value,option:e,cellValue:o,row:u,column:a,$table:d})}):h?h({options:e,values:s,cellValue:o,row:u,column:a}):n?e.some(function(e){return n({value:e.value,option:e,cellValue:o,row:u,column:a,$table:d})}):-1<s.indexOf(_xeUtils.default.get(u,i)))})},n&&f?g=p=_xeUtils.default.searchTree(a,t,Object.assign(Object.assign({},o),{original:!0})):p=g=(n?a:i).filter(t)):n&&f?g=p=_xeUtils.default.searchTree(a,function(){return!0},Object.assign(Object.assign({},o),{original:!0})):p=g=(n?a:i).slice(0),m[0]);!s&&v&&(n&&f?g=p=r?(l=r({data:p,sortList:m,$table:this}),_xeUtils.default.isArray(l)?l:p):_xeUtils.default.orderBy(p,m.map(function(e){var t=e.column,e=e.order;return[getOrderField(d,t),e]})):p=g=r?(t=r({data:g,column:v.column,property:v.field,field:v.field,order:v.order,sortList:m,$table:this}),_xeUtils.default.isArray(t)?t:g):u?_xeUtils.default.orderBy(g,m.map(function(e){var t=e.column,e=e.order;return[getOrderField(d,t),e]})):(_xeUtils.default.isArray(v.sortBy)&&(e=v.sortBy.map(function(e){return[e,v.order]})),_xeUtils.default.orderBy(g,e||[v].map(function(e){var t=e.column,e=e.order;return[getOrderField(d,t),e]})))),this.afterFullData=g,this.afterTreeFullData=p,this.updateAfterDataIndex()},updateAfterDataIndex:function(){var o=this,e=this.treeConfig,t=this.afterFullData,a=this.fullDataRowIdData,s=this.fullAllDataRowIdData,i=this.afterTreeFullData,r=this.treeOpts,l=r.children||r.childrenField,u={};e?_xeUtils.default.eachTree(i,function(e,t,i,r){var l=(0,_util.getRowid)(o,e),n=s[l],r=r.map(function(e,t){return t%2==0?Number(e)+1:"."}).join("");n?(n.seq=r,n._index=t):(s[l]=n={row:e,rowid:l,seq:r,index:-1,$index:-1,_index:t,items:[],parent:null,level:0},a[l]=n),u[l]=e},{children:r.transform?r.mapChildrenField:l}):t.forEach(function(e,t){var i=(0,_util.getRowid)(o,e),r=s[i],l=t+1;r?(r.seq=l,r._index=t):(s[i]=r={row:e,rowid:i,seq:l,index:-1,$index:-1,_index:t,items:[],parent:null,level:0},a[i]=r),u[i]=e}),this.afterFullRowMaps=u},getParentRow:function(e){var t=this.treeConfig,i=this.fullDataRowIdData;if(e&&t){t=_xeUtils.default.isString(e)?e:(0,_util.getRowid)(this,e);if(t)return(e=i[t])?e.parent:null}return null},getRowById:function(e){var t=this.fullDataRowIdData,e=_xeUtils.default.eqNull(e)?"":encodeURIComponent(e);return t[e]?t[e].row:null},getRowid:function(e){var t=this.fullAllDataRowMap;return t.has(e)?t.get(e).rowid:null},getTableData:function(){var e=this.treeConfig,t=this.tableFullData,i=this.afterFullData,r=this.tableData,l=this.footerTableData,n=this.tableFullTreeData;return{fullData:(e?n:t).slice(0),visibleData:i.slice(0),tableData:r.slice(0),footerData:l.slice(0)}},handleLoadDefaults:function(){var e=this;this.checkboxConfig&&this.handleDefaultSelectionChecked(),this.radioConfig&&this.handleDefaultRadioChecked(),this.expandConfig&&this.handleDefaultRowExpand(),this.treeConfig&&this.handleDefaultTreeExpand(),this.mergeCells&&this.handleDefaultMergeCells(),this.mergeFooterItems&&this.handleDefaultMergeFooterItems(),this.$nextTick(function(){return setTimeout(e.recalculate)})},handleInitDefaults:function(){this.sortConfig&&this.handleDefaultSort()},setColumnFixed:function(e,t){var i=this.isMaxFixedColumn,r=this.columnOpts,e=(0,_util.handleFieldOrColumn)(this,e),e=(0,_util.getRootColumn)(this,e);return e&&e.fixed!==t?!e.fixed&&i?(_ui.VxeUI.modal&&_ui.VxeUI.modal.message({status:"error",content:getI18n("vxe.table.maxFixedCol",[r.maxFixedSize])}),this.$nextTick()):(_xeUtils.default.eachTree([e],function(e){e.fixed=t}),this.saveCustomStore("update:fixed"),this.refreshColumn()):this.$nextTick()},clearColumnFixed:function(e){e=(0,_util.handleFieldOrColumn)(this,e),e=(0,_util.getRootColumn)(this,e);return e&&e.fixed?(_xeUtils.default.eachTree([e],function(e){e.fixed=null}),this.saveCustomStore("update:fixed"),this.refreshColumn()):this.$nextTick()},hideColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&e.visible?(e.visible=!1,this.handleCustom()):this.$nextTick()},showColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&!e.visible?(e.visible=!0,this.handleCustom()):this.$nextTick()},setColumnWidth:function(e,t){var i,r,e=(0,_util.handleFieldOrColumn)(this,e);return e?(r=i=_xeUtils.default.toInteger(t),(0,_dom.isScale)(t)&&(t=(t=(t=this.$refs.tableBody)?t.$el:null)?t.clientWidth-1:0,r=Math.floor(i*t)),e.resizeWidth=r,this.refreshColumn()):this.$nextTick()},getColumnWidth:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e?e.renderWidth:0},resetColumn:function(e){var t=this.collectColumn,i=this.customOpts.checkMethod,r=Object.assign({visible:!0,resizable:!0===e,fixed:!0===e,sort:!0===e},e);return _xeUtils.default.eachTree(t,function(e){r.resizable&&(e.resizeWidth=0),r.fixed&&(e.fixed=e.defaultFixed),r.sort&&(e.renderSortNumber=e.sortNumber),i&&!i({column:e})||(e.visible=e.defaultVisible),e.renderResizeWidth=e.renderWidth}),this.saveCustomStore("reset"),this.handleCustom()},handleCustom:function(){return this.mouseConfig&&(this.clearSelected&&this.clearSelected(),this.clearCellAreas)&&(this.clearCellAreas(),this.clearCopyCellArea()),this.analyColumnWidth(),this.refreshColumn(!0)},handleCustomRestore:function(e){var t=this.collectColumn,o=e.resizableData,a=e.sortData,s=e.visibleData,u=e.fixedData,d=!1;(o||a||s||u)&&(_xeUtils.default.eachTree(t,function(e,t,i,r,l){var n=e.getKey();l||(u&&u[n]&&(e.fixed=u[n]),a&&_xeUtils.default.isNumber(a[n])&&(d=!0,e.renderSortNumber=a[n])),o&&_xeUtils.default.isNumber(o[n])&&(e.resizeWidth=o[n]),s&&_xeUtils.default.isBoolean(s[n])&&(e.visible=s[n])}),d)&&(t=_xeUtils.default.orderBy(t,"renderSortNumber"),this.collectColumn=t,this.tableFullColumn=_getColumnList(t))},restoreCustomStorage:function(){var t=this,e=this.tableId,i=this.customConfig,r=this.customOpts,l=r.storage,r=r.restoreStore,n=!0===l,l=n?{}:Object.assign({},l||{}),o=n||l.resizable,a=n||l.visible,s=n||l.fixed,n=n||l.sort;if(i&&(o||a||s||n)){if(e)return l=getCustomStorageMap(e),r?Promise.resolve(r({id:e,type:"restore",storeData:l})).then(function(e){if(e)return t.handleCustomRestore(e)}).catch(function(e){return e}):this.handleCustomRestore(l);(0,_log.errLog)("vxe.error.reqProp",["id"])}},getCustomStoreData:function(){var n,o,a,s,e=this.id,t=this.customOpts,u=this.collectColumn,d=t.checkMethod,c={},h={},f={},g={},t={resizableData:void 0,sortData:void 0,visibleData:void 0,fixedData:void 0};return e?(s=a=o=n=0,_xeUtils.default.eachTree(u,function(e,t,i,r,l){l||(u.forEach(function(e){var t=e.getKey();t&&(o=1,h[t]=e.renderSortNumber)}),e.fixed&&e.fixed!==e.defaultFixed&&(l=e.getKey())&&(a=1,g[l]=e.fixed)),e.resizeWidth&&(l=e.getKey())&&(n=1,c[l]=e.renderWidth),d&&!d({column:e})||(!e.visible&&e.defaultVisible?(l=e.getKey())&&(s=1,f[l]=!1):e.visible&&!e.defaultVisible&&(l=e.getKey())&&(s=1,f[l]=!0))}),n&&(t.resizableData=c),o&&(t.sortData=h),a&&(t.fixedData=g),s&&(t.visibleData=f)):(0,_log.errLog)("vxe.error.reqProp",["id"]),t},saveCustomStore:function(e){var t=this.tableId,i=this.customOpts,r=i.updateStore,i=i.storage,l=!0===i,i=l?{}:Object.assign({},i||{}),n=l||i.resizable,o=l||i.visible,a=l||i.fixed,l=l||i.sort;if(n||o||a||l){if(!t)return(0,_log.errLog)("vxe.error.reqProp",["id"]),this.$nextTick();i="reset"===e?{resizableData:{},sortData:{},visibleData:{},fixedData:{}}:this.getCustomStoreData();if(r)return r({id:t,type:e,storeData:i});setCustomStorageMap(t,"reset"===e?null:i)}return this.$nextTick()},handleUpdateDataQueue:function(){this.upDataFlag++},handleRefreshColumnQueue:function(){this.reColumnFlag++},refreshColumn:function(e){var t=this;return e&&(e=_xeUtils.default.orderBy(this.collectColumn,"renderSortNumber"),this.collectColumn=e,e=_getColumnList(e),this.tableFullColumn=e,this.cacheColumnMap()),this.parseColumns().then(function(){return t.refreshScroll()}).then(function(){return t.recalculate()})},parseColumns:function(){var t,i,r,e=this,o=[],a=[],s=[],l=this.collectColumn,n=this.tableFullColumn,u=this.isGroup,d=this.columnStore,c=this.sXOpts,h=this.scrollXStore,f=(u?(t=[],i=[],r=[],_xeUtils.default.eachTree(l,function(e,t,i,r,l){var n=(0,_utils.hasChildrenList)(e);l&&l.fixed&&(e.fixed=l.fixed),l&&e.fixed!==l.fixed&&(0,_log.errLog)("vxe.error.groupFixed"),n?e.visible=!!_xeUtils.default.findTree(e.children,function(e){return(0,_utils.hasChildrenList)(e)?null:e.visible}):e.visible&&("left"===e.fixed?o:"right"===e.fixed?s:a).push(e)}),l.forEach(function(e){e.visible&&("left"===e.fixed?t:"right"===e.fixed?r:i).push(e)}),this.tableGroupColumn=t.concat(i).concat(r)):n.forEach(function(e){e.visible&&("left"===e.fixed?o:"right"===e.fixed?s:a).push(e)}),o.concat(a).concat(s)),u=c.enabled&&-1<c.gt&&(0===c.gt||c.gt<=n.length);return this.hasFixedColumn=0<o.length||0<s.length,Object.assign(d,{leftList:o,centerList:a,rightList:s}),u&&("development"===process.env.NODE_ENV&&(this.spanMethod&&(0,_log.warnLog)("vxe.error.scrollErrProp",["span-method"]),this.footerSpanMethod)&&(0,_log.warnLog)("vxe.error.scrollErrProp",["footer-span-method"]),l=computeVirtualX(this).visibleSize,h.startIndex=0,h.endIndex=l,h.visibleSize=l),f.length===this.visibleColumn.length&&this.visibleColumn.every(function(e,t){return e===f[t]})||(this.clearMergeCells(),this.clearMergeFooterItems()),this.scrollXLoad=u,this.visibleColumn=f,this.handleTableColumn(),this.updateFooter().then(function(){return e.recalculate()}).then(function(){return e.updateCellAreas(),e.recalculate()})},analyColumnWidth:function(){var e=this.columnOpts,t=e.width,i=e.minWidth,r=[],l=[],n=[],o=[],a=[],s=[],u=[],d=[];this.tableFullColumn.forEach(function(e){t&&!e.width&&(e.width=t),i&&!e.minWidth&&(e.minWidth=i),e.visible&&(e.resizeWidth?r:"auto"===e.width?u:(0,_dom.isPx)(e.width)?l:(0,_dom.isScale)(e.width)?a:(0,_dom.isPx)(e.minWidth)?n:"auto"===e.minWidth?o:(0,_dom.isScale)(e.minWidth)?s:d).push(e)}),Object.assign(this.columnStore,{resizeList:r,pxList:l,pxMinList:n,autoMinList:o,scaleList:a,scaleMinList:s,autoList:u,remainList:d})},refreshScroll:function(){var t=this,i=this.lastScrollLeft,r=this.lastScrollTop,e=this.$refs,l=e.tableBody,n=e.leftBody,o=e.rightBody,e=e.tableFooter,a=l?l.$el:null,s=n?n.$el:null,u=o?o.$el:null,d=e?e.$el:null;return new Promise(function(e){if(i||r)return(0,_util.restoreScrollLocation)(t,i,r).then(function(){setTimeout(e,30)});(0,_dom.setScrollTop)(a,r),(0,_dom.setScrollTop)(s,r),(0,_dom.setScrollTop)(u,r),(0,_dom.setScrollLeft)(d,i),setTimeout(e,30)})},recalculate:function(e){var t=this,i=this.$refs,r=i.tableBody,l=i.tableHeader,i=i.tableFooter,n=r?r.$el:null,o=l?l.$el:null,a=i?i.$el:null;return n&&(this.calcCellWidth(),this.autoCellWidth(o,n,a),!0===e)?this.computeScrollLoad().then(function(){return t.autoCellWidth(o,n,a),t.computeScrollLoad()}):this.computeScrollLoad()},calcCellWidth:function(){var e=this,t=this.autoWidthColumnList;return this.tableData.length&&t.length?(this.isCalcColumn=!0,this.$nextTick().then(function(){var n=e.$el;n&&(t.forEach(function(e){var t=n.querySelectorAll(".vxe-header--column.".concat(e.id,">.vxe-cell,.vxe-body--column.").concat(e.id,">.vxe-cell,.vxe-footer--column.").concat(e.id,">.vxe-cell")),i=t[0],r=0,l=(i&&(i=getComputedStyle(i),r=Math.floor(_xeUtils.default.toNumber(i.paddingLeft)+_xeUtils.default.toNumber(i.paddingRight))+2),e.renderAutoWidth-r);_xeUtils.default.arrayEach(t,function(e){var t=e.parentNode,i=0;"th"==="".concat(t.tagName).toLowerCase()?_xeUtils.default.arrayEach(e.children,function(e){i+=e.offsetWidth+1}):i=e.firstChild.offsetWidth,i&&(l=Math.max(l,Math.ceil(i)+4))}),e.renderAutoWidth=l+r}),e.analyColumnWidth()),e.isCalcColumn=!1})):(this.isCalcColumn=!1,this.$nextTick())},autoCellWidth:function(e,t,i){var r=0,l=t.clientWidth-1,n=l,o=n/100,a=this.fit,s=this.columnStore,u=s.resizeList,d=s.pxMinList,c=s.pxList,h=s.autoMinList,f=s.scaleList,g=s.scaleMinList,p=s.autoList,s=s.remainList;if(d.forEach(function(e){var t=parseInt(e.minWidth);r+=t,e.renderWidth=t}),h.forEach(function(e){var t=Math.max(60,_xeUtils.default.toInteger(e.renderAutoWidth));r+=t,e.renderWidth=t}),g.forEach(function(e){var t=Math.floor(parseInt(e.minWidth)*o);r+=t,e.renderWidth=t}),f.forEach(function(e){var t=Math.floor(parseInt(e.width)*o);r+=t,e.renderWidth=t}),c.forEach(function(e){var t=parseInt(e.width);r+=t,e.renderWidth=t}),p.forEach(function(e){var t=Math.max(60,_xeUtils.default.toInteger(e.renderAutoWidth));r+=t,e.renderWidth=t}),u.forEach(function(e){var t=parseInt(e.resizeWidth);r+=t,e.renderWidth=t}),o=0<(n-=r)?Math.floor(n/(g.length+d.length+h.length+s.length)):0,a?0<n&&g.concat(d).concat(h).forEach(function(e){r+=o,e.renderWidth+=o}):o=40,s.forEach(function(e){var t=Math.max(o,40);e.renderWidth=t,r+=t}),a){var x=f.concat(g).concat(d).concat(h).concat(s),m=x.length-1;if(0<m){var v=l-r;if(0<v){for(;0<v&&0<=m;)v--,x[m--].renderWidth++;r=l}}}c=t.offsetHeight,p=t.clientHeight<t.scrollHeight,this.scrollbarWidth=p?t.offsetWidth-t.clientWidth:0,this.overflowY=p,this.tableWidth=r,this.tableHeight=c,e?(this.headerHeight=e.clientHeight,this.$nextTick(function(){e&&t&&e.scrollLeft!==t.scrollLeft&&(e.scrollLeft=t.scrollLeft)})):this.headerHeight=0,u=!1,n=0,a=0,a=i?(n=i.offsetHeight,u=i.clientWidth<r,Math.max(n-i.clientHeight,0)):(u=l<r,Math.max(c-t.clientHeight,0));this.footerHeight=n,this.overflowX=l<r,this.scrollbarHeight=a,this.updateHeight(),this.parentHeight=Math.max(this.headerHeight+this.footerHeight+20,this.getParentHeight()),u&&this.checkScrolling()},updateHeight:function(){this.customHeight=calcHeight(this,"height"),this.customMinHeight=calcHeight(this,"minHeight"),this.customMaxHeight=calcHeight(this,"maxHeight")},updateStyle:function(){var c=this,t=this.$refs,h=this.isGroup,f=this.fullColumnIdData,g=this.tableColumn,p=this.customHeight,x=this.customMinHeight,m=this.customMaxHeight,v=this.border,w=this.headerHeight,C=this.showFooter,b=this.showOverflow,_=this.showHeaderOverflow,R=this.showFooterOverflow,E=this.footerHeight,y=this.tableHeight,T=this.tableWidth,S=this.scrollbarHeight,k=this.scrollbarWidth,D=this.scrollXLoad,M=this.scrollYLoad,I=this.cellOffsetWidth,O=this.columnStore,F=this.elemStore,e=this.editStore,i=this.currentRow,r=this.mouseConfig,L=this.keyboardConfig,U=this.keyboardOpts,$=this.spanMethod,A=this.mergeList,N=this.mergeFooterList,V=this.footerSpanMethod,H=this.isAllOverflow,q=this.visibleColumn,l=t.emptyPlaceholder,n=F["main-body-wrapper"];return l&&(l.style.top="".concat(w,"px"),l.style.height=n?"".concat(n.offsetHeight-S,"px"):""),0<p&&C&&(p+=S),["main","left","right"].forEach(function(s,e){var a=0<e?s:"",u=O["".concat(a,"List")],d=t["".concat(a,"Container")];["header","body","footer"].forEach(function(l){var e,t,i,r=F["".concat(s,"-").concat(l,"-wrapper")],n=F["".concat(s,"-").concat(l,"-table")],o=("header"===l?(i=T,o=g,h?o=q:a&&(D||_)&&(o=u),i=o.reduce(function(e,t){return e+t.renderWidth},0),n&&(n.style.width=i?"".concat(i+k,"px"):"",_dom.browse.msie)&&_xeUtils.default.arrayEach(n.querySelectorAll(".vxe-resizable"),function(e){e.style.height="".concat(e.parentNode.offsetHeight,"px")}),(o=F["".concat(s,"-").concat(l,"-repair")])&&(o.style.width="".concat(T,"px")),i=F["".concat(s,"-").concat(l,"-list")],h&&i&&_xeUtils.default.arrayEach(i.querySelectorAll(".col--group"),function(e){var t,i,r,l=c.getColumnNode(e);l&&(l=(t=l.item).showHeaderOverflow,l=_xeUtils.default.isBoolean(l)?l:_,r=i=0,(l="title"===l||(!0===l||"tooltip"===l)||"ellipsis"===l)&&_xeUtils.default.eachTree(t.children,function(e){e.children&&t.children.length||r++,i+=e.renderWidth}),e.style.width=l?"".concat(i-r-(v?2:0),"px"):"")})):"body"===l?(o=F["".concat(s,"-").concat(l,"-emptyBlock")],(0,_dom.isNodeElement)(r)&&(i=0,e=x-w-E,m&&(i=m-w-E,a&&(i-=C?0:S),i=Math.max(e,i),r.style.maxHeight="".concat(i,"px")),p?(t=p-w-E,a&&(t-=C?0:S),i&&(t=Math.min(i,t)),r.style.height="".concat(Math.max(e,t),"px")):r.style.height="",r.style.minHeight="".concat(e,"px")),d&&(i="right"===a,t=O["".concat(a,"List")],(0,_dom.isNodeElement)(r)&&(r.style.top="".concat(w,"px")),d.style.height="".concat((0<p?p-w-E:y)+w+E-S*(C?2:1),"px"),d.style.width="".concat(t.reduce(function(e,t){return e+t.renderWidth},i?k:0),"px")),e=T,t=g,e=(t=a?c.expandColumn||!(D||M||b&&H)||A.length||$||L&&U.isMerge?q:u:t).reduce(function(e,t){return e+t.renderWidth},0),n&&(n.style.width=e?"".concat(e,"px"):"",n.style.paddingRight=k&&a&&(_dom.browse["-moz"]||_dom.browse.safari)?"".concat(k,"px"):""),o&&(o.style.width=e?"".concat(e,"px"):"")):"footer"===l&&(i=T,t=g,i=(t=a?c.expandColumn||!D&&!R||N.length&&V?q:u:t).reduce(function(e,t){return e+t.renderWidth},0),(0,_dom.isNodeElement)(r)&&(d&&(r.style.top="".concat(0<p?p-E:y+w,"px")),r.style.marginTop="".concat(-S,"px")),n)&&(n.style.width=i?"".concat(i+k,"px"):""),F["".concat(s,"-").concat(l,"-colgroup")]);o&&_xeUtils.default.arrayEach(o.children,function(e){var o,t,a,i,r=e.getAttribute("name");"col_gutter"===r&&(e.style.width="".concat(k,"px")),f[r]&&(r=(o=f[r].column).showHeaderOverflow,i=o.showFooterOverflow,t=o.showOverflow,e.style.width="".concat(o.renderWidth,"px"),r="ellipsis"===(e="header"===l?_xeUtils.default.isUndefined(r)||_xeUtils.default.isNull(r)?_:r:"footer"===l?_xeUtils.default.isUndefined(i)||_xeUtils.default.isNull(i)?R:i:_xeUtils.default.isUndefined(t)||_xeUtils.default.isNull(t)?b:t),a="title"===e||(!0===e||"tooltip"===e)||r,i=F["".concat(s,"-").concat(l,"-list")],"header"===l||"footer"===l?D&&!a&&(a=!0):(D||M)&&(a=a||!0),i)&&_xeUtils.default.arrayEach(i.querySelectorAll(".".concat(o.id)),function(e){var t=parseInt(e.getAttribute("colspan")||1),e=e.querySelector(".vxe-cell"),i=o.renderWidth;if(e){if(1<t)for(var r=c.getColumnIndex(o),l=1;l<t;l++){var n=c.getColumns(r+l);n&&(i+=n.renderWidth)}e.style.width=a?"".concat(i-I*t,"px"):""}})})})}),i&&this.setCurrentRow(i),r&&r.selected&&e.selected.row&&e.selected.column&&this.addColSdCls(),this.$nextTick()},checkScrolling:function(){var e=this.$refs,t=e.tableBody,i=e.leftContainer,e=e.rightContainer,t=t?t.$el:null;t&&(i&&(0<t.scrollLeft?(0,_dom.addClass):(0,_dom.removeClass))(i,"scrolling--middle"),e)&&(t.clientWidth<t.scrollWidth-Math.ceil(t.scrollLeft)?(0,_dom.addClass):(0,_dom.removeClass))(e,"scrolling--middle")},preventEvent:function(t,e,i,r,l){var n,o=this,a=interceptor.get(e);return a.length||"event.clearEdit"!==e||(a=interceptor.get("event.clearActived"),"development"===process.env.NODE_ENV&&a.length&&(0,_log.warnLog)("vxe.error.delEvent",["event.clearActived","event.clearEdit"])),a.some(function(e){return!1===e(Object.assign({$grid:o.$xegrid,$table:o,$event:t},i))})||r&&(n=r()),l&&l(),n},handleGlobalMousedownEvent:function(i){var e,r=this,l=this.$el,t=this.$refs,n=this.$xegrid,o=this.$toolbar,a=this.mouseConfig,s=this.editStore,u=this.ctxMenuStore,d=this.editRules,c=this.editOpts,h=this.validOpts,f=this.areaOpts,g=this.filterStore,p=this.customStore,x=this.getRowNode,m=s.actived,s=t.ctxWrapper,v=t.filterWrapper,w=t.customWrapper,t=t.validTip,g=(!v||(0,_dom.getEventTargetNode)(i,l,"vxe-cell--filter").flag||(0,_dom.getEventTargetNode)(i,v.$el).flag||(0,_dom.getEventTargetNode)(i,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(i,"event.clearFilter",g.args,this.closeFilter),!w||p.btnEl===i.target||(0,_dom.getEventTargetNode)(i,document.body,"vxe-toolbar-custom-target").flag||(0,_dom.getEventTargetNode)(i,w.$el).flag||(0,_dom.getEventTargetNode)(i,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(i,"event.clearCustom",{},function(){return r.closeCustom()}),m.row?!1===c.autoClear||(v=m.args.cell)&&(0,_dom.getEventTargetNode)(i,v).flag||t&&(0,_dom.getEventTargetNode)(i,t.$el).flag||this.lastCallTime&&!(this.lastCallTime+50<Date.now())||(0,_dom.getEventTargetNode)(i,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(i,"event.clearEdit",m.args,function(){var e,t;(e=(e=(e="row"===c.mode?!!(e=(0,_dom.getEventTargetNode)(i,l,"vxe-body--row")).flag&&x(e.targetElem).item!==m.args.row:!(0,_dom.getEventTargetNode)(i,l,"col--edit").flag)||(0,_dom.getEventTargetNode)(i,l,"vxe-header--row").flag)||(0,_dom.getEventTargetNode)(i,l,"vxe-footer--row").flag)||!r.height||r.overflowY||(t=i.target,(0,_dom.hasClass)(t,"vxe-table--body-wrapper")&&(e=i.offsetY<t.clientHeight)),!e&&(0,_dom.getEventTargetNode)(i,l).flag||setTimeout(function(){return r.clearEdit(i)})}):!a||(0,_dom.getEventTargetNode)(i,l).flag||n&&(0,_dom.getEventTargetNode)(i,n.$el).flag||s&&(0,_dom.getEventTargetNode)(i,s.$el).flag||o&&(0,_dom.getEventTargetNode)(i,o.$el).flag||(this.clearSelected&&this.clearSelected(),f.autoClear&&this.getCellAreas&&(e=this.getCellAreas())&&e.length&&!(0,_dom.getEventTargetNode)(i,document.body,"vxe-table--ignore-areas-clear").flag&&this.preventEvent(i,"event.clearAreas",{},function(){r.clearCellAreas(),r.clearCopyCellArea(),r.emitEvent("clear-cell-area-selection",{cellAreas:e},i)})),u.visible&&s&&!(0,_dom.getEventTargetNode)(i,s.$el).flag&&this.closeMenu(),(0,_dom.getEventTargetNode)(i,(n||this).$el).flag);!g&&d&&h.autoClear&&(this.validErrorMaps={}),this.isActivated=g},handleGlobalBlurEvent:function(){this.closeFilter(),this.closeMenu()},handleGlobalMousewheelEvent:function(){this.closeTooltip(),this.closeMenu()},keydownEvent:function(t){var i=this,r=this.filterStore,l=this.ctxMenuStore,e=this.editStore,n=this.keyboardConfig,o=this.mouseConfig,a=this.mouseOpts,s=this.keyboardOpts,u=e.actived;27===t.keyCode&&this.preventEvent(t,"event.keydown",null,function(){var e;i.emitEvent("keydown-start",{},t),n&&o&&a.area&&i.handleKeyboardEvent?i.handleKeyboardEvent(t):(u.row||r.visible||l.visible)&&(t.stopPropagation(),i.closeFilter(),i.closeMenu(),n)&&s.isEsc&&u.row&&(e=u.args,i.clearEdit(t),o)&&a.selected&&i.$nextTick(function(){return i.handleSelected(e,t)}),i.emitEvent("keydown",{},t),i.emitEvent("keydown-end",{},t)})},handleGlobalKeydownEvent:function(W){var z=this;this.isActivated&&this.preventEvent(W,"event.keydown",null,function(){var e,t,i,r,l,n=z.filterStore,o=z.isCtxMenu,a=z.ctxMenuStore,s=z.editStore,u=z.editOpts,d=z.editConfig,c=z.mouseConfig,h=z.mouseOpts,f=z.keyboardConfig,g=z.keyboardOpts,p=z.treeConfig,x=z.treeOpts,m=z.highlightCurrentRow,v=z.currentRow,w=z.bodyCtxMenu,C=z.rowOpts,b=s.selected,s=s.actived,_=W.keyCode,$=8===_,A=9===_,R=13===_,E=27===_,y=32===_,T=37===_,S=38===_,k=39===_,D=40===_,N=46===_,M=113===_,I=93===_,V=W.metaKey,q=W.ctrlKey,O=W.shiftKey,F=W.altKey,H=T||S||k||D,o=o&&a.visible&&(R||y||H),L=(0,_utils.isEnableConf)(d)&&s.column&&s.row,x=x.children||x.childrenField,U=u.beforeEditMethod||u.activeMethod;n.visible?E&&z.closeFilter():(o?(W.preventDefault(),a.showChild&&(0,_utils.hasChildrenList)(a.selected)?z.moveCtxMenu(W,_,a,"selectChild",37,!1,a.selected.children):z.moveCtxMenu(W,_,a,"selected",39,!0,z.ctxMenuList)):f&&c&&h.area&&z.handleKeyboardEvent?z.handleKeyboardEvent(W):f&&y&&g.isChecked&&b.row&&b.column&&("checkbox"===b.column.type||"radio"===b.column.type)?(W.preventDefault(),"checkbox"===b.column.type?z.handleToggleCheckRowEvent(W,b.args):z.triggerRadioRowEvent(W,b.args)):M&&(0,_utils.isEnableConf)(d)?L||b.row&&b.column&&(W.stopPropagation(),W.preventDefault(),z.handleEdit(b.args,W)):I?(z._keyCtx=b.row&&b.column&&w.length,clearTimeout(z.keyCtxTimeout),z.keyCtxTimeout=setTimeout(function(){z._keyCtx=!1},1e3)):R&&!F&&f&&g.isEnter&&(b.row||s.row||p&&(C.isCurrent||m)&&v)?q?s.row&&(e=s.args,z.clearEdit(W),c)&&h.selected&&z.$nextTick(function(){return z.handleSelected(e,W)}):b.row||s.row?(n=(b.row?b:s).args,O?g.enterToTab?z.moveTabSelected(n,O,W):z.moveSelected(n,T,!0,k,!1,W):g.enterToTab?z.moveTabSelected(n,O,W):z.moveSelected(n,T,!1,k,!0,W)):p&&(C.isCurrent||m)&&v&&(E=v[x])&&E.length&&(W.preventDefault(),t=E[0],i={$table:z,row:t},z.setTreeExpand(v,!0).then(function(){return z.scrollToRow(t)}).then(function(){return z.triggerCurrentRowEvent(W,i)})):H&&f&&g.isArrow?L||(b.row&&b.column?z.moveSelected(b.args,T,S,k,D,W):(S||D)&&(C.isCurrent||m)&&z.moveCurrentRow(S,D,W)):A&&f&&g.isTab?b.row||b.column?z.moveTabSelected(b.args,O,W):(s.row||s.column)&&z.moveTabSelected(s.args,O,W):f&&g.isDel&&N&&(0,_utils.isEnableConf)(d)&&(b.row||b.column)?L||(o=g.delMethod,a={row:b.row,rowIndex:z.getRowIndex(b.row),column:b.column,columnIndex:z.getColumnIndex(b.column),$table:z,$grid:z.$xegrid},U&&!U(a))||(o?o(a):(0,_util.setCellValue)(b.row,b.column,null),z.updateFooter(),z.emitEvent("cell-delete-value",a,W)):$&&f&&g.isBack&&(0,_utils.isEnableConf)(d)&&(b.row||b.column)?L||(M=g.backMethod,g.isDel&&(0,_utils.isEnableConf)(d)&&(b.row||b.column)&&(I={row:b.row,rowIndex:z.getRowIndex(b.row),column:b.column,columnIndex:z.getColumnIndex(b.column),$table:z,$grid:z.$xegrid},U&&!U(I)||(M?M(I):((0,_util.setCellValue)(b.row,b.column,null),z.handleEdit(b.args,W)),z.emitEvent("cell-backspace-value",I,W)))):$&&f&&p&&g.isBack&&(C.isCurrent||m)&&v?(r=_xeUtils.default.findTree(z.afterTreeFullData,function(e){return e===v},{children:x}).parent)&&(W.preventDefault(),l={row:r,rowIndex:z.getRowIndex(r),$rowIndex:z.getVMRowIndex(r),$table:z,$grid:z.$xegrid},z.setTreeExpand(r,!1).then(function(){return z.scrollToRow(r)}).then(function(){return z.triggerCurrentRowEvent(W,l)})):f&&g.isEdit&&!q&&!V&&(y||48<=_&&_<=57||65<=_&&_<=90||96<=_&&_<=111||186<=_&&_<=192||219<=_&&_<=222)&&(w=g.editMethod,b.column)&&b.row&&(0,_utils.isEnableConf)(b.column.editRender)&&(R=u.beforeEditMethod||u.activeMethod,F={row:b.row,rowIndex:z.getRowIndex(b.row),column:b.column,columnIndex:z.getColumnIndex(b.column),$table:z,$grid:z.$xegrid},R&&!R(F)||(w?w(F):((0,_util.setCellValue)(b.row,b.column,null),z.handleEdit(b.args,W)))),z.emitEvent("keydown",{},W))})},handleGlobalPasteEvent:function(e){var t=this.isActivated,i=this.keyboardConfig,r=this.keyboardOpts,l=this.mouseConfig,n=this.mouseOpts,o=this.editStore,a=this.filterStore,o=o.actived;t&&!a.visible&&(o.row||o.column||i&&r.isClip&&l&&n.area&&this.handlePasteCellAreaEvent&&this.handlePasteCellAreaEvent(e),this.emitEvent("paste",{},e))},handleGlobalCopyEvent:function(e){var t=this.isActivated,i=this.keyboardConfig,r=this.keyboardOpts,l=this.mouseConfig,n=this.mouseOpts,o=this.editStore,a=this.filterStore,o=o.actived;t&&!a.visible&&(o.row||o.column||i&&r.isClip&&l&&n.area&&this.handleCopyCellAreaEvent&&this.handleCopyCellAreaEvent(e),this.emitEvent("copy",{},e))},handleGlobalCutEvent:function(e){var t=this.isActivated,i=this.keyboardConfig,r=this.keyboardOpts,l=this.mouseConfig,n=this.mouseOpts,o=this.editStore,a=this.filterStore,o=o.actived;t&&!a.visible&&(o.row||o.column||i&&r.isClip&&l&&n.area&&this.handleCutCellAreaEvent&&this.handleCutCellAreaEvent(e),this.emitEvent("cut",{},e))},handleGlobalResizeEvent:function(){this.closeMenu(),this.updateCellAreas(),this.recalculate(!0)},handleTargetEnterEvent:function(e){var t=this.$refs.tooltip;clearTimeout(this.tooltipTimeout),e?this.closeTooltip():t&&t.setActived(!0)},handleTargetLeaveEvent:function(){var e=this,t=this.tooltipOpts,i=this.$refs.tooltip;i&&i.setActived(!1),t.enterable?this.tooltipTimeout=setTimeout(function(){(i=e.$refs.tooltip)&&!i.isActived()&&e.closeTooltip()},t.leaveDelay):this.closeTooltip()},triggerHeaderTitleEvent:function(t,e,i){var r,l,n,o=e.content||e.message;o&&(r=this.$refs,l=this.tooltipStore,i=i.column,n=(0,_utils.getFuncText)(o),this.handleTargetEnterEvent(!0),l.row=null,l.column=i,l.visible=!0,l.currOpts=e,this.$nextTick(function(){var e=r.tooltip;e&&e.open(t.currentTarget,n)}))},triggerHeaderTooltipEvent:function(e,t){var i=this.tooltipStore,r=t.column,l=e.currentTarget;this.handleTargetEnterEvent(i.column!==r||i.row),i.column===r&&i.visible||this.handleTooltip(e,l,l,null,t)},triggerBodyTooltipEvent:function(e,t){var i,r,l=this.editConfig,n=this.editOpts,o=this.editStore,a=this.tooltipStore,o=o.actived,s=t.row,u=t.column,d=e.currentTarget;if(this.handleTargetEnterEvent(a.column!==u||a.row!==s),u.editRender&&(0,_utils.isEnableConf)(l)){if("row"===n.mode&&o.row===s)return;if(o.row===s&&o.column===u)return}a.column===u&&a.row===s&&a.visible||(u.treeNode?(i=d.querySelector(".vxe-tree-cell"),"html"===u.type&&(r=d.querySelector(".vxe-cell--html"))):r=d.querySelector("html"===u.type?".vxe-cell--html":".vxe-cell--label"),this.handleTooltip(e,d,i||d.children[0],r,t))},triggerFooterTooltipEvent:function(e,t){var i=t.column,r=this.tooltipStore,l=e.currentTarget;this.handleTargetEnterEvent(!0),r.column===i&&r.visible||this.handleTooltip(e,l,l.querySelector(".vxe-cell--item")||l.children[0],null,t)},handleTooltip:function(e,t,i,r,l){l.cell=t;var n=this.$refs,t=this.tooltipOpts,o=this.tooltipStore,a=l.column,s=l.row,u=t.showAll,d=t.enabled,t=t.contentMethod,l=t?t(l):null,t=t&&!_xeUtils.default.eqNull(l),c=t?l:("html"===a.type?i.innerText:i.textContent).trim(),h=i.scrollWidth>i.clientWidth;return c&&(u||d||t||h)&&(Object.assign(o,{row:s,column:a,visible:!0,currOpts:{}}),this.$nextTick(function(){var e=n.tooltip;e&&e.open(!h&&r||i,(0,_utils.formatText)(c))})),this.$nextTick()},openTooltip:function(e,t){var i=this.$refs.commTip;return i?i.open(e,t):this.$nextTick()},closeTooltip:function(){var e=this.$refs,t=this.tooltipStore,i=e.tooltip,e=e.commTip;return t.visible&&(Object.assign(t,{row:null,column:null,content:null,visible:!1,currOpts:{}}),i)&&i.close(),e&&e.close(),this.$nextTick()},isAllCheckboxChecked:function(){return this.isAllSelected},isAllCheckboxIndeterminate:function(){return!this.isAllSelected&&this.isIndeterminate},isCheckboxIndeterminate:function(){return(0,_log.warnLog)("vxe.error.delFunc",["isCheckboxIndeterminate","isAllCheckboxIndeterminate"]),this.isAllCheckboxIndeterminate()},getCheckboxIndeterminateRecords:function(e){var i,r,t=this.treeConfig,l=this.treeIndeterminateMaps,n=this.fullDataRowIdData;return t?(i=[],r=[],_xeUtils.default.each(l,function(e,t){e&&(i.push(e),n[t])&&r.push(e)}),e?i:r):[]},handleDefaultSelectionChecked:function(){var t,i=this.fullDataRowIdData,e=this.checkboxOpts,r=e.checkAll,e=e.checkRowKeys;r?this.handleCheckedAllCheckboxRow(!0,!0):e&&(t=[],e.forEach(function(e){i[e]&&t.push(i[e].row)}),this.handleCheckedCheckboxRow(t,!0,!0))},handleCheckedCheckboxRow:function(e,t,i){var r=this;return(e=e&&!_xeUtils.default.isArray(e)?[e]:e).forEach(function(e){return r.handleSelectRow({row:e},!!t,i)}),this.$nextTick()},setCheckboxRow:function(e,t){return this.handleCheckedCheckboxRow(e,t,!0)},isCheckedByCheckboxRow:function(e){var t=this.selectCheckboxMaps,i=this.checkboxOpts.checkField;return i?_xeUtils.default.get(e,i):!!t[(0,_util.getRowid)(this,e)]},isIndeterminateByCheckboxRow:function(e){return!!this.treeIndeterminateMaps[(0,_util.getRowid)(this,e)]&&!this.isCheckedByCheckboxRow(e)},handleSelectRow:function(e,i,r){var l=this,n=e.row,e=this.selectCheckboxMaps,t=this.afterFullData,o=this.treeConfig,a=this.treeOpts,s=this.treeIndeterminateMaps,u=this.checkboxOpts,d=u.checkField,c=u.checkStrictly,h=u.checkMethod,f=Object.assign({},e),e=a.children||a.childrenField,g=u.indeterminateField||u.halfField,a=(0,_util.getRowid)(this,n);if(d)if(o&&!c){-1===i?(s[a]||(g&&_xeUtils.default.set(n,g,!0),s[a]=n),_xeUtils.default.set(n,d,!1)):_xeUtils.default.eachTree([n],function(e){(l.eqRow(e,n)||r||!h||h({row:e}))&&(_xeUtils.default.set(e,d,i),g&&_xeUtils.default.set(n,g,!1),delete s[(0,_util.getRowid)(l,e)],l.handleCheckboxReserveRow(n,i))},{children:e});var p,x,m,u=_xeUtils.default.findTree(t,function(e){return l.eqRow(e,n)},{children:e});if(u&&u.parent)return p=[],x={},!r&&h?u.items.forEach(function(e){var t;h({row:e})&&(t=(0,_util.getRowid)(l,e),p.push(x[t]=e))}):u.items.forEach(function(e){var t=(0,_util.getRowid)(l,e);p.push(x[t]=e)}),b=_xeUtils.default.find(u.items,function(e){return!!s[(0,_util.getRowid)(l,e)]})?-1:(m=[],u.items.forEach(function(e){_xeUtils.default.get(e,d)&&m.push(e)}),m.filter(function(e){return x[(0,_util.getRowid)(l,e)]}).length===p.length||!(!m.length&&-1!==i)&&-1),this.selectCheckboxMaps=f,this.handleSelectRow({row:u.parent},b,r)}else!r&&h&&!h({row:n})||(_xeUtils.default.set(n,d,i),this.handleCheckboxReserveRow(n,i));else if(o&&!c){-1===i?(s[a]||(g&&_xeUtils.default.set(n,g,!0),s[a]=n),f[a]&&delete f[a]):_xeUtils.default.eachTree([n],function(e){var t=(0,_util.getRowid)(l,e);(l.eqRow(e,n)||r||!h||h({row:e}))&&(i?f[t]=e:f[t]&&delete f[t],g&&_xeUtils.default.set(n,g,!1),delete s[(0,_util.getRowid)(l,e)],l.handleCheckboxReserveRow(n,i))},{children:e});var v,w,C,b,u=_xeUtils.default.findTree(t,function(e){return l.eqRow(e,n)},{children:e});if(u&&u.parent)return v=[],w={},!r&&h?u.items.forEach(function(e){var t;h({row:e})&&(t=(0,_util.getRowid)(l,e),v.push(w[t]=e))}):u.items.forEach(function(e){var t=(0,_util.getRowid)(l,e);v.push(w[t]=e)}),b=_xeUtils.default.find(u.items,function(e){return!!s[(0,_util.getRowid)(l,e)]})?-1:(C=[],u.items.forEach(function(e){var t=(0,_util.getRowid)(l,e);f[t]&&C.push(e)}),C.filter(function(e){return w[(0,_util.getRowid)(l,e)]}).length===v.length||!(!C.length&&-1!==i)&&-1),this.selectCheckboxMaps=f,this.handleSelectRow({row:u.parent},b,r)}else!r&&h&&!h({row:n})||(i?f[a]||(f[a]=n):f[a]&&delete f[a],this.handleCheckboxReserveRow(n,i));this.selectCheckboxMaps=f,this.checkSelectionStatus()},handleToggleCheckRowEvent:function(e,t){var i=this.selectCheckboxMaps,r=this.checkboxOpts,l=r.checkField,n=t.row;"manual"!==r.trigger&&(r=!1,r=l?!_xeUtils.default.get(n,l):!i[(0,_util.getRowid)(this,n)],e?this.triggerCheckRowEvent(e,t,r):this.handleSelectRow(t,r))},triggerCheckRowEvent:function(e,t,i){var r=this.checkboxOpts,l=this.afterFullData,n=r.checkMethod,o=r.trigger,a=t.row;if("manual"!==o){if(e.stopPropagation(),r.isShiftKey&&e.shiftKey&&!this.treeConfig){o=this.getCheckboxRecords();if(o.length){r=o[0],o=this.getVTRowIndex(a),r=this.getVTRowIndex(r);if(o!==r)return this.setAllCheckboxRow(!1),l=o<r?l.slice(o,r+1):l.slice(r,o+1),this.handleCheckedCheckboxRow(l,!0,!1),void this.emitEvent("checkbox-range-select",Object.assign({rangeRecords:l},t),e)}}n&&!n({row:a})||(this.handleSelectRow(t,i),this.emitEvent("checkbox-change",Object.assign({records:this.getCheckboxRecords(),reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:i},t),e))}},toggleCheckboxRow:function(e){var t=this.selectCheckboxMaps,i=this.checkboxOpts.checkField,i=i?!_xeUtils.default.get(e,i):!t[(0,_util.getRowid)(this,e)];return this.handleSelectRow({row:e},i,!0),this.$nextTick()},handleCheckedAllCheckboxRow:function(t,i){var r=this,e=this.afterFullData,l=this.treeConfig,n=this.treeOpts,o=this.selectCheckboxMaps,a=this.checkboxReserveRowMap,s=this.checkboxOpts,u=this.afterFullRowMaps,d=s.checkField,c=s.reserve,h=s.checkStrictly,f=s.checkMethod,g=s.indeterminateField||s.halfField,s=n.children||n.childrenField,p={};return l||_xeUtils.default.each(o,function(e,t){u[t]||(p[t]=e)}),h?this.isAllSelected=t:(d?(n=function(e){!i&&f&&!f({row:e})||(t&&(p[(0,_util.getRowid)(r,e)]=e),_xeUtils.default.set(e,d,t)),l&&g&&_xeUtils.default.set(e,g,!1)},l?_xeUtils.default.eachTree(e,n,{children:s}):e.forEach(n)):l?t?_xeUtils.default.eachTree(e,function(e){!i&&f&&!f({row:e})||(p[(0,_util.getRowid)(r,e)]=e)},{children:s}):!i&&f&&_xeUtils.default.eachTree(e,function(e){var t=(0,_util.getRowid)(r,e);!f({row:e})&&o[t]&&(p[t]=e)},{children:s}):t?!i&&f?e.forEach(function(e){var t=(0,_util.getRowid)(r,e);(o[t]||f({row:e}))&&(p[t]=e)}):e.forEach(function(e){p[(0,_util.getRowid)(r,e)]=e}):!i&&f&&e.forEach(function(e){var t=(0,_util.getRowid)(r,e);!f({row:e})&&o[t]&&(p[t]=e)}),c&&(t?_xeUtils.default.each(p,function(e,t){a[t]=e}):e.forEach(function(e){return r.handleCheckboxReserveRow(e,!1)})),this.selectCheckboxMaps=d?{}:p),this.treeIndeterminateMaps={},this.treeIndeterminateRowMaps={},this.checkSelectionStatus(),this.$nextTick()},setAllCheckboxRow:function(e){return this.handleCheckedAllCheckboxRow(e,!0)},checkSelectionStatus:function(){var t,i,e,r=this,l=this.afterFullData,n=this.selectCheckboxMaps,o=this.treeIndeterminateMaps,a=this.checkboxOpts,s=this.treeConfig,u=a.checkField,d=a.checkMethod,c=a.indeterminateField||a.halfField;a.checkStrictly||(t=[],e=a=!(i=[]),e=u?(a=l.every(d?function(e){return d({row:e})?!!_xeUtils.default.get(e,u)&&(i.push(e),!0):(t.push(e),!0)}:function(e){return _xeUtils.default.get(e,u)})&&l.length!==t.length,s?c?!a&&l.some(function(e){return _xeUtils.default.get(e,u)||_xeUtils.default.get(e,c)||!!o[(0,_util.getRowid)(r,e)]}):!a&&l.some(function(e){return _xeUtils.default.get(e,u)||!!o[(0,_util.getRowid)(r,e)]}):c?!a&&l.some(function(e){return _xeUtils.default.get(e,u)||_xeUtils.default.get(e,c)}):!a&&l.some(function(e){return _xeUtils.default.get(e,u)})):(a=l.every(d?function(e){return d({row:e})?!!n[(0,_util.getRowid)(r,e)]&&(i.push(e),!0):(t.push(e),!0)}:function(e){return n[(0,_util.getRowid)(r,e)]})&&l.length!==t.length,s?!a&&l.some(function(e){e=(0,_util.getRowid)(r,e);return o[e]||n[e]}):!a&&l.some(function(e){return n[(0,_util.getRowid)(r,e)]})),this.isAllSelected=a,this.isIndeterminate=e)},handleReserveStatus:function(){var e=this.expandColumn,t=this.treeOpts,i=this.treeConfig,r=this.fullDataRowIdData,l=this.fullAllDataRowMap,n=this.currentRow,o=this.selectRadioRow,a=this.radioReserveRow,s=this.radioOpts,u=this.checkboxOpts,d=this.selectCheckboxMaps,c=this.rowExpandedMaps,h=this.treeExpandedMaps,f=this.expandOpts;o&&!l.has(o)&&(this.selectRadioRow=null),s.reserve&&a&&r[o=(0,_util.getRowid)(this,a)]&&this.handleCheckedRadioRow(r[o].row,!0),this.selectCheckboxMaps=getRecoverRowMaps(this,d),u.reserve&&this.handleCheckedCheckboxRow(handleReserveRow(this,this.checkboxReserveRowMap),!0,!0),n&&!l.has(n)&&(this.currentRow=null),this.rowExpandedMaps=e?getRecoverRowMaps(this,c):[],e&&f.reserve&&this.setRowExpand(handleReserveRow(this,this.rowExpandedReserveRowMap),!0),this.treeExpandedMaps=i?getRecoverRowMaps(this,h):[],i&&t.reserve&&this.setTreeExpand(handleReserveRow(this,this.treeExpandedReserveRowMap),!0)},getRadioReserveRecord:function(e){var t=this.fullDataRowIdData,i=this.radioReserveRow,r=this.radioOpts,l=this.afterFullData,n=this.treeConfig,o=this.treeOpts,o=o.children||o.childrenField;if(r.reserve&&i){var a=(0,_util.getRowid)(this,i);if(e){if(!t[a])return i}else{var s=(0,_util.getRowkey)(this);if(n){if(_xeUtils.default.findTree(l,function(e){return a===_xeUtils.default.get(e,s)},{children:o}))return i}else if(!l.some(function(e){return a===_xeUtils.default.get(e,s)}))return i}}return null},clearRadioReserve:function(){return this.radioReserveRow=null,this.$nextTick()},handleRadioReserveRow:function(e){this.radioOpts.reserve&&(this.radioReserveRow=e)},getCheckboxReserveRecords:function(i){var r,t=this,l=this.fullDataRowIdData,e=this.afterFullData,n=this.checkboxReserveRowMap,o=this.checkboxOpts,a=this.treeConfig,s=this.treeOpts,s=s.children||s.childrenField,u=[];return o.reserve&&(r={},a?_xeUtils.default.eachTree(e,function(e){r[(0,_util.getRowid)(t,e)]=1},{children:s}):e.forEach(function(e){r[(0,_util.getRowid)(t,e)]=1}),_xeUtils.default.each(n,function(e,t){e&&(i?l[t]||u.push(e):r[t]||u.push(e))})),u},clearCheckboxReserve:function(){return this.checkboxReserveRowMap={},this.$nextTick()},handleCheckboxReserveRow:function(e,t){var i,r=this.checkboxReserveRowMap;this.checkboxOpts.reserve&&(i=(0,_util.getRowid)(this,e),t?r[i]=e:r[i]&&delete r[i])},handleCheckAllEvent:function(e,t){this.handleCheckedAllCheckboxRow(t),e&&this.emitEvent("checkbox-all",{records:this.getCheckboxRecords(),reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:t},e)},triggerCheckAllEvent:function(e,t){"manual"!==this.checkboxOpts.trigger&&(e&&e.stopPropagation(),this.handleCheckAllEvent(e,t))},toggleAllCheckboxRow:function(){return this.handleCheckAllEvent(null,!this.isAllSelected),this.$nextTick()},clearCheckboxRow:function(){var t=this,e=this.tableFullData,i=this.treeConfig,r=this.treeOpts,l=this.checkboxOpts,n=l.checkField,o=l.reserve,r=r.children||r.childrenField,a=l.indeterminateField||l.halfField;return n&&(l=function(e){i&&a&&_xeUtils.default.set(e,a,!1),_xeUtils.default.set(e,n,!1)},i?_xeUtils.default.eachTree(e,l,{children:r}):e.forEach(l)),o&&e.forEach(function(e){return t.handleCheckboxReserveRow(e,!1)}),this.isAllSelected=!1,this.isIndeterminate=!1,this.selectCheckboxMaps={},this.treeIndeterminateMaps={},this.$nextTick()},handleDefaultRadioChecked:function(){var e=this.radioOpts,t=this.fullDataRowIdData,i=e.checkRowKey,e=e.reserve;i&&(t[i]&&this.handleCheckedRadioRow(t[i].row,!0),e)&&(t=(0,_util.getRowkey)(this),this.radioReserveRow=_defineProperty({},t,i))},triggerRadioRowEvent:function(e,t){var i,r=this.selectRadioRow,l=this.radioOpts,n=t.row;"manual"!==l.trigger&&(e.stopPropagation(),(i=r!==(n=n))?this.handleCheckedRadioRow(n):l.strict||(i=r===n)&&(n=null,this.clearRadioRow()),i)&&this.emitEvent("radio-change",Object.assign({oldValue:r,newValue:n},t),e)},triggerCurrentRowEvent:function(e,t){var i=this.currentRow,r=t.row,l=i!==r;this.setCurrentRow(r),l&&this.emitEvent("current-change",Object.assign({oldValue:i,newValue:r},t),e)},setCurrentRow:function(e){var t=this.$el,i=this.rowOpts;return this.clearCurrentRow(),this.currentRow=e,(i.isCurrent||this.highlightCurrentRow)&&t&&_xeUtils.default.arrayEach(t.querySelectorAll('[rowid="'.concat((0,_util.getRowid)(this,e),'"]')),function(e){return(0,_dom.addClass)(e,"row--current")}),this.$nextTick()},isCheckedByRadioRow:function(e){return this.selectRadioRow===e},handleCheckedRadioRow:function(e,t){var i=this.radioOpts.checkMethod;return e&&(t||!i||i({row:e}))&&(this.selectRadioRow=e,this.handleRadioReserveRow(e)),this.$nextTick()},setRadioRow:function(e){return this.handleCheckedRadioRow(e,!0)},clearCurrentRow:function(){var e=this.$el;return this.currentRow=null,this.hoverRow=null,e&&_xeUtils.default.arrayEach(e.querySelectorAll(".row--current"),function(e){return(0,_dom.removeClass)(e,"row--current")}),this.$nextTick()},clearRadioRow:function(){return this.selectRadioRow=null,this.$nextTick()},getCurrentRecord:function(){return this.rowOpts.isCurrent||this.highlightCurrentRow?this.currentRow:null},getRadioRecord:function(e){var t=this.selectRadioRow,i=this.fullDataRowIdData,r=this.afterFullRowMaps;if(t){var l=(0,_util.getRowid)(this,t);if(e){if(i[l])return t}else if(r[l])return t}return null},triggerHoverEvent:function(e,t){t=t.row;this.setHoverRow(t)},setHoverRow:function(e){var t=this.$el,i=(0,_util.getRowid)(this,e);this.clearHoverRow(),t&&_xeUtils.default.arrayEach(t.querySelectorAll('[rowid="'.concat(i,'"]')),function(e){return(0,_dom.addClass)(e,"row--hover")}),this.hoverRow=e},clearHoverRow:function(){var e=this.$el;e&&_xeUtils.default.arrayEach(e.querySelectorAll(".vxe-body--row.row--hover"),function(e){return(0,_dom.removeClass)(e,"row--hover")}),this.hoverRow=null},triggerHeaderCellClickEvent:function(e,t){var i=this._lastResizeTime,r=this.sortOpts,l=t.column,n=e.currentTarget,i=i&&i>Date.now()-300,o=(0,_dom.getEventTargetNode)(e,n,"vxe-cell--sort").flag,a=(0,_dom.getEventTargetNode)(e,n,"vxe-cell--filter").flag;return"cell"!==r.trigger||i||o||a||this.triggerSortEvent(e,l,getNextSortOrder(this,l)),this.emitEvent("header-cell-click",Object.assign({triggerResizable:i,triggerSort:o,triggerFilter:a,cell:n},t),e),this.columnOpts.isCurrent||this.highlightCurrentColumn?this.setCurrentColumn(l):this.$nextTick()},triggerHeaderCellDblclickEvent:function(e,t){this.emitEvent("header-cell-dblclick",Object.assign({cell:e.currentTarget},t),e)},getCurrentColumn:function(){return this.columnOpts.isCurrent||this.highlightCurrentColumn?this.currentColumn:null},setCurrentColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&(this.clearCurrentColumn(),this.currentColumn=e),this.$nextTick()},clearCurrentColumn:function(){return this.currentColumn=null,this.$nextTick()},checkValidate:function(e){return this.triggerValidate?this.triggerValidate(e):this.$nextTick()},handleChangeCell:function(e,t){var i=this;this.checkValidate("blur").catch(function(e){return e}).then(function(){i.handleEdit(t,e).then(function(){return i.checkValidate("change")}).catch(function(e){return e})})},triggerCellClickEvent:function(e,t){var i=this.highlightCurrentRow,r=this.editStore,l=this.radioOpts,n=this.expandOpts,o=this.treeOpts,a=this.keyboardOpts,s=this.editConfig,u=this.editOpts,d=this.checkboxOpts,c=this.rowOpts,h=r.actived,r=r.focused,f=t,g=f.row,f=f.column,p=f.type,x=f.treeNode,m="radio"===p,v="checkbox"===p,p="expand"===p,w=e.currentTarget,C=m&&(0,_dom.getEventTargetNode)(e,w,"vxe-cell--radio").flag,b=v&&(0,_dom.getEventTargetNode)(e,w,"vxe-cell--checkbox").flag,_=x&&(0,_dom.getEventTargetNode)(e,w,"vxe-tree--btn-wrapper").flag,R=p&&(0,_dom.getEventTargetNode)(e,w,"vxe-table--expanded").flag;t=Object.assign({cell:w,triggerRadio:C,triggerCheckbox:b,triggerTreeNode:_,triggerExpandNode:R},t),!b&&!C&&(!R&&("row"===n.trigger||p&&"cell"===n.trigger)&&this.triggerRowExpandEvent(e,t),"row"===o.trigger||x&&"cell"===o.trigger)&&this.triggerTreeExpandEvent(e,t),_||(R||(!c.isCurrent&&!i||b||C||this.triggerCurrentRowEvent(e,t),!C&&("row"===l.trigger||m&&"cell"===l.trigger)&&this.triggerRadioRowEvent(e,t),!b&&("row"===d.trigger||v&&"cell"===d.trigger)&&this.handleToggleCheckRowEvent(e,t)),(0,_utils.isEnableConf)(s)&&(a.arrowCursorLock&&e&&"cell"===u.mode&&e.target&&/^input|textarea$/i.test(e.target.tagName)&&(r.column=f,r.row=g),"manual"===u.trigger?h.args&&h.row===g&&f!==h.column&&this.handleChangeCell(e,t):h.args&&g===h.row&&f===h.column||("click"===u.trigger||"dblclick"===u.trigger&&"row"===u.mode&&h.row===g)&&this.handleChangeCell(e,t))),this.emitEvent("cell-click",t,e)},triggerCellDblclickEvent:function(e,t){var i=this,r=this.editStore,l=this.editConfig,n=this.editOpts,r=r.actived,o=e.currentTarget;t.cell=o,!(0,_utils.isEnableConf)(l)||"dblclick"!==n.trigger||r.args&&e.currentTarget===r.args.cell||("row"===n.mode?this.checkValidate("blur").catch(function(e){return e}).then(function(){i.handleEdit(t,e).then(function(){return i.checkValidate("change")}).catch(function(e){return e})}):"cell"===n.mode&&this.handleEdit(t,e).then(function(){return i.checkValidate("change")}).catch(function(e){return e})),this.emitEvent("cell-dblclick",t,e)},handleDefaultSort:function(){var r=this,e=this.sortConfig,t=this.sortOpts,i=t.defaultSort;i&&(i=_xeUtils.default.isArray(i)?i:[i]).length&&((e.multiple?i:i.slice(0,1)).forEach(function(e,t){var i=e.field,e=e.order;i&&e&&(i=r.getColumnByField(i))&&i.sortable&&(i.order=e,i.sortTime=Date.now()+t)}),t.remote||this.handleTableData(!0).then(this.updateStyle))},triggerSortEvent:function(e,t,i){var r=this.sortOpts,l=t.field;(t.sortable||t.remoteSort)&&(i&&t.order!==i?this.sort({field:l,order:i}):this.clearSort(r.multiple?t:null),i={$table:this,$event:e,column:t,field:l,property:l,order:t.order,sortList:this.getSortColumns(),sortTime:t.sortTime},this.mouseConfig&&this.mouseOpts.area&&this.handleSortEvent&&this.handleSortEvent(e,i),this.emitEvent("sort-change",i,e))},setPendingRow:function(e,t){var i=this,r=Object.assign({},this.pendingRowMaps),l=_toConsumableArray(this.pendingRowList);return e&&!_xeUtils.default.isArray(e)&&(e=[e]),t?e.forEach(function(e){var t=(0,_util.getRowid)(i,e);t&&!r[t]&&(l.push(e),r[t]=e)}):e.forEach(function(e){var t=(0,_util.getRowid)(i,e);t&&r[t]&&(-1<(e=i.findRowIndexOf(l,e))&&l.splice(e,1),delete r[t])}),this.pendingRowMaps=r,this.pendingRowList=l,this.$nextTick()},togglePendingRow:function(e){var r=this,l=Object.assign({},this.pendingRowMaps),n=_toConsumableArray(this.pendingRowList);return(e=e&&!_xeUtils.default.isArray(e)?[e]:e).forEach(function(e){var t,i=(0,_util.getRowid)(r,e);i&&(l[i]?(-1<(t=r.findRowIndexOf(n,e))&&n.splice(t,1),delete l[i]):(n.push(e),l[i]=e))}),this.pendingRowMaps=l,this.pendingRowList=n,this.$nextTick()},getPendingRecords:function(){return this.pendingRowList.slice(0)},hasPendingByRow:function(e){return!!this.pendingRowMaps[(0,_util.getRowid)(this,e)]},clearPendingRow:function(){return this.pendingRowMaps={},this.pendingRowList=[],this.$nextTick()},sort:function(e,t){var l,n=this,i=this.sortOpts,r=i.multiple,o=i.remote,a=i.orders;return e&&_xeUtils.default.isString(e)&&(e=[{field:e,order:t}]),(e=_xeUtils.default.isArray(e)?e:[e]).length?(r||clearAllSort(this),(r?e:[e[0]]).forEach(function(e,t){var i=e.field,e=e.order,r=i;(r=_xeUtils.default.isString(i)?n.getColumnByField(i):r)&&(r.sortable||r.remoteSort)&&(l=l||r,-1===a.indexOf(e)&&(e=getNextSortOrder(n,r)),r.order!==e&&(r.order=e),r.sortTime=Date.now()+t)}),(!o||l&&l.remoteSort)&&this.handleTableData(!0),this.$nextTick().then(function(){return n.updateCellAreas(),n.updateStyle()})):this.$nextTick()},clearSort:function(e){var t=this.sortOpts;return e?(e=(0,_util.handleFieldOrColumn)(this,e))&&(e.order=null):clearAllSort(this),t.remote||this.handleTableData(!0),this.$nextTick().then(this.updateStyle)},getSortColumn:function(){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["getSortColumn","getSortColumns"]),_xeUtils.default.find(this.tableFullColumn,function(e){return(e.sortable||e.remoteSort)&&e.order})},isSort:function(e){return e?(e=(0,_util.handleFieldOrColumn)(this,e))&&e.sortable&&!!e.order:0<this.getSortColumns().length},getSortColumns:function(){var e=this.sortOpts,t=e.multiple,e=e.chronological,r=[];return this.tableFullColumn.forEach(function(e){var t=e.field,i=e.order;(e.sortable||e.remoteSort)&&i&&r.push({column:e,field:t,property:t,order:i,sortTime:e.sortTime})}),t&&e&&1<r.length?_xeUtils.default.orderBy(r,"sortTime"):r},closeFilter:function(){var e=this.filterStore,t=e.column,i=e.visible;return Object.assign(e,{isAllSelected:!1,isIndeterminate:!1,options:[],visible:!1}),i&&this.emitEvent("filter-visible",{column:t,field:t.field,property:t.field,filterList:this.getCheckedFilters(),visible:!1},null),this.$nextTick()},isActiveFilterByColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e?e.filters&&e.filters.some(function(e){return e.checked}):0<this.getCheckedFilters().length},isFilter:function(e){return this.isActiveFilterByColumn(e)},isRowExpandLoaded:function(e){e=this.fullAllDataRowMap.get(e);return e&&e.expandLoaded},clearRowExpandLoaded:function(e){var t=this.expandOpts,i=this.rowExpandLazyLoadedMaps,r=this.fullAllDataRowMap,t=t.lazy,l=(0,_util.getRowid)(this,e),r=r.get(e);return t&&r&&(r.expandLoaded=!1,(e=Object.assign({},i))[l]&&delete e[l],this.rowExpandLazyLoadedMaps=e),this.$nextTick()},reloadRowExpand:function(e){var t=this,i=this.expandOpts,r=this.rowExpandLazyLoadedMaps,i=i.lazy,l=(0,_util.getRowid)(this,e);return i&&!r[l]&&this.clearRowExpandLoaded(e).then(function(){return t.handleAsyncRowExpand(e)}),this.$nextTick()},reloadExpandContent:function(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["reloadExpandContent","reloadRowExpand"]),this.reloadRowExpand(e)},triggerRowExpandEvent:function(e,t){var i=this.expandOpts,r=this.rowExpandLazyLoadedMaps,l=this.expandColumn,t=t.row,n=i.lazy;"manual"===i.trigger||(e.stopPropagation(),i=(0,_util.getRowid)(this,t),n&&r[i])||(n=!this.isRowExpandByRow(t),r=this.getColumnIndex(l),i=this.getVMColumnIndex(l),this.setRowExpand(t,n),this.emitEvent("toggle-row-expand",{expanded:n,column:l,columnIndex:r,$columnIndex:i,row:t,rowIndex:this.getRowIndex(t),$rowIndex:this.getVMRowIndex(t)},e))},toggleRowExpand:function(e){return this.setRowExpand(e,!this.isRowExpandByRow(e))},handleDefaultRowExpand:function(){var t,e=this.expandOpts,i=this.fullDataRowIdData,r=e.expandAll,e=e.expandRowKeys;r?this.setAllRowExpand(!0):e&&(t=[],e.forEach(function(e){i[e]&&t.push(i[e].row)}),this.setRowExpand(t,!0))},setAllRowExpand:function(e){var t=this.treeConfig,i=this.treeOpts,r=this.tableFullData,l=this.tableFullTreeData,i=i.children||i.childrenField,n=[];return t?_xeUtils.default.eachTree(l,function(e){n.push(e)},{children:i}):n=r,this.setRowExpand(n,e)},handleAsyncRowExpand:function(l){var n=this,e=this.fullAllDataRowMap,o=this.expandOpts,a=e.get(l);return new Promise(function(t){var e,i,r=o.loadMethod;r?(e=n.rowExpandLazyLoadedMaps,(e=Object.assign({},e))[i=(0,_util.getRowid)(n,l)]=l,n.rowExpandLazyLoadedMaps=e,r({$table:n,row:l,rowIndex:n.getRowIndex(l),$rowIndex:n.getVMRowIndex(l)}).then(function(){a.expandLoaded=!0;var e=n.rowExpandedMaps,e=Object.assign({},e);e[i]=l,n.rowExpandedMaps=e}).catch(function(){a.expandLoaded=!1}).finally(function(){var e=n.rowExpandLazyLoadedMaps,e=Object.assign({},e);e[i]&&delete e[i],n.rowExpandLazyLoadedMaps=e,t(n.$nextTick().then(n.recalculate))})):t()})},setRowExpand:function(e,t){var r=this,i=this.rowExpandedMaps,l=this.fullAllDataRowIdData,n=this.rowExpandLazyLoadedMaps,o=this.expandOpts,a=this.expandColumn,s=Object.assign({},i),i=o.reserve,u=o.lazy,d=o.accordion,c=o.toggleMethod,h=[],f=this.getColumnIndex(a),g=this.getVMColumnIndex(a);return e&&(_xeUtils.default.isArray(e)||(e=[e]),d&&(s={},e=e.slice(e.length-1,e.length)),o=c?e.filter(function(e){return c({expanded:t,column:a,columnIndex:f,$columnIndex:g,row:e,rowIndex:r.getRowIndex(e),$rowIndex:r.getVMRowIndex(e)})}):e,t?o.forEach(function(e){var t,i=(0,_util.getRowid)(r,e);s[i]||(t=l[i],u&&!t.expandLoaded&&!n[i]?h.push(r.handleAsyncRowExpand(e)):s[i]=e)}):o.forEach(function(e){e=(0,_util.getRowid)(r,e);s[e]&&delete s[e]}),i)&&o.forEach(function(e){return r.handleRowExpandReserve(e,t)}),this.rowExpandedMaps=s,Promise.all(h).then(this.recalculate)},isRowExpandByRow:function(e){return!!this.rowExpandedMaps[(0,_util.getRowid)(this,e)]},isExpandByRow:function(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["isExpandByRow","isRowExpandByRow"]),this.isRowExpandByRow(e)},clearRowExpand:function(){var t=this,e=this.expandOpts,i=this.tableFullData,e=e.reserve,r=this.getRowExpandRecords();return this.rowExpandedMaps={},e&&i.forEach(function(e){return t.handleRowExpandReserve(e,!1)}),this.$nextTick().then(function(){r.length&&t.recalculate()})},clearRowExpandReserve:function(){return this.rowExpandedReserveRowMap={},this.$nextTick()},handleRowExpandReserve:function(e,t){var i,r=this.rowExpandedReserveRowMap;this.expandOpts.reserve&&(i=(0,_util.getRowid)(this,e),t?r[i]=e:r[i]&&delete r[i])},getRowExpandRecords:function(){var t=[];return _xeUtils.default.each(this.rowExpandedMaps,function(e){e&&t.push(e)}),t},getTreeExpandRecords:function(){var t=[];return _xeUtils.default.each(this.treeExpandedMaps,function(e){e&&t.push(e)}),t},getTreeStatus:function(){return this.treeConfig?{config:this.treeOpts,rowExpandeds:this.getTreeExpandRecords()}:null},isTreeExpandLoaded:function(e){e=this.fullAllDataRowMap.get(e);return e&&e.treeLoaded},clearTreeExpandLoaded:function(e){var t=this.treeOpts,i=this.treeExpandedMaps,r=this.fullAllDataRowMap,l=t.transform,t=t.lazy,n=(0,_util.getRowid)(this,e),r=r.get(e);return t&&r&&(r.treeLoaded=!1,i[n])&&delete i[n],l?(this.handleVirtualTreeToList(),this.handleTableData()):this.$nextTick()},reloadTreeExpand:function(e){var t=this,i=this.treeOpts,r=this.treeExpandLazyLoadedMaps,l=i.transform,n=i.lazy,i=i.hasChild||i.hasChildField,o=(0,_util.getRowid)(this,e);return n&&e[i]&&!r[o]&&this.clearTreeExpandLoaded(e).then(function(){return t.handleAsyncTreeExpandChilds(e)}).then(function(){if(l)return t.handleVirtualTreeToList(),t.handleTableData()}).then(function(){return t.recalculate()}),this.$nextTick()},reloadTreeChilds:function(e){return"development"===process.env.NODE_ENV&&(0,_log.warnLog)("vxe.error.delFunc",["reloadTreeChilds","reloadTreeExpand"]),this.reloadTreeExpand(e)},triggerTreeExpandEvent:function(e,t){var i=this.treeOpts,r=this.treeExpandLazyLoadedMaps,l=t.row,t=t.column,n=i.lazy;"manual"===i.trigger||(e.stopPropagation(),i=(0,_util.getRowid)(this,l),n&&r[i])||(n=!this.isTreeExpandByRow(l),r=this.getColumnIndex(t),i=this.getVMColumnIndex(t),this.setTreeExpand(l,n),this.emitEvent("toggle-tree-expand",{expanded:n,column:t,columnIndex:r,$columnIndex:i,row:l},e))},toggleTreeExpand:function(e){return this.setTreeExpand(e,!this.isTreeExpandByRow(e))},handleDefaultTreeExpand:function(){var e,i,r,l,t=this.treeConfig,n=this.treeOpts,o=this.tableFullData;t&&(t=n.expandAll,e=n.expandRowKeys,i=n.children||n.childrenField,t?this.setAllTreeExpand(!0):e&&(r=[],l=(0,_util.getRowkey)(this),e.forEach(function(t){var e=_xeUtils.default.findTree(o,function(e){return t===_xeUtils.default.get(e,l)},{children:i});e&&r.push(e.item)}),this.setTreeExpand(r,!0)))},handleAsyncTreeExpandChilds:function(n){var o=this,e=this.treeOpts,t=this.checkboxOpts,a=e.transform,s=e.loadMethod,u=t.checkStrictly;return new Promise(function(e){var t,i,r,l;s?(t=o.fullAllDataRowMap,i=o.treeExpandLazyLoadedMaps,r=(0,_util.getRowid)(o,n),l=t.get(n),i[r]=n,s({$table:o,row:n}).then(function(e){if(l.treeLoaded=!0,i[r]&&(i[r]=null),e=_xeUtils.default.isArray(e)?e:[])return o.loadTreeChildren(n,e).then(function(e){var t=o.treeExpandedMaps,t=Object.assign({},t);return e.length&&!t[r]&&(t[r]=n,o.treeExpandedMaps=t),!u&&o.isCheckedByCheckboxRow(n)&&o.handleCheckedCheckboxRow(e,!0,!0),o.$nextTick().then(function(){if(a)return o.handleTableData()})})}).catch(function(){l.treeLoaded=!1;var e=o.treeExpandLazyLoadedMaps;e[r]&&(e[r]=null)}).finally(function(){o.$nextTick().then(function(){return o.recalculate()}).then(function(){return e()})})):e()})},setAllTreeExpand:function(e){var t=this.tableFullData,i=this.treeOpts,r=i.lazy,l=i.children||i.childrenField,n=[];return _xeUtils.default.eachTree(t,function(e){var t=e[l];(r||t&&t.length)&&n.push(e)},{children:l}),this.setTreeExpand(n,e)},handleBaseTreeExpand:function(e,t){var r=this,l=this.fullAllDataRowMap,i=this.tableFullData,n=this.treeExpandedMaps,o=this.treeOpts,a=this.treeExpandLazyLoadedMaps,s=this.treeNodeColumn,u=o.reserve,d=o.lazy,c=o.accordion,h=o.toggleMethod,f=Object.assign({},n),g=o.children||o.childrenField,p=o.hasChild||o.hasChildField,x=[],m=this.getColumnIndex(s),v=this.getVMColumnIndex(s),w=h?e.filter(function(e){return h({expanded:t,column:s,columnIndex:m,$columnIndex:v,row:e})}):e;return c&&(w=w.length?[w[w.length-1]]:[],n=_xeUtils.default.findTree(i,function(e){return e===w[0]},{children:g}))&&n.items.forEach(function(e){e=(0,_util.getRowid)(r,e);f[e]&&delete f[e]}),t?w.forEach(function(e){var t,i=(0,_util.getRowid)(r,e);f[i]||(t=l.get(e),d&&e[p]&&!t.treeLoaded&&!a[i]?x.push(r.handleAsyncTreeExpandChilds(e)):e[g]&&e[g].length&&(f[i]=e))}):w.forEach(function(e){e=(0,_util.getRowid)(r,e);f[e]&&delete f[e]}),u&&w.forEach(function(e){return r.handleTreeExpandReserve(e,t)}),this.treeExpandedMaps=f,Promise.all(x).then(this.recalculate)},handleVirtualTreeExpand:function(e,t){var i=this;return this.handleBaseTreeExpand(e,t).then(function(){return i.handleVirtualTreeToList(),i.handleTableData()}).then(function(){return i.recalculate()})},setTreeExpand:function(e,t){var i=this.treeOpts.transform;return e&&(e=_xeUtils.default.isArray(e)?e:[e]).length?i?this.handleVirtualTreeExpand(e,t):this.handleBaseTreeExpand(e,t):this.$nextTick()},isTreeExpandByRow:function(e){return!!this.treeExpandedMaps[(0,_util.getRowid)(this,e)]},clearTreeExpand:function(){var t=this,e=this.treeOpts,i=this.tableFullData,r=e.transform,l=e.reserve,e=e.children||e.childrenField,n=this.getTreeExpandRecords();return this.treeExpandedMaps={},l&&_xeUtils.default.eachTree(i,function(e){return t.handleTreeExpandReserve(e,!1)},{children:e}),this.handleTableData().then(function(){if(r)return t.handleVirtualTreeToList(),t.handleTableData()}).then(function(){n.length&&t.recalculate()})},clearTreeExpandReserve:function(){return this.treeExpandedReserveRowMap={},this.$nextTick()},handleTreeExpandReserve:function(e,t){var i,r=this.treeExpandedReserveRowMap;this.treeOpts.reserve&&(i=(0,_util.getRowid)(this,e),t?r[i]=e:r[i]&&delete r[i])},getScroll:function(){var e=this.$refs,t=this.scrollXLoad,i=this.scrollYLoad,e=e.tableBody.$el;return{virtualX:t,virtualY:i,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}},triggerScrollXEvent:function(){this.loadScrollXData()},loadScrollXData:function(){var e=this.mergeList,t=this.mergeFooterList,i=this.scrollXStore,r=i.startIndex,l=i.endIndex,n=i.offsetSize,o=computeVirtualX(this),a=o.toVisibleIndex,o=o.visibleSize,n={startIndex:Math.max(0,a-1-n),endIndex:a+o+n},e=(calculateMergerOffserIndex(e.concat(t),n,"col"),n.startIndex),t=n.endIndex;!(a<=r||l-o-1<=a)||r===e&&l===t||(i.startIndex=e,i.endIndex=t,this.updateScrollXData()),this.closeTooltip()},triggerScrollYEvent:function(e){var t=this.scrollYStore,i=t.adaptive;isWebkit&&i&&2*t.offsetSize+t.visibleSize<=40?this.loadScrollYData(e):this.debounceScrollY(e)},debounceScrollY:_xeUtils.default.debounce(function(e){this.loadScrollYData(e)},debounceScrollYDuration,{leading:!1,trailing:!0}),loadScrollYData:function(e){var t=this.mergeList,i=this.scrollYStore,r=i.startIndex,l=i.endIndex,n=i.visibleSize,o=i.offsetSize,e=(e.currentTarget||e.target).scrollTop,e=Math.floor(e/i.rowHeight),o={startIndex:Math.max(0,e-1-o),endIndex:e+n+o},t=(calculateMergerOffserIndex(t,o,"row"),o.startIndex),o=o.endIndex;!(e<=r||l-n-1<=e)||r===t&&l===o||(i.startIndex=t,i.endIndex=o,this.updateScrollYData())},computeScrollLoad:function(){var o=this;return this.$nextTick().then(function(){var e=o.sYOpts,t=o.sXOpts,i=o.scrollXLoad,r=o.scrollYLoad,l=o.scrollXStore,n=o.scrollYStore,i=(i?(i=computeVirtualX(o).visibleSize,t=t.oSize?_xeUtils.default.toNumber(t.oSize):_dom.browse.msie?10:_dom.browse.edge?5:0,l.offsetSize=t,l.visibleSize=i,l.endIndex=Math.max(l.startIndex+l.visibleSize+t,l.endIndex),o.updateScrollXData()):o.updateScrollXSpace(),computeVirtualY(o)),t=i.rowHeight,l=i.visibleSize;n.rowHeight=t,r?(i=e.oSize?_xeUtils.default.toNumber(e.oSize):_dom.browse.msie?20:_dom.browse.edge?10:0,n.offsetSize=i,n.visibleSize=l,n.endIndex=Math.max(n.startIndex+l+i,n.endIndex),o.updateScrollYData()):o.updateScrollYSpace(),o.rowHeight=t,o.$nextTick(o.updateStyle)})},handleTableColumn:function(){var e=this.scrollXLoad,t=this.visibleColumn,i=this.scrollXStore;this.tableColumn=e?t.slice(i.startIndex,i.endIndex):t.slice(0)},updateScrollXData:function(){var e=this;this.$nextTick(function(){e.handleTableColumn(),e.updateScrollXSpace()})},updateScrollXSpace:function(){var e=this.$refs,t=this.isGroup,r=this.elemStore,i=this.visibleColumn,l=this.scrollXStore,n=this.scrollXLoad,o=this.tableWidth,a=this.scrollbarWidth,s=e.tableHeader,u=e.tableBody,e=e.tableFooter,u=u?u.$el:null;u&&(s=s?s.$el:null,e=e?e.$el:null,s=s?s.querySelector(".vxe-table--header"):null,u=u.querySelector(".vxe-table--body"),e=e?e.querySelector(".vxe-table--footer"):null,i=i.slice(0,l.startIndex).reduce(function(e,t){return e+t.renderWidth},0),l="",n&&(l="".concat(i,"px")),s&&(s.style.marginLeft=t?"":l),u.style.marginLeft=l,e&&(e.style.marginLeft=l),["main"].forEach(function(i){["header","body","footer"].forEach(function(e){var t=r["".concat(i,"-").concat(e,"-xSpace")];t&&(t.style.width=n?"".concat(o+("header"===e?a:0),"px"):"")})}),this.$nextTick(this.updateStyle))},updateScrollYData:function(){var e=this;this.$nextTick(function(){e.handleTableData(),e.updateScrollYSpace()})},updateScrollYSpace:function(){var i=this.elemStore,e=this.scrollYStore,t=this.scrollYLoad,r=this.afterFullData,l=e.startIndex,e=e.rowHeight,r=r.length*e,l=Math.max(0,l*e),n="",o="";t&&(n="".concat(l,"px"),o="".concat(r,"px")),["main","left","right"].forEach(function(t){var e=i["".concat(t,"-body-table")];e&&(e.style.marginTop=n),["header","body","footer"].forEach(function(e){e=i["".concat(t,"-").concat(e,"-ySpace")];e&&(e.style.height=o)})}),this.$nextTick(this.updateStyle)},scrollTo:function(e,t){var i=this,r=this.$refs,l=r.tableBody,n=r.rightBody,r=r.tableFooter,l=l?l.$el:null,n=n?n.$el:null,r=r?r.$el:null;return _xeUtils.default.isNumber(e)&&(0,_dom.setScrollLeft)(r||l,e),_xeUtils.default.isNumber(t)&&(0,_dom.setScrollTop)(n||l,t),this.scrollXLoad||this.scrollYLoad?new Promise(function(e){return setTimeout(function(){return e(i.$nextTick())},50)}):this.$nextTick()},scrollToRow:function(e,t){var i=[];return e&&(this.treeConfig?i.push(this.scrollToTreeRow(e)):i.push((0,_util.rowToVisible)(this,e))),t&&i.push(this.scrollToColumn(t)),Promise.all(i)},scrollToColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&this.fullColumnMap.has(e)?(0,_util.colToVisible)(this,e):this.$nextTick()},scrollToTreeRow:function(t){var i,r=this,e=this.tableFullData,l=this.treeConfig,n=this.treeOpts,n=n.children||n.childrenField,o=[];return l&&(l=_xeUtils.default.findTree(e,function(e){return e===t},{children:n}))&&(i=l.nodes).forEach(function(e,t){t<i.length-1&&!r.isTreeExpandByRow(e)&&o.push(r.setTreeExpand(e,!0))}),Promise.all(o).then(function(){return(0,_util.rowToVisible)(r,t)})},clearScroll:function(){var e=this.$refs,t=this.scrollXStore,i=this.scrollYStore,r=e.tableBody,l=e.rightBody,e=e.tableFooter,r=r?r.$el:null,l=l?l.$el:null,e=e?e.$el:null;return l&&((0,_util.restoreScrollListener)(l),l.scrollTop=0),e&&(e.scrollLeft=0),r&&((0,_util.restoreScrollListener)(r),r.scrollTop=0,r.scrollLeft=0),t.startIndex=0,t.endIndex=t.visibleSize,i.startIndex=0,i.endIndex=i.visibleSize,this.$nextTick()},updateFooter:function(){var e=this.showFooter,t=this.visibleColumn,i=this.footerData,r=this.footerMethod,l=[];return e&&i&&i.length?l=i.slice(0):e&&r&&(l=t.length?r({columns:t,data:this.afterFullData,$table:this,$grid:this.$xegrid}):[]),this.footerTableData=l,this.$nextTick()},updateStatus:function(o,a){var s=this,u=!_xeUtils.default.isUndefined(a);return this.$nextTick().then(function(){var e=s.$refs,t=s.editRules,i=s.validStore,e=e.tableBody;if(o&&e&&t){var r=o.row,l=o.column;if(s.hasCellRules&&s.hasCellRules("change",r,l)){var n=s.getCellElement(r,l);if(n)return s.validCellRules("change",r,l,a).then(function(){u&&i.visible&&(0,_util.setCellValue)(r,l,a),s.clearValidate(r,l)}).catch(function(e){e=e.rule;u&&(0,_util.setCellValue)(r,l,a),s.showValidTooltip({rule:e,row:r,column:l,cell:n})})}}})},handleDefaultMergeCells:function(){this.setMergeCells(this.mergeCells)},setMergeCells:function(e){var t=this;return this.spanMethod&&(0,_log.errLog)("vxe.error.errConflicts",["merge-cells","span-method"]),setMerges(this,e,this.mergeList,this.afterFullData),this.$nextTick().then(function(){return t.updateCellAreas(),t.updateStyle()})},removeMergeCells:function(e){var t=this,i=(this.spanMethod&&(0,_log.errLog)("vxe.error.errConflicts",["merge-cells","span-method"]),removeMerges(this,e,this.mergeList,this.afterFullData));return this.$nextTick().then(function(){return t.updateCellAreas(),t.updateStyle(),i})},getMergeCells:function(){return this.mergeList.slice(0)},clearMergeCells:function(){var e=this;return this.mergeList=[],this.$nextTick().then(function(){return e.updateStyle()})},handleDefaultMergeFooterItems:function(){this.setMergeFooterItems(this.mergeFooterItems)},setMergeFooterItems:function(e){var t=this;return this.footerSpanMethod&&(0,_log.errLog)("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]),setMerges(this,e,this.mergeFooterList,null),this.$nextTick().then(function(){return t.updateCellAreas(),t.updateStyle()})},removeMergeFooterItems:function(e){var t=this,i=(this.footerSpanMethod&&(0,_log.errLog)("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]),removeMerges(this,e,this.mergeFooterList,null));return this.$nextTick().then(function(){return t.updateCellAreas(),t.updateStyle(),i})},getMergeFooterItems:function(){return this.mergeFooterList.slice(0)},clearMergeFooterItems:function(){var e=this;return this.mergeFooterList=[],this.$nextTick().then(function(){return e.updateStyle()})},updateZindex:function(){this.zIndex?this.tZindex=this.zIndex:this.tZindex<(0,_utils.getLastZIndex)()&&(this.tZindex=(0,_utils.nextZIndex)())},updateCellAreas:function(){return this.mouseConfig&&this.mouseOpts.area&&this.handleUpdateCellAreas?this.handleUpdateCellAreas():this.$nextTick()},emitEvent:function(e,t,i){this.$emit(e,Object.assign({$table:this,$grid:this.$xegrid,$event:i},t))},focus:function(){return this.isActivated=!0,this.$nextTick()},blur:function(){return this.isActivated=!1,this.$nextTick()},connect:function(e){return e&&e.syncUpdate?(e.syncUpdate({collectColumn:this.collectColumn,$table:this}),this.$toolbar=e):(0,_log.errLog)("vxe.error.barUnableLink"),this.$nextTick()},getCell:function(e,t){return this.getCellElement(e,t)},findRowIndexOf:function(e,t){var i=this;return t?_xeUtils.default.findIndexOf(e,function(e){return i.eqRow(e,t)}):-1},eqRow:function(e,t){return!(!e||!t||e!==t&&(0,_util.getRowid)(this,e)!==(0,_util.getRowid)(this,t))},getSetupOptions:function(){return getConfig()}},funcs="setFilter,openFilter,clearFilter,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,getPrintHtml,exportData,openImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom".split(","),_default=(funcs.forEach(function(e){Methods[e]=function(){return"development"!==process.env.NODE_ENV||this["_".concat(e)]||("openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print".split(",").includes(e)?(0,_log.errLog)("vxe.error.reqModule",["VxeTableExportModule"]):"fullValidate,validate".split(",").includes(e)?(0,_log.errLog)("vxe.error.reqModule",["VxeTableValidatorModule"]):"setFilter,openFilter,clearFilter,getCheckedFilters".split(",").includes(e)?(0,_log.errLog)("vxe.error.reqModule",["VxeTableFilterModule"]):"insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell".split(",").includes(e)?(0,_log.errLog)("vxe.error.reqModule",["VxeTableEditModule"]):"openCustom".split(",").includes(e)&&(0,_log.errLog)("vxe.error.reqModule",["VxeTableCustomModule"])),this["_".concat(e)]?this["_".concat(e)].apply(this,arguments):null}}),exports.default=Methods);
@@ -43,6 +43,13 @@ var _default2 = exports.default = {
43
43
  return getConfig().table.border;
44
44
  }
45
45
  },
46
+ // 单元格是否有边距
47
+ padding: {
48
+ type: Boolean,
49
+ default: function _default() {
50
+ return getConfig().table.padding;
51
+ }
52
+ },
46
53
  // 是否圆角边框
47
54
  round: {
48
55
  type: Boolean,
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _ui=require("../../ui"),getConfig=_ui.VxeUI.getConfig,_default2=exports.default={id:[String,Function],data:Array,height:[Number,String],minHeight:{type:[Number,String],default:function(){return getConfig().table.minHeight}},maxHeight:[Number,String],resizable:{type:Boolean,default:function(){return getConfig().table.resizable}},stripe:{type:Boolean,default:function(){return getConfig().table.stripe}},border:{type:[Boolean,String],default:function(){return getConfig().table.border}},round:{type:Boolean,default:function(){return getConfig().table.round}},size:{type:String,default:function(){return getConfig().table.size||getConfig().size}},fit:{type:Boolean,default:function(){return getConfig().table.fit}},loading:Boolean,align:{type:String,default:function(){return getConfig().table.align}},headerAlign:{type:String,default:function(){return getConfig().table.headerAlign}},footerAlign:{type:String,default:function(){return getConfig().table.footerAlign}},showHeader:{type:Boolean,default:function(){return getConfig().table.showHeader}},highlightCurrentRow:{type:Boolean,default:function(){return getConfig().table.highlightCurrentRow}},highlightHoverRow:{type:Boolean,default:function(){return getConfig().table.highlightHoverRow}},highlightCurrentColumn:{type:Boolean,default:function(){return getConfig().table.highlightCurrentColumn}},highlightHoverColumn:{type:Boolean,default:function(){return getConfig().table.highlightHoverColumn}},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],mergeCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:function(){return getConfig().table.showOverflow}},showHeaderOverflow:{type:[Boolean,String],default:function(){return getConfig().table.showHeaderOverflow}},showFooterOverflow:{type:[Boolean,String],default:function(){return getConfig().table.showFooterOverflow}},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:function(){return getConfig().table.rowId}},zIndex:Number,emptyText:{type:String,default:function(){return getConfig().table.emptyText}},keepSource:{type:Boolean,default:function(){return getConfig().table.keepSource}},autoResize:{type:Boolean,default:function(){return getConfig().table.autoResize}},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,rowConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,exportConfig:[Boolean,Object],importConfig:[Boolean,Object],printConfig:Object,expandConfig:Object,treeConfig:[Boolean,Object],menuConfig:[Boolean,Object],contextMenu:[Boolean,Object],mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:[Boolean,Object],validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:[Boolean,Object],customConfig:[Boolean,Object],scrollX:Object,scrollY:Object,animat:{type:Boolean,default:function(){return getConfig().table.animat}},delayHover:{type:Number,default:function(){return getConfig().table.delayHover}},params:Object};
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _ui=require("../../ui"),getConfig=_ui.VxeUI.getConfig,_default2=exports.default={id:[String,Function],data:Array,height:[Number,String],minHeight:{type:[Number,String],default:function(){return getConfig().table.minHeight}},maxHeight:[Number,String],resizable:{type:Boolean,default:function(){return getConfig().table.resizable}},stripe:{type:Boolean,default:function(){return getConfig().table.stripe}},border:{type:[Boolean,String],default:function(){return getConfig().table.border}},padding:{type:Boolean,default:function(){return getConfig().table.padding}},round:{type:Boolean,default:function(){return getConfig().table.round}},size:{type:String,default:function(){return getConfig().table.size||getConfig().size}},fit:{type:Boolean,default:function(){return getConfig().table.fit}},loading:Boolean,align:{type:String,default:function(){return getConfig().table.align}},headerAlign:{type:String,default:function(){return getConfig().table.headerAlign}},footerAlign:{type:String,default:function(){return getConfig().table.footerAlign}},showHeader:{type:Boolean,default:function(){return getConfig().table.showHeader}},highlightCurrentRow:{type:Boolean,default:function(){return getConfig().table.highlightCurrentRow}},highlightHoverRow:{type:Boolean,default:function(){return getConfig().table.highlightHoverRow}},highlightCurrentColumn:{type:Boolean,default:function(){return getConfig().table.highlightCurrentColumn}},highlightHoverColumn:{type:Boolean,default:function(){return getConfig().table.highlightHoverColumn}},highlightCell:Boolean,showFooter:Boolean,footerData:Array,footerMethod:Function,rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],mergeCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:function(){return getConfig().table.showOverflow}},showHeaderOverflow:{type:[Boolean,String],default:function(){return getConfig().table.showHeaderOverflow}},showFooterOverflow:{type:[Boolean,String],default:function(){return getConfig().table.showFooterOverflow}},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:function(){return getConfig().table.rowId}},zIndex:Number,emptyText:{type:String,default:function(){return getConfig().table.emptyText}},keepSource:{type:Boolean,default:function(){return getConfig().table.keepSource}},autoResize:{type:Boolean,default:function(){return getConfig().table.autoResize}},syncResize:[Boolean,String,Number],resizeConfig:Object,columnConfig:Object,rowConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,radioConfig:Object,checkboxConfig:Object,tooltipConfig:Object,exportConfig:[Boolean,Object],importConfig:[Boolean,Object],printConfig:Object,expandConfig:Object,treeConfig:[Boolean,Object],menuConfig:[Boolean,Object],contextMenu:[Boolean,Object],mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:[Boolean,Object],validConfig:Object,editRules:Object,loadingConfig:Object,emptyRender:[Boolean,Object],customConfig:[Boolean,Object],scrollX:Object,scrollY:Object,animat:{type:Boolean,default:function(){return getConfig().table.animat}},delayHover:{type:Number,default:function(){return getConfig().table.delayHover}},params:Object};