@ccs-ui/rc-pro 2.3.3-beta-5 → 2.3.3-beta-7

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.
@@ -42,7 +42,7 @@ export type CcsButtonGroupProps = {
42
42
  export declare function ModalConfirm({ modalRef }: {
43
43
  modalRef: any;
44
44
  }): import("react/jsx-runtime").JSX.Element;
45
- type CcsAuthButtonProps = Omit<ButtonProps, 'onClick'> & {
45
+ export type CcsAuthButtonProps = Omit<ButtonProps, 'onClick'> & {
46
46
  /** 权限标识 */
47
47
  auth?: string;
48
48
  /** 文本 */
@@ -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>, "onClose" | "onOk" | "auth" | "extraBtn" | "request" | "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>;
@@ -120,7 +120,7 @@ export var DialogButtonHolder = function DialogButtonHolder(_ref) {
120
120
 
121
121
  // 抛出操作结果
122
122
  CcsDialog.easyMessage({
123
- success: success,
123
+ success: success === fieldNames.successTag,
124
124
  msg: msg
125
125
  });
126
126
  }).catch(function (err) {
@@ -325,6 +325,7 @@ var InternalProTable = function InternalProTable(props) {
325
325
 
326
326
  // 重置
327
327
  var _onReset = function onReset() {
328
+ if (selectedRows.length > 0) setSelectedRows([]);
328
329
  form === null || form === void 0 || form.resetFields();
329
330
  // 清空columns显示filter和sort值
330
331
  columns === null || columns === void 0 || columns.forEach(function (c) {
@@ -342,6 +343,7 @@ var InternalProTable = function InternalProTable(props) {
342
343
 
343
344
  // 刷新
344
345
  var _onReload = function onReload() {
346
+ if (selectedRows.length > 0) setSelectedRows([]);
345
347
  onRequest('reload', data.current, data.pageSize);
346
348
  };
347
349
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.3-beta-5",
3
+ "version": "2.3.3-beta-7",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {