From 148634050231e5d05e136d5fe82dce4a77ddb78b Mon Sep 17 00:00:00 2001 From: songchenglin3 <353833373@qq.com> Date: Fri, 13 Sep 2024 18:42:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86ts=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/packages/backtop/backtop.taro.tsx | 3 +-- src/packages/cell/cell.tsx | 1 + src/packages/elevator/elevator.taro.tsx | 4 ++-- src/packages/fixednav/fixednav.taro.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/packages/backtop/backtop.taro.tsx b/src/packages/backtop/backtop.taro.tsx index 7fbb9a3443..821a8e61bd 100644 --- a/src/packages/backtop/backtop.taro.tsx +++ b/src/packages/backtop/backtop.taro.tsx @@ -63,8 +63,7 @@ export const BackTop: FunctionComponent< const [backTop, SetBackTop] = useState(false) const [isTouchStart, setTouchStart] = useState(false) - const systemInfo = useRef({}) - + const systemInfo = useRef({}) useEffect(() => { getSystemInfo().then((res) => { systemInfo.current = res diff --git a/src/packages/cell/cell.tsx b/src/packages/cell/cell.tsx index 6700b89b7c..9281ee7a42 100644 --- a/src/packages/cell/cell.tsx +++ b/src/packages/cell/cell.tsx @@ -12,6 +12,7 @@ export interface CellProps extends BasicComponent { radius: string | number align: 'flex-start' | 'center' | 'flex-end' clickable: boolean + isLast: boolean onClick: (event: React.MouseEvent) => void } diff --git a/src/packages/elevator/elevator.taro.tsx b/src/packages/elevator/elevator.taro.tsx index 9e1aa69d18..e6a5e03cfe 100644 --- a/src/packages/elevator/elevator.taro.tsx +++ b/src/packages/elevator/elevator.taro.tsx @@ -294,8 +294,8 @@ export const Elevator: FunctionComponent< touchStart(event)} - onTouchMove={(event) => touchMove(event)} + onTouchStart={(event) => touchStart(event as any)} + onTouchMove={(event) => touchMove(event as any)} onTouchEnd={touchEnd} style={{ touchAction: 'pan-y' }} > diff --git a/src/packages/fixednav/fixednav.taro.tsx b/src/packages/fixednav/fixednav.taro.tsx index ae59d2b78d..5090d79a7d 100644 --- a/src/packages/fixednav/fixednav.taro.tsx +++ b/src/packages/fixednav/fixednav.taro.tsx @@ -105,7 +105,7 @@ export const FixedNav: FunctionComponent< return ( handleClick(item, event)} + onClick={(event) => handleClick(item, event as any)} key={item.id || index} > {React.isValidElement(item.icon) ? (