mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
docs: demo support react18 (#34843)
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
This commit is contained in:
parent
11d09f80de
commit
6776bb8916
@ -38,5 +38,5 @@ const Demo: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Demo />, mountNode);
|
export default () => <Demo />;
|
||||||
```
|
```
|
||||||
|
@ -35,5 +35,5 @@ const Demo: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Demo />, mountNode);
|
export default () => <Demo />;
|
||||||
```
|
```
|
||||||
|
@ -16,10 +16,9 @@ Callback with affixed state.
|
|||||||
```tsx
|
```tsx
|
||||||
import { Affix, Button } from 'antd';
|
import { Affix, Button } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Affix offsetTop={120} onChange={affixed => console.log(affixed)}>
|
<Affix offsetTop={120} onChange={affixed => console.log(affixed)}>
|
||||||
<Button>120px to affix top</Button>
|
<Button>120px to affix top</Button>
|
||||||
</Affix>,
|
</Affix>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -30,7 +30,7 @@ const Demo: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Demo />, mountNode);
|
export default () => <Demo />;
|
||||||
```
|
```
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -17,7 +17,7 @@ Custom action.
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Alert, Button, Space } from 'antd';
|
import { Alert, Button, Space } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Alert
|
<Alert
|
||||||
message="Success Tips"
|
message="Success Tips"
|
||||||
@ -69,8 +69,7 @@ ReactDOM.render(
|
|||||||
}
|
}
|
||||||
closable
|
closable
|
||||||
/>
|
/>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Display Alert as a banner at top of page.
|
|||||||
```tsx
|
```tsx
|
||||||
import { Alert } from 'antd';
|
import { Alert } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Alert message="Warning text" banner />
|
<Alert message="Warning text" banner />
|
||||||
<br />
|
<br />
|
||||||
@ -30,7 +30,6 @@ ReactDOM.render(
|
|||||||
<Alert showIcon={false} message="Warning text without icon" banner />
|
<Alert showIcon={false} message="Warning text without icon" banner />
|
||||||
<br />
|
<br />
|
||||||
<Alert type="error" message="Error text" banner />
|
<Alert type="error" message="Error text" banner />
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ The simplest usage for short messages.
|
|||||||
```tsx
|
```tsx
|
||||||
import { Alert } from 'antd';
|
import { Alert } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(<Alert message="Success Text" type="success" />, mountNode);
|
export default () => <Alert message="Success Text" type="success" />;
|
||||||
```
|
```
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -20,7 +20,7 @@ const onClose = (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
|
|||||||
console.log(e, 'I was closed.');
|
console.log(e, 'I was closed.');
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Alert
|
<Alert
|
||||||
message="Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text"
|
message="Warning Text Warning Text Warning TextW arning Text Warning Text Warning TextWarning Text"
|
||||||
@ -35,7 +35,6 @@ ReactDOM.render(
|
|||||||
closable
|
closable
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
/>
|
/>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,5 +16,5 @@ Replace the default icon with customized text.
|
|||||||
```tsx
|
```tsx
|
||||||
import { Alert } from 'antd';
|
import { Alert } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(<Alert message="Info Text" type="info" closeText="Close Now" />, mountNode);
|
export default () => <Alert message="Info Text" type="info" closeText="Close Now" />;
|
||||||
```
|
```
|
||||||
|
@ -20,7 +20,7 @@ import { SmileOutlined } from '@ant-design/icons';
|
|||||||
|
|
||||||
const icon = <SmileOutlined />;
|
const icon = <SmileOutlined />;
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Alert icon={icon} message="showIcon = false" type="success" />
|
<Alert icon={icon} message="showIcon = false" type="success" />
|
||||||
<Alert icon={icon} message="Success Tips" type="success" showIcon />
|
<Alert icon={icon} message="Success Tips" type="success" showIcon />
|
||||||
@ -55,7 +55,6 @@ ReactDOM.render(
|
|||||||
type="error"
|
type="error"
|
||||||
showIcon
|
showIcon
|
||||||
/>
|
/>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ Additional description for alert message.
|
|||||||
```tsx
|
```tsx
|
||||||
import { Alert } from 'antd';
|
import { Alert } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Alert
|
<Alert
|
||||||
message="Success Text"
|
message="Success Text"
|
||||||
@ -38,7 +38,6 @@ ReactDOM.render(
|
|||||||
description="Error Description Error Description Error Description Error Description"
|
description="Error Description Error Description Error Description Error Description"
|
||||||
type="error"
|
type="error"
|
||||||
/>
|
/>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -34,10 +34,9 @@ const ThrowError: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<ErrorBoundary>
|
<ErrorBoundary>
|
||||||
<ThrowError />
|
<ThrowError />
|
||||||
</ErrorBoundary>,
|
</ErrorBoundary>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ A relevant icon will make information clearer and more friendly.
|
|||||||
```tsx
|
```tsx
|
||||||
import { Alert } from 'antd';
|
import { Alert } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Alert message="Success Tips" type="success" showIcon />
|
<Alert message="Success Tips" type="success" showIcon />
|
||||||
<Alert message="Informational Notes" type="info" showIcon />
|
<Alert message="Informational Notes" type="info" showIcon />
|
||||||
@ -47,7 +47,6 @@ ReactDOM.render(
|
|||||||
type="error"
|
type="error"
|
||||||
showIcon
|
showIcon
|
||||||
/>
|
/>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -18,7 +18,7 @@ import { Alert } from 'antd';
|
|||||||
import { TextLoop } from 'react-text-loop-next';
|
import { TextLoop } from 'react-text-loop-next';
|
||||||
import Marquee from 'react-fast-marquee';
|
import Marquee from 'react-fast-marquee';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Alert
|
<Alert
|
||||||
banner
|
banner
|
||||||
@ -39,7 +39,6 @@ ReactDOM.render(
|
|||||||
</Marquee>
|
</Marquee>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -32,5 +32,5 @@ const App: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<App />, mountNode);
|
export default () => <App />;
|
||||||
```
|
```
|
||||||
|
@ -16,14 +16,13 @@ There are 4 types of Alert: `success`, `info`, `warning`, `error`.
|
|||||||
```tsx
|
```tsx
|
||||||
import { Alert } from 'antd';
|
import { Alert } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Alert message="Success Text" type="success" />
|
<Alert message="Success Text" type="success" />
|
||||||
<Alert message="Info Text" type="info" />
|
<Alert message="Info Text" type="info" />
|
||||||
<Alert message="Warning Text" type="warning" />
|
<Alert message="Warning Text" type="warning" />
|
||||||
<Alert message="Error Text" type="error" />
|
<Alert message="Error Text" type="error" />
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import { Anchor } from 'antd';
|
|||||||
|
|
||||||
const { Link } = Anchor;
|
const { Link } = Anchor;
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Anchor>
|
<Anchor>
|
||||||
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
||||||
<Link href="#components-anchor-demo-static" title="Static demo" />
|
<Link href="#components-anchor-demo-static" title="Static demo" />
|
||||||
@ -26,8 +26,7 @@ ReactDOM.render(
|
|||||||
<Link href="#Anchor-Props" title="Anchor Props" />
|
<Link href="#Anchor-Props" title="Anchor Props" />
|
||||||
<Link href="#Link-Props" title="Link Props" />
|
<Link href="#Link-Props" title="Link Props" />
|
||||||
</Link>
|
</Link>
|
||||||
</Anchor>,
|
</Anchor>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ const { Link } = Anchor;
|
|||||||
|
|
||||||
const getCurrentAnchor = () => '#components-anchor-demo-static';
|
const getCurrentAnchor = () => '#components-anchor-demo-static';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Anchor affix={false} getCurrentAnchor={getCurrentAnchor}>
|
<Anchor affix={false} getCurrentAnchor={getCurrentAnchor}>
|
||||||
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
||||||
<Link href="#components-anchor-demo-static" title="Static demo" />
|
<Link href="#components-anchor-demo-static" title="Static demo" />
|
||||||
@ -28,7 +28,6 @@ ReactDOM.render(
|
|||||||
<Link href="#Anchor-Props" title="Anchor Props" />
|
<Link href="#Anchor-Props" title="Anchor Props" />
|
||||||
<Link href="#Link-Props" title="Link Props" />
|
<Link href="#Link-Props" title="Link Props" />
|
||||||
</Link>
|
</Link>
|
||||||
</Anchor>,
|
</Anchor>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -22,7 +22,7 @@ const onChange = (link: string) => {
|
|||||||
console.log('Anchor:OnChange', link);
|
console.log('Anchor:OnChange', link);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Anchor affix={false} onChange={onChange}>
|
<Anchor affix={false} onChange={onChange}>
|
||||||
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
||||||
<Link href="#components-anchor-demo-static" title="Static demo" />
|
<Link href="#components-anchor-demo-static" title="Static demo" />
|
||||||
@ -30,7 +30,6 @@ ReactDOM.render(
|
|||||||
<Link href="#Anchor-Props" title="Anchor Props" />
|
<Link href="#Anchor-Props" title="Anchor Props" />
|
||||||
<Link href="#Link-Props" title="Link Props" />
|
<Link href="#Link-Props" title="Link Props" />
|
||||||
</Link>
|
</Link>
|
||||||
</Anchor>,
|
</Anchor>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -29,7 +29,7 @@ const handleClick = (
|
|||||||
console.log(link);
|
console.log(link);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Anchor affix={false} onClick={handleClick}>
|
<Anchor affix={false} onClick={handleClick}>
|
||||||
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
||||||
<Link href="#components-anchor-demo-static" title="Static demo" />
|
<Link href="#components-anchor-demo-static" title="Static demo" />
|
||||||
@ -37,7 +37,6 @@ ReactDOM.render(
|
|||||||
<Link href="#Anchor-Props" title="Anchor Props" />
|
<Link href="#Anchor-Props" title="Anchor Props" />
|
||||||
<Link href="#Link-Props" title="Link Props" />
|
<Link href="#Link-Props" title="Link Props" />
|
||||||
</Link>
|
</Link>
|
||||||
</Anchor>,
|
</Anchor>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -18,7 +18,7 @@ import { Anchor } from 'antd';
|
|||||||
|
|
||||||
const { Link } = Anchor;
|
const { Link } = Anchor;
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Anchor affix={false}>
|
<Anchor affix={false}>
|
||||||
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
<Link href="#components-anchor-demo-basic" title="Basic demo" />
|
||||||
<Link href="#components-anchor-demo-static" title="Static demo" />
|
<Link href="#components-anchor-demo-static" title="Static demo" />
|
||||||
@ -26,7 +26,6 @@ ReactDOM.render(
|
|||||||
<Link href="#Anchor-Props" title="Anchor Props" />
|
<Link href="#Anchor-Props" title="Anchor Props" />
|
||||||
<Link href="#Link-Props" title="Link Props" />
|
<Link href="#Link-Props" title="Link Props" />
|
||||||
</Link>
|
</Link>
|
||||||
</Anchor>,
|
</Anchor>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -36,5 +36,5 @@ const AnchorExample: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<AnchorExample />, mountNode);
|
export default () => <AnchorExample />;
|
||||||
```
|
```
|
||||||
|
@ -58,5 +58,5 @@ const Complete: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Complete />, mountNode);
|
export default () => <Complete />;
|
||||||
```
|
```
|
||||||
|
@ -74,7 +74,7 @@ const Complete: React.FC = () => (
|
|||||||
</AutoComplete>
|
</AutoComplete>
|
||||||
);
|
);
|
||||||
|
|
||||||
ReactDOM.render(<Complete />, mountNode);
|
export default () => <Complete />;
|
||||||
```
|
```
|
||||||
|
|
||||||
```css
|
```css
|
||||||
|
@ -52,5 +52,5 @@ const Complete: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Complete />, mountNode);
|
export default () => <Complete />;
|
||||||
```
|
```
|
||||||
|
@ -21,7 +21,7 @@ const formItemLayout = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Form style={{ margin: '0 auto' }} {...formItemLayout}>
|
<Form style={{ margin: '0 auto' }} {...formItemLayout}>
|
||||||
<Form.Item label="单独 AutoComplete">
|
<Form.Item label="单独 AutoComplete">
|
||||||
<AutoComplete />
|
<AutoComplete />
|
||||||
@ -67,7 +67,6 @@ ReactDOM.render(
|
|||||||
</Button>
|
</Button>
|
||||||
</Input.Group>
|
</Input.Group>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>,
|
</Form>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -33,5 +33,5 @@ const Complete: React.FC = () => (
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
ReactDOM.render(<Complete />, mountNode);
|
export default () => <Complete />;
|
||||||
```
|
```
|
||||||
|
@ -41,5 +41,5 @@ const Complete: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Complete />, mountNode);
|
export default () => <Complete />;
|
||||||
```
|
```
|
||||||
|
@ -38,5 +38,5 @@ const ValidateInputs: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<ValidateInputs />, mountNode);
|
export default () => <ValidateInputs />;
|
||||||
```
|
```
|
||||||
|
@ -77,5 +77,5 @@ const Complete: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Complete />, mountNode);
|
export default () => <Complete />;
|
||||||
```
|
```
|
||||||
|
@ -17,7 +17,7 @@ Usually used for reminders and notifications.
|
|||||||
import { Avatar, Badge } from 'antd';
|
import { Avatar, Badge } from 'antd';
|
||||||
import { UserOutlined } from '@ant-design/icons';
|
import { UserOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<span className="avatar-item">
|
<span className="avatar-item">
|
||||||
<Badge count={1}>
|
<Badge count={1}>
|
||||||
@ -29,8 +29,7 @@ ReactDOM.render(
|
|||||||
<Avatar shape="square" icon={<UserOutlined />} />
|
<Avatar shape="square" icon={<UserOutlined />} />
|
||||||
</Badge>
|
</Badge>
|
||||||
</span>
|
</span>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Three sizes and two shapes are available.
|
|||||||
import { Avatar } from 'antd';
|
import { Avatar } from 'antd';
|
||||||
import { UserOutlined } from '@ant-design/icons';
|
import { UserOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div>
|
||||||
<Avatar size={64} icon={<UserOutlined />} />
|
<Avatar size={64} icon={<UserOutlined />} />
|
||||||
@ -31,8 +31,7 @@ ReactDOM.render(
|
|||||||
<Avatar shape="square" icon={<UserOutlined />} />
|
<Avatar shape="square" icon={<UserOutlined />} />
|
||||||
<Avatar shape="square" size="small" icon={<UserOutlined />} />
|
<Avatar shape="square" size="small" icon={<UserOutlined />} />
|
||||||
</div>
|
</div>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -53,5 +53,5 @@ const Autoset: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Autoset />, mountNode);
|
export default () => <Autoset />;
|
||||||
```
|
```
|
||||||
|
@ -17,7 +17,7 @@ debug: true
|
|||||||
```tsx
|
```tsx
|
||||||
import { Avatar } from 'antd';
|
import { Avatar } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
|
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
|
||||||
A
|
A
|
||||||
@ -25,7 +25,6 @@ ReactDOM.render(
|
|||||||
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
|
<Avatar shape="circle" src="http://abc.com/not-exist.jpg">
|
||||||
ABC
|
ABC
|
||||||
</Avatar>
|
</Avatar>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -66,5 +66,5 @@ const Demo = () => (
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
ReactDOM.render(<Demo />, mountNode);
|
export default () => <Demo />;
|
||||||
```
|
```
|
||||||
|
@ -17,11 +17,10 @@ Avatar size can be automatically adjusted based on the screen size.
|
|||||||
import { Avatar } from 'antd';
|
import { Avatar } from 'antd';
|
||||||
import { AntDesignOutlined } from '@ant-design/icons';
|
import { AntDesignOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Avatar
|
<Avatar
|
||||||
size={{ xs: 24, sm: 32, md: 40, lg: 64, xl: 80, xxl: 100 }}
|
size={{ xs: 24, sm: 32, md: 40, lg: 64, xl: 80, xxl: 100 }}
|
||||||
icon={<AntDesignOutlined />}
|
icon={<AntDesignOutlined />}
|
||||||
/>,
|
/>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -71,5 +71,5 @@ const App: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<App />, mountNode);
|
export default () => <App />;
|
||||||
```
|
```
|
||||||
|
@ -17,7 +17,7 @@ Image, Icon and letter are supported, and the latter two kinds of avatar can hav
|
|||||||
import { Avatar, Image } from 'antd';
|
import { Avatar, Image } from 'antd';
|
||||||
import { UserOutlined } from '@ant-design/icons';
|
import { UserOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Avatar icon={<UserOutlined />} />
|
<Avatar icon={<UserOutlined />} />
|
||||||
<Avatar>U</Avatar>
|
<Avatar>U</Avatar>
|
||||||
@ -26,8 +26,7 @@ ReactDOM.render(
|
|||||||
<Avatar src={<Image src="https://joeschmoe.io/api/v1/random" style={{ width: 32 }} />} />
|
<Avatar src={<Image src="https://joeschmoe.io/api/v1/random" style={{ width: 32 }} />} />
|
||||||
<Avatar style={{ color: '#f56a00', backgroundColor: '#fde3cf' }}>U</Avatar>
|
<Avatar style={{ color: '#f56a00', backgroundColor: '#fde3cf' }}>U</Avatar>
|
||||||
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
<Avatar style={{ backgroundColor: '#87d068' }} icon={<UserOutlined />} />
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,14 +16,13 @@ The most basic usage.
|
|||||||
```jsx
|
```jsx
|
||||||
import { BackTop } from 'antd';
|
import { BackTop } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<BackTop />
|
<BackTop />
|
||||||
Scroll down to see the bottom-right
|
Scroll down to see the bottom-right
|
||||||
<strong className="site-back-top-basic"> gray </strong>
|
<strong className="site-back-top-basic"> gray </strong>
|
||||||
button.
|
button.
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ const style = {
|
|||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<div style={{ height: '600vh', padding: 8 }}>
|
<div style={{ height: '600vh', padding: 8 }}>
|
||||||
<div>Scroll to bottom</div>
|
<div>Scroll to bottom</div>
|
||||||
<div>Scroll to bottom</div>
|
<div>Scroll to bottom</div>
|
||||||
@ -40,7 +40,6 @@ ReactDOM.render(
|
|||||||
<BackTop>
|
<BackTop>
|
||||||
<div style={style}>UP</div>
|
<div style={style}>UP</div>
|
||||||
</BackTop>
|
</BackTop>
|
||||||
</div>,
|
</div>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -17,7 +17,7 @@ Simplest Usage. Badge will be hidden when `count` is `0`, but we can use `showZe
|
|||||||
import { Badge, Avatar } from 'antd';
|
import { Badge, Avatar } from 'antd';
|
||||||
import { ClockCircleOutlined } from '@ant-design/icons';
|
import { ClockCircleOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Badge count={5}>
|
<Badge count={5}>
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
@ -28,8 +28,7 @@ ReactDOM.render(
|
|||||||
<Badge count={<ClockCircleOutlined style={{ color: '#f5222d' }} />}>
|
<Badge count={<ClockCircleOutlined style={{ color: '#f5222d' }} />}>
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
</Badge>
|
</Badge>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -74,5 +74,5 @@ class Demo extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<Demo />, mountNode);
|
export default () => <Demo />;
|
||||||
```
|
```
|
||||||
|
@ -32,7 +32,7 @@ const colors = [
|
|||||||
'lime',
|
'lime',
|
||||||
];
|
];
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Divider orientation="left">Presets</Divider>
|
<Divider orientation="left">Presets</Divider>
|
||||||
<div>
|
<div>
|
||||||
@ -52,8 +52,7 @@ ReactDOM.render(
|
|||||||
<br />
|
<br />
|
||||||
<Badge color="#108ee9" text="#108ee9" />
|
<Badge color="#108ee9" text="#108ee9" />
|
||||||
</>
|
</>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ This will simply display a red badge, without a specific count. If count equals
|
|||||||
import { Badge } from 'antd';
|
import { Badge } from 'antd';
|
||||||
import { NotificationOutlined } from '@ant-design/icons';
|
import { NotificationOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Badge dot>
|
<Badge dot>
|
||||||
<NotificationOutlined style={{ fontSize: 16 }} />
|
<NotificationOutlined style={{ fontSize: 16 }} />
|
||||||
@ -25,7 +25,6 @@ ReactDOM.render(
|
|||||||
<Badge dot>
|
<Badge dot>
|
||||||
<a href="#">Link something</a>
|
<a href="#">Link something</a>
|
||||||
</Badge>
|
</Badge>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,12 +16,11 @@ The badge can be wrapped with `a` tag to make it linkable.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge, Avatar } from 'antd';
|
import { Badge, Avatar } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<Badge count={5}>
|
<Badge count={5}>
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
</Badge>
|
</Badge>
|
||||||
</a>,
|
</a>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -17,7 +17,7 @@ Using `count/dot` with custom `stauts/color`.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge, Avatar } from 'antd';
|
import { Badge, Avatar } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Badge count={5} status="success">
|
<Badge count={5} status="success">
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
@ -43,7 +43,6 @@ ReactDOM.render(
|
|||||||
<Badge dot color="#fa541c">
|
<Badge dot color="#fa541c">
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
</Badge>
|
</Badge>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -36,5 +36,5 @@ const Demo = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<Demo />, mountNode);
|
export default () => <Demo />;
|
||||||
```
|
```
|
||||||
|
@ -16,10 +16,9 @@ Set offset of the badge dot, the format is `[left, top]`, which represents the o
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge, Avatar } from 'antd';
|
import { Badge, Avatar } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Badge count={5} offset={[10, 10]}>
|
<Badge count={5} offset={[10, 10]}>
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
</Badge>,
|
</Badge>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ title:
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge, Avatar } from 'antd';
|
import { Badge, Avatar } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Badge count={99}>
|
<Badge count={99}>
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
@ -30,7 +30,6 @@ ReactDOM.render(
|
|||||||
<Badge count={1000} overflowCount={999}>
|
<Badge count={1000} overflowCount={999}>
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
</Badge>
|
</Badge>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ Use ribbon badge.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge, Card } from 'antd';
|
import { Badge, Card } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Badge.Ribbon text="Hippies">
|
<Badge.Ribbon text="Hippies">
|
||||||
<Card title="Pushes open the window" size="small">
|
<Card title="Pushes open the window" size="small">
|
||||||
@ -58,8 +58,7 @@ ReactDOM.render(
|
|||||||
and raises the spyglass.
|
and raises the spyglass.
|
||||||
</Card>
|
</Card>
|
||||||
</Badge.Ribbon>
|
</Badge.Ribbon>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Buggy!
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge, Card, Space } from 'antd';
|
import { Badge, Card, Space } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Space direction="vertical" style={{ width: '100%' }}>
|
<Space direction="vertical" style={{ width: '100%' }}>
|
||||||
<Badge.Ribbon text="啦啦啦啦">
|
<Badge.Ribbon text="啦啦啦啦">
|
||||||
<Card>推开窗户举起望远镜</Card>
|
<Card>推开窗户举起望远镜</Card>
|
||||||
@ -34,7 +34,6 @@ ReactDOM.render(
|
|||||||
<Badge.Ribbon text="啦啦啦啦" color="#2db7f5" placement="end">
|
<Badge.Ribbon text="啦啦啦啦" color="#2db7f5" placement="end">
|
||||||
<Card>推开窗户举起望远镜</Card>
|
<Card>推开窗户举起望远镜</Card>
|
||||||
</Badge.Ribbon>
|
</Badge.Ribbon>
|
||||||
</Space>,
|
</Space>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ Set size of numeral Badge.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge, Avatar } from 'antd';
|
import { Badge, Avatar } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Badge size="default" count={5}>
|
<Badge size="default" count={5}>
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
@ -24,7 +24,6 @@ ReactDOM.render(
|
|||||||
<Badge size="small" count={5}>
|
<Badge size="small" count={5}>
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
</Badge>
|
</Badge>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ Standalone badge with status.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge } from 'antd';
|
import { Badge } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Badge status="success" />
|
<Badge status="success" />
|
||||||
<Badge status="error" />
|
<Badge status="error" />
|
||||||
@ -33,7 +33,6 @@ ReactDOM.render(
|
|||||||
<Badge status="processing" text="Processing" />
|
<Badge status="processing" text="Processing" />
|
||||||
<br />
|
<br />
|
||||||
<Badge status="warning" text="Warning" />
|
<Badge status="warning" text="Warning" />
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -17,7 +17,7 @@ The badge will display `title` when hovered over, instead of `count`.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Badge, Avatar } from 'antd';
|
import { Badge, Avatar } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Badge count={5} title="Custom hover text">
|
<Badge count={5} title="Custom hover text">
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
@ -25,7 +25,6 @@ ReactDOM.render(
|
|||||||
<Badge count={-5} title="Negative">
|
<Badge count={-5} title="Negative">
|
||||||
<Avatar shape="square" size="large" />
|
<Avatar shape="square" size="large" />
|
||||||
</Badge>
|
</Badge>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ The simplest use.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Breadcrumb } from 'antd';
|
import { Breadcrumb } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Breadcrumb>
|
<Breadcrumb>
|
||||||
<Breadcrumb.Item>Home</Breadcrumb.Item>
|
<Breadcrumb.Item>Home</Breadcrumb.Item>
|
||||||
<Breadcrumb.Item>
|
<Breadcrumb.Item>
|
||||||
@ -26,7 +26,6 @@ ReactDOM.render(
|
|||||||
<a href="">Application List</a>
|
<a href="">Application List</a>
|
||||||
</Breadcrumb.Item>
|
</Breadcrumb.Item>
|
||||||
<Breadcrumb.Item>An Application</Breadcrumb.Item>
|
<Breadcrumb.Item>An Application</Breadcrumb.Item>
|
||||||
</Breadcrumb>,
|
</Breadcrumb>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -36,7 +36,7 @@ const menu = (
|
|||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Breadcrumb>
|
<Breadcrumb>
|
||||||
<Breadcrumb.Item>Ant Design</Breadcrumb.Item>
|
<Breadcrumb.Item>Ant Design</Breadcrumb.Item>
|
||||||
<Breadcrumb.Item>
|
<Breadcrumb.Item>
|
||||||
@ -46,7 +46,6 @@ ReactDOM.render(
|
|||||||
<a href="">General</a>
|
<a href="">General</a>
|
||||||
</Breadcrumb.Item>
|
</Breadcrumb.Item>
|
||||||
<Breadcrumb.Item>Button</Breadcrumb.Item>
|
<Breadcrumb.Item>Button</Breadcrumb.Item>
|
||||||
</Breadcrumb>,
|
</Breadcrumb>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -69,11 +69,10 @@ const Home = props => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<HashRouter>
|
<HashRouter>
|
||||||
<Home />
|
<Home />
|
||||||
</HashRouter>,
|
</HashRouter>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ The separator can be customized by setting the separator property: `Breadcrumb.S
|
|||||||
```jsx
|
```jsx
|
||||||
import { Breadcrumb } from 'antd';
|
import { Breadcrumb } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Breadcrumb separator="">
|
<Breadcrumb separator="">
|
||||||
<Breadcrumb.Item>Location</Breadcrumb.Item>
|
<Breadcrumb.Item>Location</Breadcrumb.Item>
|
||||||
<Breadcrumb.Separator>:</Breadcrumb.Separator>
|
<Breadcrumb.Separator>:</Breadcrumb.Separator>
|
||||||
@ -25,7 +25,6 @@ ReactDOM.render(
|
|||||||
<Breadcrumb.Item href="">Application List</Breadcrumb.Item>
|
<Breadcrumb.Item href="">Application List</Breadcrumb.Item>
|
||||||
<Breadcrumb.Separator />
|
<Breadcrumb.Separator />
|
||||||
<Breadcrumb.Item>An Application</Breadcrumb.Item>
|
<Breadcrumb.Item>An Application</Breadcrumb.Item>
|
||||||
</Breadcrumb>,
|
</Breadcrumb>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,13 +16,12 @@ The separator can be customized by setting the separator property: `separator=">
|
|||||||
```jsx
|
```jsx
|
||||||
import { Breadcrumb } from 'antd';
|
import { Breadcrumb } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Breadcrumb separator=">">
|
<Breadcrumb separator=">">
|
||||||
<Breadcrumb.Item>Home</Breadcrumb.Item>
|
<Breadcrumb.Item>Home</Breadcrumb.Item>
|
||||||
<Breadcrumb.Item href="">Application Center</Breadcrumb.Item>
|
<Breadcrumb.Item href="">Application Center</Breadcrumb.Item>
|
||||||
<Breadcrumb.Item href="">Application List</Breadcrumb.Item>
|
<Breadcrumb.Item href="">Application List</Breadcrumb.Item>
|
||||||
<Breadcrumb.Item>An Application</Breadcrumb.Item>
|
<Breadcrumb.Item>An Application</Breadcrumb.Item>
|
||||||
</Breadcrumb>,
|
</Breadcrumb>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -17,7 +17,7 @@ The icon should be placed in front of the text.
|
|||||||
import { Breadcrumb } from 'antd';
|
import { Breadcrumb } from 'antd';
|
||||||
import { HomeOutlined, UserOutlined } from '@ant-design/icons';
|
import { HomeOutlined, UserOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Breadcrumb>
|
<Breadcrumb>
|
||||||
<Breadcrumb.Item href="">
|
<Breadcrumb.Item href="">
|
||||||
<HomeOutlined />
|
<HomeOutlined />
|
||||||
@ -27,7 +27,6 @@ ReactDOM.render(
|
|||||||
<span>Application List</span>
|
<span>Application List</span>
|
||||||
</Breadcrumb.Item>
|
</Breadcrumb.Item>
|
||||||
<Breadcrumb.Item>Application</Breadcrumb.Item>
|
<Breadcrumb.Item>Application</Breadcrumb.Item>
|
||||||
</Breadcrumb>,
|
</Breadcrumb>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ There are `primary` button, `default` button, `dashed` button, `text` button and
|
|||||||
```jsx
|
```jsx
|
||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Button type="primary">Primary Button</Button>
|
<Button type="primary">Primary Button</Button>
|
||||||
<Button>Default Button</Button>
|
<Button>Default Button</Button>
|
||||||
@ -24,7 +24,6 @@ ReactDOM.render(
|
|||||||
<br />
|
<br />
|
||||||
<Button type="text">Text Button</Button>
|
<Button type="text">Text Button</Button>
|
||||||
<Button type="link">Link Button</Button>
|
<Button type="link">Link Button</Button>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ title:
|
|||||||
```jsx
|
```jsx
|
||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Button type="primary" block>
|
<Button type="primary" block>
|
||||||
Primary
|
Primary
|
||||||
@ -28,7 +28,6 @@ ReactDOM.render(
|
|||||||
<Button type="link" block>
|
<Button type="link" block>
|
||||||
Link
|
Link
|
||||||
</Button>
|
</Button>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ title:
|
|||||||
```jsx
|
```jsx
|
||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Button type="primary" danger>
|
<Button type="primary" danger>
|
||||||
Primary
|
Primary
|
||||||
@ -31,7 +31,6 @@ ReactDOM.render(
|
|||||||
<Button type="link" danger>
|
<Button type="link" danger>
|
||||||
Link
|
Link
|
||||||
</Button>
|
</Button>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ To mark a button as disabled, add the `disabled` property to the `Button`.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Button type="primary">Primary</Button>
|
<Button type="primary">Primary</Button>
|
||||||
<Button type="primary" disabled>
|
<Button type="primary" disabled>
|
||||||
@ -65,8 +65,7 @@ ReactDOM.render(
|
|||||||
Ghost(disabled)
|
Ghost(disabled)
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ title:
|
|||||||
```jsx
|
```jsx
|
||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<div className="site-button-ghost-wrapper">
|
<div className="site-button-ghost-wrapper">
|
||||||
<Button type="primary" ghost>
|
<Button type="primary" ghost>
|
||||||
Primary
|
Primary
|
||||||
@ -28,8 +28,7 @@ ReactDOM.render(
|
|||||||
<Button type="primary" danger ghost>
|
<Button type="primary" danger ghost>
|
||||||
Danger
|
Danger
|
||||||
</Button>
|
</Button>
|
||||||
</div>,
|
</div>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ If you want specific control over the positioning and placement of the `Icon`, t
|
|||||||
import { Button, Tooltip } from 'antd';
|
import { Button, Tooltip } from 'antd';
|
||||||
import { SearchOutlined } from '@ant-design/icons';
|
import { SearchOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Tooltip title="search">
|
<Tooltip title="search">
|
||||||
<Button type="primary" shape="circle" icon={<SearchOutlined />} />
|
<Button type="primary" shape="circle" icon={<SearchOutlined />} />
|
||||||
@ -79,7 +79,6 @@ ReactDOM.render(
|
|||||||
Search
|
Search
|
||||||
</Button>
|
</Button>
|
||||||
<Button icon={<SearchOutlined />} size="large" href="https://www.google.com" />
|
<Button icon={<SearchOutlined />} size="large" href="https://www.google.com" />
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -35,15 +35,14 @@ function getGroup(props) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
{getGroup({ size: 'small' })}
|
{getGroup({ size: 'small' })}
|
||||||
<br />
|
<br />
|
||||||
{getGroup()}
|
{getGroup()}
|
||||||
<br />
|
<br />
|
||||||
{getGroup({ size: 'large' })}
|
{getGroup({ size: 'large' })}
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -81,5 +81,5 @@ class App extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<App />, mountNode);
|
export default () => <App />;
|
||||||
```
|
```
|
||||||
|
@ -28,12 +28,11 @@ const menu = (
|
|||||||
</Menu>
|
</Menu>
|
||||||
);
|
);
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Button type="primary">primary</Button>
|
<Button type="primary">primary</Button>
|
||||||
<Button>secondary</Button>
|
<Button>secondary</Button>
|
||||||
<Dropdown.Button overlay={menu}>Actions</Dropdown.Button>
|
<Dropdown.Button overlay={menu}>Actions</Dropdown.Button>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -67,5 +67,5 @@ class ButtonSize extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<ButtonSize />, mountNode);
|
export default () => <ButtonSize />;
|
||||||
```
|
```
|
||||||
|
@ -20,5 +20,5 @@ function onPanelChange(value, mode) {
|
|||||||
console.log(value.format('YYYY-MM-DD'), mode);
|
console.log(value.format('YYYY-MM-DD'), mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<Calendar onPanelChange={onPanelChange} />, mountNode);
|
export default () => <Calendar onPanelChange={onPanelChange} />;
|
||||||
```
|
```
|
||||||
|
@ -20,11 +20,10 @@ function onPanelChange(value, mode) {
|
|||||||
console.log(value, mode);
|
console.log(value, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<div className="site-calendar-demo-card">
|
<div className="site-calendar-demo-card">
|
||||||
<Calendar fullscreen={false} onPanelChange={onPanelChange} />
|
<Calendar fullscreen={false} onPanelChange={onPanelChange} />
|
||||||
</div>,
|
</div>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ function onPanelChange(value, mode) {
|
|||||||
console.log(value, mode);
|
console.log(value, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<div className="site-calendar-customize-header-wrapper">
|
<div className="site-calendar-customize-header-wrapper">
|
||||||
<Calendar
|
<Calendar
|
||||||
fullscreen={false}
|
fullscreen={false}
|
||||||
@ -99,8 +99,7 @@ ReactDOM.render(
|
|||||||
}}
|
}}
|
||||||
onPanelChange={onPanelChange}
|
onPanelChange={onPanelChange}
|
||||||
/>
|
/>
|
||||||
</div>,
|
</div>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -76,10 +76,7 @@ function monthCellRender(value) {
|
|||||||
) : null;
|
) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => <Calendar dateCellRender={dateCellRender} monthCellRender={monthCellRender} />;
|
||||||
<Calendar dateCellRender={dateCellRender} monthCellRender={monthCellRender} />,
|
|
||||||
mountNode,
|
|
||||||
);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```css
|
```css
|
||||||
|
@ -47,5 +47,5 @@ class App extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<App />, mountNode);
|
export default () => <App />;
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ A basic card containing a title, content and an extra corner content. Supports t
|
|||||||
```jsx
|
```jsx
|
||||||
import { Card } from 'antd';
|
import { Card } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<>
|
<>
|
||||||
<Card title="Default size card" extra={<a href="#">More</a>} style={{ width: 300 }}>
|
<Card title="Default size card" extra={<a href="#">More</a>} style={{ width: 300 }}>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
@ -28,8 +28,7 @@ ReactDOM.render(
|
|||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
</Card>
|
</Card>
|
||||||
</>,
|
</>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,15 +16,14 @@ A borderless card on a gray background.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Card } from 'antd';
|
import { Card } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<div className="site-card-border-less-wrapper">
|
<div className="site-card-border-less-wrapper">
|
||||||
<Card title="Card title" bordered={false} style={{ width: 300 }}>
|
<Card title="Card title" bordered={false} style={{ width: 300 }}>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
</Card>
|
</Card>
|
||||||
</div>,
|
</div>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -18,14 +18,13 @@ import { Card } from 'antd';
|
|||||||
|
|
||||||
const { Meta } = Card;
|
const { Meta } = Card;
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Card
|
<Card
|
||||||
hoverable
|
hoverable
|
||||||
style={{ width: 240 }}
|
style={{ width: 240 }}
|
||||||
cover={<img alt="example" src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png" />}
|
cover={<img alt="example" src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png" />}
|
||||||
>
|
>
|
||||||
<Meta title="Europe Street beat" description="www.instagram.com" />
|
<Meta title="Europe Street beat" description="www.instagram.com" />
|
||||||
</Card>,
|
</Card>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -21,7 +21,7 @@ const gridStyle = {
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Card title="Card Title">
|
<Card title="Card Title">
|
||||||
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||||||
<Card.Grid hoverable={false} style={gridStyle}>
|
<Card.Grid hoverable={false} style={gridStyle}>
|
||||||
@ -32,7 +32,6 @@ ReactDOM.render(
|
|||||||
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||||||
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||||||
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
<Card.Grid style={gridStyle}>Content</Card.Grid>
|
||||||
</Card>,
|
</Card>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,7 +16,7 @@ Cards usually cooperate with grid column layout in overview page.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Card, Col, Row } from 'antd';
|
import { Card, Col, Row } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<div className="site-card-wrapper">
|
<div className="site-card-wrapper">
|
||||||
<Row gutter={16}>
|
<Row gutter={16}>
|
||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
@ -35,8 +35,7 @@ ReactDOM.render(
|
|||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>,
|
</div>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ It can be placed inside the ordinary card to display the information of the mult
|
|||||||
```jsx
|
```jsx
|
||||||
import { Card } from 'antd';
|
import { Card } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Card title="Card title">
|
<Card title="Card title">
|
||||||
<Card type="inner" title="Inner Card title" extra={<a href="#">More</a>}>
|
<Card type="inner" title="Inner Card title" extra={<a href="#">More</a>}>
|
||||||
Inner Card content
|
Inner Card content
|
||||||
@ -29,7 +29,6 @@ ReactDOM.render(
|
|||||||
>
|
>
|
||||||
Inner Card content
|
Inner Card content
|
||||||
</Card>
|
</Card>
|
||||||
</Card>,
|
</Card>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -64,5 +64,5 @@ class App extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<App />, mountNode);
|
export default () => <App />;
|
||||||
```
|
```
|
||||||
|
@ -19,7 +19,7 @@ import { EditOutlined, EllipsisOutlined, SettingOutlined } from '@ant-design/ico
|
|||||||
|
|
||||||
const { Meta } = Card;
|
const { Meta } = Card;
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Card
|
<Card
|
||||||
style={{ width: 300 }}
|
style={{ width: 300 }}
|
||||||
cover={
|
cover={
|
||||||
@ -39,7 +39,6 @@ ReactDOM.render(
|
|||||||
title="Card title"
|
title="Card title"
|
||||||
description="This is the description"
|
description="This is the description"
|
||||||
/>
|
/>
|
||||||
</Card>,
|
</Card>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -16,12 +16,11 @@ A simple card only containing a content area.
|
|||||||
```jsx
|
```jsx
|
||||||
import { Card } from 'antd';
|
import { Card } from 'antd';
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Card style={{ width: 300 }}>
|
<Card style={{ width: 300 }}>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
<p>Card content</p>
|
<p>Card content</p>
|
||||||
</Card>,
|
</Card>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -96,5 +96,5 @@ const TabsCard = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<TabsCard />, mountNode);
|
export default () => <TabsCard />;
|
||||||
```
|
```
|
||||||
|
@ -24,7 +24,7 @@ const contentStyle = {
|
|||||||
background: '#364d79',
|
background: '#364d79',
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Carousel autoplay>
|
<Carousel autoplay>
|
||||||
<div>
|
<div>
|
||||||
<h3 style={contentStyle}>1</h3>
|
<h3 style={contentStyle}>1</h3>
|
||||||
@ -38,7 +38,6 @@ ReactDOM.render(
|
|||||||
<div>
|
<div>
|
||||||
<h3 style={contentStyle}>4</h3>
|
<h3 style={contentStyle}>4</h3>
|
||||||
</div>
|
</div>
|
||||||
</Carousel>,
|
</Carousel>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -28,7 +28,7 @@ const contentStyle = {
|
|||||||
background: '#364d79',
|
background: '#364d79',
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Carousel afterChange={onChange}>
|
<Carousel afterChange={onChange}>
|
||||||
<div>
|
<div>
|
||||||
<h3 style={contentStyle}>1</h3>
|
<h3 style={contentStyle}>1</h3>
|
||||||
@ -42,7 +42,6 @@ ReactDOM.render(
|
|||||||
<div>
|
<div>
|
||||||
<h3 style={contentStyle}>4</h3>
|
<h3 style={contentStyle}>4</h3>
|
||||||
</div>
|
</div>
|
||||||
</Carousel>,
|
</Carousel>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -24,7 +24,7 @@ const contentStyle = {
|
|||||||
background: '#364d79',
|
background: '#364d79',
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Carousel effect="fade">
|
<Carousel effect="fade">
|
||||||
<div>
|
<div>
|
||||||
<h3 style={contentStyle}>1</h3>
|
<h3 style={contentStyle}>1</h3>
|
||||||
@ -38,7 +38,6 @@ ReactDOM.render(
|
|||||||
<div>
|
<div>
|
||||||
<h3 style={contentStyle}>4</h3>
|
<h3 style={contentStyle}>4</h3>
|
||||||
</div>
|
</div>
|
||||||
</Carousel>,
|
</Carousel>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -57,5 +57,5 @@ const PositionCarouselDemo = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<PositionCarouselDemo />, mountNode);
|
export default () => <PositionCarouselDemo />;
|
||||||
```
|
```
|
||||||
|
@ -55,8 +55,5 @@ function onChange(value) {
|
|||||||
console.log(value);
|
console.log(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => <Cascader options={options} onChange={onChange} placeholder="Please select" />;
|
||||||
<Cascader options={options} onChange={onChange} placeholder="Please select" />,
|
|
||||||
mountNode,
|
|
||||||
);
|
|
||||||
```
|
```
|
||||||
|
@ -55,5 +55,5 @@ function onChange(value) {
|
|||||||
console.log(value);
|
console.log(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<Cascader options={options} onChange={onChange} changeOnSelect />, mountNode);
|
export default () => <Cascader options={options} onChange={onChange} changeOnSelect />;
|
||||||
```
|
```
|
||||||
|
@ -61,8 +61,7 @@ function dropdownRender(menus) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Cascader options={options} dropdownRender={dropdownRender} placeholder="Please select" />,
|
<Cascader options={options} dropdownRender={dropdownRender} placeholder="Please select" />
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -71,13 +71,12 @@ const displayRender = (labels, selectedOptions) =>
|
|||||||
return <span key={option.value}>{label} / </span>;
|
return <span key={option.value}>{label} / </span>;
|
||||||
});
|
});
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Cascader
|
<Cascader
|
||||||
options={options}
|
options={options}
|
||||||
defaultValue={['zhejiang', 'hangzhou', 'xihu']}
|
defaultValue={['zhejiang', 'hangzhou', 'xihu']}
|
||||||
displayRender={displayRender}
|
displayRender={displayRender}
|
||||||
style={{ width: '100%' }}
|
style={{ width: '100%' }}
|
||||||
/>,
|
/>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -63,5 +63,5 @@ class CitySwitcher extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<CitySwitcher />, mountNode);
|
export default () => <CitySwitcher />;
|
||||||
```
|
```
|
||||||
|
@ -55,12 +55,7 @@ function onChange(value) {
|
|||||||
console.log(value);
|
console.log(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Cascader
|
<Cascader defaultValue={['zhejiang', 'hangzhou', 'xihu']} options={options} onChange={onChange} />
|
||||||
defaultValue={['zhejiang', 'hangzhou', 'xihu']}
|
|
||||||
options={options}
|
|
||||||
onChange={onChange}
|
|
||||||
/>,
|
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -56,5 +56,5 @@ function onChange(value) {
|
|||||||
console.log(value);
|
console.log(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(<Cascader options={options} onChange={onChange} />, mountNode);
|
export default () => <Cascader options={options} onChange={onChange} />;
|
||||||
```
|
```
|
||||||
|
@ -55,13 +55,12 @@ function onChange(value) {
|
|||||||
console.log(value);
|
console.log(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Cascader
|
<Cascader
|
||||||
fieldNames={{ label: 'name', value: 'code', children: 'items' }}
|
fieldNames={{ label: 'name', value: 'code', children: 'items' }}
|
||||||
options={options}
|
options={options}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
placeholder="Please select"
|
placeholder="Please select"
|
||||||
/>,
|
/>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -60,13 +60,12 @@ function displayRender(label) {
|
|||||||
return label[label.length - 1];
|
return label[label.length - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
export default () => (
|
||||||
<Cascader
|
<Cascader
|
||||||
options={options}
|
options={options}
|
||||||
expandTrigger="hover"
|
expandTrigger="hover"
|
||||||
displayRender={displayRender}
|
displayRender={displayRender}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
/>,
|
/>
|
||||||
mountNode,
|
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -64,5 +64,5 @@ const LazyOptions = () => {
|
|||||||
return <Cascader options={options} loadData={loadData} onChange={onChange} changeOnSelect />;
|
return <Cascader options={options} loadData={loadData} onChange={onChange} changeOnSelect />;
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<LazyOptions />, mountNode);
|
export default () => <LazyOptions />;
|
||||||
```
|
```
|
||||||
|
@ -66,5 +66,5 @@ const App = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(<App />, mountNode);
|
export default () => <App />;
|
||||||
```
|
```
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user