vxe-table
Version:
一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、虚拟列表、模态窗口、自定义模板、渲染器、贼灵活的配置项、扩展接口等...
1 lines • 22.1 kB
JavaScript
"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 i=t._e,n=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:n,tableColumn:l,tableGroupColumn:r,size:s,fixedColumn:c},ref:"".concat(o,"Header")}):i(),e("vxe-table-body",{props:{fixedType:o,tableData:n,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")}):i()])}function renderEmptyContenet(e,t){var o=t.$scopedSlots,i=t.emptyOpts,n={$table:t};return o.empty?o.empty.call(t,n,e):(o=t.emptyRender?_vXETable.default.renderer.get(i.name):null)?o.renderEmpty.call(t,e,i,n):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:{type:Function,default:_conf.default.table.footerMethod},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:String,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,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},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({},this.columnConfig)},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),i=o.strict,n=o.checkMethod;return!!i&&(!t.length&&!e.length||!!n&&e.every(function(e){return!n({row:e})}))}},watch:{data:function(e){var t=this,o=this.inited,i=this.initStatus;this.loadTableData(e).then(function(){t.inited=!0,t.initStatus=!0,i||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){this.clearMergeCells(),this.setMergeCells(e)},mergeFooterItems:function(e){this.clearMergeFooterItems(),this.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,i=t.sYOpts,n=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.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.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(n,{startIndex:0,endIndex:0,visibleSize:0,adaptive:!1!==i.adaptive}),Object.assign(o,{startIndex:0,endIndex:0,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;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,i=this.tableData,n=this.tableColumn,l=this.tableGroupColumn,r=this.isGroup,s=this.loading,a=this.stripe,u=this.showHeader,c=this.height,f=this.tableBorder,d=this.treeOpts,h=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,j=this.highlightHoverRow,T=this.highlightHoverColumn,S=this.editConfig,E=this.validTipOpts,M=this.tooltipOpts,R=this.initStore,U=this.columnStore,D=this.filterStore,z=this.ctxMenuStore,F=this.ctxMenuOpts,B=this.footerTableData,L=this.hasTip,G=U.leftList,U=U.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":j,"column--highlight":T,"is--header":u,"is--footer":v,"is--group":r,"is--tree-line":h&&d.line,"is--fixed-left":G.length,"is--fixed-right":U.length,"is--animat":!!this.animat,"is--round":this.round,"is--stripe":!h&&a,"is--loading":s,"is--empty":!s&&!i.length,"is--scroll-y":C,"is--scroll-x":x,"is--virtual-x":_,"is--virtual-y":O}]},[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:i,tableColumn:n,tableGroupColumn:l,size:g}}):t(),e("vxe-table-body",{ref:"tableBody",props:{tableData:i,tableColumn:n,size:g}}),v?e("vxe-table-footer",{ref:"tableFooter",props:{footerTableData:B,tableColumn:n,size:g}}):t()]),e("div",{class:"vxe-table--fixed-wrapper"},[G&&G.length&&x?renderFixed(e,this,"left"):t(),U&&U.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"})]),R.filter?e("vxe-table-filter",{ref:"filterWrapper",props:{filterStore:D}}):t(),R.import&&this.importConfig?e("vxe-import-panel",{props:{defaultOptions:this.importParams,storeData:this.importStore}}):t(),R.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(),L?e("vxe-tooltip",{ref:"commTip",props:{isArrow:!1,enterable:!1}}):t(),L?e("vxe-tooltip",{ref:"tooltip",props:M}):t(),L&&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===i.length?E:null}):t()])},methods:_methods.default};exports.default=_default2;