【issues/506】JDictSelectTag 组件 type="radio" 没有返回值

pull/523/head
zhangdaiscott 2023-05-06 11:29:32 +08:00
parent c7ce152bab
commit eb6b2f3d59
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@
v-model:value="state"
:filterOption="handleFilterOption"
:getPopupContainer="getPopupContainer"
:style="style"
@change="handleChange"
>
<a-select-option v-if="showChooseOption" :value="null"></a-select-option>
@ -80,6 +81,7 @@
default: [],
required: false,
},
style: propTypes.any,
},
emits: ['options-change', 'change','update:value'],
setup(props, { emit, refs }) {
@ -176,6 +178,9 @@
/** 单选radio的值变化事件 */
function handleChangeRadio(e) {
state.value = e?.target?.value ?? e;
//update-begin---author:wangshuai ---date:20230504 forissues/506JDictSelectTag type="radio" ------------
emit('update:value',e?.target?.value ?? e)
//update-end---author:wangshuai ---date:20230504 forissues/506JDictSelectTag type="radio" ------------
}
/** 用于搜索下拉框中的内容 */