diff --git a/packages/vantui/src/uploader/README.md b/packages/vantui/src/uploader/README.md
index 295d77a8..a7775023 100644
--- a/packages/vantui/src/uploader/README.md
+++ b/packages/vantui/src/uploader/README.md
@@ -78,6 +78,7 @@ import { Uploader } from '@antmjs/vantui'
| onAfterRead | - | _ (
event: ITouchEvent
) => any
_ | - | `false` |
| onOversize | - | _ (
event: ITouchEvent
) => any
_ | - | `false` |
| onClickPreview | - | _ (data: any) => any
_ | - | `false` |
+| onClickUpload | - | _ (
event: ITouchEvent
) => any
_ | - | `false` |
### 样式变量
diff --git a/packages/vantui/src/uploader/index.tsx b/packages/vantui/src/uploader/index.tsx
index d572bf53..5d311046 100644
--- a/packages/vantui/src/uploader/index.tsx
+++ b/packages/vantui/src/uploader/index.tsx
@@ -47,6 +47,7 @@ export function Uploader(props: UploaderProps) {
onAfterRead,
onOversize,
onClickPreview,
+ onClickUpload,
style,
className,
children,
@@ -140,6 +141,7 @@ export function Uploader(props: UploaderProps) {
const startUpload = useCallback(
(event: ITouchEvent) => {
if (disabled) return
+ onClickUpload?.(event)
chooseFile({
accept,
multiple,
@@ -169,6 +171,7 @@ export function Uploader(props: UploaderProps) {
maxCount,
multiple,
onError,
+ onClickUpload,
state.lists.length,
accept,
camera,
diff --git a/packages/vantui/types/uploader.d.ts b/packages/vantui/types/uploader.d.ts
index e90d8c5a..80b5010d 100644
--- a/packages/vantui/types/uploader.d.ts
+++ b/packages/vantui/types/uploader.d.ts
@@ -33,6 +33,7 @@ export interface UploaderProps extends ViewProps {
onAfterRead?: (event: ITouchEvent) => any
onOversize?: (event: ITouchEvent) => any
onClickPreview?: (data: any) => any
+ onClickUpload?: (event: ITouchEvent) => any
}
declare const Uploader: FunctionComponent