@ccs-ui/rc-pro 2.3.3 → 2.3.4

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/breadcrumb.js CHANGED
@@ -16,18 +16,21 @@ export default function CcsBreadcrumb(_ref) {
16
16
  className: className,
17
17
  style: style,
18
18
  children: items.map(function (item, index) {
19
+ var isLast = index === items.length - 1;
20
+ var grayColor = 'rgba(0, 0, 0, 0.45)';
19
21
  return /*#__PURE__*/_jsxs(_Fragment, {
20
22
  children: [/*#__PURE__*/_jsx("div", {
21
- style: item.href ? {
22
- color: 'rgba(0, 0, 0, 0.45)'
23
- } : {},
23
+ style: {
24
+ color: !isLast ? grayColor : undefined,
25
+ cursor: !!item.href ? 'pointer' : 'unset'
26
+ },
24
27
  onClick: function onClick() {
25
28
  return _onClick(item.href);
26
29
  },
27
30
  children: item.title
28
- }, index), index !== items.length - 1 && /*#__PURE__*/_jsx("div", {
31
+ }, index), !isLast && /*#__PURE__*/_jsx("div", {
29
32
  style: {
30
- color: 'rgba(0, 0, 0, 0.45)'
33
+ color: grayColor
31
34
  },
32
35
  children: "/"
33
36
  })]
@@ -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>, "onClose" | "onOk" | "auth" | "extraBtn" | "request" | "requestFieldNames" | "preventRequestHandle"> & {
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>;
@@ -221,11 +221,11 @@ export default function KeepAliveTabs(_ref) {
221
221
  if (menu) saveHistory();
222
222
 
223
223
  // 面包屑数据
224
- var breadcrumb = menus.map(function (m) {
224
+ var breadcrumb = menus.map(function (m, index) {
225
225
  return {
226
226
  key: m.key,
227
227
  title: m.label,
228
- href: m.url
228
+ href: index !== menus.length - 1 ? m.url : undefined
229
229
  };
230
230
  });
231
231
  breadcrumb.unshift({
@@ -4,6 +4,7 @@ type PropsType = {
4
4
  appName: string;
5
5
  menuItems: CCS.MenuType[];
6
6
  className?: string;
7
+ history: any;
7
8
  };
8
- export default function SinglePage({ appName, menuItems, className, }: PropsType): import("react/jsx-runtime").JSX.Element;
9
+ export default function SinglePage({ appName, menuItems, className, history, }: PropsType): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
@@ -12,7 +12,8 @@ export default function SinglePage(_ref) {
12
12
  var appName = _ref.appName,
13
13
  _ref$menuItems = _ref.menuItems,
14
14
  menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems,
15
- className = _ref.className;
15
+ className = _ref.className,
16
+ history = _ref.history;
16
17
  var location = useLocation();
17
18
  var pathname = location.pathname;
18
19
  var outlet = useOutlet();
@@ -28,11 +29,11 @@ export default function SinglePage(_ref) {
28
29
  setTimeout(function () {
29
30
  document.title = "".concat((menu === null || menu === void 0 ? void 0 : menu.label) || (menu === null || menu === void 0 ? void 0 : menu.url), " - ").concat(appName);
30
31
  }, 10);
31
- var breadcrumb = menus.map(function (m) {
32
+ var breadcrumb = menus.map(function (m, index) {
32
33
  return {
33
34
  key: m.key,
34
35
  title: m.label,
35
- href: m.url
36
+ href: index !== menus.length - 1 ? m.url : undefined
36
37
  };
37
38
  });
38
39
  breadcrumb.unshift({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": {