@ccs-ui/rc-pro 2.3.6-alpha-29 → 2.3.6-alpha-31
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.
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import CCS from "..";
|
|
2
|
-
import { CSSProperties } from 'react';
|
|
2
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import './index.less';
|
|
4
4
|
type PropsType = {
|
|
5
5
|
appName: string;
|
|
6
6
|
menuItems: CCS.MenuType[];
|
|
7
|
-
breadcrumbStyle
|
|
7
|
+
breadcrumbStyle?: CSSProperties;
|
|
8
|
+
children?: ReactNode;
|
|
8
9
|
};
|
|
9
|
-
declare function SinglePage({ appName, menuItems, breadcrumbStyle }: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SinglePage({ appName, menuItems, breadcrumbStyle, children, }: PropsType): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
declare namespace SinglePage {
|
|
11
12
|
var displayName: string;
|
|
12
13
|
}
|
|
@@ -5,13 +5,15 @@ import { findMenusByUrl } from "../layout-keep-alive";
|
|
|
5
5
|
import CcsResult from "../result";
|
|
6
6
|
import "./index.less";
|
|
7
7
|
import Page from "./page";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
9
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
function SinglePage(_ref) {
|
|
11
12
|
var appName = _ref.appName,
|
|
12
13
|
_ref$menuItems = _ref.menuItems,
|
|
13
14
|
menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems,
|
|
14
|
-
breadcrumbStyle = _ref.breadcrumbStyle
|
|
15
|
+
breadcrumbStyle = _ref.breadcrumbStyle,
|
|
16
|
+
children = _ref.children;
|
|
15
17
|
var location = useLocation();
|
|
16
18
|
var pathname = location.pathname;
|
|
17
19
|
var outlet = useOutlet();
|
|
@@ -52,8 +54,13 @@ function SinglePage(_ref) {
|
|
|
52
54
|
urlAuthList: menuInfo.auth,
|
|
53
55
|
breadcrumb: menuInfo.breadcrumb,
|
|
54
56
|
breadcrumbStyle: breadcrumbStyle,
|
|
55
|
-
children:
|
|
57
|
+
children: /*#__PURE__*/_jsxs(_Fragment, {
|
|
58
|
+
children: [outlet, children]
|
|
59
|
+
})
|
|
56
60
|
}) : /*#__PURE__*/_jsx(CcsResult.Page404, {
|
|
61
|
+
style: {
|
|
62
|
+
flex: 'auto'
|
|
63
|
+
},
|
|
57
64
|
subTitle: "\u9875\u9762\u4E0D\u5B58\u5728"
|
|
58
65
|
})
|
|
59
66
|
});
|