提交 78e8ab55 编写于 作者: 陈帅

adjust demos

上级 0f2be730
......@@ -48,45 +48,6 @@ const DescriptionItem = ({ title, content }) => {
);
};
class MiniDrawer extends React.Component {
state = { visible: false };
showDrawer = () => {
this.setState({
visible: true,
});
};
onClose = () => {
this.setState({
visible: false,
});
};
render() {
return (
<div>
<a onClick={this.showDrawer}>View Profile</a>
<Drawer
width={640}
placement="right"
closable={false}
onClose={this.onClose}
visible={this.state.visible}
>
<p style={{ ...pStyle, marginBottom: 24 }}>User Profile</p>
<p style={pStyle}>Personal</p>
<Row>
<Col span={12}>
<DescriptionItem title="Full Name" content="Lily" />{' '}
</Col>
<Col span={12}>
<DescriptionItem title="Account" content="AntDesign@example.com" />
</Col>
</Row>
</Drawer>
</div>
);
}
}
class App extends React.Component {
state = { visible: false };
toogerHotjar = () => {
......@@ -147,7 +108,6 @@ class App extends React.Component {
>
<p style={{ ...pStyle, marginBottom: 24 }}>User Profile</p>
<p style={pStyle}>Personal</p>
<MiniDrawer />
<Row>
<Col span={12}>
<DescriptionItem title="Full Name" content="Lily" />{' '}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册