UNPKG

h_ui

Version:

A Vue.js 2.0 UI Components Framework

1 lines 197 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(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/mixins/emitter.js"),require("h_ui/dist/lib/util/dom.js"),require("h_ui/dist/lib/Checkbox.js"),require("h_ui/dist/lib/Button.js"),require("h_ui/dist/lib/directives/clickoutside.js"),require("h_ui/dist/lib/Input.js"),require("h_ui/dist/lib/Spin.js"),require("h_ui/dist/lib/Poptip.js"),require("h_ui/dist/lib/Radio.js"),require("h_ui/dist/lib/util/csv.js"),require("h_ui/dist/lib/Select.js"),require("h_ui/dist/lib/DatePicker.js"),require("h_ui/dist/lib/Typefield.js"),require("h_ui/dist/lib/SelectTree.js"),require("h_ui/dist/lib/TimePicker.js"),require("h_ui/dist/lib/Cascader.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/mixins/emitter.js","h_ui/dist/lib/util/dom.js","h_ui/dist/lib/Checkbox.js","h_ui/dist/lib/Button.js","h_ui/dist/lib/directives/clickoutside.js","h_ui/dist/lib/Input.js","h_ui/dist/lib/Spin.js","h_ui/dist/lib/Poptip.js","h_ui/dist/lib/Radio.js","h_ui/dist/lib/util/csv.js","h_ui/dist/lib/Select.js","h_ui/dist/lib/DatePicker.js","h_ui/dist/lib/Typefield.js","h_ui/dist/lib/SelectTree.js","h_ui/dist/lib/TimePicker.js","h_ui/dist/lib/Cascader.js"],t):"object"==typeof exports?exports["h_ui/lib"]=t(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/mixins/emitter.js"),require("h_ui/dist/lib/util/dom.js"),require("h_ui/dist/lib/Checkbox.js"),require("h_ui/dist/lib/Button.js"),require("h_ui/dist/lib/directives/clickoutside.js"),require("h_ui/dist/lib/Input.js"),require("h_ui/dist/lib/Spin.js"),require("h_ui/dist/lib/Poptip.js"),require("h_ui/dist/lib/Radio.js"),require("h_ui/dist/lib/util/csv.js"),require("h_ui/dist/lib/Select.js"),require("h_ui/dist/lib/DatePicker.js"),require("h_ui/dist/lib/Typefield.js"),require("h_ui/dist/lib/SelectTree.js"),require("h_ui/dist/lib/TimePicker.js"),require("h_ui/dist/lib/Cascader.js")):e["h_ui/lib"]=t(e["h_ui/dist/lib/util/tools.js"],e["h_ui/dist/lib/util/global.js"],e["h_ui/dist/lib/Icon.js"],e["h_ui/dist/lib/mixins/locale.js"],e["h_ui/dist/lib/mixins/emitter.js"],e["h_ui/dist/lib/util/dom.js"],e["h_ui/dist/lib/Checkbox.js"],e["h_ui/dist/lib/Button.js"],e["h_ui/dist/lib/directives/clickoutside.js"],e["h_ui/dist/lib/Input.js"],e["h_ui/dist/lib/Spin.js"],e["h_ui/dist/lib/Poptip.js"],e["h_ui/dist/lib/Radio.js"],e["h_ui/dist/lib/util/csv.js"],e["h_ui/dist/lib/Select.js"],e["h_ui/dist/lib/DatePicker.js"],e["h_ui/dist/lib/Typefield.js"],e["h_ui/dist/lib/SelectTree.js"],e["h_ui/dist/lib/TimePicker.js"],e["h_ui/dist/lib/Cascader.js"])}(window,(function(e,t,i,n,r,o,a,s,l,u,c,d,h,f,p,m,g,y,b,v){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/dist/lib/",i(i.s=1150)}({0:function(e,t){var i=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},1:function(e,t){var i=e.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(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},100:function(e,t,i){i(59),i(76),e.exports=i(41).f("iterator")},102:function(e,t,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(e){}e.exports=function(e,t){if(!t&&!r)return!1;var i=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:i=!0}},o[n]=function(){return a},e(o)}catch(e){}return i}},103:function(e,t,i){var n=i(16),r=i(87),o=i(88),a=i(12),s=i(42),l=i(89),u={},c={};(t=e.exports=function(e,t,i,d,h){var f,p,m,g,y=h?function(){return e}:l(e),b=n(i,d,t?2:1),v=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(o(y)){for(f=s(e.length);f>v;v++)if((g=t?b(a(p=e[v])[0],p[1]):b(e[v]))===u||g===c)return g}else for(m=y.call(e);!(p=m.next()).done;)if((g=r(m,b,p.value,t))===u||g===c)return g}).BREAK=u,t.RETURN=c},104:function(e,t,i){e.exports=i(113)},105:function(e,t,i){e.exports=i(114)},106:function(e,t,i){e.exports=i(116)},107:function(e,t,i){i(59),i(108),e.exports=i(0).Array.from},108:function(e,t,i){"use strict";var n=i(16),r=i(3),o=i(20),a=i(87),s=i(88),l=i(42),u=i(68),c=i(89);r(r.S+r.F*!i(102)((function(e){Array.from(e)})),"Array",{from:function(e){var t,i,r,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,y=0,b=c(h);if(g&&(m=n(m,p>2?arguments[2]:void 0,2)),null==b||f==Array&&s(b))for(i=new f(t=l(h.length));t>y;y++)u(i,y,g?m(h[y],y):h[y]);else for(d=b.call(h),i=new f;!(r=d.next()).done;y++)u(i,y,g?a(d,m,[r.value,y],!0):r.value);return i.length=y,i}})},109:function(e,t,i){e.exports=i(120)},11:function(e,t,i){var n=i(5),r=i(14);e.exports=i(2)?function(e,t,i){return n.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},111:function(e,t,i){var n=i(149),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();e.exports=o},112:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},113:function(e,t,i){i(66),e.exports=i(0).Object.getOwnPropertySymbols},114:function(e,t,i){i(115);var n=i(0).Object;e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)}},115:function(e,t,i){var n=i(13),r=i(46).f;i(58)("getOwnPropertyDescriptor",(function(){return function(e,t){return r(n(e),t)}}))},1150:function(e,t,i){"use strict";var n=i(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(i(1151)),o=i(32);r.default.install=function(e,t){(0,o.setGlobal)(e,t),e.component("TreeGird",r.default),e.component("HTreeGird",r.default)};var a=r.default;t.default=a},1151:function(e,t,i){"use strict";var n=i(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={mixins:[n(i(381)).default],props:{typeName:{default:"treeGird"},customSwitch:{type:Boolean,default:!1},customBaseItemHeight:{type:Number}},data:function(){return{}},methods:{},mounted:function(){},beforeDestroy:function(){}};t.default=r},116:function(e,t,i){i(117),e.exports=i(0).Object.getOwnPropertyDescriptors},117:function(e,t,i){var n=i(3),r=i(118),o=i(13),a=i(46),s=i(68);n(n.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,i,n=o(e),l=a.f,u=r(n),c={},d=0;u.length>d;)void 0!==(i=l(n,t=u[d++]))&&s(c,t,i);return c}})},118:function(e,t,i){var n=i(44),r=i(36),o=i(12),a=i(1).Reflect;e.exports=a&&a.ownKeys||function(e){var t=n.f(o(e)),i=r.f;return i?t.concat(i(e)):t}},119:function(e,t){e.exports=s},12:function(e,t,i){var n=i(6);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},120:function(e,t,i){i(121),e.exports=i(0).parseFloat},121:function(e,t,i){var n=i(3),r=i(122);n(n.G+n.F*(parseFloat!=r),{parseFloat:r})},122:function(e,t,i){var n=i(1).parseFloat,r=i(51).trim;e.exports=1/n(i(35)+"-0")!=-1/0?function(e){var t=r(String(e),3),i=n(t);return 0===i&&"-"==t.charAt(0)?-0:i}:n},124:function(e,t){e.exports=l},125:function(e,t,i){var n=i(61),r=i(63);function o(t){return e.exports=o="function"==typeof n&&"symbol"==typeof r?function(e){return typeof e}:function(e){return e&&"function"==typeof n&&e.constructor===n&&e!==n.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},13:function(e,t,i){var n=i(50),r=i(18);e.exports=function(e){return n(r(e))}},131:function(e,t){e.exports=function(e,t,i,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(i+": incorrect invocation!");return e}},132:function(e,t,i){var n=i(11);e.exports=function(e,t,i){for(var r in t)i&&e[r]?e[r]=t[r]:n(e,r,t[r]);return e}},136:function(e,t,i){var n=i(111).Symbol;e.exports=n},138:function(e,t,i){var n=i(136),r=i(154),o=i(155),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):o(e)}},139:function(e,t,i){var n=i(6);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},14:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},141:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},142:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},143:function(e,t,i){e.exports=i(144)},144:function(e,t,i){i(145),e.exports=i(0).Object.assign},145:function(e,t,i){var n=i(3);n(n.S+n.F,"Object",{assign:i(146)})},146:function(e,t,i){"use strict";var n=i(2),r=i(19),o=i(36),a=i(28),s=i(20),l=i(50),u=Object.assign;e.exports=!u||i(7)((function(){var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||Object.keys(u({},t)).join("")!=n}))?function(e,t){for(var i=s(e),u=arguments.length,c=1,d=o.f,h=a.f;u>c;)for(var f,p=l(arguments[c++]),m=d?r(p).concat(d(p)):r(p),g=m.length,y=0;g>y;)f=m[y++],n&&!h.call(p,f)||(i[f]=p[f]);return i}:u},148:function(e,t,i){"use strict";var n=i(1),r=i(0),o=i(5),a=i(2),s=i(9)("species");e.exports=function(e){var t="function"==typeof r[e]?r[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},149:function(e,t,i){(function(t){var i="object"==typeof t&&t&&t.Object===Object&&t;e.exports=i}).call(this,i(112))},15:function(e,t,i){var n=i(38);e.exports=function(e,t,i){return t in e?n(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},151:function(e,t,i){"use strict";var n=i(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(i(53)),o=n(i(15)),a=i(21),s={methods:{alignCls:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";return i.cellClassName&&e.key&&i.cellClassName[e.key]&&(n=i.cellClassName[e.key]),["h-ui-".concat(e.key),(t={},(0,o.default)(t,"".concat(n),n),(0,o.default)(t,"".concat(e.className),e.className),(0,o.default)(t,"".concat(this.prefixCls,"-column-").concat(e.align),e.align),(0,o.default)(t,"".concat(this.prefixCls,"-head-column-").concat(e.headAlign),e.headAlign),(0,o.default)(t,"".concat(this.prefixCls,"-hidden"),"left"===this.fixed&&"left"!==e.fixed||"right"===this.fixed&&"right"!==e.fixed||!this.fixed&&e.fixed&&("left"===e.fixed||"right"===e.fixed)),(0,o.default)(t,"".concat(this.prefixCls,"-stripe-light"),"treeGird"===this.typeName&&i.hasOwnProperty("visibleKey")&&i.visibleKey%2==0),(0,o.default)(t,"".concat(this.prefixCls,"-stripe-dark"),"treeGird"===this.typeName&&i.hasOwnProperty("visibleKey")&&i.visibleKey%2==1),(0,o.default)(t,"".concat(this.prefixCls,"-cell-overflow-visible"),e.hasOwnProperty("type")&&-1!==["index","selection","radio"].indexOf(e.type)),t)]},isPopperShow:function(e){return e.filters&&(!this.fixed&&!e.fixed||"left"===this.fixed&&"left"===e.fixed||"right"===this.fixed&&"right"===e.fixed)},setCellWidth:function(e,t,i){var n="";if(e.width?n=e.width:this.columnsWidth[e._index]&&(n=this.columnsWidth[e._index].width),this.columns.length===t+1&&i&&0!==this.$parent.bodyHeight&&this.$parent.data.length>0&&"groupTable"!=this.$parent.typeName&&(n+=this.$parent.scrollBarWidth,"treeGird"!=this.$parent.typeName&&"editGird"!=this.$parent.typeName||"GirdHead"!=this.$options.name||!((0,r.default)(this.styleObject.width,10)<=this.$parent.$el.clientWidth||(0,r.default)(this.$parent.bodyStyle.height,10)>=this.$parent.$refs.tbody.$el.clientHeight)||(n-=this.$parent.scrollBarWidth)),this.columns.length===t+1&&n&&!i&&"groupTable"==this.$parent.typeName&&this.$parent.height>0){var o=this.columns.slice(0,this.columns.length-1).reduce((function(e,t){return e+(t._width||0)}),0)+n;if(this.$parent.bodyHeight<this.$parent.bodyRealHeight)this.$parent.initWidth-o<=this.$parent.scrollBarWidth&&(o>=this.$parent.initWidth?n-=this.$parent.scrollBarWidth:this.$parent.initWidth-o===this.$parent.scrollBarWidth?n--:n-=1+this.$parent.scrollBarWidth-Math.min(this.$parent.initWidth-o,this.$parent.scrollBarWidth));else{var s=this.$parent.bodyHeight-this.$parent.bodyRealHeight;if(o>=this.$parent.initWidth)if(s<this.$parent.scrollBarWidth&&o!==this.$parent.initWidth){var l=n-Math.min(Math.max(this.$parent.scrollBarWidth-o+this.$parent.initWidth,0),17);o-n+l>=this.$parent.initWidth&&(n=l)}else o===this.$parent.initWidth&&n--}}this.columns.length===t+1&&n&&i&&"groupTable"==this.$parent.typeName&&this.$parent.height>0&&(this.columns.slice(0,this.columns.length-1).reduce((function(e,t){return e+(t._width||0)}),0)+n>=this.$parent.initWidth&&this.$parent.bodyHeight-this.$parent.bodyRealHeight<this.$parent.scrollBarWidth&&(n+=this.$parent.scrollBarWidth));"right"===this.fixed&&((0,a.findInx)(this.columns,(function(e){return"right"===e.fixed}))===t&&(n+=this.$parent.scrollBarWidth));return"0"===n&&(n=""),n},convertTreeData:function(e,t){for(var i={},n={},r=0;r<e.length;r++){var o=e[r];o.id=o[t.keyField],o.parentId=o[t.parentKeyField],o.expanded=!!o[t.expanded],o.checked=!!o[t.checked],o.indeterminate=!!o[t.indeterminate],o.children=[],i[o.id]=o,n[o.parentId]?n[o.parentId].push(o):n[o.parentId]=[o];var a=n[o.id];a&&(o.children=a);var s=i[o.parentId];s&&s.children.push(o)}return n[t.rootParentId]}}};t.default=s},152:function(e,t){e.exports=u},153:function(e,t){e.exports=c},154:function(e,t,i){var n=i(136),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),i=e[s];try{e[s]=void 0;var n=!0}catch(e){}var r=a.call(e);return n&&(t?e[s]=i:delete e[s]),r}},155:function(e,t){var i=Object.prototype.toString;e.exports=function(e){return i.call(e)}},156:function(e,t,i){"use strict";var n=i(5).f,r=i(48),o=i(132),a=i(16),s=i(131),l=i(103),u=i(55),c=i(81),d=i(148),h=i(2),f=i(62).fastKey,p=i(139),m=h?"_s":"size",g=function(e,t){var i,n=f(t);if("F"!==n)return e._i[n];for(i=e._f;i;i=i.n)if(i.k==t)return i};e.exports={getConstructor:function(e,t,i,u){var c=e((function(e,n){s(e,c,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[m]=0,null!=n&&l(n,i,e[u],e)}));return o(c.prototype,{clear:function(){for(var e=p(this,t),i=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var i=p(this,t),n=g(i,e);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[m]--}return!!n},forEach:function(e){p(this,t);for(var i,n=a(e,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(e){return!!g(p(this,t),e)}}),h&&n(c.prototype,"size",{get:function(){return p(this,t)[m]}}),c},def:function(e,t,i){var n,r,o=g(e,t);return o?o.v=i:(e._l=o={i:r=f(t,!0),k:t,v:i,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[m]++,"F"!==r&&(e._i[r]=o)),e},getEntry:g,setStrong:function(e,t,i){u(e,t,(function(e,i){this._t=p(e,t),this._k=i,this._l=void 0}),(function(){for(var e=this,t=e._k,i=e._l;i&&i.r;)i=i.p;return e._t&&(e._l=i=i?i.n:e._t._f)?c(0,"keys"==t?i.k:"values"==t?i.v:[i.k,i.v]):(e._t=void 0,c(1))}),i?"entries":"values",!i,!0),d(t)}}},157:function(e,t,i){"use strict";var n=i(1),r=i(3),o=i(62),a=i(7),s=i(11),l=i(132),u=i(103),c=i(131),d=i(6),h=i(37),f=i(5).f,p=i(158)(0),m=i(2);e.exports=function(e,t,i,g,y,b){var v=n[e],x=v,_=y?"set":"add",w=x&&x.prototype,C={};return m&&"function"==typeof x&&(b||w.forEach&&!a((function(){(new x).entries().next()})))?(x=t((function(t,i){c(t,x,e,"_c"),t._c=new v,null!=i&&u(i,y,t[_],t)})),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var t="add"==e||"set"==e;!(e in w)||b&&"clear"==e||s(x.prototype,e,(function(i,n){if(c(this,x,e),!t&&b&&!d(i))return"get"==e&&void 0;var r=this._c[e](0===i?0:i,n);return t?this:r}))})),b||f(x.prototype,"size",{get:function(){return this._c.size}})):(x=g.getConstructor(t,e,y,_),l(x.prototype,i),o.NEED=!0),h(x,e),C[e]=x,r(r.G+r.W+r.F,C),b||g.setStrong(x,e,y),x}},158:function(e,t,i){var n=i(16),r=i(50),o=i(20),a=i(42),s=i(159);e.exports=function(e,t){var i=1==e,l=2==e,u=3==e,c=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,g,y=o(t),b=r(y),v=n(s,p,3),x=a(b.length),_=0,w=i?f(t,x):l?f(t,0):void 0;x>_;_++)if((h||_ in b)&&(g=v(m=b[_],_,y),e))if(i)w[_]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return _;case 2:w.push(m)}else if(c)return!1;return d?-1:u||c?c:w}}},159:function(e,t,i){var n=i(160);e.exports=function(e,t){return new(n(e))(t)}},16:function(e,t,i){var n=i(27);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)}}return function(){return e.apply(t,arguments)}}},160:function(e,t,i){var n=i(6),r=i(57),o=i(9)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),n(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},161:function(e,t,i){var n=i(86),r=i(162);e.exports=function(e){return function(){if(n(this)!=e)throw TypeError(e+"#toJSON isn't generic");return r(this)}}},162:function(e,t,i){var n=i(103);e.exports=function(e,t){var i=[];return n(e,!1,i.push,i,t),i}},163:function(e,t,i){"use strict";var n=i(3);e.exports=function(e){n(n.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},164:function(e,t,i){"use strict";var n=i(3),r=i(27),o=i(16),a=i(103);e.exports=function(e){n(n.S,e,{from:function(e){var t,i,n,s,l=arguments[1];return r(this),(t=void 0!==l)&&r(l),null==e?new this:(i=[],t?(n=0,s=o(l,arguments[2],2),a(e,!1,(function(e){i.push(s(e,n++))}))):a(e,!1,i.push,i),new this(i))}})}},165:function(e,t,i){"use strict";(e.exports={}).forEach=function(e,t){for(var i=0;i<e.length;i++){var n=t(e[i]);if(n)return n}}},166:function(e,t,i){"use strict";var n=e.exports={};n.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),i=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(i[0]);return e>4?e:undefined}());var t},n.isLegacyOpera=function(){return!!window.opera}},169:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i(52));t.default=function(e,t,i,r,o,a){!e.required||i.hasOwnProperty(e.field)&&!n.isEmptyValue(t,a||e.type)||r.push(n.format(o.messages.required,e.fullField))}},17:function(e,t,i){var n=i(6);e.exports=function(e,t){if(!n(e))return e;var i,r;if(t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;if("function"==typeof(i=e.valueOf)&&!n(r=i.call(e)))return r;if(!t&&"function"==typeof(i=e.toString)&&!n(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},178:function(e,t,i){"use strict";i.r(t);var n=i(179),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t.default=r.a},179:function(e,t,i){"use strict";var n=i(56),r=i(104),o=i(105),a=i(106),s=i(64),l=i(61),u=i(63),c=i(8);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var d=c(i(53)),h=c(i(85)),f=c(i(143)),p=c(i(56)),m=c(i(125)),g=c(i(15)),y=c(i(153)),b=c(i(47)),v=c(i(382)),x=c(i(384)),_=c(i(151)),w=c(i(60)),C=c(i(273)),S=i(21),D=i(84),k=c(i(49)),j=c(i(204)),O=c(i(215)),$=c(i(216));function T(e,t){var i=void 0!==l&&e[u]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return s(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return E(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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,a=!0,c=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(c)throw o}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function N(e,t){var i=n(e);if(r){var a=r(e);t&&(a=a.filter((function(t){return o(e,t).enumerable}))),i.push.apply(i,a)}return i}function I(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?N(Object(i),!0).forEach((function(t){(0,g.default)(e,t,i[t])})):a?Object.defineProperties(e,a(i)):N(Object(i)).forEach((function(t){Object.defineProperty(e,t,o(i,t))}))}return e}var H="h-editgird",P=1,M={name:"EditGird",mixins:[k.default,_.default,w.default],components:{GirdHead:v.default,GirdBody:x.default,Spin:y.default,Icon:b.default},props:{isValidate:{type:Boolean,default:!1},typeName:{type:String},data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},headSelection:{type:Boolean,default:!1},size:{validator:function(e){return(0,S.oneOf)(e,["small","large","default"])}},width:{type:[Number,String]},height:{type:[Number,String]},stripe:{type:Boolean,default:!1},border:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},highlightRow:{type:Boolean,default:!1},childHighlightRow:{type:Boolean,default:!1},rowClassName:{type:Function,default:function(){return""}},context:{type:Object},noDataText:{type:String,default:function(){return"暂无数据"}},disabledHover:{type:Boolean},rowSelect:{type:Boolean,default:!1},showEditInput:{type:Boolean,default:!1},isCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},option:{type:Array,default:function(){return[]}},treeOption:{type:Array,default:function(){return[]}},cascaderOption:{type:Array,default:function(){return[]}},multiLevel:{type:Array,default:null},disableExpand:{type:Boolean,default:!1},titleRender:Function,cancelSelection:{type:Boolean,default:!1},canDrag:{type:Boolean,default:!0},canDragLast:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},lastColWidth:{type:[Number,String],default:80},minDragWidth:{type:[Number,String],default:30},isGroupSeparated:{type:Boolean,default:!1},clickToSelect:{type:Boolean,default:!1},sortChangeIndex:{type:Boolean,default:!1},summationData:{type:Array,default:function(){return[]}},itemHeight:{type:[Number,String],default:43},showTitle:{type:Boolean,default:!1},customTrKey:{type:String},isCompleteSort:{type:Boolean,default:!1},noFilteredDataText:{type:String},notSort:{type:Boolean,default:!0},indentLeft:{type:Number,validator:function(e){return e>=20},default:20},preventRightClick:{type:Boolean,default:!1},customExpandIcon:{type:String}},data:function(){return{rowKey:1,ready:!1,tableWidth:0,initWidth:0,tipWidth:0,columnsWidth:{},prefixCls:H,compiledUids:[],objData:this.makeObjData(),rebuildData:[],cloneColumns:this.makeColumns(),bodyHeight:0,bodyRealHeight:0,scrollBarWidth:(0,S.getScrollBarSize)(),currentContext:this.context,cloneData:(0,S.deepCopy)(this.data),showScroll:!1,headerRealHeight:0,selectType:!1,options:this.option,treeOptions:this.treeOption,canVisible:!0,curKey:null,scrollTop:0,resizeProxyVisible:!1,moveProxyVisible:!1,sumMarginLeft:0,shiftSelect:[],ctrlSelect:[],isScrollX:!1,filterFlag:!1}},computed:{innerItemHeight:function(){return this.customSwitch?this.customBaseItemHeight:this.itemHeight},cloneMultiLevel:function(){if(!this.multiLevel||0==this.multiLevel.length)return null;var e=[];return e[0]=[],this.multiLevel.forEach((function(t,i){if("array"!=(0,S.typeOf)(t))t.hiddenCol||"false"==t.hiddenCol||e[0].push(t);else{var n=[];t.forEach((function(e,t){e.hiddenCol||"false"==e.hiddenCol||n.push(e)})),e.push(n)}})),e.length>0?e:null},loadingText:function(){return this.t("i.table.loadingText")},localeNoDataText:function(){return void 0===this.noDataText&&this.t?this.t("i.table.noDataText"):this.noDataText},localeNoFilteredDataText:function(){return void 0===this.noFilteredDataText?this.t("i.table.noFilteredDataText"):this.noFilteredDataText},wrapClasses:function(){return["".concat(H,"-wrapper"),(0,g.default)({},"".concat(H,"-hide"),!this.ready)]},textStyle:function(){var e={};e.width=0!=this.initWidth?this.initWidth+"px":"100%";var t=(this.isLeftFixed||this.isRightFixed,this.bodyHeight);return e.height=this.height?Number(t-this.scrollBarWidth)+"px":null,e.lineHeight=this.height?Number(t-this.scrollBarWidth)+"px":null,e},tipStyle:function(){var e={};if(0!==this.tableWidth){var t=this.tableWidth<this.initWidth?this.initWidth-1:this.tableWidth;e.width="".concat(t,"px")}return e},classes:function(){var e;return["".concat(H),(e={},(0,g.default)(e,"".concat(H,"-").concat(this.size),!!this.size),(0,g.default)(e,"".concat(H,"-border"),this.border),(0,g.default)(e,"".concat(H,"-stripe"),this.stripe),(0,g.default)(e,"".concat(H,"-with-fixed-top"),!!this.height),e)]},fixedHeaderClasses:function(){return["".concat(H,"-fixed-header"),(0,g.default)({},"".concat(H,"-fixed-header-with-empty"),!this.rebuildData.length)]},styles:function(){var e={};return this.width&&(e.width="".concat(this.width,"px")),e},tableStyle:function(){var e={};if(0!==this.tableWidth){var t="";t=0===this.bodyHeight||this.bodyHeight>(this.bodyRealHeight?this.bodyRealHeight:0)&&"groupTable"!==this.typeName?this.tableWidth:this.tableWidth-this.scrollBarWidth,e.width="".concat(t,"px")}return e},bodyStyle:function(){var e={};return 0!==this.bodyHeight&&(e.height="".concat(this.bodyHeight,"px")),e},fixedBodyStyle:function(){var e={};if(0!==this.bodyHeight){var t=this.bodyHeight-this.scrollBarWidth;this.tableWidth<this.initWidth&&(t=t+this.scrollBarWidth-1),e.height=(this.scrollBarWidth,"".concat(t,"px"))}return this.data&&this.data.length<1&&(e.background="transparent"),e},fixedTableStyle:function(){var e={},t=0;return this.leftFixedColumns.forEach((function(e){e.fixed&&"left"===e.fixed&&(t+=e._width)})),e.width="".concat(t,"px"),e},fixedRightTableStyle:function(){var e={},t=0,i=0;return this.rightFixedColumns.forEach((function(e){e.fixed&&"right"===e.fixed&&(t+=e._width)})),0!==this.bodyHeight&&(i=this.isLeftFixed||this.isRightFixed?this.bodyHeight+this.scrollBarWidth:this.bodyHeight,i=this.bodyHeight),i&&i<this.bodyRealHeight?(e.marginRight="".concat(this.scrollBarWidth,"px"),this.showScroll=!0):t=0==t?0:t,e.width="".concat(t,"px"),e},fixedRightPatchStyle:function(){var e={},t=this.scrollBarWidth,i=this.headerRealHeight,n=(0,d.default)((0,S.getStyle)(this.$refs.title,"height"),10)||0;return e.width="".concat(t,"px"),e.height="".concat(i,"px"),e.top="".concat(n,"px"),e},leftFixedColumns:function(){var e=[],t=[];return this.cloneColumns.forEach((function(i){i.fixed&&"left"===i.fixed?e.push(i):t.push(i)})),e},rightFixedColumns:function(){var e=[],t=[];return this.cloneColumns.forEach((function(i){i.fixed&&"right"===i.fixed?e.push(i):t.push(i)})),e},isLeftFixed:function(){return this.columns.some((function(e){return e.fixed&&"left"===e.fixed}))},isRightFixed:function(){return this.columns.some((function(e){return e.fixed&&"right"===e.fixed}))},isHighlightRow:function(){var e=this.columns&&this.columns[0]&&"radio"===this.columns[0].type||!1;return this.highlightRow||e},summationStyle:function(){return{marginLeft:"".concat(0-this.sumMarginLeft,"px")}},isSummation:function(){return this.summationData.length>0},summationColumns:function(){var e=this;return(0,S.deepCopy)(this.cloneColumns).map((function(t){return["index","selection"].indexOf(t.type)>-1&&(e.$set(t,"render",(function(e){return e("span",["汇总"])})),e.$set(t,"hiddenOther",!0)),delete t.type,t}))},nodataTipTdHeight:function(){return{height:(this.isScrollX?(0,d.default)(this.bodyStyle.height,10)-this.scrollBarWidth:(0,d.default)(this.bodyStyle.height,10))+"px"}}},methods:{judgeScrollBar:function(){var e=this.$refs.tableWrap?this.$refs.tableWrap.offsetWidth-1:null,t=this.$refs.thead?this.$refs.thead.styleObject.width:null;t&&e&&(0,d.default)(e,10)<(0,d.default)(t,10)?this.isScrollX=!0:this.isScrollX=!1},rowClsName:function(e){return this.rowClassName(this.data[e],e)},changeWidth:function(e,t,i,n){var r=this,o=this,a=0;this.cloneColumns.forEach((function(r,s){r.key==t&&(o.$set(r,"width",e),o.$set(r,"_width",e)),s==n&&(o.$set(r,"width",i),o.$set(r,"_width",i));var l=r.width||r._width;a+=l})),0!==this.bodyHeight&&n==this.cloneColumns.length&&(a+=this.scrollBarWidth),this.tableWidth=a+1,!!this.columns.some((function(e){return!e.width&&0!==e.width}))&&"right"!=this.cloneColumns[n].fixed&&this.tableWidth<this.initWidth&&(this.tableWidth=this.initWidth-1),this.$emit("on-drag",e,t),this.$nextTick((function(){r.bodyRealHeight=(0,d.default)((0,S.getStyle)(r.$refs.tbody.$el,"height"),10)||0,r.judgeScrollBar()}))},sortCloumn:function(e,t,i){if(!this.cloneColumns[t].fixed){var n=this.cloneColumns.splice(e,1)[0];this.cloneColumns.splice(t,0,n),e!==t&&this.$emit("on-move",e,t)}},setMoveProxy:function(e){var t=this.$refs.moveProxy,i=this.cloneColumns[e]._width;t.style.width=i+"px"},getIndex:function(e){var t;return this.cloneColumns.forEach((function(i,n){i._index==e&&(t=n)})),t},handleFilterHide:function(e){var t=this.getIndex(e);this.cloneColumns[t]._isFiltered||(this.cloneColumns[t]._filterChecked=[])},filterData:function(e,t){return e.filter((function(e){if("function"==typeof t.filterRemote)return!0;for(var i=!t._filterChecked.length,n=0;n<t._filterChecked.length&&!(i=t.filterMethod(t._filterChecked[n],e));n++);return i}))},filterOtherData:function(e,t){var i=this,n=this.cloneColumns[t];"function"==typeof n.filterRemote&&n.filterRemote.call(this.$parent,n._filterChecked,n.key,n);var r=e;return this.cloneColumns.forEach((function(e,n){n!==t&&(r=i.filterData(r,e))})),r},handleFilter:function(e,t){var i;i=t?e:this.getIndex(e);var n=this.cloneColumns[i],r=this.makeDataWithSort();r=this.filterOtherData(r,i),this.rebuildData=this.filterData(r,n);var o=(0,S.deepCopy)(this.filterData(r,n));o&&0!=o.length?n._filterFlag=!1:n._filterFlag=!0;var a=this.cloneColumns.some((function(e){return e._filterFlag}));this.filterFlag=a,this.cloneColumns[i]._isFiltered=!0,this.cloneColumns[i]._filterVisible=!1,this.$emit("on-filter",this.rebuildData)},handleFilterSelect:function(e,t){var i=this.getIndex(e);this.cloneColumns[i]._filterChecked=[t],this.handleFilter(i,!0)},handleFilterReset:function(e){var t=this.getIndex(e);this.cloneColumns[t]._isFiltered=!1,this.cloneColumns[t]._filterVisible=!1,this.cloneColumns[t]._filterChecked=[],this.cloneColumns[t]._filterFlag=!1;var i=this.cloneColumns.some((function(e){return e._filterFlag}));this.filterFlag=i;var n=this.makeDataWithSort();n=this.filterOtherData(n,t),this.rebuildData=n,this.$emit("on-filter",this.rebuildData)},getFilters:function(){var e=this.cloneColumns,t={};return e.forEach((function(e){e.filters&&(e.filterMethod||e.filterRemote)&&e.key&&(t[e.key]=e._filterChecked)})),t},selectFilterData:function(e){var t=[],i=this.makeData();e.forEach((function(e){t.push(i[e])})),this.rebuildData=t},handleMouseLeave:function(){},handleResize:function(){var e=this;this.$nextTick((function(){if(0!=e.columns.length){var t=!e.columns.some((function(e){return!e.width&&0!==e.width}));e.tableWidth=t?e.columns.map((function(e){return e.width})).reduce((function(e,t){return e+t})):(0,d.default)((0,S.getStyle)(e.$el,"width"),10)-1,e.showHeader&&(e.headerRealHeight=(0,d.default)((0,S.getStyle)(e.$refs.header,"height"),10)||0),e.columnsWidth={},e.$nextTick((function(){var i={},n=-1;if(t&&(n=(0,S.findInx)(e.cloneColumns,(function(e){return!e.width}))),e.data.length&&e.$refs.tbody&&"groupTable"!=e.typeName){for(var r=e.$refs.tbody&&e.$refs.tbody.$el&&e.$refs.tbody.$el.querySelectorAll("tbody tr")[0]?e.$refs.tbody.$el.querySelectorAll("tbody tr")[0].querySelectorAll("td"):[],o=0;o<r.length;o++){var a=e.cloneColumns[o],s=(0,d.default)((0,S.getStyle)(r[o],"width"),10);if(o===n&&(s=(0,d.default)((0,S.getStyle)(r[o],"width"),10)-1),a.width)s=a.width||"";else{var l=a.minWidth||100;s<l&&(s=l)}e.cloneColumns[o]._width=s||"",e.tableWidth=e.cloneColumns.map((function(e){return e._width})).reduce((function(e,t){return e+t}))||e.tableWidth,i[a._index]={width:s}}e.columnsWidth=i}else{if(!e.$refs.thead)return;for(var u=e.$refs.thead.$el.querySelectorAll("thead .cur-th")[0].querySelectorAll("th"),c=0;c<u.length;c++){var h=e.cloneColumns[c],f=(0,d.default)((0,S.getStyle)(u[c],"width"),10);if(c===n&&(f=(0,d.default)((0,S.getStyle)(u[c],"width"),10)-1),h.width)f=h.width||"";else{var p=h.minWidth||100;f<p&&(f=p)}e.cloneColumns[c]._width=f||"",e.tableWidth=e.cloneColumns.map((function(e){return e._width})).reduce((function(e,t){return e+t})),i[h._index]={width:f}}"groupTable"==e.typeName&&e.height&&(e.tableWidth=e.tableWidth-e.scrollBarWidth),e.columnsWidth=i}e.initWidth=(0,d.default)((0,S.getStyle)(e.$refs.tableWrap,"width"),10)||0})),e.bodyRealHeight=(0,d.default)((0,S.getStyle)(e.$refs.tbody.$el,"height"),10),e.judgeScrollBar()}}))},handleMouseIn:function(e){if(!this.disabledHover)if("groupTable"==this.typeName&&-1!=String(e).indexOf(".")){var t=String(e).split(".")[0],i=Number(String(e).split(".")[1])-1;if(this.objData[t].item[i]._isHover)return;this.objData[t].item[i]._isHover=!0}else{if(this.objData[e]._isHover)return;this.objData[e]._isHover=!0}},handleMouseOut:function(e){if(!this.disabledHover)if("groupTable"==this.typeName&&-1!=String(e).indexOf(".")){var t=String(e).split(".")[0],i=Number(String(e).split(".")[1])-1;this.objData[t].item[i]._isHover=!1}else this.objData[e]._isHover=!1},highlightCurrentRow:function(e,t){var i=this;if("groupTable"==this.typeName&&-1!=String(e).indexOf(".")){var n=String(e).split(".")[0],r=Number(String(e).split(".")[1])-1,o=!!(this.objData[n]&&this.objData[n].item&&this.objData[n].item[r])&&this.objData[n].item[r]._isHighlight,a=-1,s=-1,l=function(e){i.objData[e]&&i.objData[e].item&&i.objData[e].item.length>0&&(i.objData[e].item.forEach((function(t,i){t._isHighlight&&(a=e,s=i,t._isHighlight=!1)})),i.cloneData[e].item.forEach((function(e,t){e.hasOwnProperty("_highlight")&&(e._highlight=!1)})))};for(var u in this.objData)l(u);this.objData[n]&&this.objData[n].item&&this.objData[n].item[r]&&(this.cancelSelection&&!0===o?(this.$set(this.objData[n].item[r],"_isHighlight",!1),this.$set(this.cloneData[n].item[r],"_highlight",!1)):(this.$set(this.objData[n].item[r],"_isHighlight",!0),this.$set(this.cloneData[n].item[r],"_highlight",!0)));var c=s<0?null:this.getGroupData(a,s),f=this.getGroupData(n,r);this.$emit("on-current-change",JSON.parse((0,h.default)(f)),c,{k:Number(n),m:r,key:this.curKey})}else if("editGird"==this.typeName){var p=-1;for(var m in this.objData)this.objData[m]._isHighlight&&(p=(0,d.default)(m,10),this.objData[m]._isHighlight=!1,this.objData[m]._isChecked=!1);if(this.objData[e]._isHighlight=!0,this.objData[e]._isChecked=!0,this.ctrlSelect=[],this.ctrlSelect.push(e),this.shiftSelect=[],this.shiftSelect[0]=t,p!==e){this.$emit("on-selection-change",this.getSelection(),this.getSelection("transfer"));var g=p<0?null:JSON.parse((0,h.default)(this.cloneData[p]));this.$emit("on-current-change",JSON.parse((0,h.default)(this.cloneData[e])),g)}}else{if(!this.isHighlightRow||this.objData[e]._isHighlight)return;var y=-1;for(var b in this.objData)this.objData[b]._isHighlight&&(y=(0,d.default)(b,10),this.objData[b]._isHighlight=!1);this.objData[e]._isHighlight=!0;var v=y<0?null:JSON.parse((0,h.default)(this.cloneData[y]));this.$emit("on-current-change",JSON.parse((0,h.default)(this.cloneData[e])),v)}},clickCurrentRow:function(e,t,i){if(this.clickToSelect){var n=this.objData[e]._isHighlight;for(var r in this.objData)this.objData[r]._isHighlight&&(this.objData[r]._isHighlight=!1);this.objData[e]._isHighlight=!n}if("treeGird"===this.typeName&&this.$emit("on-row-click",[JSON.parse((0,h.default)(this.cloneData[e])),e]),"editGird"===this.typeName?(!this.isHighlightRow||this.rowSelect&&this.selectType||(i&&i.shiftKey?(window.getSelection()?window.getSelection().removeAllRanges():document.selection.empty(),this.getShiftSelect(t)):i&&i.ctrlKey?this.getCtrlSelect(e):this.highlightCurrentRow(e,t)),this.$emit("on-row-click",[JSON.parse((0,h.default)(this.cloneData[e])),e,this.objData[e]._isHighlight])):this.rowSelect&&this.selectType||(this.isHighlightRow&&this.highlightCurrentRow(e),this.childHighlightRow&&this.childHighlightCurrentRow(e)),"groupTable"==this.typeName){var o=String(e).split("."),a=o[0],s=Number(o[1])-1,l=this.getGroupData(a,s),u=l.item._highlight&&!l.item._disabled;this.rowSelect&&this.selectType||(this.highlightRow||(u=!1),this.$emit("on-row-click",JSON.parse((0,h.default)(l)),u))}},getCtrlSelect:function(e){if(this.highlightRow){var t=this.ctrlSelect.indexOf(e);-1==t?(this.ctrlSelect.push(e),this.objData[e]._isHighlight=!0,this.objData[e]._isChecked=!0):(this.ctrlSelect.splice(t,1),this.objData[e]._isHighlight=!1,this.objData[e]._isChecked=!1),this.$emit("on-selection-change",this.getSelection(),this.getSelection("transfer"))}},getShiftSelect:function(e){if(this.highlightRow)switch(this.shiftSelect.length){case 0:this.shiftSelect[0]=e;break;case 1:this.$set(this.shiftSelect,0,Math.min(this.shiftSelect[0],e)),this.$set(this.shiftSelect,1,Math.max(this.shiftSelect[0],e));break;case 2:e<this.shiftSelect[0]&&this.$set(this.shiftSelect,0,e),e>this.shiftSelect[1]&&this.$set(this.shiftSelect,1,e);break;default:this.shiftSelect=[]}},selectRange:function(){this.ctrlSelect=[];for(var e=this.shiftSelect[0];e<=this.shiftSelect[1];e++){var t=this.rebuildData[e]._index;this.objData[t]._isHighlight=!1,this.objData[t]._isChecked=!1,this.objData[t]._isDisabled||(this.objData[t]._isHighlight=!0,this.objData[t]._isChecked=!0,this.ctrlSelect.push(t))}this.$emit("on-selection-change",this.getSelection(),this.getSelection("transfer"))},childHighlightCurrentRow:function(e){var t=this;if("groupTable"==this.typeName&&-1!=String(e).indexOf(".")){var i=String(e).split(".")[0],n=Number(String(e).split(".")[1])-1,r=this.objData[i],o=r.item[n]._isHighlight;r.item.forEach((function(e,t){e._isHighlight&&(e._isHighlight=!1)})),this.cloneData[i].item.forEach((function(e){e.hasOwnProperty("_highlight")&&(e._highlight=!1)})),this.cancelSelection&&!0===o?(this.$set(r.item[n],"_isHighlight",!1),this.$set(this.cloneData[i].item[n],"_highlight",!1)):(this.$set(r.item[n],"_isHighlight",!0),this.$set(this.cloneData[i].item[n],"_highlight",!0)),this.$nextTick((function(){t.$emit("on-child-change",t.getAllGroupData())}))}},getAllGroupData:function(){var e=this,t=[],i=function(i){if(e.objData.hasOwnProperty(i)){var n,r,o=null;e.objData[i].item.forEach((function(t,a){t._isHighlight&&((o=(0,S.deepCopy)(e.cloneData[i])).item=e.cloneData[i].item[a],n=Number(i),r=Number(a))})),o&&t.push(I({k:n,m:r},o))}};for(var n in this.objData)i(n);return t},getGroupData:function(e,t){var i={};return(i=(0,S.deepCopy)(this.cloneData[e])).item=this.cloneData[e].item[t],i},dblclickCurrentRow:function(e){if("groupTable"==this.typeName&&-1!=String(e).indexOf(".")){var t=String(e).split("."),i=t[0],n=Number(t[1])-1,r=this.getGroupData(i,n);this.$emit("on-row-dblclick",JSON.parse((0,h.default)(r)),{k:Number(i),m:n,key:this.curKey})}else this.rowSelect&&this.selectType||!this.isHighlightRow||this.highlightCurrentRow(e),this.$emit("on-row-dblclick",JSON.parse((0,h.default)(this.cloneData[e])))},getSelection:function(e){var t=[];for(var i in this.objData)this.objData[i]._isChecked&&!this.objData[i]._isDel&&t.push((0,d.default)(i,10));return this.sortChangeIndex?"transfer"!=e?JSON.parse((0,h.default)(this.rebuildData.filter((function(e,i){return t.indexOf(i)>-1})))):t:"transfer"!=e?JSON.parse((0,h.default)(this.cloneData.filter((function(e,i){return t.indexOf(i)>-1})))):t},getGroupSelection:function(){var e=this,t=[],i=function(i){if(e.objData[i]._isChecked&&!e.isGroupSeparated){var n=(0,S.deepCopy)(e.cloneData[i]);n.item=[],e.objData[i].item.forEach((function(t,r){t._isChecked&&n.item.push(e.cloneData[i].item[r])})),t.push(n)}else if(e.objData[i].item.some((function(e){return e._isChecked}))){var r=(0,S.deepCopy)(e.cloneData[i]);r.item=[],e.objData[i].item.forEach((function(t,n){t._isChecked&&r.item.push(e.cloneData[i].item[n])})),e.objData[i]._isChecked?r.isParentChecked=!0:r.isParentChecked=!1,t.push(r)}else if(e.objData[i]._isChecked&&e.isGroupSeparated&&!e.objData[i].item.some((function(e){return e._isChecked}))){var o=(0,S.deepCopy)(e.cloneData[i]);o.isParentChecked=!0,o.item=[],t.push(o)}};for(var n in this.objData)i(n);return JSON.parse((0,h.default)(t))},cancelSelect:function(e){this.objData[e]._isChecked=!1;var t=this.getSelection(),i=this.sortChangeIndex?this.rebuildData[e]:this.cloneData[e];this.$emit("on-select-cancel",t,JSON.parse((0,h.default)(i)),e),this.$emit("on-selection-change",t,this.getSelection("transfer"))},toggleSelect:function(e){if("editGird"!=this.typeName||!this.objData[e]._isDisabled){var t=this;if("groupTable"==t.typeName)if(-1!=String(e).indexOf(".")){var i=String(e).split(".")[0],n=Number(String(e).split(".")[1])-1,r=t.objData[i].item[n];if(!r._isDisabled){var o=!r._isChecked;if(t.objData[i].item[n]._isChecked=o,this.$set(this.cloneData[i].item[n],"_checked",o),!this.isGroupSeparated){if(t.objData[i]._isDisabled)return;t.objData[i]._isChecked=!t.objData[i].item.some((function(e){return!e._disabled&&!e._isChecked}))}var a=t.getGroupData(i,n),s=a.item._checked;this.$emit("on-row-click",JSON.parse((0,h.default)(a)),s);var l=t.getGroupSelection();t.$emit(o?"on-select":"on-select-cancel",l,JSON.parse((0,h.default)(a))),t.$emit("on-selection-change",l)}}else{var u={};for(var c in t.objData)(0,d.default)(c,10)===e&&(u=t.objData[c]);var f=!u._isChecked;this.isGroupSeparated||u.item.forEach((function(e,t){e._disabled||(e._isChecked=f)})),t.objData[e]._isChecked=f;var p=t.getGroupSelection();t.$emit(f?"on-select":"on-select-cancel",p,JSON.parse((0,h.default)(t.cloneData[e]))),t.$emit("on-selection-change",p)}else{var m={};for(var g in t.objData)(0,d.default)(g,10)===e&&(m=t.objData[g]);var y=!m._isChecked;t.objData[e]._isChecked=y;var b=this.getSelection(),v=t.cloneData.length-t.rebuildData.length,x=e-v<0?0:e-v,_=this.sortChangeIndex?t.rebuildData[x]:t.cloneData[e];this.$emit(y?"on-select":"on-select-cancel",b,JSON.parse((0,h.default)(_),e)),this.$emit("on-selection-change",b,this.getSelection("transfer"))}}},toggleExpand:function(e){if(!this.disableExpand||"groupTable"!=this.typeName){var t={};for(var i in this.objData)(0,d.default)(i,10)===e&&(t=this.objData[i]);var n=!t._isExpanded;this.objData[e]._isExpanded=n,"treeGird"!=this.typeName&&this.$set(this.rebuildData.find((function(t){return t._index==e})),"expand",n),this.$refs.tbody.addVisibleKey(e),this.$emit("on-expand",JSON.parse((0,h.default)(this.cloneData[e])),n)}},toggleExpandChild:function(e){if(-1!=String(e).indexOf(".")){var t=String(e).split(".")[0],i=Number(String(e).split(".")[1])-1,n=!this.objData[t].item[i]._isExpanded;this.$set(this.objData[t].item[i],"_isExpanded",n),this.$emit("on-expand-child",JSON.parse((0,h.default)(this.getGroupData(t,i))),n)}},selectAll:function(e){"treeGird"==this.typeName&&this.selectAllTreeNode(e);var t,i,n=T(this.rebuildData);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.objData[r._index]._isDisabled||(this.objData[r._index]._isChecked=e,"groupTable"==this.typeName&&this.objData[r._index].item&&this.objData[r._index].item.forEach((function(t){t._isDisabled||(t._isChecked=e)})))}}catch(e){n.e(e)}finally{n.f()}i="groupTable"==this.typeName?this.getGroupSelection():this.getSelection(),this.$emit("on-select-all",i),this.$emit("on-selection-change",i,this.getSelection("transfer"))},fixedHeader:function(){var e=this;this.height?this.$nextTick((function(){var t=(0,d.default)((0,S.getStyle)(e.$refs.header,"height"),10)||0;e.bodyHeight=e.height-t})):this.bodyHeight=0},hideColumnFilter:function(){this.cloneColumns.forEach((function(e){return e._filterVisible=!1}))},handleBodyScroll:function(e){this.canVisible&&(this.broadcast("GirdCell","close-visible"),this.canVisible=!1);var t=(0,S.getBarBottom)(e.target,this.scrollBarWidth);this.scrollTop!==e.target.scrollTop&&(this.$emit("on-scroll",t),this.scrollTop=e.target.scrollTop),this.showHeader&&(this.$refs.header.scrollLeft=e.target.scrollLeft),this.isLeftFixed&&(this.$refs.fixedBody.scrollTop=e.target.scrollTop),this.isRightFixed&&(this.$refs.fixedRightBody.scrollTop=e.target.scrollTop),this.isSummation&&(this.sumMarginLeft=e.target.scrollLeft);var i=this.$refs.tbody.$el.querySelectorAll(".verify-tip");if(this.hideColumnFilter(),i&&i.length>0)for(var n=0;n<i.length;n++){var r=i[n],o=r.parentNode.querySelectorAll(".canEdit")[0];if(o){var a=o.offsetLeft-e.target.scrollLeft,s=r.getBoundingClientRect().width;0!=s?this.tipWidth=s:s=this.tipWidth,r.style.left=a+"px";var l=o.offsetTop+o.getBoundingClientRect().height-e.target.scrollTop;r.style.top=l+"px",a<=0||a>this.initWidth-s||l<=this.headerRealHeight||l>=this.height?r.style.display="none":r.style.display="block"}}},handleDelData:function(e){var t=this;if(this.rebuildData&&this.rebuildData.length>0){var i=null;this.rebuildData.some((function(t,n){return t._index==e&&(i=n,!0)})),null!==i&&(this.rebuildData.splice(i,1),this.cloneData[e]._isDel=!0,this.objData[e]._isDel=!0,this.$nextTick((function(){var e=t.$refs.tbody.$el.querySelectorAll(".verify-tip");if(e&&e.length>0)for(var i=0;i<e.length;i++){var n=e[i],r=n.parentNode.querySelectorAll(".canEdit")[0],o=r.offsetLeft,a=n.getBoundingClientRect().width;0!=a?t.tipWidth=a:a=t.tipWidth,n.style.left=o+"px";var s=r.offsetTop+r.getBoundingClientRect().height-r.scrollTop;n.style.top=s+"px"}})))}},handleModifyData:function(e,t){var i=null;this.rebuildData.some((function(t,n){return t._index==e&&(i=n,!0)})),null!==i&&(this.rebuildData[i]=(0,f.default)(this.rebuildData[i],t),this.cloneData[e]=(0,f.default)(this.cloneData[e],t),this.objData[e]=(0,f.default)(this.objData[e],t))},handleAddData:function(e){var t=this;if(e&&e.length>0){var i=[],n={};e.forEach((function(e){var r=t.rowKey-1;e._index=r,e._rowKey=t.rowKey++,i.push(e);var o=(0,S.deepCopy)(e);o._isHover=!1,o._disabled&&"false"!=o._disabled?o._isDisabled=o._disabled:o._isDisabled=!1,o._checked&&"false"!=o._checked?o._isChecked=o._checked:o._isChecked=!1,o._expanded&&"false"!=o._expanded?o._isExpanded=o._expanded:o._isExpanded=!1,o._highlight&&"false"!=o._highlight?o._isHighlight=o._highlight:o._isHighlight=!1,o._isMatched&&"fasle"!=o._isMatched?o._isMatched=o._isMatched:o._isMatched=!1,n[r]=o})),this.rebuildData=this.rebuildData.concat(i),this.cloneData=this.cloneData.concat(i),this.objData=I(I({},this.objData),n),i=void 0,n=void 0,this.$nextTick((function(){t.bodyRealHeight=(0,d.default)((0,S.getStyle)(t.$refs.tbody.$el,"height"),10)||0,t.bodyRealHeight>t.bodyHeight-t.scrollBarWidth&&t.handleResize()}))}},handleCheckData:function(e,t){if("groupTable"===this.typeName&&(-1!==e.toString().indexOf(".")||this.objData[e]))if(-1!=String(e).indexOf(".")){var i=String(e).split(".")[0],n=Number(String(e).split(".")[1])-1,r=this.objData[i].item[n];if(r&&!r._isDisabled){this.objData[i].item[n]._isChecked=t;var o=this.getGroupData(i,n),a=this.getGroupSelection();this.$emit(t?"on-select":"on-select-cancel",a,JSON.parse((0,h.default)(o))),this.$emit("on-selection-change",a)}}else{var s={};for(var l in this.objData)(0,d.default)(l,10)===e&&(s=this.objData[l]);if(!s._isDisabled){s._isChecked=t;var u=this.getGroupSelection();this.$emit(t?"on-select":"on-select-cancel",u,JSON.parse((0,h.default)(this.cloneData[e]))),this.$emit("on-selection-change",u)}}},handlerClick:function(){this.canVisible=!0},handleMouseWheel:function(e){var t=e.deltaX,i=this.$refs.body;i.scrollLeft=t>0?i.scrollLeft+10:i.scrollLeft-10},makeData:function(){var e=this;this.rowKey=1;var t=this.customTrKey,i=(0,S.deepCopy)(this.data);return i.forEach((function(i,n){i._sortId=n,i._index=n,i._rowKey=t?i[t]:e.rowKey++,i.item&&"object"==(0,m.default)(i.item)&&i.item.forEach((function(i,r){var o=r+1;i._index=n+"."+o,i._rowKey=t?i[t]:e.rowKey++,i.expand=!!i.expand}))})),i},makeSortData:function(){var e=this;this.rowKey=1;var t=this.customTrKey,i=(0,S.deepCopy)(this.cloneData);return i.forEach((function(i,n){i._sortId=n,i._index=n,i._rowKey=t?i[t]:e.rowKey++,i.item&&"object"==(0,m.default)(i.item)&&i.item.forEach((function(i,r){var o=r+1;i._index=n+"."+o,i._rowKey=t?i[t]:e.rowKey++,i.expand=!!i.expand}))})),i},makeSumData:function(){var e=this.summationData&&this.summationData.length>0?[(0,S.deepCopy)(this.summationData[0])]:[],t=1;if(1===e.length){var i=e[0];this.$set(i,"_index",0),this.$set(i,"_rowKey",t++)}return e},handleSort:function(