ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.1k stars 14.64k forks source link

Can the validate of the [feature request] form component provide the second parameter to collect only the field values displayed in the current interface #21509

Open whateveryoudo opened 2 years ago

whateveryoudo commented 2 years ago

Existing Component

Component Name

el-form

Description

目前form中包含部分项联动切换,提交到后端需要对data中缓存的隐藏字段手动进行清除,antd react版本提供了类似的功能,形如:validate((flag,values) {})

element-bot commented 2 years ago

Translation of this issue:

Existing Component

yes

Component Name

el-form

Description

At present, the form contains some items for linkage switching. When submitting to the back end, you need to manually clear the hidden fields cached in data. The antd react version provides similar functions, such as validate ((flag, values) {})