@ccs-ui/rc-pro 2.5.1-beta.1 → 2.5.1-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/docs-dist/404.html +2 -2
  2. package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.0d2859f4.async.js +1 -0
  3. package/docs-dist/guide/index.html +2 -2
  4. package/docs-dist/index.html +2 -2
  5. package/docs-dist/{meta__docs.323e37cb.async.js → meta__docs.630022c0.async.js} +1 -1
  6. package/docs-dist/{meta__packages.5292deb7.async.js → meta__packages.a94d28b2.async.js} +26 -18
  7. package/docs-dist/plugins/index.html +2 -2
  8. package/docs-dist/{preload_helper.38206a31.js → preload_helper.a1fcd486.js} +1 -1
  9. package/docs-dist/rc-pro/atom/_api/enumerations/DataEvent.md/index.html +2 -2
  10. package/docs-dist/rc-pro/atom/_api/index.md/index.html +2 -2
  11. package/docs-dist/rc-pro/atom/_api/interfaces/AtomCheckboxApiProps.md/index.html +2 -2
  12. package/docs-dist/rc-pro/atom/_api/interfaces/AtomCheckboxProps.md/index.html +2 -2
  13. package/docs-dist/rc-pro/atom/_api/interfaces/AtomEllipsisProps.md/index.html +2 -2
  14. package/docs-dist/rc-pro/atom/_api/interfaces/AtomFullScreenProps.md/index.html +2 -2
  15. package/docs-dist/rc-pro/atom/_api/interfaces/AtomLoadingProps.md/index.html +2 -2
  16. package/docs-dist/rc-pro/atom/_api/interfaces/AtomMultiStateProps.md/index.html +2 -2
  17. package/docs-dist/rc-pro/atom/_api/interfaces/ResizeSize.md/index.html +2 -2
  18. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownInstance.md/index.html +2 -2
  19. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownProps.md/index.html +2 -2
  20. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterInstance.md/index.html +2 -2
  21. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterProps.md/index.html +2 -2
  22. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItem.md/index.html +2 -2
  23. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItems.md/index.html +2 -2
  24. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomOperationProps.md/index.html +2 -2
  25. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomPageRequestProps.md/index.html +2 -2
  26. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomResizeProps.md/index.html +2 -2
  27. package/docs-dist/rc-pro/atom/_api/type-aliases/AtomTitleProps.md/index.html +2 -2
  28. package/docs-dist/rc-pro/atom/_api/type-aliases/TableEventHandle.md/index.html +2 -2
  29. package/docs-dist/rc-pro/button/_api/index.md/index.html +2 -2
  30. package/docs-dist/rc-pro/button/_api/interfaces/ButtonGroupProps.md/index.html +2 -2
  31. package/docs-dist/rc-pro/button/_api/interfaces/DropdownProps.md/index.html +2 -2
  32. package/docs-dist/rc-pro/button/_api/interfaces/GroupButtonItem.md/index.html +2 -2
  33. package/docs-dist/rc-pro/button/_api/type-aliases/ButtonProps.md/index.html +2 -2
  34. package/docs-dist/rc-pro/button/_api/type-aliases/DropdownClick.md/index.html +2 -2
  35. package/docs-dist/rc-pro/button/_api/type-aliases/DropdownMenuItemType.md/index.html +2 -2
  36. package/docs-dist/rc-pro/button/_api/type-aliases/GroupClick.md/index.html +2 -2
  37. package/docs-dist/rc-pro/cascader/_api/index.md/index.html +2 -2
  38. package/docs-dist/rc-pro/cascader/_api/type-aliases/ApiCascaderProps.md/index.html +2 -2
  39. package/docs-dist/rc-pro/context/_api/index.md/index.html +2 -2
  40. package/docs-dist/rc-pro/context/_api/type-aliases/AppConfigType.md/index.html +2 -2
  41. package/docs-dist/rc-pro/context/_api/type-aliases/AppFieldNames.md/index.html +2 -2
  42. package/docs-dist/rc-pro/context/_api/type-aliases/FnContextType.md/index.html +2 -2
  43. package/docs-dist/rc-pro/context/_api/type-aliases/PageContextType.md/index.html +2 -2
  44. package/docs-dist/rc-pro/context/_api/type-aliases/PageFieldNames.md/index.html +2 -2
  45. package/docs-dist/rc-pro/date-picker/_api/index.md/index.html +2 -2
  46. package/docs-dist/rc-pro/date-picker/_api/type-aliases/DatePickerProps.md/index.html +2 -2
  47. package/docs-dist/rc-pro/date-picker/_api/type-aliases/RangePickerProps.md/index.html +2 -2
  48. package/docs-dist/rc-pro/dialog/_api/index.md/index.html +2 -2
  49. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogContextType.md/index.html +2 -2
  50. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogDrawer.md/index.html +2 -2
  51. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogInterface.md/index.html +2 -2
  52. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogModal.md/index.html +2 -2
  53. package/docs-dist/rc-pro/dialog/_api/interfaces/DialogProps.md/index.html +2 -2
  54. package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogButtonsProps.md/index.html +2 -2
  55. package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogDrawerProps.md/index.html +2 -2
  56. package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogModalProps.md/index.html +2 -2
  57. package/docs-dist/rc-pro/dialog/_api/type-aliases/OkBtnProps.md/index.html +2 -2
  58. package/docs-dist/rc-pro/dialog/_api/type-aliases/OkEvent.md/index.html +2 -2
  59. package/docs-dist/rc-pro/dialog/_api/type-aliases/Service.md/index.html +2 -2
  60. package/docs-dist/rc-pro/editor/_api/index.md/index.html +2 -2
  61. package/docs-dist/rc-pro/editor/_api/type-aliases/EditorCodeProps.md/index.html +2 -2
  62. package/docs-dist/rc-pro/editor/_api/type-aliases/EditorRichProps.md/index.html +2 -2
  63. package/docs-dist/rc-pro/editor/_api/type-aliases/LexicalEditorBaseProps.md/index.html +2 -2
  64. package/docs-dist/rc-pro/editor/_api/type-aliases/RichImageUpload.md/index.html +2 -2
  65. package/docs-dist/rc-pro/form/_api/index.md/index.html +2 -2
  66. package/docs-dist/rc-pro/form/_api/type-aliases/FormItem.md/index.html +2 -2
  67. package/docs-dist/rc-pro/form/_api/type-aliases/FormItemChildren.md/index.html +2 -2
  68. package/docs-dist/rc-pro/form/_api/type-aliases/FormItemProps.md/index.html +2 -2
  69. package/docs-dist/rc-pro/form/_api/type-aliases/FormListProps.md/index.html +2 -2
  70. package/docs-dist/rc-pro/form/_api/type-aliases/ListItemBtnProps.md/index.html +2 -2
  71. package/docs-dist/rc-pro/form/_api/type-aliases/RenderItem.md/index.html +2 -2
  72. package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemButton.md/index.html +2 -2
  73. package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemProps.md/index.html +2 -2
  74. package/docs-dist/rc-pro/form/_api/type-aliases/RuleType.md/index.html +2 -2
  75. package/docs-dist/rc-pro/form/_api/type-aliases/ShowValidateEvent.md/index.html +2 -2
  76. package/docs-dist/rc-pro/index.html +2 -2
  77. package/docs-dist/rc-pro/index.md/index.html +2 -2
  78. package/docs-dist/rc-pro/page-layout/_api/index.md/index.html +2 -2
  79. package/docs-dist/rc-pro/page-layout/_api/interfaces/KeepAliveTabsProps.md/index.html +2 -2
  80. package/docs-dist/rc-pro/page-layout/_api/interfaces/SinglePageProps.md/index.html +2 -2
  81. package/docs-dist/rc-pro/page-layout/_api/type-aliases/MenuType.md/index.html +2 -2
  82. package/docs-dist/rc-pro/pro-table/_api/index.md/index.html +2 -2
  83. package/docs-dist/rc-pro/pro-table/_api/interfaces/ProTableProps.md/index.html +2 -2
  84. package/docs-dist/rc-pro/pro-table/_api/interfaces/TableInstance.md/index.html +2 -2
  85. package/docs-dist/rc-pro/pro-table/_api/interfaces/TableProps.md/index.html +2 -2
  86. package/docs-dist/rc-pro/pro-table/_api/type-aliases/LeafVerify.md/index.html +2 -2
  87. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumn.md/index.html +2 -2
  88. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumns.md/index.html +2 -2
  89. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableData.md/index.html +2 -2
  90. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItems.md/index.html +2 -2
  91. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableInstanceRef.md/index.html +2 -2
  92. package/docs-dist/rc-pro/pro-table/_api/type-aliases/TreeInstance.md/index.html +2 -2
  93. package/docs-dist/rc-pro/pro-tabs/_api/index.md/index.html +2 -2
  94. package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsChangeProps.md/index.html +2 -2
  95. package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsContextType.md/index.html +2 -2
  96. package/docs-dist/rc-pro/pro-tabs/_api/type-aliases/TabProps.md/index.html +2 -2
  97. package/docs-dist/rc-pro/select/_api/index.md/index.html +2 -2
  98. package/docs-dist/rc-pro/select/_api/interfaces/ApiRequestProps.md/index.html +2 -2
  99. package/docs-dist/rc-pro/select/_api/interfaces/RequestType.md/index.html +2 -2
  100. package/docs-dist/rc-pro/select/_api/type-aliases/ApiSelectProps.md/index.html +2 -2
  101. package/docs-dist/rc-pro/select/_api/type-aliases/CacheType.md/index.html +2 -2
  102. package/docs-dist/rc-pro/select/_api/type-aliases/CustomizeSelectProps.md/index.html +2 -2
  103. package/docs-dist/rc-pro/select/_api/type-aliases/ModalSelectProps.md/index.html +2 -2
  104. package/docs-dist/rc-pro/select/_api/type-aliases/SelectChildrenProps.md/index.html +2 -2
  105. package/docs-dist/rc-pro/select/_api/type-aliases/SelectFieldNames.md/index.html +2 -2
  106. package/docs-dist/rc-pro/select/_api/type-aliases/SelectProps.md/index.html +2 -2
  107. package/docs-dist/rc-pro/upload/_api/index.md/index.html +2 -2
  108. package/docs-dist/rc-pro/upload/_api/interfaces/ImageInfo.md/index.html +2 -2
  109. package/docs-dist/rc-pro/upload/_api/type-aliases/FileUploadList.md/index.html +2 -2
  110. package/docs-dist/rc-pro/upload/_api/type-aliases/UploadImageProps.md/index.html +2 -2
  111. package/docs-dist/rc-pro/upload/_api/type-aliases/UploadProps.md/index.html +2 -2
  112. package/docs-dist/rc-pro/upload/_api/type-aliases/UploadRequest.md/index.html +2 -2
  113. package/docs-dist/rc-pro/water-mark/_api/index.md/index.html +2 -2
  114. package/docs-dist/rc-pro/water-mark/_api/type-aliases/WaterMarkProps.md/index.html +2 -2
  115. package/docs-dist/rc-pros/atom/index.html +2 -2
  116. package/docs-dist/rc-pros/auth/index.html +2 -2
  117. package/docs-dist/rc-pros/button/index.html +2 -2
  118. package/docs-dist/rc-pros/cascader/index.html +2 -2
  119. package/docs-dist/rc-pros/date-picker/index.html +2 -2
  120. package/docs-dist/rc-pros/dialog/index.html +2 -2
  121. package/docs-dist/rc-pros/editor/index.html +2 -2
  122. package/docs-dist/rc-pros/form/index.html +2 -2
  123. package/docs-dist/rc-pros/index.html +2 -2
  124. package/docs-dist/rc-pros/page-layout/index.html +2 -2
  125. package/docs-dist/rc-pros/pro-table/index.html +2 -2
  126. package/docs-dist/rc-pros/pro-tabs/index.html +2 -2
  127. package/docs-dist/rc-pros/result/index.html +2 -2
  128. package/docs-dist/rc-pros/select/index.html +2 -2
  129. package/docs-dist/rc-pros/time-picker/index.html +2 -2
  130. package/docs-dist/rc-pros/upload/index.html +2 -2
  131. package/docs-dist/rc-pros/water-mark/index.html +2 -2
  132. package/docs-dist/{umi.28f14bf8.js → umi.b9ddf9bd.js} +1 -1
  133. package/docs-dist/utils/index.html +2 -2
  134. package/docs-dist/~demos/:id/index.html +2 -2
  135. package/docs-dist/~demos/atom-demo-base/index.html +2 -2
  136. package/docs-dist/~demos/atom-demo-checkbox/index.html +2 -2
  137. package/docs-dist/~demos/atom-demo-ellipsis/index.html +2 -2
  138. package/docs-dist/~demos/atom-demo-filter/index.html +2 -2
  139. package/docs-dist/~demos/atom-demo-state/index.html +2 -2
  140. package/docs-dist/~demos/auth-demo-basic/index.html +2 -2
  141. package/docs-dist/~demos/button-demo-button/index.html +2 -2
  142. package/docs-dist/~demos/button-demo-group/index.html +2 -2
  143. package/docs-dist/~demos/cascader-demo-basic/index.html +2 -2
  144. package/docs-dist/~demos/cascader-demo-cache/index.html +2 -2
  145. package/docs-dist/~demos/date-picker-demo-basic/index.html +2 -2
  146. package/docs-dist/~demos/date-picker-demo-range/index.html +2 -2
  147. package/docs-dist/~demos/dialog-demo-demos/index.html +2 -2
  148. package/docs-dist/~demos/dialog-demo-form/index.html +2 -2
  149. package/docs-dist/~demos/dialog-demo-prompt/index.html +2 -2
  150. package/docs-dist/~demos/editor-demo-demos/index.html +2 -2
  151. package/docs-dist/~demos/editor-demo-rich/index.html +2 -2
  152. package/docs-dist/~demos/form-demo-demos/index.html +2 -2
  153. package/docs-dist/~demos/packages-utils-src-demo-demos/index.html +2 -2
  154. package/docs-dist/~demos/pro-table-demo-basic/index.html +2 -2
  155. package/docs-dist/~demos/pro-table-demo-cascade/index.html +2 -2
  156. package/docs-dist/~demos/pro-table-demo-extra/index.html +2 -2
  157. package/docs-dist/~demos/pro-table-demo-filter/index.html +2 -2
  158. package/docs-dist/~demos/pro-table-demo-fixed/index.html +2 -2
  159. package/docs-dist/~demos/pro-table-demo-refresh/index.html +2 -2
  160. package/docs-dist/~demos/pro-table-demo-selection/index.html +2 -2
  161. package/docs-dist/~demos/pro-table-demo-show-depend/index.html +2 -2
  162. package/docs-dist/~demos/pro-table-demo-tree-async/index.html +2 -2
  163. package/docs-dist/~demos/pro-tabs-demo-basic/index.html +2 -2
  164. package/docs-dist/~demos/pro-tabs-demo-tab/index.html +2 -2
  165. package/docs-dist/~demos/result-demo-basic/index.html +2 -2
  166. package/docs-dist/~demos/select-demo-api/index.html +2 -2
  167. package/docs-dist/~demos/select-demo-basic/index.html +2 -2
  168. package/docs-dist/~demos/select-demo-customize/index.html +2 -2
  169. package/docs-dist/~demos/select-demo-customize-label/index.html +2 -2
  170. package/docs-dist/~demos/time-picker-demo-basic/index.html +2 -2
  171. package/docs-dist/~demos/upload-demo-basic/index.html +2 -2
  172. package/docs-dist/~demos/upload-demo-image/index.html +2 -2
  173. package/docs-dist/~demos/water-mark-demo-basic/index.html +2 -2
  174. package/es/atom/ellipsis.d.ts +1 -1
  175. package/es/atom/index.d.ts +1 -1
  176. package/es/dialog/button.d.ts +1 -1
  177. package/es/upload/_api.d.ts +1 -1
  178. package/es/upload/index.d.ts +1 -1
  179. package/es/upload/index.js +5 -3
  180. package/es/upload/upload-image.d.ts +1 -1
  181. package/es/upload/upload-image.js +6 -4
  182. package/package.json +1 -1
  183. package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.b381d9f2.async.js +0 -1
