hookehuyr

🐞 fix(单选/多选控件): 因为单选/多选控件的补充信息字段没有绑定name导致报错提示有问题修复

1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-08-07 18:13:41 4 + * @LastEditTime: 2024-08-12 17:04:47
5 * @FilePath: /data-table/src/components/CheckboxField/index.vue 5 * @FilePath: /data-table/src/components/CheckboxField/index.vue
6 * @Description: 多项选择控件 6 * @Description: 多项选择控件
7 --> 7 -->
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
27 </div> 27 </div>
28 <van-checkbox v-else @click="onClick(x)" :name="x.title" icon-size="1rem" shape="square" 28 <van-checkbox v-else @click="onClick(x)" :name="x.title" icon-size="1rem" shape="square"
29 :checked-color="themeVars.radioColor" style="margin-bottom: 0.25rem">{{ x.title }}</van-checkbox> 29 :checked-color="themeVars.radioColor" style="margin-bottom: 0.25rem">{{ x.title }}</van-checkbox>
30 - <van-field v-if="checkbox_value.includes(x.value) && x.is_input" @blur="onBlur(x)" v-model="x.affix" 30 + <van-field v-if="checkbox_value.includes(x.value) && x.is_input" :name="'_' + item.key" @blur="onBlur(x)" v-model="x.affix"
31 label=" " label-width="5px" :placeholder="x.input_placeholder" :rules="x.input_required ? rules : ''" 31 label=" " label-width="5px" :placeholder="x.input_placeholder" :rules="x.input_required ? rules : ''"
32 :required="x.input_required" :readonly="item.component_props.readonly" class="affix-input" /> 32 :required="x.input_required" :readonly="item.component_props.readonly" class="affix-input" />
33 </div> 33 </div>
......
1 <!-- 1 <!--
2 * @Date: 2022-08-30 11:34:19 2 * @Date: 2022-08-30 11:34:19
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-08-07 18:14:56 4 + * @LastEditTime: 2024-08-12 17:02:13
5 * @FilePath: /data-table/src/components/RadioField/index.vue 5 * @FilePath: /data-table/src/components/RadioField/index.vue
6 * @Description: 单项选择控件 6 * @Description: 单项选择控件
7 --> 7 -->
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
33 {{ x.desc_btn_name }}&nbsp;<van-icon name="link-o" /> 33 {{ x.desc_btn_name }}&nbsp;<van-icon name="link-o" />
34 </div> 34 </div>
35 <van-field 35 <van-field
36 + :name="'_' + item.key"
36 v-if="!item.component_props.readonly && radio_value === x.value && x.is_input" 37 v-if="!item.component_props.readonly && radio_value === x.value && x.is_input"
37 @blur="onBlur(x)" v-model="x.affix" 38 @blur="onBlur(x)" v-model="x.affix"
38 label=" " label-width="5px" 39 label=" " label-width="5px"
......