From 9a5c7bcb5b51e76eac6bc1d3aebc287593b13ca1 Mon Sep 17 00:00:00 2001 From: ddup <105873086+clddup@users.noreply.github.com> Date: Fri, 14 Jun 2024 19:11:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20search=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E6=94=B6=E8=B5=B7=E5=B1=95=E5=BC=80=20?= =?UTF-8?q?=E5=92=8C=E9=87=8D=E7=BD=AE=20Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit renderFormItemWrap 中将 hidden的给过滤了, 所以 renderFormItem 中其实并没有对 hidden 的 FormItem 生效, 所以出现了Bug 具体element-plus Issues参考 https://github.com/element-plus/element-plus/issues/15417 --- src/components/Form/src/Form.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue index cf0462513..2e1e7bbea 100644 --- a/src/components/Form/src/Form.vue +++ b/src/components/Form/src/Form.vue @@ -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'