vxe-table 3.4.2 → 3.4.5

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_cell=_interopRequireDefault(require("./cell")),_vXETable=_interopRequireDefault(require("../../v-x-e-table")),_tools=require("../../tools"),_util=require("./util"),_utils=require("../../tools/src/utils"),_dom=require("../../tools/src/dom"),_formats=require("../../v-x-e-table/src/formats");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}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){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_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 r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var getRowid=_tools.UtilTools.getRowid,getRowkey=_tools.UtilTools.getRowkey,setCellValue=_tools.UtilTools.setCellValue,hasChildrenList=_tools.UtilTools.hasChildrenList,getColumnList=_tools.UtilTools.getColumnList,calcHeight=_tools.DomTools.calcHeight,hasClass=_tools.DomTools.hasClass,addClass=_tools.DomTools.addClass,removeClass=_tools.DomTools.removeClass,getEventTargetNode=_tools.DomTools.getEventTargetNode,isWebkit=_dom.browse["-webkit"]&&!_dom.browse.edge,debounceScrollYDuration=_dom.browse.msie?80:20,resizableStorageKey="VXE_TABLE_CUSTOM_COLUMN_WIDTH",visibleStorageKey="VXE_TABLE_CUSTOM_COLUMN_VISIBLE";function getRowUniqueId(){return _xeUtils.default.uniqueId("row_")}function eqCellValue(e,t,r){e=_xeUtils.default.get(e,r),r=_xeUtils.default.get(t,r);return!(!(0,_utils.eqEmptyValue)(e)||!(0,_utils.eqEmptyValue)(r))||(_xeUtils.default.isString(e)||_xeUtils.default.isNumber(e)?e==r:_xeUtils.default.isEqual(e,r))}function getNextSortOrder(e,t){e=e.sortOpts.orders,t=t.order||null,t=e.indexOf(t)+1;return e[t<e.length?t:0]}function getCustomStorageMap(e){var t=_conf.default.version,e=_xeUtils.default.toStringJSON(localStorage.getItem(e));return e&&e._v===t?e:{_v:t}}function getRecoverRow(e,t){var r=e.fullAllDataRowMap;return t.filter(function(e){return r.has(e)})}function handleReserveRow(e,t){var r=e.fullDataRowIdData,o=[];return _xeUtils.default.each(t,function(e,t){r[t]&&-1===o.indexOf(r[t].row)&&o.push(r[t].row)}),o}function computeVirtualX(e){var t=e.$refs,r=e.visibleColumn,t=t.tableBody,t=t?t.$el:null;if(t){for(var o=t.scrollLeft,i=o+t.clientWidth,l=-1,n=0,s=0,a=0,u=r.length;a<u&&(n+=r[a].renderWidth,!(0<=(l=-1===l&&o<n?a:l)&&(s++,i<n)));a++);return{toVisibleIndex:Math.max(0,l),visibleSize:Math.max(8,s)}}return{toVisibleIndex:0,visibleSize:8}}function computeVirtualY(e){var t=e.$refs,r=e.vSize,o=e.rowHeightMaps,i=t.tableHeader,l=t.tableBody,e=l?l.$el:null;if(e){t=i?i.$el:null,l=0,i=e.querySelector("tr");return{rowHeight:l=(l=(i=!i&&t?t.querySelector("tr"):i)?i.clientHeight:l)||o[r||"default"],visibleSize:Math.max(8,Math.ceil(e.clientHeight/l)+2)}}return{rowHeight:0,visibleSize:8}}function calculateMergerOffserIndex(e,t,r){for(var o=0,i=e.length;o<i;o++){var l=e[o],n=t.startIndex,s=t.endIndex,a=l[r],l=a+l[r+"span"];a<n&&n<l&&(t.startIndex=a),a<s&&s<l&&(t.endIndex=l),t.startIndex===n&&t.endIndex===s||(o=-1)}}function setMerges(e,t,n,s){if(t){var r=e.treeConfig,a=e.visibleColumn;if(r)throw new Error(_tools.UtilTools.getLog("vxe.error.noTree",["merge-footer-items"]));(t=!_xeUtils.default.isArray(t)?[t]:t).forEach(function(e){var t,r=e.row,o=e.col,i=e.rowspan,l=e.colspan;s&&_xeUtils.default.isNumber(r)&&(r=s[r]),_xeUtils.default.isNumber(o)&&(o=a[o]),(s?r:_xeUtils.default.isNumber(r))&&o&&(i||l)&&(i=_xeUtils.default.toNumber(i)||1,l=_xeUtils.default.toNumber(l)||1,(1<i||1<l)&&(t=_xeUtils.default.findIndexOf(n,function(e){return e._row===r&&e._col===o}),(e=n[t])?(e.rowspan=i,e.colspan=l,e._rowspan=i,e._colspan=l):(t=s?s.indexOf(r):r,e=a.indexOf(o),n.push({row:t,col:e,rowspan:i,colspan:l,_row:r,_col:o,_rowspan:i,_colspan:l}))))})}}function removeMerges(e,t,o,i){var l=[];if(t){var r=e.treeConfig,n=e.visibleColumn;if(r)throw new Error(_tools.UtilTools.getLog("vxe.error.noTree",["merge-cells"]));(t=!_xeUtils.default.isArray(t)?[t]:t).forEach(function(e){var t=e.row,r=e.col;i&&_xeUtils.default.isNumber(t)&&(t=i[t]),_xeUtils.default.isNumber(r)&&(r=n[r]);e=_xeUtils.default.findIndexOf(o,function(e){return e._row===t&&e._col===r});-1<e&&(e=o.splice(e,1),l.push(e[0]))})}return l}function clearAllSort(e){e.tableFullColumn.forEach(function(e){e.order=null})}function getOrderField(t,r){var o=r.sortBy,i=r.sortType;return function(e){e=o?_xeUtils.default.isFunction(o)?o({row:e,column:r}):_xeUtils.default.get(e,o):t.getCellLabel(e,r);return i&&"auto"!==i?"number"===i?_xeUtils.default.toNumber(e):"string"===i?_xeUtils.default.toValueString(e):e:isNaN(e)?e:_xeUtils.default.toNumber(e)}}var Methods={callSlot:function(e,t,r,o){if(e){var i=this.$xegrid;if(i)return i.callSlot(e,t,r,o);if(_xeUtils.default.isFunction(e))return e.call(this,t,r,o)}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,r=this.height,e=e.parentNode,r="auto"===r?(0,_dom.getPaddingTopBottomSize)(e):0;return Math.floor(t?t.getParentHeight():_xeUtils.default.toNumber(getComputedStyle(e).height)-r)},getExcludeHeight:function(){var e=this.$xegrid;return e?e.getExcludeHeight():0},clearAll:function(){return(0,_util.clearTableAllStatus)(this)},syncData:function(){var e=this;return this.$nextTick().then(function(){return e.tableData=[],e.$nextTick().then(function(){return e.loadTableData(e.tableFullData)})})},updateData:function(){return this.handleTableData(!0).then(this.updateFooter).then(this.recalculate)},handleTableData:function(e){var t=this.scrollYLoad,r=this.scrollYStore,e=e?this.updateAfterFullData():this.afterFullData;return this.tableData=t?e.slice(r.startIndex,r.endIndex):e.slice(0),this.$nextTick()},updateScrollYStatus:function(e){var t=this.treeConfig,r=this.treeOpts,o=this.sYOpts,e=(r.transform||!t)&&!!o.enabled&&-1<o.gt&&o.gt<e.length;return this.scrollYLoad=e},loadTableData:function(e){var t=this,r=this.keepSource,o=this.treeConfig,i=this.treeOpts,l=this.editStore,n=this.scrollYStore,s=this.scrollXStore,a=this.lastScrollLeft,u=this.lastScrollTop,c=this.scrollYLoad,h=[],d=e?e.slice(0):[];o&&(i.transform?("development"===process.env.NODE_ENV&&(i.rowField||_tools.UtilTools.error("vxe.error.reqProp",["table.tree-config.rowField"]),i.parentField||_tools.UtilTools.error("vxe.error.reqProp",["table.tree-config.parentField"]),i.children||_tools.UtilTools.error("vxe.error.reqProp",["tree-config.children"]),d.forEach(function(e){e[i.children]&&e[i.children].length&&_tools.UtilTools.warn("vxe.error.errConflicts",["tree-config.transform","row.".concat(i.children)])})),d=(h=_xeUtils.default.toArrayTree(d,{key:i.rowField,parentKey:i.parentField,children:i.children})).slice(0)):h=d.slice(0)),n.startIndex=0,n.endIndex=1,s.startIndex=0,s.endIndex=1,l.insertList=[],l.removeList=[];var f=this.updateScrollYStatus(d);return this.scrollYLoad=f,this.tableFullData=d,this.treeFullData=h,this.cacheRowMap(!0),this.tableSynchData=e,r&&(this.tableSourceData=_xeUtils.default.clone(d,!0)),"development"===process.env.NODE_ENV&&f&&(this.height||this.maxHeight||_tools.UtilTools.error("vxe.error.reqProp",["table.height | table.max-height | table.scroll-y={enabled: false}"]),this.showOverflow||_tools.UtilTools.warn("vxe.error.reqProp",["table.show-overflow"]),this.spanMethod&&_tools.UtilTools.warn("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(){t.updateHeight(),t.updateStyle()}).then(function(){t.computeScrollLoad()}).then(function(){return f&&(n.endIndex=n.visibleSize),t.handleReserveStatus(),t.checkSelectionStatus(),new Promise(function(e){t.$nextTick().then(function(){return t.recalculate()}).then(function(){c===f?(0,_util.restoreScrollLocation)(t,a,u).then(e):setTimeout(function(){return(0,_util.restoreScrollLocation)(t,a,u).then(e)})})})})},loadData:function(e){var t=this,r=this.inited,o=this.initStatus;return this.loadTableData(e).then(function(){return t.inited=!0,t.initStatus=!0,o||t.handleLoadDefaults(),r||t.handleInitDefaults(),t.recalculate()})},reloadData:function(e){var t=this,r=this.inited;return this.clearAll().then(function(){return t.inited=!0,t.initStatus=!0,t.loadTableData(e)}).then(function(){return t.handleLoadDefaults(),r||t.handleInitDefaults(),t.recalculate()})},reloadRow:function(e,t,r){var o,i=this.keepSource,l=this.tableSourceData,n=this.tableData;return i?((i=l[o=this.getRowIndex(e)])&&e&&(r?_xeUtils.default.set(i,r,_xeUtils.default.get(t||e,r)):t?(l[o]=t,_xeUtils.default.clear(e,void 0),Object.assign(e,this.defineField(Object.assign({},t))),this.cacheRowMap(!0)):_xeUtils.default.destructuring(i,_xeUtils.default.clone(e,!0))),this.tableData=n.slice(0)):"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("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)})},handleColumn:function(e){var t=this;this.collectColumn=e;var r=getColumnList(e);return this.tableFullColumn=r,this.cacheColumnMap(),this.restoreCustomStorage(),this.parseColumns().then(function(){t.scrollXLoad&&t.loadScrollXData(!0)}),this.clearMergeCells(),this.clearMergeFooterItems(),this.handleTableData(!0),"development"===process.env.NODE_ENV&&(this.scrollXLoad||this.scrollYLoad)&&this.expandColumn&&_tools.UtilTools.warn("vxe.error.scrollErrProp",["column.type=expand"]),this.$nextTick().then(function(){return t.$toolbar&&t.$toolbar.syncUpdate({collectColumn:e,$table:t}),t.recalculate()})},cacheRowMap:function(s){function e(e,t,r,o,i,l){var n=getRowid(a,e);(0,_utils.eqEmptyValue)(n)&&(n=getRowUniqueId(),_xeUtils.default.set(e,p,n)),x&&e[c.hasChild]&&_xeUtils.default.isUndefined(e[c.children])&&(e[c.children]=null),l={row:e,rowid:n,index:u&&i?-1:t,items:r,parent:i,level:l?l.length-1:0},s&&(f[n]=l,h.set(e,l)),g[n]=l,d.set(e,l)}var a=this,u=this.treeConfig,c=this.treeOpts,t=this.tableFullData,h=this.fullDataRowMap,d=this.fullAllDataRowMap,f=this.fullDataRowIdData,g=this.fullAllDataRowIdData,p=getRowkey(this),x=u&&c.lazy;s&&(f=this.fullDataRowIdData={},h.clear()),g=this.fullAllDataRowIdData={},d.clear(),u?_xeUtils.default.eachTree(t,e,c):t.forEach(e)},loadTreeChildren:function(o,e){var s=this,i=this.keepSource,l=this.tableSourceData,n=this.treeOpts,a=this.fullDataRowIdData,u=this.fullDataRowMap,c=this.fullAllDataRowMap,h=this.fullAllDataRowIdData,d=n.children,t=h[getRowid(this,o)],f=t?t.level:0;return this.createData(e).then(function(e){var t,r;return i&&(t=getRowid(s,o),(r=_xeUtils.default.findTree(l,function(e){return t===getRowid(s,e)},n))&&(r.item[d]=_xeUtils.default.clone(e,!0))),_xeUtils.default.eachTree(e,function(e,t,r,o,i,l){var n=getRowid(s,e),l={row:e,rowid:n,index:-1,items:r,parent:i,level:f+l.length};a[n]=l,u.set(e,l),h[n]=l,c.set(e,l)},n),o[d]=e})},cacheColumnMap:function(){function n(e,t,r,o,i){var l=e.id,n=e.property,s=e.fixed,a=e.type,u=e.treeNode,i={column:e,colid:l,index:t,items:r,parent:i};n&&("development"===process.env.NODE_ENV&&m[n]&&_tools.UtilTools.warn("vxe.error.colRepet",["field",n]),m[n]=i),!g&&s&&(g=s),u?("development"===process.env.NODE_ENV&&h&&_tools.UtilTools.warn("vxe.error.colRepet",["tree-node",u]),h=h||e):"expand"===a&&("development"===process.env.NODE_ENV&&c&&_tools.UtilTools.warn("vxe.error.colRepet",["type",a]),c=c||e),"development"===process.env.NODE_ENV&&("checkbox"===a?(d&&_tools.UtilTools.warn("vxe.error.colRepet",["type",a]),d=d||e):"radio"===a&&(f&&_tools.UtilTools.warn("vxe.error.colRepet",["type",a]),f=f||e)),"development"===process.env.NODE_ENV&&(p.showOverflow&&!1===e.showOverflow&&_tools.UtilTools.warn("vxe.error.errConflicts",["table.show-overflow=".concat(p.showOverflow),"column.show-overflow=".concat(e.showOverflow)]),p.showHeaderOverflow&&!1===e.showHeaderOverflow&&_tools.UtilTools.warn("vxe.error.errConflicts",["table.show-header-overflow=".concat(p.showHeaderOverflow),"column.show-header-overflow=".concat(e.showHeaderOverflow)]),p.showFooterOverflow&&!1===e.showFooterOverflow&&_tools.UtilTools.warn("vxe.error.errConflicts",["table.show-footer-overflow=".concat(p.showFooterOverflow),"column.show-footer-overflow=".concat(e.showFooterOverflow)])),w&&!1===e.showOverflow&&(w=!1),v[l]&&_tools.UtilTools.error("vxe.error.colRepet",["colId",l]),v[l]=i,x.set(e,i)}var c,h,d,f,g,p=this,e=this.tableFullColumn,t=this.collectColumn,x=this.fullColumnMap,r=this.showOverflow,v=this.fullColumnIdData={},m=this.fullColumnFieldData={},o=t.some(hasChildrenList),w=!!r;x.clear(),o?_xeUtils.default.eachTree(t,function(e,t,r,o,i,l){e.level=l.length,n(e,t,r,0,i)}):e.forEach(n),"development"===process.env.NODE_ENV&&c&&this.mouseOpts.area&&_tools.UtilTools.error("vxe.error.errConflicts",["mouse-config.area","column.type=expand"]),this.isGroup=o,this.treeNodeColumn=h,this.expandColumn=c,this.isAllOverflow=w},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},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&&_tools.UtilTools.warn("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&&_tools.UtilTools.warn("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&&_tools.UtilTools.warn("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&&_tools.UtilTools.warn("vxe.error.delFunc",["$getColumnIndex","getVMColumnIndex"]),this.getVMColumnIndex(e)},isSeqColumn:function(e){return e&&"seq"===e.type},defineField:function(i){var e=this.radioOpts,t=this.checkboxOpts,r=this.treeConfig,o=this.treeOpts,l=this.expandOpts,n=getRowkey(this);return this.tableFullColumn.forEach(function(e){var t,r=e.property,o=e.editRender;r&&!_xeUtils.default.has(i,r)&&(t=null,o&&(o=o.defaultValue,_xeUtils.default.isFunction(o)?t=o({column:e}):_xeUtils.default.isUndefined(o)||(t=o)),_xeUtils.default.set(i,r,t))}),[e.labelField,t.checkField,t.labelField,l.labelField].forEach(function(e){e&&(0,_utils.eqEmptyValue)(_xeUtils.default.get(i,e))&&_xeUtils.default.set(i,e,null)}),r&&o.lazy&&_xeUtils.default.isUndefined(i[o.children])&&(i[o.children]=null),(0,_utils.eqEmptyValue)(_xeUtils.default.get(i,n))&&_xeUtils.default.set(i,n,getRowUniqueId()),i},createData:function(e){function t(e){return r.defineField(Object.assign({},e))}var r=this,o=this.treeConfig,i=this.treeOpts,l=o?_xeUtils.default.mapTree(e,t,i):e.map(t);return this.$nextTick().then(function(){return l})},createRow:function(e){var t=this,r=_xeUtils.default.isArray(e);return r||(e=[e]),this.$nextTick().then(function(){return t.createData(e).then(function(e){return r?e:e[0]})})},revertData:function(e,r){var o=this,t=this.keepSource,i=this.tableSourceData,l=this.treeConfig;if(!t)return"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("vxe.error.reqProp",["keep-source"]),this.$nextTick();t=e;return e?_xeUtils.default.isArray(e)||(t=[e]):t=_xeUtils.default.toArray(this.getUpdateRecords()),t.length&&t.forEach(function(e){if(!o.isInsertByRow(e)){var t=o.getRowIndex(e);if(l&&-1===t)throw new Error(_tools.UtilTools.getLog("vxe.error.noTree",["revertData"]));t=i[t];t&&e&&(r?_xeUtils.default.set(e,r,_xeUtils.default.clone(_xeUtils.default.get(t,r),!0)):_xeUtils.default.destructuring(e,_xeUtils.default.clone(t,!0)))}}),e?this.$nextTick():this.reloadData(i)},clearData:function(e,t){var r=this.tableFullData,o=this.visibleColumn;return arguments.length?e&&!_xeUtils.default.isArray(e)&&(e=[e]):e=r,t?e.forEach(function(e){return _xeUtils.default.set(e,t,null)}):e.forEach(function(t){o.forEach(function(e){e.property&&setCellValue(t,e,null)})}),this.$nextTick()},isInsertByRow:function(e){return-1<this.editStore.insertList.indexOf(e)},removeInsertRow:function(){return this.remove(this.editStore.insertList)},isUpdateByRow:function(e,t){var r=this,o=this.visibleColumn,i=this.keepSource,l=this.treeConfig,n=this.treeOpts,s=this.tableSourceData,a=this.fullDataRowIdData;if(i){var u,c,h=getRowid(this,e);if(!a[h])return!1;if(l?(l=n.children,n=_xeUtils.default.findTree(s,function(e){return h===getRowid(r,e)},n),e=Object.assign({},e,_defineProperty({},l,null)),n&&(c=Object.assign({},n.item,_defineProperty({},l,null)))):c=s[a[h].index],c){if(1<arguments.length)return!eqCellValue(c,e,t);for(var d=0,f=o.length;d<f;d++)if((u=o[d].property)&&!eqCellValue(c,e,u))return!0}}return!1},getColumns:function(e){var t=this.visibleColumn;return _xeUtils.default.isUndefined(e)?t.slice(0):t[e]},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},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(e){var t,r=this.tableFullData,o=this.afterFullData,i=this.treeConfig,l=this.treeOpts,n=this.checkboxOpts.checkField,o=e?r:o;return n?i?_xeUtils.default.filterTree(o,function(e){return _xeUtils.default.get(e,n)},l):o.filter(function(e){return _xeUtils.default.get(e,n)}):(t=this.selection,i?_xeUtils.default.filterTree(o,function(e){return-1<t.indexOf(e)},l):o.filter(function(e){return-1<t.indexOf(e)}))},updateAfterFullData:function(){var u=this,e=this.tableFullColumn,t=this.tableFullData,r=this.filterOpts,o=this.sortOpts,c=r.remote,h=r.filterMethod,n=o.remote,r=o.sortMethod,o=o.multiple,t=t.slice(0),s=[],a=[];e.forEach(function(e){var t,r,o=e.sortable,i=e.order,l=e.filters;!c&&l&&l.length&&(t=[],r=[],l.forEach(function(e){e.checked&&(r.push(e),t.push(e.value))}),r.length&&s.push({column:e,valueList:t,itemList:r})),!n&&o&&i&&a.push({column:e,property:e.property,order:i})}),s.length&&(t=t.filter(function(a){return s.every(function(e){var t=e.column,r=e.valueList,o=e.itemList;if(!r.length||c)return!0;var i=t.filterMethod,e=t.filterRender,e=e?_vXETable.default.renderer.get(e.name):null,l=e&&e.renderFilter?e.filterMethod:null,n=e?e.defaultFilterMethod:null,s=_tools.UtilTools.getCellValue(a,t);return i?o.some(function(e){return i({value:e.value,option:e,cellValue:s,row:a,column:t,$table:u})}):l?o.some(function(e){return l({value:e.value,option:e,cellValue:s,row:a,column:t,$table:u})}):h?h({options:o,values:r,cellValue:s,row:a,column:t}):n?o.some(function(e){return n({value:e.value,option:e,cellValue:s,row:a,column:t,$table:u})}):-1<r.indexOf(_xeUtils.default.get(a,t.property))})}));var i,l=a[0];return!n&&l&&(t=r?(r=r({data:t,column:l.column,property:l.property,order:l.order,sortList:a,$table:this}),_xeUtils.default.isArray(r)?r:t):o?_xeUtils.default.orderBy(t,a.map(function(e){var t=e.column,e=e.order;return[getOrderField(u,t),e]})):(_xeUtils.default.isArray(l.sortBy)&&(i=l.sortBy.map(function(e){return[e,l.order]})),_xeUtils.default.orderBy(t,i||[l].map(function(e){var t=e.column,e=e.order;return[getOrderField(u,t),e]})))),this.afterFullData=t},getRowById:function(e){var t=this.fullDataRowIdData;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.tableFullData,t=this.afterFullData,r=this.tableData,o=this.footerTableData;return{fullData:e.slice(0),visibleData:t.slice(0),tableData:r.slice(0),footerData:o.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()},hideColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&(e.visible=!1),this.handleCustom()},showColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&(e.visible=!0),this.handleCustom()},resetColumn:function(e){var t=this.customOpts.checkMethod,r=Object.assign({visible:!0,resizable:!0===e},e);return this.tableFullColumn.forEach(function(e){r.resizable&&(e.resizeWidth=0),t&&!t({column:e})||(e.visible=e.defaultVisible)}),r.resizable&&this.saveCustomResizable(!0),this.handleCustom()},handleCustom:function(){return this.saveCustomVisible(),this.analyColumnWidth(),this.refreshColumn()},restoreCustomStorage:function(){var r,o,e=this.id,t=this.collectColumn,i=this.customConfig,l=this.customOpts,n=l.storage,s=!0===l.storage,l=s||n&&n.resizable,n=s||n&&n.visible;i&&(l||n)&&(r={},e?(!l||(l=getCustomStorageMap(resizableStorageKey)[e])&&_xeUtils.default.each(l,function(e,t){r[t]={field:t,resizeWidth:e}}),!n||(n=getCustomStorageMap(visibleStorageKey)[e])&&(n=(e=n.split("|"))[0]?e[0].split(","):[],e=e[1]?e[1].split(","):[],n.forEach(function(e){r[e]?r[e].visible=!1:r[e]={field:e,visible:!1}}),e.forEach(function(e){r[e]?r[e].visible=!0:r[e]={field:e,visible:!0}})),o={},_xeUtils.default.eachTree(t,function(e){var t=e.getKey();t&&(o[t]=e)}),_xeUtils.default.each(r,function(e,t){var r=e.visible,e=e.resizeWidth,t=o[t];t&&(_xeUtils.default.isNumber(e)&&(t.resizeWidth=e),_xeUtils.default.isBoolean(r)&&(t.visible=r))})):_tools.UtilTools.error("vxe.error.reqProp",["id"]))},saveCustomVisible:function(){var r,o,e=this.id,t=this.collectColumn,i=this.customConfig,l=this.customOpts,n=l.checkMethod,s=l.storage,s=!0===l.storage||s&&s.visible;i&&s&&(s=getCustomStorageMap(visibleStorageKey),r=[],o=[],e?(_xeUtils.default.eachTree(t,function(e){var t;n&&!n({column:e})||(!e.visible&&e.defaultVisible?(t=e.getKey())&&r.push(t):!e.visible||e.defaultVisible||(e=e.getKey())&&o.push(e))}),s[e]=[r.join(",")].concat(o.length?[o.join(",")]:[]).join("|")||void 0,localStorage.setItem(visibleStorageKey,_xeUtils.default.toJSONString(s))):_tools.UtilTools.error("vxe.error.reqProp",["id"]))},saveCustomResizable:function(e){var r,t=this.id,o=this.collectColumn,i=this.customConfig,l=this.customOpts,n=l.storage,n=!0===l.storage||n&&n.resizable;i&&n&&(n=getCustomStorageMap(resizableStorageKey),t?(e||(r=_xeUtils.default.isPlainObject(n[t])?n[t]:{},_xeUtils.default.eachTree(o,function(e){var t;!e.resizeWidth||(t=e.getKey())&&(r[t]=e.renderWidth)})),n[t]=_xeUtils.default.isEmpty(r)?void 0:r,localStorage.setItem(resizableStorageKey,_xeUtils.default.toJSONString(n))):_tools.UtilTools.error("vxe.error.reqProp",["id"]))},refreshColumn:function(){var e=this;return this.parseColumns().then(function(){return e.refreshScroll()}).then(function(){return e.recalculate()})},parseColumns:function(){var t,r,o,e=this,n=[],s=[],a=[],i=this.collectColumn,l=this.tableFullColumn,u=this.isGroup,c=this.columnStore,h=this.sXOpts,d=this.scrollXStore;u?(t=[],r=[],o=[],_xeUtils.default.eachTree(i,function(e,t,r,o,i){var l=hasChildrenList(e);i&&i.fixed&&(e.fixed=i.fixed),i&&e.fixed!==i.fixed&&_tools.UtilTools.error("vxe.error.groupFixed"),l?e.visible=!!_xeUtils.default.findTree(e.children,function(e){return hasChildrenList(e)?null:e.visible}):e.visible&&("left"===e.fixed?n:"right"===e.fixed?a:s).push(e)}),i.forEach(function(e){e.visible&&("left"===e.fixed?t:"right"===e.fixed?o:r).push(e)}),this.tableGroupColumn=t.concat(r).concat(o)):l.forEach(function(e){e.visible&&("left"===e.fixed?n:"right"===e.fixed?a:s).push(e)});var f=n.concat(s).concat(a),l=h.enabled&&-1<h.gt&&h.gt<l.length;return this.hasFixedColumn=0<n.length||0<a.length,Object.assign(c,{leftList:n,centerList:s,rightList:a}),l&&u&&(l=!1,"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("vxe.error.scrollXNotGroup")),l&&("development"===process.env.NODE_ENV&&(this.showHeader&&!this.showHeaderOverflow&&_tools.UtilTools.warn("vxe.error.reqProp",["show-header-overflow"]),this.showFooter&&!this.showFooterOverflow&&_tools.UtilTools.warn("vxe.error.reqProp",["show-footer-overflow"]),this.spanMethod&&_tools.UtilTools.warn("vxe.error.scrollErrProp",["span-method"]),this.footerSpanMethod&&_tools.UtilTools.warn("vxe.error.scrollErrProp",["footer-span-method"])),u=computeVirtualX(this).visibleSize,d.startIndex=0,d.endIndex=u,d.visibleSize=u),f.length===this.visibleColumn.length&&this.visibleColumn.every(function(e,t){return e===f[t]})||(this.clearMergeCells(),this.clearMergeFooterItems()),this.scrollXLoad=l,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,r=e.minWidth,o=[],i=[],l=[],n=[],s=[],a=[];this.tableFullColumn.forEach(function(e){t&&!e.width&&(e.width=t),r&&!e.minWidth&&(e.minWidth=r),e.visible&&(e.resizeWidth?o:_tools.DomTools.isPx(e.width)?i:_tools.DomTools.isScale(e.width)?n:_tools.DomTools.isPx(e.minWidth)?l:_tools.DomTools.isScale(e.minWidth)?s:a).push(e)}),Object.assign(this.columnStore,{resizeList:o,pxList:i,pxMinList:l,scaleList:n,scaleMinList:s,autoList:a})},refreshScroll:function(){var e=this.lastScrollLeft,t=this.lastScrollTop,r=this.$refs,o=r.tableBody,i=r.leftBody,l=r.rightBody,r=r.tableFooter,o=o?o.$el:null,i=i?i.$el:null,l=l?l.$el:null,r=r?r.$el:null;if(e||t)return(0,_util.restoreScrollLocation)(this,e,t);(0,_dom.setScrollTop)(o,t),(0,_dom.setScrollTop)(i,t),(0,_dom.setScrollTop)(l,t),(0,_dom.setScrollLeft)(r,e)},recalculate:function(e){var t=this,r=this.$refs,o=r.tableBody,i=r.tableHeader,r=r.tableFooter,l=o?o.$el:null,n=i?i.$el:null,s=r?r.$el:null;return l&&(this.autoCellWidth(n,l,s),!0===e)?this.computeScrollLoad().then(function(){return t.autoCellWidth(n,l,s),t.computeScrollLoad()}):this.computeScrollLoad()},autoCellWidth:function(e,t,r){var o=0,i=t.clientWidth-1,l=i,n=l/100,s=this.fit,a=this.columnStore,u=a.resizeList,c=a.pxMinList,h=a.pxList,d=a.scaleList,f=a.scaleMinList,a=a.autoList;if(c.forEach(function(e){var t=parseInt(e.minWidth);o+=t,e.renderWidth=t}),f.forEach(function(e){var t=Math.floor(parseInt(e.minWidth)*n);o+=t,e.renderWidth=t}),d.forEach(function(e){var t=Math.floor(parseInt(e.width)*n);o+=t,e.renderWidth=t}),h.forEach(function(e){var t=parseInt(e.width);o+=t,e.renderWidth=t}),u.forEach(function(e){var t=parseInt(e.resizeWidth);o+=t,e.renderWidth=t}),n=0<(l-=o)?Math.floor(l/(f.length+c.length+a.length)):0,s?0<l&&f.concat(c).forEach(function(e){o+=n,e.renderWidth+=n}):n=40,a.forEach(function(e){var t=Math.max(n,40);e.renderWidth=t,o+=t}),s){var g=d.concat(f).concat(c).concat(a),p=g.length-1;if(0<p){var x=i-o;if(0<x){for(;0<x&&0<=p;)x--,g[p--].renderWidth++;o=i}}}c=t.offsetHeight,a=t.scrollHeight>t.clientHeight;this.scrollbarWidth=a?t.offsetWidth-t.clientWidth:0,this.overflowY=a,this.tableWidth=o,this.tableHeight=c,e?(this.headerHeight=e.clientHeight,this.$nextTick(function(){e&&t&&e.scrollLeft!==t.scrollLeft&&(e.scrollLeft=t.scrollLeft)})):this.headerHeight=0,r?(a=r.offsetHeight,this.scrollbarHeight=Math.max(a-r.clientHeight,0),this.overflowX=o>r.clientWidth,this.footerHeight=a):(this.footerHeight=0,this.scrollbarHeight=Math.max(c-t.clientHeight,0),this.overflowX=i<o),this.updateHeight(),this.parentHeight=Math.max(this.headerHeight+this.footerHeight+20,this.getParentHeight()),this.overflowX&&this.checkScrolling()},updateHeight:function(){this.customHeight=calcHeight(this,"height"),this.customMaxHeight=calcHeight(this,"maxHeight")},updateStyle:function(){var h=this,t=this.$refs,d=this.isGroup,f=this.fullColumnIdData,g=this.tableColumn,p=this.customHeight,x=this.customMaxHeight,v=this.border,m=this.headerHeight,w=this.showFooter,b=this.showOverflow,C=this.showHeaderOverflow,T=this.showFooterOverflow,_=this.footerHeight,R=this.tableHeight,E=this.tableWidth,y=this.scrollbarHeight,S=this.scrollbarWidth,O=this.scrollXLoad,U=this.scrollYLoad,k=this.cellOffsetWidth,D=this.columnStore,I=this.elemStore,e=this.editStore,r=this.currentRow,o=this.mouseConfig,M=this.keyboardConfig,$=this.keyboardOpts,A=this.spanMethod,F=this.mergeList,L=this.mergeFooterList,N=this.footerSpanMethod,V=this.isAllOverflow,H=this.visibleColumn,i=t.emptyPlaceholder,l=I["main-body-wrapper"];return i&&(i.style.top="".concat(m,"px"),i.style.height=l?"".concat(l.offsetHeight-y,"px"):""),0<p&&w&&(p+=y),["main","left","right"].forEach(function(a,e){var s=0<e?a:"",u=D["".concat(s,"List")],c=t["".concat(s,"Container")];["header","body","footer"].forEach(function(i){var e,t,r,o=I["".concat(a,"-").concat(i,"-wrapper")],l=I["".concat(a,"-").concat(i,"-table")];"header"===i?(t=E,e=!1,d||s&&(O||C)&&(e=!0),e&&(g=u),(e||O)&&(t=g.reduce(function(e,t){return e+t.renderWidth},0)),l&&(l.style.width=t?"".concat(t+S,"px"):"",_dom.browse.msie&&_xeUtils.default.arrayEach(l.querySelectorAll(".vxe-resizable"),function(e){e.style.height="".concat(e.parentNode.offsetHeight,"px")})),(e=I["".concat(a,"-").concat(i,"-repair")])&&(e.style.width="".concat(E,"px")),t=I["".concat(a,"-").concat(i,"-list")],d&&t&&_xeUtils.default.arrayEach(t.querySelectorAll(".col--group"),function(e){var t,r,o,i=h.getColumnNode(e);i&&(i=(t=i.item).showHeaderOverflow,i=_xeUtils.default.isBoolean(i)?i:C,o=r=0,(i="title"===i||(!0===i||"tooltip"===i)||"ellipsis"===i)&&_xeUtils.default.eachTree(t.children,function(e){e.children&&t.children.length||o++,r+=e.renderWidth}),e.style.width=i?"".concat(r-o-(v?2:0),"px"):"")})):"body"===i?(e=I["".concat(a,"-").concat(i,"-emptyBlock")],o&&(x?o.style.maxHeight="".concat(s?x-m-(w?0:y):x-m,"px"):o.style.height=0<p?"".concat(s?(0<p?p-m-_:R)-(w?0:y):p-m-_,"px"):""),c&&(r="right"===s,t=D["".concat(s,"List")],o&&(o.style.top="".concat(m,"px")),c.style.height="".concat((0<p?p-m-_:R)+m+_-y*(w?2:1),"px"),c.style.width="".concat(t.reduce(function(e,t){return e+t.renderWidth},r?S:0),"px")),r=E,r=(g=s?!(O||U||b&&V)||F.length||A||M&&$.isMerge?H:u:g).reduce(function(e,t){return e+t.renderWidth},0),l&&(l.style.width=r?"".concat(r,"px"):"",l.style.paddingRight=S&&s&&(_dom.browse["-moz"]||_dom.browse.safari)?"".concat(S,"px"):""),e&&(e.style.width=r?"".concat(r,"px"):"")):"footer"===i&&(n=E,n=(g=s?!O&&!T||L.length&&N?H:u:g).reduce(function(e,t){return e+t.renderWidth},0),o&&(c&&(o.style.top="".concat(0<p?p-_:R+m,"px")),o.style.marginTop="".concat(-y,"px")),l&&(l.style.width=n?"".concat(n+S,"px"):""));var n=I["".concat(a,"-").concat(i,"-colgroup")];n&&_xeUtils.default.arrayEach(n.children,function(e){var n,t,r,s,o=e.getAttribute("name");"col_gutter"===o&&(e.style.width="".concat(S,"px")),f[o]&&(t=(n=f[o].column).showHeaderOverflow,r=n.showFooterOverflow,o=n.showOverflow,e.style.width="".concat(n.renderWidth,"px"),s="title"===(o="header"===i?_xeUtils.default.isUndefined(t)||_xeUtils.default.isNull(t)?C:t:"footer"===i?_xeUtils.default.isUndefined(r)||_xeUtils.default.isNull(r)?T:r:_xeUtils.default.isUndefined(o)||_xeUtils.default.isNull(o)?b:o)||(!0===o||"tooltip"===o)||"ellipsis"===o,o=I["".concat(a,"-").concat(i,"-list")],"header"===i||"footer"===i?O&&!s&&(s=!0):!O&&!U||s||(s=!0),o&&_xeUtils.default.arrayEach(o.querySelectorAll(".".concat(n.id)),function(e){var t=parseInt(e.getAttribute("colspan")||1),e=e.querySelector(".vxe-cell"),r=n.renderWidth;if(e){if(1<t)for(var o=h.getColumnIndex(n),i=1;i<t;i++){var l=h.getColumns(o+i);l&&(r+=l.renderWidth)}e.style.width=s?"".concat(r-k*t,"px"):""}}))})})}),r&&this.setCurrentRow(r),o&&o.selected&&e.selected.row&&e.selected.column&&this.addColSdCls(),this.$nextTick()},checkScrolling:function(){var e=this.$refs,t=e.tableBody,r=e.leftContainer,e=e.rightContainer,t=t?t.$el:null;t&&(r&&_tools.DomTools[0<t.scrollLeft?"addClass":"removeClass"](r,"scrolling--middle"),e&&_tools.DomTools[t.clientWidth<t.scrollWidth-Math.ceil(t.scrollLeft)?"addClass":"removeClass"](e,"scrolling--middle"))},preventEvent:function(t,e,r,o,i){var l,n=this;return _vXETable.default.interceptor.get(e).some(function(e){return!1===e(Object.assign({$grid:n.$xegrid,$table:n,$event:t},r))})||o&&(l=o()),i&&i(),l},handleGlobalMousedownEvent:function(r){var o=this,i=this.$el,e=this.$refs,t=this.$xegrid,l=this.$toolbar,n=this.mouseConfig,s=this.editStore,a=this.ctxMenuStore,u=this.editOpts,c=this.filterStore,h=this.getRowNode,d=s.actived,f=e.ctxWrapper,s=e.filterWrapper,e=e.validTip;s&&(getEventTargetNode(r,i,"vxe-cell--filter").flag||getEventTargetNode(r,s.$el).flag||getEventTargetNode(r,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(r,"event.clearFilter",c.args,this.closeFilter)),d.row?!1!==u.autoClear&&((c=d.args.cell)&&getEventTargetNode(r,c).flag||e&&getEventTargetNode(r,e.$el).flag||(!this.lastCallTime||this.lastCallTime+50<Date.now())&&(getEventTargetNode(r,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(r,"event.clearActived",d.args,function(){var e,t;(e=(e=(e="row"===u.mode?!!(t=getEventTargetNode(r,i,"vxe-body--row")).flag&&h(t.targetElem).item!==d.args.row:!getEventTargetNode(r,i,"col--edit").flag)||getEventTargetNode(r,i,"vxe-header--row").flag)||getEventTargetNode(r,i,"vxe-footer--row").flag)||!o.height||o.overflowY||(t=r.target,hasClass(t,"vxe-table--body-wrapper")&&(e=r.offsetY<t.clientHeight)),!e&&getEventTargetNode(r,i).flag||setTimeout(function(){return o.clearActived(r)})}))):n&&(getEventTargetNode(r,i).flag||t&&getEventTargetNode(r,t.$el).flag||f&&getEventTargetNode(r,f.$el).flag||l&&getEventTargetNode(r,l.$el).flag||(this.clearSelected(),getEventTargetNode(r,document.body,"vxe-table--ignore-areas-clear").flag||this.preventEvent(r,"event.clearAreas",{},function(){o.clearCellAreas(),o.clearCopyCellArea()}))),a.visible&&f&&!getEventTargetNode(r,f.$el).flag&&this.closeMenu(),this.isActivated=getEventTargetNode(r,(t||this).$el).flag},handleGlobalBlurEvent:function(){this.closeFilter(),this.closeMenu()},handleGlobalMousewheelEvent:function(){this.closeTooltip(),this.closeMenu()},keydownEvent:function(t){var r=this,o=this.filterStore,i=this.ctxMenuStore,e=this.editStore,l=this.keyboardConfig,n=this.mouseConfig,s=this.mouseOpts,a=e.actived;27===t.keyCode&&this.preventEvent(t,"event.keydown",null,function(){var e;l&&n&&s.area&&r.handleKeyboardEvent?r.handleKeyboardEvent(t):(a.row||o.visible||i.visible)&&(t.stopPropagation(),r.closeFilter(),r.closeMenu(),a.row&&(e=a.args,r.clearActived(t),n&&s.selected&&r.$nextTick(function(){return r.handleSelected(e,t)}))),r.emitEvent("keydown",{},t)})},handleGlobalKeydownEvent:function(V){var H=this;this.isActivated&&this.preventEvent(V,"event.keydown",null,function(){var e,t,r,o,i=H.filterStore,l=H.isCtxMenu,n=H.ctxMenuStore,s=H.editStore,a=H.editOpts,u=H.editConfig,c=H.mouseConfig,h=H.mouseOpts,d=H.keyboardConfig,f=H.keyboardOpts,g=H.treeConfig,p=H.treeOpts,x=H.highlightCurrentRow,v=H.currentRow,m=H.bodyCtxMenu,w=s.selected,b=s.actived,C=V.keyCode,T=8===C,_=9===C,R=13===C,E=27===C,y=32===C,S=37===C,O=38===C,U=39===C,k=40===C,D=46===C,I=113===C,M=93===C,$=V.metaKey,A=V.ctrlKey,F=V.shiftKey,L=V.altKey,N=S||O||U||k,s=l&&n.visible&&(R||y||N),l=(0,_utils.isEnableConf)(u)&&b.column&&b.row;i.visible?E&&H.closeFilter():(s?(V.preventDefault(),n.showChild&&hasChildrenList(n.selected)?H.moveCtxMenu(V,C,n,"selectChild",37,!1,n.selected.children):H.moveCtxMenu(V,C,n,"selected",39,!0,H.ctxMenuList)):d&&c&&h.area&&H.handleKeyboardEvent?H.handleKeyboardEvent(V):d&&y&&f.isChecked&&w.row&&w.column&&("checkbox"===w.column.type||"radio"===w.column.type)?(V.preventDefault(),"checkbox"===w.column.type?H.handleToggleCheckRowEvent(V,w.args):H.triggerRadioRowEvent(V,w.args)):I&&(0,_utils.isEnableConf)(u)?l||w.row&&w.column&&(V.stopPropagation(),V.preventDefault(),H.handleActived(w.args,V)):M?(H._keyCtx=w.row&&w.column&&m.length,clearTimeout(H.keyCtxTimeout),H.keyCtxTimeout=setTimeout(function(){H._keyCtx=!1},1e3)):R&&!L&&d&&f.isEnter&&(w.row||b.row||g&&x&&v)?A?b.row&&(r=b.args,H.clearActived(V),c&&h.selected&&H.$nextTick(function(){return H.handleSelected(r,V)})):w.row||b.row?(e=(w.row?w:b).args,F?f.enterToTab?H.moveTabSelected(e,F,V):H.moveSelected(e,S,!0,U,!1,V):f.enterToTab?H.moveTabSelected(e,F,V):H.moveSelected(e,S,!1,U,!0,V)):g&&x&&v&&((e=v[p.children])&&e.length&&(V.preventDefault(),t=e[0],r={$table:H,row:t},H.setTreeExpand(v,!0).then(function(){return H.scrollToRow(t)}).then(function(){return H.triggerCurrentRowEvent(V,r)}))):N&&d&&f.isArrow?l||(w.row&&w.column?H.moveSelected(w.args,S,O,U,k,V):(O||k)&&x&&H.moveCurrentRow(O,k,V)):_&&d&&f.isTab?w.row||w.column?H.moveTabSelected(w.args,F,V):(b.row||b.column)&&H.moveTabSelected(b.args,F,V):d&&(D||(g&&x&&v?T&&f.isArrow:T))?l||(F=f.delMethod,l=f.backMethod,f.isDel&&(w.row||w.column)?(F?F({row:w.row,rowIndex:H.getRowIndex(w.row),column:w.column,columnIndex:H.getColumnIndex(w.column),$table:H}):setCellValue(w.row,w.column,null),T?l?l({row:w.row,rowIndex:H.getRowIndex(w.row),column:w.column,columnIndex:H.getColumnIndex(w.column),$table:H}):H.handleActived(w.args,V):D&&H.updateFooter()):T&&f.isArrow&&g&&x&&v&&((o=_xeUtils.default.findTree(H.afterFullData,function(e){return e===v},p).parent)&&(V.preventDefault(),r={$table:H,row:o},H.setTreeExpand(o,!1).then(function(){return H.scrollToRow(o)}).then(function(){return H.triggerCurrentRowEvent(V,r)})))):d&&f.isEdit&&!A&&!$&&(y||48<=C&&C<=57||65<=C&&C<=90||96<=C&&C<=111||186<=C&&C<=192||219<=C&&C<=222)&&(f=f.editMethod,w.column&&w.row&&(0,_utils.isEnableConf)(w.column.editRender)&&(a.activeMethod&&!a.activeMethod(w.args)||(f?f({row:w.row,rowIndex:H.getRowIndex(w.row),column:w.column,columnIndex:H.getColumnIndex(w.column),$table:H}):(setCellValue(w.row,w.column,null),H.handleActived(w.args,V))))),H.emitEvent("keydown",{},V))})},handleGlobalPasteEvent:function(e){var t=this.isActivated,r=this.keyboardConfig,o=this.keyboardOpts,i=this.mouseConfig,l=this.mouseOpts,n=this.editStore,s=this.filterStore,n=n.actived;t&&!s.visible&&(n.row||n.column||r&&o.isClip&&i&&l.area&&this.handlePasteCellAreaEvent&&this.handlePasteCellAreaEvent(e),this.emitEvent("paste",{},e))},handleGlobalCopyEvent:function(e){var t=this.isActivated,r=this.keyboardConfig,o=this.keyboardOpts,i=this.mouseConfig,l=this.mouseOpts,n=this.editStore,s=this.filterStore,n=n.actived;t&&!s.visible&&(n.row||n.column||r&&o.isClip&&i&&l.area&&this.handleCopyCellAreaEvent&&this.handleCopyCellAreaEvent(e),this.emitEvent("copy",{},e))},handleGlobalCutEvent:function(e){var t=this.isActivated,r=this.keyboardConfig,o=this.keyboardOpts,i=this.mouseConfig,l=this.mouseOpts,n=this.editStore,s=this.filterStore,n=n.actived;t&&!s.visible&&(n.row||n.column||r&&o.isClip&&i&&l.area&&this.handleCutCellAreaEvent&&this.handleCutCellAreaEvent(e),this.emitEvent("cut",{},e))},handleGlobalResizeEvent:function(){this.closeMenu(),this.updateCellAreas(),this.recalculate(!0)},handleTooltipLeaveMethod:function(){var e=this,t=this.tooltipOpts;return setTimeout(function(){e.tooltipActive||e.closeTooltip()},t.leaveDelay),!1},handleTargetEnterEvent:function(){clearTimeout(this.tooltipTimeout),this.tooltipActive=!0,this.closeTooltip()},handleTargetLeaveEvent:function(){var t=this,e=this.tooltipOpts;this.tooltipActive=!1,e.enterable?this.tooltipTimeout=setTimeout(function(){var e=t.$refs.tooltip;e&&!e.isHover&&t.closeTooltip()},e.leaveDelay):this.closeTooltip()},triggerHeaderHelpEvent:function(e,t){var r,o=t.column.titleHelp;(o.content||o.message)&&(r=this.$refs,t=this.tooltipStore,r=r.tooltip,o=_tools.UtilTools.getFuncText(o.content||o.message),this.handleTargetEnterEvent(),t.visible=!0,r&&r.open(e.currentTarget,o))},triggerHeaderTooltipEvent:function(e,t){var r=this.tooltipStore,o=t.column,i=e.currentTarget;this.handleTargetEnterEvent(),r.column===o&&r.visible||this.handleTooltip(e,i,i,null,t)},triggerBodyTooltipEvent:function(e,t){var r,o,i=this.editConfig,l=this.editOpts,n=this.editStore,s=this.tooltipStore,a=n.actived,u=t.row,c=t.column,n=e.currentTarget;this.handleTargetEnterEvent(),(0,_utils.isEnableConf)(i)&&("row"===l.mode&&a.row===u||a.row===u&&a.column===c)||s.column===c&&s.row===u&&s.visible||(c.treeNode?(r=n.querySelector(".vxe-tree-cell"),"html"===c.type&&(o=n.querySelector(".vxe-cell--html"))):o=n.querySelector("html"===c.type?".vxe-cell--html":".vxe-cell--label"),this.handleTooltip(e,n,r||n.children[0],o,t))},triggerFooterTooltipEvent:function(e,t){var r=t.column,o=this.tooltipStore,i=e.currentTarget;this.handleTargetEnterEvent(),o.column===r&&o.visible||this.handleTooltip(e,i,i.querySelector(".vxe-cell--item")||i.children[0],null,t)},handleTooltip:function(e,t,r,o,i){i.cell=t;var l=this.$refs,n=this.tooltipOpts,s=this.tooltipStore,a=i.column,u=i.row,c=n.showAll,h=n.enabled,t=n.contentMethod,n=l.tooltip,l=t?t(i):null,i=t&&!_xeUtils.default.eqNull(l),t=i?l:("html"===a.type?r.innerText:r.textContent).trim(),l=r.scrollWidth>r.clientWidth;return t&&(c||h||i||l)&&(Object.assign(s,{row:u,column:a,visible:!0}),n&&n.open(!l&&o||r,_tools.UtilTools.formatText(t))),this.$nextTick()},openTooltip:function(e,t){var r=this.$refs.commTip;return r?r.open(e,t):this.$nextTick()},closeTooltip:function(){var e=this.$refs,t=this.tooltipStore,r=e.tooltip,e=e.commTip;return t.visible&&(Object.assign(t,{row:null,column:null,content:null,visible:!1}),r&&r.close()),e&&e.close(),this.$nextTick()},isAllCheckboxChecked:function(){return this.isAllSelected},isAllCheckboxIndeterminate:function(){return!this.isAllSelected&&this.isIndeterminate},isCheckboxIndeterminate:function(){return _tools.UtilTools.warn("vxe.error.delFunc",["isCheckboxIndeterminate","isAllCheckboxIndeterminate"]),this.isAllCheckboxIndeterminate()},getCheckboxIndeterminateRecords:function(e){var t=this.treeConfig,r=this.treeIndeterminates,o=this.afterFullData;return t?e?r.slice(0):r.filter(function(e){return o.indexOf(e)}):[]},handleDefaultSelectionChecked:function(){var t,r=this.fullDataRowIdData,e=this.checkboxOpts,o=e.checkAll,e=e.checkRowKeys;o?this.setAllCheckboxRow(!0):e&&(t=[],e.forEach(function(e){r[e]&&t.push(r[e].row)}),this.setCheckboxRow(t,!0))},setCheckboxRow:function(e,t){var r=this;return(e=e&&!_xeUtils.default.isArray(e)?[e]:e).forEach(function(e){return r.handleSelectRow({row:e},!!t)}),this.$nextTick()},isCheckedByCheckboxRow:function(e){var t=this.checkboxOpts.checkField;return t?_xeUtils.default.get(e,t):-1<this.selection.indexOf(e)},isIndeterminateByCheckboxRow:function(e){return-1<this.treeIndeterminates.indexOf(e)&&!this.isCheckedByCheckboxRow(e)},handleSelectRow:function(e,r){var o=this,i=e.row,l=this.selection,t=this.afterFullData,n=this.treeConfig,s=this.treeOpts,a=this.treeIndeterminates,u=this.checkboxOpts,c=u.checkField,e=u.checkStrictly,h=u.checkMethod;if(c)if(n&&!e){-1===r?(-1===a.indexOf(i)&&a.push(i),_xeUtils.default.set(i,c,!1)):_xeUtils.default.eachTree([i],function(t){i!==t&&h&&!h({row:t})||(_xeUtils.default.set(t,c,r),_xeUtils.default.remove(a,function(e){return e===t}),o.handleCheckboxReserveRow(i,r))},s);u=_xeUtils.default.findTree(t,function(e){return e===i},s);if(u&&u.parent){var d,f=h?u.items.filter(function(e){return h({row:e})}):u.items;return d=_xeUtils.default.find(u.items,function(e){return-1<a.indexOf(e)})?-1:(d=u.items.filter(function(e){return _xeUtils.default.get(e,c)})).filter(function(e){return-1<f.indexOf(e)}).length===f.length||!(!d.length&&-1!==r)&&-1,this.handleSelectRow({row:u.parent},d)}}else h&&!h({row:i})||(_xeUtils.default.set(i,c,r),this.handleCheckboxReserveRow(i,r));else if(n&&!e){-1===r?(-1===a.indexOf(i)&&a.push(i),_xeUtils.default.remove(l,function(e){return e===i})):_xeUtils.default.eachTree([i],function(t){i!==t&&h&&!h({row:t})||(r?l.push(t):_xeUtils.default.remove(l,function(e){return e===t}),_xeUtils.default.remove(a,function(e){return e===t}),o.handleCheckboxReserveRow(i,r))},s);s=_xeUtils.default.findTree(t,function(e){return e===i},s);if(s&&s.parent){var g,p=h?s.items.filter(function(e){return h({row:e})}):s.items;return g=_xeUtils.default.find(s.items,function(e){return-1<a.indexOf(e)})?-1:(g=s.items.filter(function(e){return-1<l.indexOf(e)})).filter(function(e){return-1<p.indexOf(e)}).length===p.length||!(!g.length&&-1!==r)&&-1,this.handleSelectRow({row:s.parent},g)}}else h&&!h({row:i})||(r?-1===l.indexOf(i)&&l.push(i):_xeUtils.default.remove(l,function(e){return e===i}),this.handleCheckboxReserveRow(i,r));this.checkSelectionStatus()},handleToggleCheckRowEvent:function(e,t){var r=this.selection,o=this.checkboxOpts.checkField,i=t.row,i=o?!_xeUtils.default.get(i,o):-1===r.indexOf(i);e?this.triggerCheckRowEvent(e,t,i):this.handleSelectRow(t,i)},triggerCheckRowEvent:function(e,t,r){var o=this.checkboxOpts.checkMethod;o&&!o({row:t.row})||(this.handleSelectRow(t,r),this.emitEvent("checkbox-change",Object.assign({records:this.getCheckboxRecords(),reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:r},t),e))},toggleCheckboxRow:function(e){return this.handleToggleCheckRowEvent(null,{row:e}),this.$nextTick()},setAllCheckboxRow:function(t){var r=this,o=this.afterFullData,e=this.treeConfig,i=this.treeOpts,l=this.selection,n=this.checkboxReserveRowMap,s=this.checkboxOpts,a=s.checkField,u=s.reserve,c=s.checkStrictly,h=s.checkMethod,d=[],s=e?[]:l.filter(function(e){return-1===o.indexOf(e)});c?this.isAllSelected=t:(a?(c=function(e){h&&!h({row:e})||(t&&d.push(e),_xeUtils.default.set(e,a,t))},e?_xeUtils.default.eachTree(o,c,i):o.forEach(c)):e?t?_xeUtils.default.eachTree(o,function(e){h&&!h({row:e})||d.push(e)},i):h&&_xeUtils.default.eachTree(o,function(e){!h({row:e})&&-1<l.indexOf(e)&&d.push(e)},i):t?d=h?o.filter(function(e){return-1<l.indexOf(e)||h({row:e})}):o.slice(0):h&&(d=o.filter(function(e){return h({row:e})?0:-1<l.indexOf(e)})),u&&(t?d.forEach(function(e){n[getRowid(r,e)]=e}):o.forEach(function(e){return r.handleCheckboxReserveRow(e,!1)})),this.selection=a?[]:s.concat(d)),this.treeIndeterminates=[],this.checkSelectionStatus()},checkSelectionStatus:function(){var e=this.afterFullData,t=this.selection,r=this.treeIndeterminates,o=this.checkboxOpts,i=this.treeConfig,l=o.checkField,n=o.halfField,s=o.checkStrictly,a=o.checkMethod;s||(s=o=!1,s=l?(o=e.length&&e.every(a?function(e){return!a({row:e})||_xeUtils.default.get(e,l)}:function(e){return _xeUtils.default.get(e,l)}),i?n?!o&&e.some(function(e){return _xeUtils.default.get(e,l)||_xeUtils.default.get(e,n)||-1<r.indexOf(e)}):!o&&e.some(function(e){return _xeUtils.default.get(e,l)||-1<r.indexOf(e)}):n?!o&&e.some(function(e){return _xeUtils.default.get(e,l)||_xeUtils.default.get(e,n)}):!o&&e.some(function(e){return _xeUtils.default.get(e,l)})):(o=e.length&&e.every(a?function(e){return!a({row:e})||-1<t.indexOf(e)}:function(e){return-1<t.indexOf(e)}),i?!o&&e.some(function(e){return-1<r.indexOf(e)||-1<t.indexOf(e)}):!o&&e.some(function(e){return-1<t.indexOf(e)})),this.isAllSelected=o,this.isIndeterminate=s)},handleReserveStatus:function(){var e=this.expandColumn,t=this.treeOpts,r=this.treeConfig,o=this.fullDataRowIdData,i=this.fullAllDataRowMap,l=this.currentRow,n=this.selectRow,s=this.radioReserveRow,a=this.radioOpts,u=this.checkboxOpts,c=this.selection,h=this.rowExpandeds,d=this.treeExpandeds,f=this.expandOpts;n&&!i.has(n)&&(this.selectRow=null),a.reserve&&s&&(o[s=getRowid(this,s)]&&this.setRadioRow(o[s].row)),this.selection=getRecoverRow(this,c),u.reserve&&this.setCheckboxRow(handleReserveRow(this,this.checkboxReserveRowMap),!0),l&&!i.has(l)&&(this.currentRow=null),this.rowExpandeds=e?getRecoverRow(this,h):[],e&&f.reserve&&this.setRowExpand(handleReserveRow(this,this.rowExpandedReserveRowMap),!0),this.treeExpandeds=r?getRecoverRow(this,d):[],r&&t.reserve&&this.setTreeExpand(handleReserveRow(this,this.treeExpandedReserveRowMap),!0)},getRadioReserveRecord:function(e){var t=this.fullDataRowIdData,r=this.radioReserveRow,o=this.radioOpts,i=this.afterFullData,l=this.treeConfig,n=this.treeOpts;if(o.reserve&&r){var s=getRowid(this,r);if(e){if(!t[s])return r}else{var a=getRowkey(this);if(l){if(_xeUtils.default.findTree(i,function(e){return s===_xeUtils.default.get(e,a)},n))return r}else if(!i.some(function(e){return s===_xeUtils.default.get(e,a)}))return r}}return null},clearRadioReserve:function(){return this.radioReserveRow=null,this.$nextTick()},handleRadioReserveRow:function(e){this.radioOpts.reserve&&(this.radioReserveRow=e)},getCheckboxReserveRecords:function(r){var o=this,i=this.fullDataRowIdData,l=this.afterFullData,e=this.checkboxReserveRowMap,t=this.checkboxOpts,n=this.treeConfig,s=this.treeOpts,a=[];return t.reserve&&_xeUtils.default.each(e,function(e,t){e&&(r?i[t]||a.push(e):n?_xeUtils.default.findTree(l,function(e){return getRowid(o,e)===t},s)||a.push(e):l.some(function(e){return getRowid(o,e)===t})||a.push(e))}),a},clearCheckboxReserve:function(){return this.checkboxReserveRowMap={},this.$nextTick()},handleCheckboxReserveRow:function(e,t){var r,o=this.checkboxReserveRowMap;this.checkboxOpts.reserve&&(r=getRowid(this,e),t?o[r]=e:o[r]&&delete o[r])},triggerCheckAllEvent:function(e,t){this.setAllCheckboxRow(t),this.emitEvent("checkbox-all",{records:this.getCheckboxRecords(),reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:t},e)},toggleAllCheckboxRow:function(){return this.triggerCheckAllEvent(null,!this.isAllSelected),this.$nextTick()},clearCheckboxRow:function(){var t=this,e=this.tableFullData,r=this.treeConfig,o=this.treeOpts,i=this.checkboxOpts,l=i.checkField,i=i.reserve;return l&&(r?_xeUtils.default.eachTree(e,function(e){return _xeUtils.default.set(e,l,!1)},o):e.forEach(function(e){return _xeUtils.default.set(e,l,!1)})),i&&e.forEach(function(e){return t.handleCheckboxReserveRow(e,!1)}),this.isAllSelected=!1,this.isIndeterminate=!1,this.selection=[],this.treeIndeterminates=[],this.$nextTick()},handleDefaultRadioChecked:function(){var e=this.radioOpts,t=this.fullDataRowIdData,r=e.checkRowKey,e=e.reserve;r&&(t[r]&&this.setRadioRow(t[r].row),e&&(e=getRowkey(this),this.radioReserveRow=_defineProperty({},e,r)))},triggerRadioRowEvent:function(e,t){var r=this.selectRow,o=this.radioOpts,i=t.row,l=r!==i;l?this.setRadioRow(i):o.strict||(l=r===i)&&(i=null,this.clearRadioRow()),l&&this.emitEvent("radio-change",_objectSpread({oldValue:r,newValue:i},t),e)},triggerCurrentRowEvent:function(e,t){var r=this.currentRow,o=t.row,i=r!==o;this.setCurrentRow(o),i&&this.emitEvent("current-change",_objectSpread({oldValue:r,newValue:o},t),e)},setCurrentRow:function(e){var t=this.$el;return this.clearCurrentRow(),this.clearCurrentColumn(),this.currentRow=e,this.highlightCurrentRow&&t&&_xeUtils.default.arrayEach(t.querySelectorAll('[rowid="'.concat(getRowid(this,e),'"]')),function(e){return addClass(e,"row--current")}),this.$nextTick()},isCheckedByRadioRow:function(e){return this.selectRow===e},setRadioRow:function(e){var t=this.radioOpts.checkMethod;return!e||t&&!t({row:e})||(this.selectRow=e,this.handleRadioReserveRow(e)),this.$nextTick()},clearCurrentRow:function(){var e=this.$el;return this.currentRow=null,this.hoverRow=null,e&&_xeUtils.default.arrayEach(e.querySelectorAll(".row--current"),function(e){return removeClass(e,"row--current")}),this.$nextTick()},clearRadioRow:function(){return this.selectRow=null,this.$nextTick()},getCurrentRecord:function(){return this.highlightCurrentRow?this.currentRow:null},getRadioRecord:function(e){var t=this.treeConfig,r=this.treeOpts,o=this.selectRow,i=this.fullDataRowIdData,l=this.afterFullData;if(o){var n=getRowid(this,o);if(e){if(!i[n])return o}else if(t){var s=getRowkey(this);if(_xeUtils.default.findTree(l,function(e){return n===_xeUtils.default.get(e,s)},r))return o}else if(-1<l.indexOf(o))return o}return null},triggerHoverEvent:function(e,t){t=t.row;this.setHoverRow(t)},setHoverRow:function(e){var t=this.$el,r=getRowid(this,e);this.clearHoverRow(),t&&_xeUtils.default.arrayEach(t.querySelectorAll('[rowid="'.concat(r,'"]')),function(e){return 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 removeClass(e,"row--hover")}),this.hoverRow=null},triggerHeaderCellClickEvent:function(e,t){var r=this._lastResizeTime,o=this.sortOpts,i=t.column,l=e.currentTarget,n=r&&r>Date.now()-300,s=getEventTargetNode(e,l,"vxe-cell--sort").flag,r=getEventTargetNode(e,l,"vxe-cell--filter").flag;return"cell"!==o.trigger||n||s||r||this.triggerSortEvent(e,i,getNextSortOrder(this,i)),this.emitEvent("header-cell-click",Object.assign({triggerResizable:n,triggerSort:s,triggerFilter:r,cell:l},t),e),this.highlightCurrentColumn?this.setCurrentColumn(i):this.$nextTick()},triggerHeaderCellDblclickEvent:function(e,t){this.emitEvent("header-cell-dblclick",Object.assign({cell:e.currentTarget},t),e)},getCurrentColumn:function(){return this.highlightCurrentColumn?this.currentColumn:null},setCurrentColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&(this.clearCurrentRow(),this.clearCurrentColumn(),this.currentColumn=e),this.$nextTick()},clearCurrentColumn:function(){return this.currentColumn=null,this.$nextTick()},checkValidate:function(e){return _vXETable.default._valid?this.triggerValidate(e):this.$nextTick()},handleChangeCell:function(e,t){var r=this;this.checkValidate("blur").catch(function(e){return e}).then(function(){r.handleActived(t,e).then(function(){return r.checkValidate("change")}).catch(function(e){return e})})},triggerCellClickEvent:function(e,t){var r=this.highlightCurrentRow,o=this.editStore,i=this.radioOpts,l=this.expandOpts,n=this.treeOpts,s=this.editConfig,a=this.editOpts,u=this.checkboxOpts,c=o.actived,h=t,d=h.row,f=h.column,g=f.type,p=f.treeNode,x="radio"===g,v="checkbox"===g,m="expand"===g,w=e.currentTarget,b=x&&getEventTargetNode(e,w,"vxe-cell--radio").flag,o=v&&getEventTargetNode(e,w,"vxe-cell--checkbox").flag,h=p&&getEventTargetNode(e,w,"vxe-tree--btn-wrapper").flag,g=m&&getEventTargetNode(e,w,"vxe-table--expanded").flag;t=Object.assign({cell:w,triggerRadio:b,triggerCheckbox:o,triggerTreeNode:h,triggerExpandNode:g},t),o||b||(!g&&("row"===l.trigger||m&&"cell"===l.trigger)&&this.triggerRowExpandEvent(e,t),("row"===n.trigger||p&&"cell"===n.trigger)&&this.triggerTreeExpandEvent(e,t)),h||(g||(r&&(o||b||this.triggerCurrentRowEvent(e,t)),!b&&("row"===i.trigger||x&&"cell"===i.trigger)&&this.triggerRadioRowEvent(e,t),!o&&("row"===u.trigger||v&&"cell"===u.trigger)&&this.handleToggleCheckRowEvent(e,t)),(0,_utils.isEnableConf)(s)&&("manual"===a.trigger?c.args&&c.row===d&&f!==c.column&&this.handleChangeCell(e,t):c.args&&d===c.row&&f===c.column||("click"===a.trigger||"dblclick"===a.trigger&&"row"===a.mode&&c.row===d)&&this.handleChangeCell(e,t))),this.emitEvent("cell-click",t,e)},triggerCellDblclickEvent:function(e,t){var r=this,o=this.editStore,i=this.editConfig,l=this.editOpts,n=o.actived,o=e.currentTarget;t.cell=o,(0,_utils.isEnableConf)(i)&&"dblclick"===l.trigger&&(n.args&&e.currentTarget===n.args.cell||("row"===l.mode?this.checkValidate("blur").catch(function(e){return e}).then(function(){r.handleActived(t,e).then(function(){return r.checkValidate("change")}).catch(function(e){return e})}):"cell"===l.mode&&this.handleActived(t,e).then(function(){return r.checkValidate("change")}).catch(function(e){return e}))),this.emitEvent("cell-dblclick",t,e)},handleDefaultSort:function(){var r=this,e=this.sortConfig,t=this.sortOpts,o=t.defaultSort;o&&(o=!_xeUtils.default.isArray(o)?[o]:o).length&&((e.multiple?o:o.slice(0,1)).forEach(function(e){var t=e.field,e=e.order;t&&e&&((t=r.getColumnByField(t))&&t.sortable&&(t.order=e,t.sortTime=Date.now()))}),t.remote||this.handleTableData(!0).then(this.updateStyle))},triggerSortEvent:function(e,t,r){var o=this.sortOpts,i=t.property;(t.sortable||t.remoteSort)&&(r&&t.order!==r?this.sort({field:i,order:r}):this.clearSort(o.multiple?t:null),t={column:t,property:i,order:t.order,sortList:this.getSortColumns()},this.emitEvent("sort-change",t,e))},sort:function(e,t){var o,i=this,r=this.sortOpts,l=r.multiple,n=r.remote,s=r.orders;return e&&_xeUtils.default.isString(e)&&(e=[{field:e,order:t}]),(e=!_xeUtils.default.isArray(e)?[e]:e).length?(l||clearAllSort(this),(l?e:[e[0]]).forEach(function(e){var t=e.field,r=e.order,e=t;(e=_xeUtils.default.isString(t)?i.getColumnByField(t):e)&&(e.sortable||e.remoteSort)&&(o=o||e,-1===s.indexOf(r)&&(r=getNextSortOrder(i,e)),e.order!==r&&(e.order=r))}),(!n||o&&o.remoteSort)&&this.handleTableData(!0),this.$nextTick().then(this.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&&_tools.UtilTools.warn("vxe.error.delFunc",["getSortColumn","getSortColumns"]),_xeUtils.default.find(this.tableFullColumn,function(e){return(e.sortable||e.remoteSort)&&e.order})},isSort:function(e){if(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&e.sortable&&!!e.order}return 0<this.getSortColumns().length},getSortColumns:function(){var r=[];return this.tableFullColumn.forEach(function(e){var t=e.order;(e.sortable||e.remoteSort)&&t&&r.push({column:e,property:e.property,order:t})}),r},closeFilter:function(){var e=this.filterStore,t=e.column,r=e.visible;return Object.assign(e,{isAllSelected:!1,isIndeterminate:!1,options:[],visible:!1}),r&&this.emitEvent("filter-visible",{column:t,property:t.property,filterList:this.getCheckedFilters(),visible:!1},null),this.$nextTick()},isFilter:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e?e.filters&&e.filters.some(function(e){return e.checked}):0<this.getCheckedFilters().length},isRowExpandLoaded:function(e){e=this.fullAllDataRowMap.get(e);return e&&e.expandLoaded},clearRowExpandLoaded:function(t){var e=this.expandOpts,r=this.expandLazyLoadeds,o=this.fullAllDataRowMap,e=e.lazy,o=o.get(t);return e&&o&&(o.expandLoaded=!1,_xeUtils.default.remove(r,function(e){return t===e})),this.$nextTick()},reloadRowExpand:function(e){var t=this,r=this.expandOpts,o=this.expandLazyLoadeds;return r.lazy&&-1===o.indexOf(e)&&this.clearRowExpandLoaded(e).then(function(){return t.handleAsyncRowExpand(e)}),this.$nextTick()},reloadExpandContent:function(e){return"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("vxe.error.delFunc",["reloadExpandContent","reloadRowExpand"]),this.reloadRowExpand(e)},triggerRowExpandEvent:function(e,t){var r=this.expandOpts,o=this.expandLazyLoadeds,i=this.expandColumn,l=t.row;r.lazy&&-1!==o.indexOf(l)||(t=!this.isExpandByRow(l),r=this.getColumnIndex(i),o=this.getVMColumnIndex(i),this.setRowExpand(l,t),this.emitEvent("toggle-row-expand",{expanded:t,column:i,columnIndex:r,$columnIndex:o,row:l,rowIndex:this.getRowIndex(l),$rowIndex:this.getVMRowIndex(l)},e))},toggleRowExpand:function(e){return this.setRowExpand(e,!this.isExpandByRow(e))},handleDefaultRowExpand:function(){var t,e=this.expandOpts,r=this.fullDataRowIdData,o=e.expandAll,e=e.expandRowKeys;o?this.setAllRowExpand(!0):e&&(t=[],e.forEach(function(e){r[e]&&t.push(r[e].row)}),this.setRowExpand(t,!0))},setAllRowExpand:function(e){return this.setRowExpand(this.expandOpts.lazy?this.tableData:this.tableFullData,e)},handleAsyncRowExpand:function(t){var r=this,o=this.fullAllDataRowMap.get(t);return new Promise(function(e){r.expandLazyLoadeds.push(t),r.expandOpts.loadMethod({$table:r,row:t,rowIndex:r.getRowIndex(t),$rowIndex:r.getVMRowIndex(t)}).catch(function(e){return e}).then(function(){o.expandLoaded=!0,_xeUtils.default.remove(r.expandLazyLoadeds,function(e){return e===t}),r.rowExpandeds.push(t),e(r.$nextTick().then(r.recalculate))})})},setRowExpand:function(e,t){var r,o=this,i=this.fullAllDataRowMap,l=this.expandLazyLoadeds,n=this.expandOpts,s=this.expandColumn,a=this.rowExpandeds,u=n.reserve,c=n.lazy,h=n.accordion,d=n.toggleMethod,f=[],g=this.getColumnIndex(s),p=this.getVMColumnIndex(s);return e&&(_xeUtils.default.isArray(e)||(e=[e]),h&&(a=[],e=e.slice(e.length-1,e.length)),r=d?e.filter(function(e){return d({expanded:t,column:s,columnIndex:g,$columnIndex:p,row:e,rowIndex:o.getRowIndex(e),$rowIndex:o.getVMRowIndex(e)})}):e,t?r.forEach(function(e){var t;-1===a.indexOf(e)&&(t=i.get(e),c&&!t.expandLoaded&&-1===l.indexOf(e)?f.push(o.handleAsyncRowExpand(e)):a.push(e))}):_xeUtils.default.remove(a,function(e){return-1<r.indexOf(e)}),u&&r.forEach(function(e){return o.handleRowExpandReserve(e,t)})),this.rowExpandeds=a,Promise.all(f).then(this.recalculate)},isExpandByRow:function(e){return-1<this.rowExpandeds.indexOf(e)},clearRowExpand:function(){var t=this,e=this.expandOpts,r=this.rowExpandeds,o=this.tableFullData,e=e.reserve,i=r.length;return this.rowExpandeds=[],e&&o.forEach(function(e){return t.handleRowExpandReserve(e,!1)}),this.$nextTick().then(function(){i&&t.recalculate()})},clearRowExpandReserve:function(){return this.rowExpandedReserveRowMap={},this.$nextTick()},handleRowExpandReserve:function(e,t){var r,o=this.rowExpandedReserveRowMap;this.expandOpts.reserve&&(r=getRowid(this,e),t?o[r]=e:o[r]&&delete o[r])},getRowExpandRecords:function(){return this.rowExpandeds.slice(0)},getTreeExpandRecords:function(){return this.treeExpandeds.slice(0)},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(t){var e=this.treeOpts,r=this.treeExpandeds,o=this.fullAllDataRowMap,e=e.lazy,o=o.get(t);return e&&o&&(o.treeLoaded=!1,_xeUtils.default.remove(r,function(e){return t===e})),this.$nextTick()},reloadTreeExpand:function(e){var t=this,r=this.treeOpts,o=this.treeLazyLoadeds,i=r.transform,l=r.lazy,r=r.hasChild;return l&&e[r]&&-1===o.indexOf(e)&&this.clearTreeExpandLoaded(e).then(function(){return t.handleAsyncTreeExpandChilds(e)}).then(function(){if(i)return t.updateVirtualTreeData()}).then(function(){return t.recalculate()}),this.$nextTick()},reloadTreeChilds:function(e){return"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("vxe.error.delFunc",["reloadTreeChilds","reloadTreeExpand"]),this.reloadTreeExpand(e)},triggerTreeExpandEvent:function(e,t){var r=this.treeOpts,o=this.treeLazyLoadeds,i=t.row,l=t.column;r.lazy&&-1!==o.indexOf(i)||(t=!this.isTreeExpandByRow(i),r=this.getColumnIndex(l),o=this.getVMColumnIndex(l),this.setTreeExpand(i,t),this.emitEvent("toggle-tree-expand",{expanded:t,column:l,columnIndex:r,$columnIndex:o,row:i},e))},toggleTreeExpand:function(e){return this.setTreeExpand(e,!this.isTreeExpandByRow(e))},handleDefaultTreeExpand:function(){var e,r,o,t=this.treeConfig,i=this.treeOpts,l=this.tableFullData;t&&(e=i.expandAll,t=i.expandRowKeys,e?this.setAllTreeExpand(!0):t&&(r=[],o=getRowkey(this),t.forEach(function(t){var e=_xeUtils.default.findTree(l,function(e){return t===_xeUtils.default.get(e,o)},i);e&&r.push(e.item)}),this.setTreeExpand(r,!0)))},handleAsyncTreeExpandChilds:function(r){var o=this,e=this.fullAllDataRowMap,i=this.treeExpandeds,t=this.treeOpts,l=this.treeLazyLoadeds,n=this.checkboxOpts,s=t.loadMethod,a=n.checkStrictly,u=e.get(r);return new Promise(function(t){l.push(r),s({$table:o,row:r}).catch(function(){return[]}).then(function(e){u.treeLoaded=!0,_xeUtils.default.remove(l,function(e){return e===r}),(e=!_xeUtils.default.isArray(e)?[]:e)&&o.loadTreeChildren(r,e).then(function(e){e.length&&-1===i.indexOf(r)&&i.push(r),!a&&o.isCheckedByCheckboxRow(r)&&o.setCheckboxRow(e,!0)}),t(o.$nextTick().then(o.recalculate))})})},setAllTreeExpand:function(e){var t=this.tableFullData,r=this.treeOpts,o=r.lazy,i=r.children,l=[];return _xeUtils.default.eachTree(t,function(e){var t=e[i];(o||t&&t.length)&&l.push(e)},r),this.setTreeExpand(l,e)},handleBaseTreeExpand:function(e,t){var r,o=this,i=this.fullAllDataRowMap,l=this.tableFullData,n=this.treeExpandeds,s=this.treeOpts,a=this.treeLazyLoadeds,u=this.treeNodeColumn,c=s.reserve,h=s.lazy,d=s.hasChild,f=s.children,g=s.accordion,p=s.toggleMethod,x=[],v=this.getColumnIndex(u),m=this.getVMColumnIndex(u),w=p?e.filter(function(e){return p({expanded:t,column:u,columnIndex:v,$columnIndex:m,row:e})}):e;return g&&(w=w.length?[w[w.length-1]]:[],(r=_xeUtils.default.findTree(l,function(e){return e===w[0]},s))&&_xeUtils.default.remove(n,function(e){return-1<r.items.indexOf(e)})),t?w.forEach(function(e){var t;-1===n.indexOf(e)&&(t=i.get(e),h&&e[d]&&!t.treeLoaded&&-1===a.indexOf(e)?x.push(o.handleAsyncTreeExpandChilds(e)):e[f]&&e[f].length&&n.push(e))}):_xeUtils.default.remove(n,function(e){return-1<w.indexOf(e)}),c&&w.forEach(function(e){return o.handleTreeExpandReserve(e,t)}),Promise.all(x).then(this.recalculate)},updateVirtualTreeData:function(){var e=this,t=this.scrollYLoad,l=this.treeExpandeds,r=this.treeOpts,o=this.treeFullData,n=[];_xeUtils.default.eachTree(o,function(e,t,r,o,i){(!i||-1<l.indexOf(i))&&n.push(e)},r);r=this.updateScrollYStatus(n);return this.tableFullData=r?n:o,r||t!==r?this.handleTableData(!0).then(function(){return e.recalculate()}):this.$nextTick()},handleVirtualTreeExpand:function(e,t){var r=this;return this.handleBaseTreeExpand(e,t).then(function(){return r.updateVirtualTreeData()}).then(function(){return r.recalculate()})},setTreeExpand:function(e,t){var r=this.treeOpts.transform;return e&&(e=!_xeUtils.default.isArray(e)?[e]:e).length?r?this.handleVirtualTreeExpand(e,t):this.handleBaseTreeExpand(e,t):this.$nextTick()},isTreeExpandByRow:function(e){return-1<this.treeExpandeds.indexOf(e)},clearTreeExpand:function(){var t=this,e=this.treeOpts,r=this.treeExpandeds,o=this.tableFullData,i=e.reserve,l=r.length;return this.treeExpandeds=[],i&&_xeUtils.default.eachTree(o,function(e){return t.handleTreeExpandReserve(e,!1)},e),this.updateVirtualTreeData().then(function(){l&&t.recalculate()})},clearTreeExpandReserve:function(){return this.treeExpandedReserveRowMap={},this.$nextTick()},handleTreeExpandReserve:function(e,t){var r,o=this.treeExpandedReserveRowMap;this.treeOpts.reserve&&(r=getRowid(this,e),t?o[r]=e:o[r]&&delete o[r])},getScroll:function(){var e=this.$refs,t=this.scrollXLoad,r=this.scrollYLoad,e=e.tableBody.$el;return{virtualX:t,virtualY:r,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}},triggerScrollXEvent:function(){this.loadScrollXData()},loadScrollXData:function(){var e=this.mergeList,t=this.mergeFooterList,r=this.scrollXStore,o=r.startIndex,i=r.endIndex,l=r.offsetSize,n=computeVirtualX(this),s=n.toVisibleIndex,n=n.visibleSize,l={startIndex:Math.max(0,s-1-l),endIndex:s+n+l};calculateMergerOffserIndex(e.concat(t),l,"col");t=l.startIndex,l=l.endIndex;(s<=o||i-n-1<=s)&&(o===t&&i===l||(r.startIndex=t,r.endIndex=l,this.updateScrollXData())),this.closeTooltip()},triggerScrollYEvent:function(e){var t=this.scrollYStore,r=t.adaptive,o=t.offsetSize,t=t.visibleSize;isWebkit&&r&&2*o+t<=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,r=this.scrollYStore,o=r.startIndex,i=r.endIndex,l=r.visibleSize,n=r.offsetSize,s=r.rowHeight,e=(e.currentTarget||e.target).scrollTop,s=Math.floor(e/s),n={startIndex:Math.max(0,s-1-n),endIndex:s+l+n};calculateMergerOffserIndex(t,n,"row");t=n.startIndex,n=n.endIndex;(s<=o||i-l-1<=s)&&(o===t&&i===n||(r.startIndex=t,r.endIndex=n,this.updateScrollYData()))},computeScrollLoad:function(){var s=this;return this.$nextTick().then(function(){var e=s.sYOpts,t=s.sXOpts,r=s.scrollXLoad,o=s.scrollYLoad,i=s.scrollXStore,l=s.scrollYStore;r?(r=computeVirtualX(s).visibleSize,n=t.oSize?_xeUtils.default.toNumber(t.oSize):_dom.browse.msie?10:_dom.browse.edge?5:0,i.offsetSize=n,i.visibleSize=r,i.endIndex=Math.max(i.startIndex+i.visibleSize+n,i.endIndex),s.updateScrollXData()):s.updateScrollXSpace();var n=computeVirtualY(s),i=n.rowHeight,n=n.visibleSize;l.rowHeight=i,o?(e=e.oSize?_xeUtils.default.toNumber(e.oSize):_dom.browse.msie?20:_dom.browse.edge?10:0,l.offsetSize=e,l.visibleSize=n,l.endIndex=Math.max(l.startIndex+n+e,l.endIndex),s.updateScrollYData()):s.updateScrollYSpace(),s.rowHeight=i,s.$nextTick(s.updateStyle)})},handleTableColumn:function(){var e=this.scrollXLoad,t=this.visibleColumn,r=this.scrollXStore;this.tableColumn=e?t.slice(r.startIndex,r.endIndex):t.slice(0)},updateScrollXData:function(){this.handleTableColumn(),this.updateScrollXSpace()},updateScrollXSpace:function(){var e=this.$refs,o=this.elemStore,t=this.visibleColumn,r=this.scrollXStore,i=this.scrollXLoad,l=this.tableWidth,n=this.scrollbarWidth,s=e.tableHeader,a=e.tableBody,e=e.tableFooter,a=a?a.$el:null;a&&(s=s?s.$el:null,e=e?e.$el:null,s=s?s.querySelector(".vxe-table--header"):null,a=a.querySelector(".vxe-table--body"),e=e?e.querySelector(".vxe-table--footer"):null,t=t.slice(0,r.startIndex).reduce(function(e,t){return e+t.renderWidth},0),r="",i&&(r="".concat(t,"px")),s&&(s.style.marginLeft=r),a.style.marginLeft=r,e&&(e.style.marginLeft=r),["main"].forEach(function(r){["header","body","footer"].forEach(function(e){var t=o["".concat(r,"-").concat(e,"-xSpace")];t&&(t.style.width=i?"".concat(l+("header"===e?n:0),"px"):"")})}),this.$nextTick(this.updateStyle))},updateScrollYData:function(){this.handleTableData(),this.updateScrollYSpace()},updateScrollYSpace:function(){var r=this.elemStore,e=this.scrollYStore,t=this.scrollYLoad,o=this.afterFullData,i=e.startIndex,e=e.rowHeight,o=o.length*e,e=Math.max(0,i*e),l="",n="";t&&(l="".concat(e,"px"),n="".concat(o,"px")),["main","left","right"].forEach(function(t){var e=r["".concat(t,"-body-table")];e&&(e.style.marginTop=l),["header","body","footer"].forEach(function(e){e=r["".concat(t,"-").concat(e,"-ySpace")];e&&(e.style.height=n)})}),this.$nextTick(this.updateStyle)},scrollTo:function(e,t){var r=this,o=this.$refs,i=o.tableBody,l=o.rightBody,o=o.tableFooter,i=i?i.$el:null,l=l?l.$el:null,o=o?o.$el:null;return _xeUtils.default.isNumber(e)&&(0,_dom.setScrollLeft)(o||i,e),_xeUtils.default.isNumber(t)&&(0,_dom.setScrollTop)(l||i,t),this.scrollXLoad||this.scrollYLoad?new Promise(function(e){return setTimeout(function(){return e(r.$nextTick())},50)}):this.$nextTick()},scrollToRow:function(e,t){var r=[];return e&&(this.treeConfig?r.push(this.scrollToTreeRow(e)):r.push(_tools.DomTools.rowToVisible(this,e))),t&&r.push(this.scrollToColumn(t)),Promise.all(r)},scrollToColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&this.fullColumnMap.has(e)?_tools.DomTools.colToVisible(this,e):this.$nextTick()},scrollToTreeRow:function(t){var r,o=this,e=this.tableFullData,i=this.treeConfig,l=this.treeOpts,n=[];return!i||(l=_xeUtils.default.findTree(e,function(e){return e===t},l))&&(r=l.nodes).forEach(function(e,t){t<r.length-1&&!o.isTreeExpandByRow(e)&&n.push(o.setTreeExpand(e,!0))}),Promise.all(n).then(function(){return _tools.DomTools.rowToVisible(o,t)})},clearScroll:function(){var e=this.$refs,t=this.scrollXStore,r=this.scrollYStore,o=e.tableBody,i=e.rightBody,e=e.tableFooter,o=o?o.$el:null,i=i?i.$el:null,e=e?e.$el:null;return i&&((0,_util.restoreScrollListener)(i),i.scrollTop=0),e&&(e.scrollLeft=0),o&&((0,_util.restoreScrollListener)(o),o.scrollTop=0,o.scrollLeft=0),t.startIndex=0,r.startIndex=0,this.$nextTick()},updateFooter:function(){var e=this.showFooter,t=this.visibleColumn,r=this.footerMethod;return e&&r&&(this.footerTableData=t.length?r({columns:t,data:this.afterFullData,$table:this,$grid:this.$xegrid}):[]),this.$nextTick()},updateStatus:function(n,s){var a=this,u=!_xeUtils.default.isUndefined(s);return this.$nextTick().then(function(){var e=a.$refs,t=a.editRules,r=a.validStore;if(n&&e.tableBody&&t){var o=n.row,i=n.column;if(a.hasCellRules("change",o,i)){var l=a.getCell(o,i);if(l)return a.validCellRules("change",o,i,s).then(function(){u&&r.visible&&setCellValue(o,i,s),a.clearValidate()}).catch(function(e){e=e.rule;u&&setCellValue(o,i,s),a.showValidTooltip({rule:e,row:o,column:i,cell:l})})}}})},handleDefaultMergeCells:function(){this.setMergeCells(this.mergeCells)},setMergeCells:function(e){var t=this;return this.spanMethod&&_tools.UtilTools.error("vxe.error.errConflicts",["merge-cells","span-method"]),setMerges(this,e,this.mergeList,this.afterFullData),this.$nextTick().then(function(){return t.updateCellAreas()})},removeMergeCells:function(e){var t=this;this.spanMethod&&_tools.UtilTools.error("vxe.error.errConflicts",["merge-cells","span-method"]);var r=removeMerges(this,e,this.mergeList,this.afterFullData);return this.$nextTick().then(function(){return t.updateCellAreas(),r})},getMergeCells:function(){return this.mergeList.slice(0)},clearMergeCells:function(){return this.mergeList=[],this.$nextTick()},handleDefaultMergeFooterItems:function(){this.setMergeFooterItems(this.mergeFooterItems)},setMergeFooterItems:function(e){var t=this;return this.footerSpanMethod&&_tools.UtilTools.error("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]),setMerges(this,e,this.mergeFooterList,null),this.$nextTick().then(function(){return t.updateCellAreas()})},removeMergeFooterItems:function(e){var t=this;this.footerSpanMethod&&_tools.UtilTools.error("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]);var r=removeMerges(this,e,this.mergeFooterList,null);return this.$nextTick().then(function(){return t.updateCellAreas(),r})},getMergeFooterItems:function(){return this.mergeFooterList.slice(0)},clearMergeFooterItems:function(){return this.mergeFooterList=[],this.$nextTick()},updateZindex:function(){this.zIndex?this.tZindex=this.zIndex:this.tZindex<_tools.UtilTools.getLastZIndex()&&(this.tZindex=_tools.UtilTools.nextZIndex())},updateCellAreas:function(){this.mouseConfig&&this.mouseOpts.area&&this.handleUpdateCellAreas&&this.handleUpdateCellAreas()},emitEvent:function(e,t,r){this.$emit(e,Object.assign({$table:this,$grid:this.$xegrid,$event:r},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):_tools.UtilTools.error("vxe.error.barUnableLink"),this.$nextTick()},getCell:function(e,t){var r=this.$refs,e=getRowid(this,e),r=r["".concat(t.fixed||"table","Body")]||r.tableBody;return r&&r.$el?r.$el.querySelector('.vxe-body--row[rowid="'.concat(e,'"] .').concat(t.id)):null},getCellLabel:function(e,t){var r=t.formatter,o=_tools.UtilTools.getCellValue(e,t),i=o;if(r){var l,n=this.fullAllDataRowMap,s=t.id,a=n.has(e);if(a&&(l=(l=(a=n.get(e)).formatData)||(n.get(e).formatData={}),a&&l[s]&&l[s].value===o))return l[s].label;var u,t={cellValue:o,row:e,rowIndex:this.getRowIndex(e),column:t,columnIndex:this.getColumnIndex(t)};i=_xeUtils.default.isString(r)?(u=_formats.formats.get(r))?u(t):"":_xeUtils.default.isArray(r)?(u=_formats.formats.get(r[0]))?u.apply(void 0,[t].concat(_toConsumableArray(r.slice(1)))):"":r(t),l&&(l[s]={value:o,label:i})}return i}},funcs="setFilter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,clearCopyCellArea,setCellAreas,openFind,openReplace,getSelectedCell,clearSelected,insert,insertAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearActived,getActiveRecord,isActiveByRow,setActiveRow,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print".split(",");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)?_tools.UtilTools.error("vxe.error.reqModule",["Export"]):"clearValidate,fullValidate,validate".split(",").includes(e)&&_tools.UtilTools.error("vxe.error.reqModule",["Validator"]))),this["_".concat(e)]?this["_".concat(e)].apply(this,arguments):null}});var _default=Methods;exports.default=_default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_cell=_interopRequireDefault(require("./cell")),_vXETable=_interopRequireDefault(require("../../v-x-e-table")),_tools=require("../../tools"),_util=require("./util"),_utils=require("../../tools/src/utils"),_dom=require("../../tools/src/dom"),_formats=require("../../v-x-e-table/src/formats");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}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){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_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 r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function ownKeys(t,e){var r,o=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var getRowid=_tools.UtilTools.getRowid,getRowkey=_tools.UtilTools.getRowkey,setCellValue=_tools.UtilTools.setCellValue,hasChildrenList=_tools.UtilTools.hasChildrenList,getColumnList=_tools.UtilTools.getColumnList,calcHeight=_tools.DomTools.calcHeight,hasClass=_tools.DomTools.hasClass,addClass=_tools.DomTools.addClass,removeClass=_tools.DomTools.removeClass,getEventTargetNode=_tools.DomTools.getEventTargetNode,isWebkit=_dom.browse["-webkit"]&&!_dom.browse.edge,debounceScrollYDuration=_dom.browse.msie?80:20,resizableStorageKey="VXE_TABLE_CUSTOM_COLUMN_WIDTH",visibleStorageKey="VXE_TABLE_CUSTOM_COLUMN_VISIBLE";function getRowUniqueId(){return _xeUtils.default.uniqueId("row_")}function eqCellValue(e,t,r){e=_xeUtils.default.get(e,r),r=_xeUtils.default.get(t,r);return!(!(0,_utils.eqEmptyValue)(e)||!(0,_utils.eqEmptyValue)(r))||(_xeUtils.default.isString(e)||_xeUtils.default.isNumber(e)?e==r:_xeUtils.default.isEqual(e,r))}function getNextSortOrder(e,t){e=e.sortOpts.orders,t=t.order||null,t=e.indexOf(t)+1;return e[t<e.length?t:0]}function getCustomStorageMap(e){var t=_conf.default.version,e=_xeUtils.default.toStringJSON(localStorage.getItem(e));return e&&e._v===t?e:{_v:t}}function getRecoverRow(e,t){var r=e.fullAllDataRowMap;return t.filter(function(e){return r.has(e)})}function handleReserveRow(e,t){var r=e.fullDataRowIdData,o=[];return _xeUtils.default.each(t,function(e,t){r[t]&&-1===o.indexOf(r[t].row)&&o.push(r[t].row)}),o}function computeVirtualX(e){var t=e.$refs,r=e.visibleColumn,t=t.tableBody,t=t?t.$el:null;if(t){for(var o=t.scrollLeft,i=o+t.clientWidth,l=-1,n=0,s=0,a=0,u=r.length;a<u&&(n+=r[a].renderWidth,!(0<=(l=-1===l&&o<n?a:l)&&(s++,i<n)));a++);return{toVisibleIndex:Math.max(0,l),visibleSize:Math.max(8,s)}}return{toVisibleIndex:0,visibleSize:8}}function computeVirtualY(e){var t=e.$refs,r=e.vSize,o=e.rowHeightMaps,i=t.tableHeader,l=t.tableBody,e=l?l.$el:null;if(e){t=i?i.$el:null,l=0,i=e.querySelector("tr");return{rowHeight:l=(l=(i=!i&&t?t.querySelector("tr"):i)?i.clientHeight:l)||o[r||"default"],visibleSize:Math.max(8,Math.ceil(e.clientHeight/l)+2)}}return{rowHeight:0,visibleSize:8}}function calculateMergerOffserIndex(e,t,r){for(var o=0,i=e.length;o<i;o++){var l=e[o],n=t.startIndex,s=t.endIndex,a=l[r],l=a+l[r+"span"];a<n&&n<l&&(t.startIndex=a),a<s&&s<l&&(t.endIndex=l),t.startIndex===n&&t.endIndex===s||(o=-1)}}function setMerges(e,t,n,s){if(t){var r=e.treeConfig,a=e.visibleColumn;if(r)throw new Error(_tools.UtilTools.getLog("vxe.error.noTree",["merge-footer-items"]));(t=!_xeUtils.default.isArray(t)?[t]:t).forEach(function(e){var t,r=e.row,o=e.col,i=e.rowspan,l=e.colspan;s&&_xeUtils.default.isNumber(r)&&(r=s[r]),_xeUtils.default.isNumber(o)&&(o=a[o]),(s?r:_xeUtils.default.isNumber(r))&&o&&(i||l)&&(i=_xeUtils.default.toNumber(i)||1,l=_xeUtils.default.toNumber(l)||1,(1<i||1<l)&&(t=_xeUtils.default.findIndexOf(n,function(e){return e._row===r&&e._col===o}),(e=n[t])?(e.rowspan=i,e.colspan=l,e._rowspan=i,e._colspan=l):(t=s?s.indexOf(r):r,e=a.indexOf(o),n.push({row:t,col:e,rowspan:i,colspan:l,_row:r,_col:o,_rowspan:i,_colspan:l}))))})}}function removeMerges(e,t,o,i){var l=[];if(t){var r=e.treeConfig,n=e.visibleColumn;if(r)throw new Error(_tools.UtilTools.getLog("vxe.error.noTree",["merge-cells"]));(t=!_xeUtils.default.isArray(t)?[t]:t).forEach(function(e){var t=e.row,r=e.col;i&&_xeUtils.default.isNumber(t)&&(t=i[t]),_xeUtils.default.isNumber(r)&&(r=n[r]);e=_xeUtils.default.findIndexOf(o,function(e){return e._row===t&&e._col===r});-1<e&&(e=o.splice(e,1),l.push(e[0]))})}return l}function clearAllSort(e){e.tableFullColumn.forEach(function(e){e.order=null})}function getOrderField(t,r){var o=r.sortBy,i=r.sortType;return function(e){e=o?_xeUtils.default.isFunction(o)?o({row:e,column:r}):_xeUtils.default.get(e,o):t.getCellLabel(e,r);return i&&"auto"!==i?"number"===i?_xeUtils.default.toNumber(e):"string"===i?_xeUtils.default.toValueString(e):e:isNaN(e)?e:_xeUtils.default.toNumber(e)}}var Methods={callSlot:function(e,t,r,o){if(e){var i=this.$xegrid;if(i)return i.callSlot(e,t,r,o);if(_xeUtils.default.isFunction(e))return e.call(this,t,r,o)}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,r=this.height,e=e.parentNode,r="auto"===r?(0,_dom.getPaddingTopBottomSize)(e):0;return Math.floor(t?t.getParentHeight():_xeUtils.default.toNumber(getComputedStyle(e).height)-r)},getExcludeHeight:function(){var e=this.$xegrid;return e?e.getExcludeHeight():0},clearAll:function(){return(0,_util.clearTableAllStatus)(this)},syncData:function(){var e=this;return this.$nextTick().then(function(){return e.tableData=[],e.$nextTick().then(function(){return e.loadTableData(e.tableFullData)})})},updateData:function(){return this.handleTableData(!0).then(this.updateFooter).then(this.recalculate)},handleTableData:function(e){var t=this.scrollYLoad,r=this.scrollYStore,e=e?this.updateAfterFullData():this.afterFullData;return this.tableData=t?e.slice(r.startIndex,r.endIndex):e.slice(0),this.$nextTick()},updateScrollYStatus:function(e){var t=this.treeConfig,r=this.treeOpts,o=this.sYOpts,e=(r.transform||!t)&&!!o.enabled&&-1<o.gt&&o.gt<e.length;return this.scrollYLoad=e},loadTableData:function(e){var t=this,r=this.keepSource,o=this.treeConfig,i=this.treeOpts,l=this.editStore,n=this.scrollYStore,s=this.scrollXStore,a=this.lastScrollLeft,u=this.lastScrollTop,c=this.scrollYLoad,h=[],d=e?e.slice(0):[];o&&(i.transform?("development"===process.env.NODE_ENV&&(i.rowField||_tools.UtilTools.error("vxe.error.reqProp",["table.tree-config.rowField"]),i.parentField||_tools.UtilTools.error("vxe.error.reqProp",["table.tree-config.parentField"]),i.children||_tools.UtilTools.error("vxe.error.reqProp",["tree-config.children"]),d.forEach(function(e){e[i.children]&&e[i.children].length&&_tools.UtilTools.warn("vxe.error.errConflicts",["tree-config.transform","row.".concat(i.children)])})),d=(h=_xeUtils.default.toArrayTree(d,{key:i.rowField,parentKey:i.parentField,children:i.children})).slice(0)):h=d.slice(0)),n.startIndex=0,n.endIndex=1,s.startIndex=0,s.endIndex=1,l.insertList=[],l.removeList=[];var f=this.updateScrollYStatus(d);return this.scrollYLoad=f,this.tableFullData=d,this.treeFullData=h,this.cacheRowMap(!0),this.tableSynchData=e,r&&(this.tableSourceData=_xeUtils.default.clone(d,!0)),"development"===process.env.NODE_ENV&&f&&(this.height||this.maxHeight||_tools.UtilTools.error("vxe.error.reqProp",["table.height | table.max-height | table.scroll-y={enabled: false}"]),this.showOverflow||_tools.UtilTools.warn("vxe.error.reqProp",["table.show-overflow"]),this.spanMethod&&_tools.UtilTools.warn("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(){t.updateHeight(),t.updateStyle()}).then(function(){t.computeScrollLoad()}).then(function(){return f&&(n.endIndex=n.visibleSize),t.handleReserveStatus(),t.checkSelectionStatus(),new Promise(function(e){t.$nextTick().then(function(){return t.recalculate()}).then(function(){c===f?(0,_util.restoreScrollLocation)(t,a,u).then(e):setTimeout(function(){return(0,_util.restoreScrollLocation)(t,a,u).then(e)})})})})},loadData:function(e){var t=this,r=this.inited,o=this.initStatus;return this.loadTableData(e).then(function(){return t.inited=!0,t.initStatus=!0,o||t.handleLoadDefaults(),r||t.handleInitDefaults(),t.recalculate()})},reloadData:function(e){var t=this,r=this.inited;return this.clearAll().then(function(){return t.inited=!0,t.initStatus=!0,t.loadTableData(e)}).then(function(){return t.handleLoadDefaults(),r||t.handleInitDefaults(),t.recalculate()})},reloadRow:function(e,t,r){var o=this.keepSource,i=this.tableSourceData,l=this.tableData;return o?((o=i[this.getRowIndex(e)])&&e&&(r?(i=_xeUtils.default.get(t||e,r),_xeUtils.default.set(e,r,i),_xeUtils.default.set(o,r,i)):(t=_xeUtils.default.clone(_objectSpread({},t),!0),_xeUtils.default.destructuring(o,Object.assign(e,t)))),this.tableData=l.slice(0)):"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("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)})},handleColumn:function(e){var t=this;this.collectColumn=e;var r=getColumnList(e);return this.tableFullColumn=r,this.cacheColumnMap(),this.restoreCustomStorage(),this.parseColumns().then(function(){t.scrollXLoad&&t.loadScrollXData(!0)}),this.clearMergeCells(),this.clearMergeFooterItems(),this.handleTableData(!0),"development"===process.env.NODE_ENV&&(this.scrollXLoad||this.scrollYLoad)&&this.expandColumn&&_tools.UtilTools.warn("vxe.error.scrollErrProp",["column.type=expand"]),this.$nextTick().then(function(){return t.$toolbar&&t.$toolbar.syncUpdate({collectColumn:e,$table:t}),t.recalculate()})},cacheRowMap:function(s){function e(e,t,r,o,i,l){var n=getRowid(a,e);(0,_utils.eqEmptyValue)(n)&&(n=getRowUniqueId(),_xeUtils.default.set(e,p,n)),x&&e[c.hasChild]&&_xeUtils.default.isUndefined(e[c.children])&&(e[c.children]=null),l={row:e,rowid:n,index:u&&i?-1:t,items:r,parent:i,level:l?l.length-1:0},s&&(f[n]=l,h.set(e,l)),g[n]=l,d.set(e,l)}var a=this,u=this.treeConfig,c=this.treeOpts,t=this.tableFullData,h=this.fullDataRowMap,d=this.fullAllDataRowMap,f=this.fullDataRowIdData,g=this.fullAllDataRowIdData,p=getRowkey(this),x=u&&c.lazy;s&&(f=this.fullDataRowIdData={},h.clear()),g=this.fullAllDataRowIdData={},d.clear(),u?_xeUtils.default.eachTree(t,e,c):t.forEach(e)},loadTreeChildren:function(o,e){var s=this,i=this.keepSource,l=this.tableSourceData,n=this.treeOpts,a=this.fullDataRowIdData,u=this.fullDataRowMap,c=this.fullAllDataRowMap,h=this.fullAllDataRowIdData,d=n.children,t=h[getRowid(this,o)],f=t?t.level:0;return this.createData(e).then(function(e){var t,r;return i&&(t=getRowid(s,o),(r=_xeUtils.default.findTree(l,function(e){return t===getRowid(s,e)},n))&&(r.item[d]=_xeUtils.default.clone(e,!0))),_xeUtils.default.eachTree(e,function(e,t,r,o,i,l){var n=getRowid(s,e),l={row:e,rowid:n,index:-1,items:r,parent:i,level:f+l.length};a[n]=l,u.set(e,l),h[n]=l,c.set(e,l)},n),o[d]=e})},cacheColumnMap:function(){function n(e,t,r,o,i){var l=e.id,n=e.property,s=e.fixed,a=e.type,u=e.treeNode,i={column:e,colid:l,index:t,items:r,parent:i};n&&("development"===process.env.NODE_ENV&&m[n]&&_tools.UtilTools.warn("vxe.error.colRepet",["field",n]),m[n]=i),!g&&s&&(g=s),u?("development"===process.env.NODE_ENV&&h&&_tools.UtilTools.warn("vxe.error.colRepet",["tree-node",u]),h=h||e):"expand"===a&&("development"===process.env.NODE_ENV&&c&&_tools.UtilTools.warn("vxe.error.colRepet",["type",a]),c=c||e),"development"===process.env.NODE_ENV&&("checkbox"===a?(d&&_tools.UtilTools.warn("vxe.error.colRepet",["type",a]),d=d||e):"radio"===a&&(f&&_tools.UtilTools.warn("vxe.error.colRepet",["type",a]),f=f||e)),"development"===process.env.NODE_ENV&&(p.showOverflow&&!1===e.showOverflow&&_tools.UtilTools.warn("vxe.error.errConflicts",["table.show-overflow=".concat(p.showOverflow),"column.show-overflow=".concat(e.showOverflow)]),p.showHeaderOverflow&&!1===e.showHeaderOverflow&&_tools.UtilTools.warn("vxe.error.errConflicts",["table.show-header-overflow=".concat(p.showHeaderOverflow),"column.show-header-overflow=".concat(e.showHeaderOverflow)]),p.showFooterOverflow&&!1===e.showFooterOverflow&&_tools.UtilTools.warn("vxe.error.errConflicts",["table.show-footer-overflow=".concat(p.showFooterOverflow),"column.show-footer-overflow=".concat(e.showFooterOverflow)])),w&&!1===e.showOverflow&&(w=!1),v[l]&&_tools.UtilTools.error("vxe.error.colRepet",["colId",l]),v[l]=i,x.set(e,i)}var c,h,d,f,g,p=this,e=this.tableFullColumn,t=this.collectColumn,x=this.fullColumnMap,r=this.showOverflow,v=this.fullColumnIdData={},m=this.fullColumnFieldData={},o=t.some(hasChildrenList),w=!!r;x.clear(),o?_xeUtils.default.eachTree(t,function(e,t,r,o,i,l){e.level=l.length,n(e,t,r,0,i)}):e.forEach(n),"development"===process.env.NODE_ENV&&c&&this.mouseOpts.area&&_tools.UtilTools.error("vxe.error.errConflicts",["mouse-config.area","column.type=expand"]),this.isGroup=o,this.treeNodeColumn=h,this.expandColumn=c,this.isAllOverflow=w},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},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&&_tools.UtilTools.warn("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&&_tools.UtilTools.warn("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&&_tools.UtilTools.warn("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&&_tools.UtilTools.warn("vxe.error.delFunc",["$getColumnIndex","getVMColumnIndex"]),this.getVMColumnIndex(e)},isSeqColumn:function(e){return e&&"seq"===e.type},defineField:function(i){var e=this.radioOpts,t=this.checkboxOpts,r=this.treeConfig,o=this.treeOpts,l=this.expandOpts,n=getRowkey(this);return this.tableFullColumn.forEach(function(e){var t,r=e.property,o=e.editRender;r&&!_xeUtils.default.has(i,r)&&(t=null,o&&(o=o.defaultValue,_xeUtils.default.isFunction(o)?t=o({column:e}):_xeUtils.default.isUndefined(o)||(t=o)),_xeUtils.default.set(i,r,t))}),[e.labelField,t.checkField,t.labelField,l.labelField].forEach(function(e){e&&(0,_utils.eqEmptyValue)(_xeUtils.default.get(i,e))&&_xeUtils.default.set(i,e,null)}),r&&o.lazy&&_xeUtils.default.isUndefined(i[o.children])&&(i[o.children]=null),(0,_utils.eqEmptyValue)(_xeUtils.default.get(i,n))&&_xeUtils.default.set(i,n,getRowUniqueId()),i},createData:function(e){function t(e){return r.defineField(Object.assign({},e))}var r=this,o=this.treeConfig,i=this.treeOpts,l=o?_xeUtils.default.mapTree(e,t,i):e.map(t);return this.$nextTick().then(function(){return l})},createRow:function(e){var t=this,r=_xeUtils.default.isArray(e);return r||(e=[e]),this.$nextTick().then(function(){return t.createData(e).then(function(e){return r?e:e[0]})})},revertData:function(e,r){var o=this,t=this.keepSource,i=this.tableSourceData,l=this.treeConfig;if(!t)return"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("vxe.error.reqProp",["keep-source"]),this.$nextTick();t=e;return e?_xeUtils.default.isArray(e)||(t=[e]):t=_xeUtils.default.toArray(this.getUpdateRecords()),t.length&&t.forEach(function(e){if(!o.isInsertByRow(e)){var t=o.getRowIndex(e);if(l&&-1===t)throw new Error(_tools.UtilTools.getLog("vxe.error.noTree",["revertData"]));t=i[t];t&&e&&(r?_xeUtils.default.set(e,r,_xeUtils.default.clone(_xeUtils.default.get(t,r),!0)):_xeUtils.default.destructuring(e,_xeUtils.default.clone(t,!0)))}}),e?this.$nextTick():this.reloadData(i)},clearData:function(e,t){var r=this.tableFullData,o=this.visibleColumn;return arguments.length?e&&!_xeUtils.default.isArray(e)&&(e=[e]):e=r,t?e.forEach(function(e){return _xeUtils.default.set(e,t,null)}):e.forEach(function(t){o.forEach(function(e){e.property&&setCellValue(t,e,null)})}),this.$nextTick()},isInsertByRow:function(e){return-1<this.editStore.insertList.indexOf(e)},removeInsertRow:function(){return this.remove(this.editStore.insertList)},isUpdateByRow:function(e,t){var r=this,o=this.visibleColumn,i=this.keepSource,l=this.treeConfig,n=this.treeOpts,s=this.tableSourceData,a=this.fullDataRowIdData;if(i){var u,c,h=getRowid(this,e);if(!a[h])return!1;if(l?(l=n.children,n=_xeUtils.default.findTree(s,function(e){return h===getRowid(r,e)},n),e=Object.assign({},e,_defineProperty({},l,null)),n&&(c=Object.assign({},n.item,_defineProperty({},l,null)))):c=s[a[h].index],c){if(1<arguments.length)return!eqCellValue(c,e,t);for(var d=0,f=o.length;d<f;d++)if((u=o[d].property)&&!eqCellValue(c,e,u))return!0}}return!1},getColumns:function(e){var t=this.visibleColumn;return _xeUtils.default.isUndefined(e)?t.slice(0):t[e]},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},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(e){var t,r=this.tableFullData,o=this.afterFullData,i=this.treeConfig,l=this.treeOpts,n=this.checkboxOpts.checkField,o=e?r:o;return n?i?_xeUtils.default.filterTree(o,function(e){return _xeUtils.default.get(e,n)},l):o.filter(function(e){return _xeUtils.default.get(e,n)}):(t=this.selection,i?_xeUtils.default.filterTree(o,function(e){return-1<t.indexOf(e)},l):o.filter(function(e){return-1<t.indexOf(e)}))},updateAfterFullData:function(){var u=this,e=this.tableFullColumn,t=this.tableFullData,r=this.filterOpts,o=this.sortOpts,c=r.remote,h=r.filterMethod,n=o.remote,r=o.sortMethod,o=o.multiple,t=t.slice(0),s=[],a=[];e.forEach(function(e){var t,r,o=e.sortable,i=e.order,l=e.filters;!c&&l&&l.length&&(t=[],r=[],l.forEach(function(e){e.checked&&(r.push(e),t.push(e.value))}),r.length&&s.push({column:e,valueList:t,itemList:r})),!n&&o&&i&&a.push({column:e,property:e.property,order:i})}),s.length&&(t=t.filter(function(a){return s.every(function(e){var t=e.column,r=e.valueList,o=e.itemList;if(!r.length||c)return!0;var i=t.filterMethod,e=t.filterRender,e=e?_vXETable.default.renderer.get(e.name):null,l=e&&e.renderFilter?e.filterMethod:null,n=e?e.defaultFilterMethod:null,s=_tools.UtilTools.getCellValue(a,t);return i?o.some(function(e){return i({value:e.value,option:e,cellValue:s,row:a,column:t,$table:u})}):l?o.some(function(e){return l({value:e.value,option:e,cellValue:s,row:a,column:t,$table:u})}):h?h({options:o,values:r,cellValue:s,row:a,column:t}):n?o.some(function(e){return n({value:e.value,option:e,cellValue:s,row:a,column:t,$table:u})}):-1<r.indexOf(_xeUtils.default.get(a,t.property))})}));var i,l=a[0];return!n&&l&&(t=r?(r=r({data:t,column:l.column,property:l.property,order:l.order,sortList:a,$table:this}),_xeUtils.default.isArray(r)?r:t):o?_xeUtils.default.orderBy(t,a.map(function(e){var t=e.column,e=e.order;return[getOrderField(u,t),e]})):(_xeUtils.default.isArray(l.sortBy)&&(i=l.sortBy.map(function(e){return[e,l.order]})),_xeUtils.default.orderBy(t,i||[l].map(function(e){var t=e.column,e=e.order;return[getOrderField(u,t),e]})))),this.afterFullData=t},getRowById:function(e){var t=this.fullDataRowIdData;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.tableFullData,t=this.afterFullData,r=this.tableData,o=this.footerTableData;return{fullData:e.slice(0),visibleData:t.slice(0),tableData:r.slice(0),footerData:o.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()},hideColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&(e.visible=!1),this.handleCustom()},showColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&(e.visible=!0),this.handleCustom()},resetColumn:function(e){var t=this.customOpts.checkMethod,r=Object.assign({visible:!0,resizable:!0===e},e);return this.tableFullColumn.forEach(function(e){r.resizable&&(e.resizeWidth=0),t&&!t({column:e})||(e.visible=e.defaultVisible)}),r.resizable&&this.saveCustomResizable(!0),this.handleCustom()},handleCustom:function(){return this.saveCustomVisible(),this.analyColumnWidth(),this.refreshColumn()},restoreCustomStorage:function(){var r,o,e=this.id,t=this.collectColumn,i=this.customConfig,l=this.customOpts,n=l.storage,s=!0===l.storage,l=s||n&&n.resizable,n=s||n&&n.visible;i&&(l||n)&&(r={},e?(!l||(l=getCustomStorageMap(resizableStorageKey)[e])&&_xeUtils.default.each(l,function(e,t){r[t]={field:t,resizeWidth:e}}),!n||(n=getCustomStorageMap(visibleStorageKey)[e])&&(n=(e=n.split("|"))[0]?e[0].split(","):[],e=e[1]?e[1].split(","):[],n.forEach(function(e){r[e]?r[e].visible=!1:r[e]={field:e,visible:!1}}),e.forEach(function(e){r[e]?r[e].visible=!0:r[e]={field:e,visible:!0}})),o={},_xeUtils.default.eachTree(t,function(e){var t=e.getKey();t&&(o[t]=e)}),_xeUtils.default.each(r,function(e,t){var r=e.visible,e=e.resizeWidth,t=o[t];t&&(_xeUtils.default.isNumber(e)&&(t.resizeWidth=e),_xeUtils.default.isBoolean(r)&&(t.visible=r))})):_tools.UtilTools.error("vxe.error.reqProp",["id"]))},saveCustomVisible:function(){var r,o,e=this.id,t=this.collectColumn,i=this.customConfig,l=this.customOpts,n=l.checkMethod,s=l.storage,s=!0===l.storage||s&&s.visible;i&&s&&(s=getCustomStorageMap(visibleStorageKey),r=[],o=[],e?(_xeUtils.default.eachTree(t,function(e){var t;n&&!n({column:e})||(!e.visible&&e.defaultVisible?(t=e.getKey())&&r.push(t):!e.visible||e.defaultVisible||(e=e.getKey())&&o.push(e))}),s[e]=[r.join(",")].concat(o.length?[o.join(",")]:[]).join("|")||void 0,localStorage.setItem(visibleStorageKey,_xeUtils.default.toJSONString(s))):_tools.UtilTools.error("vxe.error.reqProp",["id"]))},saveCustomResizable:function(e){var r,t=this.id,o=this.collectColumn,i=this.customConfig,l=this.customOpts,n=l.storage,n=!0===l.storage||n&&n.resizable;i&&n&&(n=getCustomStorageMap(resizableStorageKey),t?(e||(r=_xeUtils.default.isPlainObject(n[t])?n[t]:{},_xeUtils.default.eachTree(o,function(e){var t;!e.resizeWidth||(t=e.getKey())&&(r[t]=e.renderWidth)})),n[t]=_xeUtils.default.isEmpty(r)?void 0:r,localStorage.setItem(resizableStorageKey,_xeUtils.default.toJSONString(n))):_tools.UtilTools.error("vxe.error.reqProp",["id"]))},refreshColumn:function(){var e=this;return this.parseColumns().then(function(){return e.refreshScroll()}).then(function(){return e.recalculate()})},parseColumns:function(){var t,r,o,e=this,n=[],s=[],a=[],i=this.collectColumn,l=this.tableFullColumn,u=this.isGroup,c=this.columnStore,h=this.sXOpts,d=this.scrollXStore;u?(t=[],r=[],o=[],_xeUtils.default.eachTree(i,function(e,t,r,o,i){var l=hasChildrenList(e);i&&i.fixed&&(e.fixed=i.fixed),i&&e.fixed!==i.fixed&&_tools.UtilTools.error("vxe.error.groupFixed"),l?e.visible=!!_xeUtils.default.findTree(e.children,function(e){return hasChildrenList(e)?null:e.visible}):e.visible&&("left"===e.fixed?n:"right"===e.fixed?a:s).push(e)}),i.forEach(function(e){e.visible&&("left"===e.fixed?t:"right"===e.fixed?o:r).push(e)}),this.tableGroupColumn=t.concat(r).concat(o)):l.forEach(function(e){e.visible&&("left"===e.fixed?n:"right"===e.fixed?a:s).push(e)});var f=n.concat(s).concat(a),l=h.enabled&&-1<h.gt&&h.gt<l.length;return this.hasFixedColumn=0<n.length||0<a.length,Object.assign(c,{leftList:n,centerList:s,rightList:a}),l&&u&&(l=!1,"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("vxe.error.scrollXNotGroup")),l&&("development"===process.env.NODE_ENV&&(this.showHeader&&!this.showHeaderOverflow&&_tools.UtilTools.warn("vxe.error.reqProp",["show-header-overflow"]),this.showFooter&&!this.showFooterOverflow&&_tools.UtilTools.warn("vxe.error.reqProp",["show-footer-overflow"]),this.spanMethod&&_tools.UtilTools.warn("vxe.error.scrollErrProp",["span-method"]),this.footerSpanMethod&&_tools.UtilTools.warn("vxe.error.scrollErrProp",["footer-span-method"])),u=computeVirtualX(this).visibleSize,d.startIndex=0,d.endIndex=u,d.visibleSize=u),f.length===this.visibleColumn.length&&this.visibleColumn.every(function(e,t){return e===f[t]})||(this.clearMergeCells(),this.clearMergeFooterItems()),this.scrollXLoad=l,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,r=e.minWidth,o=[],i=[],l=[],n=[],s=[],a=[];this.tableFullColumn.forEach(function(e){t&&!e.width&&(e.width=t),r&&!e.minWidth&&(e.minWidth=r),e.visible&&(e.resizeWidth?o:_tools.DomTools.isPx(e.width)?i:_tools.DomTools.isScale(e.width)?n:_tools.DomTools.isPx(e.minWidth)?l:_tools.DomTools.isScale(e.minWidth)?s:a).push(e)}),Object.assign(this.columnStore,{resizeList:o,pxList:i,pxMinList:l,scaleList:n,scaleMinList:s,autoList:a})},refreshScroll:function(){var e=this.lastScrollLeft,t=this.lastScrollTop,r=this.$refs,o=r.tableBody,i=r.leftBody,l=r.rightBody,r=r.tableFooter,o=o?o.$el:null,i=i?i.$el:null,l=l?l.$el:null,r=r?r.$el:null;if(e||t)return(0,_util.restoreScrollLocation)(this,e,t);(0,_dom.setScrollTop)(o,t),(0,_dom.setScrollTop)(i,t),(0,_dom.setScrollTop)(l,t),(0,_dom.setScrollLeft)(r,e)},recalculate:function(e){var t=this,r=this.$refs,o=r.tableBody,i=r.tableHeader,r=r.tableFooter,l=o?o.$el:null,n=i?i.$el:null,s=r?r.$el:null;return l&&(this.autoCellWidth(n,l,s),!0===e)?this.computeScrollLoad().then(function(){return t.autoCellWidth(n,l,s),t.computeScrollLoad()}):this.computeScrollLoad()},autoCellWidth:function(e,t,r){var o=0,i=t.clientWidth-1,l=i,n=l/100,s=this.fit,a=this.columnStore,u=a.resizeList,c=a.pxMinList,h=a.pxList,d=a.scaleList,f=a.scaleMinList,a=a.autoList;if(c.forEach(function(e){var t=parseInt(e.minWidth);o+=t,e.renderWidth=t}),f.forEach(function(e){var t=Math.floor(parseInt(e.minWidth)*n);o+=t,e.renderWidth=t}),d.forEach(function(e){var t=Math.floor(parseInt(e.width)*n);o+=t,e.renderWidth=t}),h.forEach(function(e){var t=parseInt(e.width);o+=t,e.renderWidth=t}),u.forEach(function(e){var t=parseInt(e.resizeWidth);o+=t,e.renderWidth=t}),n=0<(l-=o)?Math.floor(l/(f.length+c.length+a.length)):0,s?0<l&&f.concat(c).forEach(function(e){o+=n,e.renderWidth+=n}):n=40,a.forEach(function(e){var t=Math.max(n,40);e.renderWidth=t,o+=t}),s){var g=d.concat(f).concat(c).concat(a),p=g.length-1;if(0<p){var x=i-o;if(0<x){for(;0<x&&0<=p;)x--,g[p--].renderWidth++;o=i}}}c=t.offsetHeight,a=t.scrollHeight>t.clientHeight;this.scrollbarWidth=a?t.offsetWidth-t.clientWidth:0,this.overflowY=a,this.tableWidth=o,this.tableHeight=c,e?(this.headerHeight=e.clientHeight,this.$nextTick(function(){e&&t&&e.scrollLeft!==t.scrollLeft&&(e.scrollLeft=t.scrollLeft)})):this.headerHeight=0,r?(a=r.offsetHeight,this.scrollbarHeight=Math.max(a-r.clientHeight,0),this.overflowX=o>r.clientWidth,this.footerHeight=a):(this.footerHeight=0,this.scrollbarHeight=Math.max(c-t.clientHeight,0),this.overflowX=i<o),this.updateHeight(),this.parentHeight=Math.max(this.headerHeight+this.footerHeight+20,this.getParentHeight()),this.overflowX&&this.checkScrolling()},updateHeight:function(){this.customHeight=calcHeight(this,"height"),this.customMaxHeight=calcHeight(this,"maxHeight")},updateStyle:function(){var h=this,t=this.$refs,d=this.isGroup,f=this.fullColumnIdData,g=this.tableColumn,p=this.customHeight,x=this.customMaxHeight,v=this.border,m=this.headerHeight,w=this.showFooter,b=this.showOverflow,C=this.showHeaderOverflow,T=this.showFooterOverflow,_=this.footerHeight,R=this.tableHeight,E=this.tableWidth,y=this.scrollbarHeight,S=this.scrollbarWidth,O=this.scrollXLoad,U=this.scrollYLoad,k=this.cellOffsetWidth,D=this.columnStore,I=this.elemStore,e=this.editStore,r=this.currentRow,o=this.mouseConfig,M=this.keyboardConfig,$=this.keyboardOpts,A=this.spanMethod,F=this.mergeList,L=this.mergeFooterList,N=this.footerSpanMethod,V=this.isAllOverflow,H=this.visibleColumn,i=t.emptyPlaceholder,l=I["main-body-wrapper"];return i&&(i.style.top="".concat(m,"px"),i.style.height=l?"".concat(l.offsetHeight-y,"px"):""),0<p&&w&&(p+=y),["main","left","right"].forEach(function(a,e){var s=0<e?a:"",u=D["".concat(s,"List")],c=t["".concat(s,"Container")];["header","body","footer"].forEach(function(i){var e,t,r,o=I["".concat(a,"-").concat(i,"-wrapper")],l=I["".concat(a,"-").concat(i,"-table")];"header"===i?(t=E,e=!1,d||s&&(O||C)&&(e=!0),e&&(g=u),(e||O)&&(t=g.reduce(function(e,t){return e+t.renderWidth},0)),l&&(l.style.width=t?"".concat(t+S,"px"):"",_dom.browse.msie&&_xeUtils.default.arrayEach(l.querySelectorAll(".vxe-resizable"),function(e){e.style.height="".concat(e.parentNode.offsetHeight,"px")})),(e=I["".concat(a,"-").concat(i,"-repair")])&&(e.style.width="".concat(E,"px")),t=I["".concat(a,"-").concat(i,"-list")],d&&t&&_xeUtils.default.arrayEach(t.querySelectorAll(".col--group"),function(e){var t,r,o,i=h.getColumnNode(e);i&&(i=(t=i.item).showHeaderOverflow,i=_xeUtils.default.isBoolean(i)?i:C,o=r=0,(i="title"===i||(!0===i||"tooltip"===i)||"ellipsis"===i)&&_xeUtils.default.eachTree(t.children,function(e){e.children&&t.children.length||o++,r+=e.renderWidth}),e.style.width=i?"".concat(r-o-(v?2:0),"px"):"")})):"body"===i?(e=I["".concat(a,"-").concat(i,"-emptyBlock")],o&&(x?o.style.maxHeight="".concat(s?x-m-(w?0:y):x-m,"px"):o.style.height=0<p?"".concat(s?(0<p?p-m-_:R)-(w?0:y):p-m-_,"px"):""),c&&(r="right"===s,t=D["".concat(s,"List")],o&&(o.style.top="".concat(m,"px")),c.style.height="".concat((0<p?p-m-_:R)+m+_-y*(w?2:1),"px"),c.style.width="".concat(t.reduce(function(e,t){return e+t.renderWidth},r?S:0),"px")),r=E,r=(g=s?!(O||U||b&&V)||F.length||A||M&&$.isMerge?H:u:g).reduce(function(e,t){return e+t.renderWidth},0),l&&(l.style.width=r?"".concat(r,"px"):"",l.style.paddingRight=S&&s&&(_dom.browse["-moz"]||_dom.browse.safari)?"".concat(S,"px"):""),e&&(e.style.width=r?"".concat(r,"px"):"")):"footer"===i&&(n=E,n=(g=s?!O&&!T||L.length&&N?H:u:g).reduce(function(e,t){return e+t.renderWidth},0),o&&(c&&(o.style.top="".concat(0<p?p-_:R+m,"px")),o.style.marginTop="".concat(-y,"px")),l&&(l.style.width=n?"".concat(n+S,"px"):""));var n=I["".concat(a,"-").concat(i,"-colgroup")];n&&_xeUtils.default.arrayEach(n.children,function(e){var n,t,r,s,o=e.getAttribute("name");"col_gutter"===o&&(e.style.width="".concat(S,"px")),f[o]&&(t=(n=f[o].column).showHeaderOverflow,r=n.showFooterOverflow,o=n.showOverflow,e.style.width="".concat(n.renderWidth,"px"),s="title"===(o="header"===i?_xeUtils.default.isUndefined(t)||_xeUtils.default.isNull(t)?C:t:"footer"===i?_xeUtils.default.isUndefined(r)||_xeUtils.default.isNull(r)?T:r:_xeUtils.default.isUndefined(o)||_xeUtils.default.isNull(o)?b:o)||(!0===o||"tooltip"===o)||"ellipsis"===o,o=I["".concat(a,"-").concat(i,"-list")],"header"===i||"footer"===i?O&&!s&&(s=!0):!O&&!U||s||(s=!0),o&&_xeUtils.default.arrayEach(o.querySelectorAll(".".concat(n.id)),function(e){var t=parseInt(e.getAttribute("colspan")||1),e=e.querySelector(".vxe-cell"),r=n.renderWidth;if(e){if(1<t)for(var o=h.getColumnIndex(n),i=1;i<t;i++){var l=h.getColumns(o+i);l&&(r+=l.renderWidth)}e.style.width=s?"".concat(r-k*t,"px"):""}}))})})}),r&&this.setCurrentRow(r),o&&o.selected&&e.selected.row&&e.selected.column&&this.addColSdCls(),this.$nextTick()},checkScrolling:function(){var e=this.$refs,t=e.tableBody,r=e.leftContainer,e=e.rightContainer,t=t?t.$el:null;t&&(r&&_tools.DomTools[0<t.scrollLeft?"addClass":"removeClass"](r,"scrolling--middle"),e&&_tools.DomTools[t.clientWidth<t.scrollWidth-Math.ceil(t.scrollLeft)?"addClass":"removeClass"](e,"scrolling--middle"))},preventEvent:function(t,e,r,o,i){var l,n=this;return _vXETable.default.interceptor.get(e).some(function(e){return!1===e(Object.assign({$grid:n.$xegrid,$table:n,$event:t},r))})||o&&(l=o()),i&&i(),l},handleGlobalMousedownEvent:function(r){var o=this,i=this.$el,e=this.$refs,t=this.$xegrid,l=this.$toolbar,n=this.mouseConfig,s=this.editStore,a=this.ctxMenuStore,u=this.editOpts,c=this.filterStore,h=this.getRowNode,d=s.actived,f=e.ctxWrapper,s=e.filterWrapper,e=e.validTip;s&&(getEventTargetNode(r,i,"vxe-cell--filter").flag||getEventTargetNode(r,s.$el).flag||getEventTargetNode(r,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(r,"event.clearFilter",c.args,this.closeFilter)),d.row?!1!==u.autoClear&&((c=d.args.cell)&&getEventTargetNode(r,c).flag||e&&getEventTargetNode(r,e.$el).flag||(!this.lastCallTime||this.lastCallTime+50<Date.now())&&(getEventTargetNode(r,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(r,"event.clearActived",d.args,function(){var e,t;(e=(e=(e="row"===u.mode?!!(t=getEventTargetNode(r,i,"vxe-body--row")).flag&&h(t.targetElem).item!==d.args.row:!getEventTargetNode(r,i,"col--edit").flag)||getEventTargetNode(r,i,"vxe-header--row").flag)||getEventTargetNode(r,i,"vxe-footer--row").flag)||!o.height||o.overflowY||(t=r.target,hasClass(t,"vxe-table--body-wrapper")&&(e=r.offsetY<t.clientHeight)),!e&&getEventTargetNode(r,i).flag||setTimeout(function(){return o.clearActived(r)})}))):n&&(getEventTargetNode(r,i).flag||t&&getEventTargetNode(r,t.$el).flag||f&&getEventTargetNode(r,f.$el).flag||l&&getEventTargetNode(r,l.$el).flag||(this.clearSelected(),getEventTargetNode(r,document.body,"vxe-table--ignore-areas-clear").flag||this.preventEvent(r,"event.clearAreas",{},function(){o.clearCellAreas(),o.clearCopyCellArea()}))),a.visible&&f&&!getEventTargetNode(r,f.$el).flag&&this.closeMenu(),this.isActivated=getEventTargetNode(r,(t||this).$el).flag},handleGlobalBlurEvent:function(){this.closeFilter(),this.closeMenu()},handleGlobalMousewheelEvent:function(){this.closeTooltip(),this.closeMenu()},keydownEvent:function(t){var r=this,o=this.filterStore,i=this.ctxMenuStore,e=this.editStore,l=this.keyboardConfig,n=this.mouseConfig,s=this.mouseOpts,a=e.actived;27===t.keyCode&&this.preventEvent(t,"event.keydown",null,function(){var e;l&&n&&s.area&&r.handleKeyboardEvent?r.handleKeyboardEvent(t):(a.row||o.visible||i.visible)&&(t.stopPropagation(),r.closeFilter(),r.closeMenu(),a.row&&(e=a.args,r.clearActived(t),n&&s.selected&&r.$nextTick(function(){return r.handleSelected(e,t)}))),r.emitEvent("keydown",{},t)})},handleGlobalKeydownEvent:function(H){var z=this;this.isActivated&&this.preventEvent(H,"event.keydown",null,function(){var e,t,r,o,i=z.filterStore,l=z.isCtxMenu,n=z.ctxMenuStore,s=z.editStore,a=z.editOpts,u=z.editConfig,c=z.mouseConfig,h=z.mouseOpts,d=z.keyboardConfig,f=z.keyboardOpts,g=z.treeConfig,p=z.treeOpts,x=z.highlightCurrentRow,v=z.currentRow,m=z.bodyCtxMenu,w=z.rowOpts,b=s.selected,C=s.actived,T=H.keyCode,_=8===T,R=9===T,E=13===T,y=27===T,S=32===T,O=37===T,U=38===T,k=39===T,D=40===T,I=46===T,M=113===T,$=93===T,A=H.metaKey,F=H.ctrlKey,L=H.shiftKey,N=H.altKey,V=O||U||k||D,s=l&&n.visible&&(E||S||V),l=(0,_utils.isEnableConf)(u)&&C.column&&C.row;i.visible?y&&z.closeFilter():(s?(H.preventDefault(),n.showChild&&hasChildrenList(n.selected)?z.moveCtxMenu(H,T,n,"selectChild",37,!1,n.selected.children):z.moveCtxMenu(H,T,n,"selected",39,!0,z.ctxMenuList)):d&&c&&h.area&&z.handleKeyboardEvent?z.handleKeyboardEvent(H):d&&S&&f.isChecked&&b.row&&b.column&&("checkbox"===b.column.type||"radio"===b.column.type)?(H.preventDefault(),"checkbox"===b.column.type?z.handleToggleCheckRowEvent(H,b.args):z.triggerRadioRowEvent(H,b.args)):M&&(0,_utils.isEnableConf)(u)?l||b.row&&b.column&&(H.stopPropagation(),H.preventDefault(),z.handleActived(b.args,H)):$?(z._keyCtx=b.row&&b.column&&m.length,clearTimeout(z.keyCtxTimeout),z.keyCtxTimeout=setTimeout(function(){z._keyCtx=!1},1e3)):E&&!N&&d&&f.isEnter&&(b.row||C.row||g&&(w.isCurrent||x)&&v)?F?C.row&&(r=C.args,z.clearActived(H),c&&h.selected&&z.$nextTick(function(){return z.handleSelected(r,H)})):b.row||C.row?(e=(b.row?b:C).args,L?f.enterToTab?z.moveTabSelected(e,L,H):z.moveSelected(e,O,!0,k,!1,H):f.enterToTab?z.moveTabSelected(e,L,H):z.moveSelected(e,O,!1,k,!0,H)):g&&(w.isCurrent||x)&&v&&((e=v[p.children])&&e.length&&(H.preventDefault(),t=e[0],r={$table:z,row:t},z.setTreeExpand(v,!0).then(function(){return z.scrollToRow(t)}).then(function(){return z.triggerCurrentRowEvent(H,r)}))):V&&d&&f.isArrow?l||(b.row&&b.column?z.moveSelected(b.args,O,U,k,D,H):(U||D)&&(w.isCurrent||x)&&z.moveCurrentRow(U,D,H)):R&&d&&f.isTab?b.row||b.column?z.moveTabSelected(b.args,L,H):(C.row||C.column)&&z.moveTabSelected(C.args,L,H):d&&(I||(g&&(w.isCurrent||x)&&v?_&&f.isArrow:_))?l||(L=f.delMethod,l=f.backMethod,f.isDel&&(b.row||b.column)?(L?L({row:b.row,rowIndex:z.getRowIndex(b.row),column:b.column,columnIndex:z.getColumnIndex(b.column),$table:z}):setCellValue(b.row,b.column,null),_?l?l({row:b.row,rowIndex:z.getRowIndex(b.row),column:b.column,columnIndex:z.getColumnIndex(b.column),$table:z}):z.handleActived(b.args,H):I&&z.updateFooter()):_&&f.isArrow&&g&&(w.isCurrent||x)&&v&&((o=_xeUtils.default.findTree(z.afterFullData,function(e){return e===v},p).parent)&&(H.preventDefault(),r={$table:z,row:o},z.setTreeExpand(o,!1).then(function(){return z.scrollToRow(o)}).then(function(){return z.triggerCurrentRowEvent(H,r)})))):d&&f.isEdit&&!F&&!A&&(S||48<=T&&T<=57||65<=T&&T<=90||96<=T&&T<=111||186<=T&&T<=192||219<=T&&T<=222)&&(f=f.editMethod,b.column&&b.row&&(0,_utils.isEnableConf)(b.column.editRender)&&(a.activeMethod&&!a.activeMethod(b.args)||(f?f({row:b.row,rowIndex:z.getRowIndex(b.row),column:b.column,columnIndex:z.getColumnIndex(b.column),$table:z}):(setCellValue(b.row,b.column,null),z.handleActived(b.args,H))))),z.emitEvent("keydown",{},H))})},handleGlobalPasteEvent:function(e){var t=this.isActivated,r=this.keyboardConfig,o=this.keyboardOpts,i=this.mouseConfig,l=this.mouseOpts,n=this.editStore,s=this.filterStore,n=n.actived;t&&!s.visible&&(n.row||n.column||r&&o.isClip&&i&&l.area&&this.handlePasteCellAreaEvent&&this.handlePasteCellAreaEvent(e),this.emitEvent("paste",{},e))},handleGlobalCopyEvent:function(e){var t=this.isActivated,r=this.keyboardConfig,o=this.keyboardOpts,i=this.mouseConfig,l=this.mouseOpts,n=this.editStore,s=this.filterStore,n=n.actived;t&&!s.visible&&(n.row||n.column||r&&o.isClip&&i&&l.area&&this.handleCopyCellAreaEvent&&this.handleCopyCellAreaEvent(e),this.emitEvent("copy",{},e))},handleGlobalCutEvent:function(e){var t=this.isActivated,r=this.keyboardConfig,o=this.keyboardOpts,i=this.mouseConfig,l=this.mouseOpts,n=this.editStore,s=this.filterStore,n=n.actived;t&&!s.visible&&(n.row||n.column||r&&o.isClip&&i&&l.area&&this.handleCutCellAreaEvent&&this.handleCutCellAreaEvent(e),this.emitEvent("cut",{},e))},handleGlobalResizeEvent:function(){this.closeMenu(),this.updateCellAreas(),this.recalculate(!0)},handleTooltipLeaveMethod:function(){var e=this,t=this.tooltipOpts;return setTimeout(function(){e.tooltipActive||e.closeTooltip()},t.leaveDelay),!1},handleTargetEnterEvent:function(){clearTimeout(this.tooltipTimeout),this.tooltipActive=!0,this.closeTooltip()},handleTargetLeaveEvent:function(){var t=this,e=this.tooltipOpts;this.tooltipActive=!1,e.enterable?this.tooltipTimeout=setTimeout(function(){var e=t.$refs.tooltip;e&&!e.isHover&&t.closeTooltip()},e.leaveDelay):this.closeTooltip()},triggerHeaderHelpEvent:function(e,t){var r,o=t.column.titleHelp;(o.content||o.message)&&(r=this.$refs,t=this.tooltipStore,r=r.tooltip,o=_tools.UtilTools.getFuncText(o.content||o.message),this.handleTargetEnterEvent(),t.visible=!0,r&&r.open(e.currentTarget,o))},triggerHeaderTooltipEvent:function(e,t){var r=this.tooltipStore,o=t.column,i=e.currentTarget;this.handleTargetEnterEvent(),r.column===o&&r.visible||this.handleTooltip(e,i,i,null,t)},triggerBodyTooltipEvent:function(e,t){var r,o,i=this.editConfig,l=this.editOpts,n=this.editStore,s=this.tooltipStore,a=n.actived,u=t.row,c=t.column,n=e.currentTarget;this.handleTargetEnterEvent(),(0,_utils.isEnableConf)(i)&&("row"===l.mode&&a.row===u||a.row===u&&a.column===c)||s.column===c&&s.row===u&&s.visible||(c.treeNode?(r=n.querySelector(".vxe-tree-cell"),"html"===c.type&&(o=n.querySelector(".vxe-cell--html"))):o=n.querySelector("html"===c.type?".vxe-cell--html":".vxe-cell--label"),this.handleTooltip(e,n,r||n.children[0],o,t))},triggerFooterTooltipEvent:function(e,t){var r=t.column,o=this.tooltipStore,i=e.currentTarget;this.handleTargetEnterEvent(),o.column===r&&o.visible||this.handleTooltip(e,i,i.querySelector(".vxe-cell--item")||i.children[0],null,t)},handleTooltip:function(e,t,r,o,i){i.cell=t;var l=this.$refs,n=this.tooltipOpts,s=this.tooltipStore,a=i.column,u=i.row,c=n.showAll,h=n.enabled,t=n.contentMethod,n=l.tooltip,l=t?t(i):null,i=t&&!_xeUtils.default.eqNull(l),t=i?l:("html"===a.type?r.innerText:r.textContent).trim(),l=r.scrollWidth>r.clientWidth;return t&&(c||h||i||l)&&(Object.assign(s,{row:u,column:a,visible:!0}),n&&n.open(!l&&o||r,_tools.UtilTools.formatText(t))),this.$nextTick()},openTooltip:function(e,t){var r=this.$refs.commTip;return r?r.open(e,t):this.$nextTick()},closeTooltip:function(){var e=this.$refs,t=this.tooltipStore,r=e.tooltip,e=e.commTip;return t.visible&&(Object.assign(t,{row:null,column:null,content:null,visible:!1}),r&&r.close()),e&&e.close(),this.$nextTick()},isAllCheckboxChecked:function(){return this.isAllSelected},isAllCheckboxIndeterminate:function(){return!this.isAllSelected&&this.isIndeterminate},isCheckboxIndeterminate:function(){return _tools.UtilTools.warn("vxe.error.delFunc",["isCheckboxIndeterminate","isAllCheckboxIndeterminate"]),this.isAllCheckboxIndeterminate()},getCheckboxIndeterminateRecords:function(e){var t=this.treeConfig,r=this.treeIndeterminates,o=this.afterFullData;return t?e?r.slice(0):r.filter(function(e){return o.indexOf(e)}):[]},handleDefaultSelectionChecked:function(){var t,r=this.fullDataRowIdData,e=this.checkboxOpts,o=e.checkAll,e=e.checkRowKeys;o?this.setAllCheckboxRow(!0):e&&(t=[],e.forEach(function(e){r[e]&&t.push(r[e].row)}),this.setCheckboxRow(t,!0))},setCheckboxRow:function(e,t){var r=this;return(e=e&&!_xeUtils.default.isArray(e)?[e]:e).forEach(function(e){return r.handleSelectRow({row:e},!!t)}),this.$nextTick()},isCheckedByCheckboxRow:function(e){var t=this.checkboxOpts.checkField;return t?_xeUtils.default.get(e,t):-1<this.selection.indexOf(e)},isIndeterminateByCheckboxRow:function(e){return-1<this.treeIndeterminates.indexOf(e)&&!this.isCheckedByCheckboxRow(e)},handleSelectRow:function(e,r){var o=this,i=e.row,l=this.selection,t=this.afterFullData,n=this.treeConfig,s=this.treeOpts,a=this.treeIndeterminates,u=this.checkboxOpts,c=u.checkField,e=u.checkStrictly,h=u.checkMethod;if(c)if(n&&!e){-1===r?(-1===a.indexOf(i)&&a.push(i),_xeUtils.default.set(i,c,!1)):_xeUtils.default.eachTree([i],function(t){i!==t&&h&&!h({row:t})||(_xeUtils.default.set(t,c,r),_xeUtils.default.remove(a,function(e){return e===t}),o.handleCheckboxReserveRow(i,r))},s);u=_xeUtils.default.findTree(t,function(e){return e===i},s);if(u&&u.parent){var d,f=h?u.items.filter(function(e){return h({row:e})}):u.items;return d=_xeUtils.default.find(u.items,function(e){return-1<a.indexOf(e)})?-1:(d=u.items.filter(function(e){return _xeUtils.default.get(e,c)})).filter(function(e){return-1<f.indexOf(e)}).length===f.length||!(!d.length&&-1!==r)&&-1,this.handleSelectRow({row:u.parent},d)}}else h&&!h({row:i})||(_xeUtils.default.set(i,c,r),this.handleCheckboxReserveRow(i,r));else if(n&&!e){-1===r?(-1===a.indexOf(i)&&a.push(i),_xeUtils.default.remove(l,function(e){return e===i})):_xeUtils.default.eachTree([i],function(t){i!==t&&h&&!h({row:t})||(r?l.push(t):_xeUtils.default.remove(l,function(e){return e===t}),_xeUtils.default.remove(a,function(e){return e===t}),o.handleCheckboxReserveRow(i,r))},s);s=_xeUtils.default.findTree(t,function(e){return e===i},s);if(s&&s.parent){var g,p=h?s.items.filter(function(e){return h({row:e})}):s.items;return g=_xeUtils.default.find(s.items,function(e){return-1<a.indexOf(e)})?-1:(g=s.items.filter(function(e){return-1<l.indexOf(e)})).filter(function(e){return-1<p.indexOf(e)}).length===p.length||!(!g.length&&-1!==r)&&-1,this.handleSelectRow({row:s.parent},g)}}else h&&!h({row:i})||(r?-1===l.indexOf(i)&&l.push(i):_xeUtils.default.remove(l,function(e){return e===i}),this.handleCheckboxReserveRow(i,r));this.checkSelectionStatus()},handleToggleCheckRowEvent:function(e,t){var r=this.selection,o=this.checkboxOpts.checkField,i=t.row,i=o?!_xeUtils.default.get(i,o):-1===r.indexOf(i);e?this.triggerCheckRowEvent(e,t,i):this.handleSelectRow(t,i)},triggerCheckRowEvent:function(e,t,r){var o=this.checkboxOpts.checkMethod;o&&!o({row:t.row})||(this.handleSelectRow(t,r),this.emitEvent("checkbox-change",Object.assign({records:this.getCheckboxRecords(),reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:r},t),e))},toggleCheckboxRow:function(e){return this.handleToggleCheckRowEvent(null,{row:e}),this.$nextTick()},setAllCheckboxRow:function(t){var r=this,o=this.afterFullData,e=this.treeConfig,i=this.treeOpts,l=this.selection,n=this.checkboxReserveRowMap,s=this.checkboxOpts,a=s.checkField,u=s.reserve,c=s.checkStrictly,h=s.checkMethod,d=[],s=e?[]:l.filter(function(e){return-1===o.indexOf(e)});c?this.isAllSelected=t:(a?(c=function(e){h&&!h({row:e})||(t&&d.push(e),_xeUtils.default.set(e,a,t))},e?_xeUtils.default.eachTree(o,c,i):o.forEach(c)):e?t?_xeUtils.default.eachTree(o,function(e){h&&!h({row:e})||d.push(e)},i):h&&_xeUtils.default.eachTree(o,function(e){!h({row:e})&&-1<l.indexOf(e)&&d.push(e)},i):t?d=h?o.filter(function(e){return-1<l.indexOf(e)||h({row:e})}):o.slice(0):h&&(d=o.filter(function(e){return h({row:e})?0:-1<l.indexOf(e)})),u&&(t?d.forEach(function(e){n[getRowid(r,e)]=e}):o.forEach(function(e){return r.handleCheckboxReserveRow(e,!1)})),this.selection=a?[]:s.concat(d)),this.treeIndeterminates=[],this.checkSelectionStatus()},checkSelectionStatus:function(){var e=this.afterFullData,t=this.selection,r=this.treeIndeterminates,o=this.checkboxOpts,i=this.treeConfig,l=o.checkField,n=o.halfField,s=o.checkStrictly,a=o.checkMethod;s||(s=o=!1,s=l?(o=e.length&&e.every(a?function(e){return!a({row:e})||_xeUtils.default.get(e,l)}:function(e){return _xeUtils.default.get(e,l)}),i?n?!o&&e.some(function(e){return _xeUtils.default.get(e,l)||_xeUtils.default.get(e,n)||-1<r.indexOf(e)}):!o&&e.some(function(e){return _xeUtils.default.get(e,l)||-1<r.indexOf(e)}):n?!o&&e.some(function(e){return _xeUtils.default.get(e,l)||_xeUtils.default.get(e,n)}):!o&&e.some(function(e){return _xeUtils.default.get(e,l)})):(o=e.length&&e.every(a?function(e){return!a({row:e})||-1<t.indexOf(e)}:function(e){return-1<t.indexOf(e)}),i?!o&&e.some(function(e){return-1<r.indexOf(e)||-1<t.indexOf(e)}):!o&&e.some(function(e){return-1<t.indexOf(e)})),this.isAllSelected=o,this.isIndeterminate=s)},handleReserveStatus:function(){var e=this.expandColumn,t=this.treeOpts,r=this.treeConfig,o=this.fullDataRowIdData,i=this.fullAllDataRowMap,l=this.currentRow,n=this.selectRow,s=this.radioReserveRow,a=this.radioOpts,u=this.checkboxOpts,c=this.selection,h=this.rowExpandeds,d=this.treeExpandeds,f=this.expandOpts;n&&!i.has(n)&&(this.selectRow=null),a.reserve&&s&&(o[s=getRowid(this,s)]&&this.setRadioRow(o[s].row)),this.selection=getRecoverRow(this,c),u.reserve&&this.setCheckboxRow(handleReserveRow(this,this.checkboxReserveRowMap),!0),l&&!i.has(l)&&(this.currentRow=null),this.rowExpandeds=e?getRecoverRow(this,h):[],e&&f.reserve&&this.setRowExpand(handleReserveRow(this,this.rowExpandedReserveRowMap),!0),this.treeExpandeds=r?getRecoverRow(this,d):[],r&&t.reserve&&this.setTreeExpand(handleReserveRow(this,this.treeExpandedReserveRowMap),!0)},getRadioReserveRecord:function(e){var t=this.fullDataRowIdData,r=this.radioReserveRow,o=this.radioOpts,i=this.afterFullData,l=this.treeConfig,n=this.treeOpts;if(o.reserve&&r){var s=getRowid(this,r);if(e){if(!t[s])return r}else{var a=getRowkey(this);if(l){if(_xeUtils.default.findTree(i,function(e){return s===_xeUtils.default.get(e,a)},n))return r}else if(!i.some(function(e){return s===_xeUtils.default.get(e,a)}))return r}}return null},clearRadioReserve:function(){return this.radioReserveRow=null,this.$nextTick()},handleRadioReserveRow:function(e){this.radioOpts.reserve&&(this.radioReserveRow=e)},getCheckboxReserveRecords:function(r){var o,t=this,i=this.fullDataRowIdData,e=this.afterFullData,l=this.checkboxReserveRowMap,n=this.checkboxOpts,s=this.treeConfig,a=this.treeOpts,u=[];return n.reserve&&(o={},s?_xeUtils.default.eachTree(e,function(e){o[getRowid(t,e)]=1},a):e.forEach(function(e){o[getRowid(t,e)]=1}),_xeUtils.default.each(l,function(e,t){e&&(r?i[t]||u.push(e):o[t]||u.push(e))})),u},clearCheckboxReserve:function(){return this.checkboxReserveRowMap={},this.$nextTick()},handleCheckboxReserveRow:function(e,t){var r,o=this.checkboxReserveRowMap;this.checkboxOpts.reserve&&(r=getRowid(this,e),t?o[r]=e:o[r]&&delete o[r])},triggerCheckAllEvent:function(e,t){this.setAllCheckboxRow(t),this.emitEvent("checkbox-all",{records:this.getCheckboxRecords(),reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:t},e)},toggleAllCheckboxRow:function(){return this.triggerCheckAllEvent(null,!this.isAllSelected),this.$nextTick()},clearCheckboxRow:function(){var t=this,e=this.tableFullData,r=this.treeConfig,o=this.treeOpts,i=this.checkboxOpts,l=i.checkField,i=i.reserve;return l&&(r?_xeUtils.default.eachTree(e,function(e){return _xeUtils.default.set(e,l,!1)},o):e.forEach(function(e){return _xeUtils.default.set(e,l,!1)})),i&&e.forEach(function(e){return t.handleCheckboxReserveRow(e,!1)}),this.isAllSelected=!1,this.isIndeterminate=!1,this.selection=[],this.treeIndeterminates=[],this.$nextTick()},handleDefaultRadioChecked:function(){var e=this.radioOpts,t=this.fullDataRowIdData,r=e.checkRowKey,e=e.reserve;r&&(t[r]&&this.setRadioRow(t[r].row),e&&(e=getRowkey(this),this.radioReserveRow=_defineProperty({},e,r)))},triggerRadioRowEvent:function(e,t){var r=this.selectRow,o=this.radioOpts,i=t.row,l=r!==i;l?this.setRadioRow(i):o.strict||(l=r===i)&&(i=null,this.clearRadioRow()),l&&this.emitEvent("radio-change",_objectSpread({oldValue:r,newValue:i},t),e)},triggerCurrentRowEvent:function(e,t){var r=this.currentRow,o=t.row,i=r!==o;this.setCurrentRow(o),i&&this.emitEvent("current-change",_objectSpread({oldValue:r,newValue:o},t),e)},setCurrentRow:function(e){var t=this.$el,r=this.rowOpts;return this.clearCurrentRow(),this.clearCurrentColumn(),this.currentRow=e,(r.isCurrent||this.highlightCurrentRow)&&t&&_xeUtils.default.arrayEach(t.querySelectorAll('[rowid="'.concat(getRowid(this,e),'"]')),function(e){return addClass(e,"row--current")}),this.$nextTick()},isCheckedByRadioRow:function(e){return this.selectRow===e},setRadioRow:function(e){var t=this.radioOpts.checkMethod;return!e||t&&!t({row:e})||(this.selectRow=e,this.handleRadioReserveRow(e)),this.$nextTick()},clearCurrentRow:function(){var e=this.$el;return this.currentRow=null,this.hoverRow=null,e&&_xeUtils.default.arrayEach(e.querySelectorAll(".row--current"),function(e){return removeClass(e,"row--current")}),this.$nextTick()},clearRadioRow:function(){return this.selectRow=null,this.$nextTick()},getCurrentRecord:function(){return this.rowOpts.isCurrent||this.highlightCurrentRow?this.currentRow:null},getRadioRecord:function(e){var t=this.treeConfig,r=this.treeOpts,o=this.selectRow,i=this.fullDataRowIdData,l=this.afterFullData;if(o){var n=getRowid(this,o);if(e){if(!i[n])return o}else if(t){var s=getRowkey(this);if(_xeUtils.default.findTree(l,function(e){return n===_xeUtils.default.get(e,s)},r))return o}else if(-1<l.indexOf(o))return o}return null},triggerHoverEvent:function(e,t){t=t.row;this.setHoverRow(t)},setHoverRow:function(e){var t=this.$el,r=getRowid(this,e);this.clearHoverRow(),t&&_xeUtils.default.arrayEach(t.querySelectorAll('[rowid="'.concat(r,'"]')),function(e){return 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 removeClass(e,"row--hover")}),this.hoverRow=null},triggerHeaderCellClickEvent:function(e,t){var r=this._lastResizeTime,o=this.sortOpts,i=t.column,l=e.currentTarget,n=r&&r>Date.now()-300,s=getEventTargetNode(e,l,"vxe-cell--sort").flag,r=getEventTargetNode(e,l,"vxe-cell--filter").flag;return"cell"!==o.trigger||n||s||r||this.triggerSortEvent(e,i,getNextSortOrder(this,i)),this.emitEvent("header-cell-click",Object.assign({triggerResizable:n,triggerSort:s,triggerFilter:r,cell:l},t),e),this.columnOpts.isCurrent||this.highlightCurrentColumn?this.setCurrentColumn(i):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.clearCurrentRow(),this.clearCurrentColumn(),this.currentColumn=e),this.$nextTick()},clearCurrentColumn:function(){return this.currentColumn=null,this.$nextTick()},checkValidate:function(e){return _vXETable.default._valid?this.triggerValidate(e):this.$nextTick()},handleChangeCell:function(e,t){var r=this;this.checkValidate("blur").catch(function(e){return e}).then(function(){r.handleActived(t,e).then(function(){return r.checkValidate("change")}).catch(function(e){return e})})},triggerCellClickEvent:function(e,t){var r=this.highlightCurrentRow,o=this.editStore,i=this.radioOpts,l=this.expandOpts,n=this.treeOpts,s=this.editConfig,a=this.editOpts,u=this.checkboxOpts,c=this.rowOpts,h=o.actived,d=t,f=d.row,g=d.column,p=g.type,x=g.treeNode,v="radio"===p,m="checkbox"===p,w="expand"===p,b=e.currentTarget,C=v&&getEventTargetNode(e,b,"vxe-cell--radio").flag,o=m&&getEventTargetNode(e,b,"vxe-cell--checkbox").flag,d=x&&getEventTargetNode(e,b,"vxe-tree--btn-wrapper").flag,p=w&&getEventTargetNode(e,b,"vxe-table--expanded").flag;t=Object.assign({cell:b,triggerRadio:C,triggerCheckbox:o,triggerTreeNode:d,triggerExpandNode:p},t),o||C||(!p&&("row"===l.trigger||w&&"cell"===l.trigger)&&this.triggerRowExpandEvent(e,t),("row"===n.trigger||x&&"cell"===n.trigger)&&this.triggerTreeExpandEvent(e,t)),d||(p||((c.isCurrent||r)&&(o||C||this.triggerCurrentRowEvent(e,t)),!C&&("row"===i.trigger||v&&"cell"===i.trigger)&&this.triggerRadioRowEvent(e,t),!o&&("row"===u.trigger||m&&"cell"===u.trigger)&&this.handleToggleCheckRowEvent(e,t)),(0,_utils.isEnableConf)(s)&&("manual"===a.trigger?h.args&&h.row===f&&g!==h.column&&this.handleChangeCell(e,t):h.args&&f===h.row&&g===h.column||("click"===a.trigger||"dblclick"===a.trigger&&"row"===a.mode&&h.row===f)&&this.handleChangeCell(e,t))),this.emitEvent("cell-click",t,e)},triggerCellDblclickEvent:function(e,t){var r=this,o=this.editStore,i=this.editConfig,l=this.editOpts,n=o.actived,o=e.currentTarget;t.cell=o,(0,_utils.isEnableConf)(i)&&"dblclick"===l.trigger&&(n.args&&e.currentTarget===n.args.cell||("row"===l.mode?this.checkValidate("blur").catch(function(e){return e}).then(function(){r.handleActived(t,e).then(function(){return r.checkValidate("change")}).catch(function(e){return e})}):"cell"===l.mode&&this.handleActived(t,e).then(function(){return r.checkValidate("change")}).catch(function(e){return e}))),this.emitEvent("cell-dblclick",t,e)},handleDefaultSort:function(){var r=this,e=this.sortConfig,t=this.sortOpts,o=t.defaultSort;o&&(o=!_xeUtils.default.isArray(o)?[o]:o).length&&((e.multiple?o:o.slice(0,1)).forEach(function(e){var t=e.field,e=e.order;t&&e&&((t=r.getColumnByField(t))&&t.sortable&&(t.order=e,t.sortTime=Date.now()))}),t.remote||this.handleTableData(!0).then(this.updateStyle))},triggerSortEvent:function(e,t,r){var o=this.sortOpts,i=t.property;(t.sortable||t.remoteSort)&&(r&&t.order!==r?this.sort({field:i,order:r}):this.clearSort(o.multiple?t:null),t={column:t,property:i,order:t.order,sortList:this.getSortColumns()},this.emitEvent("sort-change",t,e))},sort:function(e,t){var o,i=this,r=this.sortOpts,l=r.multiple,n=r.remote,s=r.orders;return e&&_xeUtils.default.isString(e)&&(e=[{field:e,order:t}]),(e=!_xeUtils.default.isArray(e)?[e]:e).length?(l||clearAllSort(this),(l?e:[e[0]]).forEach(function(e){var t=e.field,r=e.order,e=t;(e=_xeUtils.default.isString(t)?i.getColumnByField(t):e)&&(e.sortable||e.remoteSort)&&(o=o||e,-1===s.indexOf(r)&&(r=getNextSortOrder(i,e)),e.order!==r&&(e.order=r))}),(!n||o&&o.remoteSort)&&this.handleTableData(!0),this.$nextTick().then(this.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&&_tools.UtilTools.warn("vxe.error.delFunc",["getSortColumn","getSortColumns"]),_xeUtils.default.find(this.tableFullColumn,function(e){return(e.sortable||e.remoteSort)&&e.order})},isSort:function(e){if(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&e.sortable&&!!e.order}return 0<this.getSortColumns().length},getSortColumns:function(){var r=[];return this.tableFullColumn.forEach(function(e){var t=e.order;(e.sortable||e.remoteSort)&&t&&r.push({column:e,property:e.property,order:t})}),r},closeFilter:function(){var e=this.filterStore,t=e.column,r=e.visible;return Object.assign(e,{isAllSelected:!1,isIndeterminate:!1,options:[],visible:!1}),r&&this.emitEvent("filter-visible",{column:t,property:t.property,filterList:this.getCheckedFilters(),visible:!1},null),this.$nextTick()},isFilter:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e?e.filters&&e.filters.some(function(e){return e.checked}):0<this.getCheckedFilters().length},isRowExpandLoaded:function(e){e=this.fullAllDataRowMap.get(e);return e&&e.expandLoaded},clearRowExpandLoaded:function(t){var e=this.expandOpts,r=this.expandLazyLoadeds,o=this.fullAllDataRowMap,e=e.lazy,o=o.get(t);return e&&o&&(o.expandLoaded=!1,_xeUtils.default.remove(r,function(e){return t===e})),this.$nextTick()},reloadRowExpand:function(e){var t=this,r=this.expandOpts,o=this.expandLazyLoadeds;return r.lazy&&-1===o.indexOf(e)&&this.clearRowExpandLoaded(e).then(function(){return t.handleAsyncRowExpand(e)}),this.$nextTick()},reloadExpandContent:function(e){return"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("vxe.error.delFunc",["reloadExpandContent","reloadRowExpand"]),this.reloadRowExpand(e)},triggerRowExpandEvent:function(e,t){var r=this.expandOpts,o=this.expandLazyLoadeds,i=this.expandColumn,l=t.row;r.lazy&&-1!==o.indexOf(l)||(t=!this.isExpandByRow(l),r=this.getColumnIndex(i),o=this.getVMColumnIndex(i),this.setRowExpand(l,t),this.emitEvent("toggle-row-expand",{expanded:t,column:i,columnIndex:r,$columnIndex:o,row:l,rowIndex:this.getRowIndex(l),$rowIndex:this.getVMRowIndex(l)},e))},toggleRowExpand:function(e){return this.setRowExpand(e,!this.isExpandByRow(e))},handleDefaultRowExpand:function(){var t,e=this.expandOpts,r=this.fullDataRowIdData,o=e.expandAll,e=e.expandRowKeys;o?this.setAllRowExpand(!0):e&&(t=[],e.forEach(function(e){r[e]&&t.push(r[e].row)}),this.setRowExpand(t,!0))},setAllRowExpand:function(e){return this.setRowExpand(this.expandOpts.lazy?this.tableData:this.tableFullData,e)},handleAsyncRowExpand:function(t){var r=this,o=this.fullAllDataRowMap.get(t);return new Promise(function(e){r.expandLazyLoadeds.push(t),r.expandOpts.loadMethod({$table:r,row:t,rowIndex:r.getRowIndex(t),$rowIndex:r.getVMRowIndex(t)}).catch(function(e){return e}).then(function(){o.expandLoaded=!0,_xeUtils.default.remove(r.expandLazyLoadeds,function(e){return e===t}),r.rowExpandeds.push(t),e(r.$nextTick().then(r.recalculate))})})},setRowExpand:function(e,t){var r,o=this,i=this.fullAllDataRowMap,l=this.expandLazyLoadeds,n=this.expandOpts,s=this.expandColumn,a=this.rowExpandeds,u=n.reserve,c=n.lazy,h=n.accordion,d=n.toggleMethod,f=[],g=this.getColumnIndex(s),p=this.getVMColumnIndex(s);return e&&(_xeUtils.default.isArray(e)||(e=[e]),h&&(a=[],e=e.slice(e.length-1,e.length)),r=d?e.filter(function(e){return d({expanded:t,column:s,columnIndex:g,$columnIndex:p,row:e,rowIndex:o.getRowIndex(e),$rowIndex:o.getVMRowIndex(e)})}):e,t?r.forEach(function(e){var t;-1===a.indexOf(e)&&(t=i.get(e),c&&!t.expandLoaded&&-1===l.indexOf(e)?f.push(o.handleAsyncRowExpand(e)):a.push(e))}):_xeUtils.default.remove(a,function(e){return-1<r.indexOf(e)}),u&&r.forEach(function(e){return o.handleRowExpandReserve(e,t)})),this.rowExpandeds=a,Promise.all(f).then(this.recalculate)},isExpandByRow:function(e){return-1<this.rowExpandeds.indexOf(e)},clearRowExpand:function(){var t=this,e=this.expandOpts,r=this.rowExpandeds,o=this.tableFullData,e=e.reserve,i=r.length;return this.rowExpandeds=[],e&&o.forEach(function(e){return t.handleRowExpandReserve(e,!1)}),this.$nextTick().then(function(){i&&t.recalculate()})},clearRowExpandReserve:function(){return this.rowExpandedReserveRowMap={},this.$nextTick()},handleRowExpandReserve:function(e,t){var r,o=this.rowExpandedReserveRowMap;this.expandOpts.reserve&&(r=getRowid(this,e),t?o[r]=e:o[r]&&delete o[r])},getRowExpandRecords:function(){return this.rowExpandeds.slice(0)},getTreeExpandRecords:function(){return this.treeExpandeds.slice(0)},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(t){var e=this.treeOpts,r=this.treeExpandeds,o=this.fullAllDataRowMap,e=e.lazy,o=o.get(t);return e&&o&&(o.treeLoaded=!1,_xeUtils.default.remove(r,function(e){return t===e})),this.$nextTick()},reloadTreeExpand:function(e){var t=this,r=this.treeOpts,o=this.treeLazyLoadeds,i=r.transform,l=r.lazy,r=r.hasChild;return l&&e[r]&&-1===o.indexOf(e)&&this.clearTreeExpandLoaded(e).then(function(){return t.handleAsyncTreeExpandChilds(e)}).then(function(){if(i)return t.updateVirtualTreeData()}).then(function(){return t.recalculate()}),this.$nextTick()},reloadTreeChilds:function(e){return"development"===process.env.NODE_ENV&&_tools.UtilTools.warn("vxe.error.delFunc",["reloadTreeChilds","reloadTreeExpand"]),this.reloadTreeExpand(e)},triggerTreeExpandEvent:function(e,t){var r=this.treeOpts,o=this.treeLazyLoadeds,i=t.row,l=t.column;r.lazy&&-1!==o.indexOf(i)||(t=!this.isTreeExpandByRow(i),r=this.getColumnIndex(l),o=this.getVMColumnIndex(l),this.setTreeExpand(i,t),this.emitEvent("toggle-tree-expand",{expanded:t,column:l,columnIndex:r,$columnIndex:o,row:i},e))},toggleTreeExpand:function(e){return this.setTreeExpand(e,!this.isTreeExpandByRow(e))},handleDefaultTreeExpand:function(){var e,r,o,t=this.treeConfig,i=this.treeOpts,l=this.tableFullData;t&&(e=i.expandAll,t=i.expandRowKeys,e?this.setAllTreeExpand(!0):t&&(r=[],o=getRowkey(this),t.forEach(function(t){var e=_xeUtils.default.findTree(l,function(e){return t===_xeUtils.default.get(e,o)},i);e&&r.push(e.item)}),this.setTreeExpand(r,!0)))},handleAsyncTreeExpandChilds:function(r){var o=this,e=this.fullAllDataRowMap,i=this.treeExpandeds,t=this.treeOpts,l=this.treeLazyLoadeds,n=this.checkboxOpts,s=t.loadMethod,a=n.checkStrictly,u=e.get(r);return new Promise(function(t){l.push(r),s({$table:o,row:r}).catch(function(){return[]}).then(function(e){u.treeLoaded=!0,_xeUtils.default.remove(l,function(e){return e===r}),(e=!_xeUtils.default.isArray(e)?[]:e)&&o.loadTreeChildren(r,e).then(function(e){e.length&&-1===i.indexOf(r)&&i.push(r),!a&&o.isCheckedByCheckboxRow(r)&&o.setCheckboxRow(e,!0)}),t(o.$nextTick().then(o.recalculate))})})},setAllTreeExpand:function(e){var t=this.tableFullData,r=this.treeOpts,o=r.lazy,i=r.children,l=[];return _xeUtils.default.eachTree(t,function(e){var t=e[i];(o||t&&t.length)&&l.push(e)},r),this.setTreeExpand(l,e)},handleBaseTreeExpand:function(e,t){var r,o=this,i=this.fullAllDataRowMap,l=this.tableFullData,n=this.treeExpandeds,s=this.treeOpts,a=this.treeLazyLoadeds,u=this.treeNodeColumn,c=s.reserve,h=s.lazy,d=s.hasChild,f=s.children,g=s.accordion,p=s.toggleMethod,x=[],v=this.getColumnIndex(u),m=this.getVMColumnIndex(u),w=p?e.filter(function(e){return p({expanded:t,column:u,columnIndex:v,$columnIndex:m,row:e})}):e;return g&&(w=w.length?[w[w.length-1]]:[],(r=_xeUtils.default.findTree(l,function(e){return e===w[0]},s))&&_xeUtils.default.remove(n,function(e){return-1<r.items.indexOf(e)})),t?w.forEach(function(e){var t;-1===n.indexOf(e)&&(t=i.get(e),h&&e[d]&&!t.treeLoaded&&-1===a.indexOf(e)?x.push(o.handleAsyncTreeExpandChilds(e)):e[f]&&e[f].length&&n.push(e))}):_xeUtils.default.remove(n,function(e){return-1<w.indexOf(e)}),c&&w.forEach(function(e){return o.handleTreeExpandReserve(e,t)}),Promise.all(x).then(this.recalculate)},updateVirtualTreeData:function(){var e=this,t=this.scrollYLoad,l=this.treeExpandeds,r=this.treeOpts,o=this.treeFullData,n=[],s=new Map;_xeUtils.default.eachTree(o,function(e,t,r,o,i){(!i||s.has(i)&&-1<l.indexOf(i))&&(s.set(e,1),n.push(e))},r);r=this.updateScrollYStatus(n);return this.tableFullData=r?n:o,r||t!==r?this.handleTableData(!0).then(function(){return e.recalculate()}):this.$nextTick()},handleVirtualTreeExpand:function(e,t){var r=this;return this.handleBaseTreeExpand(e,t).then(function(){return r.updateVirtualTreeData()}).then(function(){return r.recalculate()})},setTreeExpand:function(e,t){var r=this.treeOpts.transform;return e&&(e=!_xeUtils.default.isArray(e)?[e]:e).length?r?this.handleVirtualTreeExpand(e,t):this.handleBaseTreeExpand(e,t):this.$nextTick()},isTreeExpandByRow:function(e){return-1<this.treeExpandeds.indexOf(e)},clearTreeExpand:function(){var t=this,e=this.treeOpts,r=this.treeExpandeds,o=this.tableFullData,i=e.reserve,l=r.length;return this.treeExpandeds=[],i&&_xeUtils.default.eachTree(o,function(e){return t.handleTreeExpandReserve(e,!1)},e),this.updateVirtualTreeData().then(function(){l&&t.recalculate()})},clearTreeExpandReserve:function(){return this.treeExpandedReserveRowMap={},this.$nextTick()},handleTreeExpandReserve:function(e,t){var r,o=this.treeExpandedReserveRowMap;this.treeOpts.reserve&&(r=getRowid(this,e),t?o[r]=e:o[r]&&delete o[r])},getScroll:function(){var e=this.$refs,t=this.scrollXLoad,r=this.scrollYLoad,e=e.tableBody.$el;return{virtualX:t,virtualY:r,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}},triggerScrollXEvent:function(){this.loadScrollXData()},loadScrollXData:function(){var e=this.mergeList,t=this.mergeFooterList,r=this.scrollXStore,o=r.startIndex,i=r.endIndex,l=r.offsetSize,n=computeVirtualX(this),s=n.toVisibleIndex,n=n.visibleSize,l={startIndex:Math.max(0,s-1-l),endIndex:s+n+l};calculateMergerOffserIndex(e.concat(t),l,"col");t=l.startIndex,l=l.endIndex;(s<=o||i-n-1<=s)&&(o===t&&i===l||(r.startIndex=t,r.endIndex=l,this.updateScrollXData())),this.closeTooltip()},triggerScrollYEvent:function(e){var t=this.scrollYStore,r=t.adaptive,o=t.offsetSize,t=t.visibleSize;isWebkit&&r&&2*o+t<=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,r=this.scrollYStore,o=r.startIndex,i=r.endIndex,l=r.visibleSize,n=r.offsetSize,s=r.rowHeight,e=(e.currentTarget||e.target).scrollTop,s=Math.floor(e/s),n={startIndex:Math.max(0,s-1-n),endIndex:s+l+n};calculateMergerOffserIndex(t,n,"row");t=n.startIndex,n=n.endIndex;(s<=o||i-l-1<=s)&&(o===t&&i===n||(r.startIndex=t,r.endIndex=n,this.updateScrollYData()))},computeScrollLoad:function(){var s=this;return this.$nextTick().then(function(){var e=s.sYOpts,t=s.sXOpts,r=s.scrollXLoad,o=s.scrollYLoad,i=s.scrollXStore,l=s.scrollYStore;r?(r=computeVirtualX(s).visibleSize,n=t.oSize?_xeUtils.default.toNumber(t.oSize):_dom.browse.msie?10:_dom.browse.edge?5:0,i.offsetSize=n,i.visibleSize=r,i.endIndex=Math.max(i.startIndex+i.visibleSize+n,i.endIndex),s.updateScrollXData()):s.updateScrollXSpace();var n=computeVirtualY(s),i=n.rowHeight,n=n.visibleSize;l.rowHeight=i,o?(e=e.oSize?_xeUtils.default.toNumber(e.oSize):_dom.browse.msie?20:_dom.browse.edge?10:0,l.offsetSize=e,l.visibleSize=n,l.endIndex=Math.max(l.startIndex+n+e,l.endIndex),s.updateScrollYData()):s.updateScrollYSpace(),s.rowHeight=i,s.$nextTick(s.updateStyle)})},handleTableColumn:function(){var e=this.scrollXLoad,t=this.visibleColumn,r=this.scrollXStore;this.tableColumn=e?t.slice(r.startIndex,r.endIndex):t.slice(0)},updateScrollXData:function(){this.handleTableColumn(),this.updateScrollXSpace()},updateScrollXSpace:function(){var e=this.$refs,o=this.elemStore,t=this.visibleColumn,r=this.scrollXStore,i=this.scrollXLoad,l=this.tableWidth,n=this.scrollbarWidth,s=e.tableHeader,a=e.tableBody,e=e.tableFooter,a=a?a.$el:null;a&&(s=s?s.$el:null,e=e?e.$el:null,s=s?s.querySelector(".vxe-table--header"):null,a=a.querySelector(".vxe-table--body"),e=e?e.querySelector(".vxe-table--footer"):null,t=t.slice(0,r.startIndex).reduce(function(e,t){return e+t.renderWidth},0),r="",i&&(r="".concat(t,"px")),s&&(s.style.marginLeft=r),a.style.marginLeft=r,e&&(e.style.marginLeft=r),["main"].forEach(function(r){["header","body","footer"].forEach(function(e){var t=o["".concat(r,"-").concat(e,"-xSpace")];t&&(t.style.width=i?"".concat(l+("header"===e?n:0),"px"):"")})}),this.$nextTick(this.updateStyle))},updateScrollYData:function(){this.handleTableData(),this.updateScrollYSpace()},updateScrollYSpace:function(){var r=this.elemStore,e=this.scrollYStore,t=this.scrollYLoad,o=this.afterFullData,i=e.startIndex,e=e.rowHeight,o=o.length*e,e=Math.max(0,i*e),l="",n="";t&&(l="".concat(e,"px"),n="".concat(o,"px")),["main","left","right"].forEach(function(t){var e=r["".concat(t,"-body-table")];e&&(e.style.marginTop=l),["header","body","footer"].forEach(function(e){e=r["".concat(t,"-").concat(e,"-ySpace")];e&&(e.style.height=n)})}),this.$nextTick(this.updateStyle)},scrollTo:function(e,t){var r=this,o=this.$refs,i=o.tableBody,l=o.rightBody,o=o.tableFooter,i=i?i.$el:null,l=l?l.$el:null,o=o?o.$el:null;return _xeUtils.default.isNumber(e)&&(0,_dom.setScrollLeft)(o||i,e),_xeUtils.default.isNumber(t)&&(0,_dom.setScrollTop)(l||i,t),this.scrollXLoad||this.scrollYLoad?new Promise(function(e){return setTimeout(function(){return e(r.$nextTick())},50)}):this.$nextTick()},scrollToRow:function(e,t){var r=[];return e&&(this.treeConfig?r.push(this.scrollToTreeRow(e)):r.push(_tools.DomTools.rowToVisible(this,e))),t&&r.push(this.scrollToColumn(t)),Promise.all(r)},scrollToColumn:function(e){e=(0,_util.handleFieldOrColumn)(this,e);return e&&this.fullColumnMap.has(e)?_tools.DomTools.colToVisible(this,e):this.$nextTick()},scrollToTreeRow:function(t){var r,o=this,e=this.tableFullData,i=this.treeConfig,l=this.treeOpts,n=[];return!i||(l=_xeUtils.default.findTree(e,function(e){return e===t},l))&&(r=l.nodes).forEach(function(e,t){t<r.length-1&&!o.isTreeExpandByRow(e)&&n.push(o.setTreeExpand(e,!0))}),Promise.all(n).then(function(){return _tools.DomTools.rowToVisible(o,t)})},clearScroll:function(){var e=this.$refs,t=this.scrollXStore,r=this.scrollYStore,o=e.tableBody,i=e.rightBody,e=e.tableFooter,o=o?o.$el:null,i=i?i.$el:null,e=e?e.$el:null;return i&&((0,_util.restoreScrollListener)(i),i.scrollTop=0),e&&(e.scrollLeft=0),o&&((0,_util.restoreScrollListener)(o),o.scrollTop=0,o.scrollLeft=0),t.startIndex=0,r.startIndex=0,this.$nextTick()},updateFooter:function(){var e=this.showFooter,t=this.visibleColumn,r=this.footerMethod;return e&&r&&(this.footerTableData=t.length?r({columns:t,data:this.afterFullData,$table:this,$grid:this.$xegrid}):[]),this.$nextTick()},updateStatus:function(n,s){var a=this,u=!_xeUtils.default.isUndefined(s);return this.$nextTick().then(function(){var e=a.$refs,t=a.editRules,r=a.validStore;if(n&&e.tableBody&&t){var o=n.row,i=n.column;if(a.hasCellRules("change",o,i)){var l=a.getCell(o,i);if(l)return a.validCellRules("change",o,i,s).then(function(){u&&r.visible&&setCellValue(o,i,s),a.clearValidate()}).catch(function(e){e=e.rule;u&&setCellValue(o,i,s),a.showValidTooltip({rule:e,row:o,column:i,cell:l})})}}})},handleDefaultMergeCells:function(){this.setMergeCells(this.mergeCells)},setMergeCells:function(e){var t=this;return this.spanMethod&&_tools.UtilTools.error("vxe.error.errConflicts",["merge-cells","span-method"]),setMerges(this,e,this.mergeList,this.afterFullData),this.$nextTick().then(function(){return t.updateCellAreas()})},removeMergeCells:function(e){var t=this;this.spanMethod&&_tools.UtilTools.error("vxe.error.errConflicts",["merge-cells","span-method"]);var r=removeMerges(this,e,this.mergeList,this.afterFullData);return this.$nextTick().then(function(){return t.updateCellAreas(),r})},getMergeCells:function(){return this.mergeList.slice(0)},clearMergeCells:function(){return this.mergeList=[],this.$nextTick()},handleDefaultMergeFooterItems:function(){this.setMergeFooterItems(this.mergeFooterItems)},setMergeFooterItems:function(e){var t=this;return this.footerSpanMethod&&_tools.UtilTools.error("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]),setMerges(this,e,this.mergeFooterList,null),this.$nextTick().then(function(){return t.updateCellAreas()})},removeMergeFooterItems:function(e){var t=this;this.footerSpanMethod&&_tools.UtilTools.error("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]);var r=removeMerges(this,e,this.mergeFooterList,null);return this.$nextTick().then(function(){return t.updateCellAreas(),r})},getMergeFooterItems:function(){return this.mergeFooterList.slice(0)},clearMergeFooterItems:function(){return this.mergeFooterList=[],this.$nextTick()},updateZindex:function(){this.zIndex?this.tZindex=this.zIndex:this.tZindex<_tools.UtilTools.getLastZIndex()&&(this.tZindex=_tools.UtilTools.nextZIndex())},updateCellAreas:function(){this.mouseConfig&&this.mouseOpts.area&&this.handleUpdateCellAreas&&this.handleUpdateCellAreas()},emitEvent:function(e,t,r){this.$emit(e,Object.assign({$table:this,$grid:this.$xegrid,$event:r},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):_tools.UtilTools.error("vxe.error.barUnableLink"),this.$nextTick()},getCell:function(e,t){var r=this.$refs,e=getRowid(this,e),r=r["".concat(t.fixed||"table","Body")]||r.tableBody;return r&&r.$el?r.$el.querySelector('.vxe-body--row[rowid="'.concat(e,'"] .').concat(t.id)):null},getCellLabel:function(e,t){var r=t.formatter,o=_tools.UtilTools.getCellValue(e,t),i=o;if(r){var l,n=this.fullAllDataRowMap,s=t.id,a=n.has(e);if(a&&(l=(l=(a=n.get(e)).formatData)||(n.get(e).formatData={}),a&&l[s]&&l[s].value===o))return l[s].label;var u,t={cellValue:o,row:e,rowIndex:this.getRowIndex(e),column:t,columnIndex:this.getColumnIndex(t)};i=_xeUtils.default.isString(r)?(u=_formats.formats.get(r))?u(t):"":_xeUtils.default.isArray(r)?(u=_formats.formats.get(r[0]))?u.apply(void 0,[t].concat(_toConsumableArray(r.slice(1)))):"":r(t),l&&(l[s]={value:o,label:i})}return i}},funcs="setFilter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,clearCopyCellArea,setCellAreas,openFind,openReplace,getSelectedCell,clearSelected,insert,insertAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearActived,getActiveRecord,isActiveByRow,setActiveRow,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print".split(",");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)?_tools.UtilTools.error("vxe.error.reqModule",["Export"]):"clearValidate,fullValidate,validate".split(",").includes(e)&&_tools.UtilTools.error("vxe.error.reqModule",["Validator"]))),this["_".concat(e)]?this["_".concat(e)].apply(this,arguments):null}});var _default=Methods;exports.default=_default;
@@ -1261,7 +1261,9 @@ var _default2 = {
1261
1261
  ctxMenuStore = this.ctxMenuStore,
1262
1262
  ctxMenuOpts = this.ctxMenuOpts,
1263
1263
  footerTableData = this.footerTableData,
1264
- hasTip = this.hasTip;
1264
+ hasTip = this.hasTip,
1265
+ columnOpts = this.columnOpts,
1266
+ rowOpts = this.rowOpts;
1265
1267
  var leftList = columnStore.leftList,
1266
1268
  rightList = columnStore.rightList;
1267
1269
  return h('div', {
@@ -1270,8 +1272,8 @@ var _default2 = {
1270
1272
  'cell--highlight': highlightCell,
1271
1273
  'cell--selected': mouseConfig && mouseOpts.selected,
1272
1274
  'cell--area': mouseConfig && mouseOpts.area,
1273
- 'row--highlight': highlightHoverRow,
1274
- 'column--highlight': highlightHoverColumn,
1275
+ 'row--highlight': rowOpts.isHover || highlightHoverRow,
1276
+ 'column--highlight': columnOpts.isHover || highlightHoverColumn,
1275
1277
  'is--header': showHeader,
1276
1278
  'is--footer': showFooter,
1277
1279
  'is--group': isGroup,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_vXETable=_interopRequireDefault(require("../../v-x-e-table")),_body=_interopRequireDefault(require("./body")),_size=_interopRequireDefault(require("../../mixins/size")),_tools=require("../../tools"),_methods=_interopRequireDefault(require("./methods"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function renderFixed(e,t,o){var n=t._e,i=t.tableData,l=t.tableColumn,r=t.tableGroupColumn,s=t.vSize,a=t.showHeader,u=t.showFooter,c=t.columnStore,t=t.footerTableData,c=c["".concat(o,"List")];return e("div",{class:"vxe-table--fixed-".concat(o,"-wrapper"),ref:"".concat(o,"Container")},[a?e("vxe-table-header",{props:{fixedType:o,tableData:i,tableColumn:l,tableGroupColumn:r,size:s,fixedColumn:c},ref:"".concat(o,"Header")}):n(),e("vxe-table-body",{props:{fixedType:o,tableData:i,tableColumn:l,fixedColumn:c,size:s},ref:"".concat(o,"Body")}),u?e("vxe-table-footer",{props:{footerTableData:t,tableColumn:l,fixedColumn:c,fixedType:o,size:s},ref:"".concat(o,"Footer")}):n()])}function renderEmptyContenet(e,t){var o=t.$scopedSlots,n=t.emptyOpts,i={$table:t};return o.empty?o.empty.call(t,i,e):(o=(o=n.name?_vXETable.default.renderer.get(n.name):null)?o.renderEmpty:null)?o.call(t,e,n,i):_tools.UtilTools.getFuncText(t.emptyText)||_conf.default.i18n("vxe.table.emptyText")}function handleUupdateResize(e){var t=e.$el;t&&t.clientWidth&&t.clientHeight&&e.recalculate()}var _default2={name:"VxeTable",mixins:[_size.default],props:{id:String,data:Array,height:[Number,String],maxHeight:[Number,String],resizable:{type:Boolean,default:function(){return _conf.default.table.resizable}},stripe:{type:Boolean,default:function(){return _conf.default.table.stripe}},border:{type:[Boolean,String],default:function(){return _conf.default.table.border}},round:{type:Boolean,default:function(){return _conf.default.table.round}},size:{type:String,default:function(){return _conf.default.table.size||_conf.default.size}},fit:{type:Boolean,default:function(){return _conf.default.table.fit}},loading:Boolean,align:{type:String,default:function(){return _conf.default.table.align}},headerAlign:{type:String,default:function(){return _conf.default.table.headerAlign}},footerAlign:{type:String,default:function(){return _conf.default.table.footerAlign}},showHeader:{type:Boolean,default:function(){return _conf.default.table.showHeader}},highlightCurrentRow:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentRow}},highlightHoverRow:{type:Boolean,default:function(){return _conf.default.table.highlightHoverRow}},highlightCurrentColumn:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentColumn}},highlightHoverColumn:{type:Boolean,default:function(){return _conf.default.table.highlightHoverColumn}},highlightCell:Boolean,showFooter:Boolean,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 _conf.default.table.showOverflow}},showHeaderOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showHeaderOverflow}},showFooterOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showFooterOverflow}},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:function(){return _conf.default.table.rowId}},zIndex:Number,emptyText:{type:String,default:function(){return _conf.default.table.emptyText}},keepSource:{type:Boolean,default:function(){return _conf.default.table.keepSource}},autoResize:{type:Boolean,default:function(){return _conf.default.table.autoResize}},syncResize:[Boolean,String,Number],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,emptyRender:[Boolean,Object],customConfig:[Boolean,Object],scrollX:Object,scrollY:Object,animat:{type:Boolean,default:function(){return _conf.default.table.animat}},delayHover:{type:Number,default:function(){return _conf.default.table.delayHover}},params:Object},components:{VxeTableBody:_body.default},provide:function(){return{$xetable:this,xecolgroup:null}},inject:{$xegrid:{default:null}},data:function(){return{tId:"".concat(_xeUtils.default.uniqueId()),staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selection:[],currentRow:null,currentColumn:null,selectRow:null,footerTableData:[],expandColumn:null,hasFixedColumn:!1,treeNodeColumn:null,rowExpandeds:[],expandLazyLoadeds:[],treeExpandeds:[],treeLazyLoadeds:[],treeIndeterminates:[],mergeList:[],mergeFooterList:[],initStore:{filter:!1,import:!1,export:!1},filterStore:{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],scaleList:[],scaleMinList:[],autoList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},insertList:[],removeList:[]},validStore:{visible:!1,row:null,column:null,content:"",rule:null,isArrow:!1},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasTree:!1,hasMerge:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isAllExpand:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isFooter:!1}}},computed:{validOpts:function(){return Object.assign({message:"default"},_conf.default.table.validConfig,this.validConfig)},sXOpts:function(){return Object.assign({},_conf.default.table.scrollX,this.scrollX)},sYOpts:function(){return Object.assign({},_conf.default.table.scrollY,this.scrollY)},rowHeightMaps:function(){return{default:48,medium:44,small:40,mini:36}},columnOpts:function(){return Object.assign({},_conf.default.table.columnConfig,this.columnConfig)},rowOpts:function(){return Object.assign({},_conf.default.table.rowConfig,this.rowConfig)},resizableOpts:function(){return Object.assign({},_conf.default.table.resizableConfig,this.resizableConfig)},seqOpts:function(){return Object.assign({startIndex:0},_conf.default.table.seqConfig,this.seqConfig)},radioOpts:function(){return Object.assign({},_conf.default.table.radioConfig,this.radioConfig)},checkboxOpts:function(){return Object.assign({},_conf.default.table.checkboxConfig,this.checkboxConfig)},tooltipOpts:function(){var e=Object.assign({leaveDelay:300},_conf.default.table.tooltipConfig,this.tooltipConfig);return e.enterable&&(e.leaveMethod=this.handleTooltipLeaveMethod),e},validTipOpts:function(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts:function(){return Object.assign({},_conf.default.table.editConfig,this.editConfig)},sortOpts:function(){return Object.assign({orders:["asc","desc",null]},_conf.default.table.sortConfig,this.sortConfig)},filterOpts:function(){return Object.assign({},_conf.default.table.filterConfig,this.filterConfig)},mouseOpts:function(){return Object.assign({},_conf.default.table.mouseConfig,this.mouseConfig)},areaOpts:function(){return Object.assign({},_conf.default.table.areaConfig,this.areaConfig)},keyboardOpts:function(){return Object.assign({},_conf.default.table.keyboardConfig,this.keyboardConfig)},clipOpts:function(){return Object.assign({},_conf.default.table.clipConfig,this.clipConfig)},fnrOpts:function(){return Object.assign({},_conf.default.table.fnrConfig,this.fnrConfig)},hasTip:function(){return _vXETable.default._tooltip},headerCtxMenu:function(){var e=this.ctxMenuOpts.header;return e&&e.options?e.options:[]},bodyCtxMenu:function(){var e=this.ctxMenuOpts.body;return e&&e.options?e.options:[]},footerCtxMenu:function(){var e=this.ctxMenuOpts.footer;return e&&e.options?e.options:[]},isCtxMenu:function(){return!(!this.contextMenu&&!this.menuConfig||!(0,_tools.isEnableConf)(this.ctxMenuOpts)||!(this.headerCtxMenu.length||this.bodyCtxMenu.length||this.footerCtxMenu.length))},ctxMenuOpts:function(){return Object.assign({},_conf.default.table.menuConfig,this.contextMenu,this.menuConfig)},ctxMenuList:function(){var t=[];return this.ctxMenuStore.list.forEach(function(e){e.forEach(function(e){t.push(e)})}),t},exportOpts:function(){return Object.assign({},_conf.default.table.exportConfig,this.exportConfig)},importOpts:function(){return Object.assign({},_conf.default.table.importConfig,this.importConfig)},printOpts:function(){return Object.assign({},_conf.default.table.printConfig,this.printConfig)},expandOpts:function(){return Object.assign({},_conf.default.table.expandConfig,this.expandConfig)},treeOpts:function(){return Object.assign({},_conf.default.table.treeConfig,this.treeConfig)},emptyOpts:function(){return Object.assign({},_conf.default.table.emptyRender,this.emptyRender)},cellOffsetWidth:function(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},customOpts:function(){return Object.assign({},_conf.default.table.customConfig,this.customConfig)},tableBorder:function(){var e=this.border;return!0===e?"full":e||"default"},isAllCheckboxDisabled:function(){var e=this.tableFullData,t=this.tableData,o=(this.treeConfig,this.checkboxOpts),n=o.strict,i=o.checkMethod;return!!n&&(!t.length&&!e.length||!!i&&e.every(function(e){return!i({row:e})}))}},watch:{data:function(e){var t=this,o=this.inited,n=this.initStatus;this.loadTableData(e).then(function(){t.inited=!0,t.initStatus=!0,n||t.handleLoadDefaults(),o||t.handleInitDefaults(),(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&_tools.UtilTools.warn("vxe.error.scrollErrProp",["column.type=expand"]),t.recalculate()})},staticColumns:function(e){this.handleColumn(e)},tableColumn:function(){this.analyColumnWidth()},showHeader:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},showFooter:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},height:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},maxHeight:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},syncResize:function(e){var t=this;e&&(handleUupdateResize(this),this.$nextTick(function(){handleUupdateResize(t),setTimeout(function(){return handleUupdateResize(t)})}))},mergeCells:function(e){var t=this;this.clearMergeCells(),this.$nextTick(function(){return t.setMergeCells(e)})},mergeFooterItems:function(e){var t=this;this.clearMergeFooterItems(),this.$nextTick(function(){return t.setMergeFooterItems(e)})}},created:function(){var e=this,t=Object.assign(this,{tZindex:0,elemStore:{},scrollXStore:{},scrollYStore:{},tooltipStore:{},tableWidth:0,tableHeight:0,headerHeight:0,footerHeight:0,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},tableFullData:[],afterFullData:[],collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowMap:new Map,fullAllDataRowIdData:{},fullDataRowMap:new Map,fullDataRowIdData:{},fullColumnMap:new Map,fullColumnIdData:{},fullColumnFieldData:{}}),o=t.scrollXStore,n=t.sYOpts,i=t.scrollYStore,l=t.data,r=t.editOpts,s=t.treeOpts,a=t.treeConfig,t=t.showOverflow;if("development"===process.env.NODE_ENV&&(!this.rowId&&(this.checkboxOpts.reserve||this.checkboxOpts.checkRowKeys||this.radioOpts.reserve||this.radioOpts.checkRowKey||this.expandOpts.expandRowKeys||this.treeOpts.expandRowKeys)&&_tools.UtilTools.warn("vxe.error.reqProp",["row-id"]),this.editConfig&&r.showStatus&&!this.keepSource&&_tools.UtilTools.warn("vxe.error.reqProp",["keep-source"]),!a||!s.line||this.rowKey&&t||_tools.UtilTools.warn("vxe.error.reqProp",["row-key | show-overflow"]),this.showFooter&&!this.footerMethod&&_tools.UtilTools.warn("vxe.error.reqProp",["footer-method"]),a&&this.stripe&&_tools.UtilTools.warn("vxe.error.noTree",["stripe"]),this.tooltipOpts.enabled&&_tools.UtilTools.warn("vxe.error.delProp",["tooltip-config.enabled","tooltip-config.showAll"]),s=this.exportConfig,u=this.exportOpts,t=this.importConfig,a=this.importOpts,t&&a.types&&!a.importMethod&&!_xeUtils.default.includeArrays(_vXETable.default.config.importTypes,a.types)&&_tools.UtilTools.warn("vxe.error.errProp",["export-config.types=".concat(a.types.join(",")),a.types.filter(function(e){return _xeUtils.default.includes(_vXETable.default.config.importTypes,e)}).join(",")||_vXETable.default.config.importTypes.join(",")]),s&&u.types&&!u.exportMethod&&!_xeUtils.default.includeArrays(_vXETable.default.config.exportTypes,u.types)&&_tools.UtilTools.warn("vxe.error.errProp",["export-config.types=".concat(u.types.join(",")),u.types.filter(function(e){return _xeUtils.default.includes(_vXETable.default.config.exportTypes,e)}).join(",")||_vXETable.default.config.exportTypes.join(",")])),"development"===process.env.NODE_ENV){var u=this.customOpts;if(!this.id&&this.customConfig&&(!0===u.storage||u.storage&&u.storage.resizable||u.storage&&u.storage.visible)&&_tools.UtilTools.error("vxe.error.reqProp",["id"]),this.treeConfig&&this.checkboxOpts.range&&_tools.UtilTools.error("vxe.error.noTree",["checkbox-config.range"]),this.rowOpts.height&&!this.showOverflow&&_tools.UtilTools.warn("vxe.error.notProp",["table.show-overflow"]),!this.handleUpdateCellAreas&&(this.clipConfig&&_tools.UtilTools.warn("vxe.error.notProp",["clip-config"]),this.fnrConfig&&_tools.UtilTools.warn("vxe.error.notProp",["fnr-config"]),this.mouseOpts.area))return void _tools.UtilTools.error("vxe.error.notProp",["mouse-config.area"]);this.mouseOpts.area&&this.mouseOpts.selected&&_tools.UtilTools.warn("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),this.mouseOpts.area&&this.checkboxOpts.range&&_tools.UtilTools.warn("vxe.error.errConflicts",["mouse-config.area","checkbox-config.range"]),this.treeConfig&&this.mouseOpts.area&&_tools.UtilTools.error("vxe.error.noTree",["mouse-config.area"])}"development"===process.env.NODE_ENV&&(this.contextMenu&&(_tools.UtilTools.warn("vxe.error.delProp",["context-menu","menu-config"]),_xeUtils.default.isObject(this.contextMenu)||_tools.UtilTools.warn("vxe.error.errProp",["table.context-menu=".concat(this.contextMenu),"table.context-menu={}"])),this.menuConfig&&!_xeUtils.default.isObject(this.menuConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.menu-config=".concat(this.menuConfig),"table.menu-config={}"]),this.exportConfig&&!_xeUtils.default.isObject(this.exportConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.export-config=".concat(this.exportConfig),"table.export-config={}"]),this.importConfig&&!_xeUtils.default.isObject(this.importConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.import-config=".concat(this.importConfig),"table.import-config={}"]),this.printConfig&&!_xeUtils.default.isObject(this.printConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.print-config=".concat(this.printConfig),"table.print-config={}"]),this.treeConfig&&!_xeUtils.default.isObject(this.treeConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.tree-config=".concat(this.treeConfig),"table.tree-config={}"]),this.customConfig&&!_xeUtils.default.isObject(this.customConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.custom-config=".concat(this.customConfig),"table.custom-config={}"]),this.editConfig&&!_xeUtils.default.isObject(this.editConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.edit-config=".concat(this.editConfig),"table.edit-config={}"]),this.emptyRender&&!_xeUtils.default.isObject(this.emptyRender)&&_tools.UtilTools.warn("vxe.error.errProp",["table.empty-render=".concat(this.emptyRender),"table.empty-render={}"])),"development"===process.env.NODE_ENV&&(this.editConfig&&!this._insert&&_tools.UtilTools.error("vxe.error.reqModule",["Edit"]),this.editRules&&!this._validate&&_tools.UtilTools.error("vxe.error.reqModule",["Validator"]),(this.checkboxOpts.range||this.keyboardConfig||this.mouseConfig)&&!this.triggerCellMousedownEvent&&_tools.UtilTools.error("vxe.error.reqModule",["Keyboard"]),(this.printConfig||this.importConfig||this.exportConfig)&&!this._exportData&&_tools.UtilTools.error("vxe.error.reqModule",["Export"])),Object.assign(i,{startIndex:0,endIndex:1,visibleSize:0,adaptive:!1!==n.adaptive}),Object.assign(o,{startIndex:0,endIndex:1,visibleSize:0}),this.loadTableData(l).then(function(){l&&l.length&&(e.inited=!0,e.initStatus=!0,e.handleLoadDefaults(),e.handleInitDefaults()),e.updateStyle()}),_tools.GlobalEvent.on(this,"paste",this.handleGlobalPasteEvent),_tools.GlobalEvent.on(this,"copy",this.handleGlobalCopyEvent),_tools.GlobalEvent.on(this,"cut",this.handleGlobalCutEvent),_tools.GlobalEvent.on(this,"mousedown",this.handleGlobalMousedownEvent),_tools.GlobalEvent.on(this,"blur",this.handleGlobalBlurEvent),_tools.GlobalEvent.on(this,"mousewheel",this.handleGlobalMousewheelEvent),_tools.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent),_tools.GlobalEvent.on(this,"resize",this.handleGlobalResizeEvent),_tools.GlobalEvent.on(this,"contextmenu",this.handleGlobalContextmenuEvent),this.preventEvent(null,"created")},mounted:function(){var e,t=this;"development"===process.env.NODE_ENV&&(e=this.$listeners,!this.menuConfig&&(e["menu-click"]||e["cell-menu"]||e["header-cell-menu"]||e["footer-cell-menu"])&&_tools.UtilTools.warn("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!e["cell-mouseenter"]&&!e["cell-mouseleave"]||_tools.UtilTools.warn("vxe.error.reqProp",["tooltip-config"])),this.autoResize&&((e=(0,_tools.createResizeEvent)(function(){return t.recalculate(!0)})).observe(this.$el),e.observe(this.getParentElem()),this.$resize=e),this.preventEvent(null,"mounted")},activated:function(){var e=this;this.recalculate().then(function(){return e.refreshScroll()}),this.preventEvent(null,"activated")},deactivated:function(){this.preventEvent(null,"deactivated")},beforeDestroy:function(){this.$resize&&this.$resize.disconnect(),this.closeFilter(),this.closeMenu(),this.preventEvent(null,"beforeDestroy")},destroyed:function(){_tools.GlobalEvent.off(this,"paste"),_tools.GlobalEvent.off(this,"copy"),_tools.GlobalEvent.off(this,"cut"),_tools.GlobalEvent.off(this,"mousedown"),_tools.GlobalEvent.off(this,"blur"),_tools.GlobalEvent.off(this,"mousewheel"),_tools.GlobalEvent.off(this,"keydown"),_tools.GlobalEvent.off(this,"resize"),_tools.GlobalEvent.off(this,"contextmenu"),this.preventEvent(null,"destroyed")},render:function(e){var t=this._e,o=this.tId,n=this.tableData,i=this.tableColumn,l=this.tableGroupColumn,r=this.isGroup,s=this.loading,a=this.stripe,u=this.showHeader,c=this.height,f=this.tableBorder,h=this.treeOpts,d=this.treeConfig,p=this.mouseConfig,b=this.mouseOpts,g=this.vSize,m=this.validOpts,v=this.showFooter,x=this.overflowX,C=this.overflowY,_=this.scrollXLoad,O=this.scrollYLoad,y=this.scrollbarHeight,w=this.highlightCell,T=this.highlightHoverRow,j=this.highlightHoverColumn,S=this.editConfig,E=this.validTipOpts,M=this.tooltipOpts,U=this.initStore,R=this.columnStore,D=this.filterStore,z=this.ctxMenuStore,F=this.ctxMenuOpts,k=this.footerTableData,B=this.hasTip,L=R.leftList,R=R.rightList;return e("div",{class:["vxe-table","vxe-table--render-default","tid_".concat(o),g?"size--".concat(g):"","border--".concat(f),{"vxe-editable":!!S,"cell--highlight":w,"cell--selected":p&&b.selected,"cell--area":p&&b.area,"row--highlight":T,"column--highlight":j,"is--header":u,"is--footer":v,"is--group":r,"is--tree-line":d&&h.line,"is--fixed-left":L.length,"is--fixed-right":R.length,"is--animat":!!this.animat,"is--round":this.round,"is--stripe":!d&&a,"is--loading":s,"is--empty":!s&&!n.length,"is--scroll-y":C,"is--scroll-x":x,"is--virtual-x":_,"is--virtual-y":O}],on:{keydown:this.keydownEvent}},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{class:"vxe-table--render-wrapper"},[e("div",{class:"vxe-table--main-wrapper"},[u?e("vxe-table-header",{ref:"tableHeader",props:{tableData:n,tableColumn:i,tableGroupColumn:l,size:g}}):t(),e("vxe-table-body",{ref:"tableBody",props:{tableData:n,tableColumn:i,size:g}}),v?e("vxe-table-footer",{ref:"tableFooter",props:{footerTableData:k,tableColumn:i,size:g}}):t()]),e("div",{class:"vxe-table--fixed-wrapper"},[L&&L.length&&x?renderFixed(e,this,"left"):t(),R&&R.length&&x?renderFixed(e,this,"right"):t()])]),e("div",{ref:"emptyPlaceholder",class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},renderEmptyContenet(e,this))]),e("div",{class:"vxe-table--border-line"}),e("div",{class:"vxe-table--resizable-bar",style:x?{"padding-bottom":"".concat(y,"px")}:null,ref:"resizeBar"}),e("div",{class:["vxe-table--loading vxe-loading",{"is--visible":s}]},[e("div",{class:"vxe-loading--spinner"})]),U.filter?e("vxe-table-filter",{ref:"filterWrapper",props:{filterStore:D}}):t(),U.import&&this.importConfig?e("vxe-import-panel",{props:{defaultOptions:this.importParams,storeData:this.importStore}}):t(),U.export&&(this.exportConfig||this.printConfig)?e("vxe-export-panel",{props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):t(),z.visible&&this.isCtxMenu?e("vxe-table-context-menu",{ref:"ctxWrapper",props:{ctxMenuStore:z,ctxMenuOpts:F}}):t(),B?e("vxe-tooltip",{ref:"commTip",props:{isArrow:!1,enterable:!1}}):t(),B?e("vxe-tooltip",{ref:"tooltip",props:M}):t(),B&&this.editRules&&m.showMessage&&("default"===m.message?!c:"tooltip"===m.message)?e("vxe-tooltip",{ref:"validTip",class:"vxe-table--valid-error",props:"tooltip"===m.message||1===n.length?E:null}):t()])},methods:_methods.default};exports.default=_default2;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_conf=_interopRequireDefault(require("../../v-x-e-table/src/conf")),_vXETable=_interopRequireDefault(require("../../v-x-e-table")),_body=_interopRequireDefault(require("./body")),_size=_interopRequireDefault(require("../../mixins/size")),_tools=require("../../tools"),_methods=_interopRequireDefault(require("./methods"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function renderFixed(e,t,o){var n=t._e,i=t.tableData,l=t.tableColumn,r=t.tableGroupColumn,s=t.vSize,a=t.showHeader,u=t.showFooter,c=t.columnStore,t=t.footerTableData,c=c["".concat(o,"List")];return e("div",{class:"vxe-table--fixed-".concat(o,"-wrapper"),ref:"".concat(o,"Container")},[a?e("vxe-table-header",{props:{fixedType:o,tableData:i,tableColumn:l,tableGroupColumn:r,size:s,fixedColumn:c},ref:"".concat(o,"Header")}):n(),e("vxe-table-body",{props:{fixedType:o,tableData:i,tableColumn:l,fixedColumn:c,size:s},ref:"".concat(o,"Body")}),u?e("vxe-table-footer",{props:{footerTableData:t,tableColumn:l,fixedColumn:c,fixedType:o,size:s},ref:"".concat(o,"Footer")}):n()])}function renderEmptyContenet(e,t){var o=t.$scopedSlots,n=t.emptyOpts,i={$table:t};return o.empty?o.empty.call(t,i,e):(o=(o=n.name?_vXETable.default.renderer.get(n.name):null)?o.renderEmpty:null)?o.call(t,e,n,i):_tools.UtilTools.getFuncText(t.emptyText)||_conf.default.i18n("vxe.table.emptyText")}function handleUupdateResize(e){var t=e.$el;t&&t.clientWidth&&t.clientHeight&&e.recalculate()}var _default2={name:"VxeTable",mixins:[_size.default],props:{id:String,data:Array,height:[Number,String],maxHeight:[Number,String],resizable:{type:Boolean,default:function(){return _conf.default.table.resizable}},stripe:{type:Boolean,default:function(){return _conf.default.table.stripe}},border:{type:[Boolean,String],default:function(){return _conf.default.table.border}},round:{type:Boolean,default:function(){return _conf.default.table.round}},size:{type:String,default:function(){return _conf.default.table.size||_conf.default.size}},fit:{type:Boolean,default:function(){return _conf.default.table.fit}},loading:Boolean,align:{type:String,default:function(){return _conf.default.table.align}},headerAlign:{type:String,default:function(){return _conf.default.table.headerAlign}},footerAlign:{type:String,default:function(){return _conf.default.table.footerAlign}},showHeader:{type:Boolean,default:function(){return _conf.default.table.showHeader}},highlightCurrentRow:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentRow}},highlightHoverRow:{type:Boolean,default:function(){return _conf.default.table.highlightHoverRow}},highlightCurrentColumn:{type:Boolean,default:function(){return _conf.default.table.highlightCurrentColumn}},highlightHoverColumn:{type:Boolean,default:function(){return _conf.default.table.highlightHoverColumn}},highlightCell:Boolean,showFooter:Boolean,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 _conf.default.table.showOverflow}},showHeaderOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showHeaderOverflow}},showFooterOverflow:{type:[Boolean,String],default:function(){return _conf.default.table.showFooterOverflow}},columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:function(){return _conf.default.table.rowId}},zIndex:Number,emptyText:{type:String,default:function(){return _conf.default.table.emptyText}},keepSource:{type:Boolean,default:function(){return _conf.default.table.keepSource}},autoResize:{type:Boolean,default:function(){return _conf.default.table.autoResize}},syncResize:[Boolean,String,Number],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,emptyRender:[Boolean,Object],customConfig:[Boolean,Object],scrollX:Object,scrollY:Object,animat:{type:Boolean,default:function(){return _conf.default.table.animat}},delayHover:{type:Number,default:function(){return _conf.default.table.delayHover}},params:Object},components:{VxeTableBody:_body.default},provide:function(){return{$xetable:this,xecolgroup:null}},inject:{$xegrid:{default:null}},data:function(){return{tId:"".concat(_xeUtils.default.uniqueId()),staticColumns:[],tableGroupColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isGroup:!1,isAllOverflow:!1,isAllSelected:!1,isIndeterminate:!1,selection:[],currentRow:null,currentColumn:null,selectRow:null,footerTableData:[],expandColumn:null,hasFixedColumn:!1,treeNodeColumn:null,rowExpandeds:[],expandLazyLoadeds:[],treeExpandeds:[],treeLazyLoadeds:[],treeIndeterminates:[],mergeList:[],mergeFooterList:[],initStore:{filter:!1,import:!1,export:!1},filterStore:{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1,maxHeight:null},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],scaleList:[],scaleMinList:[],autoList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},insertList:[],removeList:[]},validStore:{visible:!1,row:null,column:null,content:"",rule:null,isArrow:!1},importStore:{inited:!1,file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{inited:!1,name:"",modeList:[],typeList:[],columns:[],isPrint:!1,hasFooter:!1,hasTree:!1,hasMerge:!1,hasColgroup:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",isColgroup:!1,isMerge:!1,isAllExpand:!1,useStyle:!1,original:!1,message:!0,isHeader:!1,isFooter:!1}}},computed:{validOpts:function(){return Object.assign({message:"default"},_conf.default.table.validConfig,this.validConfig)},sXOpts:function(){return Object.assign({},_conf.default.table.scrollX,this.scrollX)},sYOpts:function(){return Object.assign({},_conf.default.table.scrollY,this.scrollY)},rowHeightMaps:function(){return{default:48,medium:44,small:40,mini:36}},columnOpts:function(){return Object.assign({},_conf.default.table.columnConfig,this.columnConfig)},rowOpts:function(){return Object.assign({},_conf.default.table.rowConfig,this.rowConfig)},resizableOpts:function(){return Object.assign({},_conf.default.table.resizableConfig,this.resizableConfig)},seqOpts:function(){return Object.assign({startIndex:0},_conf.default.table.seqConfig,this.seqConfig)},radioOpts:function(){return Object.assign({},_conf.default.table.radioConfig,this.radioConfig)},checkboxOpts:function(){return Object.assign({},_conf.default.table.checkboxConfig,this.checkboxConfig)},tooltipOpts:function(){var e=Object.assign({leaveDelay:300},_conf.default.table.tooltipConfig,this.tooltipConfig);return e.enterable&&(e.leaveMethod=this.handleTooltipLeaveMethod),e},validTipOpts:function(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts:function(){return Object.assign({},_conf.default.table.editConfig,this.editConfig)},sortOpts:function(){return Object.assign({orders:["asc","desc",null]},_conf.default.table.sortConfig,this.sortConfig)},filterOpts:function(){return Object.assign({},_conf.default.table.filterConfig,this.filterConfig)},mouseOpts:function(){return Object.assign({},_conf.default.table.mouseConfig,this.mouseConfig)},areaOpts:function(){return Object.assign({},_conf.default.table.areaConfig,this.areaConfig)},keyboardOpts:function(){return Object.assign({},_conf.default.table.keyboardConfig,this.keyboardConfig)},clipOpts:function(){return Object.assign({},_conf.default.table.clipConfig,this.clipConfig)},fnrOpts:function(){return Object.assign({},_conf.default.table.fnrConfig,this.fnrConfig)},hasTip:function(){return _vXETable.default._tooltip},headerCtxMenu:function(){var e=this.ctxMenuOpts.header;return e&&e.options?e.options:[]},bodyCtxMenu:function(){var e=this.ctxMenuOpts.body;return e&&e.options?e.options:[]},footerCtxMenu:function(){var e=this.ctxMenuOpts.footer;return e&&e.options?e.options:[]},isCtxMenu:function(){return!(!this.contextMenu&&!this.menuConfig||!(0,_tools.isEnableConf)(this.ctxMenuOpts)||!(this.headerCtxMenu.length||this.bodyCtxMenu.length||this.footerCtxMenu.length))},ctxMenuOpts:function(){return Object.assign({},_conf.default.table.menuConfig,this.contextMenu,this.menuConfig)},ctxMenuList:function(){var t=[];return this.ctxMenuStore.list.forEach(function(e){e.forEach(function(e){t.push(e)})}),t},exportOpts:function(){return Object.assign({},_conf.default.table.exportConfig,this.exportConfig)},importOpts:function(){return Object.assign({},_conf.default.table.importConfig,this.importConfig)},printOpts:function(){return Object.assign({},_conf.default.table.printConfig,this.printConfig)},expandOpts:function(){return Object.assign({},_conf.default.table.expandConfig,this.expandConfig)},treeOpts:function(){return Object.assign({},_conf.default.table.treeConfig,this.treeConfig)},emptyOpts:function(){return Object.assign({},_conf.default.table.emptyRender,this.emptyRender)},cellOffsetWidth:function(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},customOpts:function(){return Object.assign({},_conf.default.table.customConfig,this.customConfig)},tableBorder:function(){var e=this.border;return!0===e?"full":e||"default"},isAllCheckboxDisabled:function(){var e=this.tableFullData,t=this.tableData,o=(this.treeConfig,this.checkboxOpts),n=o.strict,i=o.checkMethod;return!!n&&(!t.length&&!e.length||!!i&&e.every(function(e){return!i({row:e})}))}},watch:{data:function(e){var t=this,o=this.inited,n=this.initStatus;this.loadTableData(e).then(function(){t.inited=!0,t.initStatus=!0,n||t.handleLoadDefaults(),o||t.handleInitDefaults(),(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&_tools.UtilTools.warn("vxe.error.scrollErrProp",["column.type=expand"]),t.recalculate()})},staticColumns:function(e){this.handleColumn(e)},tableColumn:function(){this.analyColumnWidth()},showHeader:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},showFooter:function(){var e=this;this.$nextTick(function(){e.recalculate(!0).then(function(){return e.refreshScroll()})})},height:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},maxHeight:function(){var e=this;this.$nextTick(function(){return e.recalculate(!0)})},syncResize:function(e){var t=this;e&&(handleUupdateResize(this),this.$nextTick(function(){handleUupdateResize(t),setTimeout(function(){return handleUupdateResize(t)})}))},mergeCells:function(e){var t=this;this.clearMergeCells(),this.$nextTick(function(){return t.setMergeCells(e)})},mergeFooterItems:function(e){var t=this;this.clearMergeFooterItems(),this.$nextTick(function(){return t.setMergeFooterItems(e)})}},created:function(){var e=this,t=Object.assign(this,{tZindex:0,elemStore:{},scrollXStore:{},scrollYStore:{},tooltipStore:{},tableWidth:0,tableHeight:0,headerHeight:0,footerHeight:0,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},tableFullData:[],afterFullData:[],collectColumn:[],tableFullColumn:[],visibleColumn:[],fullAllDataRowMap:new Map,fullAllDataRowIdData:{},fullDataRowMap:new Map,fullDataRowIdData:{},fullColumnMap:new Map,fullColumnIdData:{},fullColumnFieldData:{}}),o=t.scrollXStore,n=t.sYOpts,i=t.scrollYStore,l=t.data,r=t.editOpts,s=t.treeOpts,a=t.treeConfig,t=t.showOverflow;if("development"===process.env.NODE_ENV&&(!this.rowId&&(this.checkboxOpts.reserve||this.checkboxOpts.checkRowKeys||this.radioOpts.reserve||this.radioOpts.checkRowKey||this.expandOpts.expandRowKeys||this.treeOpts.expandRowKeys)&&_tools.UtilTools.warn("vxe.error.reqProp",["row-id"]),this.editConfig&&r.showStatus&&!this.keepSource&&_tools.UtilTools.warn("vxe.error.reqProp",["keep-source"]),!a||!s.line||this.rowKey&&t||_tools.UtilTools.warn("vxe.error.reqProp",["row-key | show-overflow"]),this.showFooter&&!this.footerMethod&&_tools.UtilTools.warn("vxe.error.reqProp",["footer-method"]),a&&this.stripe&&_tools.UtilTools.warn("vxe.error.noTree",["stripe"]),this.tooltipOpts.enabled&&_tools.UtilTools.warn("vxe.error.delProp",["tooltip-config.enabled","tooltip-config.showAll"]),s=this.exportConfig,u=this.exportOpts,t=this.importConfig,a=this.importOpts,t&&a.types&&!a.importMethod&&!_xeUtils.default.includeArrays(_vXETable.default.config.importTypes,a.types)&&_tools.UtilTools.warn("vxe.error.errProp",["export-config.types=".concat(a.types.join(",")),a.types.filter(function(e){return _xeUtils.default.includes(_vXETable.default.config.importTypes,e)}).join(",")||_vXETable.default.config.importTypes.join(",")]),s&&u.types&&!u.exportMethod&&!_xeUtils.default.includeArrays(_vXETable.default.config.exportTypes,u.types)&&_tools.UtilTools.warn("vxe.error.errProp",["export-config.types=".concat(u.types.join(",")),u.types.filter(function(e){return _xeUtils.default.includes(_vXETable.default.config.exportTypes,e)}).join(",")||_vXETable.default.config.exportTypes.join(",")])),"development"===process.env.NODE_ENV){var u=this.customOpts;if(!this.id&&this.customConfig&&(!0===u.storage||u.storage&&u.storage.resizable||u.storage&&u.storage.visible)&&_tools.UtilTools.error("vxe.error.reqProp",["id"]),this.treeConfig&&this.checkboxOpts.range&&_tools.UtilTools.error("vxe.error.noTree",["checkbox-config.range"]),this.rowOpts.height&&!this.showOverflow&&_tools.UtilTools.warn("vxe.error.notProp",["table.show-overflow"]),!this.handleUpdateCellAreas&&(this.clipConfig&&_tools.UtilTools.warn("vxe.error.notProp",["clip-config"]),this.fnrConfig&&_tools.UtilTools.warn("vxe.error.notProp",["fnr-config"]),this.mouseOpts.area))return void _tools.UtilTools.error("vxe.error.notProp",["mouse-config.area"]);this.mouseOpts.area&&this.mouseOpts.selected&&_tools.UtilTools.warn("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),this.mouseOpts.area&&this.checkboxOpts.range&&_tools.UtilTools.warn("vxe.error.errConflicts",["mouse-config.area","checkbox-config.range"]),this.treeConfig&&this.mouseOpts.area&&_tools.UtilTools.error("vxe.error.noTree",["mouse-config.area"])}"development"===process.env.NODE_ENV&&(this.contextMenu&&(_tools.UtilTools.warn("vxe.error.delProp",["context-menu","menu-config"]),_xeUtils.default.isObject(this.contextMenu)||_tools.UtilTools.warn("vxe.error.errProp",["table.context-menu=".concat(this.contextMenu),"table.context-menu={}"])),this.menuConfig&&!_xeUtils.default.isObject(this.menuConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.menu-config=".concat(this.menuConfig),"table.menu-config={}"]),this.exportConfig&&!_xeUtils.default.isObject(this.exportConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.export-config=".concat(this.exportConfig),"table.export-config={}"]),this.importConfig&&!_xeUtils.default.isObject(this.importConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.import-config=".concat(this.importConfig),"table.import-config={}"]),this.printConfig&&!_xeUtils.default.isObject(this.printConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.print-config=".concat(this.printConfig),"table.print-config={}"]),this.treeConfig&&!_xeUtils.default.isObject(this.treeConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.tree-config=".concat(this.treeConfig),"table.tree-config={}"]),this.customConfig&&!_xeUtils.default.isObject(this.customConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.custom-config=".concat(this.customConfig),"table.custom-config={}"]),this.editConfig&&!_xeUtils.default.isObject(this.editConfig)&&_tools.UtilTools.warn("vxe.error.errProp",["table.edit-config=".concat(this.editConfig),"table.edit-config={}"]),this.emptyRender&&!_xeUtils.default.isObject(this.emptyRender)&&_tools.UtilTools.warn("vxe.error.errProp",["table.empty-render=".concat(this.emptyRender),"table.empty-render={}"])),"development"===process.env.NODE_ENV&&(this.editConfig&&!this._insert&&_tools.UtilTools.error("vxe.error.reqModule",["Edit"]),this.editRules&&!this._validate&&_tools.UtilTools.error("vxe.error.reqModule",["Validator"]),(this.checkboxOpts.range||this.keyboardConfig||this.mouseConfig)&&!this.triggerCellMousedownEvent&&_tools.UtilTools.error("vxe.error.reqModule",["Keyboard"]),(this.printConfig||this.importConfig||this.exportConfig)&&!this._exportData&&_tools.UtilTools.error("vxe.error.reqModule",["Export"])),Object.assign(i,{startIndex:0,endIndex:1,visibleSize:0,adaptive:!1!==n.adaptive}),Object.assign(o,{startIndex:0,endIndex:1,visibleSize:0}),this.loadTableData(l).then(function(){l&&l.length&&(e.inited=!0,e.initStatus=!0,e.handleLoadDefaults(),e.handleInitDefaults()),e.updateStyle()}),_tools.GlobalEvent.on(this,"paste",this.handleGlobalPasteEvent),_tools.GlobalEvent.on(this,"copy",this.handleGlobalCopyEvent),_tools.GlobalEvent.on(this,"cut",this.handleGlobalCutEvent),_tools.GlobalEvent.on(this,"mousedown",this.handleGlobalMousedownEvent),_tools.GlobalEvent.on(this,"blur",this.handleGlobalBlurEvent),_tools.GlobalEvent.on(this,"mousewheel",this.handleGlobalMousewheelEvent),_tools.GlobalEvent.on(this,"keydown",this.handleGlobalKeydownEvent),_tools.GlobalEvent.on(this,"resize",this.handleGlobalResizeEvent),_tools.GlobalEvent.on(this,"contextmenu",this.handleGlobalContextmenuEvent),this.preventEvent(null,"created")},mounted:function(){var e,t=this;"development"===process.env.NODE_ENV&&(e=this.$listeners,!this.menuConfig&&(e["menu-click"]||e["cell-menu"]||e["header-cell-menu"]||e["footer-cell-menu"])&&_tools.UtilTools.warn("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!e["cell-mouseenter"]&&!e["cell-mouseleave"]||_tools.UtilTools.warn("vxe.error.reqProp",["tooltip-config"])),this.autoResize&&((e=(0,_tools.createResizeEvent)(function(){return t.recalculate(!0)})).observe(this.$el),e.observe(this.getParentElem()),this.$resize=e),this.preventEvent(null,"mounted")},activated:function(){var e=this;this.recalculate().then(function(){return e.refreshScroll()}),this.preventEvent(null,"activated")},deactivated:function(){this.preventEvent(null,"deactivated")},beforeDestroy:function(){this.$resize&&this.$resize.disconnect(),this.closeFilter(),this.closeMenu(),this.preventEvent(null,"beforeDestroy")},destroyed:function(){_tools.GlobalEvent.off(this,"paste"),_tools.GlobalEvent.off(this,"copy"),_tools.GlobalEvent.off(this,"cut"),_tools.GlobalEvent.off(this,"mousedown"),_tools.GlobalEvent.off(this,"blur"),_tools.GlobalEvent.off(this,"mousewheel"),_tools.GlobalEvent.off(this,"keydown"),_tools.GlobalEvent.off(this,"resize"),_tools.GlobalEvent.off(this,"contextmenu"),this.preventEvent(null,"destroyed")},render:function(e){var t=this._e,o=this.tId,n=this.tableData,i=this.tableColumn,l=this.tableGroupColumn,r=this.isGroup,s=this.loading,a=this.stripe,u=this.showHeader,c=this.height,f=this.tableBorder,h=this.treeOpts,d=this.treeConfig,p=this.mouseConfig,b=this.mouseOpts,g=this.vSize,m=this.validOpts,v=this.showFooter,x=this.overflowX,C=this.overflowY,_=this.scrollXLoad,O=this.scrollYLoad,y=this.scrollbarHeight,w=this.highlightCell,T=this.highlightHoverRow,j=this.highlightHoverColumn,S=this.editConfig,E=this.validTipOpts,M=this.tooltipOpts,U=this.initStore,R=this.columnStore,D=this.filterStore,z=this.ctxMenuStore,F=this.ctxMenuOpts,k=this.footerTableData,B=this.hasTip,L=this.columnOpts,G=this.rowOpts,P=R.leftList,R=R.rightList;return e("div",{class:["vxe-table","vxe-table--render-default","tid_".concat(o),g?"size--".concat(g):"","border--".concat(f),{"vxe-editable":!!S,"cell--highlight":w,"cell--selected":p&&b.selected,"cell--area":p&&b.area,"row--highlight":G.isHover||T,"column--highlight":L.isHover||j,"is--header":u,"is--footer":v,"is--group":r,"is--tree-line":d&&h.line,"is--fixed-left":P.length,"is--fixed-right":R.length,"is--animat":!!this.animat,"is--round":this.round,"is--stripe":!d&&a,"is--loading":s,"is--empty":!s&&!n.length,"is--scroll-y":C,"is--scroll-x":x,"is--virtual-x":_,"is--virtual-y":O}],on:{keydown:this.keydownEvent}},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{class:"vxe-table--render-wrapper"},[e("div",{class:"vxe-table--main-wrapper"},[u?e("vxe-table-header",{ref:"tableHeader",props:{tableData:n,tableColumn:i,tableGroupColumn:l,size:g}}):t(),e("vxe-table-body",{ref:"tableBody",props:{tableData:n,tableColumn:i,size:g}}),v?e("vxe-table-footer",{ref:"tableFooter",props:{footerTableData:k,tableColumn:i,size:g}}):t()]),e("div",{class:"vxe-table--fixed-wrapper"},[P&&P.length&&x?renderFixed(e,this,"left"):t(),R&&R.length&&x?renderFixed(e,this,"right"):t()])]),e("div",{ref:"emptyPlaceholder",class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},renderEmptyContenet(e,this))]),e("div",{class:"vxe-table--border-line"}),e("div",{class:"vxe-table--resizable-bar",style:x?{"padding-bottom":"".concat(y,"px")}:null,ref:"resizeBar"}),e("div",{class:["vxe-table--loading vxe-loading",{"is--visible":s}]},[e("div",{class:"vxe-loading--spinner"})]),U.filter?e("vxe-table-filter",{ref:"filterWrapper",props:{filterStore:D}}):t(),U.import&&this.importConfig?e("vxe-import-panel",{props:{defaultOptions:this.importParams,storeData:this.importStore}}):t(),U.export&&(this.exportConfig||this.printConfig)?e("vxe-export-panel",{props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):t(),z.visible&&this.isCtxMenu?e("vxe-table-context-menu",{ref:"ctxWrapper",props:{ctxMenuStore:z,ctxMenuOpts:F}}):t(),B?e("vxe-tooltip",{ref:"commTip",props:{isArrow:!1,enterable:!1}}):t(),B?e("vxe-tooltip",{ref:"tooltip",props:M}):t(),B&&this.editRules&&m.showMessage&&("default"===m.message?!c:"tooltip"===m.message)?e("vxe-tooltip",{ref:"validTip",class:"vxe-table--valid-error",props:"tooltip"===m.message||1===n.length?E:null}):t()])},methods:_methods.default};exports.default=_default2;
