import { View } from "@tarojs/components"; import style from "./index.module.scss" import classnames from "classnames"; import { memo, ReactNode, useMemo } from "react"; import CloseBtnIcon from "@/components/closeBtn" export interface Params { title?: string, show?: false|true, showTitle?: false|true, onClose?:() => void, children?: ReactNode, IconButton?: ReactNode, showIconButton?: false|true, position?: 'bottom'|'top'|'right' } export default memo(( { title = '标题', show = false, showTitle = true, onClose, showIconButton = false, children, position = 'bottom' }:Params) => { return ( <> onClose?.()} > e.stopPropagation()} > {showTitle&&{title}} {showIconButton&& onClose?.()}/> } {children} ) })