mirror of https://gitee.com/answerdev/answer.git
fix: custome form support render html in form text
This commit is contained in:
parent
3c80df666d
commit
6e25d63abd
|
@ -365,7 +365,10 @@ const SchemaForm: ForwardRefRenderFunction<FormRef, FormProps> = (
|
|||
{fieldState?.errorMsg}
|
||||
</Form.Control.Feedback>
|
||||
{description ? (
|
||||
<Form.Text className="text-muted">{description}</Form.Text>
|
||||
<Form.Text
|
||||
className="text-muted"
|
||||
dangerouslySetInnerHTML={{ __html: description }}
|
||||
/>
|
||||
) : null}
|
||||
</Form.Group>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue