@ccs-ui/rc-pro 2.3.3-beta-6 → 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.
- package/es/button/index.d.ts +1 -1
- package/es/dialog/button.d.ts +1 -1
- package/es/pro-table/table.js +2 -0
- package/package.json +1 -1
package/es/button/index.d.ts
CHANGED
|
@@ -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
|
/** 文本 */
|
package/es/dialog/button.d.ts
CHANGED
|
@@ -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>, "
|
|
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/pro-table/table.js
CHANGED
|
@@ -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
|
|