@ccs-ui/rc-pro 2.3.6-alpha-24 → 2.3.6-alpha-25
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
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" | "onClose" | "onOk" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
20
20
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
21
21
|
formInitialValues: FormProps['initialValues'];
|
|
22
22
|
buttonRef: RefObject<DialogButtonRef>;
|
|
@@ -4,8 +4,9 @@ type PropsType = {
|
|
|
4
4
|
appName: string;
|
|
5
5
|
menuItems: CCS.MenuType[];
|
|
6
6
|
className?: string;
|
|
7
|
+
styles: {};
|
|
7
8
|
};
|
|
8
|
-
declare function SinglePage({ appName, menuItems
|
|
9
|
+
declare function SinglePage({ appName, menuItems }: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
declare namespace SinglePage {
|
|
10
11
|
var displayName: string;
|
|
11
12
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import classnames from 'classnames';
|
|
2
1
|
import { useMemo } from 'react';
|
|
3
2
|
import { useLocation } from 'react-router';
|
|
4
3
|
import { useOutlet } from 'react-router-dom';
|
|
@@ -7,11 +6,11 @@ import CcsResult from "../result";
|
|
|
7
6
|
import "./index.less";
|
|
8
7
|
import Page from "./page";
|
|
9
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
10
|
function SinglePage(_ref) {
|
|
11
11
|
var appName = _ref.appName,
|
|
12
12
|
_ref$menuItems = _ref.menuItems,
|
|
13
|
-
menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems
|
|
14
|
-
className = _ref.className;
|
|
13
|
+
menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems;
|
|
15
14
|
var location = useLocation();
|
|
16
15
|
var pathname = location.pathname;
|
|
17
16
|
var outlet = useOutlet();
|
|
@@ -46,8 +45,7 @@ function SinglePage(_ref) {
|
|
|
46
45
|
menu: menu
|
|
47
46
|
};
|
|
48
47
|
}, [pathname, menuItems]);
|
|
49
|
-
return /*#__PURE__*/_jsx(
|
|
50
|
-
className: classnames(className, "ccs-single-page"),
|
|
48
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
51
49
|
children: menuInfo !== null && menuInfo !== void 0 && menuInfo.auth ? /*#__PURE__*/_jsx(Page, {
|
|
52
50
|
location: location,
|
|
53
51
|
urlAuthList: menuInfo.auth,
|