mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
2cdf586291
* chore: fix lint * chore: fix lint * test: fix 16 * fix: lint
23 lines
507 B
TypeScript
23 lines
507 B
TypeScript
import React from 'react';
|
|
import { Image } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Image
|
|
width={200}
|
|
preview={{
|
|
imageRender: () => (
|
|
<video
|
|
muted
|
|
width="100%"
|
|
controls
|
|
src="https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*uYT7SZwhJnUAAAAAAAAAAAAADgCCAQ"
|
|
/>
|
|
),
|
|
toolbarRender: () => null,
|
|
}}
|
|
src="https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
|
|
/>
|
|
);
|
|
|
|
export default App;
|