Skip to content

Commit

Permalink
fix: 修复 search组件的收起展开 和重置 Bug
Browse files Browse the repository at this point in the history
renderFormItemWrap 中将 hidden的给过滤了, 所以 renderFormItem 中其实并没有对 hidden 的 FormItem 生效, 所以出现了Bug

具体element-plus  Issues参考 element-plus/element-plus#15417
  • Loading branch information
clddup authored Jun 14, 2024
1 parent 566a57a commit 9a5c7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/src/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export default defineComponent({
const { schema = [], isCol } = unref(getProps)
return schema
.filter((v) => !v.remove && !v.hidden)
.filter((v) => !v.remove)
.map((item) => {
// 如果是 Divider 组件,需要自己占用一行
const isDivider = item.component === 'Divider'
Expand Down

0 comments on commit 9a5c7bc

Please sign in to comment.