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-07-19 16:52:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7834a47876fa5361a8d64248fb961194fac320b0
7834a478
1 parent
15c41a03
fix 编辑模式下处理补充输入框显示
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
src/components/RadioField/index.vue
src/components/RadioField/index.vue
View file @
7834a47
<!--
* @Date: 2022-08-30 11:34:19
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-19 16:
39:42
* @LastEditTime: 2024-07-19 16:
51:10
* @FilePath: /data-table/src/components/RadioField/index.vue
* @Description: 单项选择控件
-->
...
...
@@ -126,6 +126,16 @@ onMounted(() => {
let part2 = parts[1].trim(); // 去除前后空格
default_value.value = part1;
default_affix_value.value = part2;
// 编辑模式下处理
radio_value.value = part1; // 单选框勾选
// 补充输入框显示
const options = props.item.component_props.options;
// 为选中项目的补充清空
options.forEach(element => {
if (element.value === radio_value.value) {
element.affix = part2
}
});
}
// 发送自定义数据结构
props.item.value = { key: props.item.key, value: radio_value.value, affix: affix_value.value, type: "radio" };
...
...
Please
register
or
login
to post a comment