mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
docs: Spin, Progress - demos - english translation (#3051)
* spin demos translation * Progress demo translation
This commit is contained in:
parent
3d25f65c2b
commit
837ec0cb07
@ -18,8 +18,8 @@ import { Progress } from 'antd';
|
||||
|
||||
ReactDOM.render(
|
||||
<div>
|
||||
<Progress type="circle" percent={75} format={percent => `${percent / 10.0}折`} />
|
||||
<Progress type="circle" percent={100} format={() => '成功'} />
|
||||
<Progress type="circle" percent={75} format={percent => `${percent / 10.0} In Progress`} />
|
||||
<Progress type="circle" percent={100} format={() => 'Complete'} />
|
||||
</div>
|
||||
, mountNode);
|
||||
````
|
||||
|
@ -25,15 +25,15 @@ const Card = React.createClass({
|
||||
},
|
||||
render() {
|
||||
const container = (
|
||||
<Alert message="消息提示的文案"
|
||||
description="消息提示的辅助性文字介绍消息提示的辅助性文字介绍消息提示的辅助性文字介绍"
|
||||
<Alert message="Alert message title"
|
||||
description="Further details about the context of this alert."
|
||||
type="info"
|
||||
/>
|
||||
);
|
||||
return (
|
||||
<div>
|
||||
<Spin spinning={this.state.loading}>{container}</Spin>
|
||||
切换加载状态:<Switch checked={this.state.loading} onChange={this.toggle} />
|
||||
Loading state:<Switch checked={this.state.loading} onChange={this.toggle} />
|
||||
</div>
|
||||
);
|
||||
},
|
||||
|
@ -18,8 +18,8 @@ import { Spin, Alert } from 'antd';
|
||||
|
||||
ReactDOM.render(
|
||||
<Spin tip="Loading...">
|
||||
<Alert message="消息提示的文案"
|
||||
description="消息提示的辅助性文字介绍消息提示的辅助性文字介绍消息提示的辅助性文字介绍"
|
||||
<Alert message="Alert message title"
|
||||
description="Further details about the context of this alert."
|
||||
type="info"
|
||||
/>
|
||||
</Spin>
|
||||
|
Loading…
Reference in New Issue
Block a user