@ccs-ui/rc-pro 2.3.6-alpha-28 → 2.3.6-alpha-29

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,11 +1,12 @@
1
1
  import CCS from "..";
2
+ import { CSSProperties } from 'react';
2
3
  import './index.less';
3
- import { SinglePageProps } from './page';
4
- type PropsType = Pick<SinglePageProps, 'className' | 'styles'> & {
4
+ type PropsType = {
5
5
  appName: string;
6
6
  menuItems: CCS.MenuType[];
7
+ breadcrumbStyle: CSSProperties;
7
8
  };
8
- declare function SinglePage({ appName, menuItems, ...cssProps }: PropsType): import("react/jsx-runtime").JSX.Element;
9
+ declare function SinglePage({ appName, menuItems, breadcrumbStyle }: PropsType): import("react/jsx-runtime").JSX.Element;
9
10
  declare namespace SinglePage {
10
11
  var displayName: string;
11
12
  }
@@ -1,12 +1,3 @@
1
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["appName", "menuItems"];
3
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
1
  import { useMemo } from 'react';
11
2
  import { useLocation } from 'react-router';
12
3
  import { useOutlet } from 'react-router-dom';
@@ -20,7 +11,7 @@ function SinglePage(_ref) {
20
11
  var appName = _ref.appName,
21
12
  _ref$menuItems = _ref.menuItems,
22
13
  menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems,
23
- cssProps = _objectWithoutProperties(_ref, _excluded);
14
+ breadcrumbStyle = _ref.breadcrumbStyle;
24
15
  var location = useLocation();
25
16
  var pathname = location.pathname;
26
17
  var outlet = useOutlet();
@@ -56,13 +47,13 @@ function SinglePage(_ref) {
56
47
  };
57
48
  }, [pathname, menuItems]);
58
49
  return /*#__PURE__*/_jsx(_Fragment, {
59
- children: menuInfo !== null && menuInfo !== void 0 && menuInfo.auth ? /*#__PURE__*/_jsx(Page, _objectSpread(_objectSpread({
50
+ children: menuInfo !== null && menuInfo !== void 0 && menuInfo.auth ? /*#__PURE__*/_jsx(Page, {
60
51
  location: location,
61
52
  urlAuthList: menuInfo.auth,
62
- breadcrumb: menuInfo.breadcrumb
63
- }, cssProps), {}, {
53
+ breadcrumb: menuInfo.breadcrumb,
54
+ breadcrumbStyle: breadcrumbStyle,
64
55
  children: outlet
65
- })) : /*#__PURE__*/_jsx(CcsResult.Page404, {
56
+ }) : /*#__PURE__*/_jsx(CcsResult.Page404, {
66
57
  subTitle: "\u9875\u9762\u4E0D\u5B58\u5728"
67
58
  })
68
59
  });
@@ -1,6 +1,7 @@
1
- .ccs-single-page {
1
+ .ccs-sticky-scroll > div {
2
2
  display: flex;
3
3
  flex-direction: column;
4
+ padding: 10px 16px 16px;
4
5
  }
5
6
 
6
7
  .colorful-theme {
@@ -6,13 +6,8 @@ export type SinglePageProps = Pick<CacheRouter, 'breadcrumb' | 'urlAuthList'> &
6
6
  location: Location;
7
7
  /** children */
8
8
  children: ReactElement<any, string | JSXElementConstructor<any>> | null;
9
- /** class */
10
- className?: string;
11
9
  /** 语义化style */
12
- styles?: {
13
- root?: CSSProperties;
14
- breadcrumb?: CSSProperties;
15
- };
10
+ breadcrumbStyle?: CSSProperties;
16
11
  };
17
12
  declare const _default: import("react").MemoExoticComponent<(props: SinglePageProps) => import("react/jsx-runtime").JSX.Element>;
18
13
  export default _default;
@@ -6,7 +6,6 @@ import { DialogElementsHolder } from "../dialog/hook";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  export default /*#__PURE__*/memo(function (props) {
9
- var _props$styles;
10
9
  var locationRef = useRef(props.location);
11
10
  var children = props.children,
12
11
  _props$urlAuthList = props.urlAuthList,
@@ -33,7 +32,7 @@ export default /*#__PURE__*/memo(function (props) {
33
32
  children: [/*#__PURE__*/_jsx(Breadcrumb, {
34
33
  items: breadcrumb,
35
34
  className: "ccs-breadcrumb",
36
- style: (_props$styles = props.styles) === null || _props$styles === void 0 ? void 0 : _props$styles.breadcrumb
35
+ style: props.breadcrumbStyle
37
36
  }), children, /*#__PURE__*/_jsx(DialogElementsHolder, {
38
37
  ref: dialogHolderRef
39
38
  }, "modal-drawer-holder")]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.6-alpha-28",
3
+ "version": "2.3.6-alpha-29",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {