fix: 客户人员-编辑-多选组件失去焦点关闭
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
<!-- 正文内容 -->
|
||||
<view class="white-bg">
|
||||
<view class="form-con">
|
||||
<view class="form-con" @click="handleBlur">
|
||||
<uni-forms ref="formRef" :model="formData" :rules="rules" label-width="40%">
|
||||
<!-- 选择客户 -->
|
||||
<uni-forms-item label="客户名称" name="cusName" required class="f-c-right">
|
||||
@@ -582,6 +582,11 @@ let handleWorkingStatusChange = e => {
|
||||
formData.value.workingStatus = workingStatusList[value].name;
|
||||
}
|
||||
|
||||
const hobbySelectRef = ref(null);
|
||||
// 多选组件失去焦点关闭
|
||||
let handleBlur = () => {
|
||||
if (hobbySelectRef.value) hobbySelectRef.value.handleBlur();
|
||||
}
|
||||
let submitForm = async () => {
|
||||
let hobbyTags = hobbies.value.map(it => {
|
||||
let {name} = it;
|
||||
|
||||
Reference in New Issue
Block a user