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

37 lines
1.0 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';
interface DipperProps {
dipper: {
title: string;
image: string;
link: string
}[]
}
export function Dipper(props: DipperProps) {
const { dipper } = props;
const jumoDemo = (url: string) => {
window.open(url, '_blank');
};
return (
<div className='dippercontainer'>
<div className='title'>Dipper </div>
<div className='subtitle'>Dipper L7 </div>
<div className='dipperdemo'>
{dipper.map(item => {
return (
<div key={item.title} className='dipperitem' >
<img className='dipperimg' src={item.image} />
<span style={{cursor:'pointer'}} className='dippertitle'>{item.title}</span>
</div>
);
})}
</div>
</div>
);
}