MadCcc
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
components/skeleton/demo/list.md
|
|
@ -14,10 +14,10 @@ title: |
|
|
|
Use skeleton in list component. |
|
|
|
|
|
|
|
```tsx |
|
|
|
import React, { useState } from 'react'; |
|
|
|
import { Skeleton, Switch, List, Avatar } from 'antd'; |
|
|
|
import { StarOutlined, LikeOutlined, MessageOutlined } from '@ant-design/icons'; |
|
|
|
import type Icon from '@ant-design/icons'; |
|
|
|
import { LikeOutlined, MessageOutlined, StarOutlined } from '@ant-design/icons'; |
|
|
|
import { Avatar, List, Skeleton, Switch } from 'antd'; |
|
|
|
import React, { useState } from 'react'; |
|
|
|
|
|
|
|
interface IconTextProps { |
|
|
|
icon: typeof Icon; |
|
|
@ -45,7 +45,7 @@ const App: React.FC = () => { |
|
|
|
const [loading, setLoading] = useState(true); |
|
|
|
|
|
|
|
const onChange = (checked: boolean) => { |
|
|
|
setLoading(checked); |
|
|
|
setLoading(!checked); |
|
|
|
}; |
|
|
|
return ( |
|
|
|
<> |
|
|
|