提交 2b54004b 编写于 作者: A afc163

update spin

上级 a707df52
......@@ -7,7 +7,7 @@
---
````jsx
import { Spin, Switch } from 'antd';
import { Spin, Switch, Alert } from 'antd';
const Card = React.createClass({
getInitialState() {
......@@ -21,9 +21,11 @@ const Card = React.createClass({
});
},
render() {
const card = <div className="card-example" />;
const container = <Alert message="消息提示的文案"
description="消息提示的辅助性文字介绍消息提示的辅助性文字介绍消息提示的辅助性文字介绍"
type="info" />;
return <div>
{this.state.loading ? <Spin>{card}</Spin> : card}
{this.state.loading ? <Spin>{container}</Spin> : container}
切换加载状态:<Switch checked={this.state.loading} onChange={this.toggle} />
</div>;
}
......
......@@ -39,7 +39,7 @@
// ------------------------------
&-dot {
.animation(antSpinPulse 1s infinite ease-in-out);
.animation(antSpinPulse 1.2s infinite @ease-in-out-circ);
.square(1em);
border-radius: 50%;
display: inline-block;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册