import{n}from"./index.8c202964.js";const l={name:"SearchInput",props:{defaultSearchVal:String,defaultFieldValue:{type:[String,Number],default:"-"},showAdvance:{type:Boolean,default:!0}},data(){return{searchValue:""}},computed:{},watch:{defaultSearchVal:{handler(r){console.log("search-val-change-",r),this.searchValue=r},immediate:!0}},methods:{expertSearch(){this.$emit("expert-search")},validSearch(){},search(){this.$emit("search",{relation:"must",keyword:this.searchValue,field:this.defaultFieldValue,match:"fuzzy"})},clearInputVal(){this.searchValue=""}}};var c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"topSearch_container flex-column"},[t("div",{staticClass:"banner_title"}),t("div",{staticClass:"search-input"},[t("div",{staticClass:"search-wrap flex-center-align"},[t("el-input",{attrs:{placeholder:"\u8BF7\u8F93\u5165\u60A8\u60F3\u8981\u67E5\u627E\u7684\u5185\u5BB9",size:"medium",clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.search.apply(null,arguments)}},scopedSlots:e._u([{key:"prefix",fn:function(){return[t("i",{staticClass:"el-input__icon el-icon-search",on:{click:function(a){return a.stopPropagation(),e.search.apply(null,arguments)}}})]},proxy:!0},{key:"append",fn:function(){return[t("el-button",{staticStyle:{width:"180px"},on:{click:function(a){return a.stopPropagation(),e.search.apply(null,arguments)}}},[e._v("\u641C\u7D22")])]},proxy:!0}]),model:{value:e.searchValue,callback:function(a){e.searchValue=a},expression:"searchValue"}}),e.showAdvance?t("div",{staticClass:"expert-search",on:{click:function(a){return a.stopPropagation(),e.expertSearch.apply(null,arguments)}}},[e._v(" \u9AD8\u7EA7\u68C0\u7D22 ")]):e._e()],1),e._t("default")],2)])},s=[],i=n(l,c,s,!1,null,"c277cef1",null,null);const o=i.exports;export{o as S};
