/**
 * tdesign v0.41.7
 * (c) 2022 tdesign
 * @license MIT
 */

var props = {
  accept: {
    type: String,
    "default": ""
  },
  action: {
    type: String,
    "default": ""
  },
  allowUploadDuplicateFile: Boolean,
  autoUpload: {
    type: Boolean,
    "default": true
  },
  beforeUpload: {
    type: Function
  },
  data: {
    type: Object
  },
  "default": {
    type: [String, Function]
  },
  disabled: Boolean,
  draggable: Boolean,
  fileListDisplay: {
    type: Function
  },
  files: {
    type: Array
  },
  defaultFiles: {
    type: Array
  },
  format: {
    type: Function
  },
  formatResponse: {
    type: Function
  },
  headers: {
    type: Object
  },
  isBatchUpload: Boolean,
  max: {
    type: Number,
    "default": 0
  },
  method: {
    type: String,
    "default": "POST",
    validator: function validator(val) {
      if (!val) return true;
      return ["POST", "GET", "PUT", "OPTION", "PATCH", "post", "get", "put", "option", "patch"].includes(val);
    }
  },
  multiple: Boolean,
  name: {
    type: String,
    "default": "file"
  },
  placeholder: {
    type: String,
    "default": ""
  },
  requestMethod: {
    type: Function
  },
  showUploadProgress: {
    type: Boolean,
    "default": true
  },
  sizeLimit: {
    type: [Number, Object]
  },
  theme: {
    type: String,
    "default": "file",
    validator: function validator(val) {
      if (!val) return true;
      return ["custom", "file", "file-input", "file-flow", "image", "image-flow"].includes(val);
    }
  },
  tips: {
    type: String,
    "default": ""
  },
  trigger: {
    type: [String, Function]
  },
  uploadAllFilesInOneRequest: Boolean,
  useMockProgress: {
    type: Boolean,
    "default": true
  },
  withCredentials: Boolean,
  onCancelUpload: Function,
  onChange: Function,
  onDragenter: Function,
  onDragleave: Function,
  onFail: Function,
  onPreview: Function,
  onProgress: Function,
  onRemove: Function,
  onSelectChange: Function,
  onSuccess: Function
};

export { props as default };
//# sourceMappingURL=props.js.map
