You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7cd08ae
Browse filesBrowse the repository at this point in the historyBrowse files
feat(module:upload): support standalone component (#8203)
* feat(module:upload): support standalone component
* feat(module:upload): support standalone component
* feat(module:upload): support standalone component
Copy file name to clipboardExpand all lines: components/upload/doc/index.en-US.md
+33-33Lines changed: 33 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,39 +23,39 @@ import { NzUploadModule } from 'ng-zorro-antd/upload';
23
23
24
24
> You can consult [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload/wiki) about how to implement server-side upload interface.
25
25
26
-
### nz-upload
27
-
28
-
| Property | Description | Type | Default |
29
-
| --- | --- | --- | --- |
30
-
|`[nzAccept]`| File types that can be accepted. See [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept)|`string`| - |
|`[nzDirectory]`| support uploading the whole directory ([caniuse](https://caniuse.com/#feat=input-file-directory)) |`boolean`|`false`|
33
-
|`[nzBeforeUpload]`| Hook function, which will be executed before uploading. Uploading will be stopped with `false` or an Observable. **Warning: this function is not supported in IE9**. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile, fileList: NzUploadFile[]) => boolean \| Observable<boolean>`| - |
34
-
|`[nzCustomRequest]`| Override for the default XHR behavior allowing for additional customization and the ability to implement your own XMLHttpRequest. NOTICE: Must use `=>` to define the method. |`(item) => Subscription`| - |
35
-
|`[nzData]`| Uploading params or function which can return uploading params. NOTICE: Must use `=>` to define the method. |`Object \| ((file: NzUploadFile) => Object \| Observable<{}>)`| - |
|`[nzFilter]`| Custom filter when choosed file |`UploadFilter[]`| - |
42
-
|`[nzHeaders]`| Set request headers, valid above IE10. NOTICE: Must use `=>` to define the method. |`Object \| ((file: NzUploadFile) => Object \| Observable<{}>)`| - |
43
-
|`[nzListType]`| Built-in stylesheets, support for three types: `text`, `picture` or `picture-card`|`'text' \| 'picture' \| 'picture-card'`|`'text'`|
44
-
|`[nzMultiple]`| Whether to support selected multiple files. `IE10+` supported. You can select multiple files with CTRL holding down while multiple is set to be true |`boolean`|`false`|
45
-
|`[nzName]`| The name of the uploading file |`string`|`'file'`|
46
-
|`[nzShowUploadList]`| Whether to show the default upload list, could be an object to specify `showPreviewIcon`, `showRemoveIcon` and `showDownloadIcon` individually |`boolean \| { showPreviewIcon?: boolean, showRemoveIcon?: boolean, showDownloadIcon?: boolean }`|`true`|
47
-
|`[nzShowButton]`| Show upload button |`boolean`|`true`|
48
-
|`[nzWithCredentials]`| ajax upload with cookie sent |`boolean`|`false`|
49
-
|`[nzOpenFileDialogOnClick]`| click open file dialog |`boolean`|`true`|
50
-
|`[nzPreview]`| A callback function will be executed when the file link or preview icon is clicked. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile) => void`| - |
51
-
|`[nzPreviewFile]`| Customize preview file logic. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile) => Observable<dataURL: string>`| - |
52
-
|`[nzPreviewIsImage]`| Customize the preview file is an image, generally used when the image URL is in a non-standard format. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile) => boolean`| - |
53
-
|`[nzRemove]`| A callback function will be executed when the removing file button is clicked, remove event will be prevented when the return value is `false` or an Observable. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile) => boolean \| Observable<boolean>`| - |
54
-
|`(nzChange)`| A callback function, can be executed when uploading state is changing |`EventEmitter<NzUploadChangeParam>`| - |
55
-
|`[nzDownload]`| Click the method to download the file, pass the method to perform the method logic, do not pass the default jump to the new TAB. |`(file: NzUploadFile) => void`| Jump to new TAB |
|`[nzAccept]`| File types that can be accepted. See [input accept Attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-accept)|`string`| -|
|`[nzDirectory]`| support uploading the whole directory ([caniuse](https://caniuse.com/#feat=input-file-directory)) |`boolean`|`false`|
33
+
|`[nzBeforeUpload]`| Hook function, which will be executed before uploading. Uploading will be stopped with `false` or an Observable. **Warning: this function is not supported in IE9**. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile, fileList: NzUploadFile[]) => boolean \| Observable<boolean>`| -|
34
+
|`[nzCustomRequest]`| Override for the default XHR behavior allowing for additional customization and the ability to implement your own XMLHttpRequest. NOTICE: Must use `=>` to define the method. |`(item) => Subscription`| -|
35
+
|`[nzData]`| Uploading params or function which can return uploading params. NOTICE: Must use `=>` to define the method. |`Object \| ((file: NzUploadFile) => Object \| Observable<{}>)`| -|
|`[nzFilter]`| Custom filter when choosed file |`UploadFilter[]`| -|
42
+
|`[nzHeaders]`| Set request headers, valid above IE10. NOTICE: Must use `=>` to define the method. |`Object \| ((file: NzUploadFile) => Object \| Observable<{}>)`| -|
43
+
|`[nzListType]`| Built-in stylesheets, support for three types: `text`, `picture` or `picture-card`|`'text' \| 'picture' \| 'picture-card'`|`'text'`|
44
+
|`[nzMultiple]`| Whether to support selected multiple files. `IE10+` supported. You can select multiple files with CTRL holding down while multiple is set to be true |`boolean`|`false`|
45
+
|`[nzName]`| The name of the uploading file |`string`|`'file'`|
46
+
|`[nzShowUploadList]`| Whether to show the default upload list, could be an object to specify `showPreviewIcon`, `showRemoveIcon` and `showDownloadIcon` individually |`boolean \| { showPreviewIcon?: boolean, showRemoveIcon?: boolean, showDownloadIcon?: boolean }`|`true`|
47
+
|`[nzShowButton]`| Show upload button |`boolean`|`true`|
48
+
|`[nzWithCredentials]`| ajax upload with cookie sent |`boolean`|`false`|
49
+
|`[nzOpenFileDialogOnClick]`| click open file dialog |`boolean`|`true`|
50
+
|`[nzPreview]`| A callback function will be executed when the file link or preview icon is clicked. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile) => void`| -|
51
+
|`[nzPreviewFile]`| Customize preview file logic. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile) => Observable<dataURL: string>`| -|
52
+
|`[nzPreviewIsImage]`| Customize the preview file is an image, generally used when the image URL is in a non-standard format. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile) => boolean`| -|
53
+
|`[nzRemove]`| A callback function will be executed when the removing file button is clicked, remove event will be prevented when the return value is `false` or an Observable. NOTICE: Must use `=>` to define the method. |`(file: NzUploadFile) => boolean \| Observable<boolean>`| -|
54
+
|`(nzChange)`| A callback function, can be executed when uploading state is changing |`EventEmitter<NzUploadChangeParam>`| -|
55
+
|`[nzDownload]`| Click the method to download the file, pass the method to perform the method logic, do not pass the default jump to the new TAB. |`(file: NzUploadFile) => void`| Jump to new TAB |
0 commit comments