u
This commit is contained in:
1 parent
8f3f6982db
commit
5a79414319
10 files changed
+355
-293
No files matched your search
@@ -37,7 +37,7 @@ export default function Drawer({
|
||||
isCircle,
|
||||
menuPosition = 'bottom',
|
||||
children,
|
||||
CircleNum,
|
||||
CircleNum = 8,
|
||||
isShadowHideModal = true,
|
||||
header,
|
||||
title,
|
||||
@@ -48,7 +48,6 @@ export default function Drawer({
|
||||
|
||||
const anim = useRef(new Animated.Value(0)).current
|
||||
|
||||
/* ================== 同步外部 visible ================== */
|
||||
useEffect(() => {
|
||||
if (visible) {
|
||||
setInnerVisible(true)
|
||||
@@ -59,7 +58,6 @@ export default function Drawer({
|
||||
}
|
||||
}, [visible])
|
||||
|
||||
/* ================== 布局样式 ================== */
|
||||
useEffect(() => {
|
||||
switch (menuPosition) {
|
||||
case 'left':
|
||||
@@ -207,8 +205,9 @@ export default function Drawer({
|
||||
</TouchableWithoutFeedback>
|
||||
|
||||
{/* Drawer */}
|
||||
<View style={drawerMenuBox}>
|
||||
<View style={drawerMenuBox} pointerEvents="box-none">
|
||||
<Animated.View
|
||||
pointerEvents="box-none"
|
||||
style={[
|
||||
styles.container,
|
||||
{
|
||||
|
||||
@@ -33,7 +33,6 @@ export default function LucideIcon({
|
||||
return <IconComponent size={size} color={color} strokeWidth={strokeWidth} style={style} className={className} />
|
||||
}
|
||||
|
||||
// clickable 为 true,包 Pressable
|
||||
return (
|
||||
<Pressable onPress={onPress} style={style} className={className}>
|
||||
<IconComponent size={size} color={color} strokeWidth={strokeWidth} />
|
||||
|
||||
Reference in new issue
Block a user