vue-tabulation
Version:
a vue based table component
1 lines • 39.4 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueTabulation"]=e():t["VueTabulation"]=e()})("undefined"!==typeof self?self:this,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"0d58":function(t,e,r){var n=r("ce10"),o=r("e11e");t.exports=Object.keys||function(t){return n(t,o)}},"11e9":function(t,e,r){var n=r("52a7"),o=r("4630"),i=r("6821"),a=r("6a99"),u=r("69a8"),l=r("c69a"),c=Object.getOwnPropertyDescriptor;e.f=r("9e1e")?c:function(t,e){if(t=i(t),e=a(e,!0),l)try{return c(t,e)}catch(r){}if(u(t,e))return o(!n.f.call(t,e),t[e])}},1495:function(t,e,r){var n=r("86cc"),o=r("cb7c"),i=r("0d58");t.exports=r("9e1e")?Object.defineProperties:function(t,e){o(t);var r,a=i(e),u=a.length,l=0;while(u>l)n.f(t,r=a[l++],e[r]);return t}},"230e":function(t,e,r){var n=r("d3f4"),o=r("7726").document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},2350:function(t,e){function r(t,e){var r=t[1]||"",o=t[3];if(!o)return r;if(e&&"function"===typeof btoa){var i=n(o),a=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[r].concat(a).concat([i]).join("\n")}return[r].join("\n")}function n(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,"+e;return"/*# "+r+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=r(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,r){"string"===typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var i=this[o][0];"number"===typeof i&&(n[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"===typeof a[0]&&n[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},"2aba":function(t,e,r){var n=r("7726"),o=r("32e9"),i=r("69a8"),a=r("ca5a")("src"),u=r("fa5b"),l="toString",c=(""+u).split(l);r("8378").inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,r,u){var l="function"==typeof r;l&&(i(r,"name")||o(r,"name",e)),t[e]!==r&&(l&&(i(r,a)||o(r,a,t[e]?""+t[e]:c.join(String(e)))),t===n?t[e]=r:u?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,l,function(){return"function"==typeof this&&this[a]||u.call(this)})},"2aeb":function(t,e,r){var n=r("cb7c"),o=r("1495"),i=r("e11e"),a=r("613b")("IE_PROTO"),u=function(){},l="prototype",c=function(){var t,e=r("230e")("iframe"),n=i.length,o="<",a=">";e.style.display="none",r("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;while(n--)delete c[l][i[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(u[l]=n(t),r=new u,u[l]=null,r[a]=t):r=c(),void 0===e?r:o(r,e)}},"2b4c":function(t,e,r){var n=r("5537")("wks"),o=r("ca5a"),i=r("7726").Symbol,a="function"==typeof i,u=t.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=n},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},"2f21":function(t,e,r){"use strict";var n=r("79e5");t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},"2fdb":function(t,e,r){"use strict";var n=r("5ca1"),o=r("d2c8"),i="includes";n(n.P+n.F*r("5147")(i),"String",{includes:function(t){return!!~o(this,t,i).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,r){var n=r("86cc"),o=r("4630");t.exports=r("9e1e")?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},"386b":function(t,e,r){var n=r("5ca1"),o=r("79e5"),i=r("be13"),a=/"/g,u=function(t,e,r,n){var o=String(i(t)),u="<"+e;return""!==r&&(u+=" "+r+'="'+String(n).replace(a,""")+'"'),u+">"+o+"</"+e+">"};t.exports=function(t,e){var r={};r[t]=e(u),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",r)}},4588:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"499e":function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},o=0;o<e.length;o++){var i=e[o],a=i[0],u=i[1],l=i[2],c=i[3],s={id:t+":"+o,css:u,media:l,sourceMap:c};n[a]?n[a].parts.push(s):r.push(n[a]={id:a,parts:[s]})}return r}r.r(e),r.d(e,"default",function(){return h});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),u=null,l=0,c=!1,s=function(){},d=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,r,o){c=r,d=o||{};var a=n(t,e);return b(a),function(e){for(var r=[],o=0;o<a.length;o++){var u=a[o],l=i[u.id];l.refs--,r.push(l)}e?(a=n(t,e),b(a)):a=[];for(o=0;o<r.length;o++){l=r[o];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}}function b(t){for(var e=0;e<t.length;e++){var r=t[e],n=i[r.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](r.parts[o]);for(;o<r.parts.length;o++)n.parts.push(m(r.parts[o]));n.parts.length>r.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(m(r.parts[o]));i[r.id]={id:r.id,refs:1,parts:a}}}}function v(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function m(t){var e,r,n=document.querySelector("style["+f+'~="'+t.id+'"]');if(n){if(c)return s;n.parentNode.removeChild(n)}if(p){var o=l++;n=u||(u=v()),e=y.bind(null,n,o,!1),r=y.bind(null,n,o,!0)}else n=v(),e=x.bind(null,n),r=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else r()}}var g=function(){var t=[];return function(e,r){return t[e]=r,t.filter(Boolean).join("\n")}}();function y(t,e,r,n){var o=r?"":n.css;if(t.styleSheet)t.styleSheet.cssText=g(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function x(t,e){var r=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),d.ssrId&&t.setAttribute(f,e.id),o&&(r+="\n/*# sourceURL="+o.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},"4bf8":function(t,e,r){var n=r("be13");t.exports=function(t){return Object(n(t))}},5147:function(t,e,r){var n=r("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(o){}}return!0}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,r){var n=r("8378"),o=r("7726"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,r){"use strict";var n=r("5ca1"),o=r("d8e8"),i=r("4bf8"),a=r("79e5"),u=[].sort,l=[1,2,3];n(n.P+n.F*(a(function(){l.sort(void 0)})||!a(function(){l.sort(null)})||!r("2f21")(u)),"Array",{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},"5ca1":function(t,e,r){var n=r("7726"),o=r("8378"),i=r("32e9"),a=r("2aba"),u=r("9b43"),l="prototype",c=function(t,e,r){var s,d,f,p,h=t&c.F,b=t&c.G,v=t&c.S,m=t&c.P,g=t&c.B,y=b?n:v?n[e]||(n[e]={}):(n[e]||{})[l],x=b?o:o[e]||(o[e]={}),_=x[l]||(x[l]={});for(s in b&&(r=e),r)d=!h&&y&&void 0!==y[s],f=(d?y:r)[s],p=g&&d?u(f,n):m&&"function"==typeof f?u(Function.call,f):f,y&&a(y,s,f,t&c.U),x[s]!=f&&i(x,s,p),m&&_[s]!=f&&(_[s]=f)};n.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5dbc":function(t,e,r){var n=r("d3f4"),o=r("8b97").set;t.exports=function(t,e,r){var i,a=e.constructor;return a!==r&&"function"==typeof a&&(i=a.prototype)!==r.prototype&&n(i)&&o&&o(t,i),t}},"613b":function(t,e,r){var n=r("5537")("keys"),o=r("ca5a");t.exports=function(t){return n[t]||(n[t]=o(t))}},"626a":function(t,e,r){var n=r("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},6762:function(t,e,r){"use strict";var n=r("5ca1"),o=r("c366")(!0);n(n.P,"Array",{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r("9c6c")("includes")},6821:function(t,e,r){var n=r("626a"),o=r("be13");t.exports=function(t){return n(o(t))}},"69a8":function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},"6a99":function(t,e,r){var n=r("d3f4");t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},7726:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},"77f1":function(t,e,r){var n=r("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},"79cc":function(t,e,r){"use strict";var n=r("915d"),o=r.n(n);o.a},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},8378:function(t,e){var r=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=r)},"84a2":function(t,e,r){(function(e){var r="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,s="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,f=s||d||Function("return this")(),p=Object.prototype,h=p.toString,b=Math.max,v=Math.min,m=function(){return f.Date.now()};function g(t,e,n){var o,i,a,u,l,c,s=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError(r);function h(e){var r=o,n=i;return o=i=void 0,s=e,u=t.apply(n,r),u}function g(t){return s=t,l=setTimeout(C,e),d?h(t):u}function y(t){var r=t-c,n=t-s,o=e-r;return f?v(o,a-n):o}function _(t){var r=t-c,n=t-s;return void 0===c||r>=e||r<0||f&&n>=a}function C(){var t=m();if(_(t))return S(t);l=setTimeout(C,y(t))}function S(t){return l=void 0,p&&o?h(t):(o=i=void 0,u)}function k(){void 0!==l&&clearTimeout(l),s=0,o=c=i=l=void 0}function N(){return void 0===l?u:S(m())}function j(){var t=m(),r=_(t);if(o=arguments,i=this,c=t,r){if(void 0===l)return g(c);if(f)return l=setTimeout(C,e),h(c)}return void 0===l&&(l=setTimeout(C,e)),u}return e=w(e)||0,x(n)&&(d=!!n.leading,f="maxWait"in n,a=f?b(w(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),j.cancel=k,j.flush=N,j}function y(t,e,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(r);return x(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),g(t,e,{leading:o,maxWait:e,trailing:i})}function x(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){return!!t&&"object"==typeof t}function C(t){return"symbol"==typeof t||_(t)&&h.call(t)==o}function w(t){if("number"==typeof t)return t;if(C(t))return n;if(x(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=x(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var r=u.test(t);return r||l.test(t)?c(t.slice(2),r?2:8):a.test(t)?n:+t}t.exports=y}).call(this,r("c8ba"))},"86cc":function(t,e,r){var n=r("cb7c"),o=r("c69a"),i=r("6a99"),a=Object.defineProperty;e.f=r("9e1e")?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return a(t,e,r)}catch(u){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},"8b97":function(t,e,r){var n=r("d3f4"),o=r("cb7c"),i=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r("9b43")(Function.call,r("11e9").f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,r){return i(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:i}},"8e53":function(t,e,r){e=t.exports=r("2350")(!1),e.push([t.i,".vue-tabulation{overflow:hidden;position:relative;font-size:14px;color:#606266;border:1px solid #ebeef5}.vue-tabulation,.vue-tabulation table{-webkit-box-sizing:border-box;box-sizing:border-box}.vue-tabulation table{width:100%;border-collapse:collapse;border-spacing:0;table-layout:fixed}.vue-tabulation tr:hover{background-color:#f5f7fa}.vue-tabulation td,.vue-tabulation th{border-right:1px solid #ebeef5;border-bottom:1px solid #ebeef5;padding:12px 8px;min-width:0;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;background:#fff;height:45px}.vue-tabulation td.is-center,.vue-tabulation th.is-center{text-align:center}.vue-tabulation td.is-right,.vue-tabulation th.is-right{text-align:right}.vue-tabulation td .cell,.vue-tabulation th .cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vue-tabulation .vue-tabulation__gutter{background:#fff}.vue-tabulation .vue-tabulation__header-wrapper,.vue-tabulation .vue-tabulation__summary-wrapper{position:relative}.vue-tabulation .vue-tabulation__body-wrapper{position:relative;overflow:auto}.vue-tabulation.vue-tabulation--scrollable-y .vue-tabulation__body-wrapper{overflow-y:auto}.vue-tabulation.vue-tabulation--scrollable-x .vue-tabulation__body-wrapper{overflow-x:auto}.vue-tabulation .vue-tabulation__body--fixed-left,.vue-tabulation .vue-tabulation__header--fixed-left,.vue-tabulation .vue-tabulation__summary--fixed-left{position:absolute;top:0;left:0;width:auto;-webkit-box-shadow:0 0 10px rgba(0,0,0,.12);box-shadow:0 0 10px rgba(0,0,0,.12)}.vue-tabulation .vue-tabulation__body--fixed-right,.vue-tabulation .vue-tabulation__header--fixed-right,.vue-tabulation .vue-tabulation__summary--fixed-right{position:absolute;top:0;right:0;width:auto;-webkit-box-shadow:0 0 10px rgba(0,0,0,.12);box-shadow:0 0 10px rgba(0,0,0,.12)}.vue-tabulation.vue-tabulation--border td,.vue-tabulation.vue-tabulation--border th{border:1px solid #ebeef5}.vue-tabulation .HeaderCellSort{cursor:pointer}.vue-tabulation .HeaderCellSort .caret-wrapper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:22px;width:16px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.vue-tabulation .HeaderCellSort .caret-wrapper .sort-caret{width:0;height:0;border:5px solid transparent}.vue-tabulation .HeaderCellSort .caret-wrapper .sort-caret.ascending{border-bottom-color:#c0c4cc}.vue-tabulation .HeaderCellSort .caret-wrapper .sort-caret.ascending.active{border-bottom-color:#409eff}.vue-tabulation .HeaderCellSort .caret-wrapper .sort-caret.descending{border-top-color:#c0c4cc}.vue-tabulation .HeaderCellSort .caret-wrapper .sort-caret.descending.active{border-top-color:#409eff}",""])},9093:function(t,e,r){var n=r("ce10"),o=r("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},"915d":function(t,e,r){var n=r("8e53");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("499e").default;o("2426db3f",n,!0,{sourceMap:!1,shadowMode:!1})},"9b43":function(t,e,r){var n=r("d8e8");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,r){var n=r("2b4c")("unscopables"),o=Array.prototype;void 0==o[n]&&r("32e9")(o,n,{}),t.exports=function(t){o[n][t]=!0}},"9def":function(t,e,r){var n=r("4588"),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},"9e1e":function(t,e,r){t.exports=!r("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},aa77:function(t,e,r){var n=r("5ca1"),o=r("be13"),i=r("79e5"),a=r("fdef"),u="["+a+"]",l="
",c=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),d=function(t,e,r){var o={},u=i(function(){return!!a[t]()||l[t]()!=l}),c=o[t]=u?e(f):a[t];r&&(o[r]=c),n(n.P+n.F*u,"String",o)},f=d.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(s,"")),t};t.exports=d},aae3:function(t,e,r){var n=r("d3f4"),o=r("2d95"),i=r("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},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,r){var n=r("6821"),o=r("9def"),i=r("77f1");t.exports=function(t){return function(e,r,a){var u,l=n(e),c=o(l.length),s=i(a,c);if(t&&r!=r){while(c>s)if(u=l[s++],u!=u)return!0}else for(;c>s;s++)if((t||s in l)&&l[s]===r)return t||s||0;return!t&&-1}}},c5f6:function(t,e,r){"use strict";var n=r("7726"),o=r("69a8"),i=r("2d95"),a=r("5dbc"),u=r("6a99"),l=r("79e5"),c=r("9093").f,s=r("11e9").f,d=r("86cc").f,f=r("aa77").trim,p="Number",h=n[p],b=h,v=h.prototype,m=i(r("2aeb")(v))==p,g="trim"in String.prototype,y=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=g?e.trim():f(e,3);var r,n,o,i=e.charCodeAt(0);if(43===i||45===i){if(r=e.charCodeAt(2),88===r||120===r)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+e}for(var a,l=e.slice(2),c=0,s=l.length;c<s;c++)if(a=l.charCodeAt(c),a<48||a>o)return NaN;return parseInt(l,n)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof h&&(m?l(function(){v.valueOf.call(r)}):i(r)!=p)?a(new b(y(e)),r,h):y(e)};for(var x,_=r("9e1e")?c(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;_.length>C;C++)o(b,x=_[C])&&!o(h,x)&&d(h,x,s(b,x));h.prototype=v,v.constructor=h,r("2aba")(n,p,h)}},c69a:function(t,e,r){t.exports=!r("9e1e")&&!r("79e5")(function(){return 7!=Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},ca5a:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},cb7c:function(t,e,r){var n=r("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,r){var n=r("69a8"),o=r("6821"),i=r("c366")(!1),a=r("613b")("IE_PROTO");t.exports=function(t,e){var r,u=o(t),l=0,c=[];for(r in u)r!=a&&n(u,r)&&c.push(r);while(e.length>l)n(u,r=e[l++])&&(~i(c,r)||c.push(r));return c}},d263:function(t,e,r){"use strict";r("386b")("fixed",function(t){return function(){return t(this,"tt","","")}})},d2c8:function(t,e,r){var n=r("aae3"),o=r("be13");t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(t,e){(function(t){var e="currentScript",r=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in r)if(r[t].src==e||"interactive"==r[t].readyState)return r[t];return null}}})})(document)},fa5b:function(t,e,r){t.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,r){var n=r("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,r){"use strict";var n;(r.r(e),"undefined"!==typeof window)&&(r("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(r.p=n[1]));var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"theWrap",staticClass:"vue-tabulation",class:t.gridClass},[r("div",{ref:"headerWrap",staticClass:"vue-tabulation__header-wrapper"},[r("table",{ref:"header",staticClass:"vue-tabulation__header",style:t.gridHeaderStyle},[r("colgroup",[t._l(t.fixedNormalizeColumns,function(e,n){return r("col",{key:n,attrs:{width:t.columnsWidthMap[e.prop]+"px"}})}),t.hasScrollableY?r("col",{attrs:{width:t.gutterWidth+"px"}}):t._e()],2),r("thead",[r("tr",[t._l(t.fixedNormalizeColumns,function(e,n){return r("th",{key:e.prop,class:[t.computeCellClass(e)]},[e.headerCellComp?[r(e.headerCellComp,t._g({tag:"component",attrs:{label:e.label,index:n,prop:e.prop,column:e,sort:t.sort}},t.$listeners))]:[t._v(t._s(e.label))]],2)}),t.hasScrollableY?r("th",{staticClass:"vue-tabulation__gutter"}):t._e()],2)])]),t.fixedLeftColumns.length?r("table",{ref:"header-fixed-left",staticClass:"vue-tabulation__header--fixed-left"},[r("colgroup",t._l(t.fixedLeftColumns,function(e,n){return r("col",{key:n,attrs:{width:t.columnsWidthMap[e.prop]+"px"}})}),0),r("thead",[r("tr",t._l(t.fixedLeftColumns,function(e,n){return r("th",{key:e.prop,class:[t.computeCellClass(e)]},[e.headerCellComp?[r(e.headerCellComp,t._g({tag:"component",attrs:{label:e.label,index:n,prop:e.prop,column:e,sort:t.sort}},t.$listeners))]:[t._v(t._s(e.label))]],2)}),0)])]):t._e(),t.fixedRightColumns.length?r("table",{ref:"header-fixed-right",staticClass:"vue-tabulation__header--fixed-right"},[r("colgroup",[t._l(t.fixedRightColumns,function(e,n){return r("col",{key:n,attrs:{width:t.columnsWidthMap[e.prop]+"px"}})}),t.hasScrollableY?r("col",{attrs:{width:t.gutterWidth+"px"}}):t._e()],2),r("thead",[r("tr",[t._l(t.fixedRightColumns,function(e,n){return r("th",{key:e.prop,class:[t.computeCellClass(e)]},[e.headerCellComp?[r(e.headerCellComp,t._g({tag:"component",attrs:{label:e.label,index:n,prop:e.prop,column:e,sort:t.sort}},t.$listeners))]:[t._v(t._s(e.label))]],2)}),t.hasScrollableY?r("th",{staticClass:"vue-tabulation__gutter"}):t._e()],2)])]):t._e()]),r("div",{ref:"bodyWrap",staticClass:"vue-tabulation__body-wrapper",style:t.bodyWrapStyle,on:{scroll:t.debounceScroll}},[r("table",{ref:"body",staticClass:"vue-tabulation__body"},[r("colgroup",t._l(t.fixedNormalizeColumns,function(e,n){return r("col",{key:n,attrs:{width:e.width?e.width:t.columnsWidthMap[e.prop]+"px"}})}),0),r("tbody",[r("tr",{style:{height:t.bodyTopPadding+"px"}}),t._l(t.renderDataSource,function(e){return r("tr",{key:e["vue-tabulation_inner_index"],staticClass:"vue-tabulation-body-tr",class:[t.rowClassName&&t.rowClassName(e,e["vue-tabulation_inner_index"])],on:{click:function(r){return t.$emit("row-click",e["vue-tabulation_inner_index"],e)}}},t._l(t.fixedNormalizeColumns,function(n){return r("td",{key:n.prop,ref:"bodyCell",refInFor:!0,class:[t.computeCellClass(n)]},[n.bodyCellComp?[r("div",{staticClass:"cell"},[r(n.bodyCellComp,t._g({tag:"component",attrs:{value:e[n.prop],prop:n.prop,index:e["vue-tabulation_inner_index"],column:n,row:e}},t.$listeners))],1)]:[r("div",{staticClass:"cell",attrs:{title:e[n.prop]}},[t._v(t._s(e[n.prop]))])]],2)}),0)}),r("tr",{style:{height:t.bodyBottomPadding+"px"}})],2)]),t.fixedLeftColumns.length?r("table",{ref:"body-fixed-left",staticClass:"vue-tabulation__body--fixed-left",style:{transform:"translateX("+this.gridBodyScrollLeft+"px)"}},[r("colgroup",t._l(t.fixedLeftColumns,function(e,n){return r("col",{key:n,attrs:{width:t.columnsWidthMap[e.prop]+"px"}})}),0),r("tbody",[r("tr",{style:{height:t.bodyTopPadding+"px"}}),t._l(t.renderDataSource,function(e){return r("tr",{key:e["vue-tabulation_inner_index"],staticClass:"vue-tabulation-body-tr",class:[t.rowClassName&&t.rowClassName(e,e["vue-tabulation-index"])],on:{click:function(r){return t.$emit("row-click",e["vue-tabulation_inner_index"],e)}}},t._l(t.fixedLeftColumns,function(n){return r("td",{key:n.prop,ref:"bodyCell",refInFor:!0,class:[t.computeCellClass(n)]},[n.bodyCellComp?[r("div",{staticClass:"cell"},[r(n.bodyCellComp,t._g({tag:"component",attrs:{value:e[n.prop],prop:n.prop,index:e["vue-tabulation-index"]-1,column:n,row:e}},t.$listeners))],1)]:[r("div",{staticClass:"cell",attrs:{title:e[n.prop]}},[t._v(t._s(e[n.prop]))])]],2)}),0)}),r("tr",{style:{height:t.bodyBottomPadding+"px"}})],2)]):t._e(),t.fixedRightColumns.length?r("table",{ref:"body-fixed-right",staticClass:"vue-tabulation__body--fixed-right",style:{transform:"translateX("+(this.gridBodyScrollLeft-1)+"px)"}},[r("colgroup",t._l(t.fixedRightColumns,function(e,n){return r("col",{key:n,attrs:{width:t.columnsWidthMap[e.prop]+"px"}})}),0),r("tbody",[r("tr",{style:{height:t.bodyTopPadding+"px"}}),t._l(t.renderDataSource,function(e){return r("tr",{key:e["vue-tabulation_inner_index"],staticClass:"vue-tabulation-body-tr",class:[t.rowClassName&&t.rowClassName(e,e["vue-tabulation-index"])],on:{click:function(r){return t.$emit("row-click",e["vue-tabulation_inner_index"],e)}}},t._l(t.fixedRightColumns,function(n){return r("td",{key:n.prop,ref:"bodyCell",refInFor:!0,class:[t.computeCellClass(n)]},[n.bodyCellComp?[r("div",{staticClass:"cell"},[r(n.bodyCellComp,t._g({tag:"component",attrs:{value:e[n.prop],prop:n.prop,index:e["vue-tabulation-index"]-1,column:n,row:e}},t.$listeners))],1)]:[r("div",{staticClass:"cell",attrs:{title:e[n.prop]}},[t._v(t._s(e[n.prop]))])]],2)}),0)}),r("tr",{style:{height:t.bodyBottomPadding+"px"}})],2)]):t._e()]),t.showSummary?r("div",{ref:"summaryWrap",staticClass:"vue-tabulation__summary-wrapper"},[r("table",{ref:"summary",staticClass:"vue-tabulation__summary",style:t.gridHeaderStyle},[r("colgroup",[t._l(t.fixedNormalizeColumns,function(e,n){return r("col",{key:n,attrs:{width:t.columnsWidthMap[e.prop]+"px"}})}),t.hasScrollableY?r("col",{staticClass:"vue-tabulation__gutter",attrs:{width:t.gutterWidth+"px"}}):t._e()],2),r("thead",[r("tr",[t._l(t.fixedNormalizeColumns,function(e,n){return r("th",{key:n,class:[t.computeCellClass(e)]},[t._v(t._s(t.summaryData[e["vue-tabulation-index"]]))])}),t.hasScrollableY?r("th",{staticClass:"vue-tabulation__gutter"}):t._e()],2)])]),t.fixedLeftColumns.length?r("table",{ref:"summary-fixed-left",staticClass:"vue-tabulation__summary--fixed-left"},[r("colgroup",t._l(t.fixedLeftColumns,function(e,n){return r("col",{key:n,attrs:{width:t.columnsWidthMap[e.prop]+"px"}})}),0),r("thead",[r("tr",t._l(t.fixedLeftColumns,function(e,n){return r("th",{key:n,class:[t.computeCellClass(e)]},[t._v(t._s(t.summaryData[e["vue-tabulation-index"]]))])}),0)])]):t._e(),t.fixedRightColumns.length?r("table",{ref:"summary-fixed-right",staticClass:"vue-tabulation__summary--fixed-right"},[r("colgroup",[t._l(t.fixedRightColumns,function(e,n){return r("col",{key:n,attrs:{width:t.columnsWidthMap[e.prop]+"px"}})}),t.hasScrollableY?r("col",{staticClass:"vue-tabulation__gutter",attrs:{width:t.gutterWidth+"px"}}):t._e()],2),r("thead",[r("tr",[t._l(t.fixedRightColumns,function(e,n){return r("th",{key:n,class:[t.computeCellClass(e)]},[t._v(t._s(t.summaryData[e["vue-tabulation-index"]]))])}),t.hasScrollableY?r("th",{staticClass:"vue-tabulation__gutter"}):t._e()],2)])]):t._e()]):t._e()])},i=[],a=(r("6762"),r("2fdb"),r("55dd"),r("d263"),r("c5f6"),r("84a2")),u=r.n(a);function l(t){return t.sort(function(t,e){function r(t){return t?"right"===t?-1:1:0}return r(e.fixed)-r(t.fixed)})}function c(t){return JSON.parse(JSON.stringify(t))}var s=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"HeaderCellSort",on:{click:t.handleClick}},[r("span",[t._v(t._s(t.label))]),r("span",{staticClass:"caret-wrapper"},[r("i",{staticClass:"sort-caret ascending",class:{active:t.ascActive},on:{click:function(e){return e.stopPropagation(),t.handleSortChange("asc")}}}),r("i",{staticClass:"sort-caret descending",class:{active:t.descActive},on:{click:function(e){return e.stopPropagation(),t.handleSortChange("desc")}}})])])},d=[],f={name:"HeaderCellSort",props:{index:{type:Number},prop:{type:String},label:{type:String},column:{type:Object},sort:{type:Object,default:function(){return{}}}},computed:{ascActive:function(){return this.sort.prop===this.prop&&"asc"===this.sort.order},descActive:function(){return this.sort.prop===this.prop&&"desc"===this.sort.order}},methods:{handleSortChange:function(t){this.sort.prop=this.prop,this.sort.order=t,this.$emit("sort-change",this.prop,t)},handleClick:function(){var t="";t=this.ascActive?"desc":this.descActive?"":"asc",this.handleSortChange(t)}},created:function(){console.log("head-comp: created")}},p=f;function h(t,e,r,n,o,i,a,u){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var s=c.render;c.render=function(t,e){return l.call(e),s(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var b=h(p,s,d,!1,null,null,null),v=b.exports,m={name:"vue-tabulation",props:{dataSource:{type:Array,default:function(){return[]}},columns:{type:Array,required:!0},height:{type:Number},border:{type:Boolean,default:!0},hasIndex:{type:Boolean,default:!1},hasCheckbox:{type:Boolean,default:!1},rowClassName:{type:Function},showSummary:{type:Boolean,default:!1},sumText:{type:String,default:"合计"},summaryMethod:{type:Function}},data:function(){return{isMounted:!1,hasScrollableY:!1,hasScrollableX:!1,gridBodyWrapHeight:void 0,colsWidth:[],columnsWidthMap:{},gutterWidth:0,gridBodyScrollLeft:0,gridBodyScrollTop:0,normalizeDataSource:[],checkbox:!0,rowHeight:0,rowsLength:0,sortable:!1,sortProp:"age",sortOrder:"ascending",sort:{prop:"",order:"desc"},sortMethods:null}},computed:{normalizeColumns:function(){var t=this,e=this.columns.map(function(t){return t.headerCellComp||t.headerCellRender||!t.sortable||(t.headerCellComp=v),t});return this.hasCheckbox&&e.unshift({label:"#",prop:"vue-tabulation-checkbox",width:50,align:"center",headerCellRender:function(e){return e("input",{domProps:{type:"checkbox",checked:this.checkbox},on:{change:function(e){t.$emit("grid-checkbox-toggle",e.target.checked)}}})},bodyCellRender:function(e,r){var n=r.value,o=r.row;return e("input",{domProps:{type:"checkbox",checked:n},on:{change:function(e){t.$emit("grid-checkbox-change",e.target.checked,o["vue-tabulation-index"]-1,o)}}})}}),this.hasIndex&&e.unshift({label:"#",prop:"vue-tabulation-index",width:50,align:"center"}),e},fixedNormalizeColumns:function(){var t=this,e=this.normalizeColumns.map(function(e){return!e.headerCellComp&&e.headerCellRender&&(e.headerCellComp=t.headerRenderFactory(e.headerCellRender)),!e.bodyCellComp&&e.bodyCellRender&&(e.bodyCellComp=t.bodyRenderFactory(e.bodyCellRender)),e});return this.normalizeColumns.some(function(t){return"left"===t.fixed||!0===t.fixed})&&(e=this.normalizeColumns.map(function(t){return"vue-tabulation-index"!==t.prop&&"vue-tabulation-checkbox"!==t.prop||(t.fixed="left"),t})),e=l(e).map(function(t,e){return t["vue-tabulation-index"]=e,t}),e},fixedLeftColumns:function(){return this.fixedNormalizeColumns.filter(function(t){return"left"===t.fixed||!0===t.fixed})},fixedRightColumns:function(){return this.fixedNormalizeColumns.filter(function(t){return"right"===t.fixed})},columnsLength:function(){return this.normalizeColumns.length},gridClass:function(){return{"vue-tabulation--border":this.border,"vue-tabulation--scrollable-y":this.hasScrollableY}},bodyWrapStyle:function(){return{height:this.gridBodyWrapHeight?this.gridBodyWrapHeight+"px":void 0}},gridHeaderStyle:function(){return{transform:"translateX(-".concat(this.gridBodyScrollLeft,"px)")}},checkedRows:function(){return this.normalizeDataSource.filter(function(t){return t["vue-tabulation-checkbox"]})},rowsHide:function(){return this.rowHeight?Math.floor(this.gridBodyScrollTop/this.rowHeight):0},rowShowSize:function(){return this.rowHeight?Math.ceil(this.gridBodyWrapHeight/this.rowHeight):0},rowRenderStart:function(){return this.rowsHide-5>0?this.rowsHide-5:0},rowRenderEnd:function(){var t=this.rowRenderStart+this.rowShowSize+10;return t>this.rowsLength?this.rowsLength:t},xnormalizeDataSource:function(){var t=this,e=c(this.dataSource);return this.sort.prop&&this.sort.order&&e.sort(function(e,r){var n="asc"===t.sort.order?1:-1;return(e[t.sort.prop]-r[t.sort.prop])*n}),e.map(function(e,r){return e["vue-tabulation_inner_index"]=r,t.hasIndex&&(e["vue-tabulation-index"]=r+1),t.hasCheckbox&&(e["vue-tabulation-checkbox"]=!1),e})},renderDataSource:function(){var t=this;return this.normalizeDataSource.filter(function(e,r){return r>=t.rowRenderStart&&r<t.rowRenderEnd})},bodyTopPadding:function(){return this.rowRenderStart*this.rowHeight},bodyBottomPadding:function(){return(this.rowsLength-this.rowRenderEnd)*this.rowHeight},summaryData:function(){return this.showSummary?this.summaryMethod?this.summaryMethod({columns:this.fixedNormalizeColumns,data:this.normalizeDataSource}):this.defaultSummaryMethod({columns:this.fixedNormalizeColumns,data:this.normalizeDataSource}):[]}},watch:{height:function(){this.initHeight()},dataSource:{immediate:!0,handler:function(){var t=this;this.$nextTick(function(){t.initHeight(),t.initColumnWidth()}),this.rowsLength=this.dataSource.length,this.normalizeDataSource=this.getNormalizeDataSource()}},sort:{deep:!0,handler:function(){this.normalizeDataSource=this.getNormalizeDataSource()}},checkedRows:{immediate:!0,handler:function(){this.checkedRows.length===this.rowsLength?this.checkbox=!0:this.checkbox=!1}}},methods:{getNormalizeDataSource:function(){var t=this,e=c(this.dataSource);return this.sort.prop&&this.sort.order&&e.sort(function(e,r){var n="asc"===t.sort.order?1:-1;return(e[t.sort.prop]-r[t.sort.prop])*n}),e.map(function(e,r){return e["vue-tabulation_inner_index"]=r,t.hasIndex&&(e["vue-tabulation-index"]=r+1),t.hasCheckbox&&(e["vue-tabulation-checkbox"]=!1),e})},headerRenderFactory:function(t){var e=this;return{name:"table-header-cell",props:{label:{type:String,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},sort:{type:Object,required:!0}},render:function(r){var n=this;return t.bind(n)(r,{label:this.label,index:this.index,column:this.column,sort:this.sort,parent:e})}}},bodyRenderFactory:function(t){var e=this;return{name:"cellBody",props:{value:{required:!0},prop:{type:String,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},row:{type:Object,required:!0}},render:function(r){return t.bind(e)(r,{value:this.value,prop:this.prop,index:this.index,column:this.column,row:this.row})}}},debounceScroll:u()(function(t){this.gridBodyScrollLeft=t.target.scrollLeft,this.gridBodyScrollTop=t.target.scrollTop},25),selectionAllToggle:function(t){console.log("selectionAllToggle"),this.normalizeDataSource=this.normalizeDataSource.map(function(e){return e["vue-tabulation-checkbox"]=void 0===t?!e["vue-tabulation-checkbox"]:Boolean(t),e}),this.$emit("select-all",this.checkedRows),this.$emit("selection-change",this.checkedRows)},selectionToggle:function(t,e){t=Array.isArray(t)?t:[t],this.normalizeDataSource=this.normalizeDataSource.map(function(r,n){return t.includes(n)&&(r["vue-tabulation-checkbox"]=void 0===e?!r["vue-tabulation-checkbox"]:Boolean(e)),r}),this.$emit("select",this.checkedRows),this.$emit("selection-change",this.checkedRows)},selectionChange:function(t,e){this.selectionToggle([e],t)},computeCellClass:function(t){var e={};return["left","center","right"].includes(t.align)&&(e["is-".concat(t.align)]=!0),e},defaultSummaryMethod:function(t){var e=this,r=t.columns,n=t.data,o=function(t){return t.every(function(t){return"boolean"!==typeof t&&!isNaN(Number(t))})};return r.map(function(t,r){var i=n.map(function(e){return e[t.prop]});return 0===r?e.sumText:o(i)?i.reduce(function(t,e){return t+Number(e)},0):""})},initHeight:function(){if(!this.isMounted)return!1;var t=this.$refs.theWrap.offsetHeight,e=this.$refs.headerWrap.offsetHeight,r=0;this.showSummary&&(r=this.$refs.summaryWrap.offsetHeight),this.height?(this.gridBodyWrapHeight=this.height-e-r,this.height<t?this.hasScrollableY=!0:this.hasScrollableY=!1):(this.gridBodyWrapHeight=this.initBodyWrapHeight,this.hasScrollableY=!1)},initColumnWidth:function(){var t=this;if(!this.isMounted)return!1;var e=this.$el,r=e.offsetWidth;this.$refs.bodyCell=this.$refs.bodyCell||[],this.colsWidth=this.$refs.bodyCell.filter(function(e,r){return r<t.columnsLength}).map(function(t){return t.offsetWidth}),this.fixedNormalizeColumns.map(function(e,r){var n=t.$refs.bodyCell[r]&&t.$refs.bodyCell[r].offsetWidth;t.columnsWidthMap[e.prop]=n});var n=this.colsWidth.reduce(function(t,e){return t+e},0);this.gutterWidth=r-n,this.gutterWidth=this.gutterWidth>0?this.gutterWidth:17;var o=this.$refs.body.querySelector(".vue-tabulation-body-tr");o&&(this.rowHeight=o.offsetHeight)}},created:function(){console.log("vue-tabulation-v0.1:created"),this.$on("grid-checkbox-toggle",this.selectionAllToggle),this.$on("grid-checkbox-change",this.selectionChange)},mounted:function(){console.log("vue-tabulation:mounted-start"),this.isMounted=!0,this.initBodyWrapHeight=this.$refs.bodyWrap.offsetHeight,this.initHeight(),this.initColumnWidth(),console.log("vue-tabulation:mounted-end")},activated:function(){this.gridBodyScrollTop&&(this.$refs.bodyWrap.scrollTop=this.gridBodyScrollTop)},updated:function(){console.log("vue-tabulation:updated")}},g=m,y=(r("79cc"),h(g,o,i,!1,null,null,null)),x=y.exports;e["default"]=x},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})["default"]});