vxe-table
Advanced tools
Comparing version 0.0.1-beta.1 to 0.0.1-beta.2
@@ -1,1 +0,1 @@ | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("xe-utils")):"function"===typeof define&&define.amd?define(["xe-utils"],e):"object"===typeof exports?exports["VXETable"]=e(require("xe-utils")):t["VXETable"]=e(t["XEUtils"])})("undefined"!==typeof self?self:this,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),o=n("5ca1"),i=n("2aba"),c=n("32e9"),a=n("84f2"),u=n("41a0"),l=n("7f20"),s=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",v="values",b=function(){return this};t.exports=function(t,e,n,y,m,x,g){u(n,e,y);var w,S,C,E=function(t){if(!d&&t in k)return k[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",T=m==v,_=!1,k=t.prototype,A=k[f]||k[h]||m&&k[m],L=A||E(m),j=m?T?E("entries"):L:void 0,I="Array"==e&&k.entries||A;if(I&&(C=s(I.call(new t)),C!==Object.prototype&&C.next&&(l(C,O,!0),r||"function"==typeof C[f]||c(C,f,b))),T&&A&&A.name!==v&&(_=!0,L=function(){return A.call(this)}),r&&!g||!d&&!_&&k[f]||c(k,f,L),a[e]=L,a[O]=b,m)if(w={values:T?L:E(v),keys:x?L:E(p),entries:j},g)for(S in w)S in k||i(k,S,w[S]);else o(o.P+o.F*(d||_),e,w);return w}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0a49":function(t,e,n){var r=n("9b43"),o=n("626a"),i=n("4bf8"),c=n("9def"),a=n("cd1c");t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,s=4==t,f=6==t,d=5==t||f,h=e||a;return function(e,a,p){for(var v,b,y=i(e),m=o(y),x=r(a,p,3),g=c(m.length),w=0,S=n?h(e,g):u?h(e,0):void 0;g>w;w++)if((d||w in m)&&(v=m[w],b=x(v,w,y),t))if(n)S[w]=b;else if(b)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:S.push(v)}else if(s)return!1;return f?-1:l||s?s:S}}},"0a90":function(t,e,n){var r=n("63b6"),o=n("10ff");r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"0fc9":function(t,e,n){var r=n("3a38"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"10ff":function(t,e,n){var r=n("e53d").parseFloat,o=n("a1ce").trim;t.exports=1/r(n("e692")+"-0")!==-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"11e9":function(t,e,n){var r=n("52a7"),o=n("4630"),i=n("6821"),c=n("6a99"),a=n("69a8"),u=n("c69a"),l=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?l:function(t,e){if(t=i(t),e=c(e,!0),u)try{return l(t,e)}catch(n){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),a=c.length,u=0;while(a>u)r.f(t,n=c[u++],e[n]);return t}},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),o=n("e53d").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"20fd":function(t,e,n){"use strict";var r=n("d9f6"),o=n("aebd");t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),c=n("ca5a")("src"),a=n("fa5b"),u="toString",l=(""+a).split(u);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,c)||o(n,c,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[c]||a.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),c=n("613b")("IE_PROTO"),a=function(){},u="prototype",l=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),l=t.F;while(r--)delete l[u][i[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[c]=t):n=l(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,c="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};a.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"30f1":function(t,e,n){"use strict";var r=n("b8e3"),o=n("63b6"),i=n("9138"),c=n("35e8"),a=n("481b"),u=n("8f60"),l=n("45f2"),s=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",v="values",b=function(){return this};t.exports=function(t,e,n,y,m,x,g){u(n,e,y);var w,S,C,E=function(t){if(!d&&t in k)return k[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",T=m==v,_=!1,k=t.prototype,A=k[f]||k[h]||m&&k[m],L=A||E(m),j=m?T?E("entries"):L:void 0,I="Array"==e&&k.entries||A;if(I&&(C=s(I.call(new t)),C!==Object.prototype&&C.next&&(l(C,O,!0),r||"function"==typeof C[f]||c(C,f,b))),T&&A&&A.name!==v&&(_=!0,L=function(){return A.call(this)}),r&&!g||!d&&!_&&k[f]||c(k,f,L),a[e]=L,a[O]=b,m)if(w={values:T?L:E(v),keys:x?L:E(p),entries:j},g)for(S in w)S in k||i(k,S,w[S]);else o(o.P+o.F*(d||_),e,w);return w}},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),o=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var r=n("335c"),o=n("25eb");t.exports=function(t){return r(o(t))}},3702:function(t,e,n){var r=n("481b"),o=n("5168")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},"386b":function(t,e,n){var r=n("5ca1"),o=n("79e5"),i=n("be13"),c=/"/g,a=function(t,e,n,r){var o=String(i(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(c,""")+'"'),a+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},"38fd":function(t,e,n){var r=n("69a8"),o=n("4bf8"),i=n("613b")("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"40c3":function(t,e,n){var r=n("6b4c"),o=n("5168")("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),o=n("4630"),i=n("7f20"),c={};n("32e9")(c,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,o=n("07e3"),i=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"481b":function(t,e){t.exports={}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4ee1":function(t,e,n){var r=n("5168")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(c){}return n}},5168:function(t,e,n){var r=n("dbdb")("wks"),o=n("62a0"),i=n("e53d").Symbol,c="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};a.store=r},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53e2":function(t,e,n){var r=n("07e3"),o=n("241e"),i=n("5559")("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},"549b":function(t,e,n){"use strict";var r=n("d864"),o=n("63b6"),i=n("241e"),c=n("b0dc"),a=n("3702"),u=n("b447"),l=n("20fd"),s=n("7cd6");o(o.S+o.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,f,d=i(t),h="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,b=void 0!==v,y=0,m=s(d);if(b&&(v=r(v,p>2?arguments[2]:void 0,2)),void 0==m||h==Array&&a(m))for(e=u(d.length),n=new h(e);e>y;y++)l(n,y,b?v(d[y],y):d[y]);else for(f=m.call(d),n=new h;!(o=f.next()).done;y++)l(n,y,b?c(f,v,[o.value,y],!0):o.value);return n.length=y,n}})},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),o=n("62a0");t.exports=function(t){return r[t]||(r[t]=o(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"59ad":function(t,e,n){t.exports=n("7be7")},"5b4e":function(t,e,n){var r=n("36c3"),o=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,c){var a,u=r(e),l=o(u.length),s=i(c,l);if(t&&n!=n){while(l>s)if(a=u[s++],a!=a)return!0}else for(;l>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}}},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),c=n("2aba"),a=n("9b43"),u="prototype",l=function(t,e,n){var s,f,d,h,p=t&l.F,v=t&l.G,b=t&l.S,y=t&l.P,m=t&l.B,x=v?r:b?r[e]||(r[e]={}):(r[e]||{})[u],g=v?o:o[e]||(o[e]={}),w=g[u]||(g[u]={});for(s in v&&(n=e),n)f=!p&&x&&void 0!==x[s],d=(f?x:n)[s],h=m&&f?a(d,r):y&&"function"==typeof d?a(Function.call,d):d,x&&c(x,s,d,t&l.U),g[s]!=d&&i(g,s,h),y&&w[s]!=d&&(w[s]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},"5d6b":function(t,e,n){var r=n("e53d").parseInt,o=n("a1ce").trim,i=n("e692"),c=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(c.test(n)?16:10))}:r},"5dbc":function(t,e,n){var r=n("d3f4"),o=n("8b97").set;t.exports=function(t,e,n){var i,c=e.constructor;return c!==n&&"function"==typeof c&&(i=c.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),o=n("584a"),i=n("d864"),c=n("35e8"),a=n("07e3"),u="prototype",l=function(t,e,n){var s,f,d,h=t&l.F,p=t&l.G,v=t&l.S,b=t&l.P,y=t&l.B,m=t&l.W,x=p?o:o[e]||(o[e]={}),g=x[u],w=p?r:v?r[e]:(r[e]||{})[u];for(s in p&&(n=e),n)f=!h&&w&&void 0!==w[s],f&&a(x,s)||(d=f?w[s]:n[s],x[s]=p&&"function"!=typeof w[s]?n[s]:y&&f?i(d,r):m&&w[s]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(d):b&&"function"==typeof d?i(Function.call,d):d,b&&((x.virtual||(x.virtual={}))[s]=d,t&l.R&&g&&!g[s]&&c(g,s,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"71c1":function(t,e,n){var r=n("3a38"),o=n("25eb");t.exports=function(t){return function(e,n){var i,c,a=String(o(e)),u=r(n),l=a.length;return u<0||u>=l?t?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===l||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536)}}},7445:function(t,e,n){var r=n("63b6"),o=n("5d6b");r(r.G+r.F*(parseInt!=o),{parseInt:o})},7514:function(t,e,n){"use strict";var r=n("5ca1"),o=n("0a49")(5),i="find",c=!0;i in[]&&Array(1)[i](function(){c=!1}),r(r.P+r.F*c,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7be7":function(t,e,n){n("0a90"),t.exports=n("584a").parseFloat},"7cd6":function(t,e,n){var r=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),o=n("e4ae"),i=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),a=c.length,u=0;while(a>u)r.f(t,n=c[u++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,o=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,c="name";c in o||n("9e1e")&&r(o,c,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),c=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),o=n("cb7c"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},"8e1f":function(t,e,n){},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var r=n("a159"),o=n("aebd"),i=n("45f2"),c={};n("35e8")(c,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},9093:function(t,e,n){var r=n("ce10"),o=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var r=n("c3a1"),o=n("9aa9"),i=n("355d"),c=n("241e"),a=n("335c"),u=Object.assign;t.exports=!u||n("294c")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){var n=c(t),u=arguments.length,l=1,s=o.f,f=i.f;while(u>l){var d,h=a(arguments[l++]),p=s?r(h).concat(s(h)):r(h),v=p.length,b=0;while(v>b)f.call(h,d=p[b++])&&(n[d]=h[d])}return n}:u},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var r=n("e4ae"),o=n("7e90"),i=n("1691"),c=n("5559")("IE_PROTO"),a=function(){},u="prototype",l=function(){var t,e=n("1ec9")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),l=t.F;while(r--)delete l[u][i[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[c]=t):n=l(),void 0===e?n:o(n,e)}},a1ce:function(t,e,n){var r=n("63b6"),o=n("25eb"),i=n("294c"),c=n("e692"),a="["+c+"]",u=" ",l=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),f=function(t,e,n){var o={},a=i(function(){return!!c[t]()||u[t]()!=u}),l=o[t]=a?e(d):c[t];n&&(o[n]=l),r(r.P+r.F*a,"String",o)},d=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(s,"")),t};t.exports=f},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},aa77:function(t,e,n){var r=n("5ca1"),o=n("be13"),i=n("79e5"),c=n("fdef"),a="["+c+"]",u=" ",l=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),f=function(t,e,n){var o={},a=i(function(){return!!c[t]()||u[t]()!=u}),l=o[t]=a?e(d):c[t];n&&(o[n]=l),r(r.P+r.F*a,"String",o)},d=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(s,"")),t};t.exports=f},ac6a:function(t,e,n){for(var r=n("cadf"),o=n("0d58"),i=n("2aba"),c=n("7726"),a=n("32e9"),u=n("84f2"),l=n("2b4c"),s=l("iterator"),f=l("toStringTag"),d=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(h),v=0;v<p.length;v++){var b,y=p[v],m=h[y],x=c[y],g=x&&x.prototype;if(g&&(g[s]||a(g,s,d),g[f]||a(g,f,y),u[y]=d,m))for(b in r)g[b]||i(g,b,r[b],!0)}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0dc:function(t,e,n){var r=n("e4ae");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(c){var i=t["return"];throw void 0!==i&&r(i.call(t)),c}}},b447:function(t,e,n){var r=n("3a38"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},b9e9:function(t,e,n){n("7445"),t.exports=n("584a").parseInt},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,c){var a,u=r(e),l=o(u.length),s=i(c,l);if(t&&n!=n){while(l>s)if(a=u[s++],a!=a)return!0}else for(;l>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}}},c3a1:function(t,e,n){var r=n("e6f3"),o=n("1691");t.exports=Object.keys||function(t){return r(t,o)}},c5f6:function(t,e,n){"use strict";var r=n("7726"),o=n("69a8"),i=n("2d95"),c=n("5dbc"),a=n("6a99"),u=n("79e5"),l=n("9093").f,s=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,h="Number",p=r[h],v=p,b=p.prototype,y=i(n("2aeb")(b))==h,m="trim"in String.prototype,x=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():d(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var c,u=e.slice(2),l=0,s=u.length;l<s;l++)if(c=u.charCodeAt(l),c<48||c>o)return NaN;return parseInt(u,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(y?u(function(){b.valueOf.call(n)}):i(n)!=h)?c(new v(x(e)),n,p):x(e)};for(var g,w=n("9e1e")?l(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)o(v,g=w[S])&&!o(p,g)&&f(p,g,s(v,g));p.prototype=b,b.constructor=p,n("2aba")(r,h,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),o=n("d53b"),i=n("84f2"),c=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var r=n("e853");t.exports=function(t,e){return new(r(t))(e)}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),c=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,l=[];for(n in a)n!=c&&r(a,n)&&l.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(l,n)||l.push(n));return l}},d263:function(t,e,n){"use strict";n("386b")("fixed",function(t){return function(){return t(this,"tt","","")}})},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var r=n("e4ae"),o=n("794b"),i=n("1bc3"),c=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var r=n("584a"),o=n("e53d"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e692:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},e6f3:function(t,e,n){var r=n("07e3"),o=n("36c3"),i=n("5b4e")(!1),c=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,l=[];for(n in a)n!=c&&r(a,n)&&l.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(l,n)||l.push(n));return l}},e814:function(t,e,n){t.exports=n("b9e9")},e853:function(t,e,n){var r=n("d3f4"),o=n("1169"),i=n("2b4c")("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&(e=e[i],null===e&&(e=void 0))),void 0===e?Array:e}},f0af:function(e,n){e.exports=t},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("7f7f");var o,i,c=n("774e"),a=n.n(c),u=n("e814"),l=n.n(u),s=n("5176"),f=n.n(s),d=(n("d263"),n("7514"),n("ac6a"),n("c5f6"),n("59ad")),h=n.n(d),p=n("f0af"),v=n.n(p),b={browse:v.a.browse(),wheelType:/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel",isPx:function(t){return t&&/^\d+(px)?$/.test(t)},isScale:function(t){return t&&/^\d+%$/.test(t)},emitEvent:function(t,e,n){t.$listeners[e]&&t.$emit.apply(t,[].concat.apply([e],n))},getColumnList:function(t){var e=[];return t.forEach(function(t){t.children&&t.children.length?e.push.apply(e,b.getColumnList(t.children)):e.push(t)}),e},getColumnConfig:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.renderHeader,r=e.renderCell;return{type:t.type,property:t.prop,label:t.label,width:t.width,minWidth:t.minWidth,fixed:t.fixed,align:t.align,headerAlign:t.headerAlign,ellipsis:t.ellipsis,showTitle:t.showOverflowTitle,showTooltip:t.showOverflowTooltip,indexMethod:t.indexMethod,formatter:t.formatter,sortBy:t.sortBy,visible:!0,level:1,rowSpan:1,colSpan:1,order:null,renderWidth:0,renderHeader:n||t.renderHeader,renderCell:r||t.renderCell}},assemColumn:function(t){var e=t.$table,n=t.$parent,r=t.columnConfig,o=n.columnConfig;o&&n.$children.length>0?(o.children||(o.children=[]),o.children.splice([].indexOf.call(n.$el.children,t.$el),0,r)):e.collectColumn.splice([].indexOf.call(e.$refs.hideColumn.children,t.$el),0,r)}},y=b;function m(t,e,n,r,o,i,c){var a=e.$listeners,u=e.border,l=e.highlightCurrentRow,s=i.align,f=i.ellipsis,d=i.showTitle,h=i.showTooltip,p=i.renderWidth,b=n&&i.fixed!==n,y=["vxe-body--column"],m=["vxe-cell"],x={};return s&&y.push("col--".concat(s)),b&&y.push("fixed-hidden"),d?m.push("c--title"):h?m.push("c--tooltip"):f&&m.push("c--ellipsis"),(l||a["cell-click"])&&(x.click=function(t){e.colClickEvent(t,{row:r,rowIndex:o,column:i,columnIndex:c,cell:t.currentTarget})}),a["cell-dblclick"]&&(x.dblclick=function(t){e.colDblclickEvent(t,{row:r,rowIndex:o,column:i,columnIndex:c,cell:t.currentTarget})}),t("td",{class:y,key:c,on:x},[t("div",{class:m,attrs:{title:d?v.a.get(r,i.property):null},style:{width:f||d||h?"".concat(u?p-1:p,"px"):null}},i.renderCell(t,{$table:e,row:r,rowIndex:o,column:i,columnIndex:c,fixed:n,isHidden:b}))])}function x(t,e,n){(e||n)&&(e&&(e.onscroll=null,e.scrollTop=t),n&&(n.onscroll=null,n.scrollTop=t),clearTimeout(o),o=setTimeout(function(){e&&(e.onscroll=e._onscroll),n&&(n.onscroll=n._onscroll)},50))}var g={props:{tableData:Array,tableColumn:Array,collectColumn:Array,fixedType:String,isGroup:Boolean},mounted:function(){this.$el.onscroll=this.scrollEvent,this.$el._onscroll=this.scrollEvent},destroyed:function(){this.$el._onscroll=null,this.$el.onscroll=null},render:function(t){var e=this.$parent,n=this.fixedType,r=e.height,o=e.scrollXHeight,i=isNaN(r)?0:h()(r),c=[],a={};return i&&(a.height="".concat(n?i-o:i,"px")),c.push(this.renderTable(t,e,n)),t("div",{class:[n?"vxe-table--fixed-".concat(n,"-body-wrapper"):"vxe-table--body-wrapper"],attrs:{fixed:n},style:a},c)},methods:{renderCols:function(t,e,n){var r=[];return this.tableColumn.forEach(function(e,n){e.visible&&r.push(t("col",{attrs:{width:e.renderWidth}}))}),r},renderTable:function(t,e,n){var r=this,o=e.highlightHoverRow,i=e.rowKey,c=e.tableData,a=e.tableWidth,u=e.selectRow,l=e.hoverRow,s=e.columnStore,f=s.leftList,d=s.rightList;return t("table",{class:["vxe-table--body"],attrs:{cellspacing:0,cellpadding:0,border:0},style:{width:null===a?a:"".concat(a,"px")}},[t("colgroup",this.renderCols(t,e,n)),t("tbody",c.map(function(c,a){var s=[];r.tableColumn.forEach(function(r,o){r.visible&&s.push(m(t,e,n,c,a,r,o))});var h=null;return o&&(f.length||d.length)&&(h={mouseover:function(t){c!==l&&e.rowHoverEvent(t,{row:c,rowIndex:a})}}),t("tr",{class:["vxe-body--row",{"row--selected":c===u,"row--hover":c===l}],key:i?v.a.get(c,i):a,on:h},s)}))])},scrollEvent:function(t){var e=this.$parent,n=this.fixedType,r=e.$refs,o=r.tableHeader,c=r.tableBody,a=r.leftBody,u=r.rightBody,l=o.$el,s=c.$el,f=a?a.$el:null,d=u?u.$el:null;"left"===n?x(f.scrollTop,s,d):"right"===n?x(d.scrollTop,s,f):(l&&(l.scrollLeft=s.scrollLeft),(f||d)&&(clearTimeout(i),i=setTimeout(e.checkScrolling,y.browse.msie?300:20)),x(s.scrollTop,f,d))}}},w=function t(e){var n=[];return e.forEach(function(e){e.children&&e.children.length?(n.push(e),n.push.apply(n,t(e.children))):n.push(e)}),n},S=function(t){var e=1,n=function t(n,r){if(r&&(n.level=r.level+1,e<n.level&&(e=n.level)),n.children&&n.children.length){var o=0;n.children.forEach(function(e){t(e,n),o+=e.colSpan}),n.colSpan=o}else n.colSpan=1};t.forEach(function(t){t.level=1,n(t)});for(var r=[],o=0;o<e;o++)r.push([]);var i=w(t);return i.forEach(function(t){t.children&&t.children.length?t.rowSpan=1:t.rowSpan=e-t.level+1,r[t.level-1].push(t)}),r},C={props:{tableData:Array,tableColumn:Array,collectColumn:Array,fixedType:String,isGroup:Boolean},computed:{headerColumn:function(){return this.isGroup?S(this.collectColumn):[this.tableColumn]}},render:function(t){var e=this.$parent,n=this.fixedType,r=this.headerColumn,o=e.tableWidth,i=e.scrollYWidth,c=[];return this.tableColumn.forEach(function(e,n){e.visible&&c.push(t("col",{attrs:{width:e.renderWidth}}))}),c.push(t("col",{attrs:{width:i}})),t("div",{class:[n?"vxe-table--fixed-".concat(n,"-header-wrapper"):"vxe-table--header-wrapper"]},[t("table",{attrs:{cellspacing:0,cellpadding:0,border:0},style:{width:null===o?o:"".concat(o+i,"px")}},[t("colgroup",c),t("thead",r.map(function(r){var o=[];return r.forEach(function(r,i){var c=["vxe-header-column"],a=n&&r.fixed!==n&&(!r.children||!r.children.length);r.headerAlign&&c.push("col--".concat(r.headerAlign)),a&&c.push("fixed-hidden"),r.visible&&o.push(t("th",{class:c,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},key:i},[t("div",{class:["vxe-cell"]},r.renderHeader(t,{$table:e,column:r,columnIndex:i,fixed:n,isHidden:a}))]))}),o.push(t("th",{class:["col--gutter"],style:{width:"".concat(i,"px")}})),t("tr",{class:["vxe-header-row"]},o)})),t("div",{class:["vxe-table--repair"],style:{width:null===o?o:"".concat(o,"px")}})])])}};function E(t,e,n){var r=e.tableData,o=e.tableColumn,i=e.collectColumn,c=e.isGroup,a=e.height,u=e.headerHeight,l=e.scrollYWidth,s=e.scrollXHeight,f=e.scrollRightToLeft,d=e.scrollLeftToRight,p=e.columnStore,v=isNaN(a)?0:h()(a),b="right"===n,y={height:"".concat(v+u-s,"px"),width:"".concat(p["".concat(n,"List")].reduce(function(t,e){return t+e.renderWidth},b?l+1:0),"px")};return t("div",{class:["vxe-table--fixed-".concat(n,"-wrapper"),{"scrolling--middle":b?f:d}],style:y,ref:"fixedTable"},[t("table-header",{props:{fixedType:n,tableData:r,tableColumn:o,collectColumn:i,isGroup:c},ref:"".concat(n,"Header")}),t("table-body",{style:{top:"".concat(u,"px")},props:{fixedType:n,tableData:r,tableColumn:o,collectColumn:i,isGroup:c},ref:"".concat(n,"Body")})])}var O={name:"VxeTable",props:{data:Array,height:String,stripe:Boolean,border:Boolean,animat:{type:Boolean,default:!0},size:String,fit:{type:Boolean,default:!0},loading:Boolean,showHeader:{type:Boolean,default:!0},highlightCurrentRow:Boolean,highlightHoverRow:{type:Boolean,default:!0},customs:Array,rowKey:[String,Number],autoWidth:{type:Boolean,default:!0}},components:{TableBody:g,TableHeader:C},provide:function(){return{$table:this}},data:function(){return{id:v.a.uniqueId(),collectColumn:[],tableColumn:[],tableData:[],tableWidth:0,headerHeight:0,overflowY:!0,overflowX:!1,scrollYWidth:0,scrollXHeight:0,scrollLeftToRight:!1,scrollRightToLeft:!1,isAllSelected:!1,isIndeterminate:!1,selection:[],selectRow:null,hoverRow:null,columnStore:{leftList:[],centerList:[],rightList:[],pxList:[],pxMinList:[],scaleList:[],scaleMinList:[],autoList:[]}}},computed:{isGroup:function(){return this.collectColumn.some(function(t){return t.children&&t.children.length})},visibleColumn:function(){return this.tableColumn.filter(function(t){return t.visible})}},watch:{data:function(t){this.reload(t)},customs:function(t){this.isUpdateCustoms||this.mergeCustomColumn(t),this.isUpdateCustoms=!1},tableColumn:function(){this.analyColumnWidth()},visibleColumn:function(){var t=this;this.$nextTick(function(){return t.computeWidth()})}},created:function(){var t=this;this.reload(this.data).then(function(){t.tableColumn=y.getColumnList(t.collectColumn),t.customs&&t.mergeCustomColumn(t.customs),t.refreshColumn(),t.$nextTick(function(){return t.computeWidth(!0)})})},render:function(t){var e=this.tableData,n=this.tableColumn,r=this.collectColumn,o=this.isGroup,i=this.animat,c=this.border,a=this.stripe,u=this.highlightHoverRow,l=this.size,s=this.columnStore,f=s.leftList,d=s.rightList,h=[t("div",{class:["vxe-table-hidden-column"],ref:"hideColumn"},this.$slots.default)];return this.showHeader&&h.push(t("table-header",{ref:"tableHeader",props:{tableData:e,tableColumn:n,collectColumn:r,isGroup:o}})),h.push(t("table-body",{ref:"tableBody",props:{tableData:e,tableColumn:n,collectColumn:r,isGroup:o}})),f&&f.length&&h.push(E(t,this,"left")),d&&d.length&&h.push(E(t,this,"right")),t("div",{class:["vxe-table",l?"t--size-".concat(l):"",{"t--animat":i,"t--stripe":a,"t--border":c,"t--highlight":u}]},h)},methods:{clearSelection:function(){this.isAllSelected=!1,this.isIndeterminate=!1,this.selection=[]},clearSelectRow:function(){this.selectRow=null,this.hoverRow=null},clearSort:function(){this.tableColumn.forEach(function(t){t.order=null}),this.tableData=this.data||[]},reload:function(t){this.clearSelection(),this.clearSelectRow(),this.clearSort(),this.tableData=t||[];var e=this.$nextTick();return this.autoWidth?e.then(this.computeWidth):e},mergeCustomColumn:function(t){this.isUpdateCustoms=!0,this.tableColumn.map(function(e){var n=t.find(function(t){return e.property&&t.prop===e.property});e.visible=!n||!!n.visible}),this.$emit("update:customs",this.tableColumn)},refreshColumn:function(){var t,e=0,n=[],r=0,o=[],i=[];if(this.tableColumn.forEach(function(c,a){"left"===c.fixed?(t||(a-e!==0?t=!0:e++),n.push(c)):"right"===c.fixed?(t||(r||(r=a),a-r!==0?t=!0:r++),i.push(c)):o.push(c)}),this.tableColumn=n.concat(o).concat(i),f()(this.columnStore,{leftList:n,centerList:o,rightList:i}),t&&this.isGroup||r&&r!==this.tableColumn.length)throw new Error("[vxe-table] Fixed column must to the left and right sides.")},analyColumnWidth:function(){var t=[],e=[],n=[],r=[],o=[];this.tableColumn.forEach(function(i){i.visible&&(y.isScale(i.width)?n.push(i):y.isPx(i.width)?t.push(i):y.isScale(i.minWidth)?r.push(i):y.isPx(i.minWidth)?e.push(i):o.push(i))}),f()(this.columnStore,{pxList:t,pxMinList:e,scaleList:n,scaleMinList:r,autoList:o})},computeWidth:function(t){var e=this,n=this.$refs.tableBody,r=this.$refs.tableHeader;if(n){var o=n.$el,i=r?r.$el:null,c=o.clientWidth,a=this.autoCellWidth(i,o,c);!0===t&&this.$nextTick(function(){c=o.clientWidth,c!==a&&e.autoCellWidth(i,o,c)})}},autoCellWidth:function(t,e,n){var r,o=0,i=40,c=n,a=this.fit,u=this.columnStore,s=u.pxMinList,f=u.pxList,d=u.scaleList,h=u.scaleMinList,p=u.autoList;return s.forEach(function(t){var e=l()(t.minWidth);o+=e,t.renderWidth=e}),r=c/100,h.forEach(function(t){var e=Math.floor(l()(t.minWidth)*r);o+=e,t.renderWidth=e}),d.forEach(function(t){var e=Math.floor(l()(t.width)*r);o+=e,t.renderWidth=e}),f.forEach(function(t){var e=l()(t.width);o+=e,t.renderWidth=e}),c-=o,r=c>0?Math.max(Math.floor(c/(h.length+s.length+p.length)),i):i,a?c>0&&h.concat(s).forEach(function(t){o+=r,t.renderWidth+=r}):r=i,p.forEach(function(t,e){if(t.renderWidth=r,o+=r,a&&e===p.length-1){var i=n-o;i>0&&(t.renderWidth+=i,o=n)}}),this.scrollYWidth=e.offsetWidth-n,this.scrollXHeight=e.offsetHeight-e.clientHeight-1,this.overflowY=this.scrollYWidth>0,this.overflowX=o>n,this.tableWidth=o,t&&(this.headerHeight=t.offsetHeight),this.overflowX&&this.checkScrolling(),o},checkScrolling:function(){var t=this.$refs,e=t.tableBody,n=t.leftBody,r=t.rightBody,o=e.$el;n&&(this.scrollLeftToRight=o.scrollLeft>0),r&&(this.scrollRightToLeft=o.clientWidth<o.scrollWidth-o.scrollLeft)},checkRowEvent:function(t,e){var n=e.row,r=e.column,o=event.target.checked,i=r.property;i?(v.a.set(n,i,o),this.isAllSelected=this.tableData.every(function(t){return v.a.get(t,i)}),this.isIndeterminate=!this.isAllSelected&&this.tableData.some(function(t){return v.a.get(t,i)})):(o?this.selection.push(n):v.a.remove(this.selection,function(t){return t===n}),this.isAllSelected=this.tableData.length===this.selection.length,this.isIndeterminate=!this.isAllSelected&&this.selection.length)},checkAllEvent:function(t){var e=event.target.checked,n=this.tableColumn.find(function(t){return"selection"===t.type}),r=n.property;r&&this.tableData.forEach(function(t){v.a.set(t,r,e)}),this.selection=e?a()(this.tableData):[],this.isAllSelected=e,y.emitEvent(this,"select-all",[this.selection])},redioRowEvent:function(t,e){var n=e.row;e.column;this.selectRow=n},rowHoverEvent:function(t,e){var n=e.row;this.hoverRow=n},colClickEvent:function(t,e){y.emitEvent(this,"cell-click",[e,t])},colDblclickEvent:function(t,e){y.emitEvent(this,"cell-dblclick",[e,t])},rowSortEvent:function(t,e,n){var r=e.column,o=r.property,i=v.a.sortBy(this.tableData,o);r.order=n,this.tableData="desc"===n?i.reverse():i,y.emitEvent(this,"sort-change",[{column:r,prop:o,order:n}])}}},T={name:"VxeTableColumn",props:{type:String,prop:String,label:String,width:[Number,String],minWidth:[Number,String],fixed:String,align:String,headerAlign:String,ellipsis:Boolean,showOverflowTitle:Boolean,showOverflowTooltip:Boolean,formatter:Function,indexMethod:Function,sortable:Boolean,sortBy:[String,Array],filters:Array,filterMultiple:{type:Boolean,default:!0},filterMethod:Function},inject:["$table"],data:function(){return{columnConfig:{}}},created:function(){var t={};switch(this.type){case"index":t.renderHeader=this.renderIndexHeader,t.renderCell=this.renderIndexCell;break;case"radio":t.renderHeader=this.renderRadioHeader,t.renderCell=this.renderRadioCell;break;case"selection":t.renderHeader=this.renderSelectionHeader,t.renderCell=this.prop?this.renderSelectionCellByProp:this.renderSelectionCell;break;default:this.filters&&this.sortable||(this.sortable?t.renderHeader=this.renderSortHeader:this.filters&&(t.renderHeader=this.renderFilterHeader))}this.columnConfig=y.getColumnConfig(this,t)},mounted:function(){y.assemColumn(this)},render:function(t){return t("div",this.$slots.default)},methods:{renderHeader:function(t,e){var n=this.$scopedSlots;return n&&n.header?n.header(e):[t("span",e.column.label)]},renderCell:function(t,e){var n,r=this.$scopedSlots,o=this.formatter,i=e.row,c=e.rowIndex,a=e.column,u=e.columnIndex;return r&&r.default?r.default(e):(n=v.a.get(i,a.property),o&&(n=o({cellValue:n,row:i,rowIndex:c,column:a,columnIndex:u})),[t("span",n)])},renderIndexHeader:function(t,e){var n=this.$scopedSlots;return n&&n.header?n.header(e):[t("span",e.column.label||"#")]},renderIndexCell:function(t,e){var n,r=this.$scopedSlots,o=this.indexMethod,i=e.row,c=e.rowIndex,a=e.column,u=e.columnIndex;return r&&r.default?r.default(e):(n=c+1,o&&(n=o({row:i,rowIndex:c,column:a,columnIndex:u})),[t("span",n)])},renderRadioHeader:function(t,e){return[t("span",e.column.label)]},renderRadioCell:function(t,e){var n=this,r=this.$table,o=r.selectRow,i=e.row,c={attrs:{type:"radio",name:"vxe-radio--".concat(r.id)}};return e.isHidden||(c.domProps={checked:i===o},c.on={change:function(t){r.redioRowEvent(t,e),y.emitEvent(n,"change",[i])}}),[t("label",{class:["vxe-radio"]},[t("input",c),t("span")])]},renderSelectionHeader:function(t,e){var n=this.$table,r=e.isHidden,o={attrs:{type:"checkbox"}};return r||(o.domProps={checked:n.isAllSelected},o.on={change:function(t){n.checkAllEvent(t.target.checked)}}),[t("label",{class:["vxe-checkbox"]},[t("input",o),t("span")])]},renderSelectionCell:function(t,e){var n=this,r=this.$table,o=e.row,i=e.isHidden,c={attrs:{type:"checkbox"}};return i||(c.domProps={checked:r.selection.indexOf(o)>-1},c.on={change:function(t){r.checkRowEvent(t,e),y.emitEvent(n,"change",[r.selection,o])}}),[t("label",{class:["vxe-checkbox"]},[t("input",c),t("span")])]},renderSelectionCellByProp:function(t,e){var n=this.$table,r=e.row,o=e.column,i=e.isHidden,c={attrs:{type:"checkbox"}};return i||(c.domProps={checked:v.a.get(r,o.property)},c.on={change:function(t){n.checkRowEvent(t,e)}}),[t("label",{class:["vxe-checkbox"]},[t("input",c),t("span")])]},renderSortHeader:function(t,e){var n=this,r=e.column;return[t("span",r.label),t("span",{class:["vxe-sort-wrapper"]},[t("i",{class:["vxe-sort--asc-icon",{"sort--active":"asc"===r.order}],on:{click:function(t){n.handleSortEvent(t,r,e,"asc")}}}),t("i",{class:["vxe-sort--desc-icon",{"sort--active":"desc"===r.order}],on:{click:function(t){n.handleSortEvent(t,r,e,"desc")}}})])]},handleSortEvent:function(t,e,n,r){e.order!==r&&this.$table.rowSortEvent(t,n,r)},renderFilterHeader:function(t,e){var n=this,r=e.column;return[t("span",r.label),t("span",{class:["vxe-filter-wrapper"]},[t("i",{class:["vxe-filter--icon"],on:{click:function(t){n.handleFilterEvent(t,r,e)}}})])]},handleFilterEvent:function(t,e,n){}}},_=(n("8e1f"),[O,T]),k=function t(e){t.installed||_.map(function(t){return e.component(t.name,t)})};"undefined"!==typeof window&&window.Vue&&k(window.Vue);var A={install:k};e["default"]=A},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})["default"]}); | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("xe-utils")):"function"===typeof define&&define.amd?define(["xe-utils"],e):"object"===typeof exports?exports["VXETable"]=e(require("xe-utils")):t["VXETable"]=e(t["XEUtils"])})("undefined"!==typeof self?self:this,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),o=n("5ca1"),i=n("2aba"),c=n("32e9"),a=n("84f2"),u=n("41a0"),l=n("7f20"),s=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",v="values",b=function(){return this};t.exports=function(t,e,n,y,m,g,x){u(n,e,y);var w,S,C,E=function(t){if(!d&&t in k)return k[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",T=m==v,_=!1,k=t.prototype,A=k[f]||k[h]||m&&k[m],L=A||E(m),j=m?T?E("entries"):L:void 0,I="Array"==e&&k.entries||A;if(I&&(C=s(I.call(new t)),C!==Object.prototype&&C.next&&(l(C,O,!0),r||"function"==typeof C[f]||c(C,f,b))),T&&A&&A.name!==v&&(_=!0,L=function(){return A.call(this)}),r&&!x||!d&&!_&&k[f]||c(k,f,L),a[e]=L,a[O]=b,m)if(w={values:T?L:E(v),keys:g?L:E(p),entries:j},x)for(S in w)S in k||i(k,S,w[S]);else o(o.P+o.F*(d||_),e,w);return w}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0a49":function(t,e,n){var r=n("9b43"),o=n("626a"),i=n("4bf8"),c=n("9def"),a=n("cd1c");t.exports=function(t,e){var n=1==t,u=2==t,l=3==t,s=4==t,f=6==t,d=5==t||f,h=e||a;return function(e,a,p){for(var v,b,y=i(e),m=o(y),g=r(a,p,3),x=c(m.length),w=0,S=n?h(e,x):u?h(e,0):void 0;x>w;w++)if((d||w in m)&&(v=m[w],b=g(v,w,y),t))if(n)S[w]=b;else if(b)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:S.push(v)}else if(s)return!1;return f?-1:l||s?s:S}}},"0a90":function(t,e,n){var r=n("63b6"),o=n("10ff");r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"0fc9":function(t,e,n){var r=n("3a38"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"10ff":function(t,e,n){var r=n("e53d").parseFloat,o=n("a1ce").trim;t.exports=1/r(n("e692")+"-0")!==-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},1169:function(t,e,n){var r=n("2d95");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"11e9":function(t,e,n){var r=n("52a7"),o=n("4630"),i=n("6821"),c=n("6a99"),a=n("69a8"),u=n("c69a"),l=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?l:function(t,e){if(t=i(t),e=c(e,!0),u)try{return l(t,e)}catch(n){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),a=c.length,u=0;while(a>u)r.f(t,n=c[u++],e[n]);return t}},1654:function(t,e,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),o=n("e53d").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"20fd":function(t,e,n){"use strict";var r=n("d9f6"),o=n("aebd");t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"241e":function(t,e,n){var r=n("25eb");t.exports=function(t){return Object(r(t))}},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),c=n("ca5a")("src"),a=n("fa5b"),u="toString",l=(""+a).split(u);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,c)||o(n,c,t[e]?""+t[e]:l.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[c]||a.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),c=n("613b")("IE_PROTO"),a=function(){},u="prototype",l=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),l=t.F;while(r--)delete l[u][i[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[c]=t):n=l(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,c="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};a.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"30f1":function(t,e,n){"use strict";var r=n("b8e3"),o=n("63b6"),i=n("9138"),c=n("35e8"),a=n("481b"),u=n("8f60"),l=n("45f2"),s=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",v="values",b=function(){return this};t.exports=function(t,e,n,y,m,g,x){u(n,e,y);var w,S,C,E=function(t){if(!d&&t in k)return k[t];switch(t){case p:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",T=m==v,_=!1,k=t.prototype,A=k[f]||k[h]||m&&k[m],L=A||E(m),j=m?T?E("entries"):L:void 0,I="Array"==e&&k.entries||A;if(I&&(C=s(I.call(new t)),C!==Object.prototype&&C.next&&(l(C,O,!0),r||"function"==typeof C[f]||c(C,f,b))),T&&A&&A.name!==v&&(_=!0,L=function(){return A.call(this)}),r&&!x||!d&&!_&&k[f]||c(k,f,L),a[e]=L,a[O]=b,m)if(w={values:T?L:E(v),keys:g?L:E(p),entries:j},x)for(S in w)S in k||i(k,S,w[S]);else o(o.P+o.F*(d||_),e,w);return w}},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"32fc":function(t,e,n){var r=n("e53d").document;t.exports=r&&r.documentElement},"335c":function(t,e,n){var r=n("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,n){var r=n("d9f6"),o=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"36c3":function(t,e,n){var r=n("335c"),o=n("25eb");t.exports=function(t){return r(o(t))}},3702:function(t,e,n){var r=n("481b"),o=n("5168")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},"386b":function(t,e,n){var r=n("5ca1"),o=n("79e5"),i=n("be13"),c=/"/g,a=function(t,e,n,r){var o=String(i(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(c,""")+'"'),a+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},"38fd":function(t,e,n){var r=n("69a8"),o=n("4bf8"),i=n("613b")("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},"3a38":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"40c3":function(t,e,n){var r=n("6b4c"),o=n("5168")("toStringTag"),i="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),o=n("4630"),i=n("7f20"),c={};n("32e9")(c,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"45f2":function(t,e,n){var r=n("d9f6").f,o=n("07e3"),i=n("5168")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"481b":function(t,e){t.exports={}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"4ee1":function(t,e,n){var r=n("5168")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(c){}return n}},5168:function(t,e,n){var r=n("dbdb")("wks"),o=n("62a0"),i=n("e53d").Symbol,c="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};a.store=r},5176:function(t,e,n){t.exports=n("51b6")},"51b6":function(t,e,n){n("a3c3"),t.exports=n("584a").Object.assign},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"53e2":function(t,e,n){var r=n("07e3"),o=n("241e"),i=n("5559")("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},"549b":function(t,e,n){"use strict";var r=n("d864"),o=n("63b6"),i=n("241e"),c=n("b0dc"),a=n("3702"),u=n("b447"),l=n("20fd"),s=n("7cd6");o(o.S+o.F*!n("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,f,d=i(t),h="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,b=void 0!==v,y=0,m=s(d);if(b&&(v=r(v,p>2?arguments[2]:void 0,2)),void 0==m||h==Array&&a(m))for(e=u(d.length),n=new h(e);e>y;y++)l(n,y,b?v(d[y],y):d[y]);else for(f=m.call(d),n=new h;!(o=f.next()).done;y++)l(n,y,b?c(f,v,[o.value,y],!0):o.value);return n.length=y,n}})},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,n){var r=n("dbdb")("keys"),o=n("62a0");t.exports=function(t){return r[t]||(r[t]=o(t))}},"584a":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"59ad":function(t,e,n){t.exports=n("7be7")},"5b4e":function(t,e,n){var r=n("36c3"),o=n("b447"),i=n("0fc9");t.exports=function(t){return function(e,n,c){var a,u=r(e),l=o(u.length),s=i(c,l);if(t&&n!=n){while(l>s)if(a=u[s++],a!=a)return!0}else for(;l>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}}},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),c=n("2aba"),a=n("9b43"),u="prototype",l=function(t,e,n){var s,f,d,h,p=t&l.F,v=t&l.G,b=t&l.S,y=t&l.P,m=t&l.B,g=v?r:b?r[e]||(r[e]={}):(r[e]||{})[u],x=v?o:o[e]||(o[e]={}),w=x[u]||(x[u]={});for(s in v&&(n=e),n)f=!p&&g&&void 0!==g[s],d=(f?g:n)[s],h=m&&f?a(d,r):y&&"function"==typeof d?a(Function.call,d):d,g&&c(g,s,d,t&l.U),x[s]!=d&&i(x,s,h),y&&w[s]!=d&&(w[s]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},"5d6b":function(t,e,n){var r=n("e53d").parseInt,o=n("a1ce").trim,i=n("e692"),c=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(c.test(n)?16:10))}:r},"5dbc":function(t,e,n){var r=n("d3f4"),o=n("8b97").set;t.exports=function(t,e,n){var i,c=e.constructor;return c!==n&&"function"==typeof c&&(i=c.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62a0":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"63b6":function(t,e,n){var r=n("e53d"),o=n("584a"),i=n("d864"),c=n("35e8"),a=n("07e3"),u="prototype",l=function(t,e,n){var s,f,d,h=t&l.F,p=t&l.G,v=t&l.S,b=t&l.P,y=t&l.B,m=t&l.W,g=p?o:o[e]||(o[e]={}),x=g[u],w=p?r:v?r[e]:(r[e]||{})[u];for(s in p&&(n=e),n)f=!h&&w&&void 0!==w[s],f&&a(g,s)||(d=f?w[s]:n[s],g[s]=p&&"function"!=typeof w[s]?n[s]:y&&f?i(d,r):m&&w[s]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(d):b&&"function"==typeof d?i(Function.call,d):d,b&&((g.virtual||(g.virtual={}))[s]=d,t&l.R&&x&&!x[s]&&c(x,s,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"71c1":function(t,e,n){var r=n("3a38"),o=n("25eb");t.exports=function(t){return function(e,n){var i,c,a=String(o(e)),u=r(n),l=a.length;return u<0||u>=l?t?"":void 0:(i=a.charCodeAt(u),i<55296||i>56319||u+1===l||(c=a.charCodeAt(u+1))<56320||c>57343?t?a.charAt(u):i:t?a.slice(u,u+2):c-56320+(i-55296<<10)+65536)}}},7445:function(t,e,n){var r=n("63b6"),o=n("5d6b");r(r.G+r.F*(parseInt!=o),{parseInt:o})},7514:function(t,e,n){"use strict";var r=n("5ca1"),o=n("0a49")(5),i="find",c=!0;i in[]&&Array(1)[i](function(){c=!1}),r(r.P+r.F*c,"Array",{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(t,e,n){t.exports=n("d2d5")},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")(function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a})},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7be7":function(t,e,n){n("0a90"),t.exports=n("584a").parseFloat},"7cd6":function(t,e,n){var r=n("40c3"),o=n("5168")("iterator"),i=n("481b");t.exports=n("584a").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},"7e90":function(t,e,n){var r=n("d9f6"),o=n("e4ae"),i=n("c3a1");t.exports=n("8e60")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),a=c.length,u=0;while(a>u)r.f(t,n=c[u++],e[n]);return t}},"7f20":function(t,e,n){var r=n("86cc").f,o=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,c="name";c in o||n("9e1e")&&r(o,c,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),c=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),o=n("cb7c"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},"8e1f":function(t,e,n){},"8e60":function(t,e,n){t.exports=!n("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,n){"use strict";var r=n("a159"),o=n("aebd"),i=n("45f2"),c={};n("35e8")(c,n("5168")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},9093:function(t,e,n){var r=n("ce10"),o=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},9138:function(t,e,n){t.exports=n("35e8")},9306:function(t,e,n){"use strict";var r=n("c3a1"),o=n("9aa9"),i=n("355d"),c=n("241e"),a=n("335c"),u=Object.assign;t.exports=!u||n("294c")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){var n=c(t),u=arguments.length,l=1,s=o.f,f=i.f;while(u>l){var d,h=a(arguments[l++]),p=s?r(h).concat(s(h)):r(h),v=p.length,b=0;while(v>b)f.call(h,d=p[b++])&&(n[d]=h[d])}return n}:u},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a159:function(t,e,n){var r=n("e4ae"),o=n("7e90"),i=n("1691"),c=n("5559")("IE_PROTO"),a=function(){},u="prototype",l=function(){var t,e=n("1ec9")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),l=t.F;while(r--)delete l[u][i[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[c]=t):n=l(),void 0===e?n:o(n,e)}},a1ce:function(t,e,n){var r=n("63b6"),o=n("25eb"),i=n("294c"),c=n("e692"),a="["+c+"]",u=" ",l=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),f=function(t,e,n){var o={},a=i(function(){return!!c[t]()||u[t]()!=u}),l=o[t]=a?e(d):c[t];n&&(o[n]=l),r(r.P+r.F*a,"String",o)},d=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(s,"")),t};t.exports=f},a3c3:function(t,e,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},aa77:function(t,e,n){var r=n("5ca1"),o=n("be13"),i=n("79e5"),c=n("fdef"),a="["+c+"]",u=" ",l=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),f=function(t,e,n){var o={},a=i(function(){return!!c[t]()||u[t]()!=u}),l=o[t]=a?e(d):c[t];n&&(o[n]=l),r(r.P+r.F*a,"String",o)},d=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(s,"")),t};t.exports=f},ac6a:function(t,e,n){for(var r=n("cadf"),o=n("0d58"),i=n("2aba"),c=n("7726"),a=n("32e9"),u=n("84f2"),l=n("2b4c"),s=l("iterator"),f=l("toStringTag"),d=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(h),v=0;v<p.length;v++){var b,y=p[v],m=h[y],g=c[y],x=g&&g.prototype;if(x&&(x[s]||a(x,s,d),x[f]||a(x,f,y),u[y]=d,m))for(b in r)x[b]||i(x,b,r[b],!0)}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b0dc:function(t,e,n){var r=n("e4ae");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(c){var i=t["return"];throw void 0!==i&&r(i.call(t)),c}}},b447:function(t,e,n){var r=n("3a38"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},b8e3:function(t,e){t.exports=!0},b9e9:function(t,e,n){n("7445"),t.exports=n("584a").parseInt},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,c){var a,u=r(e),l=o(u.length),s=i(c,l);if(t&&n!=n){while(l>s)if(a=u[s++],a!=a)return!0}else for(;l>s;s++)if((t||s in u)&&u[s]===n)return t||s||0;return!t&&-1}}},c3a1:function(t,e,n){var r=n("e6f3"),o=n("1691");t.exports=Object.keys||function(t){return r(t,o)}},c5f6:function(t,e,n){"use strict";var r=n("7726"),o=n("69a8"),i=n("2d95"),c=n("5dbc"),a=n("6a99"),u=n("79e5"),l=n("9093").f,s=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,h="Number",p=r[h],v=p,b=p.prototype,y=i(n("2aeb")(b))==h,m="trim"in String.prototype,g=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():d(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var c,u=e.slice(2),l=0,s=u.length;l<s;l++)if(c=u.charCodeAt(l),c<48||c>o)return NaN;return parseInt(u,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(y?u(function(){b.valueOf.call(n)}):i(n)!=h)?c(new v(g(e)),n,p):g(e)};for(var x,w=n("9e1e")?l(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)o(v,x=w[S])&&!o(p,x)&&f(p,x,s(v,x));p.prototype=b,b.constructor=p,n("2aba")(r,h,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),o=n("d53b"),i=n("84f2"),c=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},cd1c:function(t,e,n){var r=n("e853");t.exports=function(t,e){return new(r(t))(e)}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),c=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,l=[];for(n in a)n!=c&&r(a,n)&&l.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(l,n)||l.push(n));return l}},d263:function(t,e,n){"use strict";n("386b")("fixed",function(t){return function(){return t(this,"tt","","")}})},d2d5:function(t,e,n){n("1654"),n("549b"),t.exports=n("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var r=n("e4ae"),o=n("794b"),i=n("1bc3"),c=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},dbdb:function(t,e,n){var r=n("584a"),o=n("e53d"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e692:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},e6f3:function(t,e,n){var r=n("07e3"),o=n("36c3"),i=n("5b4e")(!1),c=n("5559")("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,l=[];for(n in a)n!=c&&r(a,n)&&l.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(l,n)||l.push(n));return l}},e814:function(t,e,n){t.exports=n("b9e9")},e853:function(t,e,n){var r=n("d3f4"),o=n("1169"),i=n("2b4c")("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&(e=e[i],null===e&&(e=void 0))),void 0===e?Array:e}},f0af:function(e,n){e.exports=t},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("7f7f");var o,i,c=n("774e"),a=n.n(c),u=n("e814"),l=n.n(u),s=n("5176"),f=n.n(s),d=(n("d263"),n("7514"),n("ac6a"),n("c5f6"),n("59ad")),h=n.n(d),p=n("f0af"),v=n.n(p),b={browse:v.a.browse(),wheelType:/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel",isPx:function(t){return t&&/^\d+(px)?$/.test(t)},isScale:function(t){return t&&/^\d+%$/.test(t)},emitEvent:function(t,e,n){t.$listeners[e]&&t.$emit.apply(t,[].concat.apply([e],n))},getColumnList:function(t){var e=[];return t.forEach(function(t){t.children&&t.children.length?e.push.apply(e,b.getColumnList(t.children)):e.push(t)}),e},getColumnConfig:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.renderHeader,r=e.renderCell;return{type:t.type,property:t.prop,label:t.label,width:t.width,minWidth:t.minWidth,fixed:t.fixed,align:t.align,headerAlign:t.headerAlign,ellipsis:t.ellipsis,showTitle:t.showOverflowTitle,showTooltip:t.showOverflowTooltip,indexMethod:t.indexMethod,formatter:t.formatter,sortBy:t.sortBy,visible:!0,level:1,rowSpan:1,colSpan:1,order:null,renderWidth:0,renderHeader:n||t.renderHeader,renderCell:r||t.renderCell}},assemColumn:function(t){var e=t.$table,n=t.$parent,r=t.columnConfig,o=n.columnConfig;o&&n.$children.length>0?(o.children||(o.children=[]),o.children.splice([].indexOf.call(n.$el.children,t.$el),0,r)):e.collectColumn.splice([].indexOf.call(e.$refs.hideColumn.children,t.$el),0,r)}},y=b;function m(t,e,n,r,o,i,c){var a=e.$listeners,u=e.border,l=e.highlightCurrentRow,s=i.align,f=i.ellipsis,d=i.showTitle,h=i.showTooltip,p=i.renderWidth,b=n&&i.fixed!==n,y=["vxe-body--column"],m=["vxe-cell"],g={};return s&&y.push("col--".concat(s)),b&&y.push("fixed--hidden"),d?m.push("c--title"):h?m.push("c--tooltip"):f&&m.push("c--ellipsis"),(l||a["cell-click"])&&(g.click=function(t){e.colClickEvent(t,{row:r,rowIndex:o,column:i,columnIndex:c,cell:t.currentTarget})}),a["cell-dblclick"]&&(g.dblclick=function(t){e.colDblclickEvent(t,{row:r,rowIndex:o,column:i,columnIndex:c,cell:t.currentTarget})}),t("td",{class:y,key:c,on:g},[t("div",{class:m,attrs:{title:d?v.a.get(r,i.property):null},style:{width:f||d||h?"".concat(u?p-1:p,"px"):null}},i.renderCell(t,{$table:e,row:r,rowIndex:o,column:i,columnIndex:c,fixed:n,isHidden:b}))])}function g(t,e,n){(e||n)&&(e&&(e.onscroll=null,e.scrollTop=t),n&&(n.onscroll=null,n.scrollTop=t),clearTimeout(o),o=setTimeout(function(){e&&(e.onscroll=e._onscroll),n&&(n.onscroll=n._onscroll)},300))}var x={props:{tableData:Array,tableColumn:Array,collectColumn:Array,fixedType:String,isGroup:Boolean},mounted:function(){this.$el.onscroll=this.scrollEvent,this.$el._onscroll=this.scrollEvent},destroyed:function(){this.$el._onscroll=null,this.$el.onscroll=null},render:function(t){var e=this.$parent,n=this.fixedType,r=e.height,o=e.tableHeight,i=e.scrollXHeight,c=isNaN(r)?0:h()(r),a=[],u={};return c&&(u.height="".concat(n?(c||o)-i:c,"px")),a.push(this.renderTable(t,e,n)),t("div",{class:[n?"vxe-table--fixed-".concat(n,"-body-wrapper"):"vxe-table--body-wrapper"],attrs:{fixed:n},style:u},a)},methods:{renderCols:function(t,e,n){var r=[];return this.tableColumn.forEach(function(e,n){e.visible&&r.push(t("col",{attrs:{width:e.renderWidth}}))}),r},renderTable:function(t,e,n){var r=this,o=e.highlightHoverRow,i=e.rowKey,c=e.tableData,a=e.tableWidth,u=e.selectRow,l=e.hoverRow,s=e.columnStore,f=s.leftList,d=s.rightList;return t("table",{class:["vxe-table--body"],attrs:{cellspacing:0,cellpadding:0,border:0},style:{width:null===a?a:"".concat(a,"px")}},[t("colgroup",this.renderCols(t,e,n)),t("tbody",c.map(function(c,a){var s=[];r.tableColumn.forEach(function(r,o){r.visible&&s.push(m(t,e,n,c,a,r,o))});var h=null;return o&&(f.length||d.length)&&(h={mouseover:function(t){c!==l&&e.rowHoverEvent(t,{row:c,rowIndex:a})}}),t("tr",{class:["vxe-body--row",{"row--selected":c===u,"row--hover":c===l}],key:i?v.a.get(c,i):a,on:h},s)}))])},scrollEvent:function(t){var e=this.$parent,n=this.fixedType,r=e.$refs,o=r.tableHeader,c=r.tableBody,a=r.leftBody,u=r.rightBody,l=o.$el,s=c.$el,f=a?a.$el:null,d=u?u.$el:null;"left"===n?g(f.scrollTop,s,d):"right"===n?g(d.scrollTop,s,f):(l&&(l.scrollLeft=s.scrollLeft),(f||d)&&(clearTimeout(i),i=setTimeout(e.checkScrolling,y.browse.msie?300:20)),g(s.scrollTop,f,d))}}},w=function t(e){var n=[];return e.forEach(function(e){e.children&&e.children.length?(n.push(e),n.push.apply(n,t(e.children))):n.push(e)}),n},S=function(t){var e=1,n=function t(n,r){if(r&&(n.level=r.level+1,e<n.level&&(e=n.level)),n.children&&n.children.length){var o=0;n.children.forEach(function(e){t(e,n),o+=e.colSpan}),n.colSpan=o}else n.colSpan=1};t.forEach(function(t){t.level=1,n(t)});for(var r=[],o=0;o<e;o++)r.push([]);var i=w(t);return i.forEach(function(t){t.children&&t.children.length?t.rowSpan=1:t.rowSpan=e-t.level+1,r[t.level-1].push(t)}),r},C={props:{tableData:Array,tableColumn:Array,collectColumn:Array,fixedType:String,isGroup:Boolean},computed:{headerColumn:function(){return this.isGroup?S(this.collectColumn):[this.tableColumn]}},render:function(t){var e=this.$parent,n=this.fixedType,r=this.headerColumn,o=e.tableWidth,i=e.scrollYWidth,c=[];return this.tableColumn.forEach(function(e,n){e.visible&&c.push(t("col",{attrs:{width:e.renderWidth}}))}),c.push(t("col",{attrs:{width:i}})),t("div",{class:[n?"vxe-table--fixed-".concat(n,"-header-wrapper"):"vxe-table--header-wrapper"]},[t("table",{attrs:{cellspacing:0,cellpadding:0,border:0},style:{width:null===o?o:"".concat(o+i,"px")}},[t("colgroup",c),t("thead",r.map(function(r){var o=[];return r.forEach(function(r,i){var c=["vxe-header-column"],a=n&&r.fixed!==n&&(!r.children||!r.children.length);r.headerAlign&&c.push("col--".concat(r.headerAlign)),a&&c.push("fixed--hidden"),r.visible&&o.push(t("th",{class:c,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},key:i},[t("div",{class:["vxe-cell"]},r.renderHeader(t,{$table:e,column:r,columnIndex:i,fixed:n,isHidden:a}))]))}),o.push(t("th",{class:["col--gutter"],style:{width:"".concat(i,"px")}})),t("tr",{class:["vxe-header-row"]},o)})),t("div",{class:["vxe-table--repair"],style:{width:null===o?o:"".concat(o,"px")}})])])}};function E(t,e,n){var r=e.tableData,o=e.tableColumn,i=e.collectColumn,c=e.isGroup,a=e.height,u=e.headerHeight,l=e.tableHeight,s=e.scrollYWidth,f=e.scrollXHeight,d=e.scrollRightToLeft,p=e.scrollLeftToRight,v=e.columnStore,b=isNaN(a)?0:h()(a),y="right"===n,m={height:"".concat((b||l)+u-f,"px"),width:"".concat(v["".concat(n,"List")].reduce(function(t,e){return t+e.renderWidth},y?s+1:0),"px")};return t("div",{class:["vxe-table--fixed-".concat(n,"-wrapper"),{"scrolling--middle":y?d:p}],style:m,ref:"fixedTable"},[t("table-header",{props:{fixedType:n,tableData:r,tableColumn:o,collectColumn:i,isGroup:c},ref:"".concat(n,"Header")}),t("table-body",{style:{top:"".concat(u,"px")},props:{fixedType:n,tableData:r,tableColumn:o,collectColumn:i,isGroup:c},ref:"".concat(n,"Body")})])}var O={name:"VxeTable",props:{data:Array,height:String,stripe:Boolean,border:Boolean,animat:{type:Boolean,default:!0},size:String,fit:{type:Boolean,default:!0},loading:Boolean,showHeader:{type:Boolean,default:!0},highlightCurrentRow:Boolean,highlightHoverRow:{type:Boolean,default:!0},customs:Array,rowKey:[String,Number],autoWidth:{type:Boolean,default:!0}},components:{TableBody:x,TableHeader:C},provide:function(){return{$table:this}},data:function(){return{id:v.a.uniqueId(),collectColumn:[],tableColumn:[],tableData:[],tableWidth:0,tableHeight:0,headerHeight:0,overflowY:!0,overflowX:!1,scrollYWidth:0,scrollXHeight:0,scrollLeftToRight:!1,scrollRightToLeft:!1,isAllSelected:!1,isIndeterminate:!1,selection:[],selectRow:null,hoverRow:null,columnStore:{leftList:[],centerList:[],rightList:[],pxList:[],pxMinList:[],scaleList:[],scaleMinList:[],autoList:[]}}},computed:{isGroup:function(){return this.collectColumn.some(function(t){return t.children&&t.children.length})},visibleColumn:function(){return this.tableColumn.filter(function(t){return t.visible})}},watch:{data:function(t){this.reload(t)},customs:function(t){this.isUpdateCustoms||this.mergeCustomColumn(t),this.isUpdateCustoms=!1},tableColumn:function(){this.analyColumnWidth()},visibleColumn:function(){var t=this;this.$nextTick(function(){return t.computeWidth()})}},created:function(){var t=this;this.reload(this.data).then(function(){t.tableColumn=y.getColumnList(t.collectColumn),t.customs&&t.mergeCustomColumn(t.customs),t.refreshColumn(),t.$nextTick(function(){return t.computeWidth(!0)})})},render:function(t){var e=this.tableData,n=this.tableColumn,r=this.collectColumn,o=this.isGroup,i=this.animat,c=this.border,a=this.stripe,u=this.highlightHoverRow,l=this.size,s=this.columnStore,f=s.leftList,d=s.rightList,h=[t("div",{class:["vxe-table-hidden-column"],ref:"hideColumn"},this.$slots.default)];return this.showHeader&&h.push(t("table-header",{ref:"tableHeader",props:{tableData:e,tableColumn:n,collectColumn:r,isGroup:o}})),h.push(t("table-body",{ref:"tableBody",props:{tableData:e,tableColumn:n,collectColumn:r,isGroup:o}})),f&&f.length&&h.push(E(t,this,"left")),d&&d.length&&h.push(E(t,this,"right")),t("div",{class:["vxe-table",l?"t--size-".concat(l):"",{"t--animat":i,"t--stripe":a,"t--border":c,"t--highlight":u}]},h)},methods:{clearSelection:function(){this.isAllSelected=!1,this.isIndeterminate=!1,this.selection=[]},clearSelectRow:function(){this.selectRow=null,this.hoverRow=null},clearSort:function(){this.tableColumn.forEach(function(t){t.order=null}),this.tableData=this.data||[]},reload:function(t){this.clearSelection(),this.clearSelectRow(),this.clearSort(),this.tableData=t||[];var e=this.$nextTick();return this.autoWidth?e.then(this.computeWidth):e},mergeCustomColumn:function(t){this.isUpdateCustoms=!0,this.tableColumn.map(function(e){var n=t.find(function(t){return e.property&&t.prop===e.property});e.visible=!n||!!n.visible}),this.$emit("update:customs",this.tableColumn)},refreshColumn:function(){var t,e=0,n=[],r=0,o=[],i=[];if(this.tableColumn.forEach(function(c,a){"left"===c.fixed?(t||(a-e!==0?t=!0:e++),n.push(c)):"right"===c.fixed?(t||(r||(r=a),a-r!==0?t=!0:r++),i.push(c)):o.push(c)}),this.tableColumn=n.concat(o).concat(i),f()(this.columnStore,{leftList:n,centerList:o,rightList:i}),t&&this.isGroup||r&&r!==this.tableColumn.length)throw new Error("[vxe-table] Fixed column must to the left and right sides.")},analyColumnWidth:function(){var t=[],e=[],n=[],r=[],o=[];this.tableColumn.forEach(function(i){i.visible&&(y.isScale(i.width)?n.push(i):y.isPx(i.width)?t.push(i):y.isScale(i.minWidth)?r.push(i):y.isPx(i.minWidth)?e.push(i):o.push(i))}),f()(this.columnStore,{pxList:t,pxMinList:e,scaleList:n,scaleMinList:r,autoList:o})},computeWidth:function(t){var e=this,n=this.$refs.tableBody,r=this.$refs.tableHeader;if(n){var o=n.$el,i=r?r.$el:null,c=o.clientWidth,a=this.autoCellWidth(i,o,c);!0===t&&this.$nextTick(function(){c=o.clientWidth,c!==a&&e.autoCellWidth(i,o,c)})}},autoCellWidth:function(t,e,n){var r,o=0,i=40,c=n,a=this.fit,u=this.columnStore,s=u.pxMinList,f=u.pxList,d=u.scaleList,h=u.scaleMinList,p=u.autoList;s.forEach(function(t){var e=l()(t.minWidth);o+=e,t.renderWidth=e}),r=c/100,h.forEach(function(t){var e=Math.floor(l()(t.minWidth)*r);o+=e,t.renderWidth=e}),d.forEach(function(t){var e=Math.floor(l()(t.width)*r);o+=e,t.renderWidth=e}),f.forEach(function(t){var e=l()(t.width);o+=e,t.renderWidth=e}),c-=o,r=c>0?Math.max(Math.floor(c/(h.length+s.length+p.length)),i):i,a?c>0&&h.concat(s).forEach(function(t){o+=r,t.renderWidth+=r}):r=i,p.forEach(function(t,e){if(t.renderWidth=r,o+=r,a&&e===p.length-1){var i=n-o;i>0&&(t.renderWidth+=i,o=n)}});var v=e.offsetHeight;return this.scrollYWidth=e.offsetWidth-n,this.scrollXHeight=v-e.clientHeight-1,this.overflowY=this.scrollYWidth>0,this.overflowX=o>n,this.tableWidth=o,this.tableHeight=v,t&&(this.headerHeight=t.offsetHeight),this.overflowX&&this.checkScrolling(),o},checkScrolling:function(){var t=this.$refs,e=t.tableBody,n=t.leftBody,r=t.rightBody,o=e.$el;n&&(this.scrollLeftToRight=o.scrollLeft>0),r&&(this.scrollRightToLeft=o.clientWidth<o.scrollWidth-o.scrollLeft)},checkRowEvent:function(t,e){var n=e.row,r=e.column,o=event.target.checked,i=r.property;i?(v.a.set(n,i,o),this.isAllSelected=this.tableData.every(function(t){return v.a.get(t,i)}),this.isIndeterminate=!this.isAllSelected&&this.tableData.some(function(t){return v.a.get(t,i)})):(o?this.selection.push(n):v.a.remove(this.selection,function(t){return t===n}),this.isAllSelected=this.tableData.length===this.selection.length,this.isIndeterminate=!this.isAllSelected&&this.selection.length)},checkAllEvent:function(t){var e=event.target.checked,n=this.tableColumn.find(function(t){return"selection"===t.type}),r=n.property;r&&this.tableData.forEach(function(t){v.a.set(t,r,e)}),this.selection=e?a()(this.tableData):[],this.isAllSelected=e,y.emitEvent(this,"select-all",[this.selection])},redioRowEvent:function(t,e){var n=e.row;e.column;this.selectRow=n},rowHoverEvent:function(t,e){var n=e.row;this.hoverRow=n},colClickEvent:function(t,e){this.highlightCurrentRow&&(this.selectRow=e.row),y.emitEvent(this,"cell-click",[e,t])},colDblclickEvent:function(t,e){y.emitEvent(this,"cell-dblclick",[e,t])},rowSortEvent:function(t,e,n){var r=e.column,o=r.property,i=v.a.sortBy(this.tableData,o);r.order=n,this.tableData="desc"===n?i.reverse():i,y.emitEvent(this,"sort-change",[{column:r,prop:o,order:n}])}}},T={name:"VxeTableColumn",props:{type:String,prop:String,label:String,width:[Number,String],minWidth:[Number,String],fixed:String,align:String,headerAlign:String,ellipsis:Boolean,showOverflowTitle:Boolean,showOverflowTooltip:Boolean,formatter:Function,indexMethod:Function,sortable:Boolean,sortBy:[String,Array],filters:Array,filterMultiple:{type:Boolean,default:!0},filterMethod:Function},inject:["$table"],data:function(){return{columnConfig:{}}},created:function(){var t={};switch(this.type){case"index":t.renderHeader=this.renderIndexHeader,t.renderCell=this.renderIndexCell;break;case"radio":t.renderHeader=this.renderRadioHeader,t.renderCell=this.renderRadioCell;break;case"selection":t.renderHeader=this.renderSelectionHeader,t.renderCell=this.prop?this.renderSelectionCellByProp:this.renderSelectionCell;break;default:this.filters&&this.sortable||(this.sortable?t.renderHeader=this.renderSortHeader:this.filters&&(t.renderHeader=this.renderFilterHeader))}this.columnConfig=y.getColumnConfig(this,t)},mounted:function(){y.assemColumn(this)},render:function(t){return t("div",this.$slots.default)},methods:{renderHeader:function(t,e){var n=this.$scopedSlots;return n&&n.header?n.header(e):[t("span",e.column.label)]},renderCell:function(t,e){var n,r=this.$scopedSlots,o=this.formatter,i=e.row,c=e.rowIndex,a=e.column,u=e.columnIndex;return r&&r.default?r.default(e):(n=v.a.get(i,a.property),o&&(n=o({cellValue:n,row:i,rowIndex:c,column:a,columnIndex:u})),[t("span",n)])},renderIndexHeader:function(t,e){var n=this.$scopedSlots;return n&&n.header?n.header(e):[t("span",e.column.label||"#")]},renderIndexCell:function(t,e){var n,r=this.$scopedSlots,o=this.indexMethod,i=e.row,c=e.rowIndex,a=e.column,u=e.columnIndex;return r&&r.default?r.default(e):(n=c+1,o&&(n=o({row:i,rowIndex:c,column:a,columnIndex:u})),[t("span",n)])},renderRadioHeader:function(t,e){return[t("span",e.column.label)]},renderRadioCell:function(t,e){var n=this,r=this.$table,o=r.selectRow,i=e.row,c={attrs:{type:"radio",name:"vxe-radio--".concat(r.id)}};return e.isHidden||(c.domProps={checked:i===o},c.on={change:function(t){r.redioRowEvent(t,e),y.emitEvent(n,"change",[i])}}),[t("label",{class:["vxe-radio"]},[t("input",c),t("span")])]},renderSelectionHeader:function(t,e){var n=this.$table,r=e.isHidden,o={attrs:{type:"checkbox"}};return r||(o.domProps={checked:n.isAllSelected},o.on={change:function(t){n.checkAllEvent(t.target.checked)}}),[t("label",{class:["vxe-checkbox"]},[t("input",o),t("span")])]},renderSelectionCell:function(t,e){var n=this,r=this.$table,o=e.row,i=e.isHidden,c={attrs:{type:"checkbox"}};return i||(c.domProps={checked:r.selection.indexOf(o)>-1},c.on={change:function(t){r.checkRowEvent(t,e),y.emitEvent(n,"change",[r.selection,o])}}),[t("label",{class:["vxe-checkbox"]},[t("input",c),t("span")])]},renderSelectionCellByProp:function(t,e){var n=this.$table,r=e.row,o=e.column,i=e.isHidden,c={attrs:{type:"checkbox"}};return i||(c.domProps={checked:v.a.get(r,o.property)},c.on={change:function(t){n.checkRowEvent(t,e)}}),[t("label",{class:["vxe-checkbox"]},[t("input",c),t("span")])]},renderSortHeader:function(t,e){var n=this,r=e.column;return[t("span",r.label),t("span",{class:["vxe-sort-wrapper"]},[t("i",{class:["vxe-sort--asc-icon",{"sort--active":"asc"===r.order}],on:{click:function(t){n.handleSortEvent(t,r,e,"asc")}}}),t("i",{class:["vxe-sort--desc-icon",{"sort--active":"desc"===r.order}],on:{click:function(t){n.handleSortEvent(t,r,e,"desc")}}})])]},handleSortEvent:function(t,e,n,r){e.order!==r&&this.$table.rowSortEvent(t,n,r)},renderFilterHeader:function(t,e){var n=this,r=e.column;return[t("span",r.label),t("span",{class:["vxe-filter-wrapper"]},[t("i",{class:["vxe-filter--icon"],on:{click:function(t){n.handleFilterEvent(t,r,e)}}})])]},handleFilterEvent:function(t,e,n){}}},_=(n("8e1f"),[O,T]),k=function t(e){t.installed||_.map(function(t){return e.component(t.name,t)})};"undefined"!==typeof window&&window.Vue&&k(window.Vue);var A={install:k};e["default"]=A},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})["default"]}); |
{ | ||
"name": "vxe-table", | ||
"version": "0.0.1-beta.1", | ||
"version": "0.0.1-beta.2", | ||
"description": "A very powerful Vue table component.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
# vxe-table | ||
[![npm version](https://img.shields.io/npm/v/vxe-table.svg?style=flat-square)](https://www.npmjs.org/package/vxe-table) | ||
[![npm downloads](https://img.shields.io/npm/dm/vxe-table.svg?style=flat-square)](http://npm-stat.com/charts.html?package=vxe-table) | ||
[![gzip size: JS](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/index.umd.min.js?compression=gzip&label=gzip%20size:%20JS)](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/index.umd.min.js?compression=gzip&label=gzip%20size:%20JS) | ||
[![gzip size: CSS](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/index.css?compression=gzip&label=gzip%20size:%20CSS)](http://img.badgesize.io/https://unpkg.com/vxe-table/lib/index.css?compression=gzip&label=gzip%20size:%20CSS) | ||
[![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/xuliangzhan/vxe-table/blob/master/LICENSE) | ||
A very powerful Vue table component. | ||
@@ -8,18 +14,18 @@ | ||
* [vxe-table 功能点](#table-表格) | ||
* [基础](#table-column) | ||
* [尺寸](#table-column) | ||
* [斑马线条纹](#table-column) | ||
* [带边框](#table-column) | ||
* [基础](https://jsrun.net/VrXKp/play) | ||
* [尺寸](https://jsrun.net/PmXKp/play) | ||
* [斑马线条纹](https://jsrun.net/zrXKp/play) | ||
* [带边框](https://jsrun.net/QrXKp/play) | ||
* 单元格样式 | ||
* 列宽拖动 | ||
* 流体高度 | ||
* [固定表头](#table-column) | ||
* [固定列](#table-column) | ||
* [固定表头和列](#table-column) | ||
* [表头分组](#table-column) | ||
* [序号](#table-column) | ||
* [单选](#table-column) | ||
* [多选](#table-column) | ||
* [排序](#table-column) | ||
* [筛选](#table-column) | ||
* [固定表头](https://jsrun.net/JrXKp/play) | ||
* [固定列](https://jsrun.net/TrXKp/play) | ||
* [固定表头和列](https://jsrun.net/8rXKp/play) | ||
* [表头分组](https://jsrun.net/7rXKp/play) | ||
* [序号](https://jsrun.net/xrXKp/play) | ||
* [单选](https://jsrun.net/9rXKp/play) | ||
* [多选](https://jsrun.net/erXKp/play) | ||
* [排序](https://jsrun.net/QrXKp/play) | ||
* [筛选](https://jsrun.net/drXKp/play) | ||
* 合并行或列 | ||
@@ -29,7 +35,7 @@ * 表尾汇总 | ||
* 快捷菜单 | ||
* [自定义列](#table-column) | ||
* [自定义列](https://jsrun.net/PrXKp/play) | ||
* 加载中 | ||
* 展开行 | ||
* 滚动渲染 | ||
* 自定义模板和格式化内容 | ||
* 自定义模板与格式化内容 | ||
* 树形 | ||
@@ -97,3 +103,3 @@ * 可编辑 | ||
| border | 是否带有纵向边框 | Boolean | — | false | | ||
| size | 表格的尺寸 | String | — | — | | ||
| size | 表格的尺寸 | String | medium / small / mini | — | | ||
| fit | 列的宽度是否自撑开 | Boolean | — | true | | ||
@@ -179,8 +185,15 @@ | loading | 表格是否加载中 | Boolean | — | false | | ||
return { | ||
tableData: [{ | ||
date: 1551322088449, | ||
name: 'Xu Liangzhan', | ||
sex: 'Man', | ||
address: 'Address' | ||
}] | ||
tableData: [ | ||
{ | ||
id: 10001, | ||
checked: false, | ||
name: 'test1', | ||
role: 'developer', | ||
sex: 'Man', | ||
date: '2019-05-01', | ||
time: 1556677810888, | ||
region: 'ShenZhen', | ||
address: 'address abc123' | ||
} | ||
] | ||
} | ||
@@ -187,0 +200,0 @@ } |
@@ -78,3 +78,3 @@ import XEUtils from 'xe-utils' | ||
} | ||
}, 50) | ||
}, 300) | ||
} | ||
@@ -101,3 +101,3 @@ } | ||
let { $parent: $table, fixedType } = this | ||
let { height, scrollXHeight } = $table | ||
let { height, tableHeight, scrollXHeight } = $table | ||
let customHeight = isNaN(height) ? 0 : parseFloat(height) | ||
@@ -107,3 +107,3 @@ let wrappers = [] | ||
if (customHeight) { | ||
style.height = `${fixedType ? customHeight - scrollXHeight : customHeight}px` | ||
style.height = `${fixedType ? (customHeight || tableHeight) - scrollXHeight : customHeight}px` | ||
} | ||
@@ -110,0 +110,0 @@ wrappers.push( |
@@ -7,7 +7,7 @@ import XEUtils from 'xe-utils' | ||
function renderFixed (h, $table, fixedType) { | ||
let { tableData, tableColumn, collectColumn, isGroup, height, headerHeight, scrollYWidth, scrollXHeight, scrollRightToLeft, scrollLeftToRight, columnStore } = $table | ||
let { tableData, tableColumn, collectColumn, isGroup, height, headerHeight, tableHeight, scrollYWidth, scrollXHeight, scrollRightToLeft, scrollLeftToRight, columnStore } = $table | ||
let customHeight = isNaN(height) ? 0 : parseFloat(height) | ||
let isRightFixed = fixedType === 'right' | ||
let style = { | ||
height: `${customHeight + headerHeight - scrollXHeight}px`, | ||
height: `${(customHeight || tableHeight) + headerHeight - scrollXHeight}px`, | ||
width: `${columnStore[`${fixedType}List`].reduce((previous, column) => previous + column.renderWidth, isRightFixed ? scrollYWidth + 1 : 0)}px` | ||
@@ -103,2 +103,4 @@ } | ||
tableWidth: 0, | ||
// 表格高度 | ||
tableHeight: 0, | ||
// 表头高度 | ||
@@ -430,7 +432,9 @@ headerHeight: 0, | ||
}) | ||
let tableHeight = bodyElem.offsetHeight | ||
this.scrollYWidth = bodyElem.offsetWidth - bodyWidth | ||
this.scrollXHeight = bodyElem.offsetHeight - bodyElem.clientHeight - 1 | ||
this.scrollXHeight = tableHeight - bodyElem.clientHeight - 1 | ||
this.overflowY = this.scrollYWidth > 0 | ||
this.overflowX = tableWidth > bodyWidth | ||
this.tableWidth = tableWidth | ||
this.tableHeight = tableHeight | ||
if (headerElem) { | ||
@@ -509,2 +513,5 @@ this.headerHeight = headerElem.offsetHeight | ||
colClickEvent (evnt, params) { | ||
if (this.highlightCurrentRow) { | ||
this.selectRow = params.row | ||
} | ||
Tools.emitEvent(this, 'cell-click', [params, evnt]) | ||
@@ -511,0 +518,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
348056
8307
203