@ccs-ui/rc-pro 2.3.6-alpha-22 → 2.3.6-alpha-24
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/dialog/button.d.ts +1 -1
- package/es/pro-table/table.js +3 -2
- package/package.json +1 -1
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>, "auth" | "request" | "
|
|
19
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "auth" | "request" | "onOk" | "onClose" | "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
|
@@ -164,7 +164,7 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
164
164
|
var isAuth = useMemo(function () {
|
|
165
165
|
if (auth) return onAuth && onAuth(auth);
|
|
166
166
|
return true;
|
|
167
|
-
}, []);
|
|
167
|
+
}, [auth]);
|
|
168
168
|
var formatFormItems = useMemo(function () {
|
|
169
169
|
return formItems.flat(Infinity).filter(function (f) {
|
|
170
170
|
return f.onFormat;
|
|
@@ -535,7 +535,8 @@ var InternalProTable = function InternalProTable(props) {
|
|
|
535
535
|
style: {
|
|
536
536
|
margin: 0,
|
|
537
537
|
padding: '32px 0',
|
|
538
|
-
color: 'red'
|
|
538
|
+
color: 'red',
|
|
539
|
+
background: '#fff'
|
|
539
540
|
},
|
|
540
541
|
image: Empty.PRESENTED_IMAGE_DEFAULT,
|
|
541
542
|
description: "\u6CA1\u6709\u6570\u636E\u8BF7\u6C42\u6743\u9650"
|