UNPKG

h_ui

Version:

A Vue.js 2.0 UI Components Framework

1 lines 69.6 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/Icon.js"),require("h_ui/dist/lib/mixins/locale.js"),require("h_ui/dist/lib/util/dom.js"),require("h_ui/dist/lib/Checkbox.js"),require("h_ui/dist/lib/Spin.js")):"function"==typeof define&&define.amd?define("h_ui/lib",["h_ui/dist/lib/util/tools.js","h_ui/dist/lib/util/global.js","h_ui/dist/lib/Icon.js","h_ui/dist/lib/mixins/locale.js","h_ui/dist/lib/util/dom.js","h_ui/dist/lib/Checkbox.js","h_ui/dist/lib/Spin.js"],e):"object"==typeof exports?exports["h_ui/lib"]=e(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/Icon.js"),require("h_ui/dist/lib/mixins/locale.js"),require("h_ui/dist/lib/util/dom.js"),require("h_ui/dist/lib/Checkbox.js"),require("h_ui/dist/lib/Spin.js")):t["h_ui/lib"]=e(t["h_ui/dist/lib/util/tools.js"],t["h_ui/dist/lib/util/global.js"],t["h_ui/dist/lib/Icon.js"],t["h_ui/dist/lib/mixins/locale.js"],t["h_ui/dist/lib/util/dom.js"],t["h_ui/dist/lib/Checkbox.js"],t["h_ui/dist/lib/Spin.js"])}(window,(function(t,e,i,n,r,o,l){return 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/",i(i.s=1077)}({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)}},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],l=o[n]();l.next=function(){return{done:i=!0}},o[n]=function(){return l},t(o)}catch(t){}return i}},103:function(t,e,i){var n=i(16),r=i(87),o=i(88),l=i(12),s=i(42),a=i(89),c={},d={};(e=t.exports=function(t,e,i,h,u){var f,p,g,v,x=u?function(){return t}:a(t),b=n(i,h,e?2:1),y=0;if("function"!=typeof x)throw TypeError(t+" is not iterable!");if(o(x)){for(f=s(t.length);f>y;y++)if((v=e?b(l(p=t[y])[0],p[1]):b(t[y]))===c||v===d)return v}else for(g=x.call(t);!(p=g.next()).done;)if((v=r(g,b,p.value,e))===c||v===d)return v}).BREAK=c,e.RETURN=d},107:function(t,e,i){i(59),i(108),t.exports=i(0).Array.from},1077:function(t,e,i){"use strict";var n=i(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i(1078)),o=i(32);r.default.install=function(t,e){(0,o.setGlobal)(t,e),(0,o.initCutomSizeConfig)(e,r.default,"SimpleTreeGird"),t.component("SimpleTreeGird",r.default),t.component("HSimpleTreeGird",r.default)};var l=r.default;e.default=l},1078:function(t,e,i){"use strict";i.r(e);var n=i(763),r=i(575);for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);var l=i(4),s=Object(l.a)(r.default,n.a,n.b,!1,null,null,null);e.default=s.exports},1079:function(t,e,i){"use strict";i.r(e);var n=i(805),r=i(577);for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);var l=i(4),s=Object(l.a)(r.default,n.a,n.b,!1,null,null,null);e.default=s.exports},108:function(t,e,i){"use strict";var n=i(16),r=i(3),o=i(20),l=i(87),s=i(88),a=i(42),c=i(68),d=i(89);r(r.S+r.F*!i(102)((function(t){Array.from(t)})),"Array",{from:function(t){var e,i,r,h,u=o(t),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,x=0,b=d(u);if(v&&(g=n(g,p>2?arguments[2]:void 0,2)),null==b||f==Array&&s(b))for(i=new f(e=a(u.length));e>x;x++)c(i,x,v?g(u[x],x):u[x]);else for(h=b.call(u),i=new f;!(r=h.next()).done;x++)c(i,x,v?l(h,g,[r.value,x],!0):r.value);return i.length=x,i}})},1080: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},1081:function(t,e,i){"use strict";i.r(e);var n=i(806),r=i(579);for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);var l=i(4),s=Object(l.a)(r.default,n.a,n.b,!1,null,null,null);e.default=s.exports},1082: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},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}},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}},13:function(t,e,i){var n=i(50),r=i(18);t.exports=function(t){return n(r(t))}},131:function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},132:function(t,e,i){var n=i(11);t.exports=function(t,e,i){for(var r in e)i&&t[r]?t[r]=e[r]:n(t,r,e[r]);return t}},139:function(t,e,i){var n=i(6);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},148:function(t,e,i){"use strict";var n=i(1),r=i(0),o=i(5),l=i(2),s=i(9)("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:n[t];l&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},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=l},156:function(t,e,i){"use strict";var n=i(5).f,r=i(48),o=i(132),l=i(16),s=i(131),a=i(103),c=i(55),d=i(81),h=i(148),u=i(2),f=i(62).fastKey,p=i(139),g=u?"_s":"size",v=function(t,e){var i,n=f(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,c){var d=t((function(t,n){s(t,d,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[g]=0,null!=n&&a(n,i,t[c],t)}));return o(d.prototype,{clear:function(){for(var t=p(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var i=p(this,e),n=v(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[g]--}return!!n},forEach:function(t){p(this,e);for(var i,n=l(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!v(p(this,e),t)}}),u&&n(d.prototype,"size",{get:function(){return p(this,e)[g]}}),d},def:function(t,e,i){var n,r,o=v(t,e);return o?o.v=i:(t._l=o={i:r=f(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[g]++,"F"!==r&&(t._i[r]=o)),t},getEntry:v,setStrong:function(t,e,i){c(t,e,(function(t,i){this._t=p(t,e),this._k=i,this._l=void 0}),(function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?d(0,"keys"==e?i.k:"values"==e?i.v:[i.k,i.v]):(t._t=void 0,d(1))}),i?"entries":"values",!i,!0),h(e)}}},157:function(t,e,i){"use strict";var n=i(1),r=i(3),o=i(62),l=i(7),s=i(11),a=i(132),c=i(103),d=i(131),h=i(6),u=i(37),f=i(5).f,p=i(158)(0),g=i(2);t.exports=function(t,e,i,v,x,b){var y=n[t],m=y,S=x?"set":"add",_=m&&m.prototype,w={};return g&&"function"==typeof m&&(b||_.forEach&&!l((function(){(new m).entries().next()})))?(m=e((function(e,i){d(e,m,t,"_c"),e._c=new y,null!=i&&c(i,x,e[S],e)})),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(t){var e="add"==t||"set"==t;!(t in _)||b&&"clear"==t||s(m.prototype,t,(function(i,n){if(d(this,m,t),!e&&b&&!h(i))return"get"==t&&void 0;var r=this._c[t](0===i?0:i,n);return e?this:r}))})),b||f(m.prototype,"size",{get:function(){return this._c.size}})):(m=v.getConstructor(e,t,x,S),a(m.prototype,i),o.NEED=!0),u(m,t),w[t]=m,r(r.G+r.W+r.F,w),b||v.setStrong(m,t,x),m}},158:function(t,e,i){var n=i(16),r=i(50),o=i(20),l=i(42),s=i(159);t.exports=function(t,e){var i=1==t,a=2==t,c=3==t,d=4==t,h=6==t,u=5==t||h,f=e||s;return function(e,s,p){for(var g,v,x=o(e),b=r(x),y=n(s,p,3),m=l(b.length),S=0,_=i?f(e,m):a?f(e,0):void 0;m>S;S++)if((u||S in b)&&(v=y(g=b[S],S,x),t))if(i)_[S]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return S;case 2:_.push(g)}else if(d)return!1;return h?-1:c||d?d:_}}},159:function(t,e,i){var n=i(160);t.exports=function(t,e){return new(n(t))(e)}},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)}}},160:function(t,e,i){var n=i(6),r=i(57),o=i(9)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},161:function(t,e,i){var n=i(86),r=i(162);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},162:function(t,e,i){var n=i(103);t.exports=function(t,e){var i=[];return n(t,!1,i.push,i,e),i}},163:function(t,e,i){"use strict";var n=i(3);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},164:function(t,e,i){"use strict";var n=i(3),r=i(27),o=i(16),l=i(103);t.exports=function(t){n(n.S,t,{from:function(t){var e,i,n,s,a=arguments[1];return r(this),(e=void 0!==a)&&r(a),null==t?new this:(i=[],e?(n=0,s=o(a,arguments[2],2),l(t,!1,(function(t){i.push(s(t,n++))}))):l(t,!1,i.push,i),new this(i))}})}},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(e,i){e.exports=t},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}},280:function(t,e,i){t.exports=i(281)},281:function(t,e,i){i(75),i(59),i(76),i(282),i(283),i(284),i(285),t.exports=i(0).Set},282:function(t,e,i){"use strict";var n=i(156),r=i(139);t.exports=i(157)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return n.def(r(this,"Set"),t=0===t?0:t,t)}},n)},283:function(t,e,i){var n=i(3);n(n.P+n.R,"Set",{toJSON:i(161)("Set")})},284:function(t,e,i){i(163)("Set")},285:function(t,e,i){i(164)("Set")},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),l=i(11),s=i(10),a=function(t,e,i){var c,d,h,u=t&a.F,f=t&a.G,p=t&a.S,g=t&a.P,v=t&a.B,x=t&a.W,b=f?r:r[e]||(r[e]={}),y=b.prototype,m=f?n:p?n[e]:(n[e]||{}).prototype;for(c in f&&(i=e),i)(d=!u&&m&&void 0!==m[c])&&s(b,c)||(h=d?m[c]:i[c],b[c]=f&&"function"!=typeof m[c]?i[c]:v&&d?o(h,n):x&&m[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&&((b.virtual||(b.virtual={}))[c]=h,t&a.R&&y&&!y[c]&&l(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__",l=r[o]||(r[o]={});(t.exports=function(t,e){return l[t]||(l[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,i){t.exports=e},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"},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,l,s){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),l?(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(l)},c._ssrRegister=a):r&&(a=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),a)if(c.functional){c._injectStyles=a;var d=c.render;c.render=function(t,e){return a.call(e),d(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})},42:function(t,e,i){var n=i(29),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},45:function(t,e,i){var n=i(10),r=i(13),o=i(67)(!1),l=i(34)("IE_PROTO");t.exports=function(t,e){var i,s=r(t),a=0,c=[];for(i in s)i!=l&&n(s,i)&&c.push(i);for(;e.length>a;)n(s,i=e[a++])&&(~o(c,i)||c.push(i));return c}},47:function(t,e){t.exports=i},48:function(t,e,i){var n=i(12),r=i(74),o=i(31),l=i(34)("IE_PROTO"),s=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?(s.prototype=n(t),i=new s,s.prototype=null,i[l]=t):i=a(),void 0===e?i:r(i,e)}},49:function(t,e){t.exports=n},5:function(t,e,i){var n=i(12),r=i(25),o=i(17),l=Object.defineProperty;e.f=i(2)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return l(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),l=i(35),s="["+l+"]",a=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),d=function(t,e,i){var r={},s=o((function(){return!!l[t]()||"​…"!="​…"[t]()})),a=r[t]=s?e(h):l[t];i&&(r[i]=a),n(n.P+n.F*s,"String",r)},h=d.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(a,"")),2&e&&(t=t.replace(c,"")),t};t.exports=d},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),l=i(11),s=i(26),a=i(93),c=i(37),d=i(90),h=i(9)("iterator"),u=!([].keys&&"next"in[].keys()),f="keys",p="values",g=function(){return this};t.exports=function(t,e,i,v,x,b,y){a(i,e,v);var m,S,_,w=function(t){if(!u&&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)}},k=e+" Iterator",C=x==p,O=!1,j=t.prototype,$=j[h]||j["@@iterator"]||x&&j[x],H=$||w(x),T=x?C?w("entries"):H:void 0,W="Array"==e&&j.entries||$;if(W&&(_=d(W.call(new t)))!==Object.prototype&&_.next&&(c(_,k,!0),n||"function"==typeof _[h]||l(_,h,g)),C&&$&&$.name!==p&&(O=!0,H=function(){return $.call(this)}),n&&!y||!u&&!O&&j[h]||l(j,h,H),s[e]=H,s[k]=g,x)if(m={values:C?H:w(p),keys:b?H:w(f),entries:T},y)for(S in m)S in j||o(j,S,m[S]);else r(r.P+r.F*(u||O),e,m);return m}},57:function(t,e,i){var n=i(33);t.exports=Array.isArray||function(t){return"Array"==n(t)}},575:function(t,e,i){"use strict";i.r(e);var n=i(576),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},576: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=n(i(53)),l=n(i(85)),s=n(i(280)),a=n(i(64)),c=n(i(1079)),d=n(i(1081)),h=n(i(153)),u=n(i(47)),f=n(i(697)),p=i(21),g=i(84),v=n(i(49)),x="h-editgird",b=1,y={name:"SimpleTreeGird",mixins:[v.default,f.default],components:{GirdHead:c.default,TreeTable:d.default,Spin:h.default,Icon:u.default},props:{multiLevel:{type:Array,default:null},data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},size:{validator:function(t){return(0,p.oneOf)(t,["small","large","default"])}},width:{type:[Number,String]},height:{type:[Number,String]},border:{type:Boolean,default:!0},isComplementColWidth:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},titleSpaceNormal:{type:Boolean,default:!1},highlightRow:{type:Boolean,default:!0},rowClassName:{type:Function,default:function(){return""}},showIndeterminate:{type:Boolean,default:!1},context:{type:Object},noDataText:{type:String},rowSelect:{type:Boolean,default:!1},rowSelectOnly:{type:Boolean,default:!1},isCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},headSelection:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},loadData:{type:Function},canDrag:{type:Boolean,default:!1},selectRoot:{type:Boolean,default:!1},notAdaptive:{type:Boolean,default:!1},canMove:{type:Boolean,default:!1},disabledHover:{type:Boolean,default:!1},getHeaderHeightFlag:{type:Boolean,default:!1},unlinkCheckbox:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!1},customSwitch:{type:Boolean,default:!1},customHeight:{type:Number}},data:function(){return{ready:!1,tableWidth:0,titleSpan:!1,initWidth:0,tipWidth:0,columnsWidth:{},prefixCls:x,cloneColumns:this.makeColumns(),showSlotHeader:!0,bodyHeight:0,bodyRealHeight:0,resizeProxyVisible:!1,moveProxyVisible:!1,scrollBarWidth:(0,p.getScrollBarSize)(),currentContext:this.context,showScroll:!1,headerRealHeight:0,selectType:!1,initData:[],checkedObj:[],indexAndId:{},selection:{},buttomNum:null,rebuildData:[],isSelectAll:null,updateKey:1,isScrollX:!1,isScrollY:!1,noDataAdaptiveBodyHeight:0}},computed:{headerStyle:function(){var t={};if(0!==this.tableWidth){var e=(0,o.default)(100*this.tableWidth,10)/100;t.width="".concat(e,"px")}return t},fixedBodyStyle:function(){var t={};if(0!==this.bodyHeight||this.maxHeight){var e=this.bodyHeight;e=this.isScrollX?e-this.scrollBarWidth:this.bodyHeight-1,this.height&&(t.height=(this.scrollBarWidth,"".concat(e,"px")),this.fixedAutoHeight&&this.bodyRealHeight<e&&(t.height="".concat(this.bodyRealHeight,"px"))),this.maxHeight&&(t.maxHeight=(this.scrollBarWidth,"".concat(e,"px"))),t.height="".concat(e,"px")}return 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},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.columns.some((function(t){return t.fixed&&"left"===t.fixed}))},fixedRightPatchStyle:function(){var t={};return t.width="".concat(this.scrollBarWidth,"px"),t.height="".concat(this.headerRealHeight,"px"),t.top="0",t},rightFixedTableStyle:function(){var t={},e=0;return this.rightFixedColumns.forEach((function(t){t.fixed&&"right"===t.fixed&&(e+=t._width)})),this.isScrollY?(t.marginRight="".concat(this.scrollBarWidth,"px"),this.showScroll=!0):e=0==e?0:e,t.width="".concat(e,"px"),t},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)},isRightFixed:function(){return this.columns.some((function(t){return t.fixed&&"right"===t.fixed}))},loadingText:function(){return this.t("i.table.loadingText")},localeNoDataText:function(){return void 0===this.noDataText?this.t("i.table.noDataText"):this.noDataText},wrapClasses:function(){var t;return["".concat(x,"-wrapper"),(t={},(0,r.default)(t,"".concat(x,"-hide"),!this.ready),(0,r.default)(t,"".concat(x,"-with-header"),this.showSlotHeader),t)]},classes:function(){var t;return["".concat(x),(t={},(0,r.default)(t,"".concat(x,"-").concat(this.size),!!this.size),(0,r.default)(t,"".concat(x,"-border"),this.border),(0,r.default)(t,"".concat(x,"-with-fixed-top"),!!this.height),(0,r.default)(t,"".concat(x,"-can-hover"),!this.disabledHover),t)]},fixedHeaderClasses:function(){return["".concat(x,"-fixed-header"),(0,r.default)({},"".concat(x,"-fixed-header-with-empty"),!this.data.length)]},styles:function(){var t={};if(this.height){var e=Number(this.height)+2;t.height="".concat(e,"px")}return this.width&&(t.width="".concat(this.width,"px")),t},tableStyle:function(){var t={};if(0!==this.tableWidth){var e="";e=0===this.bodyHeight?this.tableWidth:0!==this.data.length&&this.isScrollY?this.tableWidth-this.scrollBarWidth:this.tableWidth,t.width="".concat(e,"px")}return t},tableBodyStyle:function(){var t={};if(0!==this.tableWidth){var e=this.tableWidth;this.tableWidth+1>=this.initWidth-this.scrollBarWidth&&this.bodyRealHeight>this.height&&(e=(0,o.default)(this.tableWidth,10)-this.scrollBarWidth),t.width="".concat(e,"px")}return t},bodyStyle:function(){var t={};if(0!==this.bodyHeight){var e=this.bodyHeight;t.height="".concat(e,"px")}return t},textStyle:function(){var t={};if(t.width=0!=this.initWidth?this.initWidth+"px":"100%",0!=this.bodyHeight){var e=this.bodyHeight;t.height=this.height?Number(e-this.scrollBarWidth)+"px":null,t.lineHeight=this.height?Number(e-this.scrollBarWidth)+"px":null}else{var i=this.noDataAdaptiveBodyHeight;i=this.isScrollX?i-this.scrollBarWidth:i,t.height="".concat(i,"px")}return t},tipBodyHeight:function(){var t=0;if(0!==this.bodyHeight){var e=this.bodyHeight;t=this.patibleHeight?this.bodyHeight:e}return 0!=this.data.length&&0!=this.rebuildData.length||this.height||this.maxHeight||this.noDataAdaptiveBodyHeight&&(t=this.noDataAdaptiveBodyHeight),t=this.isScrollX?t-this.scrollBarWidth:t},tipStyle:function(){var t={};if(0!==this.tableWidth){var e=this.tableWidth<this.initWidth?this.initWidth-1:this.tableWidth-1;t.width="".concat(e,"px")}return t},cloneMultiLevel:function(){if(!this.multiLevel||0==this.multiLevel.length)return null;var t=[],e=[],i=[],n=[];return"array"!=(0,p.typeOf)(this.multiLevel[0])?(t[0]=[],this.multiLevel.forEach((function(t){t.hiddenCol||"false"==t.hiddenCol||(t.fixed&&"left"===t.fixed?e.push(t):t.fixed&&"right"===t.fixed?i.push(t):n.push(t))})),t[0]=e.concat(n).concat(i)):this.multiLevel.forEach((function(r){e=[],i=[],n=[],r.forEach((function(t){t.hiddenCol||"false"==t.hiddenCol||(t.fixed&&"left"===t.fixed?e.push(t):t.fixed&&"right"===t.fixed?i.push(t):n.push(t))})),t.push(e.concat(n).concat(i))})),t.length>0?t:null},leftCloneMultiLevel:function(){if(!this.cloneMultiLevel||0==this.cloneMultiLevel.length)return null;var t=[];return this.cloneMultiLevel.forEach((function(e){var i=[];e.forEach((function(t){t.fixed&&"left"===t.fixed&&i.push(t)})),t.push(i)})),t},rightCloneMultiLevel:function(){if(!this.cloneMultiLevel||0==this.cloneMultiLevel.length)return null;var t=[];return this.cloneMultiLevel.forEach((function(e){var i=[];e.forEach((function(t){t.fixed&&"right"===t.fixed&&i.push(t)})),t.push(i)})),t}},methods:{rowClsName:function(t,e){return this.rowClassName(e,t)},handleMouseIn:function(t){if(!this.disabledHover){var e=this.indexAndId[t];this.checkedObj[e]&&(this.checkedObj[e]._isHover=!0)}},handleMouseOut:function(t){if(!this.disabledHover){var e=this.indexAndId[t];this.checkedObj[e]&&(this.checkedObj[e]._isHover=!1)}},handleFixedMousewheel:function(t){var e=t.deltaY;if(!e&&t.detail&&(e=40*t.detail),!e&&t.wheelDeltaY&&(e=-t.wheelDeltaY),!e&&t.wheelDelta&&(e=-t.wheelDelta),e){var i=this.$refs.body,n=i.scrollTop;e<0&&0!==n&&t.preventDefault(),e>0&&i.scrollHeight-i.clientHeight>n&&t.preventDefault();var r=0,o=setInterval((function(){r+=10,e>0?i.scrollTop+=5:i.scrollTop-=5,r>=Math.abs(e)&&clearInterval(o)}),1)}},move:function(t,e){this.$emit("on-move",t,e)},changeCheckedObj:function(t,e,i){var n=i?"_isHighlight":"checked";null==e?this.$set(this.checkedObj[t],n,!this.checkedObj[t][n]):this.$set(this.checkedObj[t],n,e)},changeWidth:function(t,e,i,n){var r=this,l=this,s=0;this.cloneColumns.forEach((function(r,o){r.key==e&&(l.$set(r,"width",t),l.$set(r,"_width",t)),o!=n||l.notAdaptive||(l.$set(r,"width",i),l.$set(r,"_width",i));var a=r.width||r._width;s+=a})),0!==this.bodyHeight&&n==this.cloneColumns.length&&(s+=this.scrollBarWidth),this.tableWidth=s+1,this.$emit("on-drag",t,e),this.$nextTick((function(){if(r.isComplementColWidth)r.fixedBodyClientHeight=-1,r.bodyRealHeight=(0,o.default)((0,p.getStyle)(r.$refs.tbody.$el,"height"),10)||0,r.handleResize();else if(r.$refs.tbody&&r.rebuildData&&0!==r.rebuildData.length){var t=r.$refs.tbody.$el,e=t.parentElement,i=t.offsetHeight,n=e.offsetHeight;r.isScrollX=Math.round(e.offsetWidth)<t.offsetWidth+(r.isScrollY?r.scrollBarWidth:0)-1,r.isScrollY=!!r.bodyHeight&&n-(r.isScrollX?r.scrollBarWidth:0)<i}else if(r.isScrollY=!1,r.$refs.thead){var l=r.$refs.thead?r.$refs.thead.$el:"",s=l.parentElement;r.isScrollX=Math.round(s.offsetWidth)<l.offsetWidth+(r.isScrollY?r.scrollBarWidth:0)}r.titleSpaceNormal&&r.fixedHeader()}))},handleScrollBar:function(){var t=this;this.$nextTick((function(){if(t.$refs.tbody&&t.rebuildData&&0!==t.rebuildData.length){var e=t.$refs.tbody.$el,i=e.parentElement,n=e.offsetHeight,r=i.offsetHeight;t.isScrollX=Math.round(i.offsetWidth)<e.offsetWidth+(t.isScrollY?t.scrollBarWidth:0),t.isScrollY=!!t.bodyHeight&&r-(t.isScrollX?t.scrollBarWidth:0)<n}else if(t.isScrollY=!1,t.$refs.thead){var o=t.$refs.thead?t.$refs.thead.$el:"",l=o.parentElement;t.isScrollX=Math.round(l.offsetWidth)<o.offsetWidth+(t.isScrollY?t.scrollBarWidth:0)}}))},handleResize:function(){var t=this;this.titleSpan=!1,this.$nextTick((function(){var e=[],i=!t.cloneColumns.some((function(t){return!t.width&&0!==t.width}));t.tableWidth=i?t.cloneColumns.map((function(t){return t.width})).reduce((function(t,e){return t+e})):(0,o.default)((0,p.getStyle)(t.$el,"width"),10)-1,t.columnsWidth={},t.$nextTick((function(){var n={},r=-1;if(i&&(r=(0,p.findInx)(t.c,(function(t){return!t.width}))),t.cloneColumns.forEach((function(t,e){})),t.data.length){for(var l=t.$refs.tbody.$el.querySelectorAll("tbody tr")[0].querySelectorAll("td"),s=0;s<l.length;s++){var a=t.cloneColumns[s],c=(0,o.default)((0,p.getStyle)(l[s],"width"),10);s===r&&(c=(0,o.default)((0,p.getStyle)(l[s],"width"),10)-1),a.width?c=a.width||"":(e.push(a._index),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})),n[a._index]={width:c}}t.initWidth=(0,o.default)((0,p.getStyle)(t.$refs.tableWrap,"width"),10)||0,t.bodyRealHeight=(0,o.default)((0,p.getStyle)(t.$refs.tbody.$el,"height"),10)||0,t.headerRealHeight=(0,o.default)((0,p.getStyle)(t.$refs.header,"height"),10)||0,t.titleSpan=!0,t.columnsWidth=n}else{if(!t.$refs.thead)return;for(var d=t.$refs.thead.$el.querySelectorAll("thead tr")[0].querySelectorAll("th"),h=0;h<d.length;h++){var u=t.cloneColumns[h],f=(0,o.default)((0,p.getStyle)(d[h],"width"),10);h===r&&(f=(0,o.default)((0,p.getStyle)(d[h],"width"),10)-1),u&&(u&&u.width?f=u.width||"":f<100&&(f=100),t.cloneColumns[h]._width=f||"",t.tableWidth=t.cloneColumns.map((function(t){return t._width})).reduce((function(t,e){return t+e})),n[u._index]={width:f})}t.columnsWidth=n}t.$nextTick((function(){if(t.$refs.tbody&&t.rebuildData&&0!==t.rebuildData.length){var e=t.$refs.tbody.$el,i=e.parentElement,n=e.offsetHeight,r=i.offsetHeight;t.isScrollX=Math.round(i.offsetWidth)<e.offsetWidth+(t.isScrollY?t.scrollBarWidth:0),t.isScrollY=!!t.bodyHeight&&r-(t.isScrollX?t.scrollBarWidth:0)<n}else if(t.isScrollY=!1,t.$refs.thead){var o=t.$refs.thead?t.$refs.thead.$el:"",l=o.parentElement;t.isScrollX=Math.round(l.offsetWidth)<o.offsetWidth+(t.isScrollY?t.scrollBarWidth:0)}t.tableWidth=t.cloneColumns.map((function(t){return t._width})).reduce((function(t,e){return t+e}),0)}))})),t.bodyRealHeight=(0,o.default)((0,p.getStyle)(t.$refs.tbody.$el,"height"),10)}))},clickCurrentRow:function(t){var e=this;this.isSelectAll=null;var i=this.indexAndId[t.id];if(this.highlightRow){for(var n=!this.checkedObj[i]._isHighlight,r=0;r<this.checkedObj.length;r++)(this.checkedObj[r]._isHighlight||this.checkedObj[r].checked)&&(this.checkedObj[r]._isHighlight=!1,this.checkedObj[r].checked=!1);this.$set(this.checkedObj[i],"_isHighlight",!!this.rowSelectOnly||n),this.$set(this.checkedObj[i],"checked",!!this.rowSelectOnly||n)}this.$nextTick((function(){if(e.$emit("on-row-click",t),e.highlightRow&&e.$emit("on-current-change",e.checkedObj[i]._isHighlight?t:null),e.selectRoot)if(null!=t._parentId){for(var n=null,r=0;r<e.data.length;r++)if(e.data[r].id==t._parentId){n=e.data[r];break}e.$emit("on-select-root",e.checkedObj[i]._isHighlight?n:null)}else e.$emit("on-select-root",e.checkedObj[i]._isHighlight?t:null)}))},dblclickCurrentRow:function(t){var e=this;this.$nextTick((function(){e.$emit("on-row-dblclick",JSON.parse((0,l.default)(t)))}))},toggleExpand:function(t,e){var i=this,n=this.indexAndId[t.id];this.$set(this.checkedObj[n],"_isExpand",e),this.$nextTick((function(){i.bodyRealHeight=(0,o.default)((0,p.getStyle)(i.$refs.tbody.$el,"height"),10),i.$emit("on-expand",t,e);var n=i.$refs.tbody.$el,r=n.parentElement,l=n.offsetHeight,s=r.offsetHeight;i.isScrollX=Math.round(r.offsetWidth)<n.offsetWidth+(i.isScrollY?i.scrollBarWidth:0),i.isScrollY=!!i.bodyHeight&&s-(i.isScrollX?i.scrollBarWidth:0)<l}))},changeSelect:function(t,e){var i=this;this.isSelectAll=null,this.$nextTick((function(){i.$emit("on-select-change",i.getSelection(),i.getSelection(!0))}))},changeSelection:function(t,e){e?this.selection[t.id]=t:this.selection[t.id]&&delete this.selection[t.id]},clearSelected:function(){var t=this;for(var e in this.selection={},this.checkedObj)this.checkedObj.hasOwnProperty(e)&&(this.checkedObj[e].checked=!1);this.$nextTick((function(){t.$emit("on-select-change",[],[]),t.isSelectAll=!1}))},getSelection:function(t){var e=[],i=[];for(var n in this.checkedObj)this.checkedObj[n].checked&&i.push(this.checkedObj[n].id);var r=new s.default(i);return function t(i){i.forEach((function(i){r.has(i.id)&&e.push(i),i.children&&i.children.length&&t(i.children)}))}(this.rebuildData),t?(0,a.default)(r):JSON.parse((0,l.default)(e))},selectAll:function(t){var e=this,i=this;this.rebuildData&&0!=this.rebuildData.length&&(t&&function t(e,n,r){for(var o=0;o<e.length;o++)i.$set(e[o],n,r),i.setStatus(e[o],o),e[o].children&&e[o].children.length>0&&t(e[o].children,n,r)}(this.rebuildData,"checked",t),this.checkedObj.forEach((function(i,n){e.$set(i,"checked",t)})))},checkAll:function(t,e,i){var n=this;this.rebuildData&&0!==this.rebuildData.length&&(this.rebuildData.forEach((function(r,o){n.$set(r,t,i),n.updateChildrenCheck(r.children,t,e,i)})),this.$nextTick((function(){n.$emit("on-checked-all",n.rebuildData,t,i)})))},updateChildrenCheck:function(t,e,i,n){var r=this;t.forEach((function(o,l){r.$set(t[l],e,n),"1"===o[i]&&r.$set(t[l],e,!1),o.children&&o.children.length>0&&r.updateChildrenCheck(o.children,e,i,n)}))},checkedChange:function(t,e,i){this.$emit("on-checked-change",t,e,i)},fixedHeader:function(){var t=this;this.height?this.$nextTick((function(){t.headerRealHeight=(0,o.default)((0,p.getStyle)(t.$refs.header,"height"),10)||0;var e=(0,o.default)((0,p.getStyle)(t.$refs.header,"height"),10)||0;t.bodyHeight=t.height-e})):this.bodyHeight=0},handleBodyScroll:function(t){this.buttomNum=(0,p.getBarBottom)(t.target,this.scrollBarWidth),this.showHeader&&(this.$refs.header.scrollLeft=t.target.scrollLeft),this.isLeftFixed&&(this.$refs.fixedBody.scrollTop=t.target.scrollTop),this.isRightFixed&&(this.$refs.fixedRightBody.scrollTop=t.target.scrollTop)},makeColumns:function(){var t=(0,p.deepCopy)(this.columns),e=[],i=[],n=[];return t.forEach((function(t,r){t._index=r,t._columnKey=b++,t._width=t.width?t.width:"",t._sortType="normal",t._filterVisible=!1,t._isFiltered=!1,t._filterChecked=[],t.hiddenCol&&"false"!=t.hiddenCol||(t.fixed&&"left"===t.fixed?e.push(t):t.fixed&&"right"===t.fixed?i.push(t):n.push(t))})),e.concat(n).concat(i)},initResize:function(){var t=this;this.$nextTick((function(){t.initWidth=(0,o.default)((0,p.getStyle)(t.$refs.tableWrap,"width"),10)||0}))},deepTraversal:function(t,e,i,n){for(var r=0;r<t.length;r++){if(t[r].id==e){this.$set(t[r],n,i),this.setStatus(t[r],i);break}t[r].children&&t[r].children.length>0&&this.deepTraversal(t[r].children,e,i,n)}},expandRow:function(t,e){if(this.data&&0!=this.data.length){var i=this.indexAndId[t];this.checkedObj[i]?(this.checkedObj[i]._collectionState||this.deepTraversal(this.rebuildData,t,e,"expand"),this.$set(this.checkedObj[i],"_isExpand",e)):this.deepTraversal(this.rebuildData,t,e,"expand")}},expandAll:function(t){var e=this;this.checkedObj.forEach((function(i,n){e.$set(i,"_isExpand",t)}))},selectRow:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.data&&0!=this.data.length){var i=this.indexAndId[t];this.checkedObj[i]?this.$set(this.checkedObj[i],"_isHighlight",e):this.deepTraversal(this.rebuildData,t,e,"highlight")}},checkedRow:function(t){var e=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.data&&0!=this.data.length){if(this.checkStrictly){var n=this.indexAndId[t];this.checkedObj[n]?this.$set(this.checkedObj[n],"checked",i):this.deepTraversal(this.rebuildData,t,i,"checked")}else{var r=this.indexAndId[t],o=null;o=this.checkedObj[r]?this.checkedObj[r].row:this.checkedDown(this.rebuildData,t,i),this.linkageChecked(o,i)}this.$nextTick((function(){e.$emit("on-select-change",e.getSelection(),e.getSelection(!0))}))}},linkageChecked:function(t,e){var i=this,n=this.indexAndId[t.id];this.checkedObj[n]?this.$set(this.checkedObj[n],"checked",e):this.setStatus(t,e),t.children&&t.children.length>0&&t.children.forEach((function(t,n){i.linkageChecked(t,e)}))},setStatus:function(t,e){this.indexAndId[t.id]||0===this.indexAndId[t.id]||(this.indexAndId[t.id]=this.checkedObj.length,this.checkedObj.push({id:t.id,checked:void 0!==e?e:"true"===String(t.checked),_isExpand:"true"===String(t.expand)||null,_collectionState:t.expand||!1,_parentId:t._parentId,_isHighlight:t.highlight||!1,_isHover:!1,row:t}))},checkedDown:function(t,e,i){var n=null;return function t(e,i){for(var r=0;r<e.length&&!n;r++){if(e[r].id==i){n=e[r];break}e[r].children&&e[r].children.length>0&&t(e[r].children,i)}}(t,e),n},forceUpdate:function(){this.indexAndId={},this.checkedObj=[],this.isSelectAll=null,this.updateKey++},getAllData:function(){return this.rebuildData}},created:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui simpletreegrid lifecycle created"),this.context||(this.currentContext=this.$parent),this.showSlotHeader=void 0!==this.$slots.header},mounted:function(){var t=this;window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui simpletreegrid lifecycle mounted"),this.showHeader&&("small"==this.size?this.headerRealHeight=35:"large"==this.size?this.headerRealHeight=48:this.headerRealHeight=42,this.customSwitch&&(this.headerRealHeight=(0,p.calculateEditgirdHeaderHeight)(this.size,this.customHeight))),this.columns&&this.columns[0]&&this.columns[0].type&&"selection"==this.columns[0].type&&(this.selectType=!0),this.fixedHeader(),this.handleResize(),this.$nextTick((function(){t.ready=!0,t.initWidth=(0,o.default)((0,p.getStyle)(t.$refs.tableWrap,"width"),10)||0})),(0,g.on)(window,"resize",this.handleResize),(0,g.on)(window,"resize",this.initResize),this.$on("on-visible-change",(function(e){e&&(t.handleResize(),t.fixedHeader())})),this.rebuildData=this.data},updated:function(){this.$nextTick((function(){0==this.rebuildData.length&&(this.noDataAdaptiveBodyHeight=this.$refs["no-data-tiptext"].scrollHeight)}))},activated:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui simpletreegrid lifecycle activated"),this.handleResize(),(0,g.on)(window,"resize",this.handleResize)},deactivated:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui simpletreegrid lifecycle deactivated"),(0,g.off)(window,"resize",this.handleResize)},beforeDestroy:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui simpletreegrid lifecycle beforeDestroy"),(0,g.off)(window,"resize",this.handleResize),(0,g.off)(window,"resize",this.initResize),this.$off("on-visible-change")},watch:{data:{handler:function(t){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui simpletreegrid watch data change"),this.selection={},0!==this.rebuildData.length&&0!==t.length||(this.$refs.body&&(this.$refs.body.scrollLeft=0),this.$refs.header&&(this.$refs.header.scrollLeft=0)),this.rebuildData=this.data,this.handleResize()},deep:!0},columns:{handler:function(){window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui simpletreegrid watch data change"),this.cloneColumns=this.makeColumns(),this.handleResize()},deep:!0},getHeaderHeightFlag:function(t){t&&this.fixedHeader()},height:function(){this.fixedHeader(),this.handleResize()},buttomNum:function(t){this.$emit("on-scroll",t)},isSelectAll:function(t){null!=t&&(this.selectAll(t),this.$emit("on-select-all",t))},checkedObj:function(t,e){this.isCheckbox&&null!=this.isSelectAll&&this.selectAll(this.isSelectAll)},isScrollY:function(){this.handleResize()},isScrollX:function(){}}};e.default=y},577:function(t,e,i){"use strict";i.r(e);var n=i(578),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},578:function(t,e,i){"use strict";var n=i(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i(53)),o=n(i(15)),l=n(i(96)),s=n(i(1080)),a=i(84),c=i(21),d=n(i(697)),h=n(i(49)),u={name:"TableHead",mixins:[d.default,h.default],components:{Checkbox:l.default,renderHeader:s.default},props:{titleSpaceNormal:Boolean,prefixCls:String,styleObject:Object,columns:Array,dataLength:[Number,String],columnsWidth:Object,headSelection:Boolean,canDrag:Boolean,canMove:Boolean,fixed:String,multiLevel:Array},data:function(){return{titleSpan:!1,draggingColumn:null,dragging:!1,dragState:{},moving:!1,movingColumn:null,cloumnsLeft:[],multiData:null}},computed:{isSelectAll:function(){var t=!0;this.dataLength<1&&(t=!1);for(var e=this.$parent.checkedObj,i=0;i<e.length;i++)if(!e[i].checked){t=!1;break}return t}},watch:{columns:{deep:!0,handler:function(){this.getLeftWidth()}},multiLevel:function(t){this.multiData=this.multiLevel}},mounted:function(){var t=this;this.getLeftWidth(),this.multiData=this.multiLevel,(0,a.on)(window,"resize",this.getLeftWidth),this.$nextTick((function(){t.titleSpaceNormal&&(t.titleSpan=!0),setTimeout((function(){t.$parent.fixedHeader()}),200)}))},beforeDestroy:function(){(0,a.off)(window,"resize",this.getLeftWidth)},methods:{isCheckAll:function(t){var e=!0;this.dataLength<1&&(e=!1);for(var i=this.$parent.rebuildData,n=0;n<i.length;n++)i[n][t]||(e=!1);return e},checkAll:function(t,e,i){this.$parent.checkAll(t,e,i)},aliCls:function(t){var e;return[(e={},(0,o.default)(e,"".concat(t.className),t.className),(0,o.default)(e,"".concat(this.prefixCls,"-column-").concat(t.align),t.align),e)]},selectAll:function(t){var e=!this.isSelectAll;this.$parent.isSelectAll=e},handleSortByHead:function(t){},getLeftWidth:function(){var t=this;this.$nextTick((function(){for(var e=t.columns,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(!e.fixed&&!this.$isServer&&e&&(this.canDrag||this.canMove)){var o=this;if(this.draggingColumn){this.dragging=!0,this.$parent.resizeProxyVisible=!0;for(var l=this.$parent,s=l.$el.getBoundingClientRect().left,a=this.$el.querySelector("th.h-ui-".concat(e.key)),d=a.getBoundingClientRect(),h=d.left-s+30,u=null,f=this.columns.length-1;f>=0;f--)if("right"!=this.columns[f].fixed){u=f;break}var p=this.findObj(t,"TR").children[u].offsetWidth,g=this.$parent.initWidth,v=this.$el.offsetWidth;(0,c.addClass)(a,"noclick"),this.dragState={startMouseLeft:t.clientX,startLeft:d.right-s,startColumnLeft:d.left-s,tableLeft:s};var x=l.$refs.resizeProxy;x.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var b=function(t){var e=t.clientX-n.dragState.startMouseLeft,i=n.dragState.startLeft+e;x.style.left=Math.max(h,i)+"px"},y=function t(){if(o.dragging){var s=o.dragState,d=s.startColumnLeft,h=s.startLeft,f=(0,r.default)(x.style.left,10),y=f-d,m=e.key,S=f-h;S>=0?u===i?p+=S:p=p-S>=80?p-S:80:n.$parent.isComplementColWidth?v+1>=g?v+1+S<=g?u!==i?p=p+g-v-S:(p+=S,y=n.columns[i-1]._width-S,m=n.columns[i-1].key):u===i&&(p+=S):p+=S:u===i&&(p+=S),0!==l.bodyHeight&&u==n.columns.length&&(p-=(0,c.getScrollBarSize)()),l.changeWidth(y,m,p,u),document.body.style.cursor="",o.dragging=!1,o.draggingColumn=!1,o.dragState={},l.resizeProxyVisible=!1}document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",t),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){(0,c.removeClass)(a,"noclick")}),0)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",y),this.$once("hook:beforeDestory",(function(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",y)}))}if(this.movingColumn){this.moving=!0,(0,c.addClass)(document.body,"useSelect"),this.$parent.moveProxyVisible=!0;var m=this.findObj(t,"TH").cloneNode(!0);m.childNodes[0].style.width=e._width+"px",(0,c.addClass)(m,"move-proxy-th");var S=this.$parent,_=S.$el,w=_.getBoundingClientRect().left,k=_.getBoundingClientRect().top,C=this.$el.querySelector("th.h-ui-".concat(e.key)),O=C.getBoundingClientRect();(0,c.addClass)(C,"noclick"),this.moveState={startMouseLeft:t.clientX,startLeft:O.left-w-1,tableLeft:w};var j=S.$refs.moveProxy,$=S.$refs.resizeProxy;j.style.left=this.moveState.startLeft+"px",j.style.top=t.clientY-k-20+"px",j.appendChild(m);var H,T=Number(i),W=function(t){S.resizeProxyVisible=!0;var n=t.clientX-o.moveState.startMouseLeft,r=o.moveState.startLeft+n;if(n>0){var l=o.cloumnsLeft[i]+n;for(var s in l+=e._width,o.cloumnsLeft)l>o.cloumnsLeft[s]+30&&(T=Number(s));H=o.$el.querySelectorAll("th")[T].getBoundingClientRect().right-w-1}if(n<0){var a=o.cloumnsLeft[i]+n;for(var c in o.cloumnsLeft)a>o.cloumnsLeft[c]-50&&(T=Number(c));H=o.$el.querySelectorAll("th")[T].getBoundingClientRect().left-w-1}j.style.left=r+"px",j.style.top=t.clientY-k-20+"px",$.style.left=H+"px"};document.addEventListener("mousemove",W),document.addEventListener("mouseup",(function t(){o.moving&&(o.sortCloumn(i,T,e._index),document.body.style.cursor="",(0,c.removeClass)(document.body,"useSelect"),o.moving=!1,o.movingColumn=null,o.moveState={},j.removeChild(m),S.resizeProxyVisible=!1,S.moveProxyVisible=!1),document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",t),setTimeout((function(){(0,c.removeClass)(C,"noclick")}),0)}))}}},mousemove:function(t,e,i){if(e&&!(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)}},findObj:function(t,e){for(var i=t.target;i&&i.tagName!=e;)i=i.parentElement;return i},mouseout:function(){this.$isServer||(document.body.style.cursor="")},sortCloumn:function(t,e,i){if(!this.columns[e].fixed){var n=this.columns,r=n[t];n.splice(t,1),n.splice(e,0,r),this.$emit("on-move",i,e)}},handleClick:function(t){t.stopPropagation()}}};e.default=u},579:function(t,e,i){"use strict";i.r(e);var n=i(580),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},580: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=n(i(1082)),l=n(i(697)),s=n(i(47)),a=n(i(96)),c=null,d={name:"TreeTable",mixins:[l.default],data:function(){return{titleSpan:!1,collectionState:[],_parent:null}},components:{Cell:o.default,Icon:s.default,Checkbox:a.default},props:{titleSpaceNormal:{type:Boolean,default:!1},styleObject:Object,columns:Array,indent:Number,checkStrictly:Boolean,data:Array,prefixCls:String,isCheckbox:Boolean,columnsWidth:Object,checkedObj:Array,indexAndId:Object,selectRoot:Boolean,bodyRealHeight:[Number,String],height:[Number,String],tableWidth:[Number,String],initWidth:[Number,String],scrollBarWidth:[Number,String],rowSelect:Boolean,headSelection:Boolean,fixed:String,showTitle:Boolean},computed:{indentCls:function(){var t={};return t.marginLeft=20*this.indent+"px",t}},methods:{titleText:function(t,e){if(this.showTitle&&"html"==e.type){var i=document.createElement("div");return i.innerHTML=t,i.textContent}},rowClasses:function(t,e){var i,n=this.indexAndId[t];return[this.rowClsName(t,e),(i={},(0,r.default)(i,"".concat(this.prefixCls,"-row-highlight"),this.checkedObj[n]&&this.checkedObj[n]._isHighlight),(0,r.default)(i,"".concat(this.prefixCls,"-row-hover"),this.checkedObj[n]&&this.checkedObj[n]._isHover),i)]},rowClsName:function(t,e){if(this._parent)return this._parent.rowClsName(t,e)},isExpanded:function(t,e,i){var n=this.indexAndId[t];return this.checkedObj[n]&&null!=this.checkedObj[n]._isExpand&&i.children&&i.children.length>0},expandStl:function(t,e,i){var n=this.indexAndId[t],r={};return this.checkedObj[n]&&this.checkedObj[n]._isExpand?r.display="block":r.display="none",r},checkValue:function(t){var e=this.indexAndId[t];return this.checkedObj[e]&&this.checkedObj[e].checked},iconClass:function(t,e){var i=this.indexAndId[t];return["".concat(this.prefixCls,"-icon-click"),(0,r.default)({},"".concat(this.prefixCls,"-icon-click-expanded"),this.checkedObj[i]&&this.checkedObj[i]._isExpand)]},handleclick:function(){},clickCurrentRow:function(t,e,i){var n=this;c&&clearTimeout(c),c=setTimeout((function(){if(n.rowSelect?n.changeSelect(e,t,i):n._parent.clickCurrentRow(t),n.selectRoot){var r=n.checkedObj[n.indexAndId[t.id]]._isHighlight;n.indent>0&&n.data.forEach((function(t){n._parent.changeCheckedObj(n.indexAndId[t.id],r,"_isHighlight")})),null!=t._parentId&&n.selectRootUp(t._parentId,r),t.children&&t.children.length>0&&n.updateTreeDown(t.children,r,"_isHighlight")}}),300)},dblclickCurrentRow:function(t,e,i){c&&clearTimeout(c),this.rowSelect?this.changeSelect(e,t,i):this._parent.dblclickCurrentRow(t)},selectRootUp:function(t,e){this._parent.changeCheckedObj(this.indexAndId[t],e,"_isHighlight")},toggleExpand:function(t,e,i){var n,r=this,o=this.indexAndId[e.id];if(null==this.checkedObj[o]._isExpand)e.children.forEach((function(t,e){r.setStatus(t,e)})),n=!0;else{var l=this.findObj(i,"TR").nextElementSibling;n=!(!l||"none"!=l.style.display)}this._parent.toggleExpand(e,n)},findObj:function(t,e){for(var i=t.target;i&&i.tagName!=e;)i=i.parentElement;return i},findParent:function(){for(var t=this,e=0;e<=this.indent;)t=t.$parent,e++;return t},changeSelect:function(t,e,i){this._parent.changeCheckedObj(this.indexAndId[t],null);var n=this.checkedObj[this.indexAndId[t]].checked;this._parent.changeSelect(e),this.checkStrictly||(null!=e._parentId&&this.updateTreeUp(e._parentId),e.children&&e.children.length>0&&this.updateTreeDown(e.children,n))},updateTreeUp:function(t){for(