import { View, Input, Button } from '@tarojs/components' import { useCallback, useEffect, useMemo, useRef, useState, memo } from 'react' import styles from "./index.module.scss" import classnames from "classnames"; interface Props { list: any[], handChose?: (any) => void } export default memo((props: Props) => { const { list = [], handChose } = props return ( { list.map((item, index) => { return ( handChose?.(item)}> {item?.name} { item.showBorder && } ) }) } ) })