Closed 1587315093 closed 1 year ago
Patch coverage: 76.74%
and project coverage change: +0.14%
:tada:
Comparison is base (
c1d4a90
) 91.56% compared to head (3219a63
) 91.70%. Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6378.surge.sh
Deploy PR preview failed.
onTap
由 image-viewer.tsx 入口的props.onClose
传递进去赋值。但
onTap
的类型为 onTap: () => void 而props.onClose
为 onTap?: () => void 是可选的为了兼容必传类型的
onTap
,image-viewer 传递是 写法是传递了个函数,然后在里面执行 props.onClose?.(),感觉可以修改一下类型和传递源一致