@ccs-ui/rc-pro 2.3.6-alpha-23 → 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.
@@ -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, className }: PropsType): import("react/jsx-runtime").JSX.Element;
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,9 +45,7 @@ function SinglePage(_ref) {
46
45
  menu: menu
47
46
  };
48
47
  }, [pathname, menuItems]);
49
- console.log('page index ', menuInfo);
50
- return /*#__PURE__*/_jsx("div", {
51
- className: classnames(className, "ccs-single-page"),
48
+ return /*#__PURE__*/_jsx(_Fragment, {
52
49
  children: menuInfo !== null && menuInfo !== void 0 && menuInfo.auth ? /*#__PURE__*/_jsx(Page, {
53
50
  location: location,
54
51
  urlAuthList: menuInfo.auth,
@@ -1,13 +1,7 @@
1
1
  .ccs-single-page {
2
- flex: 1 1 auto;
2
+ height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
5
-
6
- .ccs-sticky-scroll > div {
7
- display: flex;
8
- flex-direction: column;
9
- padding: 10px 16px 16px;
10
- }
11
5
  }
12
6
 
13
7
  .colorful-theme {
@@ -13,7 +13,6 @@ export default /*#__PURE__*/memo(function (props) {
13
13
  _props$breadcrumb = props.breadcrumb,
14
14
  breadcrumb = _props$breadcrumb === void 0 ? [] : _props$breadcrumb;
15
15
  var dialogHolderRef = useRef(null);
16
- console.log('page urlAuthList', urlAuthList);
17
16
  return /*#__PURE__*/_jsx(PageContext.Provider, {
18
17
  value: {
19
18
  id: '',
@@ -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"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.6-alpha-23",
3
+ "version": "2.3.6-alpha-25",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {