Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有配置在提交数据时不获取field对应的值 #693

Open
gaylen1 opened this issue Apr 11, 2024 · 1 comment
Open

有没有配置在提交数据时不获取field对应的值 #693

gaylen1 opened this issue Apr 11, 2024 · 1 comment

Comments

@gaylen1
Copy link

gaylen1 commented Apr 11, 2024

版本号 @form-create/element-ui@3.1.27)

UI 框架的版本element-plus: 2.4.0

问题描述:rules规则里,每个规则组件都对应一个field,当由多个规则组成一个组件时。在获取保存数据是会获取到多个field。但其实我只有一项数据是需要保存的。这时其余field就成了脏数据。

案例截图:
这个是el-checkbox-group组,他下面放了多个checkbox组件。
image

但没个checkbox组件都有一个field值
image

在提交时就会产生多个field对应的值,但实质上应该只有el-checkbox-group组件绑定v-model才是需要提交的。
image

期望:
希望rules规则下新增配置来控制一些不需要收集的值。

@xaboy
Copy link
Owner

xaboy commented Apr 24, 2024

给el-checkbox不定义field字段就好了呀,改成props.modelValue @gaylen1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants