alibaba / x-render

🚴‍♀️ 阿里 - 很易用的中后台「表单 / 表格 / 图表」解决方案
https://xrender.fun
6.91k stars 980 forks source link

displayType 不是 column 的情况下出现 hideLabel 字符串 #1499

Closed ylfeng250 closed 3 months ago

ylfeng250 commented 4 months ago

1.依赖仓库的版本(Dependencies versions)

2.问题描述(Bug description)image image

https://github.com/alibaba/x-render/blob/0c1c20c3c7600900567c76dba2cff5679a6e7556/packages/form-render/src/form-core/index.tsx#L234 这个位置 判断不是 column ,就设置label的操作我没有看懂,导致生产环境下这个 表单的 action 区域出现一个 hideLabel

<Form.Item
              label={ displayType !== 'column' ?  'hideLabel' : null}
              labelCol={operlabelCol}
              className='fr-hide-label'
            >
               {isFunction(footer) ? (
                <Space>{footer(actionBtns)}</Space>
              ) : (
                <Space>{actionBtns}</Space>
              )}
            </Form.Item>

能不能优化一下

lhbxs commented 3 months ago

你是不是配置了 prefixCls,导致隐藏的 css 不生效了,你可以找到那块的 css 然后复写下样式。