Commit 992ad961 by wangzhihui

```

feat(glsx-combi-form): 添加单选框变更处理方法

- 修改组件模板中单选框的 change 事件绑定方式
- 新增 handleRadioChange 方法来统一处理单选框变更逻辑
- 保持原有自定义处理函数的调用机制
```
1 parent 9a1aa65c
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
v-bind="getItemAttrs(item)" v-bind="getItemAttrs(item)"
:disabled="getItemIsDisabled(item)" :disabled="getItemIsDisabled(item)"
v-on="item.listeners ? item.listeners : {}" v-on="item.listeners ? item.listeners : {}"
@change="item.handleRadioChange ? item.handleRadioChange : () => { }"> @change="handleRadioChange($event, item)">
<el-radio v-for="subItem in item.optionList" <el-radio v-for="subItem in item.optionList"
:key="subItem[item.optionId]" :key="subItem[item.optionId]"
:disabled="getItemIsDisabled(item)" :disabled="getItemIsDisabled(item)"
...@@ -628,6 +628,11 @@ export default { ...@@ -628,6 +628,11 @@ export default {
mounted() { }, mounted() { },
methods: { methods: {
handleRadioChange(value, item) {
if (item.handleRadioChange) {
item.handleRadioChange(value);
}
},
passwordInputType(item) { passwordInputType(item) {
if (item.showPass) { if (item.showPass) {
return this.passwordPlain[item.name] ? "text" : "password"; return this.passwordPlain[item.name] ? "text" : "password";
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!