Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-08-12 17:06:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
879fc507fc633b874786a126fb025b74102352b3
879fc507
1 parent
d88425d3
🐞 fix(单选/多选控件): 因为单选/多选控件的补充信息字段没有绑定name导致报错提示有问题修复
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/components/CheckboxField/index.vue
src/components/RadioField/index.vue
src/components/CheckboxField/index.vue
View file @
879fc50
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-08-
07 18:13:41
* @LastEditTime: 2024-08-
12 17:04:47
* @FilePath: /data-table/src/components/CheckboxField/index.vue
* @Description: 多项选择控件
-->
...
...
@@ -27,7 +27,7 @@
</div>
<van-checkbox v-else @click="onClick(x)" :name="x.title" icon-size="1rem" shape="square"
:checked-color="themeVars.radioColor" style="margin-bottom: 0.25rem">{{ x.title }}</van-checkbox>
<van-field v-if="checkbox_value.includes(x.value) && x.is_input" @blur="onBlur(x)" v-model="x.affix"
<van-field v-if="checkbox_value.includes(x.value) && x.is_input"
:name="'_' + item.key"
@blur="onBlur(x)" v-model="x.affix"
label=" " label-width="5px" :placeholder="x.input_placeholder" :rules="x.input_required ? rules : ''"
:required="x.input_required" :readonly="item.component_props.readonly" class="affix-input" />
</div>
...
...
src/components/RadioField/index.vue
View file @
879fc50
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-08-
07 18:14:56
* @LastEditTime: 2024-08-
12 17:02:13
* @FilePath: /data-table/src/components/RadioField/index.vue
* @Description: 单项选择控件
-->
...
...
@@ -33,6 +33,7 @@
{{ x.desc_btn_name }} <van-icon name="link-o" />
</div>
<van-field
:name="'_' + item.key"
v-if="!item.component_props.readonly && radio_value === x.value && x.is_input"
@blur="onBlur(x)" v-model="x.affix"
label=" " label-width="5px"
...
...
Please
register
or
login
to post a comment