interface.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.uploadListProps = uploadListProps;
  6. exports.uploadProps = uploadProps;
  7. function uploadProps() {
  8. return {
  9. capture: [Boolean, String],
  10. type: String,
  11. name: String,
  12. defaultFileList: Array,
  13. fileList: Array,
  14. action: [String, Function],
  15. directory: {
  16. type: Boolean,
  17. default: undefined
  18. },
  19. data: [Object, Function],
  20. method: String,
  21. headers: Object,
  22. showUploadList: {
  23. type: [Boolean, Object],
  24. default: undefined
  25. },
  26. multiple: {
  27. type: Boolean,
  28. default: undefined
  29. },
  30. accept: String,
  31. beforeUpload: Function,
  32. onChange: Function,
  33. 'onUpdate:fileList': Function,
  34. onDrop: Function,
  35. listType: String,
  36. onPreview: Function,
  37. onDownload: Function,
  38. onReject: Function,
  39. onRemove: Function,
  40. /** @deprecated Please use `onRemove` directly */
  41. remove: Function,
  42. supportServerRender: {
  43. type: Boolean,
  44. default: undefined
  45. },
  46. disabled: {
  47. type: Boolean,
  48. default: undefined
  49. },
  50. prefixCls: String,
  51. customRequest: Function,
  52. withCredentials: {
  53. type: Boolean,
  54. default: undefined
  55. },
  56. openFileDialogOnClick: {
  57. type: Boolean,
  58. default: undefined
  59. },
  60. locale: {
  61. type: Object,
  62. default: undefined
  63. },
  64. id: String,
  65. previewFile: Function,
  66. /** @deprecated Please use `beforeUpload` directly */
  67. transformFile: Function,
  68. iconRender: Function,
  69. isImageUrl: Function,
  70. progress: Object,
  71. itemRender: Function,
  72. /** Config max count of `fileList`. Will replace current one when `maxCount` is 1 */
  73. maxCount: Number,
  74. height: [Number, String],
  75. removeIcon: Function,
  76. downloadIcon: Function,
  77. previewIcon: Function
  78. };
  79. }
  80. function uploadListProps() {
  81. return {
  82. listType: String,
  83. onPreview: Function,
  84. onDownload: Function,
  85. onRemove: Function,
  86. items: Array,
  87. progress: Object,
  88. prefixCls: String,
  89. showRemoveIcon: {
  90. type: Boolean,
  91. default: undefined
  92. },
  93. showDownloadIcon: {
  94. type: Boolean,
  95. default: undefined
  96. },
  97. showPreviewIcon: {
  98. type: Boolean,
  99. default: undefined
  100. },
  101. removeIcon: Function,
  102. downloadIcon: Function,
  103. previewIcon: Function,
  104. locale: {
  105. type: Object,
  106. default: undefined
  107. },
  108. previewFile: Function,
  109. iconRender: Function,
  110. isImageUrl: Function,
  111. appendAction: Function,
  112. appendActionVisible: {
  113. type: Boolean,
  114. default: undefined
  115. },
  116. itemRender: Function
  117. };
  118. }