@@ -19,6 +19,7 @@ var _default = {
19
19
  showHeader: true,
20
20
  animat: true,
21
21
  delayHover: 250,
22
+ autoResize: true,
22
23
  // keepSource: false,
23
24
  // showOverflow: null,
24
25
  // showHeaderOverflow: null,
@@ -26,7 +27,6 @@ var _default = {
26
27
  // resizeInterval: 500,
27
28
  // size: null,
28
29
  // zIndex: null,
29
- // autoResize: false,
30
30
  // stripe: false,
31
31
  // border: false,
32
32
  // round: false,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var iconPrefix="vxe-icon--",_default={size:null,zIndex:999,version:0,emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,radioConfig:{strict:!0},checkboxConfig:{strict:!0},validConfig:{showMessage:!0,message:"default"},sortConfig:{showIcon:!0},filterConfig:{showIcon:!0},treeConfig:{rowField:"id",parentField:"parentId",children:"children",hasChild:"hasChild",indent:20,showIcon:!0},expandConfig:{showIcon:!0},editConfig:{showIcon:!0,showAsterisk:!0},importConfig:{modes:["insert","covering"]},exportConfig:{modes:["current","selected"]},printConfig:{modes:["current","selected"]},mouseConfig:{extension:!0},areaConfig:{selectCellByHeader:!0},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},scrollX:{enabled:!0,gt:60},scrollY:{enabled:!0,gt:100}},export:{types:{}},icon:{TABLE_SORT_ASC:iconPrefix+"caret-top",TABLE_SORT_DESC:iconPrefix+"caret-bottom",TABLE_FILTER_NONE:iconPrefix+"funnel",TABLE_FILTER_MATCH:iconPrefix+"funnel",TABLE_EDIT:iconPrefix+"edit-outline",TABLE_HELP:iconPrefix+"question",TABLE_TREE_LOADED:iconPrefix+"refresh roll",TABLE_TREE_OPEN:iconPrefix+"caret-right rotate90",TABLE_TREE_CLOSE:iconPrefix+"caret-right",TABLE_EXPAND_LOADED:iconPrefix+"refresh roll",TABLE_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",TABLE_EXPAND_CLOSE:iconPrefix+"arrow-right",BUTTON_DROPDOWN:iconPrefix+"arrow-bottom",BUTTON_LOADING:iconPrefix+"refresh roll",SELECT_LOADED:iconPrefix+"refresh roll",SELECT_OPEN:iconPrefix+"caret-bottom rotate180",SELECT_CLOSE:iconPrefix+"caret-bottom",PAGER_JUMP_PREV:iconPrefix+"d-arrow-left",PAGER_JUMP_NEXT:iconPrefix+"d-arrow-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"more",INPUT_CLEAR:iconPrefix+"close",INPUT_PWD:iconPrefix+"eye-slash",INPUT_SHOW_PWD:iconPrefix+"eye",INPUT_PREV_NUM:iconPrefix+"caret-top",INPUT_NEXT_NUM:iconPrefix+"caret-bottom",INPUT_DATE:iconPrefix+"calendar",INPUT_SEARCH:iconPrefix+"search",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"zoomout",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info",MODAL_SUCCESS:iconPrefix+"success",MODAL_WARNING:iconPrefix+"warning",MODAL_ERROR:iconPrefix+"error",MODAL_QUESTION:iconPrefix+"question",MODAL_LOADING:iconPrefix+"refresh roll",TOOLBAR_TOOLS_REFRESH:iconPrefix+"refresh",TOOLBAR_TOOLS_REFRESH_LOADING:iconPrefix+"refresh roll",TOOLBAR_TOOLS_IMPORT:iconPrefix+"upload",TOOLBAR_TOOLS_EXPORT:iconPrefix+"download",TOOLBAR_TOOLS_PRINT:iconPrefix+"print",TOOLBAR_TOOLS_ZOOM_IN:iconPrefix+"zoomin",TOOLBAR_TOOLS_ZOOM_OUT:iconPrefix+"zoomout",TOOLBAR_TOOLS_CUSTOM:iconPrefix+"menu",FORM_PREFIX:iconPrefix+"question",FORM_SUFFIX:iconPrefix+"question",FORM_FOLDING:iconPrefix+"arrow-top rotate180",FORM_UNFOLDING:iconPrefix+"arrow-top"},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,message:!0,props:{list:null,result:"result",total:"page.total",message:"message"}}},tooltip:{trigger:"hover",theme:"dark",leaveDelay:300},pager:{},form:{validConfig:{showMessage:!0,autoPos:!0},titleAsterisk:!0},input:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},textarea:{},select:{multiCharOverflow:8},toolbar:{},button:{},radio:{},checkbox:{},switch:{},modal:{top:15,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,draggable:!0,storageKey:"VXE_MODAL_POSITION"},list:{scrollY:{enabled:!0,gt:100}},i18n:function(e){return e}};exports.default=_default;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var iconPrefix="vxe-icon--",_default={size:null,zIndex:999,version:0,emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,radioConfig:{strict:!0},checkboxConfig:{strict:!0},validConfig:{showMessage:!0,message:"default"},sortConfig:{showIcon:!0},filterConfig:{showIcon:!0},treeConfig:{rowField:"id",parentField:"parentId",children:"children",hasChild:"hasChild",indent:20,showIcon:!0},expandConfig:{showIcon:!0},editConfig:{showIcon:!0,showAsterisk:!0},importConfig:{modes:["insert","covering"]},exportConfig:{modes:["current","selected"]},printConfig:{modes:["current","selected"]},mouseConfig:{extension:!0},areaConfig:{selectCellByHeader:!0},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},scrollX:{enabled:!0,gt:60},scrollY:{enabled:!0,gt:100}},export:{types:{}},icon:{TABLE_SORT_ASC:iconPrefix+"caret-top",TABLE_SORT_DESC:iconPrefix+"caret-bottom",TABLE_FILTER_NONE:iconPrefix+"funnel",TABLE_FILTER_MATCH:iconPrefix+"funnel",TABLE_EDIT:iconPrefix+"edit-outline",TABLE_HELP:iconPrefix+"question",TABLE_TREE_LOADED:iconPrefix+"refresh roll",TABLE_TREE_OPEN:iconPrefix+"caret-right rotate90",TABLE_TREE_CLOSE:iconPrefix+"caret-right",TABLE_EXPAND_LOADED:iconPrefix+"refresh roll",TABLE_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",TABLE_EXPAND_CLOSE:iconPrefix+"arrow-right",BUTTON_DROPDOWN:iconPrefix+"arrow-bottom",BUTTON_LOADING:iconPrefix+"refresh roll",SELECT_LOADED:iconPrefix+"refresh roll",SELECT_OPEN:iconPrefix+"caret-bottom rotate180",SELECT_CLOSE:iconPrefix+"caret-bottom",PAGER_JUMP_PREV:iconPrefix+"d-arrow-left",PAGER_JUMP_NEXT:iconPrefix+"d-arrow-right",PAGER_PREV_PAGE:iconPrefix+"arrow-left",PAGER_NEXT_PAGE:iconPrefix+"arrow-right",PAGER_JUMP_MORE:iconPrefix+"more",INPUT_CLEAR:iconPrefix+"close",INPUT_PWD:iconPrefix+"eye-slash",INPUT_SHOW_PWD:iconPrefix+"eye",INPUT_PREV_NUM:iconPrefix+"caret-top",INPUT_NEXT_NUM:iconPrefix+"caret-bottom",INPUT_DATE:iconPrefix+"calendar",INPUT_SEARCH:iconPrefix+"search",MODAL_ZOOM_IN:iconPrefix+"square",MODAL_ZOOM_OUT:iconPrefix+"zoomout",MODAL_CLOSE:iconPrefix+"close",MODAL_INFO:iconPrefix+"info",MODAL_SUCCESS:iconPrefix+"success",MODAL_WARNING:iconPrefix+"warning",MODAL_ERROR:iconPrefix+"error",MODAL_QUESTION:iconPrefix+"question",MODAL_LOADING:iconPrefix+"refresh roll",TOOLBAR_TOOLS_REFRESH:iconPrefix+"refresh",TOOLBAR_TOOLS_REFRESH_LOADING:iconPrefix+"refresh roll",TOOLBAR_TOOLS_IMPORT:iconPrefix+"upload",TOOLBAR_TOOLS_EXPORT:iconPrefix+"download",TOOLBAR_TOOLS_PRINT:iconPrefix+"print",TOOLBAR_TOOLS_ZOOM_IN:iconPrefix+"zoomin",TOOLBAR_TOOLS_ZOOM_OUT:iconPrefix+"zoomout",TOOLBAR_TOOLS_CUSTOM:iconPrefix+"menu",FORM_PREFIX:iconPrefix+"question",FORM_SUFFIX:iconPrefix+"question",FORM_FOLDING:iconPrefix+"arrow-top rotate180",FORM_UNFOLDING:iconPrefix+"arrow-top"},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,message:!0,props:{list:null,result:"result",total:"page.total",message:"message"}}},tooltip:{trigger:"hover",theme:"dark",leaveDelay:300},pager:{},form:{validConfig:{showMessage:!0,autoPos:!0},titleAsterisk:!0},input:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},textarea:{},select:{multiCharOverflow:8},toolbar:{},button:{},radio:{},checkbox:{},switch:{},modal:{top:15,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,draggable:!0,storageKey:"VXE_MODAL_POSITION"},list:{scrollY:{enabled:!0,gt:100}},i18n:function(e){return e}};exports.default=_default;