You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

el-table-virtual-scroll

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

el-table-virtual-scroll - npm Package Compare versions

Comparing version
1.4.3
to
1.4.4
+1
-1
dist/el-table-virtual-scroll.min.js

@@ -1,1 +0,1 @@

var ElTableVirtualScroll=function(e,t,n,i){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);function l(){l=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function h(e,t,n,i){var o=t&&t.prototype instanceof b?t:b,l=Object.create(o.prototype),a=new R(i||[]);return r(l,"_invoke",{value:T(e,n,a)}),l}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f="suspendedStart",v="suspendedYield",p="executing",g="completed",m={};function b(){}function y(){}function w(){}var S={};u(S,a,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(N([])));A&&A!==n&&i.call(A,a)&&(S=A);var _=w.prototype=b.prototype=Object.create(S);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function $(e,t){function n(r,o,l,a){var s=d(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,a)}),(function(e){n("throw",e,l,a)})):t.resolve(u).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,a)}))}a(s.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function T(t,n,i){var r=f;return function(o,l){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw l;return{value:e,done:!0}}for(i.method=o,i.arg=l;;){var a=i.delegate;if(a){var s=C(a,i);if(s){if(s===m)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===f)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var c=d(t,n,i);if("normal"===c.type){if(r=i.done?g:v,c.arg===m)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=g,i.method="throw",i.arg=c.arg)}}}function C(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var l=o.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=w,r(_,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:y,configurable:!0}),y.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},E($.prototype),u($.prototype,s,(function(){return this})),t.AsyncIterator=$,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var l=new $(h(e,n,i,r),o);return t.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},E(_),u(_,c,"Generator"),u(_,a,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],a=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var s=i.call(l,"catchLoc"),c=i.call(l,"finallyLoc");if(s&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(s){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:N(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,n,i,r,o,l){try{var a=e[o](l),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(i,r)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function l(e){s(o,i,r,l,a,"next",e)}function a(e){s(o,i,r,l,a,"throw",e)}l(void 0)}))}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,l,a=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw r}}return a}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){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 d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var v=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g="object"==typeof p&&p&&p.Object===Object&&p,m="object"==typeof self&&self&&self.Object===Object&&self,b=g||m||Function("return this")(),y=function(){return b.Date.now()},w=/\s/;var S=function(e){for(var t=e.length;t--&&w.test(e.charAt(t)););return t},x=/^\s+/;var A=function(e){return e?e.slice(0,S(e)+1).replace(x,""):e},_=b.Symbol,E=Object.prototype,$=E.hasOwnProperty,T=E.toString,C=_?_.toStringTag:void 0;var k=function(e){var t=$.call(e,C),n=e[C];try{e[C]=void 0;var i=!0}catch(e){}var r=T.call(e);return i&&(t?e[C]=n:delete e[C]),r},D=Object.prototype.toString;var R=function(e){return D.call(e)},N=_?_.toStringTag:void 0;var B=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?k(e):R(e)};var O=function(e){return null!=e&&"object"==typeof e};var P=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==B(e)},L=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,F=/^0o[0-7]+$/i,I=parseInt;var M=function(e){if("number"==typeof e)return e;if(P(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=A(e);var n=j.test(e);return n||F.test(e)?I(e.slice(2),n?2:8):L.test(e)?NaN:+e},z=Math.max,H=Math.min;var W=function(e,t,n){var i,r,o,l,a,s,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,o=r;return i=r=void 0,c=t,l=e.apply(o,n)}function p(e){var n=e-s;return void 0===s||n>=t||n<0||h&&e-c>=o}function g(){var e=y();if(p(e))return m(e);a=setTimeout(g,function(e){var n=t-(e-s);return h?H(n,o-(e-c)):n}(e))}function m(e){return a=void 0,d&&i?f(e):(i=r=void 0,l)}function b(){var e=y(),n=p(e);if(i=arguments,r=this,s=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(g,t),u?f(e):l}(s);if(h)return clearTimeout(a),a=setTimeout(g,t),f(s)}return void 0===a&&(a=setTimeout(g,t)),l}return t=M(t)||0,v(n)&&(u=!!n.leading,o=(h="maxWait"in n)?z(M(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=s=r=a=void 0},b.flush=function(){return void 0===a?l:m(y())},b};var V=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return v(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),W(e,t,{leading:i,maxWait:t,trailing:r})};function Y(e){var t=window.getComputedStyle(e,null),n=["auto","scroll"];return n.includes(t.overflow)||n.includes(t["overflow-y"])}function U(e){return e===window?window.pageYOffset:e.scrollTop}function q(e){return null==e}var K="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;var G=function(e){return null!==e&&"object"===a(e)},X=function(e,t,i,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;i="string"==typeof i?"descending"===i?-1:1:i&&i<0?-1:1;var l=r?null:function(i,r){return o?(Array.isArray(o)||(o=[o]),o.map((function(t){return"string"==typeof t?n.getValueByPath(i,t):t(i,r,e)}))):("$key"!==t&&G(i)&&"$value"in i&&(i=i.$value),[G(i)?n.getValueByPath(i,t):i])};return e.map((function(e,t){return{value:e,index:t,key:l?l(e,t):null}})).sort((function(e,t){var n=function(e,t){if(r)return r(e.value,t.value);for(var n=0,i=e.key.length;n<i;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0}(e,t);return n||(n=e.index-t.index),n*i})).map((function(e){return e.value}))},Q=[".el-table__body-wrapper",".el-table__fixed-right .el-table__fixed-body-wrapper",".el-table__fixed .el-table__fixed-body-wrapper"],Z={name:"el-table-virtual-scroll",props:{data:{type:Array,required:!0},itemSize:{type:Number,default:60},scrollBox:{type:String},buffer:{type:Number,default:200},keyProp:{type:String,default:"id"},throttleTime:{type:Number,default:16},dynamic:{type:Boolean,default:!0},virtualized:{type:Boolean,default:!0},rowSpanKey:{type:Function},warn:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},selectionSort:{type:[Function,Boolean],default:!0},getElTable:{type:Function,default:function(){return this.$children[0]}},keepScroll:{type:Boolean,default:!0}},provide:function(){return{virtualScroll:this}},data:function(){return{sizes:{},start:0,end:void 0,curRow:null,oldSelection:[],isExpanding:!1,columnVms:[],isHideAppend:!1,scrollPosition:"",hasFixedRight:!1,listData:[]}},computed:{offsetMap:function(e){var t=e.keyProp,n=e.itemSize,i=e.sizes,r=e.listData;if(!this.dynamic)return{};for(var o={},l=0,a=0;a<r.length;a++){var s=r[a][t];void 0===s&&this.warn&&console.warn("data[".concat(a,"][").concat(t,"] 为 undefined,请确保 keyProp 对应的值不为undefined")),o[s]=l;var c=i[s];l+="number"==typeof c?c:n}return o}},methods:{initData:function(){var e=this;if(this.destory(),this.renderData=[],this.top=void 0,this.bottom=void 0,this.start=0,this.end=void 0,this.isInnerScroll=!1,this.highlightRow=null,this.scrollPos=[0,0],this.triggleScroll=!1,this.checkOrder=0,this.elTable=this.getElTable(),!this.elTable||"ElTable"!==this.elTable.$options.name)throw new Error("未找到 <el-table> 组件. 请确保 <el-table> 组件在虚拟组件内,且 getElTable 方法能获取到正确的 <el-table> 组件!");this.scroller=this.getScroller(),this.observeElTable(),this.onScroll=this.throttleTime?V(this.handleScroll,this.throttleTime):this.handleScroll,this.scroller.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onScroll),this.bindTableExpandEvent(),this.bindTableDragEvent(),this.bindTableSortEvent(),this.bindTableFilterEvent(),this.bindTableDestory(),this.hackRowHighlight(),this.hackHighlightSelectionRow(),setTimeout((function(){!e.triggleScroll&&e.onScroll()}),100)},slowOnMousewheel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scroller;this.removeMousewheelEvent&&this.removeMousewheelEvent(),this.removeMousewheelEvent=null,e&&(this.removeMousewheelEvent=function(e,t){var n=V((function(n){var i=o.default(n);if(Math.abs(i.spinY)>0){var r=e.scrollTop;i.pixelY<0&&0!==r&&n.preventDefault(),i.pixelY>0&&e.scrollHeight-e.clientHeight>r&&n.preventDefault(),e.scrollTop+=Math.ceil(i.pixelY/t)}}),0);return e.addEventListener(K?"DOMMouseScroll":"mousewheel",n,{passive:!1}),function(){e.removeEventListener(K?"DOMMouseScroll":"mousewheel",n)}}(t,e))},getScroller:function(){var e;if(this.scrollBox){if("window"===this.scrollBox||this.scrollBox===window)return window;if(!(e=document.querySelector(this.scrollBox)))throw new Error(" scrollBox prop: '".concat(this.scrollBox,"' is not a valid selector"));return Y(e)||console.warn("Warning! scrollBox prop: '".concat(this.scrollBox,"' is not a scroll element")),e}return this.elTable&&(this.elTable.height||this.elTable.maxHeight)?(this.isInnerScroll=!0,this.$el.querySelector(".el-table__body-wrapper")):function(e){for(var t=e;t;){if([window,document,document.documentElement].includes(t))return window;if(Y(t))return t;t=t.parentNode}return t||window}(this.$el)},getToTop:function(){return this.isInnerScroll?0:this.$el.getBoundingClientRect().top-(this.scroller===window?0:this.scroller.getBoundingClientRect().top)+U(this.scroller)},handleScroll:function(){this.disabled||this.scroller&&(this.triggleScroll=!0,(!this.isInnerScroll||this.scroller.style.height||this.scroller.style.maxHeight)&&(this.isDeactivated||(this.isInnerScroll&&this.elTable.layout.bodyHeight&&(this.scrollPos[0]=this.scroller.scrollTop,this.scrollPos[1]=this.scroller.scrollLeft),this.virtualized&&(this.removeHoverRows(),this.updateSizes(),this.calcRenderData(),this.calcPosition(),this.$emit("change",this.renderData,this.start,this.end),this.setRowsExpanded(),this.syncRowsHighlight()))))},removeHoverRows:function(){var e=this.$el.querySelectorAll(".el-table__row.hover-row");e.length>1&&Array.from(e).forEach((function(e){e.classList.remove("hover-row")}))},updateSizes:function(){var e=this;if(this.dynamic){var t=this.$el.querySelectorAll(".el-table__body > tbody > .el-table__row"),n=this.elTable.lazy,i=/el-table__row--level-[1-9]\d*/;n&&(t=Array.from(this.$el.querySelectorAll(".el-table__body > tbody > .el-table__row")).filter((function(e){return!i.test(e.className)}))),Array.from(t).forEach((function(t,r){var o=e.renderData[r];if(o){var l=t.offsetHeight;if(t.classList.contains("expanded")&&(l+=t.nextSibling.offsetHeight),n)for(var a=t.nextSibling;a&&"TR"===a.tagName&&i.test(a.className);)l+=a.offsetHeight,a=a.nextSibling;var s=o[e.keyProp];l&&e.sizes[s]!==l&&e.$set(e.sizes,s,l)}}))}},getItemOffsetTop:function(e){if(!this.dynamic)return this.itemSize*e;var t=this.listData[e];return t&&this.offsetMap[t[this.keyProp]]||0},getItemSize:function(e){if(e<=-1)return 0;var t=this.listData[e];if(t){var n=t[this.keyProp];return this.sizes[n]||this.itemSize}return this.itemSize},calcRenderData:function(){var e,t,n,i=this.scroller,r=this.listData,o=this.buffer,l=this.getToTop(),a=U(i)-o-l,s=U(i)+((e=i)===window?window.innerHeight:e.offsetHeight)+o-l;if(this.dynamic){for(var c=0,h=r.length-1,d=0;c<=h;){if(d=Math.floor((c+h)/2),this.getItemOffsetTop(d)<a){if(this.getItemOffsetTop(d+1)>a)break;c=d+1}else h=d-1}for(c=t=d,h=r.length-1,d=0;c<=h;){if(d=Math.floor((c+h)/2),this.getItemOffsetTop(d)>=s){if(this.getItemOffsetTop(d-1)<s)break;h=d-1}else c=d+1}n=d}else t=a<=0?0:Math.floor(a/this.itemSize),n=s<=0?0:Math.ceil(s/this.itemSize);if(this.isRowSpan()){var f=u(this.calcRenderSpanData(t,n),2);t=f[0],n=f[1]}else t%2&&(t-=1);this.top=a,this.bottom=s,this.start=t,this.end=n,this.renderData=r.slice(t,n+1),0===this.start&&this.end>30&&this.end===this.listData.length-1&&this.warn&&console.warn("[el-table-virtual-scroll] 表格数据全部渲染,渲染数量为:"+this.listData.length)},isRowSpan:function(){return"function"==typeof this.rowSpanKey},calcRenderSpanData:function(e,t){for(var n;e>0;){var i=this.listData[e],r=this.rowSpanKey(i,e);if(q(r))break;if(!q(n)&&n!==r){e++;break}n=r,e--}var o=this.listData.length;for(n=void 0;t<o;){var l=this.listData[t],a=this.rowSpanKey(l,t);if(!a)break;if(n&&n!==a){t--;break}n=a,t++}return[e,t]},calcPosition:function(){var e,t=this,n=this.listData.length-1,i=this.getItemOffsetTop(n)+this.getItemSize(n),r=this.getItemOffsetTop(this.start);Q.forEach((function(n,o){var l=t.$el.querySelector(n);if(l){if(!l.wrapEl){var a=document.createElement("div"),s=document.createElement("div");a.appendChild(s),s.appendChild(l.children[0]),l.insertBefore(a,l.firstChild),l.wrapEl=a,l.innerEl=s,o>0&&e&&t.$nextTick((function(){l.scrollTop=e.scrollTop}))}0===o&&(e=l),l.wrapEl&&(l.wrapEl.style.height=i+"px",l.innerEl.style.transform="translateY(".concat(r,"px)"))}}))},observeElTable:function(){var e=this,t=this.$watch((function(){return[e.elTable.scrollPosition,e.elTable.layout.scrollX]}),(function(t){var n=u(t,2),i=n[0],r=n[1],o=u(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],2);o[0];var l=o[1];e.scrollPosition=e.elTable.layout.scrollX?i:"none",r&&!l&&e.elTable.syncPostion&&e.elTable.syncPostion()}),{immediate:!0}),n=this.$watch((function(){return e.elTable.layout.bodyHeight}),(function(t){t>0&&e.restoreScroll(),t>0&&e.onScroll()}));this.unWatchs=[t,n]},doUpdate:function(){var e=this;this.hasDoUpdate||this.scroller&&(this.isHideAppend=!0,this.onScroll(),this.hasDoUpdate=!0,this.$nextTick((function(){e.hasDoUpdate=!1,e.isHideAppend=!1})))},updatePosition:function(){var e=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){e.timer&&clearTimeout(e.timer),e.handleScroll(!1)}),this.throttleTime+10)},renderAllData:function(){var e=this;this.renderData=this.listData,this.$emit("change",this.listData,0,this.listData.length-1),this.$nextTick((function(){Q.forEach((function(t){var n=e.$el.querySelector(t);n&&n.wrapEl&&(n.wrapEl.style.height="auto",n.innerEl.style.transform="translateY(".concat(0,"px)"))}))}))},restoreScroll:function(){this.scroller&&this.isInnerScroll&&(this.scroller.scrollLeft=this.keepScroll?this.scrollPos[1]:0,this.scroller.scrollTop=this.keepScroll?this.scrollPos[0]:0)},update:function(){this.handleScroll()},scrollTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.listData[e]&&this.scroller&&(this.updateSizes(),this.calcRenderData(),this.$nextTick((function(){var r,o,l=t.getItemOffsetTop(e)-n;r=t.scroller,o=l,r===window?window.scroll(0,o):r.scrollTop=o,i||setTimeout((function(){t.scrollTo(e,n,!0)}),50)})))},reset:function(){this.sizes={},this.scrollTo(0,0,!1)},destory:function(){this.scroller&&(this.scroller.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onScroll)),this.unWatchs&&this.unWatchs.forEach((function(e){return e()})),this.removeMousewheelEvent&&this.removeMousewheelEvent(),this.oldSelection=[],this.elTable=null,this.scroller=null,this.unWatchs=[]},updateData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.list=e,this.$emit("update:data",this.list)},getData:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.list||(e?this.data:this.listData)},addColumn:function(e){this.columnVms.push(e)},removeColumn:function(e){this.columnVms=this.columnVms.filter((function(t){return t!==e}))},checkAll:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.listData,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];n.forEach((function(n){n.$v_checked&&r.push(n),n.$v_checked!==e&&(t.$set(n,"$v_checked",e),t.$set(n,"$v_checkedOrder",e?t.checkOrder++:void 0))}));var o=this.emitSelectionChange(r);i&&this.$emit("select-all",o,e),!1===e&&(this.checkOrder=0)},checkRow:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.$v_checked!==t&&(this.$set(e,"$v_checked",t),this.$set(e,"$v_checkedOrder",t?this.checkOrder++:void 0),n)){var r=this.emitSelectionChange(t?[]:[e]);i&&this.$emit("select",r,e,t)}},clearSelection:function(){var e=this;this.oldSelection.forEach((function(t){e.$set(t,"$v_checked",!1)})),this.oldSelection=[],this.checkAll(!1),this.columnVms.forEach((function(e){return e.syncCheckStatus()}))},toggleRowSelection:function(e,t){Array.isArray(e)||(e=[e]),this.toggleRowsSelection(e,t)},toggleRowsSelection:function(e,t){var n=this,i={},r={},o=null,l=this.isReserveSelection();l&&(this.oldSelection.forEach((function(e){i[e[n.keyProp]]=!0})),this.data.forEach((function(e){r[e[n.keyProp]]=!0})));var a=[];e.forEach((function(e){var s="boolean"==typeof t?t:!e.$v_checked;if(!s&&a.push(e),n.$set(e,"$v_checked",s),n.$set(e,"$v_checkedOrder",s?n.checkOrder++:void 0),l){var c=e[n.keyProp];c in i&&!s&&(o||(o={}),o[c]=!0),!(c in r)&&s&&n.oldSelection.push(e)}})),o&&(this.oldSelection=this.oldSelection.filter((function(e){return!(e[n.keyProp]in o)}))),this.emitSelectionChange(a),this.columnVms.forEach((function(e){return e.syncCheckStatus()}))},emitSelectionChange:function(e){var t=this.isReserveSelection(),n=t?h(this.oldSelection):[];return this.data.forEach((function(e){e.$v_checked&&n.push(e)})),this.sortSelection(n),this.$emit("selection-change",n,e),t||(this.oldSelection=h(n)),n},updateSelectionByRowKey:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(this.elTable){n.forEach((function(e){e.$v_checked&&t.oldSelection.push(e)}));var i={};this.oldSelection.forEach((function(e){i[e[t.keyProp]]=!0}));var r={};e.forEach((function(e){var n=e[t.keyProp];n in i&&(t.$set(e,"$v_checked",!0),r[n]=!0)})),this.oldSelection=this.oldSelection.filter((function(e){return!(e[t.keyProp]in r)}))}},isReserveSelection:function(){return this.columnVms.some((function(e){return e.reserveSelection&&e.isSelection()}))},getSelection:function(){if(this.isReserveSelection()){var e=this.data.filter((function(e){return e.$v_checked}));return[].concat(h(this.oldSelection),h(e))}return this.oldSelection},updateSelectionData:function(e,t){var n=this;if(this.syncSelectionStatus(),e===t){var i=this.data.filter((function(e){return e.$v_checked}));this.sortSelection(i);var r=i.reduce((function(e,t){return e[t[n.keyProp]]=!0,e}),{}),o=this.oldSelection.reduce((function(e,t){return t[n.keyProp]in r||e.push(t),e}),[]);(o.length||i.length!==this.oldSelection.length)&&(this.$emit("selection-change",i,o),this.oldSelection=h(i))}else this.oldSelection=[]},sortSelection:function(e){var t=this;this.selectionSort&&("function"==typeof this.selectionSort?e.sort((function(e,n){return t.selectionSort(e,n)})):e.sort((function(e,t){return e.$v_checkedOrder-t.$v_checkedOrder})))},syncSelectionStatus:function(){var e=this.columnVms.find((function(e){return e.isSelection()}));e&&e.syncCheckStatus()},setCurrentRow:function(e){this.curRow=e,this.$emit("current-change",e)},hackRowHighlight:function(){var e=this;if(this.elTable.setCurrentRow.virtual){var t=this.elTable.setCurrentRow.bind(this.elTable),n=function(n){e.elTable.store.states.currentRow=e.highlightRow,e.highlightRow!==n&&(e.highlightRow=n),t(n)};this.elTable.setCurrentRow=n,n.virtual=!0}var i=this.$watch((function(){return e.elTable.currentRowKey}),(function(t){if(e.elTable.rowKey){var n=e.listData.find((function(n){return t===n[e.elTable.rowKey]}));e.highlightRow=n}}),{immediate:!0});this.unWatchs.push(i);var r=function(t){e.highlightRow=t};this.elTable.$on("current-change",r),this.unWatchs.push((function(){e.elTable.$off("current-change",r)}))},syncRowsHighlight:function(){var e=this;this.elTable.highlightCurrentRow&&this.$nextTick((function(){e.elTable.store.states.currentRow=e.highlightRow}))},hackHighlightSelectionRow:function(){var e=this,t=this.$watch((function(){return[e.elTable.fixedColumns,e.elTable.rightFixedColumns]}),(function(){e.elTable&&e.elTable.$children.filter((function(e){return"ElTableBody"===e.$options.name})).forEach((function(t){if(!t.getRowClass.virtual){var n=t.getRowClass.bind(e.elTable);t.getRowClass=function(t,i){var r=n(t,i);return e.elTable.highlightSelectionRow&&t.$v_checked&&r.push("selection-row"),r},t.getRowClass.virtual=!0}}))}),{immediate:!0});this.unWatchs.push(t)},bindTableDragEvent:function(){var e=this,t=function(){e.hasHeadDrag=!0,e.elTable.doLayout(),e.update()};this.elTable.$on("header-dragend",t),this.unWatchs.push((function(){e.elTable.$off("header-dragend",t)}))},bindTableExpandEvent:function(){var e=this,t=function(t,n){e.isExpandType&&e.$set(t,"$v_expanded",n.includes(t)),t.$v_expanded&&!1!==n||setTimeout((function(){e.update()}))};this.elTable.$on("expand-change",t),this.unWatchs.push((function(){e.elTable.$off("expand-change",t)}))},setRowsExpanded:function(){var e=this;this.isExpandType&&this.$nextTick((function(){var t=e.renderData.filter((function(e){return e.$v_expanded}));0!==t.length&&(t.forEach((function(t){e.elTable.toggleRowExpansion(t,!0)})),e.isExpanding=!0,setTimeout((function(){e.isExpanding=!1}),10))}))},toggleRowExpansion:function(e,t){var n="boolean"==typeof t;this.$set(e,"$v_expanded",n?t:!e.$v_expanded),this.renderData.includes(e)&&this.elTable.toggleRowExpansion(e,t)},headerCellFixedStyle:function(e){return this.cellFixedStyle(e,!0)},cellFixedStyle:function(e){var t=this,n=e.column,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getElTable();if(r){var o=r.layout,l=o.gutterWidth,a=o.scrollY,s=o.bodyWidth,c=i&&a?l:0;if(!this.fixedMap||this._isScrollY!==a||this._bodyWidth!==s||this.hasHeadDrag){this.hasHeadDrag&&(this.hasHeadDrag=!1),this._isScrollY=a,this._bodyWidth=s,this.fixedMap={},this.totalLeft=0,this.totalRight=0;for(var u,h,d=r.columns,f=[],v=0;v<d.length;v++){var p=d[v],g=p.className&&p.className.includes("virtual-column__fixed-left"),m=p.className&&p.className.includes("virtual-column__fixed-right");(g||m)&&(g&&(u=p,this.fixedMap[p.id]={left:this.totalLeft},this.totalLeft+=p.realWidth||p.width),m&&(h||(h=p),f.push(p)))}var b=" is-last-column",y=" is-first-column";u&&!u.className.includes(b)&&(u.className+=b),h&&!h.className.includes(y)&&(h.className+=y),this.hasFixedRight=f.length>0,f.reverse().forEach((function(e){t.fixedMap[e.id]={right:t.totalRight},t.totalRight+=e.realWidth||e.width}))}var w=this.fixedMap[n.id];if(w){var S="right"in w?{right:w.right+c+"px"}:{left:w.left+"px"};return r.showSummary&&this.$nextTick((function(){var e=t.$el.querySelector(".el-table__footer-wrapper .".concat(n.id));e&&(S.left&&(e.style.left=S.left),S.right&&(e.style.right=S.right))})),S}}},doHeaderLayout:function(){this.elTable&&(this.fixedMap=null,this.elTable.$refs.tableHeader.$forceUpdate())},bindTableSortEvent:function(){var e=this;this.onSortChange=function(){if(e.elTable){var t=e.elTable.store.states,n=t.sortingColumn,i=e.filterData||e.data;n&&"string"!=typeof n.sortable?e.listData=X(i,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e.listData=i,e.doUpdate(),e.$nextTick((function(){e.syncSelectionStatus()}))}},this.elTable.$on("sort-change",this.onSortChange),this.unWatchs.push((function(){e.elTable.$off("sort-change",e.onSortChange)}));var t=this.elTable.clearSort.bind(this.elTable);this.elTable.clearSort=function(){t.apply(void 0,arguments),e.onSortChange()},this.elTable.defaultSort&&this.$nextTick((function(){e.onSortChange()}))},bindTableFilterEvent:function(){var e=this;this.onFilterChange=function(){if(e.elTable){var t=e.elTable.store.states,n=t.filters,i=e.data;Object.keys(n).forEach((function(e){var n=t.filters[e];if(n&&0!==n.length){var r=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n}(t,e);r&&r.filterMethod&&(i=i.filter((function(e){return n.some((function(t){return r.filterMethod.call(null,t,e,r)}))})))}}));var r=e.data!==i;e.filterData=r?i:null,e.onSortChange()}},this.elTable.$on("filter-change",this.onFilterChange),this.unWatchs.push((function(){e.elTable.$off("filter-change",e.onFilterChange)}));var t=this.elTable.clearFilter.bind(this.elTable);this.elTable.clearFilter=function(){t.apply(void 0,arguments),e.onFilterChange()},this.elTable.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.onFilterChange()}))},disableOriginTree:function(){var e=this;this.$nextTick((function(){e.elTable&&(e.elTable.store.states.childrenColumnName="")}))},bindTableDestory:function(){var e=this,t=function(){e.warn&&console.warn("<el-table> 组件销毁时,建议将 <el-table-virtual-scroll> 组件一同销毁"),e.destory(),e.$nextTick((function(){e.initData()}))};this.elTable.$on("hook:beforeDestory",t),this.unWatchs.push((function(){e.elTable.$off("hook:beforeDestory",t)}))}},watch:{data:function(e,t){this.listData=e,this.list&&e!==t&&(this.list=e),this.virtualized?this.onFilterChange&&this.onFilterChange():this.renderAllData(),this.isReserveSelection()?this.updateSelectionByRowKey(e,t):this.updateSelectionData(e,t)},virtualized:{immediate:!0,handler:function(e){e?this.doUpdate():this.renderAllData()}},disabled:function(){this.doUpdate()}},created:function(){var e=this;this.listData=this.data,this.$nextTick((function(){e.initData()}))},activated:function(){var e;this.isDeactivated=!1,!1===(null===(e=this.elTable)||void 0===e?void 0:e.fit)&&this.restoreScroll()},deactivated:function(){this.isDeactivated=!0},beforeDestroy:function(){this.destory()}};function J(e,t,n,i,r,o,l,a,s,c){"boolean"!=typeof l&&(s=a,a=l,l=!1);const u="function"==typeof n?n.options:n;let h;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(h=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,s(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=h):t&&(h=l?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),h)if(u.functional){const e=u.render;u.render=function(t,n){return h.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,h):[h]}return n}const ee="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function te(e){return(e,t)=>function(e,t){const n=ee?t.media||"default":e,i=ie[n]||(ie[n]={ids:new Set,styles:[]});if(!i.ids.has(e)){i.ids.add(e);let n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",t.media&&i.element.setAttribute("media",t.media),void 0===ne&&(ne=document.head||document.getElementsByTagName("head")[0]),ne.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const e=i.ids.size-1,t=document.createTextNode(n),r=i.element.childNodes;r[e]&&i.element.removeChild(r[e]),r.length?i.element.insertBefore(t,r[e]):i.element.appendChild(t)}}}(e,t)}let ne;const ie={};var re=Z,oe=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-table-virtual-scroll",class:[e.isExpanding?"is-expanding":"",e.isHideAppend?"hide-append":"",e.scrollPosition?"is-scrolling-"+e.scrollPosition:"",e.hasFixedRight?"has-custom-fixed-right":""]},[e._t("default",null,null,{headerCellFixedStyle:e.headerCellFixedStyle,cellFixedStyle:e.cellFixedStyle})],2)};oe._withStripped=!0;var le=J({render:oe,staticRenderFns:[]},(function(e){e&&(e("data-v-16780ad2_0",{source:".el-table-virtual-scroll.has-custom-fixed-right .el-table__cell.gutter {\n position: sticky;\n right: 0;\n}\n",map:{version:3,sources:["el-table-virtual-scroll.vue"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,QAAQ;AACV",file:"el-table-virtual-scroll.vue",sourcesContent:[".el-table-virtual-scroll.has-custom-fixed-right .el-table__cell.gutter {\n position: sticky;\n right: 0;\n}\n"]},media:void 0}),e("data-v-16780ad2_1",{source:".is-expanding[data-v-16780ad2] :deep(.el-table__expand-icon) {\n transition: none;\n}\n.hide-append[data-v-16780ad2] :deep(.el-table__append-wrapper) {\n display: none;\n}\n",map:{version:3,sources:["el-table-virtual-scroll.vue"],names:[],mappings:"AAAA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;AACf",file:"el-table-virtual-scroll.vue",sourcesContent:[".is-expanding :deep(.el-table__expand-icon) {\n transition: none;\n}\n.hide-append :deep(.el-table__append-wrapper) {\n display: none;\n}\n"]},media:void 0}))}),re,"data-v-16780ad2",false,undefined,!1,te,void 0,void 0),ae=J({},undefined,{name:"el-table-virtual-column-formatter",props:{vNode:{type:Object}},render:function(){return this.vNode}},undefined,undefined,undefined,!1,void 0,void 0,void 0),se={scope:null,result:null},ce={name:"el-table-virtual-column",components:{ElCheckbox:i.Checkbox,ElRadio:i.Radio,ElTableVirtualColumnFormatter:ae},inject:["virtualScroll"],props:{load:{type:Function,default:function(e,t){t([])}},indent:{type:Number,default:16},selectable:{type:Function},reserveSelection:{type:Boolean,default:!1},treeProps:{type:Object,default:function(){return{}}}},data:function(){return{isCheckedAll:!1,isCheckedImn:!1,isTree:!1,isNested:!1}},computed:{getClassName:function(){var e=[],t=this.$attrs["class-name"]||this.$attrs.className;t&&e.push(t),this.isTree&&e.push("el-table__row--level");var n=this.$attrs.vfixed;return!0!==n&&""!==n||(n="left"),n&&e.push("virtual-column__fixed-"+n),e.join(" ")}},methods:{getDisabled:function(e){if(this.selectable){var t=this.getIndex(e,!1);return!this.selectable(e.row,t)}return!1},onCheckAllRows:function(e){var t=this,n=this.virtualScroll.elTable.selectOnIndeterminate;if(e=void 0===n||n?!!this.isCheckedImn||!this.isCheckedAll:!this.isCheckedImn&&!this.isCheckedAll,this.selectable){var i=[];this.virtualScroll.getData(!1).forEach((function(e,n){t.selectable(e,n)&&i.push(e)})),this.virtualScroll.checkAll(e,i,!0)}else this.virtualScroll.checkAll(e);var r=this.virtualScroll.getSelection();this.isCheckedImn=!e&&r.length>0,this.isCheckedAll=e},onCheckRow:function(e,t){var n=this.getIndex(e,!1);if(this.selectable&&!this.selectable(e.row,n))return;this.virtualScroll.checkRow(e.row,t,!0,!0),this.syncCheckStatus()},isSelection:function(){return"v-selection"!==this.$attrs.type},syncCheckStatus:function(){var e=this,t=this.virtualScroll.getData(!1),n=t.filter((function(e){return!0===e.$v_checked})).length,i=this.virtualScroll.getSelection();n&&n===t.length?this.isCheckedAll=!0:n&&this.selectable?this.isCheckedAll=t.every((function(t,n){return!e.selectable(t,n)||t.$v_checked})):this.isCheckedAll=!1,this.isCheckedImn=!this.isCheckedAll&&i.length>0},onRadioChange:function(e){this.virtualScroll.setCurrentRow(e)},getIndex:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.virtualScroll.start+e.$index;return"function"==typeof this.$attrs.index?this.$attrs.index(n):n+(t?1:0)},setScope:function(e){return e.$index=this.virtualScroll.start+e.$index,e},onTreeNodeExpand:function(e){var t=arguments,n=this;return c(l().mark((function i(){var r,o;return l().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=t.length>1&&void 0!==t[1]?t[1]:!e.$v_expanded,o=!(t.length>2&&void 0!==t[2])||t[2],e.$v_expanded!==r){i.next=4;break}return i.abrupt("return",[]);case 4:if(!r){i.next=13;break}if(!e.$v_loaded){i.next=9;break}return i.abrupt("return",n.loadOldChildNodes(e));case 9:if(!o){i.next=11;break}return i.abrupt("return",n.loadChildNodes(e));case 11:i.next=14;break;case 13:return i.abrupt("return",n.hideChildNodes(e));case 14:case"end":return i.stop()}}),i)})))()},loadChildNodes:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(i){if(t.$set(e,"$v_loading",!0),t.$set(e,"$v_hasChildren",void 0),!n){var r=t.treeProps,o=r.children,l=r.hasChildren;if(!1===e[l])return a.call(t,[]);if(e[l])return a.call(t,e[o])}function a(t){if(!Array.isArray(t))return this.$set(e,"$v_loading",!1),this.$set(e,"$v_hasChildren",!1),void i();e.$v_hasChildren&&this.removeNode(e,!0),this.$set(e,"$v_loading",!1),this.$set(e,"$v_expanded",!0),this.$set(e,"$v_loaded",!0),this.$set(e,"$v_hasChildren",!!t.length),t.forEach((function(t){t.$v_level="number"==typeof e.$v_level?e.$v_level+1:2}));var n=this.virtualScroll.getData(),r=n.findIndex((function(t){return t===e}));r>-1&&this.virtualScroll.updateData([].concat(h(n.slice(0,r+1)),h(t),h(n.slice(r+1)))),i(t)}t.load&&t.load(e,a.bind(t))}))},loadOldChildNodes:function(e){this.$set(e,"$v_expanded",!0);var t=this.virtualScroll.getData(),n=t.findIndex((function(t){return t===e}));if(n>-1){this.virtualScroll.updateData([].concat(h(t.slice(0,n+1)),h(e.$v_hideNodes||[]),h(t.slice(n+1))));var i=e.$v_hideNodes;return delete e.$v_hideNodes,i}return[]},hideChildNodes:function(e){this.$set(e,"$v_expanded",!1);var t=this.virtualScroll,n=t.getData,i=t.keyProp,r=n(),o=this.getChildNodes(e,!0,!0);if(o.length){var l={};o.forEach((function(e){l[e[i]]=!0})),this.$set(e,"$v_hideNodes",o);var a=r.filter((function(e){return!(e[i]in l)}));return this.virtualScroll.updateData(a),this.virtualScroll.update(),[]}},expand:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(Array.isArray(e)){var r=this.virtualScroll,o=r.getData,l=r.keyProp,a=o(),s=[];return a.forEach((function(r){r[l]&&e.includes(r[l])&&s.push(t.onTreeNodeExpand(r,n,i))})),Promise.all(s)}},expandPath:function(e){var t=this;if(Array.isArray(e)){var n=function(){var i=c(l().mark((function i(r,a){var s;return l().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a!==e.length){i.next=2;break}return i.abrupt("return",e[a-1]);case 2:if(Array.isArray(r)&&r.length){i.next=4;break}return i.abrupt("return",e[a-1]);case 4:if(!(s=r.find((function(t){return t[o]===e[a]})))){i.next=13;break}if(s.$v_expanded){i.next=10;break}return i.next=9,t.onTreeNodeExpand(s,!0);case 9:r=i.sent;case 10:return i.abrupt("return",n(r,a+1));case 13:return console.warn("[expandPath] 没有找到 ".concat(e[a]," key值对应的行")),i.abrupt("return",e[a-1]);case 15:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}(),i=this.virtualScroll,r=i.getData,o=i.keyProp,a=r();return n(a,0)}},expandAll:function(){var e=this;!function t(n){Array.isArray(n)&&n.length&&n.forEach((function(n){e.onTreeNodeExpand(n,!0,!1),t(n.$v_hideNodes)}))}((0,this.virtualScroll.getData)())},unexpandAll:function(){var e=this,t=(0,this.virtualScroll.getData)(),n=[];t.forEach((function(e){var t=e.$v_level||1;!n[t]&&(n[t]=[]),n[t].push(e)}));for(var i=n.length-1;i>=0;i--)n[i]&&n[i].forEach((function(t){e.onTreeNodeExpand(t,!1)}))},removeNode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t||e.$v_hasChildren){var n=(0,this.virtualScroll.getData)().slice(),i=e.$v_level||1;!function n(r){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{match:!1,stop:!1},l=0;l<r.length;l++){if(o.stop)return;var a=r[l],s=(a.$v_level||1)>i;if(o.match&&s)r.splice(l,1),l--;else{if(o.match&&!s)return o.stop=!0;a===e&&(t||(r.splice(l,1),l--),o.match=!0);var c=a.$v_hideNodes||[];c.length&&n(c,o,!0)}}}(n),t&&(e.$v_hasChildren=!1),this.virtualScroll.updateData(n)}},reloadNode:function(e){this.removeNode(e,!0),this.loadChildNodes(e,!0)},getChildNodes:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[],r=(0,this.virtualScroll.getData)(),o=e.$v_level||1;return function r(l){for(var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{match:!1,stop:!1},s=0;s<l.length;s++){if(a.stop)return;var c=l[s],u=c.$v_level||1,h=t?u>o:u-o==1;if(a.match&&h&&i.push(c),a.match&&!h)return a.stop=!0;c===e&&(a.match=!0);var d=c.$v_hideNodes||[];!n&&d.length&&r(d,a)}}(r),i},getParentNodes:function(e){var t=(0,this.virtualScroll.getData)().slice(),n=[];return function t(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{stop:!1},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=0;l<i.length;l++){if(r.stop)return;var a=i[l],s=a.$v_level||1;if(s>o?o=s:n.splice(s-1),a===e)return void(r.stop=!0);n.push(a);var c=a.$v_hideNodes||[];c.length&&t(c,r,o)}}(t),n},getAllNodes:function(){var e=(0,this.virtualScroll.getData)(),t=[];return e.forEach((function(e){t.push(e),e.$v_hideNodes&&e.$v_hideNodes.length&&t.push.apply(t,h(e.$v_hideNodes))})),t},isVNode:function(e){return this._vnode.constructor===(null==e?void 0:e.constructor)},getFormatterResult:function(e){return se.scope===e||(se.scope=e,se.result=e.column.formatter(e.row,e.column,e.row[e.column.property],e.$index)),se.result}},beforeCreate:function(){this.$root.$options.components.ElTableColumn||(this.$options.components.ElTableColumn=i.TableColumn);var e=this.$attrs.type;["index","selection","radio","tree"].includes(e)&&(this.$attrs.type="v-"+e)},created:function(){this.isNested=!!this.$slots.default,this.virtualScroll.addColumn(this);var e=this.$attrs.type;"expand"===e?this.virtualScroll.isExpandType=!0:"v-tree"===e&&(this.isTree=!0,this.virtualScroll.disableOriginTree())},beforeDestroy:function(){this.virtualScroll.removeColumn(this),se.scope=null,se.result=null}},ue=ce,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table-column",e._g(e._b({attrs:{"class-name":e.getClassName},scopedSlots:e._u([{key:"header",fn:function(t){return[e.$scopedSlots.header?e._t("header",null,null,t):["v-selection"===t.column.type?n("el-checkbox",{attrs:{value:e.isCheckedAll,indeterminate:e.isCheckedImn},on:{change:e.onCheckAllRows}}):[e._v("\n "+e._s(t.column.label)+"\n ")]]]}},{key:"default",fn:function(t){return[t.column&&"v-tree"===t.column.type?[n("span",{staticClass:"el-table__indent",style:{paddingLeft:(t.row.$v_level-1)*e.indent+"px"}}),e._v(" "),!1!==t.row.$v_hasChildren&&!1!==t.row[e.treeProps.hasChildren]?n("div",{staticClass:"el-table__expand-icon",class:t.row.$v_expanded?"el-table__expand-icon--expanded":"",on:{click:function(n){return e.onTreeNodeExpand(t.row)}}},[t.row.$v_loading?n("i",{staticClass:"el-icon-loading"}):n("i",{staticClass:"el-icon-arrow-right"})]):n("span",{staticClass:"el-table__placeholder"})]:e._e(),e._v(" "),e.$scopedSlots.default?e._t("default",null,null,e.setScope(t)):["v-selection"===t.column.type?n("el-checkbox",{attrs:{value:t.row.$v_checked||!1,disabled:e.getDisabled(t)},on:{change:function(n){return e.onCheckRow(t,!t.row.$v_checked)}},nativeOn:{click:function(e){e.stopPropagation()}}}):e._e(),e._v(" "),"v-radio"===t.column.type?n("el-radio",{attrs:{label:!0,value:e.virtualScroll.curRow===t.row},on:{change:function(n){return e.onRadioChange(t.row)}}},[n("span")]):"v-index"===t.column.type?n("span",[e._v("\n "+e._s(e.getIndex(t))+"\n ")]):t.column.formatter?[e.isVNode(e.getFormatterResult(t))?n("el-table-virtual-column-formatter",{attrs:{"v-node":e.getFormatterResult(t)}}):[e._v(e._s(e.getFormatterResult(t)))]]:[e._v("\n "+e._s(t.row[t.column.property])+"\n ")]]]}}],null,!0)},"el-table-column",e.$attrs,!1),e.$listeners),[e._v(" "),e.isNested?[e._t("default")]:e._e()],2)};he._withStripped=!0;var de=J({render:he,staticRenderFns:[]},(function(e){e&&e("data-v-77c884a6_0",{source:'.el-table-virtual-scroll .virtual-column__fixed-left,\n.el-table-virtual-scroll .virtual-column__fixed-right {\n position: sticky !important;\n z-index: 2 !important;\n background: #fff;\n}\n.el-table-virtual-scroll.is-scrolling-left .is-last-column:before {\n box-shadow: none;\n}\n.el-table-virtual-scroll.is-scrolling-right .is-last-column,\n.el-table-virtual-scroll.is-scrolling-middle .is-last-column {\n border-right: none;\n}\n.el-table-virtual-scroll.is-scrolling-right .is-first-column:before {\n box-shadow: none;\n}\n.el-table-virtual-scroll.is-scrolling-left .is-first-column,\n.el-table-virtual-scroll.is-scrolling-middle .is-first-column {\n border-left: none;\n}\n.el-table-virtual-scroll .is-last-column,\n.el-table-virtual-scroll .is-first-column {\n overflow: visible !important;\n}\n.el-table-virtual-scroll .is-last-column:before,\n.el-table-virtual-scroll .is-first-column:before {\n content: "";\n position: absolute;\n top: 0px;\n width: 10px;\n bottom: -1px;\n overflow-x: hidden;\n overflow-y: hidden;\n touch-action: none;\n pointer-events: none;\n}\n.el-table-virtual-scroll .is-last-column:before {\n right: -10px;\n box-shadow: inset 10px 0 10px -10px rgba(0, 0, 0, 0.12);\n}\n.el-table-virtual-scroll .is-first-column:before {\n left: -10px;\n box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.12);\n}\n.el-table-virtual-scroll.is-scrolling-none .is-last-column:before,\n.el-table-virtual-scroll.is-scrolling-none .is-first-column:before {\n content: none;\n}\n',map:{version:3,sources:["el-table-virtual-column.vue"],names:[],mappings:"AAAA;;EAEE,2BAA2B;EAC3B,qBAAqB;EACrB,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,4BAA4B;AAC9B;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,YAAY;EACZ,uDAAuD;AACzD;AACA;EACE,WAAW;EACX,wDAAwD;AAC1D;AACA;;EAEE,aAAa;AACf",file:"el-table-virtual-column.vue",sourcesContent:['.el-table-virtual-scroll .virtual-column__fixed-left,\n.el-table-virtual-scroll .virtual-column__fixed-right {\n position: sticky !important;\n z-index: 2 !important;\n background: #fff;\n}\n.el-table-virtual-scroll.is-scrolling-left .is-last-column:before {\n box-shadow: none;\n}\n.el-table-virtual-scroll.is-scrolling-right .is-last-column,\n.el-table-virtual-scroll.is-scrolling-middle .is-last-column {\n border-right: none;\n}\n.el-table-virtual-scroll.is-scrolling-right .is-first-column:before {\n box-shadow: none;\n}\n.el-table-virtual-scroll.is-scrolling-left .is-first-column,\n.el-table-virtual-scroll.is-scrolling-middle .is-first-column {\n border-left: none;\n}\n.el-table-virtual-scroll .is-last-column,\n.el-table-virtual-scroll .is-first-column {\n overflow: visible !important;\n}\n.el-table-virtual-scroll .is-last-column:before,\n.el-table-virtual-scroll .is-first-column:before {\n content: "";\n position: absolute;\n top: 0px;\n width: 10px;\n bottom: -1px;\n overflow-x: hidden;\n overflow-y: hidden;\n touch-action: none;\n pointer-events: none;\n}\n.el-table-virtual-scroll .is-last-column:before {\n right: -10px;\n box-shadow: inset 10px 0 10px -10px rgba(0, 0, 0, 0.12);\n}\n.el-table-virtual-scroll .is-first-column:before {\n left: -10px;\n box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.12);\n}\n.el-table-virtual-scroll.is-scrolling-none .is-last-column:before,\n.el-table-virtual-scroll.is-scrolling-none .is-first-column:before {\n content: none;\n}\n']},media:void 0})}),ue,undefined,false,undefined,!1,te,void 0,void 0);return e.VirtualColumn=de,e.VirtualScroll=le,e.default=le,Object.defineProperty(e,"__esModule",{value:!0}),e}({},normalizeWheel,util,ELEMENT);
var ElTableVirtualScroll=function(e,t,n,i){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);function l(){l=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function h(e,t,n,i){var o=t&&t.prototype instanceof b?t:b,l=Object.create(o.prototype),a=new R(i||[]);return r(l,"_invoke",{value:$(e,n,a)}),l}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f="suspendedStart",v="suspendedYield",p="executing",g="completed",m={};function b(){}function y(){}function w(){}var S={};u(S,a,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(N([])));A&&A!==n&&i.call(A,a)&&(S=A);var _=w.prototype=b.prototype=Object.create(S);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(r,o,l,a){var s=d(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,a)}),(function(e){n("throw",e,l,a)})):t.resolve(u).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,a)}))}a(s.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function $(t,n,i){var r=f;return function(o,l){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw l;return{value:e,done:!0}}for(i.method=o,i.arg=l;;){var a=i.delegate;if(a){var s=C(a,i);if(s){if(s===m)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===f)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var c=d(t,n,i);if("normal"===c.type){if(r=i.done?g:v,c.arg===m)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=g,i.method="throw",i.arg=c.arg)}}}function C(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var l=o.arg;return l?l.done?(n[t.resultName]=l.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):l:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=w,r(_,"constructor",{value:w,configurable:!0}),r(w,"constructor",{value:y,configurable:!0}),y.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,u(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},E(T.prototype),u(T.prototype,s,(function(){return this})),t.AsyncIterator=T,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var l=new T(h(e,n,i,r),o);return t.isGeneratorFunction(n)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},E(_),u(_,c,"Generator"),u(_,a,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=N,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],a=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var s=i.call(l,"catchLoc"),c=i.call(l,"finallyLoc");if(s&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(s){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var l=o?o.completion:{};return l.type=e,l.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:N(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,n,i,r,o,l){try{var a=e[o](l),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(i,r)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function l(e){s(o,i,r,l,a,"next",e)}function a(e){s(o,i,r,l,a,"throw",e)}l(void 0)}))}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,l,a=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw r}}return a}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){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 d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var v=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g="object"==typeof p&&p&&p.Object===Object&&p,m="object"==typeof self&&self&&self.Object===Object&&self,b=g||m||Function("return this")(),y=function(){return b.Date.now()},w=/\s/;var S=function(e){for(var t=e.length;t--&&w.test(e.charAt(t)););return t},x=/^\s+/;var A=function(e){return e?e.slice(0,S(e)+1).replace(x,""):e},_=b.Symbol,E=Object.prototype,T=E.hasOwnProperty,$=E.toString,C=_?_.toStringTag:void 0;var k=function(e){var t=T.call(e,C),n=e[C];try{e[C]=void 0;var i=!0}catch(e){}var r=$.call(e);return i&&(t?e[C]=n:delete e[C]),r},D=Object.prototype.toString;var R=function(e){return D.call(e)},N=_?_.toStringTag:void 0;var B=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":N&&N in Object(e)?k(e):R(e)};var O=function(e){return null!=e&&"object"==typeof e};var P=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==B(e)},L=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,F=/^0o[0-7]+$/i,I=parseInt;var M=function(e){if("number"==typeof e)return e;if(P(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=A(e);var n=j.test(e);return n||F.test(e)?I(e.slice(2),n?2:8):L.test(e)?NaN:+e},z=Math.max,H=Math.min;var W=function(e,t,n){var i,r,o,l,a,s,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,o=r;return i=r=void 0,c=t,l=e.apply(o,n)}function p(e){var n=e-s;return void 0===s||n>=t||n<0||h&&e-c>=o}function g(){var e=y();if(p(e))return m(e);a=setTimeout(g,function(e){var n=t-(e-s);return h?H(n,o-(e-c)):n}(e))}function m(e){return a=void 0,d&&i?f(e):(i=r=void 0,l)}function b(){var e=y(),n=p(e);if(i=arguments,r=this,s=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(g,t),u?f(e):l}(s);if(h)return clearTimeout(a),a=setTimeout(g,t),f(s)}return void 0===a&&(a=setTimeout(g,t)),l}return t=M(t)||0,v(n)&&(u=!!n.leading,o=(h="maxWait"in n)?z(M(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=s=r=a=void 0},b.flush=function(){return void 0===a?l:m(y())},b};var V=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return v(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),W(e,t,{leading:i,maxWait:t,trailing:r})};function Y(e){var t=window.getComputedStyle(e,null),n=["auto","scroll"];return n.includes(t.overflow)||n.includes(t["overflow-y"])}function U(e){return e===window?window.pageYOffset:e.scrollTop}function q(e){return null==e}var K="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;var G=function(e){return null!==e&&"object"===a(e)},X=function(e,t,i,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;i="string"==typeof i?"descending"===i?-1:1:i&&i<0?-1:1;var l=r?null:function(i,r){return o?(Array.isArray(o)||(o=[o]),o.map((function(t){return"string"==typeof t?n.getValueByPath(i,t):t(i,r,e)}))):("$key"!==t&&G(i)&&"$value"in i&&(i=i.$value),[G(i)?n.getValueByPath(i,t):i])};return e.map((function(e,t){return{value:e,index:t,key:l?l(e,t):null}})).sort((function(e,t){var n=function(e,t){if(r)return r(e.value,t.value);for(var n=0,i=e.key.length;n<i;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0}(e,t);return n||(n=e.index-t.index),n*i})).map((function(e){return e.value}))},Q=[".el-table__body-wrapper",".el-table__fixed-right .el-table__fixed-body-wrapper",".el-table__fixed .el-table__fixed-body-wrapper"],Z={name:"el-table-virtual-scroll",props:{data:{type:Array,required:!0},itemSize:{type:Number,default:60},scrollBox:{type:String},buffer:{type:Number,default:200},keyProp:{type:String,default:"id"},throttleTime:{type:Number,default:16},dynamic:{type:Boolean,default:!0},virtualized:{type:Boolean,default:!0},rowSpanKey:{type:Function},warn:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},selectionSort:{type:[Function,Boolean],default:!0},getElTable:{type:Function,default:function(){return this.$children[0]}},keepScroll:{type:Boolean,default:!0}},provide:function(){return{virtualScroll:this}},data:function(){return{sizes:{},start:0,end:void 0,curRow:null,oldSelection:[],isExpanding:!1,columnVms:[],isHideAppend:!1,scrollPosition:"",hasFixedRight:!1,listData:[]}},computed:{offsetMap:function(e){var t=e.keyProp,n=e.itemSize,i=e.sizes,r=e.listData;if(!this.dynamic)return{};for(var o={},l=0,a=0;a<r.length;a++){var s=r[a][t];void 0===s&&this.warn&&console.warn("data[".concat(a,"][").concat(t,"] 为 undefined,请确保 keyProp 对应的值不为undefined")),o[s]=l;var c=i[s];l+="number"==typeof c?c:n}return o}},methods:{initData:function(){var e=this;if(this.destory(),this.renderData=[],this.top=void 0,this.bottom=void 0,this.start=0,this.end=void 0,this.isInnerScroll=!1,this.highlightRow=null,this.scrollPos=[0,0],this.triggleScroll=!1,this.checkOrder=0,this.elTable=this.getElTable(),!this.elTable||"ElTable"!==this.elTable.$options.name)throw new Error("未找到 <el-table> 组件. 请确保 <el-table> 组件在虚拟组件内,且 getElTable 方法能获取到正确的 <el-table> 组件!");this.elTable.rowKey||this.warn&&console.warn("[el-table-virtual-scroll]: 建议设置 <el-table> 组件的 rowKey 属性"),this.scroller=this.getScroller(),this.observeElTable(),this.onScroll=this.throttleTime?V(this.handleScroll,this.throttleTime):this.handleScroll,this.scroller.addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.onScroll),this.bindTableExpandEvent(),this.bindTableDragEvent(),this.bindTableSortEvent(),this.bindTableFilterEvent(),this.bindTableDestory(),this.hackRowHighlight(),this.hackHighlightSelectionRow(),setTimeout((function(){!e.triggleScroll&&e.onScroll()}),100)},slowOnMousewheel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scroller;this.removeMousewheelEvent&&this.removeMousewheelEvent(),this.removeMousewheelEvent=null,e&&(this.removeMousewheelEvent=function(e,t){var n=V((function(n){var i=o.default(n);if(Math.abs(i.spinY)>0){var r=e.scrollTop;i.pixelY<0&&0!==r&&n.preventDefault(),i.pixelY>0&&e.scrollHeight-e.clientHeight>r&&n.preventDefault(),e.scrollTop+=Math.ceil(i.pixelY/t)}}),0);return e.addEventListener(K?"DOMMouseScroll":"mousewheel",n,{passive:!1}),function(){e.removeEventListener(K?"DOMMouseScroll":"mousewheel",n)}}(t,e))},getScroller:function(){var e;if(this.scrollBox){if("window"===this.scrollBox||this.scrollBox===window)return window;if(!(e=document.querySelector(this.scrollBox)))throw new Error(" scrollBox prop: '".concat(this.scrollBox,"' is not a valid selector"));return Y(e)||console.warn("Warning! scrollBox prop: '".concat(this.scrollBox,"' is not a scroll element")),e}return this.elTable&&(this.elTable.height||this.elTable.maxHeight)?(this.isInnerScroll=!0,this.$el.querySelector(".el-table__body-wrapper")):function(e){for(var t=e;t;){if([window,document,document.documentElement].includes(t))return window;if(Y(t))return t;t=t.parentNode}return t||window}(this.$el)},getToTop:function(){return this.isInnerScroll?0:this.$el.getBoundingClientRect().top-(this.scroller===window?0:this.scroller.getBoundingClientRect().top)+U(this.scroller)},handleScroll:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.disabled||this.scroller&&(this.triggleScroll=!0,(!this.isInnerScroll||this.scroller.style.height||this.scroller.style.maxHeight)&&(this.isDeactivated||(this.isInnerScroll&&this.elTable.layout.bodyHeight&&(this.scrollPos[0]=this.scroller.scrollTop,this.scrollPos[1]=this.scroller.scrollLeft),this.virtualized&&(this.removeHoverRows(),this.updateSizes(),this.calcRenderData(),this.calcPosition(),e&&this.updatePosition(),this.$emit("change",this.renderData,this.start,this.end),this.setRowsExpanded(),this.syncRowsHighlight()))))},removeHoverRows:function(){var e=this.$el.querySelectorAll(".el-table__row.hover-row");e.length>1&&Array.from(e).forEach((function(e){e.classList.remove("hover-row")}))},updateSizes:function(){var e=this;if(this.dynamic){var t=this.$el.querySelectorAll(".el-table__body > tbody > .el-table__row"),n=this.elTable.lazy,i=/el-table__row--level-[1-9]\d*/;n&&(t=Array.from(this.$el.querySelectorAll(".el-table__body > tbody > .el-table__row")).filter((function(e){return!i.test(e.className)}))),Array.from(t).forEach((function(t,r){var o=e.renderData[r];if(o){var l=t.offsetHeight;if(!n&&t.classList.contains("expanded")&&(l+=t.nextSibling.offsetHeight),n)for(var a=t.nextSibling;a&&"TR"===a.tagName&&i.test(a.className);)l+=a.offsetHeight,a=a.nextSibling;var s=o[e.keyProp];l&&e.sizes[s]!==l&&e.$set(e.sizes,s,l)}}))}},getItemOffsetTop:function(e){if(!this.dynamic)return this.itemSize*e;var t=this.listData[e];return t&&this.offsetMap[t[this.keyProp]]||0},getItemSize:function(e){if(e<=-1)return 0;var t=this.listData[e];if(t){var n=t[this.keyProp];return this.sizes[n]||this.itemSize}return this.itemSize},calcRenderData:function(){var e,t,n,i=this.scroller,r=this.listData,o=this.buffer,l=this.getToTop(),a=U(i)-o-l,s=U(i)+((e=i)===window?window.innerHeight:e.offsetHeight)+o-l;if(this.dynamic){for(var c=0,h=r.length-1,d=0;c<=h;){if(d=Math.floor((c+h)/2),this.getItemOffsetTop(d)<a){if(this.getItemOffsetTop(d+1)>a)break;c=d+1}else h=d-1}for(c=t=d,h=r.length-1,d=0;c<=h;){if(d=Math.floor((c+h)/2),this.getItemOffsetTop(d)>=s){if(this.getItemOffsetTop(d-1)<s)break;h=d-1}else c=d+1}n=d}else t=a<=0?0:Math.floor(a/this.itemSize),n=s<=0?0:Math.ceil(s/this.itemSize);if(this.isRowSpan()){var f=u(this.calcRenderSpanData(t,n),2);t=f[0],n=f[1]}else t%2&&(t-=1);this.top=a,this.bottom=s,this.start=t,this.end=n,this.renderData=r.slice(t,n+1),0===this.start&&this.end>30&&this.end===this.listData.length-1&&this.warn&&console.warn("[el-table-virtual-scroll] 表格数据全部渲染,渲染数量为:"+this.listData.length)},isRowSpan:function(){return"function"==typeof this.rowSpanKey},calcRenderSpanData:function(e,t){for(var n;e>0;){var i=this.listData[e],r=this.rowSpanKey(i,e);if(q(r))break;if(!q(n)&&n!==r){e++;break}n=r,e--}var o=this.listData.length;for(n=void 0;t<o;){var l=this.listData[t],a=this.rowSpanKey(l,t);if(!a)break;if(n&&n!==a){t--;break}n=a,t++}return[e,t]},calcPosition:function(){var e,t=this,n=this.listData.length-1,i=this.getItemOffsetTop(n)+this.getItemSize(n),r=this.getItemOffsetTop(this.start);Q.forEach((function(n,o){var l=t.$el.querySelector(n);if(l){if(!l.wrapEl){var a=document.createElement("div"),s=document.createElement("div");a.appendChild(s),s.appendChild(l.children[0]),l.insertBefore(a,l.firstChild),l.wrapEl=a,l.innerEl=s,o>0&&e&&t.$nextTick((function(){l.scrollTop=e.scrollTop}))}0===o&&(e=l),l.wrapEl&&(l.wrapEl.style.height=i+"px",l.innerEl.style.transform="translateY(".concat(r,"px)"))}}))},observeElTable:function(){var e=this,t=this.$watch((function(){return[e.elTable.scrollPosition,e.elTable.layout.scrollX]}),(function(t){var n=u(t,2),i=n[0],r=n[1],o=u(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],2);o[0];var l=o[1];e.scrollPosition=e.elTable.layout.scrollX?i:"none",r&&!l&&e.elTable.syncPostion&&e.elTable.syncPostion()}),{immediate:!0}),n=this.$watch((function(){return e.elTable.layout.bodyHeight}),(function(t){t>0&&e.restoreScroll(),t>0&&e.onScroll()}));this.unWatchs=[t,n]},doUpdate:function(){var e=this;this.hasDoUpdate||this.scroller&&(this.isHideAppend=!0,this.onScroll(),this.hasDoUpdate=!0,this.$nextTick((function(){e.hasDoUpdate=!1,e.isHideAppend=!1})))},updatePosition:function(){var e=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout((function(){e.timer&&clearTimeout(e.timer),e.handleScroll(!1)}),this.throttleTime+10)},renderAllData:function(){var e=this;this.renderData=this.listData,this.$emit("change",this.listData,0,this.listData.length-1),this.$nextTick((function(){Q.forEach((function(t){var n=e.$el.querySelector(t);n&&n.wrapEl&&(n.wrapEl.style.height="auto",n.innerEl.style.transform="translateY(".concat(0,"px)"))}))}))},restoreScroll:function(){this.scroller&&this.isInnerScroll&&(this.scroller.scrollLeft=this.keepScroll?this.scrollPos[1]:0,this.scroller.scrollTop=this.keepScroll?this.scrollPos[0]:0)},update:function(){this.handleScroll()},scrollTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.listData[e]&&this.scroller&&(this.updateSizes(),this.calcRenderData(),this.$nextTick((function(){var r,o,l=t.getItemOffsetTop(e)-n;r=t.scroller,o=l,r===window?window.scroll(0,o):r.scrollTop=o,i||setTimeout((function(){t.scrollTo(e,n,!0)}),50)})))},reset:function(){this.sizes={},this.scrollTo(0,0,!1)},destory:function(){this.scroller&&(this.scroller.removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.onScroll)),this.unWatchs&&this.unWatchs.forEach((function(e){return e()})),this.removeMousewheelEvent&&this.removeMousewheelEvent(),this.oldSelection=[],this.elTable=null,this.scroller=null,this.unWatchs=[]},updateData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.list=e,this.$emit("update:data",this.list)},getData:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.list||(e?this.data:this.listData)},addColumn:function(e){this.columnVms.push(e)},removeColumn:function(e){this.columnVms=this.columnVms.filter((function(t){return t!==e}))},checkAll:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.listData,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];n.forEach((function(n){n.$v_checked&&r.push(n),n.$v_checked!==e&&(t.$set(n,"$v_checked",e),t.$set(n,"$v_checkedOrder",e?t.checkOrder++:void 0))}));var o=this.emitSelectionChange(r);i&&this.$emit("select-all",o,e),!1===e&&(this.checkOrder=0)},checkRow:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.$v_checked!==t&&(this.$set(e,"$v_checked",t),this.$set(e,"$v_checkedOrder",t?this.checkOrder++:void 0),n)){var r=this.emitSelectionChange(t?[]:[e]);i&&this.$emit("select",r,e,t)}},clearSelection:function(){var e=this;this.oldSelection.forEach((function(t){e.$set(t,"$v_checked",!1)})),this.oldSelection=[],this.checkAll(!1),this.columnVms.forEach((function(e){return e.syncCheckStatus()}))},toggleRowSelection:function(e,t){Array.isArray(e)||(e=[e]),this.toggleRowsSelection(e,t)},toggleRowsSelection:function(e,t){var n=this,i={},r={},o=null,l=this.isReserveSelection();l&&(this.oldSelection.forEach((function(e){i[e[n.keyProp]]=!0})),this.data.forEach((function(e){r[e[n.keyProp]]=!0})));var a=[];e.forEach((function(e){var s="boolean"==typeof t?t:!e.$v_checked;if(!s&&a.push(e),n.$set(e,"$v_checked",s),n.$set(e,"$v_checkedOrder",s?n.checkOrder++:void 0),l){var c=e[n.keyProp];c in i&&!s&&(o||(o={}),o[c]=!0),!(c in r)&&s&&n.oldSelection.push(e)}})),o&&(this.oldSelection=this.oldSelection.filter((function(e){return!(e[n.keyProp]in o)}))),this.emitSelectionChange(a),this.columnVms.forEach((function(e){return e.syncCheckStatus()}))},emitSelectionChange:function(e){var t=this.isReserveSelection(),n=t?h(this.oldSelection):[];return this.data.forEach((function(e){e.$v_checked&&n.push(e)})),this.sortSelection(n),this.$emit("selection-change",n,e),t||(this.oldSelection=h(n)),n},updateSelectionByRowKey:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(this.elTable){n.forEach((function(e){e.$v_checked&&t.oldSelection.push(e)}));var i={};this.oldSelection.forEach((function(e){i[e[t.keyProp]]=!0}));var r={};e.forEach((function(e){var n=e[t.keyProp];n in i&&(t.$set(e,"$v_checked",!0),r[n]=!0)})),this.oldSelection=this.oldSelection.filter((function(e){return!(e[t.keyProp]in r)}))}},isReserveSelection:function(){return this.columnVms.some((function(e){return e.reserveSelection&&e.isSelection()}))},getSelection:function(){if(this.isReserveSelection()){var e=this.data.filter((function(e){return e.$v_checked}));return[].concat(h(this.oldSelection),h(e))}return this.oldSelection},updateSelectionData:function(e,t){var n=this;if(this.syncSelectionStatus(),e===t){var i=this.data.filter((function(e){return e.$v_checked}));this.sortSelection(i);var r=i.reduce((function(e,t){return e[t[n.keyProp]]=!0,e}),{}),o=this.oldSelection.reduce((function(e,t){return t[n.keyProp]in r||e.push(t),e}),[]);(o.length||i.length!==this.oldSelection.length)&&(this.$emit("selection-change",i,o),this.oldSelection=h(i))}else this.oldSelection=[]},sortSelection:function(e){var t=this;this.selectionSort&&("function"==typeof this.selectionSort?e.sort((function(e,n){return t.selectionSort(e,n)})):e.sort((function(e,t){return e.$v_checkedOrder-t.$v_checkedOrder})))},syncSelectionStatus:function(){var e=this.columnVms.find((function(e){return e.isSelection()}));e&&e.syncCheckStatus()},setCurrentRow:function(e){this.curRow=e,this.$emit("current-change",e)},hackRowHighlight:function(){var e=this;if(this.elTable.setCurrentRow.virtual){var t=this.elTable.setCurrentRow.bind(this.elTable),n=function(n){e.elTable.store.states.currentRow=e.highlightRow,e.highlightRow!==n&&(e.highlightRow=n),t(n)};this.elTable.setCurrentRow=n,n.virtual=!0}var i=this.$watch((function(){return e.elTable.currentRowKey}),(function(t){if(e.elTable.rowKey){var n=e.listData.find((function(n){return t===n[e.elTable.rowKey]}));e.highlightRow=n}}),{immediate:!0});this.unWatchs.push(i);var r=function(t){e.highlightRow=t};this.elTable.$on("current-change",r),this.unWatchs.push((function(){e.elTable.$off("current-change",r)}))},syncRowsHighlight:function(){var e=this;this.elTable.highlightCurrentRow&&this.$nextTick((function(){e.elTable.store.states.currentRow=e.highlightRow}))},hackHighlightSelectionRow:function(){var e=this,t=this.$watch((function(){return[e.elTable.fixedColumns,e.elTable.rightFixedColumns]}),(function(){e.elTable&&e.elTable.$children.filter((function(e){return"ElTableBody"===e.$options.name})).forEach((function(t){if(!t.getRowClass.virtual){var n=t.getRowClass.bind(e.elTable);t.getRowClass=function(t,i){var r=n(t,i);return e.elTable.highlightSelectionRow&&t.$v_checked&&r.push("selection-row"),r},t.getRowClass.virtual=!0}}))}),{immediate:!0});this.unWatchs.push(t)},bindTableDragEvent:function(){var e=this,t=function(){e.hasHeadDrag=!0,e.elTable.doLayout(),e.update()};this.elTable.$on("header-dragend",t),this.unWatchs.push((function(){e.elTable.$off("header-dragend",t)}))},bindTableExpandEvent:function(){var e=this,t=function(t,n){e.isExpandType&&e.$set(t,"$v_expanded",n.includes(t)),t.$v_expanded&&!1!==n||setTimeout((function(){e.update()}))};this.elTable.$on("expand-change",t),this.unWatchs.push((function(){e.elTable.$off("expand-change",t)}))},setRowsExpanded:function(){var e=this;this.isExpandType&&this.$nextTick((function(){var t=e.renderData.filter((function(e){return e.$v_expanded}));0!==t.length&&(t.forEach((function(t){e.elTable.toggleRowExpansion(t,!0)})),e.isExpanding=!0,setTimeout((function(){e.isExpanding=!1}),10))}))},toggleRowExpansion:function(e,t){var n="boolean"==typeof t;this.$set(e,"$v_expanded",n?t:!e.$v_expanded),this.renderData.includes(e)&&this.elTable.toggleRowExpansion(e,t)},headerCellFixedStyle:function(e){return this.cellFixedStyle(e,!0)},cellFixedStyle:function(e){var t=this,n=e.column,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.getElTable();if(r){var o=r.layout,l=o.gutterWidth,a=o.scrollY,s=o.bodyWidth,c=i&&a?l:0;if(!this.fixedMap||this._isScrollY!==a||this._bodyWidth!==s||this.hasHeadDrag){this.hasHeadDrag&&(this.hasHeadDrag=!1),this._isScrollY=a,this._bodyWidth=s,this.fixedMap={},this.totalLeft=0,this.totalRight=0;for(var u,h,d=r.columns,f=[],v=0;v<d.length;v++){var p=d[v],g=p.className&&p.className.includes("virtual-column__fixed-left"),m=p.className&&p.className.includes("virtual-column__fixed-right");(g||m)&&(g&&(u=p,this.fixedMap[p.id]={left:this.totalLeft},this.totalLeft+=p.realWidth||p.width),m&&(h||(h=p),f.push(p)))}var b=" is-last-column",y=" is-first-column";u&&!u.className.includes(b)&&(u.className+=b),h&&!h.className.includes(y)&&(h.className+=y),this.hasFixedRight=f.length>0,f.reverse().forEach((function(e){t.fixedMap[e.id]={right:t.totalRight},t.totalRight+=e.realWidth||e.width}))}var w=this.fixedMap[n.id];if(w){var S="right"in w?{right:w.right+c+"px"}:{left:w.left+"px"};return r.showSummary&&this.$nextTick((function(){var e=t.$el.querySelector(".el-table__footer-wrapper .".concat(n.id));e&&(S.left&&(e.style.left=S.left),S.right&&(e.style.right=S.right))})),S}}},doHeaderLayout:function(){this.elTable&&(this.fixedMap=null,this.elTable.$refs.tableHeader.$forceUpdate())},bindTableSortEvent:function(){var e=this;this.onSortChange=function(){if(e.elTable){var t=e.elTable.store.states,n=t.sortingColumn,i=e.filterData||e.data;n&&"string"!=typeof n.sortable?e.listData=X(i,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e.listData=i,e.doUpdate(),e.$nextTick((function(){e.syncSelectionStatus()}))}},this.elTable.$on("sort-change",this.onSortChange),this.unWatchs.push((function(){e.elTable.$off("sort-change",e.onSortChange)}));var t=this.elTable.clearSort.bind(this.elTable);this.elTable.clearSort=function(){t.apply(void 0,arguments),e.onSortChange()},this.elTable.defaultSort&&this.$nextTick((function(){e.onSortChange()}))},bindTableFilterEvent:function(){var e=this;this.onFilterChange=function(){if(e.elTable){var t=e.elTable.store.states,n=t.filters,i=e.data;Object.keys(n).forEach((function(e){var n=t.filters[e];if(n&&0!==n.length){var r=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n}(t,e);r&&r.filterMethod&&(i=i.filter((function(e){return n.some((function(t){return r.filterMethod.call(null,t,e,r)}))})))}}));var r=e.data!==i;e.filterData=r?i:null,e.onSortChange()}},this.elTable.$on("filter-change",this.onFilterChange),this.unWatchs.push((function(){e.elTable.$off("filter-change",e.onFilterChange)}));var t=this.elTable.clearFilter.bind(this.elTable);this.elTable.clearFilter=function(){t.apply(void 0,arguments),e.onFilterChange()},this.elTable.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.onFilterChange()}))},disableOriginTree:function(){var e=this;this.$nextTick((function(){e.elTable&&(e.elTable.store.states.childrenColumnName="")}))},bindTableDestory:function(){var e=this,t=function(){e.warn&&console.warn("<el-table> 组件销毁时,建议将 <el-table-virtual-scroll> 组件一同销毁"),e.destory(),e.$nextTick((function(){e.initData()}))};this.elTable.$on("hook:beforeDestory",t),this.unWatchs.push((function(){e.elTable.$off("hook:beforeDestory",t)}))}},watch:{data:function(e,t){this.listData=e,this.list&&e!==t&&(this.list=e),this.virtualized?this.onFilterChange&&this.onFilterChange():this.renderAllData(),this.isReserveSelection()?this.updateSelectionByRowKey(e,t):this.updateSelectionData(e,t)},virtualized:{immediate:!0,handler:function(e){e?this.doUpdate():this.renderAllData()}},disabled:function(){this.doUpdate()}},created:function(){var e=this;this.listData=this.data,this.$nextTick((function(){e.initData()}))},activated:function(){var e;this.isDeactivated=!1,!1===(null===(e=this.elTable)||void 0===e?void 0:e.fit)&&this.restoreScroll()},deactivated:function(){this.isDeactivated=!0},beforeDestroy:function(){this.destory()}};function J(e,t,n,i,r,o,l,a,s,c){"boolean"!=typeof l&&(s=a,a=l,l=!1);const u="function"==typeof n?n.options:n;let h;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),i&&(u._scopeId=i),o?(h=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,s(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=h):t&&(h=l?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),h)if(u.functional){const e=u.render;u.render=function(t,n){return h.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,h):[h]}return n}const ee="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function te(e){return(e,t)=>function(e,t){const n=ee?t.media||"default":e,i=ie[n]||(ie[n]={ids:new Set,styles:[]});if(!i.ids.has(e)){i.ids.add(e);let n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",t.media&&i.element.setAttribute("media",t.media),void 0===ne&&(ne=document.head||document.getElementsByTagName("head")[0]),ne.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(n),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{const e=i.ids.size-1,t=document.createTextNode(n),r=i.element.childNodes;r[e]&&i.element.removeChild(r[e]),r.length?i.element.insertBefore(t,r[e]):i.element.appendChild(t)}}}(e,t)}let ne;const ie={};var re=Z,oe=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"el-table-virtual-scroll",class:[e.isExpanding?"is-expanding":"",e.isHideAppend?"hide-append":"",e.scrollPosition?"is-scrolling-"+e.scrollPosition:"",e.hasFixedRight?"has-custom-fixed-right":""]},[e._t("default",null,null,{headerCellFixedStyle:e.headerCellFixedStyle,cellFixedStyle:e.cellFixedStyle})],2)};oe._withStripped=!0;var le=J({render:oe,staticRenderFns:[]},(function(e){e&&(e("data-v-352fab15_0",{source:".el-table-virtual-scroll.has-custom-fixed-right .el-table__cell.gutter {\n position: sticky;\n right: 0;\n}\n",map:{version:3,sources:["el-table-virtual-scroll.vue"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,QAAQ;AACV",file:"el-table-virtual-scroll.vue",sourcesContent:[".el-table-virtual-scroll.has-custom-fixed-right .el-table__cell.gutter {\n position: sticky;\n right: 0;\n}\n"]},media:void 0}),e("data-v-352fab15_1",{source:".is-expanding[data-v-352fab15] :deep(.el-table__expand-icon) {\n transition: none;\n}\n.hide-append[data-v-352fab15] :deep(.el-table__append-wrapper) {\n display: none;\n}\n",map:{version:3,sources:["el-table-virtual-scroll.vue"],names:[],mappings:"AAAA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;AACf",file:"el-table-virtual-scroll.vue",sourcesContent:[".is-expanding :deep(.el-table__expand-icon) {\n transition: none;\n}\n.hide-append :deep(.el-table__append-wrapper) {\n display: none;\n}\n"]},media:void 0}))}),re,"data-v-352fab15",false,undefined,!1,te,void 0,void 0),ae=J({},undefined,{name:"el-table-virtual-column-formatter",props:{vNode:{type:Object}},render:function(){return this.vNode}},undefined,undefined,undefined,!1,void 0,void 0,void 0),se={scope:null,result:null},ce={name:"el-table-virtual-column",components:{ElCheckbox:i.Checkbox,ElRadio:i.Radio,ElTableVirtualColumnFormatter:ae},inject:["virtualScroll"],props:{load:{type:Function,default:function(e,t){t([])}},indent:{type:Number,default:16},selectable:{type:Function},reserveSelection:{type:Boolean,default:!1},treeProps:{type:Object,default:function(){return{}}}},data:function(){return{isCheckedAll:!1,isCheckedImn:!1,isTree:!1,isNested:!1}},computed:{getClassName:function(){var e=[],t=this.$attrs["class-name"]||this.$attrs.className;t&&e.push(t),this.isTree&&e.push("el-table__row--level");var n=this.$attrs.vfixed;return!0!==n&&""!==n||(n="left"),n&&e.push("virtual-column__fixed-"+n),e.join(" ")}},methods:{getDisabled:function(e){if(this.selectable){var t=this.getIndex(e,!1);return!this.selectable(e.row,t)}return!1},onCheckAllRows:function(e){var t=this,n=this.virtualScroll.elTable.selectOnIndeterminate;if(e=void 0===n||n?!!this.isCheckedImn||!this.isCheckedAll:!this.isCheckedImn&&!this.isCheckedAll,this.selectable){var i=[];this.virtualScroll.getData(!1).forEach((function(e,n){t.selectable(e,n)&&i.push(e)})),this.virtualScroll.checkAll(e,i,!0)}else this.virtualScroll.checkAll(e);var r=this.virtualScroll.getSelection();this.isCheckedImn=!e&&r.length>0,this.isCheckedAll=e},onCheckRow:function(e,t){var n=this.getIndex(e,!1);if(this.selectable&&!this.selectable(e.row,n))return;this.virtualScroll.checkRow(e.row,t,!0,!0),this.syncCheckStatus()},isSelection:function(){return"v-selection"!==this.$attrs.type},syncCheckStatus:function(){var e=this,t=this.virtualScroll.getData(!1),n=t.filter((function(e){return!0===e.$v_checked})).length,i=this.virtualScroll.getSelection();n&&n===t.length?this.isCheckedAll=!0:n&&this.selectable?this.isCheckedAll=t.every((function(t,n){return!e.selectable(t,n)||t.$v_checked})):this.isCheckedAll=!1,this.isCheckedImn=!this.isCheckedAll&&i.length>0},onRadioChange:function(e){this.virtualScroll.setCurrentRow(e)},getIndex:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.virtualScroll.start+e.$index;return"function"==typeof this.$attrs.index?this.$attrs.index(n):n+(t?1:0)},setScope:function(e){return e.$index=this.virtualScroll.start+e.$index,e},onTreeNodeExpand:function(e){var t=arguments,n=this;return c(l().mark((function i(){var r,o;return l().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r=t.length>1&&void 0!==t[1]?t[1]:!e.$v_expanded,o=!(t.length>2&&void 0!==t[2])||t[2],e.$v_expanded!==r){i.next=4;break}return i.abrupt("return",[]);case 4:if(!r){i.next=13;break}if(!e.$v_loaded){i.next=9;break}return i.abrupt("return",n.loadOldChildNodes(e));case 9:if(!o){i.next=11;break}return i.abrupt("return",n.loadChildNodes(e));case 11:i.next=14;break;case 13:return i.abrupt("return",n.hideChildNodes(e));case 14:case"end":return i.stop()}}),i)})))()},loadChildNodes:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(i){if(t.$set(e,"$v_loading",!0),t.$set(e,"$v_hasChildren",void 0),!n){var r=t.treeProps,o=r.children,l=r.hasChildren;if(!1===e[l])return a.call(t,[]);if(e[l])return a.call(t,e[o])}function a(t){if(!Array.isArray(t))return this.$set(e,"$v_loading",!1),this.$set(e,"$v_hasChildren",!1),void i();e.$v_hasChildren&&this.removeNode(e,!0),this.$set(e,"$v_loading",!1),this.$set(e,"$v_expanded",!0),this.$set(e,"$v_loaded",!0),this.$set(e,"$v_hasChildren",!!t.length),t.forEach((function(t){t.$v_level="number"==typeof e.$v_level?e.$v_level+1:2}));var n=this.virtualScroll.getData(),r=n.findIndex((function(t){return t===e}));r>-1&&this.virtualScroll.updateData([].concat(h(n.slice(0,r+1)),h(t),h(n.slice(r+1)))),i(t)}t.load&&t.load(e,a.bind(t))}))},loadOldChildNodes:function(e){this.$set(e,"$v_expanded",!0);var t=this.virtualScroll.getData(),n=t.findIndex((function(t){return t===e}));if(n>-1){this.virtualScroll.updateData([].concat(h(t.slice(0,n+1)),h(e.$v_hideNodes||[]),h(t.slice(n+1))));var i=e.$v_hideNodes;return delete e.$v_hideNodes,i}return[]},hideChildNodes:function(e){this.$set(e,"$v_expanded",!1);var t=this.virtualScroll,n=t.getData,i=t.keyProp,r=n(),o=this.getChildNodes(e,!0,!0);if(o.length){var l={};o.forEach((function(e){l[e[i]]=!0})),this.$set(e,"$v_hideNodes",o);var a=r.filter((function(e){return!(e[i]in l)}));return this.virtualScroll.updateData(a),this.virtualScroll.update(),[]}},expand:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(Array.isArray(e)){var r=this.virtualScroll,o=r.getData,l=r.keyProp,a=o(),s=[];return a.forEach((function(r){r[l]&&e.includes(r[l])&&s.push(t.onTreeNodeExpand(r,n,i))})),Promise.all(s)}},expandPath:function(e){var t=this;if(Array.isArray(e)){var n=function(){var i=c(l().mark((function i(r,a){var s;return l().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a!==e.length){i.next=2;break}return i.abrupt("return",e[a-1]);case 2:if(Array.isArray(r)&&r.length){i.next=4;break}return i.abrupt("return",e[a-1]);case 4:if(!(s=r.find((function(t){return t[o]===e[a]})))){i.next=13;break}if(s.$v_expanded){i.next=10;break}return i.next=9,t.onTreeNodeExpand(s,!0);case 9:r=i.sent;case 10:return i.abrupt("return",n(r,a+1));case 13:return console.warn("[expandPath] 没有找到 ".concat(e[a]," key值对应的行")),i.abrupt("return",e[a-1]);case 15:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}(),i=this.virtualScroll,r=i.getData,o=i.keyProp,a=r();return n(a,0)}},expandAll:function(){var e=this;!function t(n){Array.isArray(n)&&n.length&&n.forEach((function(n){e.onTreeNodeExpand(n,!0,!1),t(n.$v_hideNodes)}))}((0,this.virtualScroll.getData)())},unexpandAll:function(){var e=this,t=(0,this.virtualScroll.getData)(),n=[];t.forEach((function(e){var t=e.$v_level||1;!n[t]&&(n[t]=[]),n[t].push(e)}));for(var i=n.length-1;i>=0;i--)n[i]&&n[i].forEach((function(t){e.onTreeNodeExpand(t,!1)}))},removeNode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t||e.$v_hasChildren){var n=(0,this.virtualScroll.getData)().slice(),i=e.$v_level||1;!function n(r){for(var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{match:!1,stop:!1},l=0;l<r.length;l++){if(o.stop)return;var a=r[l],s=(a.$v_level||1)>i;if(o.match&&s)r.splice(l,1),l--;else{if(o.match&&!s)return o.stop=!0;a===e&&(t||(r.splice(l,1),l--),o.match=!0);var c=a.$v_hideNodes||[];c.length&&n(c,o,!0)}}}(n),t&&(e.$v_hasChildren=!1),this.virtualScroll.updateData(n)}},reloadNode:function(e){this.removeNode(e,!0),this.loadChildNodes(e,!0)},getChildNodes:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[],r=(0,this.virtualScroll.getData)(),o=e.$v_level||1;return function r(l){for(var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{match:!1,stop:!1},s=0;s<l.length;s++){if(a.stop)return;var c=l[s],u=c.$v_level||1,h=t?u>o:u-o==1;if(a.match&&h&&i.push(c),a.match&&!h)return a.stop=!0;c===e&&(a.match=!0);var d=c.$v_hideNodes||[];!n&&d.length&&r(d,a)}}(r),i},getParentNodes:function(e){var t=(0,this.virtualScroll.getData)().slice(),n=[];return function t(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{stop:!1},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,l=0;l<i.length;l++){if(r.stop)return;var a=i[l],s=a.$v_level||1;if(s>o?o=s:n.splice(s-1),a===e)return void(r.stop=!0);n.push(a);var c=a.$v_hideNodes||[];c.length&&t(c,r,o)}}(t),n},getAllNodes:function(){var e=(0,this.virtualScroll.getData)(),t=[];return e.forEach((function(e){t.push(e),e.$v_hideNodes&&e.$v_hideNodes.length&&t.push.apply(t,h(e.$v_hideNodes))})),t},isVNode:function(e){return this._vnode.constructor===(null==e?void 0:e.constructor)},getFormatterResult:function(e){return se.scope===e||(se.scope=e,se.result=e.column.formatter(e.row,e.column,e.row[e.column.property],e.$index)),se.result}},beforeCreate:function(){this.$root.$options.components.ElTableColumn||(this.$options.components.ElTableColumn=i.TableColumn);var e=this.$attrs.type;["index","selection","radio","tree"].includes(e)&&(this.$attrs.type="v-"+e)},created:function(){this.isNested=!!this.$slots.default,this.virtualScroll.addColumn(this);var e=this.$attrs.type;"expand"===e?this.virtualScroll.isExpandType=!0:"v-tree"===e&&(this.isTree=!0,this.virtualScroll.disableOriginTree())},beforeDestroy:function(){this.virtualScroll.removeColumn(this),se.scope=null,se.result=null}},ue=ce,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table-column",e._g(e._b({attrs:{"class-name":e.getClassName},scopedSlots:e._u([{key:"header",fn:function(t){return[e.$scopedSlots.header?e._t("header",null,null,t):["v-selection"===t.column.type?n("el-checkbox",{attrs:{value:e.isCheckedAll,indeterminate:e.isCheckedImn},on:{change:e.onCheckAllRows}}):[e._v("\n "+e._s(t.column.label)+"\n ")]]]}},{key:"default",fn:function(t){return[t.column&&"v-tree"===t.column.type?[n("span",{staticClass:"el-table__indent",style:{paddingLeft:(t.row.$v_level-1)*e.indent+"px"}}),e._v(" "),!1!==t.row.$v_hasChildren&&!1!==t.row[e.treeProps.hasChildren]?n("div",{staticClass:"el-table__expand-icon",class:t.row.$v_expanded?"el-table__expand-icon--expanded":"",on:{click:function(n){return e.onTreeNodeExpand(t.row)}}},[t.row.$v_loading?n("i",{staticClass:"el-icon-loading"}):n("i",{staticClass:"el-icon-arrow-right"})]):n("span",{staticClass:"el-table__placeholder"})]:e._e(),e._v(" "),e.$scopedSlots.default?e._t("default",null,null,e.setScope(t)):["v-selection"===t.column.type?n("el-checkbox",{attrs:{value:t.row.$v_checked||!1,disabled:e.getDisabled(t)},on:{change:function(n){return e.onCheckRow(t,!t.row.$v_checked)}},nativeOn:{click:function(e){e.stopPropagation()}}}):e._e(),e._v(" "),"v-radio"===t.column.type?n("el-radio",{attrs:{label:!0,value:e.virtualScroll.curRow===t.row},on:{change:function(n){return e.onRadioChange(t.row)}}},[n("span")]):"v-index"===t.column.type?n("span",[e._v("\n "+e._s(e.getIndex(t))+"\n ")]):t.column.formatter?[e.isVNode(e.getFormatterResult(t))?n("el-table-virtual-column-formatter",{attrs:{"v-node":e.getFormatterResult(t)}}):[e._v(e._s(e.getFormatterResult(t)))]]:[e._v("\n "+e._s(t.row[t.column.property])+"\n ")]]]}}],null,!0)},"el-table-column",e.$attrs,!1),e.$listeners),[e._v(" "),e.isNested?[e._t("default")]:e._e()],2)};he._withStripped=!0;var de=J({render:he,staticRenderFns:[]},(function(e){e&&e("data-v-77c884a6_0",{source:'.el-table-virtual-scroll .virtual-column__fixed-left,\n.el-table-virtual-scroll .virtual-column__fixed-right {\n position: sticky !important;\n z-index: 2 !important;\n background: #fff;\n}\n.el-table-virtual-scroll.is-scrolling-left .is-last-column:before {\n box-shadow: none;\n}\n.el-table-virtual-scroll.is-scrolling-right .is-last-column,\n.el-table-virtual-scroll.is-scrolling-middle .is-last-column {\n border-right: none;\n}\n.el-table-virtual-scroll.is-scrolling-right .is-first-column:before {\n box-shadow: none;\n}\n.el-table-virtual-scroll.is-scrolling-left .is-first-column,\n.el-table-virtual-scroll.is-scrolling-middle .is-first-column {\n border-left: none;\n}\n.el-table-virtual-scroll .is-last-column,\n.el-table-virtual-scroll .is-first-column {\n overflow: visible !important;\n}\n.el-table-virtual-scroll .is-last-column:before,\n.el-table-virtual-scroll .is-first-column:before {\n content: "";\n position: absolute;\n top: 0px;\n width: 10px;\n bottom: -1px;\n overflow-x: hidden;\n overflow-y: hidden;\n touch-action: none;\n pointer-events: none;\n}\n.el-table-virtual-scroll .is-last-column:before {\n right: -10px;\n box-shadow: inset 10px 0 10px -10px rgba(0, 0, 0, 0.12);\n}\n.el-table-virtual-scroll .is-first-column:before {\n left: -10px;\n box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.12);\n}\n.el-table-virtual-scroll.is-scrolling-none .is-last-column:before,\n.el-table-virtual-scroll.is-scrolling-none .is-first-column:before {\n content: none;\n}\n',map:{version:3,sources:["el-table-virtual-column.vue"],names:[],mappings:"AAAA;;EAEE,2BAA2B;EAC3B,qBAAqB;EACrB,gBAAgB;AAClB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,kBAAkB;AACpB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,iBAAiB;AACnB;AACA;;EAEE,4BAA4B;AAC9B;AACA;;EAEE,WAAW;EACX,kBAAkB;EAClB,QAAQ;EACR,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,oBAAoB;AACtB;AACA;EACE,YAAY;EACZ,uDAAuD;AACzD;AACA;EACE,WAAW;EACX,wDAAwD;AAC1D;AACA;;EAEE,aAAa;AACf",file:"el-table-virtual-column.vue",sourcesContent:['.el-table-virtual-scroll .virtual-column__fixed-left,\n.el-table-virtual-scroll .virtual-column__fixed-right {\n position: sticky !important;\n z-index: 2 !important;\n background: #fff;\n}\n.el-table-virtual-scroll.is-scrolling-left .is-last-column:before {\n box-shadow: none;\n}\n.el-table-virtual-scroll.is-scrolling-right .is-last-column,\n.el-table-virtual-scroll.is-scrolling-middle .is-last-column {\n border-right: none;\n}\n.el-table-virtual-scroll.is-scrolling-right .is-first-column:before {\n box-shadow: none;\n}\n.el-table-virtual-scroll.is-scrolling-left .is-first-column,\n.el-table-virtual-scroll.is-scrolling-middle .is-first-column {\n border-left: none;\n}\n.el-table-virtual-scroll .is-last-column,\n.el-table-virtual-scroll .is-first-column {\n overflow: visible !important;\n}\n.el-table-virtual-scroll .is-last-column:before,\n.el-table-virtual-scroll .is-first-column:before {\n content: "";\n position: absolute;\n top: 0px;\n width: 10px;\n bottom: -1px;\n overflow-x: hidden;\n overflow-y: hidden;\n touch-action: none;\n pointer-events: none;\n}\n.el-table-virtual-scroll .is-last-column:before {\n right: -10px;\n box-shadow: inset 10px 0 10px -10px rgba(0, 0, 0, 0.12);\n}\n.el-table-virtual-scroll .is-first-column:before {\n left: -10px;\n box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.12);\n}\n.el-table-virtual-scroll.is-scrolling-none .is-last-column:before,\n.el-table-virtual-scroll.is-scrolling-none .is-first-column:before {\n content: none;\n}\n']},media:void 0})}),ue,undefined,false,undefined,!1,te,void 0,void 0);return e.VirtualColumn=de,e.VirtualScroll=le,e.default=le,Object.defineProperty(e,"__esModule",{value:!0}),e}({},normalizeWheel,util,ELEMENT);
{
"name": "el-table-virtual-scroll",
"version": "1.4.3",
"version": "1.4.4",
"description": "The virtual scrolling component developed based on the Table component of Element-UI supports dynamic height and solves the problem of scrolling stuck when the amount of data is large.",

@@ -5,0 +5,0 @@ "main": "dist/el-table-virtual-scroll.umd.js",

@@ -569,1 +569,8 @@ # el-table-virtual-scroll

* npm 1.4.3 版本发包
### 2024-8-2
* 修复小bug
* npm 1.4.4 版本发包

@@ -175,2 +175,5 @@ <template>

}
if (!this.elTable.rowKey) {
this.warn && console.warn('[el-table-virtual-scroll]: 建议设置 <el-table> 组件的 rowKey 属性')
}

@@ -264,3 +267,3 @@ this.scroller = this.getScroller()

this.calcPosition()
// shouldUpdate && this.updatePosition()
shouldUpdate && this.updatePosition()
// 触发事件

@@ -306,3 +309,3 @@ this.$emit('change', this.renderData, this.start, this.end)

// 表格行如果有扩展行,需要加上扩展内容的高度
if (row.classList.contains('expanded')) {
if (!isTree && row.classList.contains('expanded')) {
offsetHeight += row.nextSibling.offsetHeight

@@ -309,0 +312,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display