分类筛选完成

This commit is contained in:
2022-04-14 18:33:20 +08:00
parent 8e5e73909d
commit 9e969c496f
11 changed files with 456 additions and 14 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ $am-ms: 200ms;
.common_close_btn_icon{
position: absolute;
top: 10px;
right: 10px;
left: 10px;
}
}
.drawer_container_active{
+4 -4
View File
@@ -4,11 +4,11 @@ import classnames from "classnames";
import { memo, ReactNode, useMemo } from "react";
import CloseBtnIcon from "@/components/closeBtn"
interface Params {
export interface Params {
title?: string,
show?: false|true,
showTitle?: false|true,
onClose?:(boolean) => void,
onClose?:() => void,
children?: ReactNode,
IconButton?: ReactNode,
showIconButton?: false|true,
@@ -32,7 +32,7 @@ export default memo((
<View catchMove={true} className={`${style.drawer} ${show?style.drawer_active:''}` }>
<View
className={classnames(style.drawer_mask, {[style.drawer_mask_active]: show})}
onClick={() => onClose?.(false)}
onClick={() => onClose?.()}
>
<View
className={classnames(style.drawer_container, style['drawer_container_'+position], {[style.drawer_container_active]: show})}
@@ -40,7 +40,7 @@ export default memo((
>
{showTitle&&<View className={style.drawer_container_title}>{title}</View>}
{showIconButton&&<View className={style.common_close_btn_icon}>
<CloseBtnIcon onClose={() => onClose?.(false)}/>
<CloseBtnIcon onClose={() => onClose?.()}/>
</View>}
<View className={style.drawer_container_context}>