赞
踩
1.多选框为多选时自动关闭下拉框,首先给a-select打一个ref,比如: ref="multiSelect",再给这个a-select一个change事件,
2.当选择框发生变化时也就调用了这个事件,再书写定时器已实现效果
- <a-form-item>
- <a-select
- v-model:value="queryParam.entlist"
- mode="multiple"
- placeholder="请输入企业名称"
- size="large"
- style="width: 80%"
- :default-active-first-option="false"
- :filter-option="false"
- :not-found-content="null"
- allowClear
- showArrow
- @search="listCompany"
- @change="handleChangeSearch(queryParam)"
- ref="multiSelect"
- >
- <a-select-option
- v-for="item in companyList"
- :value="item.value"
- :key="item.value"
- :disabled="setDisabled(item)"
- >
- {{ item.label }}
- </a-select-option>
- </a-select>
- </a-form-item>
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。