123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.uploadListProps = uploadListProps;
- exports.uploadProps = uploadProps;
- function uploadProps() {
- return {
- capture: [Boolean, String],
- type: String,
- name: String,
- defaultFileList: Array,
- fileList: Array,
- action: [String, Function],
- directory: {
- type: Boolean,
- default: undefined
- },
- data: [Object, Function],
- method: String,
- headers: Object,
- showUploadList: {
- type: [Boolean, Object],
- default: undefined
- },
- multiple: {
- type: Boolean,
- default: undefined
- },
- accept: String,
- beforeUpload: Function,
- onChange: Function,
- 'onUpdate:fileList': Function,
- onDrop: Function,
- listType: String,
- onPreview: Function,
- onDownload: Function,
- onReject: Function,
- onRemove: Function,
- /** @deprecated Please use `onRemove` directly */
- remove: Function,
- supportServerRender: {
- type: Boolean,
- default: undefined
- },
- disabled: {
- type: Boolean,
- default: undefined
- },
- prefixCls: String,
- customRequest: Function,
- withCredentials: {
- type: Boolean,
- default: undefined
- },
- openFileDialogOnClick: {
- type: Boolean,
- default: undefined
- },
- locale: {
- type: Object,
- default: undefined
- },
- id: String,
- previewFile: Function,
- /** @deprecated Please use `beforeUpload` directly */
- transformFile: Function,
- iconRender: Function,
- isImageUrl: Function,
- progress: Object,
- itemRender: Function,
- /** Config max count of `fileList`. Will replace current one when `maxCount` is 1 */
- maxCount: Number,
- height: [Number, String],
- removeIcon: Function,
- downloadIcon: Function,
- previewIcon: Function
- };
- }
- function uploadListProps() {
- return {
- listType: String,
- onPreview: Function,
- onDownload: Function,
- onRemove: Function,
- items: Array,
- progress: Object,
- prefixCls: String,
- showRemoveIcon: {
- type: Boolean,
- default: undefined
- },
- showDownloadIcon: {
- type: Boolean,
- default: undefined
- },
- showPreviewIcon: {
- type: Boolean,
- default: undefined
- },
- removeIcon: Function,
- downloadIcon: Function,
- previewIcon: Function,
- locale: {
- type: Object,
- default: undefined
- },
- previewFile: Function,
- iconRender: Function,
- isImageUrl: Function,
- appendAction: Function,
- appendActionVisible: {
- type: Boolean,
- default: undefined
- },
- itemRender: Function
- };
- }
|