@zat-design/sisyphus-react 3.13.21-beta.2 → 3.13.21

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.
@@ -5,13 +5,14 @@ import _Popover from "antd/es/popover";
5
5
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
6
6
  import { useContext } from 'react';
7
7
  import classnames from 'classnames';
8
- import { Link } from 'react-router-dom';
8
+ import { Link as RouterLink } from 'react-router-dom';
9
9
  import { Icon } from "../../index";
10
10
  import SideMenu from "../SideMenu";
11
11
  import { LayoutContext } from "../../../../index";
12
12
  import { getUrlParams, getPathNameKey, findMenuItemByKey } from "../../../../utils";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
+ var Link = RouterLink;
15
16
  var FoldMenu = props => {
16
17
  var style = props.style,
17
18
  dataSource = props.dataSource,
@@ -5,7 +5,7 @@ import { useMemo, useRef, useContext } from 'react';
5
5
  import { useDeepCompareEffect, useSetState } from 'ahooks';
6
6
  import { CaretDownOutlined } from '@ant-design/icons';
7
7
  import classnames from 'classnames';
8
- import { Link } from 'react-router-dom';
8
+ import { Link as RouterLink } from 'react-router-dom';
9
9
  import { cloneDeep } from 'lodash';
10
10
  import { LayoutContext } from "../../../../index";
11
11
  import { getIdsByPathName, findMenuItemByKey } from "../../../../utils";
@@ -13,6 +13,7 @@ import { Icon } from "../../index";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { Fragment as _Fragment } from "react/jsx-runtime";
15
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
16
+ var Link = RouterLink;
16
17
  var OpenMenu = props => {
17
18
  var _getIdsByPathName;
18
19
  var className = props.className,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuItemProps } from '../../propsType';
2
3
  export declare const MenuItem: (props: MenuItemProps) => JSX.Element;
3
4
  export default MenuItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProStepItemType } from '../../propsType';
2
3
  declare const ProStepItem: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: ProStepItemType) => JSX.Element;
3
4
  export default ProStepItem;
@@ -8,6 +8,9 @@
8
8
  .pro-tabs-card-left {
9
9
  width: 84px !important;
10
10
  }
11
+ .pro-tabs-card-right {
12
+ width: 24px !important;
13
+ }
11
14
  .pro-tabs-card-right img {
12
15
  width: 24px !important;
13
16
  }
@@ -96,7 +99,7 @@
96
99
 
97
100
  .pro-tabs-card-right {
98
101
  display: flex;
99
-
102
+ width: 48px;
100
103
  img {
101
104
  width: 48px;
102
105
  }
@@ -125,6 +128,7 @@
125
128
  width: 200px;
126
129
  padding: calc(9px * var(--zaui-size; 1)) 16px calc(9px * var(--zaui-size; 1)) 24px;
127
130
  border: 1px solid var(--zaui-line, #dddddd);
131
+ border-radius: var(--zaui-border-radius, 8px);
128
132
 
129
133
  .pro-tabs-card-left {
130
134
  width: 104px;
@@ -18,6 +18,7 @@ var _SideMenu = _interopRequireDefault(require("../SideMenu"));
18
18
  var _index2 = require("../../../../index");
19
19
  var _utils = require("../../../../utils");
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
+ var Link = _reactRouterDom.Link;
21
22
  var FoldMenu = props => {
22
23
  var style = props.style,
23
24
  dataSource = props.dataSource,
@@ -142,7 +143,7 @@ var FoldMenu = props => {
142
143
  selectedPath: toPath
143
144
  });
144
145
  },
145
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Link, {
146
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Link, {
146
147
  to: toPath,
147
148
  children: LiNode
148
149
  }, toPath)
@@ -162,7 +163,7 @@ var FoldMenu = props => {
162
163
  });
163
164
  }
164
165
  },
165
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Link, {
166
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Link, {
166
167
  to: toPath,
167
168
  children: LiNode
168
169
  }, toPath)
@@ -18,6 +18,7 @@ var _index = require("../../../../index");
18
18
  var _utils = require("../../../../utils");
19
19
  var _index2 = require("../../index");
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
+ var Link = _reactRouterDom.Link;
21
22
  var OpenMenu = props => {
22
23
  var _getIdsByPathName;
23
24
  var className = props.className,
@@ -190,7 +191,7 @@ var OpenMenu = props => {
190
191
  height: dataSource.sideMenu ? 'auto' : `calc(100vh - ${(dataSource === null || dataSource === void 0 ? void 0 : dataSource.height) || 0}px)`,
191
192
  color: 'red'
192
193
  }
193
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Link, {
194
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Link, {
194
195
  to: router,
195
196
  ref: linkRef
196
197
  })]
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MenuItemProps } from '../../propsType';
2
3
  export declare const MenuItem: (props: MenuItemProps) => JSX.Element;
3
4
  export default MenuItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProStepItemType } from '../../propsType';
2
3
  declare const ProStepItem: ({ id, title, collapse: collapseItem, children, lazyLoad: stepLazyLoad, order, ...restProps }: ProStepItemType) => JSX.Element;
3
4
  export default ProStepItem;
@@ -8,6 +8,9 @@
8
8
  .pro-tabs-card-left {
9
9
  width: 84px !important;
10
10
  }
11
+ .pro-tabs-card-right {
12
+ width: 24px !important;
13
+ }
11
14
  .pro-tabs-card-right img {
12
15
  width: 24px !important;
13
16
  }
@@ -96,7 +99,7 @@
96
99
 
97
100
  .pro-tabs-card-right {
98
101
  display: flex;
99
-
102
+ width: 48px;
100
103
  img {
101
104
  width: 48px;
102
105
  }
@@ -125,6 +128,7 @@
125
128
  width: 200px;
126
129
  padding: calc(9px * var(--zaui-size; 1)) 16px calc(9px * var(--zaui-size; 1)) 24px;
127
130
  border: 1px solid var(--zaui-line, #dddddd);
131
+ border-radius: var(--zaui-border-radius, 8px);
128
132
 
129
133
  .pro-tabs-card-left {
130
134
  width: 104px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.13.21-beta.2",
3
+ "version": "3.13.21",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",