UNPKG

h_ui

Version:

A Vue.js 2.0 UI Components Framework

1 lines 81.6 kB
module.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/lib/cjs/",i(i.s=1058)}({0:function(t,e){var i=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},1:function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},10:function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},100:function(t,e,i){i(59),i(76),t.exports=i(41).f("iterator")},102:function(t,e,i){var n=i(9)("iterator"),r=!1;try{var o=[7][n]();o.return=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:i=!0}},o[n]=function(){return s},t(o)}catch(t){}return i}},104:function(t,e,i){t.exports=i(113)},105:function(t,e,i){t.exports=i(114)},1058:function(t,e,i){"use strict";var n=i(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i(1059)),o=i(32);r.default.install=function(t,e){(0,o.setGlobal)(t,e),(0,o.initCutomSizeConfig)(e,r.default,"SimpleGroupsTable"),t.component("HSimpleGroupsTable",r.default),t.component("SimpleGroupsTable",r.default)};var s=r.default;e.default=s},1059:function(t,e,i){"use strict";i.r(e);var n=i(760),r=i(559);for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);var s=i(4),l=Object(s.a)(r.default,n.a,n.b,!1,null,null,null);e.default=l.exports},106:function(t,e,i){t.exports=i(116)},1060:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"TableRenderHeader",functional:!0,props:{render:Function,column:Object,index:Number},render:function(t,e){var i={column:e.props.column,index:e.props.index};return e.props.render(t,i)}};e.default=n},1061:function(t,e,i){"use strict";var n=i(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i(15)),o={methods:{alignCls:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";i.cellClassName&&t.key&&i.cellClassName[t.key]&&(n=i.cellClassName[t.key]);var o=this.sticky&&this.leftSticky.length>0&&this.leftSticky[this.leftSticky.length-1]._index===t._index,s=this.sticky&&this.rightSticky.length>0&&this.rightSticky[0]._index===t._index;return["h-ui-".concat(t.key),(e={},(0,r.default)(e,"".concat(n),n),(0,r.default)(e,"".concat(t.className),t.className),(0,r.default)(e,"".concat(this.prefixCls,"-column-").concat(t.align),t.align),(0,r.default)(e,"".concat(this.prefixCls,"-head-column-").concat(this.headAlgin),this.headAlgin),(0,r.default)(e,"".concat(this.prefixCls,"-body-column-").concat(this.bodyAlgin),this.bodyAlgin),(0,r.default)(e,"".concat(this.prefixCls,"-split-index"),this.splitIndex&&"index"==t.type),(0,r.default)(e,"".concat(this.prefixCls,"-cell-check"),!(!this.cellClick||i._isGroup||!this.cellCheckObj[i._index]||!this.cellCheckObj[i._index][t.key])),(0,r.default)(e,"".concat(this.prefixCls,"-no-ellipsis"),"selection"==t.type),(0,r.default)(e,"".concat(this.prefixCls,"-sticky-left-shadow"),o),(0,r.default)(e,"".concat(this.prefixCls,"-sticky-right-shadow"),s),e)]},setCellWidth:function(t,e,i){var n="";return t.width?n=t.width:this.columnsWidth[t._index]&&(n=this.columnsWidth[t._index].width),"0"===n&&(n=""),n}}};e.default=o},1062:function(t,e,i){"use strict";i.r(e);var n=i(800),r=i(561);for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);var s=i(4),l=Object(s.a)(r.default,n.a,n.b,!1,null,null,null);e.default=l.exports},1063:function(t,e,i){"use strict";i.r(e);var n=i(801),r=i(563);for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);var s=i(4),l=Object(s.a)(r.default,n.a,n.b,!1,null,null,null);e.default=l.exports},1064:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"TableExpand",functional:!0,props:{row:Object,render:Function,index:Number,column:{type:Object,default:null}},render:function(t,e){var i={row:e.props.row,index:e.props.index};return e.props.column&&(i.column=e.props.column),e.props.render(t,i)}};e.default=n},107:function(t,e,i){i(59),i(108),t.exports=i(0).Array.from},108:function(t,e,i){"use strict";var n=i(16),r=i(3),o=i(20),s=i(87),l=i(88),a=i(42),c=i(68),u=i(89);r(r.S+r.F*!i(102)((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,r,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,x=void 0!==g,m=0,v=u(d);if(x&&(g=n(g,p>2?arguments[2]:void 0,2)),null==v||f==Array&&l(v))for(i=new f(e=a(d.length));e>m;m++)c(i,m,x?g(d[m],m):d[m]);else for(h=v.call(d),i=new f;!(r=h.next()).done;m++)c(i,m,x?s(h,g,[r.value,m],!0):r.value);return i.length=m,i}})},11:function(t,e,i){var n=i(5),r=i(14);t.exports=i(2)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},110:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n},t.exports.__esModule=!0,t.exports.default=t.exports},113:function(t,e,i){i(66),t.exports=i(0).Object.getOwnPropertySymbols},114:function(t,e,i){i(115);var n=i(0).Object;t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},115:function(t,e,i){var n=i(13),r=i(46).f;i(58)("getOwnPropertyDescriptor",(function(){return function(t,e){return r(n(t),e)}}))},116:function(t,e,i){i(117),t.exports=i(0).Object.getOwnPropertyDescriptors},117:function(t,e,i){var n=i(3),r=i(118),o=i(13),s=i(46),l=i(68);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=o(t),a=s.f,c=r(n),u={},h=0;c.length>h;)void 0!==(i=a(n,e=c[h++]))&&l(u,e,i);return u}})},118:function(t,e,i){var n=i(44),r=i(36),o=i(12),s=i(1).Reflect;t.exports=s&&s.ownKeys||function(t){var e=n.f(o(t)),i=r.f;return i?e.concat(i(t)):e}},12:function(t,e,i){var n=i(6);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},123:function(t,e,i){var n=i(133),r=i(134),o=i(127),s=i(135);t.exports=function(t){return n(t)||r(t)||o(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},126:function(t,e,i){t.exports=i(129)},127:function(t,e,i){var n=i(64),r=i(110);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?n(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},129:function(t,e,i){i(130),t.exports=i(0).Array.isArray},13:function(t,e,i){var n=i(50),r=i(18);t.exports=function(t){return n(r(t))}},130:function(t,e,i){var n=i(3);n(n.S,"Array",{isArray:i(57)})},133:function(t,e,i){var n=i(126),r=i(110);t.exports=function(t){if(n(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},134:function(t,e,i){var n=i(61),r=i(63),o=i(64);t.exports=function(t){if(void 0!==n&&null!=t[r]||null!=t["@@iterator"])return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},135:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},15:function(t,e,i){var n=i(38);t.exports=function(t,e,i){return e in t?n(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports},153:function(t,e){t.exports=require("h_ui/dist/lib/cjs/Spin.js")},16:function(t,e,i){var n=i(27);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},17:function(t,e,i){var n=i(6);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},18:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},19:function(t,e,i){var n=i(45),r=i(31);t.exports=Object.keys||function(t){return n(t,r)}},2:function(t,e,i){t.exports=!i(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},20:function(t,e,i){var n=i(18);t.exports=function(t){return Object(n(t))}},21:function(t,e){t.exports=require("h_ui/dist/lib/util/tools.js")},22:function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},23:function(t,e){t.exports=!0},24:function(t,e,i){var n=i(6),r=i(1).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},25:function(t,e,i){t.exports=!i(2)&&!i(7)((function(){return 7!=Object.defineProperty(i(24)("div"),"a",{get:function(){return 7}}).a}))},26:function(t,e){t.exports={}},27:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},28:function(t,e){e.f={}.propertyIsEnumerable},29:function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},3:function(t,e,i){var n=i(1),r=i(0),o=i(16),s=i(11),l=i(10),a=function(t,e,i){var c,u,h,d=t&a.F,f=t&a.G,p=t&a.S,g=t&a.P,x=t&a.B,m=t&a.W,v=f?r:r[e]||(r[e]={}),y=v.prototype,b=f?n:p?n[e]:(n[e]||{}).prototype;for(c in f&&(i=e),i)(u=!d&&b&&void 0!==b[c])&&l(v,c)||(h=u?b[c]:i[c],v[c]=f&&"function"!=typeof b[c]?i[c]:x&&u?o(h,n):m&&b[c]==h?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((v.virtual||(v.virtual={}))[c]=h,t&a.R&&y&&!y[c]&&s(y,c,h)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},30:function(t,e,i){var n=i(0),r=i(1),o="__core-js_shared__",s=r[o]||(r[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(23)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},31:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},32:function(t,e){t.exports=require("h_ui/dist/lib/util/global.js")},33:function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},34:function(t,e,i){var n=i(30)("keys"),r=i(22);t.exports=function(t){return n[t]||(n[t]=r(t))}},35:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},36:function(t,e){e.f=Object.getOwnPropertySymbols},37:function(t,e,i){var n=i(5).f,r=i(10),o=i(9)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},38:function(t,e,i){t.exports=i(39)},39:function(t,e,i){i(40);var n=i(0).Object;t.exports=function(t,e,i){return n.defineProperty(t,e,i)}},4:function(t,e,i){"use strict";function n(t,e,i,n,r,o,s,l){var a,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=a):r&&(a=l?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(c.functional){c._injectStyles=a;var u=c.render;c.render=function(t,e){return a.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,a):[a]}return{exports:t,options:c}}i.d(e,"a",(function(){return n}))},40:function(t,e,i){var n=i(3);n(n.S+n.F*!i(2),"Object",{defineProperty:i(5).f})},41:function(t,e,i){e.f=i(9)},42:function(t,e,i){var n=i(29),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},43:function(t,e,i){var n=i(1),r=i(0),o=i(23),s=i(41),l=i(5).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||l(e,t,{value:s.f(t)})}},44:function(t,e,i){var n=i(45),r=i(31).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},45:function(t,e,i){var n=i(10),r=i(13),o=i(67)(!1),s=i(34)("IE_PROTO");t.exports=function(t,e){var i,l=r(t),a=0,c=[];for(i in l)i!=s&&n(l,i)&&c.push(i);for(;e.length>a;)n(l,i=e[a++])&&(~o(c,i)||c.push(i));return c}},46:function(t,e,i){var n=i(28),r=i(14),o=i(13),s=i(17),l=i(10),a=i(25),c=Object.getOwnPropertyDescriptor;e.f=i(2)?c:function(t,e){if(t=o(t),e=s(e,!0),a)try{return c(t,e)}catch(t){}if(l(t,e))return r(!n.f.call(t,e),t[e])}},47:function(t,e){t.exports=require("h_ui/dist/lib/cjs/Icon.js")},48:function(t,e,i){var n=i(12),r=i(74),o=i(31),s=i(34)("IE_PROTO"),l=function(){},a=function(){var t,e=i(24)("iframe"),n=o.length;for(e.style.display="none",i(73).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;n--;)delete a.prototype[o[n]];return a()};t.exports=Object.create||function(t,e){var i;return null!==t?(l.prototype=n(t),i=new l,l.prototype=null,i[s]=t):i=a(),void 0===e?i:r(i,e)}},49:function(t,e){t.exports=require("h_ui/dist/lib/mixins/locale.js")},5:function(t,e,i){var n=i(12),r=i(25),o=i(17),s=Object.defineProperty;e.f=i(2)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},50:function(t,e,i){var n=i(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},51:function(t,e,i){var n=i(3),r=i(18),o=i(7),s=i(35),l="["+s+"]",a=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),u=function(t,e,i){var r={},l=o((function(){return!!s[t]()||"​…"!="​…"[t]()})),a=r[t]=l?e(h):s[t];i&&(r[i]=a),n(n.P+n.F*l,"String",r)},h=u.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(a,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},53:function(t,e,i){t.exports=i(69)},54:function(t,e,i){t.exports=i(11)},55:function(t,e,i){"use strict";var n=i(23),r=i(3),o=i(54),s=i(11),l=i(26),a=i(93),c=i(37),u=i(90),h=i(9)("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",p="values",g=function(){return this};t.exports=function(t,e,i,x,m,v,y){a(i,e,x);var b,_,w,S=function(t){if(!d&&t in j)return j[t];switch(t){case f:case p:return function(){return new i(this,t)}}return function(){return new i(this,t)}},C=e+" Iterator",D=m==p,k=!1,j=t.prototype,T=j[h]||j["@@iterator"]||m&&j[m],$=T||S(m),I=m?D?S("entries"):$:void 0,O="Array"==e&&j.entries||T;if(O&&(w=u(O.call(new t)))!==Object.prototype&&w.next&&(c(w,C,!0),n||"function"==typeof w[h]||s(w,h,g)),D&&T&&T.name!==p&&(k=!0,$=function(){return T.call(this)}),n&&!y||!d&&!k&&j[h]||s(j,h,$),l[e]=$,l[C]=g,m)if(b={values:D?$:S(p),keys:v?$:S(f),entries:I},y)for(_ in b)_ in j||o(j,_,b[_]);else r(r.P+r.F*(d||k),e,b);return b}},559:function(t,e,i){"use strict";i.r(e);var n=i(560),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=r.a},56:function(t,e,i){t.exports=i(77)},560:function(t,e,i){"use strict";var n=i(56),r=i(104),o=i(105),s=i(106),l=i(64),a=i(61),c=i(63),u=i(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var h=u(i(53)),d=u(i(85)),f=u(i(123)),p=u(i(15)),g=u(i(1060)),x=i(21),m=i(84),v=u(i(49)),y=u(i(1061)),b=u(i(1062)),_=u(i(1063)),w=u(i(96)),S=u(i(47)),C=u(i(153));function D(t,e){var i=void 0!==a&&t[c]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return l(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return k(t,e)}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==i.return||i.return()}finally{if(u)throw o}}}}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function j(t,e){var i=n(t);if(r){var s=r(t);e&&(s=s.filter((function(e){return o(t,e).enumerable}))),i.push.apply(i,s)}return i}function T(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?j(Object(i),!0).forEach((function(e){(0,p.default)(t,e,i[e])})):s?Object.defineProperties(t,s(i)):j(Object(i)).forEach((function(e){Object.defineProperty(t,e,o(i,e))}))}return t}var $="h-editgird",I=1,O=1,H={name:"SimpleGroupTable",mixins:[v.default,y.default],components:{Cell:_.default,Checkbox:w.default,renderHeader:g.default,TableTr:b.default,Icon:S.default,Spin:C.default},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},size:{validator:function(t){return(0,x.oneOf)(t,["small","large","default"])}},width:{type:[Number,String]},height:{type:[Number,String],default:400},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},highlightRow:{type:Boolean,default:!1},rowClassName:{type:Function,default:function(){return""}},context:{type:Object},noDataText:{type:String},noFilteredDataText:{type:String},disabledHover:{type:Boolean},canDrag:{type:Boolean,default:!0},canMove:{type:Boolean,default:!1},rowSelect:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},headAlgin:{validator:function(t){return(0,x.oneOf)(t,["left","center","right"])},default:null},bodyAlgin:{validator:function(t){return(0,x.oneOf)(t,["left","center","right"])},default:null},selectOption:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!1},itemHeight:{type:Number,default:40},notSort:{type:Boolean,default:!1},multiLevel:{type:Array,default:null},notAdaptive:{type:Boolean,default:!1},defaultFocusIndex:Number,scrollTopSet:{type:Number,default:0},toScrollTop:{type:Boolean,default:!1},splitIndex:{type:Boolean,default:!1},lastColWidth:{type:[Number,String],default:80},cellClick:{type:Boolean,default:!1},loadData:{type:Function},minColWidth:{type:Number,default:100},summationData:{type:Array,default:function(){return[]}},summationRender:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1},customSwitch:{type:Boolean,default:!1},customItemHeight:{type:Number}},data:function(){return{ready:!1,tableWidth:0,dragWidth:0,initWidth:0,columnsWidth:{},prefixCls:$,compiledUids:[],objData:this.makeObjData(),rebuildData:[],cloneColumns:this.makeColumns(),showSlotHeader:!0,showSlotFooter:!0,bodyHeight:0,bodyRealHeight:0,scrollBarWidth:(0,x.getScrollBarSize)(),scrollBarHeight:(0,x.getScrollBarSizeHeight)(),currentContext:this.context,cloneData:[],resizeProxyVisible:!1,moveProxyVisible:!1,showScroll:!1,headerRealHeight:0,visibleCount:50,start:0,end:50,visibleData:[],allclick:!1,buttomNum:null,topNum:null,shiftSelect:[],ctrlSelect:[],dragging:!1,draggingColumn:!1,moving:!1,movingColumn:null,isScrollX:!1,isScrollY:!1,focusIndex:-1,curPageFirstIndex:0,isFocusSelect:!0,isCurrent:!0,privateToScrollTop:!1,selectType:!1,cloumnsLeft:[],curShiftIndex:null,realRebuildData:[],hideData:{},scrollLeft:0,cellCheckObj:{},curCellCheck:[],hoverIndex:-1,scheduledAnimationFrame:!1,animationFrame:null,rootNodeLis:[],lastScrollTop:0,cursorIndex:0,sumMarginLeft:0}},computed:{innerItemHeight:function(){return this.customSwitch?this.customItemHeight:this.itemHeight},summationStyle:function(){return{marginLeft:"".concat(0-this.sumMarginLeft,"px")}},isSummation:function(){return this.summationData.length>0},fixedSummationClass:function(){return["".concat($,"-fixed-summation"),"".concat($,"-fixed-body-shadow")]},hasLeftFixed:function(){return this.columns.some((function(t){return t.fixed&&"left"===t.fixed}))},titleStyle:function(){var t={paddingLeft:"15px",borderRight:"1px solid #DCE1E7",borderBottom:"1px solid #DCE1E7"};return t.width=this.tableWidth+"px",t},tdStyle:function(){var t={},e="";return this.innerItemHeight&&(e=this.innerItemHeight,t.height="".concat(e,"px")),t},groupStyle:function(){return{paddingLeft:this.scrollLeft+"px"}},isNotShowCurTh:function(){return!(!this.multiLevel||0==this.multiLevel.length)&&this.multiLevel.some((function(t,e){return"array"!=(0,x.typeOf)(t)?t.rows&&Number(t.rows)>1:!!(t&&t.length>0)&&t.some((function(t,e){return t.rows&&Number(t.rows)>1}))}))},leftMultiLevel:function(){if(!this.multiLevel||0==this.multiLevel.length)return[];var t=[];return t[0]=[],this.multiLevel.forEach((function(e,i){if("array"!=(0,x.typeOf)(e))e.hiddenCol||"false"==e.hiddenCol||t[0].push(e);else{var n=[];e.forEach((function(t,e){!t.hiddenCol&&"false"!=t.hiddenCol&&t.fixed&&"left"===t.fixed&&n.push(t)})),n.push({}),t.push(n)}})),t.length>0?t:[]},groupColpan:function(){return this.columns&&this.columns.length>0?this.columns[0]&&"selection"==this.columns[0].type?this.columns.length-1:this.columns.length:0},multiData:function(){if(!this.multiLevel||0==this.multiLevel.length)return[];var t=[];return t[0]=[],this.multiLevel.forEach((function(e,i){if("array"!=(0,x.typeOf)(e))e.hiddenCol||"false"==e.hiddenCol||t[0].push(e);else{var n=[];e.forEach((function(t,e){t.hiddenCol||"false"==t.hiddenCol||n.push(t)})),t.push(n)}})),t.length>0?t:[]},isSelectAll:function(){var t=!0;if(!this.visibleData.length||!this.objData[0])return!1;for(var e=0;e<this.visibleData.length;e++)if(!this.objData[this.visibleData[e]._index]._isChecked&&!this.objData[this.visibleData[e]._index]._isDisabled){t=!1;break}if(t&&!this.allclick){this.allclick=!1;for(var i=0;i<this.rebuildData.length;i++)if(!this.objData[this.rebuildData[i]._index]._isChecked&&!this.objData[this.rebuildData[i]._index]._isDisabled){t=!1;break}return t}return t},loadingText:function(){return this.t("i.table.loadingText")},localeNoDataText:function(){return void 0===this.noDataText?this.t("i.table.noDataText"):this.noDataText},localeNoFilteredDataText:function(){return void 0===this.noFilteredDataText?this.t("i.table.noFilteredDataText"):this.noFilteredDataText},wrapClasses:function(){var t;return["".concat($,"-wrapper"),(t={},(0,p.default)(t,"".concat($,"-hide"),!this.ready),(0,p.default)(t,"".concat($,"-with-header"),this.showSlotHeader),(0,p.default)(t,"".concat($,"-with-footer"),this.showSlotFooter),t)]},classes:function(){var t;return["".concat($),(t={},(0,p.default)(t,"".concat($,"-").concat(this.size),!!this.size),(0,p.default)(t,"".concat($,"-border"),this.border),(0,p.default)(t,"".concat($,"-stripe"),this.stripe),(0,p.default)(t,"".concat($,"-with-fixed-top"),!!this.height),t)]},fixedHeaderClasses:function(){return["".concat($,"-fixed-header"),(0,p.default)({},"".concat($,"-fixed-header-with-empty"),!this.rebuildData.length)]},fixedBodyClass:function(){return["".concat($,"-fixed-body"),(0,p.default)({},"".concat($,"-fixed-body-shadow"),0!=this.data.length)]},styles:function(){var t={};return this.width&&(t.width="".concat(this.width,"px")),t},tableStyle:function(){var t={},e=this.isScrollY?this.scrollBarWidth:0;if(0!==this.tableWidth){var i="";i=0===this.bodyHeight||0==this.data.length?this.tableWidth:this.tableWidth-e,t.width="".concat(i,"px")}return t},headStyles:function(){var t=T({},this.tableStyle),e=(0,h.default)(this.tableStyle.width,10);return t.width="".concat(e,"px"),t},fixedTableStyle:function(){var t={},e=0;return this.leftFixedColumns.forEach((function(t){t.fixed&&"left"===t.fixed&&(e+=t._width)})),t.width="".concat(e,"px"),t},fixedRightTableStyle:function(){var t={},e=0;return this.rightFixedColumns.forEach((function(t){t.fixed&&"right"===t.fixed&&(e+=t._width)})),this.height&&this.height<this.bodyRealHeight?(t.marginRight="".concat(this.scrollBarWidth,"px"),this.showScroll=!0):e=0==e?0:e+this.scrollBarWidth,t.width="".concat(e,"px"),t},fixedRightPatchStyle:function(){var t={},e=this.scrollBarWidth,i=this.headerRealHeight,n=(0,h.default)((0,x.getStyle)(this.$refs.title,"height"),10)||0;return t.width="".concat(e,"px"),t.height="".concat(i,"px"),t.top="".concat(n,"px"),t},bodyStyle:function(){var t={};return 0!==this.bodyHeight&&(t.height="".concat(this.bodyHeight,"px")),t},fixedBodyStyle:function(){var t={};if(0!==this.bodyHeight){var e=this.bodyHeight-this.scrollBarHeight;this.tableWidth<this.initWidth&&(e=this.bodyHeight-1),t.height="".concat(e,"px")}return t},textStyle:function(){var t={};t.width=0!=this.initWidth?this.initWidth+"px":"100%";var e=this.bodyHeight;t.height=this.height?Number(e-this.scrollBarHeight)+"px":null,t.lineHeight=this.height?Number(e-this.scrollBarHeight)+"px":null;return T(T({},t),{position:"absolute","text-align":"center","overflow-y":"auto"})},tipBodyHeight:function(){var t=0;return 0!==this.bodyHeight&&(t=this.bodyHeight),0!==this.tableWidth&&0!=this.initWidth&&(t=this.tableWidth>this.initWidth?t-this.scrollBarHeight:t),t},leftFixedColumns:function(){var t=[],e=[];return this.cloneColumns.forEach((function(i){i.fixed&&"left"===i.fixed?t.push(i):e.push(i)})),t.concat(e)},isLeftFixed:function(){return!this.sticky&&this.columns.some((function(t){return t.fixed&&"left"===t.fixed}))},isRightFixed:function(){return this.columns.some((function(t){return t.fixed&&"right"===t.fixed}))},contentHeight:function(){var t=this;return this.$nextTick((function(){if(t.$refs.tbody&&t.data&&0!==t.data.length){var e=t.$refs.tbody,i=e.parentElement;t.isScrollX=i.offsetWidth<e.offsetWidth+(t.isScrollY?t.scrollBarWidth:0),t.isScrollY=!!t.bodyHeight&&t.bodyHeight-(t.isScrollX?t.scrollBarWidth:0)<t.contentHeight}else t.isScrollY=!1})),this.realRebuildData.length*this.innerItemHeight}},methods:{columnsStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.sticky)return e?{position:"static"}:null;var i={"z-index":2};return this.sticky&&t.fixed&&"left"===t.fixed&&(i.position="sticky",i.left=t._stickyOffset+"px"),this.sticky&&t.fixed&&"right"===t.fixed&&(i.position="sticky",i.right=e&&this.isScrollY?t._stickyOffset+this.scrollBarWidth+"px":t._stickyOffset+"px"),e||(i=T(T({},i),this.tdStyle)),i},getSummationHeight:function(){return this.isSummation&&this.$refs.summation?this.$refs.summation.clientHeight:0},showArrow:function(t){return(null!=t.childNum||t.children&&0!=t.children.length)&&!t.leaf||"loading"in t&&!t.loading&&!t.leaf&&this.loadData},handleExpandByIndex:function(t,e){for(var i,n=0;n<this.realRebuildData.length;n++){var r=this.realRebuildData[n];if(r&&r._index==t){i=r;break}}i&&this.objData[i._index]._isExpand!==e&&this.handleToggleExpand(i)},handleExpandAll:function(){this.realRebuildData=this.rebuildData;var t=this.$refs.body.scrollTop;this.updateVisibleData(t)},handleHideAll:function(){this.realRebuildData=this.rootNodeList;var t=this.$refs.body.scrollTop;this.updateVisibleData(t)},indentCls:function(t){var e={};return e.marginLeft=20*(t-1)+"px",e},iconClass:function(t){return["".concat(this.prefixCls,"-icon-click"),(0,p.default)({},"".concat(this.prefixCls,"-icon-click-expanded"),this.objData[t._index]._isExpand)]},handleToggleExpand:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t.childNum||0!==t.childNum){var n;this.realRebuildData.some((function(e,i){return e._rowIndex===t._rowIndex&&(n=i,!0)}));var r=this.$refs.body.scrollTop;if(this.objData[t._index]._isExpand){var o=this.realRebuildData.length;this.realRebuildData.slice(n,this.realRebuildData.length).some((function(i,n){return i._rowIndex.indexOf(t._rowIndex)>=0?(e.objData[i._index]._isExpand=!1,i.expand=!1,!1):(o=n,!0)})),void 0!==n&&this.realRebuildData.splice(n+1,o-1)}else{var s=t.childNum,l=[],a=Boolean(t.autoLoad);if(i&&a&&!t._isExpand&&"loading"in t&&!t.loading&&this.loadData)return;t.children&&0!=t.children.length?t.children&&t.children.length>0?(t.expand?this.close(t._index,t):t._loaded&&this.open(t._index,t),this.objData=this.makeObjData(),this.loadTemplate(t,s,n)):this.loadTemplate(t,s,n):this.loadData&&"loading"in t&&!t.loading&&(!t.expand&&!i||t.expand&&a&&i)?(this.$set(this.rebuildData[t._index],"loading",!0),this.loadData(t,(function(i){var o,a=t._index;(e.$set(e.rebuildData[a],"loading",!1),i.length)&&(t._loaded=!0,t.expand=!0,t.childNum=i.length,s=i.length,e.$set(e.rebuildData[a],"children",i),e.cursorIndex=a,e.expandBuildTree(t,n),e.cursorIndex=0,e.objData=e.makeObjData(),e.objData[t._index]._isExpand=!0,e.rebuildData.slice(t._index,e.rebuildData.length).some((function(e,i){return e._parentIndex==t._rowIndex?(l.push(e),s--,!1):0==s})),(o=e.realRebuildData).splice.apply(o,[n+1,0].concat((0,f.default)(l))),l=void 0,s=void 0,e.updateVisibleData(r))}))):this.loadTemplate(t,s,n)}this.updateVisibleData(r),this.$emit("on-expand",t,this.objData[t._index]._isExpand),this.$nextTick((function(){e.handleResize()}))}},open:function(t,e){var i=this;e.children&&(e.expand=!0,e.children.forEach((function(e,n){e.expand=!0,e.children&&i.open(t+n+1,e)})))},close:function(t,e){var i=this;e.children&&(e.expand=!1,e.children.forEach((function(e,n){e.expand=!1,e.children&&i.close(t+n+1,e)})))},loadTemplate:function(t,e,i){var n,r=e,o=[],s=this.$refs.body.scrollTop;this.objData[t._index]._isExpand=!0,this.rebuildData.slice(t._index,this.rebuildData.length).some((function(e,i){return e._parentIndex==t._rowIndex?(o.push(e),r--,!1):0==r})),(n=this.realRebuildData).splice.apply(n,[i+1,0].concat((0,f.default)(o))),o=void 0,r=void 0,this.updateVisibleData(s)},expandBuildTree:function(t,e){var i=this,n=t._level+1;t.children&&t.children.length>0&&!t.leaf&&t.children.forEach((function(e,r){i.cursorIndex++,i.rebuildData.splice(i.cursorIndex,0,e),i.$set(i.rebuildData[i.cursorIndex],"_parentIndex",t._rowIndex),i.$set(i.rebuildData[i.cursorIndex],"_rowIndex",t._rowIndex+"_"+r),i.$set(i.rebuildData[i.cursorIndex],"_level",n),i.$set(i.rebuildData[i.cursorIndex],"expand",!0),i.$set(i.rebuildData[i.cursorIndex],"_loaded",!0),i.loadData&&i.$set(i.rebuildData[i.cursorIndex],"checked",t.checked||e.checked),e.children&&e.children.length>0?(i.$set(i.rebuildData[i.cursorIndex],"_loaded",!0),i.expandBuildTree(e,i.cursorIndex)):i.$set(i.rebuildData[i.cursorIndex],"expand",!0)}))},calcCheckboxSize:function(t){return t||"large"},toggleIsCurrent:function(t){this.isCurrent=t},cellClasses:function(t){return["".concat(this.prefixCls,"-cell")]},aliCls:function(t){var e;return[(e={},(0,p.default)(e,"".concat(t.className),t.className),(0,p.default)(e,"".concat(this.prefixCls,"-column-").concat(t.align),t.align),e)]},rowClsName:function(t){return this.rowClassName(1111,t)},classesTd:function(t){return["".concat(this.prefixCls,"-cell"),(0,p.default)({},"".concat(this.prefixCls,"-cell-ellipsis"),t.ellipsis&&"false"!=t.ellipsis)]},rowChecked:function(t){return!!this.objData[t]&&this.objData[t]._isChecked},rowDisabled:function(t){return!!this.objData[t]&&this.objData[t]._isDisabled},changeWidth:function(t,e,i){var n=this,r=this,o=this.cloneColumns.length-1,s=0;this.cloneColumns.forEach((function(n,l){n.key==e&&(r.$set(n,"width",t),r.$set(n,"_width",t)),l!=o||r.notAdaptive||(r.$set(n,"width",i),r.$set(n,"_width",i));var a=n.width||n._width;s+=a})),0==this.rebuildData.length||r.notAdaptive||(s+=this.scrollBarWidth),this.tableWidth=s,this.$nextTick((function(){n.$emit("on-drag",t,e),n.handleResize()}))},getLeftWidth:function(){var t=this;this.$nextTick((function(){for(var e=t.cloneColumns,i=0;i<e.length;i++){for(var n=0,r=0;r<i;r++)n+=e[r]._width;t.cloumnsLeft[i]=n}}))},mousedown:function(t,e,i){var n=this;if(!this.$isServer&&e&&(this.canDrag||this.canMove)){var r=this;if(this.draggingColumn){this.dragging=!0,this.resizeProxyVisible=!0;var o=this,s=o.$el.getBoundingClientRect().left,l=this.$el.querySelector("th.h-ui-".concat(e.key)),a=l.getBoundingClientRect(),c=a.left-s+30,u=this.findObj(t,"TR").lastChild.offsetWidth,d=this.$el.offsetWidth,f=this.tableWidth;(0,x.addClass)(l,"noclick"),this.dragState={startMouseLeft:t.clientX,startLeft:a.right-s,startColumnLeft:a.left-s,tableLeft:s};var p=this.$refs.resizeProxy;p.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var g=function(t){var e=t.clientX-n.dragState.startMouseLeft,i=n.dragState.startLeft+e;p.style.left=Math.max(c,i)+"px"};document.addEventListener("mousemove",g),document.addEventListener("mouseup",(function t(){if(r.dragging){var i=r.dragState,s=i.startColumnLeft,a=i.startLeft,c=(0,h.default)(p.style.left,10),m=c-s,v=c-a;v>=0?u=u-v>=n.lastColWidth?u-v:n.lastColWidth:f>=d?f+v<=d&&(u=u+d-f-v-1):u-=v,0!==o.bodyHeight&&(u-=(0,x.getScrollBarSize)()),r.changeWidth(m,e.key,u),document.body.style.cursor="",r.dragging=!1,r.draggingColumn=!1,r.dragState={},o.resizeProxyVisible=!1}document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",t),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){(0,x.removeClass)(l,"noclick")}),0)}))}if(this.movingColumn){this.moving=!0,(0,x.addClass)(document.body,"useSelect"),this.moveProxyVisible=!0;var m=this.findObj(t,"TH").cloneNode(!0);m.width=e._width,(0,x.addClass)(m,"move-proxy-th");var v=this.$el,y=v.getBoundingClientRect().left,b=v.getBoundingClientRect().top,_=this.$el.querySelector("th.h-ui-".concat(e.key)),w=_.getBoundingClientRect();(0,x.addClass)(_,"noclick"),this.moveState={startMouseLeft:t.clientX,startLeft:w.left-y-1,tableLeft:y};var S=this.$refs.moveProxy,C=this.$refs.resizeProxy;S.style.left=this.moveState.startLeft+"px",S.style.top=t.clientY-b-20+"px",S.appendChild(m);var D,k=Number(i),j=function(t){n.resizeProxyVisible=!0;var o=t.clientX-r.moveState.startMouseLeft,s=r.moveState.startLeft+o;if(o>0){var l=r.cloumnsLeft[i]+o;for(var a in l+=e._width,r.cloumnsLeft)l>r.cloumnsLeft[a]+30&&(k=Number(a));D=r.$el.querySelectorAll("th")[k].getBoundingClientRect().right-y-1}if(o<0){var c=r.cloumnsLeft[i]+o;for(var u in r.cloumnsLeft)c>r.cloumnsLeft[u]-50&&(k=Number(u));D=r.$el.querySelectorAll("th")[k].getBoundingClientRect().left-y-1}S.style.left=s+"px",S.style.top=t.clientY-b-20+"px",C.style.left=D+"px"},T=function t(){r.moving&&(r.sortCloumn(i,k,e._index),document.body.style.cursor="",(0,x.removeClass)(document.body,"useSelect"),r.moving=!1,r.movingColumn=null,r.moveState={},S.removeChild(m),r.resizeProxyVisible=!1,r.moveProxyVisible=!1),document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",t),setTimeout((function(){(0,x.removeClass)(_,"noclick")}),0)};document.addEventListener("mousemove",j),document.addEventListener("mouseup",T),this.$once("hook:beforeDestory",(function(){document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",T)}))}}},mousemove:function(t,e,i){if(this.canDrag&&e&&!(this.splitIndex&&"index"==e.type||e.children&&e.children.length>0)){var n=this.findObj(t,"TH");this.canDrag&&this.moveDrag(t,n,e),this.canMove&&this.moveMove(t,n,e)}},moveDrag:function(t,e,i){if(!this.dragging){var n=e.getBoundingClientRect(),r=document.body.style;n.width>12&&n.right-t.pageX<8?(r.cursor="col-resize",this.draggingColumn=!0):this.dragging||(r.cursor="",this.draggingColumn=!1)}},moveMove:function(t,e,i){if(!this.moving&&!this.dragging){var n=e.getBoundingClientRect(),r=document.body.style;n.right-t.pageX>8&&n.right-t.pageX<n.width&&!i.fixed?(r.cursor="pointer",this.movingColumn=i):this.moving||(this.canDrag||(r.cursor=""),this.movingColumn=null)}},mouseout:function(){this.$isServer||(document.body.style.cursor="")},sortCloumn:function(t,e,i){if(!this.cloneColumns[e].fixed){var n=this.cloneColumns[t];this.cloneColumns.splice(t,1),this.cloneColumns.splice(e,0,n),this.$emit("on-move",i,e)}},findObj:function(t,e){for(var i=t.target;i&&i.tagName!=e;)i=i.parentElement;return i},isShowScrollBar:function(){if(this.$refs.tbody&&this.data&&0!==this.data.length){var t=this.$refs.tbody,e=t.parentElement,i=e.parentElement,n=t.clientHeight,r=i.clientHeight;this.isScrollY=n>r;var o=t.clientWidth,s=e.clientWidth;this.isScrollX=o>s}else if(this.isScrollY=!1,this.$refs.thead&&this.$refs.header){var l=this.$refs.thead,a=this.$refs.header,c=l.offsetWidth,u=a?a.offsetWidth:0;this.isScrollX=c>u}},handleResize:function(){var t=this;this.$nextTick((function(){t.scrollBarHeight=(0,x.getScrollBarSizeHeight)(),t.$refs.content.style.transform="translate3d(0, ".concat(t.$refs.body.scrollTop,"px, 0)"),t.$refs.leftContent&&(t.$refs.leftContent.style.transform="translate3d(0, ".concat(t.$refs.body.scrollTop,"px, 0)")),t.initWidth=(0,h.default)((0,x.getStyle)(t.$refs.tableWrap,"width"),10)||0;var e=t.cloneColumns;if(0!=t.cloneColumns.length){var i=!t.columns.some((function(t){return!t.width&&0!==t.width}));t.tableWidth=i?t.columns.map((function(t){return t.width})).reduce((function(t,e){return t+e})):(0,h.default)((0,x.getStyle)(t.$el,"width"),10)-1,t.columnsWidth={},t.$nextTick((function(){if(e.length<=0)return!1;var i=t.$el.offsetWidth-1,n={},r=0,o=[],s=[],l=[],a=[];t.isShowScrollBar(),t.cloneColumns.forEach((function(e){e.width?o.push(e):(s.push(e),e.minWidth||(e.minWidth=t.minColWidth),r+=e.minWidth,e.maxWidth?l.push(e):a.push(e)),e._width=null}));var c=i-o.map((function(t){return t.width})).reduce((function(t,e){return t+e}),0)-r-(t.isScrollY?t.scrollBarWidth:0)-1,u=s.length,d=0;c>0&&u>0&&(d=(0,h.default)(c/u,10));for(var f=0;f<t.cloneColumns.length;f++){var p=t.cloneColumns[f],g=d+(p.minWidth?p.minWidth:0);p.width?g=p.width:p._width?g=p._width:(p.minWidth>g?g=p.minWidth:p.maxWidth<g&&(g=p.maxWidth),c>0?(c-=g-(p.minWidth?p.minWidth:0),d=--u>0?(0,h.default)(c/u,10):0):d=0),p._width=g,n[p._index]={width:g}}if(c>0){u=a.length,d=(0,h.default)(c/u,10);for(var m=0;m<a.length;m++){var v=a[m],y=v._width+d;u>1?(u--,c-=d,d=(0,h.default)(c/u,10)):d=0,v._width=y,n[v._index]={width:y}}}t.tableWidth=t.cloneColumns.map((function(t){return t._width})).reduce((function(t,e){return t+e}),0)+(t.isScrollY?t.scrollBarWidth:0),t.columnsWidth=n,t.handleStickyColumnOffset(),t.$nextTick((function(){t.isShowScrollBar()})),t.bodyRealHeight=(0,h.default)((0,x.getStyle)(t.$refs.tbody.$el,"height"),10)||0,t.headerRealHeight=(0,h.default)((0,x.getStyle)(t.$refs.header,"height"),10)||0,t.fixedHeader()}))}}))},handleStickyColumnOffset:function(){var t=this;this.sticky&&function(){for(var e=0,i=t.rightSticky.map((function(t){return t._width})).reduce((function(t,e){return t+e}),0),n=function(n){if(!t.cloneColumns[n].fixed)return"continue";"left"===t.cloneColumns[n].fixed&&t.leftSticky.some((function(i){i._index===t.cloneColumns[n]._index&&(e+=0===n?0:t.cloneColumns[n-1]._width,t.cloneColumns[n]._stickyOffset=e)})),"right"===t.cloneColumns[n].fixed&&t.rightSticky.some((function(e){e._index===t.cloneColumns[n]._index&&(i-=t.cloneColumns[n]._width,t.cloneColumns[n]._stickyOffset=i)}))},r=0;r<t.cloneColumns.length;r++)n(r)}()},getshiftSelect:function(t){switch(this.curShiftIndex=t,this.shiftSelect.length){case 0:this.shiftSelect[0]=t;break;case 1:this.$set(this.shiftSelect,0,Math.min(this.shiftSelect[0],t)),this.$set(this.shiftSelect,1,Math.max(this.shiftSelect[0],t));break;case 2:t<this.shiftSelect[0]&&this.$set(this.shiftSelect,0,t),t>this.shiftSelect[1]&&this.$set(this.shiftSelect,1,t);break;default:this.shiftSelect=[]}},getctrlSelect:function(t){var e=this,i=this.ctrlSelect.indexOf(t);-1==i?(this.ctrlSelect.push(t),this.objData[t]._isChecked=!0):(this.ctrlSelect.splice(i,1),this.objData[t]._isHighlight=!1,this.objData[t]._isChecked=!1),this.$nextTick((function(){e.$emit("on-selection-change",e.getSelection(),e.getSelection(!0),t)}))},handleClick:function(){},handleClickTr:function(t,e,i){t.shiftKey&&e?this.getshiftSelect(e):i?this.shiftSelect=[]:(this.shiftSelect=[],this.shiftSelect[0]=e)},handleMouseIn:function(t){this.disabledHover||this.objData[t]._isHover||(this.hoverIndex=t)},handleMouseOut:function(t){this.disabledHover||(this.hoverIndex=-1)},highlightCurrentRow:function(t){var e=this;if(this.highlightRow){var i=!(!this.objData[t]||!this.objData[t].hasOwnProperty("_isHighlight"))&&this.objData[t]._isHighlight;for(var n in this.objData)this.objData.hasOwnProperty(n)&&(this.objData[n]._isChecked=!1,this.objData[n]._isHighlight&&this.objData[t].hasOwnProperty("_isHighlight")&&(this.objData[n]._isHighlight=!1));i&&!this.selectOption?(this.objData[t]._isHighlight=!1,this.objData[t]._isChecked=!1,this.$nextTick((function(){e.$emit("on-current-change",null,null)}))):(this.objData[t]&&this.objData[t].hasOwnProperty("_isHighlight")&&(this.objData[t]._isHighlight=!0),this.objData[t]&&this.objData[t].hasOwnProperty("_isChecked")&&(this.objData[t]._isChecked=!0),this.$nextTick((function(){e.rebuildData[t]?e.$emit("on-current-change",JSON.parse((0,d.default)(e.rebuildData[t])),t):e.$emit("on-current-change",null,null)}))),this.$nextTick((function(){e.$emit("on-selection-change",e.getSelection(),e.getSelection(!0),t)}))}},clickCurrentRowTr:function(t,e){this.cellClick||(!t.shiftKey&&!t.ctrlKey||this.highlightRow&&!this.selectType?(this.rowSelect?this.toggleSelect(e):this.clickCurrentRow(e),this.objData[e]._isHighlight?(this.shiftSelect=[],this.ctrlSelect=[],this.shiftSelect[0]=e,this.ctrlSelect.push(e)):(this.shiftSelect=[],this.ctrlSelect=[])):t.shiftKey?(window.getSelection()?window.getSelection().removeAllRanges():document.selection.empty(),this.getshiftSelect(e)):this.getctrlSelect(e))},dblclickCurrentRowTr:function(t){this.rowSelect||this.dblclickCurrentRow(t)},clickCurrentRow:function(t){var e=this;this.rowSelect||(this.focusIndex=t,this.highlightCurrentRow(t)),this.$nextTick((function(){e.rebuildData[t]?e.$emit("on-row-click",[JSON.parse((0,d.default)(e.rebuildData[t])),t]):e.$emit("on-current-change",null,null)}))},dblclickCurrentRow:function(t){var e=this;this.rowSelect||(this.focusIndex=t,this.highlightCurrentRow(t)),this.$nextTick((function(){e.$emit("on-row-dblclick",JSON.parse((0,d.default)(e.rebuildData[t])),t)}))},getSelection:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];for(var i in this.objData)this.objData[i]._isChecked&&e.push((0,h.default)(i,10));return t?e:JSON.parse((0,d.default)(this.rebuildData.filter((function(t,i){return e.indexOf(i)>-1}))))},toggleSelect:function(t){var e,i=this;if(this.allclick=!1,this.objData[t])if(e=!this.objData[t]._isChecked,this.objData[t]._isChecked=e,e||(this.objData[t]._isHighlight=!1),this.objData[t]&&this.objData[t].childNum)for(var n=1;n<=this.objData[t].childNum;n++)this.objData[t+n]._isChecked=e,e||(this.objData[t]._isHighlight=!1);else if("1"!=this.rebuildData[t]._level||this.objData[t].childNum){if(this.objData[t]&&this.rebuildData[t]._rowIndex.indexOf("node")>=0){for(var r=this.rebuildData[t]._rowIndex.split("_"),o=2==r.length?t:t-Number(r[r.length-1])-1,s=!0,l=1;l<=this.objData[o].childNum;l++)if(!this.objData[o+l]._isChecked){s=!1;break}this.objData[o]._isChecked!=s&&(this.objData[o]._isChecked=s)}}else this.objData[t]._isChecked=e;this.$nextTick((function(){var n=i.getSelection();i.$emit(e?"on-select":"on-select-cancel",n,JSON.parse((0,d.default)(i.rebuildData[t]))),i.$emit("on-selection-change",n,i.getSelection(!0),t)}))},clearAllRow:function(){for(var t in this.objData)this.objData[t]._isHighlight&&(this.objData[t]._isHighlight=!1)},toggleMached:function(t){var e=this;for(var i in this.objData)this.objData.hasOwnProperty(i)&&(this.objData[i]._isMatched=!1);if(0==t.length)return!1;t.forEach((function(t){e.objData[t]._isMatched=!0}))},itemSelect:function(t,e){if(this.rebuildData[t]){var i=this.rebuildData[t]._index;this.objData[i]._isHighlight=!1,this.objData[i]._isDisabled||(this.objData[i]._isChecked=e)}},selectAll:function(t){var e=this;this.allclick=!0;var i,n=D(this.visibleData);try{for(n.s();!(i=n.n()).done;){var r=i.value;this.objData[r._index]._isHighlight=!1,this.objData[r._index]._isDisabled||(this.objData[r._index]._isChecked=t)}}catch(t){n.e(t)}finally{n.f()}setTimeout((function(){var i,n=D(e.rebuildData);try{for(n.s();!(i=n.n()).done;){var r=i.value;e.objData[r._index]._isHighlight=!1,e.objData[r._index]._isDisabled||(e.objData[r._index]._isChecked=t)}}catch(t){n.e(t)}finally{n.f()}e.$nextTick((function(){var t=e.getSelection();e.$emit("on-select-all",t),e.$emit("on-selection-change",t,e.getSelection(!0),null)}))}),0)},selectRange:function(){var t=this;setTimeout((function(){for(var e=t.shiftSelect[0];e<=t.shiftSelect[1];e++)t.objData[e]._isHighlight=!1,t.objData[e]._isDisabled||(t.objData[e]._isChecked=!0);t.$emit("on-selection-change",t.getSelection(),t.getSelection(!0),t.curShiftIndex)}))},fixedHeader:function(){var t=this;this.height?this.$nextTick((function(){var e=(0,h.default)((0,x.getStyle)(t.$refs.title,"height"),10)||0;e>0&&(t.$refs.leftF&&(t.$refs.leftF.style.marginTop=e+"px"),t.$refs.rightF&&(t.$refs.rightF.style.marginTop=e+"px"));var i=t.headerRealHeight||(0,h.default)((0,x.getStyle)(t.$refs.header,"height"),10)||0,n=(0,h.default)((0,x.getStyle)(t.$refs.footer,"height"),10)||0;t.bodyHeight=t.height-e-i-n})):this.bodyHeight=0},handleBodyScroll:function(t){if(window.requestAnimationFrame)this.updateVisibleAnimate(t);else{this.privateToScrollTop=!1;var e=t.target.scrollTop;this.curPageFirstIndex=Math.floor(e/this.innerItemHeight),this.$refs.header.scrollLeft=t.target.scrollLeft,this.scrollLeft=this.isLeftFixed?t.target.scrollLeft:0,this.isLeftFixed&&(this.$refs.fixedBody.scrollTop=e),this.buttomNum=(0,x.getBarBottomS)(t.target,this.bodyHeight,this.contentHeight,this.scrollBarHeight,this.isScrollX);var i=Math.floor(e/this.innerItemHeight)*this.innerItemHeight;if(this.lastScrollTop==t.target.scrollTop)return;this.updateVisibleDataDebounce(!1)(e),this.lastScrollTop=e,this.$refs.content.style.transform="translate3d(0, ".concat(i,"px, 0)"),this.$refs.leftContent&&(this.$refs.leftContent.style.transform="translate3d(0, ".concat(i,"px, 0)"))}},updateVisibleAnimate:function(t){var e=this;this.scheduledAnimationFrame||(this.scheduledAnimationFrame=!0,this.animationFrame=window.requestAnimationFrame((function(i){e.scheduledAnimationFrame=!1,e.privateToScrollTop=!1;var n=t.target.scrollTop;if(e.curPageFirstIndex=Math.floor(n/e.innerItemHeight),e.$refs.header.scrollLeft=t.target.scrollLeft,e.sumMarginLeft=t.target.scrollLeft,e.isLeftFixed&&(e.$refs.fixedBody.scrollTop=n),e.buttomNum=(0,x.getBarBottomS)(t.target,e.bodyHeight,e.contentHeight,e.scrollBarHeight,e.isScrollX),e.lastScrollTop!=t.target.scrollTop){var r=Math.floor(n/e.innerItemHeight)*e.innerItemHeight;e.updateVisibleData(n),e.lastScrollTop=n,e.$refs.content.style.transform="translate3d(0, ".concat(r,"px, 0)"),e.$refs.leftContent&&(e.$refs.leftContent.style.transform="translate3d(0, ".concat(r,"px, 0)"))}})))},updateVisibleDataDebounce:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.updateVisibleDataDebounce.body||(this.updateVisibleDataDebounce.body=(0,x.debounceWithImmediate)(this.updateVisibleData,10,t)),this.updateVisibleDataDebounce.body},handleFixedMousewheel:function(t){var e=this,i=t.deltaY;if(!i&&t.detail&&(i=t.detail*this.innerItemHeight),!i&&t.wheelDeltaY&&(i=-t.wheelDeltaY),!i&&t.wheelDelta&&(i=-t.wheelDelta),i){var n=this.$refs.body,r=n.scrollTop;i<0&&0!==r&&t.preventDefault(),i>0&&n.scrollHeight-n.clientHeight>r&&t.preventDefault();var o=0,s=setInterval((function(){o+=e.innerItemHeight,i>0?n.scrollTop+=e.innerItemHeight:n.scrollTop-=e.innerItemHeight,o>=Math.abs(i)&&clearInterval(s)}),1)}},updateVisibleData:function(t){var e=t||(this.$refs.body?this.$refs.body.scrollTop:0)||0;this.start=Math.floor(e/this.innerItemHeight),this.end=this.realRebuildData.length<this.start+this.visibleCount?this.realRebuildData.length:this.start+this.visibleCount,this.visibleData=this.realRebuildData.slice(this.start,this.end)},handleMouseWheel:function(t){var e=t.deltaX,i=this.$refs.body;i.scrollLeft=e>0?i.scrollLeft+10:i.scrollLeft-10},getIndex:function(t){var e;return this.cloneColumns.forEach((function(i,n){i._index==t&&(e=n)})),e},makeData:function(){var t=this,e=0,i=[],n=[];function r(t,o,s,l){t.forEach((function(t,a){var c=(0,x.deepCopyEx)(t,["children"]);c._index=e++,c._rowKey=I++,c._rowIndex=o+"_"+a,c._parentIndex=o,c._isExpand=!!("string"==typeof t.expand&&"true"==t.expand||"boolean"==typeof t.expand&&t.expand),c._level=s+1,c.childNum=t.children&&t.children.length>0?t.children.length:null,i.push(c),l&&n.push(c),t.children&&t.children.length>0&&r(t.children,c._rowIndex,c._level,c._isExpand)}))}return this.hideData={},this.realRebuildData=[],this.rootNodeList=[],this.data.forEach((function(o,s){var l=(0,x.deepCopyEx)(o,["children"]);l._index=e++,l._ro