@ccs-ui/rc-pro 2.3.3-beta-9 → 2.3.3-beta-10

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.
@@ -51,10 +51,10 @@ type FnContextType<T = Store> = {
51
51
  close: () => void;
52
52
  };
53
53
  type CcsFieldNamesType = {
54
- dataSource: string[];
55
- total: string[];
56
- current: string[];
57
- pageSize: string[];
54
+ dataSource?: string[];
55
+ total?: string[];
56
+ current?: string[];
57
+ pageSize?: string[];
58
58
  };
59
59
  type CcsDialogFieldNames = {
60
60
  /** 成功标识字段 */
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
16
16
  export type DialogButtonRef = {
17
17
  onSetButtons: (e: React.ReactElement) => void;
18
18
  };
19
- export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "onOk" | "onClose" | "auth" | "request" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
19
+ export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "auth" | "request" | "onClose" | "onOk" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
20
20
  formRef: React.RefObject<DialogFormRef<TParams>>;
21
21
  formInitialValues: FormProps['initialValues'];
22
22
  buttonRef: RefObject<DialogButtonRef>;
package/es/table/index.js CHANGED
@@ -141,7 +141,7 @@ var CustomTable = function CustomTable(props) {
141
141
  c.ellipsis = !isMultiRow;
142
142
  c.render = function (e) {
143
143
  return /*#__PURE__*/_jsx(Tooltip, {
144
- zIndex: 2020,
144
+ zIndex: 9999,
145
145
  title: e,
146
146
  placement: "bottomLeft",
147
147
  destroyTooltipOnHide: true,
@@ -87,15 +87,16 @@ function CcsUpload(_ref) {
87
87
  return f.status === 'uploading';
88
88
  })) return;
89
89
  if (maxCount === 1) {
90
- var _fileList$;
90
+ var _fileList$, _fileList$2;
91
91
  // 只能上传一个文件
92
- onChange((_fileList$ = fileList[0]) === null || _fileList$ === void 0 ? void 0 : _fileList$.fileId);
92
+ onChange(((_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.data) || ((_fileList$2 = fileList[0]) === null || _fileList$2 === void 0 ? void 0 : _fileList$2.fileId));
93
93
  } else {
94
94
  // 上传完成的文件,返回上传结果集
95
- onChange(fileList.filter(function (f) {
96
- return !!f.fileId;
97
- }).map(function (f) {
98
- return f.fileId;
95
+ onChange(fileList.map(function (f) {
96
+ var _f$response;
97
+ return ((_f$response = f.response) === null || _f$response === void 0 ? void 0 : _f$response.data) || f.fileId;
98
+ }).filter(function (s) {
99
+ return s !== undefined;
99
100
  }));
100
101
  }
101
102
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.3-beta-9",
3
+ "version": "2.3.3-beta-10",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {