1.新建一个js文件,引入vue,需要用到的组件,然后use
```
import Vue from "vue";
import {Icon} from "vant";
Vue.use(Icon);
```
2.在main.js中引入刚刚新的js文件
`import "@/components/Vant";`
3.使用
```
<van-search
v-model="searchValue"
shape="round"
clearable
placeholder="请输入单号搜索"
@search="search"
@clear="clearSearch"
>
</van-search>
```