interface.js 1011 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. export const uploadProps = () => {
  2. return {
  3. capture: [Boolean, String],
  4. multipart: {
  5. type: Boolean,
  6. default: undefined
  7. },
  8. name: String,
  9. disabled: {
  10. type: Boolean,
  11. default: undefined
  12. },
  13. componentTag: String,
  14. action: [String, Function],
  15. method: String,
  16. directory: {
  17. type: Boolean,
  18. default: undefined
  19. },
  20. data: [Object, Function],
  21. headers: Object,
  22. accept: String,
  23. multiple: {
  24. type: Boolean,
  25. default: undefined
  26. },
  27. onBatchStart: Function,
  28. onReject: Function,
  29. onStart: Function,
  30. onError: Function,
  31. onSuccess: Function,
  32. onProgress: Function,
  33. beforeUpload: Function,
  34. customRequest: Function,
  35. withCredentials: {
  36. type: Boolean,
  37. default: undefined
  38. },
  39. openFileDialogOnClick: {
  40. type: Boolean,
  41. default: undefined
  42. },
  43. prefixCls: String,
  44. id: String,
  45. onMouseenter: Function,
  46. onMouseleave: Function,
  47. onClick: Function
  48. };
  49. };