h_ui
Version:
A Vue.js 2.0 UI Components Framework
1 lines • 34.8 kB
JavaScript
module.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/lib/cjs/",n(n.s=1065)}({0:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},10:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},100:function(t,e,n){n(59),n(76),t.exports=n(41).f("iterator")},102:function(t,e,n){var r=n(9)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],s=i[r]();s.next=function(){return{done:n=!0}},i[r]=function(){return s},t(i)}catch(t){}return n}},1065:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(1066)),i=r(n(1068)),s=n(32);o.default.install=function(t,e){(0,s.setGlobal)(t,e),t.component("HSimpleSelect",o.default),t.component("SimpleSelect",o.default),t.component("HSelectBlock",i.default)},o.default.Block=i.default;var c=o.default;e.default=c},1066:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"SimpleSelect",mixins:[r(n(1067)).default],props:{block:{default:!0},autoFocus:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!0},valueNotMatch:{type:Boolean,default:!1},filterMethod:{type:Function},maxHeight:{type:Number,default:210},widthAdaptivelyIncreases:{type:Boolean,default:!1}}};e.default=o},1067:function(t,e){t.exports=require("h_ui/dist/lib/cjs/SelectTable.js")},1068:function(t,e,n){"use strict";n.r(e);var r=n(761),o=n(565);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var s=n(4),c=Object(s.a)(o.default,r.a,r.b,!1,null,null,null);e.default=c.exports},107:function(t,e,n){n(59),n(108),t.exports=n(0).Array.from},108:function(t,e,n){"use strict";var r=n(16),o=n(3),i=n(20),s=n(87),c=n(88),a=n(42),u=n(68),l=n(89);o(o.S+o.F*!n(102)((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,o,f,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,b=0,m=l(p);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),null==m||h==Array&&c(m))for(n=new h(e=a(p.length));e>b;b++)u(n,b,y?v(p[b],b):p[b]);else for(f=m.call(p),n=new h;!(o=f.next()).done;b++)u(n,b,y?s(f,v,[o.value,b],!0):o.value);return n.length=b,n}})},11:function(t,e,n){var r=n(5),o=n(14);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},110:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},12:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},123:function(t,e,n){var r=n(133),o=n(134),i=n(127),s=n(135);t.exports=function(t){return r(t)||o(t)||i(t)||s()},t.exports.__esModule=!0,t.exports.default=t.exports},126:function(t,e,n){t.exports=n(129)},127:function(t,e,n){var r=n(64),o=n(110);t.exports=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?r(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},129:function(t,e,n){n(130),t.exports=n(0).Array.isArray},13:function(t,e,n){var r=n(50),o=n(18);t.exports=function(t){return r(o(t))}},130:function(t,e,n){var r=n(3);r(r.S,"Array",{isArray:n(57)})},133:function(t,e,n){var r=n(126),o=n(110);t.exports=function(t){if(r(t))return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},134:function(t,e,n){var r=n(61),o=n(63),i=n(64);t.exports=function(t){if(void 0!==r&&null!=t[o]||null!=t["@@iterator"])return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},135:function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},15:function(t,e,n){var r=n(38);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},16:function(t,e,n){var r=n(27);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},17:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;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,n){var r=n(45),o=n(31);t.exports=Object.keys||function(t){return r(t,o)}},2:function(t,e,n){t.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},20:function(t,e,n){var r=n(18);t.exports=function(t){return Object(r(t))}},21:function(t,e){t.exports=require("h_ui/dist/lib/util/tools.js")},22:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},23:function(t,e){t.exports=!0},24:function(t,e,n){var r=n(6),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},25:function(t,e,n){t.exports=!n(2)&&!n(7)((function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a}))},26:function(t,e){t.exports={}},27:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},28:function(t,e){e.f={}.propertyIsEnumerable},29:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},3:function(t,e,n){var r=n(1),o=n(0),i=n(16),s=n(11),c=n(10),a=function(t,e,n){var u,l,f,p=t&a.F,h=t&a.G,d=t&a.S,v=t&a.P,y=t&a.B,b=t&a.W,m=h?o:o[e]||(o[e]={}),g=m.prototype,x=h?r:d?r[e]:(r[e]||{}).prototype;for(u in h&&(n=e),n)(l=!p&&x&&void 0!==x[u])&&c(m,u)||(f=l?x[u]:n[u],m[u]=h&&"function"!=typeof x[u]?n[u]:y&&l?i(f,r):b&&x[u]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((m.virtual||(m.virtual={}))[u]=f,t&a.R&&g&&!g[u]&&s(g,u,f)))};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,n){var r=n(0),o=n(1),i="__core-js_shared__",s=o[i]||(o[i]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(23)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},31:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},32:function(t,e){t.exports=require("h_ui/dist/lib/util/global.js")},33:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},34:function(t,e,n){var r=n(30)("keys"),o=n(22);t.exports=function(t){return r[t]||(r[t]=o(t))}},35:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},36:function(t,e){e.f=Object.getOwnPropertySymbols},37:function(t,e,n){var r=n(5).f,o=n(10),i=n(9)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},38:function(t,e,n){t.exports=n(39)},39:function(t,e,n){n(40);var r=n(0).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},4:function(t,e,n){"use strict";function r(t,e,n,r,o,i,s,c){var a,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=a):o&&(a=c?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(u.functional){u._injectStyles=a;var l=u.render;u.render=function(t,e){return a.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,a):[a]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},40:function(t,e,n){var r=n(3);r(r.S+r.F*!n(2),"Object",{defineProperty:n(5).f})},41:function(t,e,n){e.f=n(9)},42:function(t,e,n){var r=n(29),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},43:function(t,e,n){var r=n(1),o=n(0),i=n(23),s=n(41),c=n(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:s.f(t)})}},44:function(t,e,n){var r=n(45),o=n(31).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},45:function(t,e,n){var r=n(10),o=n(13),i=n(67)(!1),s=n(34)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,u=[];for(n in c)n!=s&&r(c,n)&&u.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(u,n)||u.push(n));return u}},46:function(t,e,n){var r=n(28),o=n(14),i=n(13),s=n(17),c=n(10),a=n(25),u=Object.getOwnPropertyDescriptor;e.f=n(2)?u:function(t,e){if(t=i(t),e=s(e,!0),a)try{return u(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},48:function(t,e,n){var r=n(12),o=n(74),i=n(31),s=n(34)("IE_PROTO"),c=function(){},a=function(){var t,e=n(24)("iframe"),r=i.length;for(e.style.display="none",n(73).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[s]=t):n=a(),void 0===e?n:o(n,e)}},49:function(t,e){t.exports=require("h_ui/dist/lib/mixins/locale.js")},5:function(t,e,n){var r=n(12),o=n(25),i=n(17),s=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},50:function(t,e,n){var r=n(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},51:function(t,e,n){var r=n(3),o=n(18),i=n(7),s=n(35),c="["+s+"]",a=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),l=function(t,e,n){var o={},c=i((function(){return!!s[t]()||"
"!="
"[t]()})),a=o[t]=c?e(f):s[t];n&&(o[n]=a),r(r.P+r.F*c,"String",o)},f=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(a,"")),2&e&&(t=t.replace(u,"")),t};t.exports=l},53:function(t,e,n){t.exports=n(69)},54:function(t,e,n){t.exports=n(11)},55:function(t,e,n){"use strict";var r=n(23),o=n(3),i=n(54),s=n(11),c=n(26),a=n(93),u=n(37),l=n(90),f=n(9)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",d="values",v=function(){return this};t.exports=function(t,e,n,y,b,m,g){a(n,e,y);var x,w,S,_=function(t){if(!p&&t in T)return T[t];switch(t){case h:case d:return function(){return new n(this,t)}}return function(){return new n(this,t)}},$=e+" Iterator",k=b==d,O=!1,T=t.prototype,C=T[f]||T["@@iterator"]||b&&T[b],j=C||_(b),M=b?k?_("entries"):j:void 0,E="Array"==e&&T.entries||C;if(E&&(S=l(E.call(new t)))!==Object.prototype&&S.next&&(u(S,$,!0),r||"function"==typeof S[f]||s(S,f,v)),k&&C&&C.name!==d&&(O=!0,j=function(){return C.call(this)}),r&&!g||!p&&!O&&T[f]||s(T,f,j),c[e]=j,c[$]=v,b)if(x={values:k?j:_(d),keys:m?j:_(h),entries:M},g)for(w in x)w in T||i(T,w,x[w]);else o(o.P+o.F*(p||O),e,x);return x}},565:function(t,e,n){"use strict";n.r(e);var r=n(566),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e.default=o.a},566:function(t,e,n){"use strict";var r=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(53)),i=r(n(123)),s=r(n(15)),c=r(n(96)),a=r(n(60)),u=r(n(49)),l=n(21),f="h-select-block",p={name:"Block",componentName:"select-block",mixins:[a.default,u.default],components:{Checkbox:c.default},props:{data:{type:Array,default:function(){return[]}},itemHeight:{type:[Number,String],default:30},showCol:{type:Array,default:function(){return[]}},showHeader:{type:Array,default:function(){return[]}},colWidth:{type:Array,default:function(){return[]}},showEllipsis:{type:Boolean,default:!1}},data:function(){return{prefixCls:f,multiple:!1,hideMult:!1,visibleData:[],visibleCount:20,cloneData:[],lastScollTop:0,lastScollBottom:null,showEmpty:!1,showBottom:!1,showBorder:!1,focusIndex:0,width:0,styleArr:[],blockWidth:"auto",timeout:null,lastBlockWidth:null,scrollBarWidth:(0,l.getScrollBarSize)(),nowBlockWidth:"auto"}},computed:{selectInstance:function(){return this.$parent.$parent},phantomStl:function(){var t={},e=this.cloneData.filter((function(t){return!t.hidden})),n=e.filter((function(t,n){return!t.group||n!==e.length-1&&!e[n+1].group})),r=this.$props.itemHeight,o=n.length*Number(r);return this.offset&&o<this.dropMaxHeight&&(o+=30),t.height=o+"px",t},showEllipsisStyle:function(){var t={};return t.width=this.width-(0,l.getScrollBarSize)()-14+"px",t},blockCls:function(){var t;return["".concat(f,"-drop"),(t={},(0,s.default)(t,"".concat(f,"-multiple"),this.multiple),(0,s.default)(t,"".concat(f,"-show-bottom"),this.showBottom),(0,s.default)(t,"".concat(f,"-show-border"),this.showBorder),(0,s.default)(t,"".concat(f,"-hideMult"),this.hideMult&&this.multiple),t)]},blockStyles:function(){var t=this.blockWidth,e=this.dropMaxHeight;return{width:Number(t)?t+"px":t,maxWidth:"100%",minWidth:"100%",fontSize:0,maxHeight:"".concat(e,"px")}},localeNoMatch:function(){return(0,l.findComponentParent)(this,"SimpleSelect").localeNotFoundText},dropMaxHeight:function(){var t=(0,l.findComponentParent)(this,"SimpleSelect");return t.maxHeight-t.searchOffsetHeight},itemClasses:function(){return""},offset:function(){return this.showHeader.length?30:0},loading:function(){return this.$parent.$parent.loading},showTitle:function(){return this.$parent.$parent.showTitle}},methods:{classes:function(t){var e;return t.group?["".concat(f,"-item"),"".concat(f,"-group-item")]:["".concat(f,"-item"),"".concat(f,"-option-item"),(e={},(0,s.default)(e,"".concat(f,"-disabled"),t.disabled||!1),(0,s.default)(e,"".concat(f,"-selected"),t.selected||!1),(0,s.default)(e,"".concat(f,"-focus"),t.focus||!1),e)]},showLabel:function(t){return t.label?t.label:t.value},select:function(t){if(t.group||t.disabled)return!1;this.multiple?this.$parent.$parent.selectBlockMultiple(t.value,t):this.$parent.$parent.selectBlockSingle(t.value,!1,"click",!1)},checkChange:function(t,e){this.$parent.$parent.selectBlockMultiple(e.value,e)},blur:function(){this.isFocus=!1},queryChange:function(t,e){var n=this,r=t.replace(/(\^|\(|\)|\[|\]|\$|\*|\+|\.|\?|\\|\{|\}|\|)/g,"\\$1"),o=!0,i=(0,l.findComponentParent)(this,"SimpleSelect");this.cloneData.forEach((function(s){if(!s.group){var c=s.label;n.showCol.length&&(c=c+" "+n.getTargetLabel(s).join(" "));var a,u=s.value,l=s.selected;if(void 0!==i&&"function"==typeof i.filterMethod)a=!i.filterMethod(t,s),""===t&&(a=!1);else{var f=!new RegExp(r,"i").test(s.label),p=!new RegExp(r,"i").test(s.value);if("label"===n.$parent.$parent.filterBy)a=f;else if("value"===n.$parent.$parent.filterBy)a=p;else if(s.label1){var h=!new RegExp(r,"i").test(s.label1);a=f&&h&&p}else a=p&&f}n.$set(s,"hidden",a),o&&!a&&(o=!1),n.$parent.$parent.accuFilter&&(r!==u.toString()&&r!==c||l||e||(n.$parent.$parent.multiple?n.$parent.$parent.selectBlockMultiple(u):n.$parent.$parent.selectBlockSingle(u,!1,void 0,!1)))}}));var s=this.cloneData.filter((function(t){return!t.group}));this.dispatch("SimpleSelect","on-options-visible-change",{data:s}),this.showEmpty=o,t&&this.dispatch("Drop","on-update-popper"),this.$nextTick((function(){t?n.updateVisibleData(0):n.updateVisibleData(),n.$refs.block&&(n.$refs.block.scrollTop=0)}))},handleclick:function(){},handleBodyScroll:function(t){var e=this.lastScollTop!==t.target.scrollTop?"y":"x";"y"===e&&this.updateVisibleData(t.target.scrollTop),this.lastScollTop=t.target.scrollTop,this.lastScollBottom=(0,l.getBarBottom)(t.target,(0,l.getScrollBarSize)()),null!==this.lastScollBottom&&this.data.length>0&&this.$emit("on-scroll",this.lastScollBottom,this.lastScollTop,e)},updateVisibleData:function(t){var e=this,n=this.cloneData.filter((function(t){return!t.hidden}));if((n=n.filter((function(t,e){return!t.group||e!==n.length-1&&!n[e+1].group}))).length<=this.visibleCount)this.visibleData=n,this.$nextTick((function(){e.$refs.content&&(e.$refs.content.style.transform="translateY(0px)")}));else{var r=Number(this.itemHeight)+.01,o=null==t?this.lastScollTop:t;this.start=Math.floor(o/r);var i=0,s=this.start,c=0;for(this.start>0&&(c=-this.offset);i<this.visibleCount;)this.cloneData[s]?(this.cloneData[s].hidden||i++,s++):(i=this.visibleCount,s=this.cloneData.length);this.end=s,this.end===n.length&&this.end-this.start<this.visibleCount&&this.start>0&&(this.start-=1),this.visibleData=n.slice(this.start,this.end),this.$nextTick((function(){e.$refs.content&&(e.$refs.content.style.transform="translateY(".concat(e.start*r+c,"px)"))}))}this.dispatch("CommonDropdown","on-static-update"),this.selectInstance&&this.selectInstance.widthAdaption&&this.selectInstance.widthAdaptivelyIncreases?this.$nextTick((function(){clearTimeout(e.timeout),e.$refs.content&&e.$refs.content.clientWidth&&(e.blockWidth=e.$refs.content.clientWidth+(e.visibleData.length<e.visibleCount?0:e.scrollBarWidth))})):this.$nextTick((function(){clearTimeout(e.timeout),"auto"===e.blockWidth&&e.$refs.content&&0!==e.$refs.content.clientWidth&&(e.blockWidth=e.$refs.content.clientWidth),e.$refs.content&&e.$refs.content.clientWidth>e.blockWidth&&(e.blockWidth=e.$refs.content.clientWidth),e.$refs.content.clientWidth===e.blockWidth&&e.lastBlockWidth!=e.blockWidth&&(e.blockWidth=e.$refs.content.clientWidth+(e.visibleData.length<e.visibleCount?0:e.scrollBarWidth)),e.lastBlockWidth=e.blockWidth,e.timeout=setTimeout((function(){e.blockWidth="auto"}),500)}))},selectedTop:function(t){t?this.cloneData.sort((function(t,e){return t.selected&&!e.selected?-1:0})):this.cloneData.sort((function(t,e){return t._index<e._index?-1:0})),this.$refs.block.scrollTop=0,this.updateVisibleData(0),this.$parent.$parent.updateOptions()},calcStyle:function(t){if(this.calcStyle.cache||(this.calcStyle.cache={}),this.calcStyle.cache[t])return this.calcStyle.cache[t];if(!this.showCol.length&&!this.showHeader.length)return this.calcStyle.cache[t]="",this.calcStyle.cache[t];var e="auto";return t&&(e=t),this.calcStyle.cache[t]={width:e},this.calcStyle.cache[t]},averageAutoWidth:function(t){var e=0,n=0;return t.forEach((function(t){"auto"!=t.width?e+=Number(t.width):n+=1})),t.map((function(t){var r="auto"===t.width?1:0,o={"flex-grow":r,"-moz-box-flex":r,"-webkit-box-flex":r,"box-flex":r};return o.width=r?"calc((100% - ".concat(e,"px) / ").concat(n,")"):t.width+"px",o}))},getTargetLabel:function(t){var e=[];return this.showCol.forEach((function(n){e.push(t[n])})),e},makeCloneData:function(t){var e=this,n=(0,l.deepCopy)(t),r=[];if(Array.isArray(n)){var o=0;n.forEach((function(t){if(t.group){e.$set(t,"_index",o-.5),r.push(t);var n=t.options;Array.isArray(n)&&n.length>0&&(n.forEach((function(t){e.$set(t,"_index",o++)})),r.push.apply(r,(0,i.default)(n)),delete t.options)}else e.$set(t,"_index",o++),r.push(t)}))}return r}},mounted:function(){var t=this;if(this.showHeader.length){var e=this.showHeader.map((function(e){return t.calcStyle(e.width?e.width:"")}));this.styleArr=this.averageAutoWidth(e)}else if(this.showCol.length){this.styleArr=[];for(var n=[],r=0,i=0;i<this.showCol.length+1;i++){var s=this.colWidth[i]?this.colWidth[i]:"";r+=(0,o.default)(s,10),n.push(this.calcStyle(s)),this.styleArr=this.averageAutoWidth(n)}r+=28,this.$refs.content.style.width=r+"px"}this.$on("on-scroll-top",(function(){t.$refs.block.scrollTop=0})),this.$on("on-dropdown-show",(function(e){t.width=e,t.selectInstance&&t.selectInstance.widthAdaption&&t.selectInstance.widthAdaptivelyIncreases&&(t.blockWidth="auto")}));var c=this.$el.innerText;this.searchLabel=c.replace("false","").replace("true","").trim(),this.dispatch("SimpleSelect","append"),this.$on("on-select-close",(function(){t.isFocus=!1})),this.$on("on-query-change",(function(e,n){t.queryChange(e,n)})),this.$on("on-select-top",(function(e){t.selectedTop(e)})),this.$on("on-focus-index-change",(function(e){t.cloneData.filter((function(t){return!t.hidden&&!t.group})).forEach((function(t,n){t.focus=!1,n===e&&(t.focus=!0)}))})),this.multiple=this.$parent.$parent.multiple,this.showBottom=this.$parent.$parent.showBottom,this.showBorder=this.$parent.$parent.showBorder,this.hideMult=this.$parent.$parent.hideMult,this.cloneData=this.makeCloneData(this.data),this.cloneData.forEach((function(e){!e.group&&t.$set(e,"focus",!1)})),this.$nextTick((function(){t.visibleCount=Math.ceil(t.dropMaxHeight/Number(t.itemHeight))+1,t.updateVisibleData()}))},watch:{data:{deep:!0,handler:function(t){var e=this;window.$HUI&&window.$HUI.Log&&window.$HUI.Log.debug("h_ui simpleselect block data change"),this.$parent.$parent.hiddenEmpty?this.showEmpty=!1:0==t.length?this.showEmpty=!0:this.showEmpty=!1,this.cloneData=this.makeCloneData(this.data),this.cloneData.forEach((function(t){!t.group&&e.$set(t,"focus",!1)})),this.$parent.$parent.updateOptions(!0),this.lastScollTop>t.length*this.itemHeight&&(this.lastScollTop=t.length*this.itemHeight-this.dropMaxHeight),this.updateVisibleData()}}},destroyed:function(){this.dispatch("Select","remove"),this.$off("on-scroll-top"),this.$off("on-dropdown-show"),this.$off("on-select-close"),this.$off("on-query-change"),this.$off("on-select-top"),this.$off("on-focus-index-change")}};e.default=p},57:function(t,e,n){var r=n(33);t.exports=Array.isArray||function(t){return"Array"==r(t)}},59:function(t,e,n){"use strict";var r=n(92)(!0);n(55)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e){t.exports=require("h_ui/dist/lib/mixins/emitter.js")},61:function(t,e,n){t.exports=n(97)},62:function(t,e,n){var r=n(22)("meta"),o=n(6),i=n(10),s=n(5).f,c=0,a=Object.isExtensible||function(){return!0},u=!n(7)((function(){return a(Object.preventExtensions({}))})),l=function(t){s(t,r,{value:{i:"O"+ ++c,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!e)return"E";l(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!a(t))return!0;if(!e)return!1;l(t)}return t[r].w},onFreeze:function(t){return u&&f.NEED&&a(t)&&!i(t,r)&&l(t),t}}},63:function(t,e,n){t.exports=n(100)},64:function(t,e,n){t.exports=n(107)},65:function(t,e,n){var r=n(29),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},66:function(t,e,n){"use strict";var r=n(1),o=n(10),i=n(2),s=n(3),c=n(54),a=n(62).KEY,u=n(7),l=n(30),f=n(37),p=n(22),h=n(9),d=n(41),v=n(43),y=n(79),b=n(57),m=n(12),g=n(6),x=n(20),w=n(13),S=n(17),_=n(14),$=n(48),k=n(80),O=n(46),T=n(36),C=n(5),j=n(19),M=O.f,E=C.f,A=k.f,P=r.Symbol,D=r.JSON,B=D&&D.stringify,W=h("_hidden"),I=h("toPrimitive"),L={}.propertyIsEnumerable,N=l("symbol-registry"),H=l("symbols"),F=l("op-symbols"),R=Object.prototype,V="function"==typeof P&&!!T.f,G=r.QObject,q=!G||!G.prototype||!G.prototype.findChild,z=i&&u((function(){return 7!=$(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=M(R,e);r&&delete R[e],E(t,e,n),r&&t!==R&&E(R,e,r)}:E,U=function(t){var e=H[t]=$(P.prototype);return e._k=t,e},J=V&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Y=function(t,e,n){return t===R&&Y(F,e,n),m(t),e=S(e,!0),m(n),o(H,e)?(n.enumerable?(o(t,W)&&t[W][e]&&(t[W][e]=!1),n=$(n,{enumerable:_(0,!1)})):(o(t,W)||E(t,W,_(1,{})),t[W][e]=!0),z(t,e,n)):E(t,e,n)},K=function(t,e){m(t);for(var n,r=y(e=w(e)),o=0,i=r.length;i>o;)Y(t,n=r[o++],e[n]);return t},X=function(t){var e=L.call(this,t=S(t,!0));return!(this===R&&o(H,t)&&!o(F,t))&&(!(e||!o(this,t)||!o(H,t)||o(this,W)&&this[W][t])||e)},Q=function(t,e){if(t=w(t),e=S(e,!0),t!==R||!o(H,e)||o(F,e)){var n=M(t,e);return!n||!o(H,e)||o(t,W)&&t[W][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=A(w(t)),r=[],i=0;n.length>i;)o(H,e=n[i++])||e==W||e==a||r.push(e);return r},tt=function(t){for(var e,n=t===R,r=A(n?F:w(t)),i=[],s=0;r.length>s;)!o(H,e=r[s++])||n&&!o(R,e)||i.push(H[e]);return i};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===R&&e.call(F,n),o(this,W)&&o(this[W],t)&&(this[W][t]=!1),z(this,t,_(1,n))};return i&&q&&z(R,t,{configurable:!0,set:e}),U(t)},c(P.prototype,"toString",(function(){return this._k})),O.f=Q,C.f=Y,n(44).f=k.f=Z,n(28).f=X,T.f=tt,i&&!n(23)&&c(R,"propertyIsEnumerable",X,!0),d.f=function(t){return U(h(t))}),s(s.G+s.W+s.F*!V,{Symbol:P});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)h(et[nt++]);for(var rt=j(h.store),ot=0;rt.length>ot;)v(rt[ot++]);s(s.S+s.F*!V,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=P(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),s(s.S+s.F*!V,"Object",{create:function(t,e){return void 0===e?$(t):K($(t),e)},defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt});var it=u((function(){T.f(1)}));s(s.S+s.F*it,"Object",{getOwnPropertySymbols:function(t){return T.f(x(t))}}),D&&s(s.S+s.F*(!V||u((function(){var t=P();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(g(e)||void 0!==t)&&!J(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,B.apply(D,r)}}),P.prototype[I]||n(11)(P.prototype,I,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},67:function(t,e,n){var r=n(13),o=n(42),i=n(65);t.exports=function(t){return function(e,n,s){var c,a=r(e),u=o(a.length),l=i(s,u);if(t&&n!=n){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},68:function(t,e,n){"use strict";var r=n(5),o=n(14);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},69:function(t,e,n){n(70),t.exports=n(0).parseInt},7:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},70:function(t,e,n){var r=n(3),o=n(71);r(r.G+r.F*(parseInt!=o),{parseInt:o})},71:function(t,e,n){var r=n(1).parseInt,o=n(51).trim,i=n(35),s=/^[-+]?0[xX]/;t.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(t,e){var n=o(String(t),3);return r(n,e>>>0||(s.test(n)?16:10))}:r},73:function(t,e,n){var r=n(1).document;t.exports=r&&r.documentElement},74:function(t,e,n){var r=n(5),o=n(12),i=n(19);t.exports=n(2)?Object.defineProperties:function(t,e){o(t);for(var n,s=i(e),c=s.length,a=0;c>a;)r.f(t,n=s[a++],e[n]);return t}},75:function(t,e){},76:function(t,e,n){n(94);for(var r=n(1),o=n(11),i=n(26),s=n(9)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a<c.length;a++){var u=c[a],l=r[u],f=l&&l.prototype;f&&!f[s]&&o(f,s,u),i[u]=i.Array}},761:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"block",class:t.blockCls,style:t.blockStyles,on:{scroll:t.handleBodyScroll}},[n("div",{class:[t.prefixCls+"-phantom"],style:t.phantomStl}),t._v(" "),n("ul",{ref:"content",class:[t.prefixCls+"block-content"],staticStyle:{display:"inline-block","min-width":"100%"}},[t.showHeader.length?n("li",{ref:t.prefixCls+"-item-header",class:t.prefixCls+"-item-header"},[t._l(t.showHeader,(function(e,r){return n("span",{key:r,staticClass:"item-header",style:t.styleArr[r]},[t._v(t._s(e.title?e.title:e))])}))],2):t._e(),t._v(" "),t._l(t.visibleData,(function(e,r){return n("li",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!item.hidden"}],key:void 0===e.value?e.value:r,class:t.classes(e),on:{click:function(n){return n.stopPropagation(),t.select(e)},mouseout:function(e){return e.stopPropagation(),t.blur(e)}}},[e.group?[n("span",[t._v(t._s(e.group))])]:[t._t("default",[n("span",{class:t.showCol.length||t.showEllipsis?"itemcol":"",style:t.showEllipsis?t.showEllipsisStyle:t.showCol.length?t.styleArr[0]:"",attrs:{title:t.showTitle?t.showLabel(e):""}},[n("checkbox",{directives:[{name:"show",rawName:"v-show",value:t.multiple&&!t.hideMult,expression:"multiple && !hideMult"}],key:e.value,attrs:{size:"large",notGroup:"",value:e.selected,disabled:e.disabled},on:{"on-change":function(n){return t.checkChange(n,e)}},nativeOn:{click:function(e){return e.stopPropagation(),t.handleclick(e)}}}),t._v("\n "+t._s(t.showLabel(e))+"\n ")],1)])],t._v(" "),t._l(t.showCol,(function(r,o){return n("span",{key:r,staticClass:"itemcol",style:t.styleArr[o+1],attrs:{title:t.showTitle?e[r]:""}},[t._v(t._s(e[r]))])}))],2)}))],2),t._v(" "),t.showEmpty&&!t.loading?n("div",{class:[t.prefixCls+"-empty"],staticStyle:{"font-size":"12px"}},[t._v("\n "+t._s(t.localeNoMatch)+"\n ")]):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.loading&&0===t.visibleData.length,expression:"loading && visibleData.length === 0"}],class:[t.prefixCls+"-loading-placeholder"]},[t._v("\n \n ")])])},o=[];r._withStripped=!0},79:function(t,e,n){var r=n(19),o=n(36),i=n(28);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var s,c=n(t),a=i.f,u=0;c.length>u;)a.call(t,s=c[u++])&&e.push(s);return e}},8:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},80:function(t,e,n){var r=n(13),o=n(44).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(r(t))}},81:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},86:function(t,e,n){var r=n(33),o=n(9)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},87:function(t,e,n){var r=n(12);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},88:function(t,e,n){var r=n(26),o=n(9)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},89:function(t,e,n){var r=n(86),o=n(9)("iterator"),i=n(26);t.exports=n(0).getIteratorMethod=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},9:function(t,e,n){var r=n(30)("wks"),o=n(22),i=n(1).Symbol,s="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=r},90:function(t,e,n){var r=n(10),o=n(20),i=n(34)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},92:function(t,e,n){var r=n(29),o=n(18);t.exports=function(t){return function(e,n){var i,s,c=String(o(e)),a=r(n),u=c.length;return a<0||a>=u?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===u||(s=c.charCodeAt(a+1))<56320||s>57343?t?c.charAt(a):i:t?c.slice(a,a+2):s-56320+(i-55296<<10)+65536}}},93:function(t,e,n){"use strict";var r=n(48),o=n(14),i=n(37),s={};n(11)(s,n(9)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(s,{next:o(1,n)}),i(t,e+" Iterator")}},94:function(t,e,n){"use strict";var r=n(95),o=n(81),i=n(26),s=n(13);t.exports=n(55)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},95:function(t,e){t.exports=function(){}},96:function(t,e){t.exports=require("h_ui/dist/lib/cjs/Checkbox.js")},97:function(t,e,n){n(66),n(75),n(98),n(99),t.exports=n(0).Symbol},98:function(t,e,n){n(43)("asyncIterator")},99:function(t,e,n){n(43)("observable")}});