index-legacy.d856500a.js 9.1 KB

1
  1. !function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var a,r,c=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(c.push(a.value),!n||c.length!==n);o=!0);}catch(u){l=!0,r=u}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return c}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}var t=document.createElement("style");t.innerHTML=".van-search{padding-left:.37333rem;padding-right:.37333rem}.van-search input{-webkit-user-select:text!important;-moz-user-select:text!important;user-select:text!important}.van-search .van-search__field{background:transparent!important}._col-search_19l4u_12{--van-cell-background-color: transparent;padding-left:.34667rem;padding-right:.34667rem}._col-search_19l4u_12 .van-field__left-icon{display:flex;align-items:center}._col-search_19l4u_12 .van-field__right-icon{font-size:0;padding-right:0}._col-search_19l4u_12 .van-search__action{display:flex}._col-search_19l4u_12 .van-field__control{font-size:.34667rem}._col-search_19l4u_12 .van-field__control::-moz-placeholder{color:#aaa}._col-search_19l4u_12 .van-field__control::placeholder{color:#aaa}._col-search_19l4u_12 .van-search__content{padding-left:0}._col-search_19l4u_12 ._leftIcon_19l4u_37{font-size:.42667rem;margin-top:-.08rem}._col-search_19l4u_12._default_19l4u_41 .van-search__content{background:#f6f6f6!important}._col-search_19l4u_12._white_19l4u_44 .van-search__content{background:#fff!important}._col-search_19l4u_12._transparent_19l4u_47 .van-search__content{background:rgba(255,255,255,.16)}._col-search_19l4u_12._transparent_19l4u_47 .van-search__content input::-moz-placeholder{color:#fff}._col-search_19l4u_12._transparent_19l4u_47 .van-search__content input::placeholder{color:#fff}._col-search_19l4u_12._transparent_19l4u_47 .van-search__content input,._col-search_19l4u_12._transparent_19l4u_47 .van-search__content .van-field__clear{color:#fff}._col-search_19l4u_12 ._searchBtn_19l4u_59{width:1.49333rem;height:.74667rem;padding:0;font-size:.37333rem;--van-button-mini-height: .74667rem;--van-font-size-xs: .37333rem}\n",document.head.appendChild(t),System.register(["./index-legacy.569a2858.js","./index-legacy.47bc1690.js"],(function(n){"use strict";var t,a,r,c,o,l,u,i,s,m,f,d,Z,h,A,_,p,g;return{setters:[function(e){t=e.f,a=e.F},function(e){r=e.t,c=e.N,o=e.u,l=e.v,u=e.d,i=e.Q,s=e.R,m=e.W,f=e.c,d=e.am,Z=e.E,h=e.a4,A=e.D,_=e.a5,p=e.B,g=e.q}],execute:function(){var k=e(r("search"),3),y=k[0],b=k[1],v=k[2],S=c({},t,{label:String,shape:o("square"),leftIcon:o("search"),clearable:l,actionText:String,background:String,showAction:Boolean}),B=u({name:y,props:S,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup:function(e,n){var r=n.emit,o=n.slots,l=n.attrs,u=i(),A=s(),_=function(){o.action||(r("update:modelValue",""),r("cancel"))},p=function(n){13===n.keyCode&&(h(n),r("search",e.modelValue))},g=function(){return e.id||"".concat(u,"-input")},k=function(){if(o.label||e.label)return f("label",{class:b("label"),for:g()},[o.label?o.label():e.label])},y=function(){if(e.showAction){var n=e.actionText||v("cancel");return f("div",{class:b("action"),role:"button",tabindex:0,onClick:_},[o.action?o.action():n])}},S=function(e){return r("blur",e)},B=function(e){return r("focus",e)},W=function(e){return r("clear",e)},C=function(e){return r("clickInput",e)},L=function(e){return r("clickLeftIcon",e)},q=function(e){return r("clickRightIcon",e)},w=Object.keys(t);return m({focus:function(){var e;return null==(e=A.value)?void 0:e.focus()},blur:function(){var e;return null==(e=A.value)?void 0:e.blur()}}),function(){var n,t;return f("div",{class:b({"show-action":e.showAction}),style:{background:e.background}},[null==(n=o.left)?void 0:n.call(o),f("div",{class:b("content",e.shape)},[k(),(t=c({},l,d(e,w),{id:g()}),f(a,Z({ref:A,type:"search",class:b("field"),border:!1,onBlur:S,onFocus:B,onClear:W,onKeypress:p,onClickInput:C,onClickLeftIcon:L,onClickRightIcon:q,"onUpdate:modelValue":function(e){return r("update:modelValue",e)}},t),d(o,["left-icon","right-icon"])))]),y()])}}}),W=A(B),C={"col-search":"_col-search_19l4u_12",leftIcon:"_leftIcon_19l4u_37",default:"_default_19l4u_41",white:"_white_19l4u_44",transparent:"_transparent_19l4u_47",searchBtn:"_searchBtn_19l4u_59"};n("O",u({name:"ColSearch",props:{modelValue:{type:String,default:""},showAction:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},placeholder:{type:String,default:"请输入搜索关键词"},background:{type:String,default:"#fff"},inputBackground:{type:String,default:"default"},onSearch:{type:Function,default:function(e){}},onFilter:{type:Function,default:function(){}},filterDot:{type:Boolean,default:!1},leftIcon:{type:String,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABEtJREFUWEe9l2toXFUQx39zE2LB2tQHJfZDfUsrSFW0GI0PEC2ilSZl925rRLFVoWg1pSLWuHs2rVURqjSgYolQg2HvpprWBxbqBysEHxi1ii3YqiiKEhXpB5u2yd6R+9jNTXY3u0kW99NyzpyZ3/mfOXPmCtP46Rb7InIsBRaBzgXrBLh/YFnf4S4+KMa403Dnm0qlBWpiTVC3AXQ1cH5Ze+EfVAYg1y2m/+tKfvPzZQHUxLwdPg5sBOZW6xBwQfqotzqls+/nSutKAqhpvxgdfQdhyUQHehwYBPkFZBh0PrAQtBlkwQRb5RgWqyXlf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4C7lKQRaHcJxD5HdVDWHIgWuGiek0JMQ1hZ2VaGoL2qhWYVfRwcRGE/M8AfmkJitQanynp9P0Hjfiwkos1FzsAAAAASUVORK5CYII="}},emits:["click"],watch:{modelValue:function(){this.search=this.modelValue}},data:function(){return{search:this.modelValue||""}},render:function(){var e=this;return f("div",null,[f(W,{class:[C["col-search"],C[this.inputBackground]],modelValue:this.search,"onUpdate:modelValue":function(n){return e.search=n},background:this.background,showAction:this.showAction,shape:"round",placeholder:this.placeholder,disabled:this.disabled,autofocus:this.autofocus,onSearch:function(n){e.onSearch(n)},onClear:function(){e.search="",e.onSearch()},onClick:function(){return e.$emit("click")}},{left:function(){return e.$slots.left&&e.$slots.left()},"left-icon":function(){return f(_,{name:e.leftIcon,class:C.leftIcon},null)},"right-icon":function(){return f(p,{class:C.searchBtn,round:!0,type:"primary",size:"mini",onClick:function(){e.onSearch(e.search)}},{default:function(){return[g("搜索")]}})},action:function(){return f(_,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAAXNSR0IArs4c6QAAAWtQTFRFAAAAAAAAAICAgICAZmZmbW1tYGBgOcaqXV1dW1tbZmZmLdK0K8aqY2NjXl5eLsWuKcKtYmJiaGhoLsikampqMMenaGhoZGRkLcutZ2dnZWVlLsuqaWlpK8iqZ2dnY2NjaWlpK8muZWVlaGhoZmZmZGRkaWlpZ2dnLsesZmZmZ2dnY2NjZGRkaGhoZWVlZ2dnZ2dnZmZmLcirZ2dnZmZmZmZmZ2dnLcepZ2dnZmZmZmZmZmZmZWVlZmZmZmZmZmZmZmZmLMepZWVlZmZmLcaqLcapLcirZ2dnZmZmZ2dnZmZmLceqZmZmLMeqZmZmLceqLsiqZ2dnLcaqZmZmLceqZmZmZ2dnZmZmZmZmZWVlZmZmZmZmZ2dnZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmLciqZmZmZmZmZWVlZmZmLcerZmZmZWVlZmZmZmZ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