antd vue select可选可清空

添加allowClear属性即可
<a-select allowClear :value= "activeValue" placeholder="请选择" v-model="queryParam.type" @change= "handleChange">
  <a-select-option value="1">个人</a-select-option>
  <a-select-option value="2">单位</a-select-option>
</a-select>
 

 

posted @ 2021-07-09 09:43  岁月淡忘了谁  阅读(2838)  评论(0编辑  收藏  举报