h_ui
Version:
A Vue.js 2.0 UI Components Framework
1 lines • 86.8 kB
JavaScript
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=1051)}({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)},1051:function(t,e,i){"use strict";var n=i(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i(1052)),o=i(32);r.default.install=function(t,e){(0,o.setGlobal)(t,e),(0,o.initCutomSizeConfig)(e,r.default,"SimpleGroupTable"),t.component("HSimpleGroupTable",r.default),t.component("SimpleGroupTable",r.default)};var s=r.default;e.default=s},1052:function(t,e,i){"use strict";i.r(e);var n=i(759),r=i(551);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},1053: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},1054:function(t,e,i){"use strict";i.r(e);var n=i(798),r=i(553);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},1055:function(t,e,i){"use strict";i.r(e);var n=i(799),r=i(555);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},1056: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},1057:function(t,e,i){"use strict";i.r(e);var n=i(557);for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);var o=i(4),s=Object(o.a)(n.default,undefined,undefined,!1,null,null,null);e.default=s.exports},106:function(t,e,i){t.exports=i(116)},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,v=void 0!==g,x=0,m=u(d);if(v&&(g=n(g,p>2?arguments[2]:void 0,2)),null==m||f==Array&&l(m))for(i=new f(e=a(d.length));e>x;x++)c(i,x,v?g(d[x],x):d[x]);else for(h=m.call(d),i=new f;!(r=h.next()).done;x++)c(i,x,v?s(h,g,[r.value,x],!0):r.value);return i.length=x,i}})},109:function(t,e,i){t.exports=i(120)},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}},120:function(t,e,i){i(121),t.exports=i(0).parseFloat},121:function(t,e,i){var n=i(3),r=i(122);n(n.G+n.F*(parseFloat!=r),{parseFloat:r})},122:function(t,e,i){var n=i(1).parseFloat,r=i(51).trim;t.exports=1/n(i(35)+"-0")!=-1/0?function(t){var e=r(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},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}}},143:function(t,e,i){t.exports=i(144)},144:function(t,e,i){i(145),t.exports=i(0).Object.assign},145:function(t,e,i){var n=i(3);n(n.S+n.F,"Object",{assign:i(146)})},146:function(t,e,i){"use strict";var n=i(2),r=i(19),o=i(36),s=i(28),l=i(20),a=i(50),c=Object.assign;t.exports=!c||i(7)((function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach((function(t){e[t]=t})),7!=c({},t)[i]||Object.keys(c({},e)).join("")!=n}))?function(t,e){for(var i=l(t),c=arguments.length,u=1,h=o.f,d=s.f;c>u;)for(var f,p=a(arguments[u++]),g=h?r(p).concat(h(p)):r(p),v=g.length,x=0;v>x;)f=g[x++],n&&!d.call(p,f)||(i[f]=p[f]);return i}:c},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")},215:function(t,e){t.exports=require("h_ui/dist/lib/util/csv.js")},216:function(t,e,i){"use strict";var n=i(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i(109));function o(t){var e=navigator.userAgent;if("ie"===t){if(e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1){return/MSIE (\d+\.\d+);/.test(e),(0,r.default)(RegExp.$1)}return!1}return e.indexOf(t)>-1}var s={_isIE11:function(){var t=0,e=/MSIE (\d+\.\d+);/.test(navigator.userAgent),i=!!navigator.userAgent.match(/Trident\/7.0/),n=navigator.userAgent.indexOf("rv:11.0");return e&&(t=Number(RegExp.$1)),-1!==navigator.appVersion.indexOf("MSIE 10")&&(t=10),i&&-1!==n&&(t=11),11===t},_isEdge:function(){return/Edge/.test(navigator.userAgent)},_getDownloadUrl:function(t,e){var i;return window.Blob&&window.URL&&window.URL.createObjectURL?(i="xls"==e?new Blob(["\ufeff"+t],{type:"application/vnd.ms-excel"}):new Blob(["\ufeff"+t],{type:"text/csv"}),URL.createObjectURL(i)):"data:attachment/csv;charset=utf-8,\ufeff"+encodeURIComponent(t)},download:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"csv";if(o("ie")&&o("ie")<10){var n=window.top.open("about:blank","_blank");n.document.charset="utf-8",n.document.write(e),n.document.close(),n.document.execCommand("SaveAs",t),n.close()}else if(10===o("ie")||this._isIE11()||this._isEdge()){var r,s="\ufeff";r="xls"==i||"xlsx"==i?new Blob([s+e],{type:"application/vnd.ms-excel"}):new Blob([s+e],{type:"text/csv"}),navigator.msSaveBlob(r,t)}else{var l=document.createElement("a");l.download=t,l.href=this._getDownloadUrl(e,i),document.body.appendChild(l),l.click(),document.body.removeChild(l)}}},l=s;e.default=l},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,v=t&a.B,x=t&a.W,m=f?r:r[e]||(r[e]={}),b=m.prototype,y=f?n:p?n[e]:(n[e]||{}).prototype;for(c in f&&(i=e),i)(u=!d&&y&&void 0!==y[c])&&l(m,c)||(h=u?y[c]:i[c],m[c]=f&&"function"!=typeof y[c]?i[c]:v&&u?o(h,n):x&&y[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&&((m.virtual||(m.virtual={}))[c]=h,t&a.R&&b&&!b[c]&&s(b,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,v,x,m,b){a(i,e,v);var y,_,w,C=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)}},S=e+" Iterator",D=x==p,k=!1,j=t.prototype,O=j[h]||j["@@iterator"]||x&&j[x],T=O||C(x),I=x?D?C("entries"):T:void 0,$="Array"==e&&j.entries||O;if($&&(w=u($.call(new t)))!==Object.prototype&&w.next&&(c(w,S,!0),n||"function"==typeof w[h]||s(w,h,g)),D&&O&&O.name!==p&&(k=!0,T=function(){return O.call(this)}),n&&!b||!d&&!k&&j[h]||s(j,h,T),l[e]=T,l[S]=g,x)if(y={values:D?T:C(p),keys:m?T:C(f),entries:I},b)for(_ in y)_ in j||o(j,_,y[_]);else r(r.P+r.F*(d||k),e,y);return y}},551:function(t,e,i){"use strict";i.r(e);var n=i(552),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},552: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(109)),p=u(i(143)),g=u(i(123)),v=u(i(15)),x=u(i(153)),m=u(i(47)),b=u(i(1053)),y=i(21),_=i(84),w=u(i(49)),C=u(i(834)),S=u(i(215)),D=u(i(216)),k=u(i(1054)),j=u(i(1055)),O=u(i(96)),T=u(i(1057));function I(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 $(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 $(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 $(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 H(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}var R="h-table",L=1,P=1,N={name:"SimpleGroupTable",mixins:[w.default,C.default],components:{Cell:j.default,Checkbox:O.default,renderHeader:b.default,TableTr:k.default,Spin:x.default,Icon:m.default,GroupTitleRender:T.default},props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},size:{validator:function(t){return(0,y.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,y.oneOf)(t,["left","center","right"])},default:null},bodyAlgin:{validator:function(t){return(0,y.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},fixNotShadow:{type:Boolean,default:!1},customExpandIcon:{type:String},isGroupSeparated:{type:Boolean,default:!1},rowSelectOnly:Boolean,preventRightClick:{type:Boolean,default:!1},customSwitch:{type:Boolean,default:!1},customItemHeight:{type:Number},titleRender:{type:Function}},data:function(){return{ready:!1,tableWidth:0,dragWidth:0,initWidth:0,columnsWidth:{},prefixCls:R,compiledUids:[],objData:this.makeObjData(),rebuildData:[],cloneColumns:this.makeColumns(),showSlotHeader:!0,showSlotFooter:!0,bodyHeight:0,bodyRealHeight:0,scrollBarWidth:(0,y.getScrollBarSize)(),scrollBarHeight:(0,y.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,focusIndex:-1,curPageFirstIndex:0,isFocusSelect:!0,isCurrent:!0,privateToScrollTop:!1,selectType:!1,cloumnsLeft:[],curShiftIndex:null,sumMarginLeft:0,realRebuildData:[],hideData:{},scrollLeft:0,cellCheckObj:{},curCellCheck:[],hoverIndex:-1,scheduledAnimationFrame:!1,animationFrame:null,lastScrollTop:0,currKey:"",parentDataDic:{}}},computed:{innerItemHeight:function(){return this.customSwitch?this.customItemHeight:this.itemHeight},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,y.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,y.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:[]},rightMultiLevel:function(){if(!this.multiLevel||0==this.multiLevel.length)return[];var t=[];return t[0]=[],this.multiLevel.forEach((function(e,i){if("array"!=(0,y.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&&"right"===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,y.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(R,"-wrapper"),"h-simple-group-table",(t={},(0,v.default)(t,"".concat(R,"-hide"),!this.ready),(0,v.default)(t,"".concat(R,"-with-header"),this.showSlotHeader),(0,v.default)(t,"".concat(R,"-with-footer"),this.showSlotFooter),t)]},classes:function(){var t;return["".concat(R),(t={},(0,v.default)(t,"".concat(R,"-").concat(this.size),!!this.size),(0,v.default)(t,"".concat(R,"-border"),this.border),(0,v.default)(t,"".concat(R,"-stripe"),this.stripe),(0,v.default)(t,"".concat(R,"-with-fixed-top"),!!this.height),t)]},fixedHeaderClasses:function(){return["".concat(R,"-fixed-header"),(0,v.default)({},"".concat(R,"-fixed-header-with-empty"),!this.rebuildData.length)]},fixedBodyClass:function(){return["".concat(R,"-fixed-body"),(0,v.default)({},"".concat(R,"-fixed-body-shadow"),0!=this.data.length&&!this.fixNotShadow)]},styles:function(){var t={};return this.width&&(t.width="".concat(this.width,"px")),t},tableStyle:function(){var t={};if(0!==this.tableWidth){var e="";e=0===this.bodyHeight||0==this.data.length?this.tableWidth:this.tableWidth-this.scrollBarWidth,t.width="".concat(e,"px")}return t},headStyles:function(){var t=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?H(Object(i),!0).forEach((function(e){(0,v.default)(t,e,i[e])})):s?Object.defineProperties(t,s(i)):H(Object(i)).forEach((function(e){Object.defineProperty(t,e,o(i,e))}))}return t}({},this.tableStyle),e=0==this.data.length?(0,h.default)(this.tableStyle.width,10):(0,h.default)(this.tableStyle.width,10)+this.scrollBarWidth;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):(this.showScroll=!1,t.right="0px"),t.width="".concat(e,"px"),t},fixedRightPatchStyle:function(){var t={position:"absolute",right:0},e=this.scrollBarWidth,i=this.headerRealHeight,n=(0,h.default)((0,y.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-this.scrollBarWidth&&(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;return t.height=this.height?Number(e-this.scrollBarHeight)+"px":null,t.lineHeight=this.height?Number(e-this.scrollBarHeight)+"px":null,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)},rightFixedColumns:function(){var t=[],e=[];return this.cloneColumns.forEach((function(i){i.fixed&&"right"===i.fixed?t.push(i):e.push(i)})),t.concat(e)},isLeftFixed:function(){return 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(){return this.realRebuildData.length*this.innerItemHeight}},methods:{focus:function(){this.$refs.tableWrap.focus()},blur:function(){this.$refs.tableWrap.blur()},groupCls:function(t){return["".concat(this.prefixCls,"-cell-expand"),(0,v.default)({},"".concat(this.prefixCls,"-cell-expand-expanded"),t)]},groupRowClasses:function(t){var e,i=Number(t._index)%2!=0;return e={},(0,v.default)(e,"".concat(this.prefixCls,"-group-cell"),1),(0,v.default)(e,"".concat(this.prefixCls,"-title-stripe"),i),(0,v.default)(e,"".concat(this.prefixCls,"-title-expand"),t._isExpand),e},handleCellClick:function(t,e,i,n){if(this.currKey=n.key,this.cellClick&&"index"!=n.type&&"selection"!=n.type){this.curCellCheck.length>0&&(this.curCellCheck[0]!==i||this.curCellCheck[1]!==n.key)&&(this.cellCheckObj[this.curCellCheck[0]][this.curCellCheck[1]]=!1),this.curCellCheck=[i,n.key];var r=this.cellCheckObj[i][n.key];this.cellCheckObj[i][n.key]=!r,this.$emit("on-cell-click",e,i,n._index,!r)}},handleToggleExpand:function(t){if(!t.childNum||0!==t.childNum){var e;this.realRebuildData.some((function(i,n){return i._rowIndex===t._rowIndex&&(e=n,!0)}));var i,n=this.$refs.body.scrollTop;if(this.objData[t._index]._isExpand)void 0!==e&&(this.hideData[t._rowIndex]=this.realRebuildData.splice(e+1,t.childNum)),n=n-this.innerItemHeight*Number(t.childNum)>0?n-this.innerItemHeight*Number(t.childNum):0;else(i=this.realRebuildData).splice.apply(i,[e+1,0].concat((0,g.default)(this.hideData[t._rowIndex])));this.objData[t._index]._isExpand=!this.objData[t._index]._isExpand,this.realRebuildData.forEach((function(e){e._index===t._index&&(e._isExpand=!e._isExpand)})),this.updateVisibleData(n),this.$emit("on-expand",JSON.parse((0,d.default)(this.rebuildData[t._index])),this.objData[t._index]._isExpand)}},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,v.default)(e,"".concat(t.className),t.className),(0,v.default)(e,"".concat(this.prefixCls,"-column-").concat(t.align),t.align),e)]},rowClsName:function(t){return this.rowClassName(this.data[t],t)},classesTd:function(t){return["".concat(this.prefixCls,"-cell"),(0,v.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.tableWidth<this.initWidth&&!r.notAdaptive&&(this.tableWidth=this.initWidth-1),this.$nextTick((function(){n.$emit("on-drag",t,e)}))},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,y.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),v=c-s,x=c-a;x>=0?u=u-x>=n.lastColWidth?u-x:n.lastColWidth:f>=d?f+x<=d&&(u=u+d-f-x-1):u-=x,0!==o.bodyHeight&&(u-=(0,y.getScrollBarSize)()),r.changeWidth(v,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,y.removeClass)(l,"noclick")}),0)}))}if(this.movingColumn){this.moving=!0,(0,y.addClass)(document.body,"useSelect"),this.moveProxyVisible=!0;var v=this.findObj(t,"TH").cloneNode(!0);v.width=e._width,(0,y.addClass)(v,"move-proxy-th");var x=this.$el,m=x.getBoundingClientRect().left,b=x.getBoundingClientRect().top,_=this.$el.querySelector("th.h-ui-".concat(e.key)),w=_.getBoundingClientRect();(0,y.addClass)(_,"noclick"),this.moveState={startMouseLeft:t.clientX,startLeft:w.left-m-1,tableLeft:m};var C=this.$refs.moveProxy,S=this.$refs.resizeProxy;C.style.left=this.moveState.startLeft+"px",C.style.top=t.clientY-b-20+"px",C.appendChild(v);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-m-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-m-1}C.style.left=s+"px",C.style.top=t.clientY-b-20+"px",S.style.left=D+"px"};document.addEventListener("mousemove",j),document.addEventListener("mouseup",(function t(){r.moving&&(r.sortCloumn(i,k,e._index),document.body.style.cursor="",(0,y.removeClass)(document.body,"useSelect"),r.moving=!1,r.movingColumn=null,r.moveState={},C.removeChild(v),r.resizeProxyVisible=!1,r.moveProxyVisible=!1),document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",t),setTimeout((function(){(0,y.removeClass)(_,"noclick")}),0)}))}}},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},handleResize:function(){var t=this;this.$nextTick((function(){var e=Math.floor(t.$refs.body.scrollTop/t.innerItemHeight)*t.innerItemHeight;t.$refs.content.style.transform="translate3d(0, ".concat(e,"px, 0)"),t.$refs.leftContent&&(t.$refs.leftContent.style.transform="translate3d(0, ".concat(e,"px, 0)")),t.$refs.rightContent&&(t.$refs.rightContent.style.transform="translate3d(0, ".concat(e,"px, 0)"));var i=t.$refs.body.getBoundingClientRect().width,n=t.$refs.body.scrollWidth;if(t.isScrollX=n+t.scrollBarWidth>i,0!=t.cloneColumns.length){var r=!t.columns.some((function(t){return!t.width&&0!==t.width}));t.tableWidth=r?t.cloneColumns.map((function(t){return t.width})).reduce((function(t,e){return t+e})):(0,h.default)((0,y.getStyle)(t.$el,"width"),10)-1,t.columnsWidth={},t.$nextTick((function(){var e={},i=-1;if(r&&(i=(0,y.findInx)(t.cloneColumns,(function(t){return!t.width}))),t.data.length){for(var n=t.$refs.tbody.querySelectorAll("tbody tr")[0].querySelectorAll("td"),o=0,s=0;s<n.length;s++){var l=t.cloneColumns[s],a=(0,f.default)((0,y.getStyle)(n[s],"width")),c=(0,h.default)(a,10);(o=o+a-c)>1&&(c+=1,o-=1),s===i&&(c-=1),l&&l.width?c=l.width||"":c<100&&(c=100),t.cloneColumns[s]._width=c||"",t.tableWidth=t.cloneColumns.map((function(t){return t._width})).reduce((function(t,e){return t+e})),e[l._index]={width:c}}t.columnsWidth=e}else{for(var u=t.$refs.thead.querySelectorAll("thead .cur-th")[0].querySelectorAll("th"),d=0;d<u.length;d++){var p=t.cloneColumns[d],g=(0,h.default)((0,y.getStyle)(u[d],"width"),10);d===i&&(g=(0,h.default)((0,y.getStyle)(u[d],"width"),10)-1),p.width?g=p.width||"":g<100&&(g=100),t.cloneColumns[d]._width=g||"",t.tableWidth=t.cloneColumns.map((function(t){return t._width})).reduce((function(t,e){return t+e})),e[p._index]={width:g}}t.columnsWidth=e}t.bodyRealHeight=(0,h.default)((0,y.getStyle)(t.$refs.bodyPhantom,"height"),10)||0,t.headerRealHeight=(0,h.default)((0,y.getStyle)(t.$refs.header,"height"),10)||0}))}}))},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&&!this.objData[t]._isDisabled){var i=!(!this.objData[t]||!this.objData[t].hasOwnProperty("_isHighlight"))&&this.objData[t]._isHighlight;if(!this.objData[t]._isChecked&&!this.objData[t]._isHighlight||!this.rowSelectOnly){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,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(){if(e.cloneData[t]){var i={k:t,key:e.currKey};e.$emit("on-current-change",JSON.parse((0,d.default)(e.cloneData[t])),t,i)}else e.$emit("on-current-change",null,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(){if(e.cloneData[t]){var i=!!e.objData[t]._isHighlight;e.$emit("on-row-click",[JSON.parse((0,d.default)(e.cloneData[t])),t],i)}else e.$emit("on-current-change",null,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.cloneData[t])),{k:e.cloneData[t]._parentIndex,m:Number(e.cloneData[t]._rowIndex.replace("child_","")),key:e.currKey})}))},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.cloneData.filter((function(t,i){return e.indexOf(i)>-1}))))},toggleSelect:function(t){var e=this;if(this.allclick=!1,this.objData[t]){if(this.objData[t]._isDisabled)return;var i=!this.objData[t]._isChecked;if(this.objData[t]._isChecked=i,i||(this.objData[t]._isHighlight=!1),!this.isGroupSeparated)if(this.objData[t]&&this.objData[t].childNum)for(var n=1;n<=this.objData[t].childNum;n++)this.objData[t+n]._isDisabled||(this.objData[t+n]._isChecked=i),i||(this.objData[t]._isHighlight=!1);else if(this.objData[t]&&this.objData[t]._rowIndex.indexOf("child")>=0){for(var r=t-Number(this.objData[t]._rowIndex.split("_")[1])-1,o=!0,s=1;s<=this.objData[r].childNum;s++)if(!this.objData[r+s]._isChecked&&!this.objData[r+s]._isDisabled){o=!1;break}this.objData[r]._isChecked==o||this.objData[r]._isDisabled||(this.objData[r]._isChecked=o)}}this.$nextTick((function(){var i=e.getSelection(),n=!1;e.objData[t]&&(n=e.objData[t]._isChecked),e.$emit(n?"on-select":"on-select-cancel",i,JSON.parse((0,d.default)(e.cloneData[t]))),e.$emit("on-selection-change",i,e.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=I(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=I(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(){for(var t=this,e=this.shiftSelect[0];e<=this.shiftSelect[1];e++)this.objData[e]._isHighlight=!1,this.objData[e]._isDisabled||(this.objData[e]._isChecked=!0);this.$nextTick((function(){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,y.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,y.getStyle)(t.$refs.header,"height"),10)||0,n=(0,h.default)((0,y.getStyle)(t.$refs.footer,"height"),10)||0;t.bodyHeight=t.height-e-i-n})):this.bodyHeight=0},handleScrollToUniqueValue:function(t,e,i){for(var n,r=this,o=0;o<this.rebuildData.length;o++){var s=this.rebuildData[o];if(s._isGroup==t&&e in s&&s[e]==i){n=s;break}}if(n){if(!t)for(var l=n._parentIndex,a=0;a<this.rebuildData.length;a++)if(this.rebuildData[a]._isGroup&&this.rebuildData[a]._rowIndex=="parent_"+l&&!this.rebuildData[a]._isExpand){this.handleToggleExpand(this.rebuildData[a]);break}this.$nextTick((function(){for(var n=-1,o=0;o<r.realRebuildData.length;o++){var s=r.realRebuildData[o];if(s._isGroup==t&&e in s&&s[e]==i){n=o;break}}if(-1!=n){var l=0;n>r.realRebuildData.length-r.visibleCount+1?(r.start=r.realRebuildData.length-r.visibleCount+1,l=r.innerItemHeight*r.start+r.visibleCount*r.innerItemHeight-r.bodyHeight):(r.start=n,l=r.innerItemHeight*r.start),r.end=r.start+r.visibleCount,r.visibleData=r.realRebuildData.slice(r.start,r.end),r.$refs.body.scrollTop=l}}))}},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.fixedLeftBody.scrollTop=e),this.isRightFixed&&(this.$refs.fixedRightBody.scrollTop=e),this.buttomNum=(0,y.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)")),this.$refs.rightContent&&(this.$refs.rightContent.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;e.curPageFirstIndex=Math.floor(n/e.innerItemHeight),e.$refs.header.scrollLeft=t.target.scrollLeft,e.isSummation&&(e.sumMarginLeft=t.target.scrollLeft),e.isLeftFixed&&(e.$refs.fixedLeftBody.scrollTop=n),e.isRightFixed&&(e.$refs.fixedRightBody.scrollTop=n),e.buttomNum=(0,y.getBarBottomS)(t.target,e.bodyHeight,e.contentHeight,e.scrollBarHeight,e.isScrollX);var r=Math.floor(n/e.innerItemHeight)*e.innerItemHeight;e.lastScrollTop!=t.target.scrollTop&&(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)")),e.$refs.rightContent&&(e.$refs.rightContent.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,y.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.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},getAllData:function(){return this.rebuildData},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=[];return this.hideData={},this.realRebuildData=[],this.data.forEach((function(n,r){var o=(0,y.deepCopyEx)(n,["item"]);o._index=e++,o._rowKey=L++,o._isGroup=!0,o._rowIndex="parent_"+r,o._isExpand=n.expand||!1,o.childNum=n.item&&n.item.length>0?n.item.length:0,t.realRebuildData.push(o),i.push(o);var s=[];n.expand||(t.hideData["parent_"+r]=s),n.item&&n.item.length>0&&n.item.forEach((function(n,l){var a=(0,y.deepCopy)(n);a._index=e++,a._rowKey=L++,a._isGroup=!1,a._rowIndex="child_"+l,a._isExpand=!1,a.childNum=null,a._parentIndex=r,i.push(a),s.push(a),o.expand&&t.realRebuildData.push(a)}))})),i},makeObjData:function(){var t=this,e={},i={};if(this.columns&&this.columns.length>0&&this.cellClick&&this.columns.forEach((function(e){e.key&&t.$set(i,e.key,!1)})),this.rebuildData&&this.rebuildData.length>0){var n={};this.rebuildData.forEach((function(r,o){var s=(0,y.deepCopy)(r);s._isHover=!1,s._disabled?s._isDisabled=s._disabled:s._isDisabled=!1,s._checked?s._isChecked=s._checked:s._isChecked=!1,s._highlight?s._isHighlight=s._highlight:s._isHighlight=!1,e[o]=s,t.cellClick&&(n[o]=JSON.parse((0,d.default)(i)))})),this.cellCheckObj=n}return e},makeColumns:function(){var t=this,e=(0,y.deepCopy)(this.columns),i=[],n=[],r=[],o=!1;return e.forEach((function(t,e){"selection"==t.type&&(o=!0),t._index=e,t._columnKey=P++,t._width=t.width?t.width:"",t._sortType="normal",t._filterVisible=!1,t._isFiltered=!1,t._filterChecked=[],t._filterMultiple=!("filterMultiple"in t)||t.filterMultiple,"filteredValue"in t&&(t._filterChecked=t.filteredValue,t._isFiltered=!0),t.hiddenCol&&"false"!=t.hiddenCol||(t.fixed&&"left"===t.fixed?i.push(t):t.fixed&&"right"===t.fixed?n.push(t):r.push(t))})),this.$nextTick((function(){t.selectType=o})),i.concat(r).concat(n)},initResize:function(){var t=this;this.$nextTick((function(){t.initWidth=(0,h.default)((0,y.getStyle)(t.$refs.tableWrap,"width"),10)||0}))},exportCsv:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.filename?-1===t.filename.indexOf(".csv")&&(t.f