2023-06-02 15:48:18 +08:00
|
|
|
import React from 'react';
|
2023-07-28 16:17:43 +08:00
|
|
|
import { ConfigProvider, Image } from 'antd';
|
2023-06-02 15:48:18 +08:00
|
|
|
|
|
|
|
const App: React.FC = () => (
|
|
|
|
<ConfigProvider
|
|
|
|
theme={{
|
|
|
|
components: {
|
|
|
|
Image: {
|
|
|
|
previewOperationSize: 20,
|
|
|
|
previewOperationColor: '#222',
|
|
|
|
previewOperationColorDisabled: '#b20000',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
<Image.PreviewGroup
|
|
|
|
preview={{ countRender: (current, total) => `当前 ${current} / 总计 ${total}` }}
|
|
|
|
>
|
|
|
|
<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>
|
|
|
|
</ConfigProvider>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|