antv-l7/site/components/L7Draw/index.tsx

44 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// eslint-disable-next-line no-unused-vars
import React from 'react';
import '../../css/dipper.css';
import { Carousel } from 'antd';
interface DipperMapProps {
draw: {
desc: string;
img: string;
alt: string
}[]
}
export function L7Draw(props: DipperMapProps) {
const { draw } = props;
const jumoDemo = (url: string) => {
window.open(url, '_blank');
};
return (
<div className='dippermapcontainer'>
<div className='title'>L7Draw </div>
<div className='subtitle'>L7Draw L7 线</div>
<div className='carousel'>
<Carousel
autoplay
effect='fade'
dotPosition='right'
>
{draw.map(item => {
return (
<div>
<h3 style={{ textAlign: 'center' }}>{item.desc}</h3>
<img key={item.alt} alt={item.alt} src={item.img} />
</div>
);
})}
</Carousel>
</div>
</div>
);
}