Merge pull request #15832 from GFwer/gongfangwen

docs:fix "Edit this demo on Github" lost
This commit is contained in:
偏右 2019-04-03 16:44:01 +08:00 committed by GitHub
commit 6cefc09b9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,13 +206,11 @@ ${sourceCode.replace('mountNode', "document.getElementById('container')")}
</a>
</Tooltip>
<EditButton
title={<FormattedMessage id="app.content.edit" />}
title={<FormattedMessage id="app.content.edit-demo" />}
filename={meta.filename}
/>
</div>
<div className="code-box-description">
{introChildren}
</div>
<div className="code-box-description">{introChildren}</div>
<div className="code-box-actions">
<form action="//riddle.alibaba-inc.com/riddles/define" method="POST" target="_blank">
<input type="hidden" name="data" value={JSON.stringify(riddlePrefillConfig)} />
@ -264,7 +262,9 @@ ${sourceCode.replace('mountNode', "document.getElementById('container')")}
/>
</Tooltip>
</CopyToClipboard>
<Tooltip title={<FormattedMessage id={`app.demo.code.${codeExpand ? 'hide' : 'show'}`} />}>
<Tooltip
title={<FormattedMessage id={`app.demo.code.${codeExpand ? 'hide' : 'show'}`} />}
>
<span className="code-expand-icon">
<img
alt="expand code"