mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
test: add tests for some base components (#32479)
This commit is contained in:
@ -100,8 +100,8 @@ const MarkdownForm = ({ node }: any) => {
|
||||
return (
|
||||
<label
|
||||
key={index}
|
||||
htmlFor={child.properties.for}
|
||||
className="system-md-semibold my-2 text-text-secondary"
|
||||
htmlFor={child.properties.htmlFor || child.properties.name}
|
||||
className="my-2 text-text-secondary system-md-semibold"
|
||||
>
|
||||
{child.children[0]?.value || ''}
|
||||
</label>
|
||||
@ -161,6 +161,7 @@ const MarkdownForm = ({ node }: any) => {
|
||||
[child.properties.name]: !prevValues[child.properties.name],
|
||||
}))
|
||||
}}
|
||||
id={child.properties.name}
|
||||
/>
|
||||
<span>{child.properties.dataTip || child.properties['data-tip'] || ''}</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user