How do the keywords of the vue search box match the fields in the filtered list?

problem description

how should this effect be done? The search result is rendered by list array

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with a picture)
< li VMI sendOtherP (item) = "(item,index) in searchList" @ click= "sendOtherP (item)": key= "index" >

<div>
  <span>{{ item.salesmanName }}</span>
  <div>
    :<i class="res_tel">{{item.salesmanPhone}}</i>
  </div>
</div>

what result do you expect? What is the error message actually seen?

May.14,2021

datalist tag of html5


v-html='changeColor(item.saxxxxx)'
changeColor(item) {
  return   item.replace(/inputval/g ,"<font color=red>inputval</font>")
}

Menu