xinnian999 / vue-form-craft

基于vue3的一款开箱即用表单方案
283 stars 21 forks source link

单选框联动无法正确获取当前选择的对象 #15

Closed BrandoLv closed 4 months ago

BrandoLv commented 4 months ago

const schema = { "labelWidth": 150, "labelAlign": "right", "size": "default", "items": [ { "label": "单选框组", "component": "Radio", "props": { "mode": "static", "options": [ { "label": "选项1", "value": "1", "vv": "选1" }, { "label": "选项2", "value": "2", "vv": "选2" }, { "label": "选项3", "value": "3", "vv": "选3" } ], "labelKey": "label", "valueKey": "value", "optionType": "circle", "direction": "horizontal", "space": 20 }, "designKey": "design-ajDw", "name": "A001", "change": [ { "target": "A002", "value": "{{ $select.vv }}" } ] }, { "label": "单行文本", "component": "Input", "props": { "placeholder": "请输入文本" }, "designKey": "design-WiKD", "name": "A002" } ] }

BrandoLv commented 4 months ago

第一次点击 image 第二次点击 image

xinnian999 commented 4 months ago

已修复