1 |
- !function(){function n(n,a){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var a=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==a)return;var t,r,c=[],o=!0,s=!1;try{for(a=a.call(n);!(o=(t=a.next()).done)&&(c.push(t.value),!e||c.length!==e);o=!0);}catch(l){s=!0,r=l}finally{try{o||null==a.return||a.return()}finally{if(s)throw r}}return c}(n,a)||function(n,a){if(!n)return;if("string"==typeof n)return e(n,a);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return e(n,a)}(n,a)||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 e(n,e){(null==e||e>n.length)&&(e=n.length);for(var a=0,t=new Array(e);a<e;a++)t[a]=n[a];return t}var a=document.createElement("style");a.innerHTML=":root{--van-search-padding: .26667rem var(--van-padding-sm);--van-search-background-color: var(--van-background-color-light);--van-search-content-background-color: var(--van-gray-1);--van-search-input-height: .90667rem;--van-search-label-padding: 0 .13333rem;--van-search-label-color: var(--van-text-color);--van-search-label-font-size: var(--van-font-size-md);--van-search-left-icon-color: var(--van-gray-6);--van-search-action-padding: 0 var(--van-padding-xs);--van-search-action-text-color: var(--van-text-color);--van-search-action-font-size: var(--van-font-size-md)}.van-search{display:flex;align-items:center;box-sizing:border-box;padding:var(--van-search-padding);background:var(--van-search-background-color)}.van-search__content{display:flex;flex:1;padding-left:var(--van-padding-sm);background:var(--van-search-content-background-color);border-radius:var(--van-border-radius-sm)}.van-search__content--round{border-radius:var(--van-border-radius-max)}.van-search__label{padding:var(--van-search-label-padding);color:var(--van-search-label-color);font-size:var(--van-search-label-font-size);line-height:var(--van-search-input-height)}.van-search__field{flex:1;padding:.13333rem var(--van-padding-xs) .13333rem 0;background-color:transparent}.van-search__field .van-field__left-icon{color:var(--van-search-left-icon-color)}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:var(--van-search-action-padding);color:var(--van-search-action-text-color);font-size:var(--van-search-action-font-size);line-height:var(--van-search-input-height);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-search__action:active{background-color:var(--van-active-color)}.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{padding:.13333rem var(--van-padding-xs) .13333rem 0!important;background:transparent!important}.van-search .van-field__clear{color:#c1bdc1!important}._col-search_dkf9d_16{--van-cell-background-color: transparent}._col-search_dkf9d_16 .van-field__left-icon{display:flex;align-items:center}._col-search_dkf9d_16 .van-field__right-icon{font-size:0}._col-search_dkf9d_16 .van-search__action{display:flex}._col-search_dkf9d_16 .van-field__control{font-size:.37333rem}._col-search_dkf9d_16._default_dkf9d_32 .van-search__content{background:#f3f3f3}._col-search_dkf9d_16._col-tenant-search_dkf9d_35{--van-cell-line-height: .90667rem}._col-search_dkf9d_16._col-tenant-search_dkf9d_35._default_dkf9d_32 .van-search__content,._col-search_dkf9d_16._col-tenant-search_dkf9d_35._transparent_dkf9d_39 .van-search__content{background:#f5f6f8;border:.02667rem solid #fff}._col-search_dkf9d_16._col-tenant-search_dkf9d_35._default_dkf9d_32 .van-search__field,._col-search_dkf9d_16._col-tenant-search_dkf9d_35._transparent_dkf9d_39 .van-search__field{padding:0 .08rem 0 0!important}._col-search_dkf9d_16._col-tenant-search_dkf9d_35._default_dkf9d_32 .van-field__control,._col-search_dkf9d_16._col-tenant-search_dkf9d_35._transparent_dkf9d_39 .van-field__control{color:#333!important}._col-search_dkf9d_16._col-tenant-search_dkf9d_35._default_dkf9d_32 input::-moz-placeholder,._col-search_dkf9d_16._col-tenant-search_dkf9d_35._transparent_dkf9d_39 input::-moz-placeholder{color:rgba(0,0,0,.4)}._col-search_dkf9d_16._col-tenant-search_dkf9d_35._default_dkf9d_32 input::placeholder,._col-search_dkf9d_16._col-tenant-search_dkf9d_35._transparent_dkf9d_39 input::placeholder{color:rgba(0,0,0,.4)}._col-search_dkf9d_16._white_dkf9d_55 .van-search__content{background:#fff}._col-search_dkf9d_16._transparent_dkf9d_39 .van-search__content{background:rgba(255,255,255,.16)}._col-search_dkf9d_16._transparent_dkf9d_39 .van-search__content input::-moz-placeholder{color:#fff}._col-search_dkf9d_16._transparent_dkf9d_39 .van-search__content input::placeholder{color:#fff}._col-search_dkf9d_16._transparent_dkf9d_39 .van-search__content input,._col-search_dkf9d_16._transparent_dkf9d_39 .van-search__content .van-field__clear{color:#fff}._col-search_dkf9d_16 ._searchBtn_dkf9d_70{width:1.49333rem;height:.74667rem;padding:0;font-size:.37333rem;--van-button-mini-height: .74667rem;--van-font-size-xs: .37333rem;line-height:1}._col-search_dkf9d_16 ._searchBtn_dkf9d_70._searchTenantBtn_dkf9d_79{background:linear-gradient(270deg,#FF3C81 0%,#FF76A6 100%);border:none}\n",document.head.appendChild(a),System.register(["./index-legacy.b903c881.js","./index-legacy.b7f666cc.js","./index-legacy.e9e6da38.js","./use-id-legacy.29724920.js"],(function(e){"use strict";var a,t,r,c,o,s,l,d,i,u,f,h,_,m,A,p,v,Z;return{setters:[function(n){a=n.A,t=n.I,r=n.$,c=n.G,o=n.d,s=n.S,l=n.aj,d=n.j,i=n.aA,u=n.a7,f=n.ap,h=n.N,_=n.M,m=n.B,A=n.z},function(){},function(n){p=n.f,v=n.F},function(n){Z=n.u}],execute:function(){var H=n(a("search"),3),g=H[0],k=H[1],b=H[2],y=t({},p,{label:String,shape:r("square"),leftIcon:r("search"),clearable:c,actionText:String,background:String,showAction:Boolean}),S=o({name:g,props:y,emits:["blur","focus","clear","search","cancel","click-input","click-left-icon","click-right-icon","update:modelValue"],setup:function(n,e){var a=e.emit,r=e.slots,c=e.attrs,o=Z(),h=s(),_=function(){r.action||(a("update:modelValue",""),a("cancel"))},m=function(e){13===e.keyCode&&(f(e),a("search",n.modelValue))},A=function(){return n.id||"".concat(o,"-input")},H=function(){if(r.label||n.label)return d("label",{class:k("label"),for:A()},[r.label?r.label():n.label])},g=function(){if(n.showAction){var e=n.actionText||b("cancel");return d("div",{class:k("action"),role:"button",tabindex:0,onClick:_},[r.action?r.action():e])}},y=function(n){return a("blur",n)},S=function(n){return a("focus",n)},x=function(n){return a("clear",n)},B=function(n){return a("click-input",n)},z=function(n){return a("click-left-icon",n)},C=function(n){return a("click-right-icon",n)},L=Object.keys(p);return l({focus:function(){var n;return null==(n=h.value)?void 0:n.focus()},blur:function(){var n;return null==(n=h.value)?void 0:n.blur()}}),function(){var e,o;return d("div",{class:k({"show-action":n.showAction}),style:{background:n.background}},[null==(e=r.left)?void 0:e.call(r),d("div",{class:k("content",n.shape)},[H(),(o=t({},c,i(n,L),{id:A()}),d(v,u({ref:h,type:"search",class:k("field"),border:!1,onBlur:y,onFocus:S,onClear:x,onKeypress:m,"onClick-input":B,"onClick-left-icon":z,"onClick-right-icon":C,"onUpdate:modelValue":function(n){return a("update:modelValue",n)}},o),i(r,["left-icon","right-icon"])))]),g()])}}}),x=h(S),B=e("i","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAAXNSR0IArs4c6QAAAWtQTFRFAAAAAAAAAICAgICAZmZmbW1tYGBgOcaqXV1dW1tbZmZmLdK0K8aqY2NjXl5eLsWuKcKtYmJiaGhoLsikampqMMenaGhoZGRkLcutZ2dnZWVlLsuqaWlpK8iqZ2dnY2NjaWlpK8muZWVlaGhoZmZmZGRkaWlpZ2dnLsesZmZmZ2dnY2NjZGRkaGhoZWVlZ2dnZ2dnZmZmLcirZ2dnZmZmZmZmZ2dnLcepZ2dnZmZmZmZmZmZmZWVlZmZmZmZmZmZmZmZmLMepZWVlZmZmLcaqLcapLcirZ2dnZmZmZ2dnZmZmLceqZmZmLMeqZmZmLceqLsiqZ2dnLcaqZmZmLceqZmZmZ2dnZmZmZmZmZWVlZmZmZmZmZ2dnZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmLciqZmZmZmZmZWVlZmZmLcerZmZmZWVlZmZmZmZmZmZmZmZmZWVlZmZmLceqZmZmUyQu0QAAAHd0Uk5TAAECAgUHCAkLDg8REhITFhkaGxwdICAhIiUmJycqKiwuLzAxMjMzNDc3OTtCQkdISktPUlVaY2VmaW5weXqChZSVl5iZnZ2foKmqrrGztLW4uLm7vMDCxcjJytDQ0dTW2Nvc3ubn6+zv8PDz9Pf4+Pn6+/z9/v5eDTrYAAABaElEQVRIx+2Wx1ICQRBAUVExZzCgYsSEOYs5rzkjJhQzBgTR9/keWEB0IxcLynea6am3tdPTPbsGwz+pRrfrDQUCx73SXk8QFYIOSdGNKkeS4jMIQwoI4JMUPXBnkc+A5Q7OJVfGgBOTnGc6A0al1wRgVU4UAEHuoaeAU3ptUvF1LLcQlDysvne4NcsnwBGA++rfcesjBLqUimcCuMj5Gc31AOPKZbcCrKfFxzI2gWWVes1yA1PxsWnAlalW6aU3EBr4HhkMwXWJeo90+sFXH5vbnuC1Q0t3jQJXBZFZoRcY1taXc8BOZLIHzGhsaOMhYA2P64ADo9aroB1oCg/tgF3zHdIcL9qSRvwoT0Q0ey+dhkREfSSnWLS4L7Kbr0tc+IxSqUvcinoP2brEkSWR2TaNe2xJNDmtfybm1YrUaBAbY2L/SzStFbrEtdg5lqmLVTFxI+pta9nkvD8ofrOKG0Rq0v//51KRLwGgwFyX9Ix7AAAAAElFTkSuQmCC"),z={"col-search":"_col-search_dkf9d_16",default:"_default_dkf9d_32","col-tenant-search":"_col-tenant-search_dkf9d_35",transparent:"_transparent_dkf9d_39",white:"_white_dkf9d_55",searchBtn:"_searchBtn_dkf9d_70",searchTenantBtn:"_searchTenantBtn_dkf9d_79"};e("S",o({name:"ColSearch",props:{type:{type:String,default:""},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(n){}},onFilter:{type:Function,default:function(){}},filterDot:{type:Boolean,default:!1},leftIcon:{type:String,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAgCAMAAAAynjhNAAAAAXNSR0IArs4c6QAAAddQTFRFAAAAAP//AP+AAL+AAL+/AMyZANWqIL+fIN+fIN+/HMaqGsyzF9GiF9G5FMSxIsyqIM+vHtK0HMaqHNWqG8muINWqHMaqHNCqHNCzG8itGsqnGc6tIc6tHsutHM+sG9CuH82uHcuuHM2sHNOsG86oG86uH9CsHs2qHc6sHc+tHMuqHNCvH8qrHMqqG8ytH9CtH82uHs6tHsuqHc2sH86vH8ytHs6tHc6rHs6tHc2uH86tHs2tHc6sHcyrH82sHsyrHs6tHs6sHs6uHs2tHc2sH86tH8+uHs2tHs6uHsysHs6sHs2rHc6tH82tHs6tHs6uHs+tHs2sH82sHs2tHc6tHc2sH82rHs6tHs2sHc6tHc2sH8+tHsyrHs2sH86uHs2tHs6tHc2sHc2rHc2tH82tHs2rHs2sHs2sHs6sHc6sHs2sHs6sHs2sHs2tHs6tHc6sH86sHs2sHs2tHs6sHs6tHc2sHs2sHs2sHsysHs2sHs6sHs2sHcysHs2sHs6sHs2tHs2sHs6sHs2tHs2sHsyrHc2rHc2tHs2tHs2rHs6tHs2sHs2sHs2sHs2tH82tHs6sHs2sHs6sHs2sHs2sHc2sHc2tHs2sHs2rHs2sHs6sHs2sHs6tHs2sDrxc/AAAAJx0Uk5TAAECBAQFBggICAkKCwsNDxAREhITGBsbGxwdHx8iJSYpLC4uLy8xMzQ1NjY6P0FBQkRFR0lLVFhdYWNnaGpsbW1ubnBxc3R2d35+gIKFhoeJio6Pk5SVmJqcnZ6hoqaoq62urq6xsrO1trm7vL29v7/Bw8TEx8vOz9LU2Nnd3t/k5OXn6Ovr7O7u8PHy8vL09/j5+vv7/P39/f7+MUzT+AAAAXlJREFUGBl1wYkjk3EAx+FvFtGWig7HKgoduqhEC106JKp1oHSqWAcdZh2a7lPHNrHt88c2a3vb6/15HlnWnxx6/TP2Zbx/v1sOOx4myPp2dpVsPANJcn1sUo7ycWDmSUf96pJ1+y69ARKdspRPAoEaZbgOvgcuKqMoCLFW5SgdBXz6pxeie2WTfwMimzWnPg6HNI87BGOacw8Ccqiahj2SKmaJ18mpD25JOgyPZbARfi2VbkKHTMKwU3oJ22QyAG3SdyiTSQ+ckf7AEpkcB780BWtk0g3d0ivYKpOr0C7dhmMymYDd0lEYkUE1/PZI3jizm+R0Ge4oZRiG5LAhCruUsj0BPs1TGIQRpV2BSINsXNcgskVp7hBEDijHigBwRBned8DdKmXktUwCn5Yrq/I5MP2grXalZ23D+TBpz5Ypq/g6Nh/6k/CoSJbGp1i++kt1Ahgu0H/Vp+6/jcU/v+hr9ijlNDC4WHZ5spwDerWwCzClhS3y/+j6C0WQo3fY5wO8AAAAAElFTkSuQmCC"}},emits:["click","input"],watch:{modelValue:function(){this.search=this.modelValue}},data:function(){return{search:this.modelValue||""}},render:function(){var n=this;return d("div",null,[d(x,{class:[z["col-search"],"tenant"===this.type&&z["col-tenant-search"],z[this.inputBackground]],modelValue:this.search,"onUpdate:modelValue":[function(e){return n.search=e},function(e){n.$emit("input",e)}],background:this.background,showAction:this.showAction,shape:"round",placeholder:this.placeholder,disabled:this.disabled,autofocus:this.autofocus,onSearch:function(e){n.onSearch(e)},onClear:function(){n.search="",n.onSearch()},onClick:function(){return n.$emit("click")}},{left:function(){return n.$slots.left&&n.$slots.left()},"left-icon":function(){return d(_,{name:"tenant"===n.type?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABF1BMVEUAAAD/X53/Zpv/Wpf/U5D/YJj/Roj/T43/YZ7/a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h8/UFL4w+HZFBczyBe3AAAAABJRU5ErkJggg==":n.leftIcon,size:16},null)},"right-icon":function(){return d(m,{class:[z.searchBtn,"tenant"===n.type&&z.searchTenantBtn],round:!0,type:"primary",size:"mini",onClick:function(){n.onSearch(n.search)}},{default:function(){return[A("搜索")]}})},action:function(){return n.$slots.action&&n.$slots.action()||d(_,{name:B,size:28,dot:n.filterDot,onClick:function(){n.onFilter()}},null)}})])}}))}}}))}();
|