mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 20:38:45 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
21 lines
600 B
TypeScript
21 lines
600 B
TypeScript
import React from 'react';
|
|
import { Image } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Image.PreviewGroup
|
|
preview={{ countRender: (current, total) => `当前 ${current} / 总计 ${total}` }}
|
|
>
|
|
<Image width={150} src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" />
|
|
<Image
|
|
width={150}
|
|
src="https://gw.alipayobjects.com/zos/antfincdn/aPkFc8Sj7n/method-draw-image.svg"
|
|
/>
|
|
<Image
|
|
width={150}
|
|
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
|
|
/>
|
|
</Image.PreviewGroup>
|
|
);
|
|
|
|
export default App;
|