mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 11:12:20 +08:00
fix: restore field height spacing after removing description in form (#4679)
This commit is contained in:
parent
6a751b596f
commit
6b6b69ae09
@ -65,6 +65,7 @@ export const FormItem: any = withDynamicSchemaProps(
|
|||||||
|
|
||||||
const showTitle = schema['x-decorator-props']?.showTitle ?? true;
|
const showTitle = schema['x-decorator-props']?.showTitle ?? true;
|
||||||
const extra = useMemo(() => {
|
const extra = useMemo(() => {
|
||||||
|
if (field.description && field.description !== '') {
|
||||||
return typeof field.description === 'string' ? (
|
return typeof field.description === 'string' ? (
|
||||||
<div
|
<div
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
@ -74,6 +75,7 @@ export const FormItem: any = withDynamicSchemaProps(
|
|||||||
) : (
|
) : (
|
||||||
field.description
|
field.description
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}, [field.description]);
|
}, [field.description]);
|
||||||
const className = useMemo(() => {
|
const className = useMemo(() => {
|
||||||
return cx(formItemWrapCss, {
|
return cx(formItemWrapCss, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user