mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-13 23:59:12 +08:00
22 lines
486 B
TypeScript
22 lines
486 B
TypeScript
|
import React from 'react';
|
||
|
import { ZoomInOutlined } from '@ant-design/icons';
|
||
|
import { Image, Space } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Image
|
||
|
width={96}
|
||
|
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
|
||
|
preview={{
|
||
|
maskClassName: 'customize-mask',
|
||
|
mask: (
|
||
|
<Space direction="vertical" align="center">
|
||
|
<ZoomInOutlined />
|
||
|
示例
|
||
|
</Space>
|
||
|
),
|
||
|
}}
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
export default App;
|