@ccs-ui/rc-pro 2.5.0 → 2.5.1-beta.2
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.
- package/docs-dist/404.html +2 -2
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomCheckboxApiProps.md.c9925fec.async.js → docs__rc-pro__atom___api__interfaces__AtomCheckboxApiProps.md.119331d5.async.js} +1 -1
- package/docs-dist/{docs__rc-pro__atom___api__interfaces__AtomCheckboxProps.md.44f4024f.async.js → docs__rc-pro__atom___api__interfaces__AtomCheckboxProps.md.96ead252.async.js} +1 -1
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.0d2859f4.async.js +1 -0
- package/docs-dist/guide/index.html +2 -2
- package/docs-dist/index.html +2 -2
- package/docs-dist/meta__docs.630022c0.async.js +176 -0
- package/docs-dist/{meta__packages.85af824a.async.js → meta__packages.e03a7670.async.js} +75 -52
- package/docs-dist/plugins/index.html +2 -2
- package/docs-dist/{preload_helper.1f08a216.js → preload_helper.a1fcd486.js} +1 -1
- package/docs-dist/rc-pro/atom/_api/enumerations/DataEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomCheckboxApiProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomCheckboxProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomEllipsisProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomFullScreenProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomLoadingProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/AtomMultiStateProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/interfaces/ResizeSize.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomCountdownProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFilterProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItem.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomFormItems.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomOperationProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomPageRequestProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomResizeProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/AtomTitleProps.md/index.html +2 -2
- package/docs-dist/rc-pro/atom/_api/type-aliases/TableEventHandle.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/ButtonGroupProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/DropdownProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/interfaces/GroupButtonItem.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/ButtonProps.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownClick.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/DropdownMenuItemType.md/index.html +2 -2
- package/docs-dist/rc-pro/button/_api/type-aliases/GroupClick.md/index.html +2 -2
- package/docs-dist/rc-pro/cascader/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/cascader/_api/type-aliases/ApiCascaderProps.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/AppConfigType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/AppFieldNames.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/FnContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/PageContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/context/_api/type-aliases/PageFieldNames.md/index.html +2 -2
- package/docs-dist/rc-pro/date-picker/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/DatePickerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/date-picker/_api/type-aliases/RangePickerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogDrawer.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogInterface.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogModal.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/interfaces/DialogProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogButtonsProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogDrawerProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/DialogModalProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/OkBtnProps.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/OkEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/dialog/_api/type-aliases/Service.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorCodeProps.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/EditorRichProps.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/LexicalEditorBaseProps.md/index.html +2 -2
- package/docs-dist/rc-pro/editor/_api/type-aliases/RichImageUpload.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItem.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemChildren.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormItemProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/FormListProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/ListItemBtnProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItem.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemButton.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RenderItemProps.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/RuleType.md/index.html +2 -2
- package/docs-dist/rc-pro/form/_api/type-aliases/ShowValidateEvent.md/index.html +2 -2
- package/docs-dist/rc-pro/index.html +2 -2
- package/docs-dist/rc-pro/index.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/interfaces/KeepAliveTabsProps.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/interfaces/SinglePageProps.md/index.html +2 -2
- package/docs-dist/rc-pro/page-layout/_api/type-aliases/MenuType.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/ProTableProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/interfaces/TableProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/LeafVerify.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumn.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableColumns.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableData.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableFormItems.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TableInstanceRef.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-table/_api/type-aliases/TreeInstance.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsChangeProps.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/interfaces/TabsContextType.md/index.html +2 -2
- package/docs-dist/rc-pro/pro-tabs/_api/type-aliases/TabProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/interfaces/ApiRequestProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/interfaces/RequestType.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/ApiSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/CacheType.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/CustomizeSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/ModalSelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectChildrenProps.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectFieldNames.md/index.html +2 -2
- package/docs-dist/rc-pro/select/_api/type-aliases/SelectProps.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/interfaces/ImageInfo.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/type-aliases/FileUploadList.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadImageProps.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadProps.md/index.html +2 -2
- package/docs-dist/rc-pro/upload/_api/type-aliases/UploadRequest.md/index.html +2 -2
- package/docs-dist/rc-pro/water-mark/_api/index.md/index.html +2 -2
- package/docs-dist/rc-pro/water-mark/_api/type-aliases/WaterMarkProps.md/index.html +2 -2
- package/docs-dist/rc-pros/atom/index.html +2 -2
- package/docs-dist/rc-pros/auth/index.html +2 -2
- package/docs-dist/rc-pros/button/index.html +2 -2
- package/docs-dist/rc-pros/cascader/index.html +2 -2
- package/docs-dist/rc-pros/date-picker/index.html +2 -2
- package/docs-dist/rc-pros/dialog/index.html +2 -2
- package/docs-dist/rc-pros/editor/index.html +2 -2
- package/docs-dist/rc-pros/form/index.html +2 -2
- package/docs-dist/rc-pros/index.html +2 -2
- package/docs-dist/rc-pros/page-layout/index.html +2 -2
- package/docs-dist/rc-pros/pro-table/index.html +2 -2
- package/docs-dist/rc-pros/pro-tabs/index.html +2 -2
- package/docs-dist/rc-pros/result/index.html +2 -2
- package/docs-dist/rc-pros/select/index.html +2 -2
- package/docs-dist/rc-pros/time-picker/index.html +2 -2
- package/docs-dist/rc-pros/upload/index.html +2 -2
- package/docs-dist/rc-pros/water-mark/index.html +2 -2
- package/docs-dist/{umi.28e5818e.js → umi.92e3e869.js} +4 -4
- package/docs-dist/utils/index.html +2 -2
- package/docs-dist/~demos/:id/index.html +2 -2
- package/docs-dist/~demos/atom-demo-base/index.html +2 -2
- package/docs-dist/~demos/atom-demo-checkbox/index.html +2 -2
- package/docs-dist/~demos/atom-demo-ellipsis/index.html +2 -2
- package/docs-dist/~demos/atom-demo-filter/index.html +2 -2
- package/docs-dist/~demos/atom-demo-state/index.html +2 -2
- package/docs-dist/~demos/auth-demo-basic/index.html +2 -2
- package/docs-dist/~demos/button-demo-button/index.html +2 -2
- package/docs-dist/~demos/button-demo-group/index.html +2 -2
- package/docs-dist/~demos/cascader-demo-basic/index.html +2 -2
- package/docs-dist/~demos/cascader-demo-cache/index.html +2 -2
- package/docs-dist/~demos/date-picker-demo-basic/index.html +2 -2
- package/docs-dist/~demos/date-picker-demo-range/index.html +2 -2
- package/docs-dist/~demos/dialog-demo-demos/index.html +2 -2
- package/docs-dist/~demos/dialog-demo-form/index.html +2 -2
- package/docs-dist/~demos/dialog-demo-prompt/index.html +2 -2
- package/docs-dist/~demos/editor-demo-demos/index.html +2 -2
- package/docs-dist/~demos/editor-demo-rich/index.html +2 -2
- package/docs-dist/~demos/form-demo-demos/index.html +2 -2
- package/docs-dist/~demos/packages-utils-src-demo-demos/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-basic/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-cascade/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-extra/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-filter/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-fixed/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-refresh/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-selection/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-show-depend/index.html +2 -2
- package/docs-dist/~demos/pro-table-demo-tree-async/index.html +2 -2
- package/docs-dist/~demos/pro-tabs-demo-basic/index.html +2 -2
- package/docs-dist/~demos/pro-tabs-demo-tab/index.html +2 -2
- package/docs-dist/~demos/result-demo-basic/index.html +2 -2
- package/docs-dist/~demos/select-demo-api/index.html +2 -2
- package/docs-dist/~demos/select-demo-basic/index.html +2 -2
- package/docs-dist/~demos/select-demo-customize/index.html +2 -2
- package/docs-dist/~demos/select-demo-customize-label/index.html +2 -2
- package/docs-dist/~demos/time-picker-demo-basic/index.html +2 -2
- package/docs-dist/~demos/upload-demo-basic/index.html +2 -2
- package/docs-dist/~demos/upload-demo-image/index.html +2 -2
- package/docs-dist/~demos/water-mark-demo-basic/index.html +2 -2
- package/es/atom/index.less +3 -0
- package/es/config.d.ts +1 -1
- package/es/config.js +3 -2
- package/es/dialog/button.d.ts +1 -1
- package/es/dialog/hook.js +0 -1
- package/es/upload/_api.d.ts +3 -3
- package/es/upload/index.d.ts +2 -2
- package/es/upload/index.js +25 -19
- package/es/upload/upload-image.d.ts +1 -1
- package/es/upload/upload-image.js +33 -20
- package/package.json +1 -1
- package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.1c53df2d.async.js +0 -1
- package/docs-dist/meta__docs.ab3d3c25.async.js +0 -176
package/es/config.js
CHANGED
|
@@ -115,7 +115,8 @@ function AppConfig(_ref) {
|
|
|
115
115
|
value: {
|
|
116
116
|
theme: theme,
|
|
117
117
|
dialogHolderRef: dialogHolderRef,
|
|
118
|
-
fieldNames: fieldNames
|
|
118
|
+
fieldNames: fieldNames,
|
|
119
|
+
antConfig: antConfig
|
|
119
120
|
},
|
|
120
121
|
children: [children, /*#__PURE__*/_jsx(AppDialog, {}), /*#__PURE__*/_jsx(DialogElementsHolder, {
|
|
121
122
|
ref: dialogHolderRef
|
|
@@ -127,7 +128,7 @@ function AppConfig(_ref) {
|
|
|
127
128
|
})
|
|
128
129
|
}));
|
|
129
130
|
}
|
|
130
|
-
export default function
|
|
131
|
+
export default function CcsAppConfig(props) {
|
|
131
132
|
return /*#__PURE__*/_jsx(App, {
|
|
132
133
|
style: {
|
|
133
134
|
height: '100%'
|
package/es/dialog/button.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { DialogFormRef } from './form';
|
|
|
5
5
|
export type DialogButtonRef = {
|
|
6
6
|
onSetButtons: (e: React.ReactElement) => void;
|
|
7
7
|
};
|
|
8
|
-
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "
|
|
8
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<DialogModalProps<TParams, TData>, "onOk" | "onClose" | "auth" | "request" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
9
9
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
10
10
|
formInitialValues: FormProps['initialValues'];
|
|
11
11
|
buttonRef: RefObject<DialogButtonRef>;
|
package/es/dialog/hook.js
CHANGED
package/es/upload/_api.d.ts
CHANGED
|
@@ -12,14 +12,14 @@ type FileValue = {
|
|
|
12
12
|
fileId: string;
|
|
13
13
|
/** 文件名称 */
|
|
14
14
|
name: string;
|
|
15
|
+
/** 文件url */
|
|
16
|
+
url?: string;
|
|
15
17
|
};
|
|
16
|
-
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'> & {
|
|
17
19
|
/** 最大文件数 */
|
|
18
20
|
maxFileSize?: number;
|
|
19
21
|
/** 上传按钮文本 */
|
|
20
22
|
uploadText?: string;
|
|
21
|
-
/** 图片下载地址 */
|
|
22
|
-
fileDownloadUrl?: string;
|
|
23
23
|
/** 文件id */
|
|
24
24
|
value?: string | string[] | FileValue[];
|
|
25
25
|
/** 上传change事件 */
|
package/es/upload/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FileUploadList, UploadProps } from './_api';
|
|
2
2
|
import { ImageUpload } from './upload-image';
|
|
3
3
|
/** 生成图片默认值 */
|
|
4
|
-
export declare function uploadDefaultFlies(value: UploadProps['value']
|
|
5
|
-
declare function CustomUpload({ value, uploadText, maxCount, maxFileSize,
|
|
4
|
+
export declare function uploadDefaultFlies(value: UploadProps['value']): FileUploadList[];
|
|
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;
|
package/es/upload/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["value", "
|
|
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; }
|
|
@@ -20,18 +20,19 @@ import { UploadOutlined } from '@ant-design/icons';
|
|
|
20
20
|
import { Button, Upload, message } from 'antd';
|
|
21
21
|
import { useState } from 'react';
|
|
22
22
|
import CcsDialog from "../dialog";
|
|
23
|
+
import { useBaseFields } from "../hooks/use-app";
|
|
24
|
+
import { getDataByNamePath } from "../utils";
|
|
23
25
|
import { ImageUpload } from "./upload-image";
|
|
24
26
|
|
|
25
27
|
/** 生成图片默认值 */
|
|
26
28
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
export function uploadDefaultFlies(value
|
|
29
|
+
export function uploadDefaultFlies(value) {
|
|
28
30
|
if (Array.isArray(value)) {
|
|
29
31
|
return value.map(function (v) {
|
|
30
32
|
if (typeof v === 'string') {
|
|
31
33
|
return {
|
|
32
34
|
uid: v,
|
|
33
35
|
name: v,
|
|
34
|
-
url: "".concat(fileDownloadUrl).concat(v),
|
|
35
36
|
fileId: v
|
|
36
37
|
};
|
|
37
38
|
}
|
|
@@ -41,7 +42,7 @@ export function uploadDefaultFlies(value, fileDownloadUrl) {
|
|
|
41
42
|
return {
|
|
42
43
|
uid: v.fileId,
|
|
43
44
|
name: v.name,
|
|
44
|
-
url:
|
|
45
|
+
url: v.url,
|
|
45
46
|
fileId: v.fileId
|
|
46
47
|
};
|
|
47
48
|
}
|
|
@@ -54,7 +55,6 @@ export function uploadDefaultFlies(value, fileDownloadUrl) {
|
|
|
54
55
|
return [{
|
|
55
56
|
uid: value,
|
|
56
57
|
name: value,
|
|
57
|
-
url: "".concat(fileDownloadUrl).concat(value),
|
|
58
58
|
fileId: value
|
|
59
59
|
}];
|
|
60
60
|
}
|
|
@@ -62,22 +62,22 @@ export function uploadDefaultFlies(value, fileDownloadUrl) {
|
|
|
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,
|
|
68
69
|
_ref$maxFileSize = _ref.maxFileSize,
|
|
69
70
|
maxFileSize = _ref$maxFileSize === void 0 ? 10 : _ref$maxFileSize,
|
|
70
|
-
_ref$fileDownloadUrl = _ref.fileDownloadUrl,
|
|
71
|
-
fileDownloadUrl = _ref$fileDownloadUrl === void 0 ? '' : _ref$fileDownloadUrl,
|
|
72
71
|
uploadRequest = _ref.uploadRequest,
|
|
73
72
|
onChange = _ref.onChange,
|
|
74
73
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
75
74
|
var _useState = useState(function () {
|
|
76
|
-
return uploadDefaultFlies(value
|
|
75
|
+
return uploadDefaultFlies(value);
|
|
77
76
|
}),
|
|
78
77
|
_useState2 = _slicedToArray(_useState, 2),
|
|
79
78
|
files = _useState2[0],
|
|
80
79
|
setFiles = _useState2[1];
|
|
80
|
+
var globalFieldNames = useBaseFields();
|
|
81
81
|
var handleOnChange = function handleOnChange(_ref2) {
|
|
82
82
|
var fileList = _ref2.fileList;
|
|
83
83
|
setFiles(fileList);
|
|
@@ -114,29 +114,34 @@ function CustomUpload(_ref) {
|
|
|
114
114
|
// 自定义上传
|
|
115
115
|
var onCustomRequest = /*#__PURE__*/function () {
|
|
116
116
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref3) {
|
|
117
|
-
var file, onSuccess, onError, result;
|
|
117
|
+
var file, onSuccess, onError, onProgress, result, success, msg, isSuccess;
|
|
118
118
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
119
119
|
while (1) switch (_context.prev = _context.next) {
|
|
120
120
|
case 0:
|
|
121
|
-
file = _ref3.file, onSuccess = _ref3.onSuccess, onError = _ref3.onError;
|
|
121
|
+
file = _ref3.file, onSuccess = _ref3.onSuccess, onError = _ref3.onError, onProgress = _ref3.onProgress;
|
|
122
122
|
_context.next = 3;
|
|
123
|
-
return uploadRequest(file
|
|
123
|
+
return uploadRequest(file, {
|
|
124
|
+
onProgress: onProgress
|
|
125
|
+
});
|
|
124
126
|
case 3:
|
|
125
127
|
result = _context.sent;
|
|
126
|
-
//
|
|
127
|
-
|
|
128
|
+
// 获取成功标识
|
|
129
|
+
success = getDataByNamePath(result, globalFieldNames.success); // 获取异常信息
|
|
130
|
+
msg = getDataByNamePath(result, globalFieldNames.msg); // 上传成功标识
|
|
131
|
+
isSuccess = success === globalFieldNames.successTag; // 上传成功
|
|
132
|
+
if (isSuccess && onSuccess) {
|
|
128
133
|
onSuccess(result);
|
|
129
134
|
}
|
|
130
135
|
// 上传失败
|
|
131
|
-
if (!
|
|
132
|
-
CcsDialog.message.error(
|
|
136
|
+
if (!isSuccess && onError) {
|
|
137
|
+
CcsDialog.message.error(msg || '上传失败');
|
|
133
138
|
onError({
|
|
134
139
|
status: 500,
|
|
135
140
|
name: '出错了',
|
|
136
|
-
message:
|
|
141
|
+
message: msg || '上传失败'
|
|
137
142
|
});
|
|
138
143
|
}
|
|
139
|
-
case
|
|
144
|
+
case 9:
|
|
140
145
|
case "end":
|
|
141
146
|
return _context.stop();
|
|
142
147
|
}
|
|
@@ -147,16 +152,17 @@ function CustomUpload(_ref) {
|
|
|
147
152
|
};
|
|
148
153
|
}();
|
|
149
154
|
return /*#__PURE__*/_jsx(Upload, _objectSpread(_objectSpread({
|
|
150
|
-
customRequest: onCustomRequest,
|
|
151
155
|
name: "fileName",
|
|
156
|
+
disabled: disabled,
|
|
152
157
|
onChange: handleOnChange,
|
|
153
158
|
beforeUpload: beforeUpload,
|
|
159
|
+
customRequest: onCustomRequest,
|
|
154
160
|
fileList: files,
|
|
155
161
|
maxCount: maxCount
|
|
156
162
|
}, otherProps), {}, {
|
|
157
163
|
children: /*#__PURE__*/_jsx(Button, {
|
|
158
164
|
icon: /*#__PURE__*/_jsx(UploadOutlined, {}),
|
|
159
|
-
disabled: files.length >= maxCount,
|
|
165
|
+
disabled: files.length >= maxCount || disabled,
|
|
160
166
|
children: uploadText
|
|
161
167
|
})
|
|
162
168
|
}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UploadImageProps } from './_api';
|
|
2
|
-
export declare function ImageUpload({ uploadText, maxCount, maxFileSize, crop, value,
|
|
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", "
|
|
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; }
|
|
@@ -21,6 +21,8 @@ import { message, Upload } from 'antd';
|
|
|
21
21
|
import ImgCrop from 'antd-img-crop';
|
|
22
22
|
import { useState } from 'react';
|
|
23
23
|
import CcsDialog from "../dialog";
|
|
24
|
+
import { useBaseFields } from "../hooks/use-app";
|
|
25
|
+
import { getDataByNamePath } from "../utils";
|
|
24
26
|
import { uploadDefaultFlies } from "./index";
|
|
25
27
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
28
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -46,8 +48,7 @@ export function ImageUpload(_ref) {
|
|
|
46
48
|
maxFileSize = _ref$maxFileSize === void 0 ? 10 : _ref$maxFileSize,
|
|
47
49
|
crop = _ref.crop,
|
|
48
50
|
value = _ref.value,
|
|
49
|
-
|
|
50
|
-
fileDownloadUrl = _ref$fileDownloadUrl === void 0 ? '' : _ref$fileDownloadUrl,
|
|
51
|
+
disabled = _ref.disabled,
|
|
51
52
|
uploadRequest = _ref.uploadRequest,
|
|
52
53
|
onChange = _ref.onChange,
|
|
53
54
|
onImageInfo = _ref.onImageInfo,
|
|
@@ -55,13 +56,14 @@ export function ImageUpload(_ref) {
|
|
|
55
56
|
accept = _ref$accept === void 0 ? 'image/*' : _ref$accept,
|
|
56
57
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
57
58
|
var _useState = useState(function () {
|
|
58
|
-
return uploadDefaultFlies(value
|
|
59
|
+
return uploadDefaultFlies(value);
|
|
59
60
|
}),
|
|
60
61
|
_useState2 = _slicedToArray(_useState, 2),
|
|
61
62
|
files = _useState2[0],
|
|
62
63
|
setFiles = _useState2[1];
|
|
63
64
|
var _CcsDialog$useDialog = CcsDialog.useDialog(),
|
|
64
65
|
openModal = _CcsDialog$useDialog.openModal;
|
|
66
|
+
var globalFieldNames = useBaseFields();
|
|
65
67
|
var handleOnChange = function handleOnChange(_ref2) {
|
|
66
68
|
var fileList = _ref2.fileList;
|
|
67
69
|
fileList.forEach(function (f) {
|
|
@@ -125,7 +127,11 @@ export function ImageUpload(_ref) {
|
|
|
125
127
|
_context.next = 8;
|
|
126
128
|
break;
|
|
127
129
|
case 7:
|
|
128
|
-
|
|
130
|
+
if (file.url) {
|
|
131
|
+
file.preview = file.url;
|
|
132
|
+
} else {
|
|
133
|
+
message.error("\u56FE\u7247\u94FE\u63A5\u4E3A\u7A7A\uFF0C\u4E0D\u80FD\u9884\u89C8");
|
|
134
|
+
}
|
|
129
135
|
case 8:
|
|
130
136
|
openModal({
|
|
131
137
|
title: file.name || file.url.substring(file.url.lastIndexOf('/') + 1),
|
|
@@ -152,23 +158,29 @@ export function ImageUpload(_ref) {
|
|
|
152
158
|
// 自定义上传
|
|
153
159
|
var onCustomRequest = /*#__PURE__*/function () {
|
|
154
160
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref4) {
|
|
155
|
-
var file, onSuccess, onError, result, base64, _ref6, name, type;
|
|
161
|
+
var file, onSuccess, onError, onProgress, result, success, msg, isSuccess, base64, _ref6, name, type;
|
|
156
162
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
157
163
|
while (1) switch (_context2.prev = _context2.next) {
|
|
158
164
|
case 0:
|
|
159
|
-
file = _ref4.file, onSuccess = _ref4.onSuccess, onError = _ref4.onError;
|
|
165
|
+
file = _ref4.file, onSuccess = _ref4.onSuccess, onError = _ref4.onError, onProgress = _ref4.onProgress;
|
|
160
166
|
_context2.next = 3;
|
|
161
|
-
return uploadRequest(file
|
|
167
|
+
return uploadRequest(file, {
|
|
168
|
+
onProgress: onProgress
|
|
169
|
+
});
|
|
162
170
|
case 3:
|
|
163
171
|
result = _context2.sent;
|
|
164
|
-
|
|
165
|
-
|
|
172
|
+
// 获取成功标识
|
|
173
|
+
success = getDataByNamePath(result, globalFieldNames.success); // 获取异常信息
|
|
174
|
+
msg = getDataByNamePath(result, globalFieldNames.msg); // 上传成功标识
|
|
175
|
+
isSuccess = success === globalFieldNames.successTag; // 上传成功
|
|
176
|
+
if (!(isSuccess && onSuccess)) {
|
|
177
|
+
_context2.next = 14;
|
|
166
178
|
break;
|
|
167
179
|
}
|
|
168
180
|
onSuccess(result);
|
|
169
|
-
_context2.next =
|
|
181
|
+
_context2.next = 11;
|
|
170
182
|
return getBase64(file);
|
|
171
|
-
case
|
|
183
|
+
case 11:
|
|
172
184
|
base64 = _context2.sent;
|
|
173
185
|
_ref6 = file, name = _ref6.name, type = _ref6.type;
|
|
174
186
|
onImageInfo === null || onImageInfo === void 0 || onImageInfo({
|
|
@@ -177,17 +189,17 @@ export function ImageUpload(_ref) {
|
|
|
177
189
|
type: type,
|
|
178
190
|
url: result.data
|
|
179
191
|
});
|
|
180
|
-
case
|
|
192
|
+
case 14:
|
|
181
193
|
// 上传失败
|
|
182
|
-
if (!
|
|
183
|
-
CcsDialog.message.error(
|
|
194
|
+
if (!isSuccess && onError) {
|
|
195
|
+
CcsDialog.message.error(msg || '上传失败');
|
|
184
196
|
onError({
|
|
185
197
|
status: 500,
|
|
186
198
|
name: '出错了',
|
|
187
|
-
message:
|
|
199
|
+
message: msg || '上传失败'
|
|
188
200
|
});
|
|
189
201
|
}
|
|
190
|
-
case
|
|
202
|
+
case 15:
|
|
191
203
|
case "end":
|
|
192
204
|
return _context2.stop();
|
|
193
205
|
}
|
|
@@ -198,17 +210,18 @@ export function ImageUpload(_ref) {
|
|
|
198
210
|
};
|
|
199
211
|
}();
|
|
200
212
|
var renderUpload = /*#__PURE__*/_jsx(Upload, _objectSpread(_objectSpread({
|
|
201
|
-
|
|
213
|
+
disabled: true,
|
|
202
214
|
name: "fileName",
|
|
203
215
|
onChange: handleOnChange,
|
|
216
|
+
onPreview: handlePreview,
|
|
204
217
|
beforeUpload: beforeUpload,
|
|
218
|
+
customRequest: onCustomRequest,
|
|
205
219
|
fileList: files,
|
|
206
220
|
maxCount: maxCount,
|
|
207
221
|
listType: "picture-card",
|
|
208
|
-
onPreview: handlePreview,
|
|
209
222
|
accept: accept
|
|
210
223
|
}, otherProps), {}, {
|
|
211
|
-
children: files.length < maxCount && /*#__PURE__*/_jsxs("div", {
|
|
224
|
+
children: files.length < maxCount && !disabled && /*#__PURE__*/_jsxs("div", {
|
|
212
225
|
children: [/*#__PURE__*/_jsx(PlusOutlined, {}), /*#__PURE__*/_jsx("div", {
|
|
213
226
|
style: {
|
|
214
227
|
marginTop: 8
|
package/package.json
CHANGED
package/docs-dist/docs__rc-pro__upload___api__type-aliases__UploadProps.md.1c53df2d.async.js
DELETED
|
@@ -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),c=d(24881),u=d(75271),_=d(56180),e=d(52676);function x(){return(0,e.jsx)(t.dY,{children:(0,e.jsx)(u.Suspense,{fallback:(0,e.jsx)(c.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.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[35].value})}),(0,e.jsx)("td",{children:_.texts[36].value})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[37].value})}),(0,e.jsxs)("td",{children:[_.texts[38].value,(0,e.jsx)("code",{children:_.texts[39].value}),_.texts[40].value,(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)(t.rU,{to:"/rc-pro/upload/_api/type-aliases/UploadRequest.md",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.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[47].value})}),(0,e.jsx)("td",{children:_.texts[48].value})]}),(0,e.jsxs)("tr",{children:[(0,e.jsx)("td",{children:(0,e.jsx)("code",{children:_.texts[49].value})}),(0,e.jsxs)("td",{children:[(0,e.jsx)("code",{children:_.texts[50].value}),_.texts[51].value,(0,e.jsx)("code",{children:_.texts[52].value}),_.texts[53].value,(0,e.jsx)("code",{children:_.texts[54].value}),_.texts[55].value]}),(0,e.jsx)("td",{children:_.texts[56].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:"fileDownloadUrl?",paraId:5,tocIndex:1},{value:"string",paraId:5,tocIndex:1},{value:"\u56FE\u7247\u4E0B\u8F7D\u5730\u5740",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}]}}]);
|