--- order: 6 title: zh-CN: 相册模式 en-US: Preview from one image --- ## zh-CN 从一张图片点开相册。 ## en-US Preview a collection from one image. ```jsx import React, { useState } from 'react'; import { Image } from 'antd'; const App = () => { const [visible, setVisible] = useState(false); return ( <> setVisible(true)} />
setVisible(vis) }}>
); }; export default () => ; ```