|
@@ -1,15 +1,8 @@
|
|
|
-import React from 'react';
|
|
|
-import { Image } from 'antd';
|
|
|
import StackViewer from './viewers/stack.image.viewer';
|
|
|
|
|
|
const ImageControl = () => {
|
|
|
return (
|
|
|
<div className="image-control">
|
|
|
- <Image
|
|
|
- width={200}
|
|
|
- src="https://via.placeholder.com/200"
|
|
|
- alt="Sample Image"
|
|
|
- />
|
|
|
<div style={{ width: '800px', height: '600px' }}>
|
|
|
<StackViewer imageIndex={30} />
|
|
|
{/* 第10张图和第30张图明显不同,可以用于测试,看效果*/}
|