@ccs-ui/rc-pro 2.3.6-alpha-6 → 2.3.6-alpha-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.
@@ -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>, "auth" | "request" | "onClose" | "onOk" | "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" | "onClose" | "request" | "onOk" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
20
20
  formRef: React.RefObject<DialogFormRef<TParams>>;
21
21
  formInitialValues: FormProps['initialValues'];
22
22
  buttonRef: RefObject<DialogButtonRef>;
@@ -3,7 +3,7 @@ import { TableRowSelection } from 'antd/es/table/interface';
3
3
  import React from 'react';
4
4
  type PropsType<T> = Pick<SelectProps, 'value' | 'onChange'> & Omit<TableRowSelection<T>, 'value' | 'onChange' | 'renderCell'> & {
5
5
  /** rowKey 字段,选中key值 */
6
- keyField: keyof T;
6
+ keyField: string;
7
7
  /** 默认选择行数据,一般用于回显数据 */
8
8
  defaultRows?: T[];
9
9
  /** 选中行数据回调 */
@@ -163,6 +163,7 @@ export default function useTableSelection(props) {
163
163
  });
164
164
  return _objectSpread(_objectSpread({}, selectionRef.current), {}, {
165
165
  onChange: onChange,
166
- onClear: onClear
166
+ onClear: onClear,
167
+ type: type
167
168
  }, rowSelectionProps);
168
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.6-alpha-6",
3
+ "version": "2.3.6-alpha-7",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {