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) ? (