diff --git a/components/apolloTable/editForm/index.tsx b/components/apolloTable/editForm/index.tsx index 8555c8c990596f5c180e4da98ae13d3347e06931..77763d9bfea6b88f6f46dab38fad953920a7672d 100644 --- a/components/apolloTable/editForm/index.tsx +++ b/components/apolloTable/editForm/index.tsx @@ -33,6 +33,7 @@ const EditForm = (props: any) => { rules = [], validateFirst = true, validateTrigger = 'onChange', + renderLabel, } = item; let detailConfig: any; if (typeof renderEditForm === 'function') { @@ -50,7 +51,7 @@ const EditForm = (props: any) => { {/* icon &&
{icon}
*/} - {item.columnChsName} + {item.renderLabel ? item.renderLabel(item.columnChsName) : item.columnChsName} {item.columnAttrObj?.remark && ( @@ -131,6 +131,7 @@ class FormWrap extends Component { dynamicCellConfigDTO, cellRenderProps, requiredFlag, + renderLabel, } = item; let detailConfig: any; if (typeof renderEditForm === 'function') { @@ -311,7 +312,7 @@ class FormWrap extends Component { } function mapPropsToFields(props) { const { data, rowData } = props; - const returnObj:any = {}; + const returnObj: any = {}; if (!data || typeof data !== 'object') return returnObj; Object.keys(data).forEach((key) => { const col = data[key];