2 lines
1.1 KiB
JavaScript
2 lines
1.1 KiB
JavaScript
import{u as s,S as l,_ as d}from"./common-RpMgvqEW.js";import{p as i}from"./other-CUvajVbI.js";import"./vendor-B3ZXv1Nn.js";const h={id:"MoreSearch"},V={class:"content"},p=Vue.defineComponent({name:"MoreSearch"}),m=Vue.defineComponent({...p,setup(_){const c=s(),u=VueRouter.useRouter(),a=VueRouter.useRoute(),e=Vue.reactive({searchKey:""}),n=Vue.computed(()=>c.friends.all.filter(o=>o.name.search(e.searchKey)!==-1||o.account.search(e.searchKey)!==-1));return Vue.onMounted(()=>{e.searchKey=String(a.query.key)}),(o,r)=>(Vue.openBlock(),Vue.createElementBlock("div",h,[Vue.createElementVNode("div",V,[Vue.createVNode(l,{modelValue:e.searchKey,"onUpdate:modelValue":r[0]||(r[0]=t=>e.searchKey=t),"right-text":"取消","right-text-color":"white",onNotice:Vue.unref(u).back,isShowRightText:!0},null,8,["modelValue","onNotice"]),(Vue.openBlock(!0),Vue.createElementBlock(Vue.Fragment,null,Vue.renderList(n.value,t=>(Vue.openBlock(),Vue.createBlock(i,{key:t.id,mode:"search",searchKey:e.searchKey,people:t},null,8,["searchKey","people"]))),128))])]))}}),K=d(m,[["__scopeId","data-v-025d0a4b"]]);export{K as default};
|