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