Tooltip.tsx 536 B

123456789101112
  1. import { View, Text, Image } from "@tarojs/components";
  2. import './Tooltip.scss'
  3. export default function Component(props: { title: string, closeTip: Function }) {
  4. return (
  5. <View className="tip_bg">
  6. <View className="arrow"/>
  7. <Image className="tip_more" src={require('@assets/images/more.png')} />
  8. <Text className="tip_text">{props.title}</Text>
  9. <Image className="tip_close" src={require('@/assets/images/close.png')} onClick={() => {props.closeTip()}} />
  10. </View>
  11. )
  12. }