@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.
- package/dist/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +2 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -1
- package/es/ProStep/components/Anchor/index.d.ts +1 -0
- package/es/ProStep/components/Item/index.d.ts +1 -0
- package/es/ProTabs/style/index.less +5 -1
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/index.js +3 -2
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +2 -1
- package/lib/ProStep/components/Anchor/index.d.ts +1 -0
- package/lib/ProStep/components/Item/index.d.ts +1 -0
- package/lib/ProTabs/style/index.less +5 -1
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -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)(
|
|
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)(
|
|
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)(
|
|
194
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Link, {
|
|
194
195
|
to: router,
|
|
195
196
|
ref: linkRef
|
|
196
197
|
})]
|
|
@@ -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;
|