@@ -15,7 +15,7 @@ type FileValue = {
15
15
  /** 文件url */
16
16
  url?: string;
17
17
  };
18
- export type UploadProps = Pick<AntUploadProps, 'maxCount' | 'data' | 'multiple' | 'accept' | 'name' | 'headers' | 'itemRender' | 'listType'> & {
18
+ export type UploadProps = Pick<AntUploadProps, 'maxCount' | 'data' | 'multiple' | 'accept' | 'name' | 'headers' | 'itemRender' | 'listType' | 'disabled'> & {
19
19
  /** 最大文件数 */
20
20
  maxFileSize?: number;
21
21
  /** 上传按钮文本 */
@@ -2,7 +2,7 @@ import { FileUploadList, UploadProps } from './_api';
2
2
  import { ImageUpload } from './upload-image';
3
3
  /** 生成图片默认值 */
4
4
  export declare function uploadDefaultFlies(value: UploadProps['value']): FileUploadList[];
5
- declare function CustomUpload({ value, uploadText, maxCount, maxFileSize, uploadRequest, onChange, ...otherProps }: UploadProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function CustomUpload({ value, disabled, uploadText, maxCount, maxFileSize, uploadRequest, onChange, ...otherProps }: UploadProps): import("react/jsx-runtime").JSX.Element;
6
6
  declare namespace CustomUpload {
7
7
  var Image: typeof ImageUpload;
8
8
  var displayName: string;
@@ -1,4 +1,4 @@
1
- var _excluded = ["value", "uploadText", "maxCount", "maxFileSize", "uploadRequest", "onChange"];
1
+ var _excluded = ["value", "disabled", "uploadText", "maxCount", "maxFileSize", "uploadRequest", "onChange"];
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -62,6 +62,7 @@ export function uploadDefaultFlies(value) {
62
62
  }
63
63
  function CustomUpload(_ref) {
64
64
  var value = _ref.value,
65
+ disabled = _ref.disabled,
65
66
  uploadText = _ref.uploadText,
66
67
  _ref$maxCount = _ref.maxCount,
67
68
  maxCount = _ref$maxCount === void 0 ? 1 : _ref$maxCount,
@@ -151,16 +152,17 @@ function CustomUpload(_ref) {
151
152
  };
152
153
  }();
153
154
  return /*#__PURE__*/_jsx(Upload, _objectSpread(_objectSpread({
154
- customRequest: onCustomRequest,
155
155
  name: "fileName",
156
+ disabled: disabled,
156
157
  onChange: handleOnChange,
157
158
  beforeUpload: beforeUpload,
159
+ customRequest: onCustomRequest,
158
160
  fileList: files,
159
161
  maxCount: maxCount
160
162
  }, otherProps), {}, {
161
163
  children: /*#__PURE__*/_jsx(Button, {
162
164
  icon: /*#__PURE__*/_jsx(UploadOutlined, {}),
163
- disabled: files.length >= maxCount,
165
+ disabled: files.length >= maxCount || disabled,
164
166
  children: uploadText
165
167
  })
166
168
  }));
@@ -1,2 +1,2 @@
1
1
  import { UploadImageProps } from './_api';
2
- export declare function ImageUpload({ uploadText, maxCount, maxFileSize, crop, value, uploadRequest, onChange, onImageInfo, accept, ...otherProps }: UploadImageProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ImageUpload({ uploadText, maxCount, maxFileSize, crop, value, disabled, uploadRequest, onChange, onImageInfo, accept, ...otherProps }: UploadImageProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["uploadText", "maxCount", "maxFileSize", "crop", "value", "uploadRequest", "onChange", "onImageInfo", "accept"];
2
+ var _excluded = ["uploadText", "maxCount", "maxFileSize", "crop", "value", "disabled", "uploadRequest", "onChange", "onImageInfo", "accept"];
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -48,6 +48,7 @@ export function ImageUpload(_ref) {
48
48
  maxFileSize = _ref$maxFileSize === void 0 ? 10 : _ref$maxFileSize,
49
49
  crop = _ref.crop,
50
50
  value = _ref.value,
51
+ disabled = _ref.disabled,
51
52
  uploadRequest = _ref.uploadRequest,
52
53
  onChange = _ref.onChange,
53
54
  onImageInfo = _ref.onImageInfo,
@@ -209,17 +210,18 @@ export function ImageUpload(_ref) {
209
210
  };
210
211
  }();
211
212
  var renderUpload = /*#__PURE__*/_jsx(Upload, _objectSpread(_objectSpread({
212
- customRequest: onCustomRequest,
213
+ disabled: disabled,
213
214
  name: "fileName",
214
215
  onChange: handleOnChange,
216
+ onPreview: handlePreview,
215
217
  beforeUpload: beforeUpload,
218
+ customRequest: onCustomRequest,
216
219
  fileList: files,
217
220
  maxCount: maxCount,
218
221
  listType: "picture-card",
219
- onPreview: handlePreview,
220
222
  accept: accept
221
223
  }, otherProps), {}, {
222
- children: files.length < maxCount && /*#__PURE__*/_jsxs("div", {
224
+ children: files.length < maxCount && !disabled && /*#__PURE__*/_jsxs("div", {
223
225
  children: [/*#__PURE__*/_jsx(PlusOutlined, {}), /*#__PURE__*/_jsx("div", {
224
226
  style: {
225
227
  marginTop: 8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.5.1-beta.1",
3
+ "version": "2.5.1-beta.3",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkccs_ui=self.webpackChunkccs_ui||[]).push([[1276],{49933:function(l,a,d){d.r(a);var s=d(94916),r=d(92938),o=d(49117),i=d(60844),p=d(94202),v=d(82535),n=d(13475),I=d(10661),t=d(432),u=d(24881),c=d(75271),_=d(56180),e=d(52676);function x(){return(0,e.jsx)(t.dY,{children:(0,e.jsx)(c.Suspense,{fallback:(0,e.jsx)(u.Z,{}),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(t.rU,{to:"/rc-pro/index.md",children:(0,e.jsx)("strong",{children:_.texts[0].value})}),(0,e.jsxs)("div",{className:"markdown",children:[(0,e.jsx)("hr",{}),(0,e.jsxs)("p",{children:[(0,e.jsx)(t.rU,{to:"/rc-pro/index.md",children:_.texts[1].value}),_.texts[2].value,(0,e.jsx)(t.rU,{to:"/rc-pro/upload/_api/index.md",children:_.texts[3].value}),_.texts[4].value]}),(0,e.jsxs)("h1",{id:"\u7C7B\u578B\u522B\u540D-uploadprops",children:[(0,e.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u7C7B\u578B\u522B\u540D-uploadprops",children:(0,e.jsx)("span",{className:"icon icon-link"})}),"\u7C7B\u578B\u522B\u540D: UploadProps"]}),(0,e.jsx)("blockquote",{children:(0,e.jsxs)("p",{children:[(0,e.jsx)("strong",{children:_.texts[5].value}),_.texts[6].value,(0,e.jsx)("code",{children:_.texts[7].value}),_.texts[8].value,(0,e.jsx)("code",{children:_.texts[9].value}),_.texts[10].value,(0,e.jsx)("code",{children:_.texts[11].value}),_.texts[12].value,(0,e.jsx)("code",{children:_.texts[13].value}),_.texts[14].value,(0,e.jsx)("code",{children:_.texts[15].value}),_.texts[16].value,(0,e.jsx)("code",{children:_.texts[17].value}),_.texts[18].value,(0,e.jsx)("code",{children:_.texts[19].value}),_.texts[20].value,(0,e.jsx)("code",{children:_.texts[21].value}),_.texts[22].value,(0,e.jsx)("code",{children:_.texts[23].value}),_.texts[24].value,(0,e.jsx)("code",{children:_.texts[25].value}),_.texts[26].value,(0,e.jsx)("code",{children:_.texts[27].value})]})}),(0,e.jsxs)("h2",{id:"\u7C7B\u578B\u58F0\u660E",children:[(0,e.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#\u7C7B\u578B\u58F0\u660E",children:(0,e.jsx)("span",{className:"icon icon-link"})}),"\u7C7B\u578B\u58F0\u660E"]}),(0,e.jsxs)(n.Z,{children:[(0,e.jsx)("thead",{children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("th",{children:_.texts[28].value}),(0,e.jsx)("th",{children:_.texts[29].value}),(0,e.jsx)("th",{children:_.texts[30].value})]})}),(0,e.jsxs)("tbody",{children:[(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[31].value})}),(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[32].value})}),(0,e.jsx)("td",{children:_.texts[33].value})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[34].value})}),(0,e.jsxs)("td",{children:[_.texts[35].value,(0,e.jsx)("code",{children:_.texts[36].value}),_.texts[37].value,(0,e.jsx)("code",{children:_.texts[38].value})]}),(0,e.jsx)("td",{children:_.texts[39].value})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[40].value})}),(0,e.jsx)("td",{children:(0,e.jsx)(t.rU,{to:"/rc-pro/upload/_api/type-aliases/UploadRequest.md",children:(0,e.jsx)("code",{children:_.texts[41].value})})}),(0,e.jsx)("td",{children:_.texts[42].value})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[43].value})}),(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[44].value})}),(0,e.jsx)("td",{children:_.texts[45].value})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[46].value})}),(0,e.jsxs)("td",{children:[(0,e.jsx)("code",{children:_.texts[47].value}),_.texts[48].value,(0,e.jsx)("code",{children:_.texts[49].value}),_.texts[50].value,(0,e.jsx)("code",{children:_.texts[51].value}),_.texts[52].value]}),(0,e.jsx)("td",{children:_.texts[53].value})]})]})]})]})]})})})}a.default=x},56180:function(l,a,d){d.r(a),d.d(a,{texts:function(){return s}});const s=[{value:"API\u6587\u6863",paraId:0},{value:"API\u6587\u6863",paraId:1},{value:" / ",paraId:2},{value:"upload/_api",paraId:3},{value:" / UploadProps",paraId:2},{value:"UploadProps",paraId:4,tocIndex:0},{value:" = ",paraId:4,tocIndex:0},{value:"Pick",paraId:4,tocIndex:0},{value:"<",paraId:4,tocIndex:0},{value:"AntUploadProps",paraId:4,tocIndex:0},{value:", ",paraId:4,tocIndex:0},{value:'"maxCount"',paraId:4,tocIndex:0},{value:" | ",paraId:4,tocIndex:0},{value:'"data"',paraId:4,tocIndex:0},{value:" | ",paraId:4,tocIndex:0},{value:'"multiple"',paraId:4,tocIndex:0},{value:" | ",paraId:4,tocIndex:0},{value:'"accept"',paraId:4,tocIndex:0},{value:" | ",paraId:4,tocIndex:0},{value:'"name"',paraId:4,tocIndex:0},{value:" | ",paraId:4,tocIndex:0},{value:'"headers"',paraId:4,tocIndex:0},{value:" | ",paraId:4,tocIndex:0},{value:'"itemRender"',paraId:4,tocIndex:0},{value:" | ",paraId:4,tocIndex:0},{value:'"listType"',paraId:4,tocIndex:0},{value:"> & ",paraId:4,tocIndex:0},{value:"object",paraId:4,tocIndex:0},{value:"\u540D\u79F0",paraId:5,tocIndex:1},{value:"\u7C7B\u578B",paraId:5,tocIndex:1},{value:"\u63CF\u8FF0",paraId:5,tocIndex:1},{value:"maxFileSize?",paraId:5,tocIndex:1},{value:"number",paraId:5,tocIndex:1},{value:"\u6700\u5927\u6587\u4EF6\u6570",paraId:5,tocIndex:1},{value:"onChange()?",paraId:5,tocIndex:1},{value:"(",paraId:5,tocIndex:1},{value:"value",paraId:5,tocIndex:1},{value:") => ",paraId:5,tocIndex:1},{value:"void",paraId:5,tocIndex:1},{value:"\u4E0A\u4F20change\u4E8B\u4EF6",paraId:5,tocIndex:1},{value:"uploadRequest",paraId:5,tocIndex:1},{value:"UploadRequest",paraId:6,tocIndex:1},{value:"\u4E0A\u4F20\u8BF7\u6C42",paraId:5,tocIndex:1},{value:"uploadText?",paraId:5,tocIndex:1},{value:"string",paraId:5,tocIndex:1},{value:"\u4E0A\u4F20\u6309\u94AE\u6587\u672C",paraId:5,tocIndex:1},{value:"value?",paraId:5,tocIndex:1},{value:"string",paraId:5,tocIndex:1},{value:" | ",paraId:5,tocIndex:1},{value:"string",paraId:5,tocIndex:1},{value:"[] | ",paraId:5,tocIndex:1},{value:"FileValue",paraId:5,tocIndex:1},{value:"[]",paraId:5,tocIndex:1},{value:"\u6587\u4EF6id",paraId:5,tocIndex:1}]}}]);