mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
site: fix bug
This commit is contained in:
parent
b81034cc13
commit
0283f61bba
@ -38,7 +38,7 @@ export function jsonmlToComponent(pathname, jsonml) {
|
||||
[(node) => getTagName(node) === 'video', (node, index) =>
|
||||
<VideoPlayer video={getAttributes(node)} key={index} />
|
||||
],
|
||||
[(node) => getTagName(node) === 'a', (node, index) =>
|
||||
[(node) => isElement(node) && getTagName(node) === 'a', (node, index) =>
|
||||
<Link to={getAttributes(node).href} key={index}>{toReactComponent(getChildren(node)[0])}</Link>
|
||||
],
|
||||
[(node) => {
|
||||
|
Loading…
Reference in New Issue
Block a user