UNPKG

shu-c-view

Version:

rollup 打包vue组件库框架

7 lines (6 loc) 18.9 kB
/*! * shu-c-view v1.2.37 * (c) 2022-09-22 * @license MIT */ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash/assign"),e=require("lodash/isNil"),n=require("lodash/isArray"),r=require("lodash/isEmpty");function o(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var i=o(t),a=o(e),c=o(n),u=o(r),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(t){try{return!!t()}catch(t){return!0}},f=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),p=function(t){return t&&t.Math==Math&&t},h=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof l&&l)||function(){return this}()||Function("return this")(),d=s,g=/#|\.prototype\./,v=function(t,e){var n=m[y(t)];return n==E||n!=b&&("function"==typeof e?d(e):!!e)},y=v.normalize=function(t){return String(t).replace(g,".").toLowerCase()},m=v.data={},b=v.NATIVE="N",E=v.POLYFILL="P",S=v,x={exports:{}},O={},w=function(t){return"object"==typeof t?null!==t:"function"==typeof t},_=w,I=h.document,N=_(I)&&_(I.createElement),R=function(t){return N?I.createElement(t):{}},j=R,P=!f&&!s((function(){return 7!=Object.defineProperty(j("div"),"a",{get:function(){return 7}}).a})),A=w,T=function(t){if(!A(t))throw TypeError(String(t)+" is not an object");return t},C=w,$=function(t,e){if(!C(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!C(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!C(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!C(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},F=f,M=P,k=T,U=$,D=Object.defineProperty;O.f=F?D:function(t,e,n){if(k(t),e=U(e,!0),k(n),M)try{return D(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};var L=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=O,B=L,q=f?function(t,e,n){return V.f(t,e,B(1,n))}:function(t,e,n){return t[e]=n,t},G={}.hasOwnProperty,z=function(t,e){return G.call(t,e)},Y=h,K=q,X=function(t,e){try{K(Y,t,e)}catch(n){Y[t]=e}return e},W=X,H=h["__core-js_shared__"]||W("__core-js_shared__",{}),J=H,Q=Function.toString;"function"!=typeof J.inspectSource&&(J.inspectSource=function(t){return Q.call(t)});var Z=J.inspectSource,tt=Z,et=h.WeakMap,nt="function"==typeof et&&/native code/.test(tt(et)),rt={exports:{}},ot=H;(rt.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var it,at,ct,ut=0,lt=Math.random(),st=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ut+lt).toString(36)},ft=rt.exports,pt=st,ht=ft("keys"),dt=function(t){return ht[t]||(ht[t]=pt(t))},gt={},vt=nt,yt=w,mt=q,bt=z,Et=H,St=dt,xt=gt,Ot=h.WeakMap;if(vt){var wt=Et.state||(Et.state=new Ot),_t=wt.get,It=wt.has,Nt=wt.set;it=function(t,e){return e.facade=t,Nt.call(wt,t,e),e},at=function(t){return _t.call(wt,t)||{}},ct=function(t){return It.call(wt,t)}}else{var Rt=St("state");xt[Rt]=!0,it=function(t,e){return e.facade=t,mt(t,Rt,e),e},at=function(t){return bt(t,Rt)?t[Rt]:{}},ct=function(t){return bt(t,Rt)}}var jt={set:it,get:at,has:ct,enforce:function(t){return ct(t)?at(t):it(t,{})},getterFor:function(t){return function(e){var n;if(!yt(e)||(n=at(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Pt=h,At=q,Tt=z,Ct=X,$t=Z,Ft=jt.get,Mt=jt.enforce,kt=String(String).split("String");(x.exports=function(t,e,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,c=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||Tt(n,"name")||At(n,"name",e),(o=Mt(n)).source||(o.source=kt.join("string"==typeof e?e:""))),t!==Pt?(i?!c&&t[e]&&(a=!0):delete t[e],a?t[e]=n:At(t,e,n)):a?t[e]=n:Ct(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&Ft(this).source||$t(this)}));var Ut,Dt={}.toString,Lt=function(t){return Dt.call(t).slice(8,-1)},Vt=w,Bt=T,qt=function(t){if(!Vt(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Gt=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Bt(n),qt(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),zt=w,Yt=Gt,Kt=function(t,e,n){var r,o;return Yt&&"function"==typeof(r=e.constructor)&&r!==n&&zt(o=r.prototype)&&o!==n.prototype&&Yt(t,o),t},Xt=Lt,Wt="".split,Ht=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Jt=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==Xt(t)?Wt.call(t,""):Object(t)}:Object,Qt=Ht,Zt=function(t){return Jt(Qt(t))},te=Math.ceil,ee=Math.floor,ne=function(t){return isNaN(t=+t)?0:(t>0?ee:te)(t)},re=ne,oe=Math.min,ie=function(t){return t>0?oe(re(t),9007199254740991):0},ae=ne,ce=Math.max,ue=Math.min,le=Zt,se=ie,fe=function(t,e){var n=ae(t);return n<0?ce(n+e,0):ue(n,e)},pe=function(t){return function(e,n,r){var o,i=le(e),a=se(i.length),c=fe(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},he={includes:pe(!0),indexOf:pe(!1)},de=z,ge=Zt,ve=he.indexOf,ye=gt,me=function(t,e){var n,r=ge(t),o=0,i=[];for(n in r)!de(ye,n)&&de(r,n)&&i.push(n);for(;e.length>o;)de(r,n=e[o++])&&(~ve(i,n)||i.push(n));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ee=me,Se=be,xe=Object.keys||function(t){return Ee(t,Se)},Oe=O,we=T,_e=xe,Ie=f?Object.defineProperties:function(t,e){we(t);for(var n,r=_e(e),o=r.length,i=0;o>i;)Oe.f(t,n=r[i++],e[n]);return t},Ne=h,Re=h,je=function(t){return"function"==typeof t?t:void 0},Pe=function(t,e){return arguments.length<2?je(Ne[t])||je(Re[t]):Ne[t]&&Ne[t][e]||Re[t]&&Re[t][e]},Ae=Pe("document","documentElement"),Te=T,Ce=Ie,$e=be,Fe=gt,Me=Ae,ke=R,Ue=dt("IE_PROTO"),De=function(){},Le=function(t){return"<script>"+t+"<\/script>"},Ve=function(){try{Ut=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Ve=Ut?function(t){t.write(Le("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Ut):((e=ke("iframe")).style.display="none",Me.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Le("document.F=Object")),t.close(),t.F);for(var n=$e.length;n--;)delete Ve.prototype[$e[n]];return Ve()};Fe[Ue]=!0;var Be=Object.create||function(t,e){var n;return null!==t?(De.prototype=Te(t),n=new De,De.prototype=null,n[Ue]=t):n=Ve(),void 0===e?n:Ce(n,e)},qe={},Ge=me,ze=be.concat("length","prototype");qe.f=Object.getOwnPropertyNames||function(t){return Ge(t,ze)};var Ye={},Ke={},Xe={}.propertyIsEnumerable,We=Object.getOwnPropertyDescriptor,He=We&&!Xe.call({1:2},1);Ke.f=He?function(t){var e=We(this,t);return!!e&&e.enumerable}:Xe;var Je=f,Qe=Ke,Ze=L,tn=Zt,en=$,nn=z,rn=P,on=Object.getOwnPropertyDescriptor;Ye.f=Je?on:function(t,e){if(t=tn(t),e=en(e,!0),rn)try{return on(t,e)}catch(t){}if(nn(t,e))return Ze(!Qe.f.call(t,e),t[e])};var an=Ht,cn="[\t\n\v\f\r                 \u2028\u2029\ufeff]",un=RegExp("^"+cn+cn+"*"),ln=RegExp(cn+cn+"*$"),sn=function(t){return function(e){var n=String(an(e));return 1&t&&(n=n.replace(un,"")),2&t&&(n=n.replace(ln,"")),n}},fn={start:sn(1),end:sn(2),trim:sn(3)},pn=f,hn=h,dn=S,gn=x.exports,vn=z,yn=Lt,mn=Kt,bn=$,En=s,Sn=Be,xn=qe.f,On=Ye.f,wn=O.f,_n=fn.trim,In=hn.Number,Nn=In.prototype,Rn="Number"==yn(Sn(Nn)),jn=function(t){var e,n,r,o,i,a,c,u,l=bn(t,!1);if("string"==typeof l&&l.length>2)if(43===(e=(l=_n(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+l}for(a=(i=l.slice(2)).length,c=0;c<a;c++)if((u=i.charCodeAt(c))<48||u>o)return NaN;return parseInt(i,r)}return+l};if(dn("Number",!In(" 0o1")||!In("0b1")||In("+0x1"))){for(var Pn,An=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof An&&(Rn?En((function(){Nn.valueOf.call(n)})):"Number"!=yn(n))?mn(new In(jn(e)),n,An):jn(e)},Tn=pn?xn(In):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Cn=0;Tn.length>Cn;Cn++)vn(In,Pn=Tn[Cn])&&!vn(An,Pn)&&wn(An,Pn,On(In,Pn));An.prototype=Nn,Nn.constructor=An,gn(hn,"Number",An)}var $n=f,Fn=O.f,Mn=Function.prototype,kn=Mn.toString,Un=/^\s*function ([^ (]*)/;$n&&!("name"in Mn)&&Fn(Mn,"name",{configurable:!0,get:function(){try{return kn.call(this).match(Un)[1]}catch(t){return""}}});var Dn={};Dn.f=Object.getOwnPropertySymbols;var Ln=qe,Vn=Dn,Bn=T,qn=Pe("Reflect","ownKeys")||function(t){var e=Ln.f(Bn(t)),n=Vn.f;return n?e.concat(n(t)):e},Gn=z,zn=qn,Yn=Ye,Kn=O,Xn=h,Wn=Ye.f,Hn=q,Jn=x.exports,Qn=X,Zn=function(t,e){for(var n=zn(e),r=Kn.f,o=Yn.f,i=0;i<n.length;i++){var a=n[i];Gn(t,a)||r(t,a,o(e,a))}},tr=S,er=T,nr=function(){var t=er(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},rr={},or=s;function ir(t,e){return RegExp(t,e)}rr.UNSUPPORTED_Y=or((function(){var t=ir("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),rr.BROKEN_CARET=or((function(){var t=ir("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));var ar=nr,cr=rr,ur=RegExp.prototype.exec,lr=String.prototype.replace,sr=ur,fr=function(){var t=/a/,e=/b*/g;return ur.call(t,"a"),ur.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),pr=cr.UNSUPPORTED_Y||cr.BROKEN_CARET,hr=void 0!==/()??/.exec("")[1];(fr||hr||pr)&&(sr=function(t){var e,n,r,o,i=this,a=pr&&i.sticky,c=ar.call(i),u=i.source,l=0,s=t;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,l++),n=new RegExp("^(?:"+u+")",c)),hr&&(n=new RegExp("^"+u+"$(?!\\s)",c)),fr&&(e=i.lastIndex),r=ur.call(a?n:i,s),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:fr&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),hr&&r&&r.length>1&&lr.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var dr=sr;(function(t,e){var n,r,o,i,a,c=t.target,u=t.global,l=t.stat;if(n=u?Xn:l?Xn[c]||Qn(c,{}):(Xn[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Wn(n,r))&&a.value:n[r],!tr(u?r:c+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Zn(i,o)}(t.sham||o&&o.sham)&&Hn(i,"sham",!0),Jn(n,r,i,t)}})({target:"RegExp",proto:!0,forced:/./.exec!==dr},{exec:dr});var gr,vr,yr="process"==Lt(h.process),mr=Pe("navigator","userAgent")||"",br=h.process,Er=br&&br.versions,Sr=Er&&Er.v8;Sr?vr=(gr=Sr.split("."))[0]+gr[1]:mr&&(!(gr=mr.match(/Edge\/(\d+)/))||gr[1]>=74)&&(gr=mr.match(/Chrome\/(\d+)/))&&(vr=gr[1]);var xr=yr,Or=vr&&+vr,wr=s,_r=!!Object.getOwnPropertySymbols&&!wr((function(){return!Symbol.sham&&(xr?38===Or:Or>37&&Or<41)})),Ir=_r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Nr=h,Rr=rt.exports,jr=z,Pr=st,Ar=_r,Tr=Ir,Cr=Rr("wks"),$r=Nr.Symbol,Fr=Tr?$r:$r&&$r.withoutSetter||Pr,Mr=function(t){return jr(Cr,t)&&(Ar||"string"==typeof Cr[t])||(Ar&&jr($r,t)?Cr[t]=$r[t]:Cr[t]=Fr("Symbol."+t)),Cr[t]},kr=x.exports,Ur=s,Dr=Mr,Lr=dr,Vr=q,Br=Dr("species"),qr=!Ur((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Gr="$0"==="a".replace(/./,"$0"),zr=Dr("replace"),Yr=!!/./[zr]&&""===/./[zr]("a","$0"),Kr=!Ur((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Xr=ne,Wr=Ht,Hr=function(t){return function(e,n){var r,o,i=String(Wr(e)),a=Xr(n),c=i.length;return a<0||a>=c?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},Jr={codeAt:Hr(!1),charAt:Hr(!0)}.charAt,Qr=Ht,Zr=function(t){return Object(Qr(t))},to=Math.floor,eo="".replace,no=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ro=/\$([$&'`]|\d{1,2})/g,oo=Lt,io=dr,ao=function(t,e,n,r){var o=Dr(t),i=!Ur((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!Ur((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Br]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!a||"replace"===t&&(!qr||!Gr||Yr)||"split"===t&&!Kr){var c=/./[o],u=n(o,""[t],(function(t,e,n,r,o){return e.exec===Lr?i&&!o?{done:!0,value:c.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Gr,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Yr}),l=u[0],s=u[1];kr(String.prototype,t,l),kr(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&Vr(RegExp.prototype[o],"sham",!0)},co=T,uo=ie,lo=ne,so=Ht,fo=function(t,e,n){return e+(n?Jr(t,e).length:1)},po=function(t,e,n,r,o,i){var a=n+t.length,c=r.length,u=ro;return void 0!==o&&(o=Zr(o),u=no),eo.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(a);case"<":l=o[u.slice(1,-1)];break;default:var s=+u;if(0===s)return i;if(s>c){var f=to(s/10);return 0===f?i:f<=c?void 0===r[f-1]?u.charAt(1):r[f-1]+u.charAt(1):i}l=r[s-1]}return void 0===l?"":l}))},ho=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==oo(t))throw TypeError("RegExp#exec called on incompatible receiver");return io.call(t,e)},go=Math.max,vo=Math.min;ao("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=so(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var c=n(e,t,this,r);if(c.done)return c.value}var u=co(t),l=String(this),s="function"==typeof r;s||(r=String(r));var f=u.global;if(f){var p=u.unicode;u.lastIndex=0}for(var h=[];;){var d=ho(u,l);if(null===d)break;if(h.push(d),!f)break;""===String(d[0])&&(u.lastIndex=fo(l,uo(u.lastIndex),p))}for(var g,v="",y=0,m=0;m<h.length;m++){d=h[m];for(var b=String(d[0]),E=go(vo(lo(d.index),l.length),0),S=[],x=1;x<d.length;x++)S.push(void 0===(g=d[x])?g:String(g));var O=d.groups;if(s){var w=[b].concat(S,E,l);void 0!==O&&w.push(O);var _=String(r.apply(void 0,w))}else _=po(b,l,E,S,O,r);E>=y&&(v+=l.slice(y,E)+_,y=E+b.length)}return v+l.slice(y)}]}));var yo=w,mo=Lt,bo=Mr("match"),Eo=Pe,So=O,xo=f,Oo=Mr("species"),wo=f,_o=h,Io=S,No=Kt,Ro=O.f,jo=qe.f,Po=function(t){var e;return yo(t)&&(void 0!==(e=t[bo])?!!e:"RegExp"==mo(t))},Ao=nr,To=rr,Co=x.exports,$o=s,Fo=jt.set,Mo=function(t){var e=Eo(t),n=So.f;xo&&e&&!e[Oo]&&n(e,Oo,{configurable:!0,get:function(){return this}})},ko=Mr("match"),Uo=_o.RegExp,Do=Uo.prototype,Lo=/a/g,Vo=/a/g,Bo=new Uo(Lo)!==Lo,qo=To.UNSUPPORTED_Y;if(wo&&Io("RegExp",!Bo||qo||$o((function(){return Vo[ko]=!1,Uo(Lo)!=Lo||Uo(Vo)==Vo||"/a/i"!=Uo(Lo,"i")})))){for(var Go=function(t,e){var n,r=this instanceof Go,o=Po(t),i=void 0===e;if(!r&&o&&t.constructor===Go&&i)return t;Bo?o&&!i&&(t=t.source):t instanceof Go&&(i&&(e=Ao.call(t)),t=t.source),qo&&(n=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a=No(Bo?new Uo(t,e):Uo(t,e),r?this:Do,Go);return qo&&n&&Fo(a,{sticky:n}),a},zo=function(t){t in Go||Ro(Go,t,{configurable:!0,get:function(){return Uo[t]},set:function(e){Uo[t]=e}})},Yo=jo(Uo),Ko=0;Yo.length>Ko;)zo(Yo[Ko++]);Do.constructor=Go,Go.prototype=Do,Co(_o,"RegExp",Go)}Mo("RegExp");var Xo=x.exports,Wo=T,Ho=s,Jo=nr,Qo=RegExp.prototype,Zo=Qo.toString,ti=Ho((function(){return"/a/b"!=Zo.call({source:"a",flags:"b"})})),ei="toString"!=Zo.name;(ti||ei)&&Xo(RegExp.prototype,"toString",(function(){var t=Wo(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in Qo)?Jo.call(t):n)}),{unsafe:!0});var ni={name:"BaseSelectInput",inheritAttrs:!1,model:{prop:"value",event:"selectInputChange"},props:{width:{type:String,default:"auto"},emptyText:{type:String,default:"请输入内容"},api:{type:String},queryParams:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},loadFilter:{type:Function},value:{type:[String,Number]},displayField:{type:String,default:"name"},size:{type:String,default:"medium"},ctStyle:{type:Object},ctCls:{type:Object},disabled:{type:Boolean,default:!1},isDisplay:{type:Boolean,default:!0},isRender:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},data:function(){return{vValue:this.value,curOptions:i([],this.options)}},mounted:function(){this.api&&this.initLoadStore()},methods:{initLoadStore:function(){var t=this;this.$api[this.api](this.queryParams).then((function(e){a(t.loadFilter)||(e=t.loadFilter(e.data)),t.curOptions=e.data})).catch((function(t){}))},createInputComponent:function(){var t=this;return this.$createElement("el-input",{class:"base-select-input-edit",style:{width:this.width},attrs:{readonly:this.readonly,placeholder:this.emptyText,size:this.size},props:{value:this.vValue,disabled:this.disabled},nativeOn:{click:function(e){t.disabled||(t.$refs["combo-box-select"].$el.click(),e.target.focus())}},on:{input:function(e){t.vValue=e,t.$emit("selectInputChange",t.vValue)},change:function(t){}},ref:"combo-box-input"})},createSelectComponent:function(){var t=this,e=[];if(!a(this.curOptions)){for(var n=0,r=this.curOptions.length;n<r;n++){var o=this.curOptions[n],i=this.$createElement("el-option",{props:{label:o[this.displayField],value:o[this.displayField]}});e.push(i)}return this.$createElement("el-select",{class:"base-select-input-select",style:{width:this.width},props:{value:this.vValue,multiple:!1},on:{input:function(e){t.vValue=e},change:function(e){t.vValue=e,t.$emit("selectInputChange",e)}},ref:"combo-box-select"},e)}}},render:function(t){if(!this.isRender)return t();var e=i({},this.$props.ctStyle,{width:this.width});return this.isDisplay||(e.display="none"),t("div",{class:i({},this.$props.ctCls||{},{"base-select-input":!0}),style:i({},this.$props.ctStyle||{},{width:this.width})},[this.createInputComponent(),this.createSelectComponent()])}};ni.install=function(t,e){var n;if(n="按需加载独立组件:"+ni.name,"development"!==process.env.NODE_ENV&&"dev"!==process.env.NODE_ENV||console.warn(n),c(e)&&!u(e))for(var r=0;r<e.length;r++)e[r].name!==ni.name&&t.use(e[r]);t.component(ni.name,ni)},exports.BaseSelectInput=ni;