@zat-design/sisyphus-react 3.4.2-beta.3 → 3.4.2-beta.31
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 +136 -64
- package/dist/less.esm.css +5025 -0
- package/dist/less.esm.js +3 -0
- package/es/ProConfigProvider/index.js +2 -1
- package/es/ProEditTable/components/RenderField/index.js +20 -10
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/propsType.d.ts +1 -1
- package/es/ProEditTable/utils/config.js +5 -5
- package/es/ProEditTable/utils/index.js +67 -30
- package/es/ProEnum/components/Group.d.ts +2 -0
- package/es/ProEnum/components/Group.js +26 -8
- package/es/ProEnum/index.js +4 -3
- package/es/ProEnum/style/index.less +12 -3
- package/es/ProForm/components/combination/FormList/index.js +4 -2
- package/es/ProForm/components/combination/Group/index.js +11 -4
- package/es/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/components/render/Render.js +5 -2
- package/es/ProForm/components/render/RenderFields.d.ts +1 -1
- package/es/ProForm/components/render/RenderFields.js +4 -3
- package/es/ProForm/index.js +4 -4
- package/es/ProForm/propsType.d.ts +2 -1
- package/es/ProForm/style/index.less +17 -7
- package/es/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/es/ProForm/utils/diffOriginal.js +61 -0
- package/es/ProForm/utils/index.d.ts +1 -1
- package/es/ProForm/utils/index.js +1 -1
- package/es/ProForm/utils/transformValue.js +2 -2
- package/es/ProForm/utils/useChanged.js +4 -3
- package/es/ProForm/utils/useListChanged.d.ts +1 -1
- package/es/ProForm/utils/useListChanged.js +5 -3
- package/es/ProForm/utils/valueType.d.ts +10 -5
- package/es/ProForm/utils/valueType.js +20 -10
- package/es/ProIcon/config/index.d.ts +2 -1
- package/es/ProIcon/config/index.js +191 -133
- package/es/ProIcon/index.d.ts +0 -1
- package/es/ProIcon/index.js +17 -36
- package/es/ProIcon/propsTypes.d.ts +2 -1
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -1
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/es/ProLayout/components/Layout/Menu/style/index.less +2 -2
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -5
- package/es/ProLayout/components/ProCollapse/index.js +22 -6
- package/es/ProLayout/components/ProCollapse/style/index.less +24 -27
- package/es/ProLayout/components/ProFooter/index.js +1 -1
- package/es/ProLayout/components/ProFooter/style/index.less +1 -1
- package/es/ProLayout/components/ProHeader/style/index.less +4 -3
- package/es/ProLayout/style/index.less +83 -5
- package/es/ProStep/components/Item/index.js +2 -1
- package/es/ProStep/style/index.less +71 -70
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/es/ProTable/components/RenderColumn/index.js +3 -3
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/utils.js +9 -9
- package/es/ProTabs/style/index.less +3 -1
- package/es/ProTree/components/ProTreeSelect/index.js +5 -9
- package/es/assets/catalog.svg +30 -1
- package/es/assets/fold.svg +27 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +3 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +3 -0
- package/es/style/less.less +2 -0
- package/es/style/theme/antd.less +1 -2
- package/lib/ProConfigProvider/index.js +2 -1
- package/lib/ProEditTable/components/RenderField/index.js +20 -10
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/propsType.d.ts +1 -1
- package/lib/ProEditTable/utils/config.js +5 -5
- package/lib/ProEditTable/utils/index.js +67 -30
- package/lib/ProEnum/components/Group.d.ts +2 -0
- package/lib/ProEnum/components/Group.js +26 -8
- package/lib/ProEnum/index.js +4 -3
- package/lib/ProEnum/style/index.less +12 -3
- package/lib/ProForm/components/combination/FormList/index.js +4 -2
- package/lib/ProForm/components/combination/Group/index.js +11 -4
- package/lib/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/lib/ProForm/components/render/Render.js +5 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +1 -1
- package/lib/ProForm/components/render/RenderFields.js +4 -3
- package/lib/ProForm/index.js +4 -4
- package/lib/ProForm/propsType.d.ts +2 -1
- package/lib/ProForm/style/index.less +17 -7
- package/lib/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/lib/ProForm/utils/diffOriginal.js +68 -0
- package/lib/ProForm/utils/index.d.ts +1 -1
- package/lib/ProForm/utils/index.js +2 -2
- package/lib/ProForm/utils/transformValue.js +1 -1
- package/lib/ProForm/utils/useChanged.js +4 -3
- package/lib/ProForm/utils/useListChanged.d.ts +1 -1
- package/lib/ProForm/utils/useListChanged.js +5 -3
- package/lib/ProForm/utils/valueType.d.ts +10 -5
- package/lib/ProForm/utils/valueType.js +20 -10
- package/lib/ProIcon/config/index.d.ts +2 -1
- package/lib/ProIcon/config/index.js +191 -133
- package/lib/ProIcon/index.d.ts +0 -1
- package/lib/ProIcon/index.js +17 -37
- package/lib/ProIcon/propsTypes.d.ts +2 -1
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -1
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -2
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -5
- package/lib/ProLayout/components/ProCollapse/index.js +20 -6
- package/lib/ProLayout/components/ProCollapse/style/index.less +24 -27
- package/lib/ProLayout/components/ProFooter/index.js +1 -1
- package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
- package/lib/ProLayout/components/ProHeader/style/index.less +4 -3
- package/lib/ProLayout/style/index.less +83 -5
- package/lib/ProStep/components/Item/index.js +2 -1
- package/lib/ProStep/style/index.less +71 -70
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/lib/ProTable/components/RenderColumn/index.js +3 -3
- package/lib/ProTable/propsType.d.ts +1 -1
- package/lib/ProTable/utils.js +9 -9
- package/lib/ProTabs/style/index.less +3 -1
- package/lib/ProTree/components/ProTreeSelect/index.js +5 -9
- package/lib/assets/catalog.svg +30 -1
- package/lib/assets/fold.svg +27 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.js +3 -0
- package/lib/style/less.less +2 -0
- package/lib/style/theme/antd.less +1 -2
- package/package.json +1 -1
- package/es/ProForm/utils/contrastOriginal.js +0 -24
- package/es/ProIcon/symbolIcon.js +0 -43
- package/lib/ProForm/utils/contrastOriginal.js +0 -30
- package/lib/ProIcon/symbolIcon.js +0 -45
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "antd/es/descriptions/style";
|
|
2
2
|
import _Descriptions from "antd/es/descriptions";
|
|
3
|
+
import "antd/es/space/style";
|
|
4
|
+
import _Space from "antd/es/space";
|
|
3
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
7
|
import "antd/es/collapse/style";
|
|
@@ -7,6 +9,9 @@ import _Collapse from "antd/es/collapse";
|
|
|
7
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
10
|
import { CaretRightOutlined } from '@ant-design/icons';
|
|
9
11
|
import classNames from 'classnames';
|
|
12
|
+
import { ReactSVG } from 'react-svg';
|
|
13
|
+
import { isBoolean } from 'lodash';
|
|
14
|
+
import foldSvg from '../../../assets/fold.svg';
|
|
10
15
|
var Panel = _Collapse.Panel;
|
|
11
16
|
var ProCollapse = function ProCollapse(props) {
|
|
12
17
|
var title = props.title,
|
|
@@ -26,13 +31,11 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
26
31
|
_props$folding = props.folding,
|
|
27
32
|
folding = _props$folding === void 0 ? false : _props$folding,
|
|
28
33
|
collapseProps = props.collapseProps,
|
|
29
|
-
_props$mode = props.mode,
|
|
30
|
-
mode = _props$mode === void 0 ? 'default' : _props$mode,
|
|
31
34
|
collapsePanelProps = props.collapsePanelProps,
|
|
32
|
-
className = props.className
|
|
35
|
+
className = props.className,
|
|
36
|
+
icon = props.icon;
|
|
33
37
|
var cls = classNames(_defineProperty({
|
|
34
38
|
'pro-collapse': true,
|
|
35
|
-
'pro-collapse-card': mode === 'card',
|
|
36
39
|
'pro-collapse-level2': level === '2',
|
|
37
40
|
'pro-collapse-list': titleList === null || titleList === void 0 ? void 0 : titleList.length,
|
|
38
41
|
'pro-collapse-no-title': !title
|
|
@@ -43,6 +46,7 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
43
46
|
children: children
|
|
44
47
|
});
|
|
45
48
|
var renderPanel = function renderPanel() {
|
|
49
|
+
var _title = title;
|
|
46
50
|
if (level === '2') {
|
|
47
51
|
var level2Panel = classNames({
|
|
48
52
|
'pro-collapse-level2-collapse': towCollapse,
|
|
@@ -54,7 +58,7 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
54
58
|
hasCollapse.collapsible = 'disabled';
|
|
55
59
|
}
|
|
56
60
|
return _jsx(Panel, _objectSpread(_objectSpread(_objectSpread({
|
|
57
|
-
header:
|
|
61
|
+
header: _title,
|
|
58
62
|
className: level2Panel,
|
|
59
63
|
extra: _jsx("div", {
|
|
60
64
|
className: "extra-info",
|
|
@@ -65,8 +69,20 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
65
69
|
children: content
|
|
66
70
|
}), "1");
|
|
67
71
|
}
|
|
72
|
+
if (icon) {
|
|
73
|
+
_title = _jsxs(_Space, {
|
|
74
|
+
size: 8,
|
|
75
|
+
align: "center",
|
|
76
|
+
children: [_jsx("div", {
|
|
77
|
+
className: "pro-collapse-icon",
|
|
78
|
+
children: isBoolean(icon) ? _jsx(ReactSVG, {
|
|
79
|
+
src: foldSvg
|
|
80
|
+
}) : icon
|
|
81
|
+
}), title]
|
|
82
|
+
});
|
|
83
|
+
}
|
|
68
84
|
return _jsx(Panel, _objectSpread(_objectSpread({
|
|
69
|
-
header:
|
|
85
|
+
header: _title,
|
|
70
86
|
className: "pro-collapse-panel",
|
|
71
87
|
extra: _jsx("div", {
|
|
72
88
|
className: "extra-info",
|
|
@@ -2,34 +2,23 @@
|
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
4
|
.pro-collapse {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.@{ant-prefix}-collapse-header{
|
|
14
|
-
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
15
|
-
}
|
|
16
|
-
.pro-collapse-content{
|
|
17
|
-
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
18
|
-
padding-bottom: var(--zaui-space-size-sm, 8px) !important;
|
|
19
|
-
}
|
|
20
|
-
.pro-collapse-panel{
|
|
21
|
-
.@{ant-prefix}-collapse-header{
|
|
22
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
5
|
+
.pro-collapse-icon{
|
|
6
|
+
max-width: 18px;
|
|
7
|
+
min-width: 16px;
|
|
8
|
+
img{
|
|
9
|
+
vertical-align: sub;
|
|
25
10
|
}
|
|
26
11
|
}
|
|
27
12
|
|
|
28
|
-
|
|
29
13
|
&.pro-collapse-no-title {
|
|
30
14
|
.@{ant-prefix}-collapse-header {
|
|
31
15
|
display: none !important;
|
|
32
16
|
}
|
|
17
|
+
.pro-collapse-level2{
|
|
18
|
+
.@{ant-prefix}-collapse-header {
|
|
19
|
+
display: block !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
33
22
|
}
|
|
34
23
|
|
|
35
24
|
&.@{ant-prefix}-collapse {
|
|
@@ -51,7 +40,7 @@
|
|
|
51
40
|
}
|
|
52
41
|
|
|
53
42
|
.@{ant-prefix}-collapse-expand-icon {
|
|
54
|
-
color: #
|
|
43
|
+
color: #999;
|
|
55
44
|
}
|
|
56
45
|
|
|
57
46
|
&.@{ant-prefix}-collapse-borderless
|
|
@@ -73,16 +62,17 @@
|
|
|
73
62
|
}
|
|
74
63
|
|
|
75
64
|
&.pro-collapse-level2 {
|
|
76
|
-
margin-bottom: 0;
|
|
77
65
|
background: var(--zaui-base-bg, #ffffff);
|
|
78
|
-
|
|
66
|
+
.pro-collapse-panel{
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
79
69
|
.@{ant-prefix}-collapse-header {
|
|
80
70
|
padding: 0 !important;
|
|
81
71
|
background: var(--zaui-base-bg, #ffffff);
|
|
82
72
|
|
|
83
73
|
.@{ant-prefix}-collapse-header-text {
|
|
84
74
|
position: relative;
|
|
85
|
-
padding-left:
|
|
75
|
+
padding-left: 15px;
|
|
86
76
|
font-size: var(--zaui-font-size, 14px);
|
|
87
77
|
|
|
88
78
|
&::before {
|
|
@@ -106,10 +96,14 @@
|
|
|
106
96
|
}
|
|
107
97
|
|
|
108
98
|
.pro-collapse-content {
|
|
109
|
-
padding
|
|
99
|
+
padding: var(--zaui-space-size-sm, 8px) 0 !important;
|
|
110
100
|
}
|
|
111
101
|
|
|
112
102
|
.pro-collapse-level2-collapse {
|
|
103
|
+
margin-bottom: var(--zaui-space-size-md, 16px);
|
|
104
|
+
&.@{ant-prefix}-collapse-item-active{
|
|
105
|
+
margin-bottom: 0;
|
|
106
|
+
}
|
|
113
107
|
.@{ant-prefix}-collapse-header {
|
|
114
108
|
padding: 0 8px 6px !important;
|
|
115
109
|
border-bottom: 1px solid #dee0e3;
|
|
@@ -163,13 +157,16 @@
|
|
|
163
157
|
}
|
|
164
158
|
|
|
165
159
|
&.pro-collapse-list {
|
|
160
|
+
.@{ant-prefix}-descriptions-view{
|
|
161
|
+
margin: 0 -8px;
|
|
162
|
+
}
|
|
166
163
|
.@{ant-prefix}-descriptions-row > th,
|
|
167
164
|
.@{ant-prefix}-descriptions-row > td {
|
|
168
165
|
padding: var(--zaui-space-size-sm, 8px) 0;
|
|
169
166
|
background: #fafafa;
|
|
170
167
|
|
|
171
168
|
&.@{ant-prefix}-descriptions-item {
|
|
172
|
-
padding-left:
|
|
169
|
+
padding-left: 23px;
|
|
173
170
|
}
|
|
174
171
|
}
|
|
175
172
|
|
|
@@ -12,7 +12,7 @@ var ProFooter = function ProFooter(props) {
|
|
|
12
12
|
className = props.className,
|
|
13
13
|
children = props.children,
|
|
14
14
|
_props$zIndex = props.zIndex,
|
|
15
|
-
zIndex = _props$zIndex === void 0 ?
|
|
15
|
+
zIndex = _props$zIndex === void 0 ? 99 : _props$zIndex,
|
|
16
16
|
_props$sideDom = props.sideDom,
|
|
17
17
|
sideDom = _props$sideDom === void 0 ? '.pro-layout-sider-nav' : _props$sideDom,
|
|
18
18
|
_props$contentDom = props.contentDom,
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
.pro-header {
|
|
6
6
|
padding: 16px 0 0 0 !important;
|
|
7
7
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
8
|
+
box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
|
|
8
9
|
|
|
9
10
|
&.pro-header-no-back.pro-header-has-describe {
|
|
10
11
|
.pro-header-top {
|
|
@@ -101,11 +102,11 @@
|
|
|
101
102
|
&.pro-header-fixed {
|
|
102
103
|
position: sticky;
|
|
103
104
|
z-index: 101;
|
|
104
|
-
box-shadow: 0px
|
|
105
|
+
box-shadow: 0px 2px 4px 0px rgba(0, 55, 93, 0.2);
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
&.pro-header-shadow {
|
|
108
|
-
box-shadow: 0px
|
|
109
|
+
box-shadow: 0px 2px 4px 0px rgba(0, 55, 93, 0.2);
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
.@{ant-prefix}-breadcrumb {
|
|
@@ -216,7 +217,7 @@
|
|
|
216
217
|
.pro-header-nav {
|
|
217
218
|
position: relative;
|
|
218
219
|
display: flex;
|
|
219
|
-
background: #
|
|
220
|
+
background: #fafafa;
|
|
220
221
|
border-top: 1px solid #f2f2f2;
|
|
221
222
|
|
|
222
223
|
&.pro-header-nav-open {
|
|
@@ -21,7 +21,76 @@
|
|
|
21
21
|
|
|
22
22
|
// light模式
|
|
23
23
|
&.pro-layout-light {
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
// pro-collapse折叠调整
|
|
26
|
+
.pro-collapse {
|
|
27
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
28
|
+
&.@{ant-prefix}-collapse-borderless{
|
|
29
|
+
background: #fff;
|
|
30
|
+
}
|
|
31
|
+
&.pro-collapse-no-title{
|
|
32
|
+
.pro-collapse-content{
|
|
33
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
34
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
35
|
+
}
|
|
36
|
+
.pro-header-no-describe{
|
|
37
|
+
padding: 0 !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.@{ant-prefix}-collapse-item-active{
|
|
41
|
+
&.pro-collapse-panel{
|
|
42
|
+
.@{ant-prefix}-collapse-header{
|
|
43
|
+
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pro-collapse-content{
|
|
49
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
50
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
51
|
+
|
|
52
|
+
.pro-form{
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&.pro-collapse-level2{
|
|
57
|
+
.pro-collapse-panel .@{ant-prefix}-collapse-header{
|
|
58
|
+
background: #fff;
|
|
59
|
+
}
|
|
60
|
+
.pro-collapse-content{
|
|
61
|
+
padding-bottom: var(--zaui-space-size-sm, 8px);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pro-collapse-panel{
|
|
66
|
+
.@{ant-prefix}-collapse-header{
|
|
67
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
68
|
+
background: #E4F2FE;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// pro-header调整
|
|
75
|
+
.pro-header{
|
|
76
|
+
&.pro-header-no-describe{
|
|
77
|
+
padding: var(--zaui-space-size-md, 16px) !important;
|
|
78
|
+
.pro-header-top{
|
|
79
|
+
padding-bottom: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&.pro-header-has-describe{
|
|
83
|
+
.pro-header-nav-open{
|
|
84
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
.pro-layout-content {
|
|
92
|
+
padding: 0 var(--zaui-space-size-md, 16px);
|
|
93
|
+
background: #f3f5f8;
|
|
25
94
|
}
|
|
26
95
|
|
|
27
96
|
.pro-layout-menu-open,
|
|
@@ -129,7 +198,7 @@
|
|
|
129
198
|
}
|
|
130
199
|
|
|
131
200
|
.anticon-caret-down {
|
|
132
|
-
color: #
|
|
201
|
+
color: #999 !important;
|
|
133
202
|
}
|
|
134
203
|
|
|
135
204
|
.pro-layout-row .pro-layout-menu {
|
|
@@ -145,10 +214,17 @@
|
|
|
145
214
|
|
|
146
215
|
.pro-layout-open-menu .@{ant-prefix}-menu-title-content div h2 {
|
|
147
216
|
color: var(--zaui-text, #343434);
|
|
217
|
+
padding-right: 26px;
|
|
218
|
+
}
|
|
219
|
+
.@{ant-prefix}-menu-item-only-child{
|
|
220
|
+
.@{ant-prefix}-menu-title-content div h2{
|
|
221
|
+
padding-right: 16px;
|
|
222
|
+
}
|
|
148
223
|
}
|
|
149
224
|
|
|
150
225
|
.pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
|
|
151
|
-
.pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover
|
|
226
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover,
|
|
227
|
+
.pro-layout-open-menu .@{ant-prefix}-menu-item-selected{
|
|
152
228
|
position: relative;
|
|
153
229
|
background: transparent;
|
|
154
230
|
|
|
@@ -156,7 +232,8 @@
|
|
|
156
232
|
position: absolute;
|
|
157
233
|
left: var(--zaui-space-size-sm, 8px);
|
|
158
234
|
width: calc(100% - 16px);
|
|
159
|
-
height: 38px;
|
|
235
|
+
min-height: 38px;
|
|
236
|
+
height: 80%;
|
|
160
237
|
background-color: var(--zaui-brand, #006aff);
|
|
161
238
|
border-radius: var(--zaui-border-radius, 8px);
|
|
162
239
|
opacity: 0.08;
|
|
@@ -165,6 +242,7 @@
|
|
|
165
242
|
}
|
|
166
243
|
|
|
167
244
|
.pro-layout-open-menu .@{ant-prefix}-menu-item-selected {
|
|
245
|
+
padding-right: 16px;
|
|
168
246
|
&::after {
|
|
169
247
|
display: none;
|
|
170
248
|
}
|
|
@@ -192,7 +270,7 @@
|
|
|
192
270
|
margin-top: 48px;
|
|
193
271
|
margin-left: 48px;
|
|
194
272
|
padding: 0 var(--zaui-space-size-lg, 32px);
|
|
195
|
-
transition: all 0.
|
|
273
|
+
transition: all 0.24s ease;
|
|
196
274
|
|
|
197
275
|
&.pro-layout-has-notice {
|
|
198
276
|
min-height: calc(100vh - 80px);
|
|
@@ -23,7 +23,8 @@ export default (function (_ref) {
|
|
|
23
23
|
id: id,
|
|
24
24
|
children: !register || collapse && collapseItem && title ? _jsx(ProCollapse, _objectSpread(_objectSpread({
|
|
25
25
|
id: id,
|
|
26
|
-
title: title
|
|
26
|
+
title: title,
|
|
27
|
+
icon: true
|
|
27
28
|
}, restProps), {}, {
|
|
28
29
|
children: children
|
|
29
30
|
})) : children
|
|
@@ -6,37 +6,38 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.pro-step {
|
|
9
|
-
position
|
|
10
|
-
right
|
|
11
|
-
z-index
|
|
12
|
-
min-width
|
|
13
|
-
min-height
|
|
14
|
-
text-align : center;
|
|
15
|
-
background-color: var(--zaui-global-bg, #fff);
|
|
16
|
-
cursor : pointer;
|
|
17
|
-
box-shadow : -1px 0px 5px 0px var(--zaui-shadow, rgba(56,56,56,0.15));
|
|
18
|
-
transition : width .2s;
|
|
9
|
+
position: fixed;
|
|
10
|
+
right: 0;
|
|
11
|
+
z-index: 101;
|
|
12
|
+
min-width: 48px;
|
|
13
|
+
min-height: 48px;
|
|
19
14
|
overflow-x: hidden;
|
|
20
15
|
overflow-y: auto;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
text-align: center;
|
|
17
|
+
background-color: var(--zaui-global-bg, #fff);
|
|
18
|
+
border-radius: 0 0 var(--zaui-border-radius) var(--zaui-border-radius);
|
|
19
|
+
box-shadow: -1px 0px 5px 0px var(--zaui-shadow, rgba(56, 56, 56, 0.15));
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
transition: width 0.2s;
|
|
22
|
+
|
|
23
|
+
> .step-menu {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 48px;
|
|
28
|
+
font-size: var(--zaui-font-size-lg, 16px);
|
|
28
29
|
border-bottom: 1px solid var(--zaui-line, #dddddd);
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
> .menu-icon {
|
|
31
32
|
font-size: var(--zaui-font-size-lg-title, 24px);
|
|
32
|
-
fill
|
|
33
|
+
fill: var(--zaui-brand, #006aff);
|
|
33
34
|
|
|
34
|
-
>div {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
display : flex;
|
|
38
|
-
align-items : center;
|
|
35
|
+
> div {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
39
38
|
justify-content: center;
|
|
39
|
+
width: 48px;
|
|
40
|
+
height: 24px;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -50,12 +51,12 @@
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
.com-menu-item {
|
|
53
|
-
display
|
|
54
|
-
align-items
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
55
56
|
justify-content: space-between;
|
|
56
|
-
width
|
|
57
|
-
height
|
|
58
|
-
padding-right
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 48px;
|
|
59
|
+
padding-right: var(--zaui-space-size-md, 24px);
|
|
59
60
|
|
|
60
61
|
&:hover {
|
|
61
62
|
background-color: rgba(185, 185, 189, 0.1);
|
|
@@ -69,63 +70,63 @@
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
display
|
|
73
|
+
> .menu-item {
|
|
74
|
+
display: flex;
|
|
74
75
|
align-items: center;
|
|
75
76
|
|
|
76
|
-
|
|
77
|
-
display
|
|
78
|
-
align-items
|
|
77
|
+
> .menu-icon {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
79
80
|
justify-content: center;
|
|
80
|
-
width
|
|
81
|
-
height
|
|
81
|
+
width: 48px;
|
|
82
|
+
height: 100%;
|
|
82
83
|
|
|
83
|
-
>svg {
|
|
84
|
-
fill: var(--zaui-brand, #
|
|
84
|
+
> svg {
|
|
85
|
+
fill: var(--zaui-brand, #006aff);
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
width
|
|
89
|
-
height
|
|
90
|
-
background
|
|
88
|
+
> .dot {
|
|
89
|
+
width: 6px;
|
|
90
|
+
height: 6px;
|
|
91
|
+
background: var(--zaui-brand, #006aff);
|
|
91
92
|
border-radius: 3px;
|
|
92
93
|
|
|
93
94
|
&.errored {
|
|
94
95
|
background: #ff5050;
|
|
95
|
-
fill
|
|
96
|
+
fill: #ff5050;
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
&.disabled {
|
|
99
100
|
background: #939599;
|
|
100
|
-
fill
|
|
101
|
+
fill: #939599;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
.dot-icon {
|
|
105
|
-
display
|
|
106
|
-
align-items
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
107
108
|
justify-content: center;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
background
|
|
113
|
-
border-radius
|
|
109
|
+
width: 18px;
|
|
110
|
+
height: 18px;
|
|
111
|
+
color: #ffffff;
|
|
112
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
113
|
+
background: var(--zaui-brand, #006aff);
|
|
114
|
+
border-radius: 9px;
|
|
114
115
|
|
|
115
116
|
&.errored {
|
|
116
117
|
background: #ff5050;
|
|
117
|
-
fill
|
|
118
|
+
fill: #ff5050;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
&.disabled {
|
|
121
122
|
background: #939599;
|
|
122
|
-
fill
|
|
123
|
+
fill: #939599;
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
|
|
128
|
-
color: #
|
|
128
|
+
> .menu-name {
|
|
129
|
+
color: #0a0a0a;
|
|
129
130
|
|
|
130
131
|
&.disabled {
|
|
131
132
|
color: #626366;
|
|
@@ -133,26 +134,26 @@
|
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
|
|
137
|
+
> .checked-status {
|
|
137
138
|
height: 18px;
|
|
138
139
|
|
|
139
|
-
>svg {
|
|
140
|
-
fill: var(--zaui-brand, #
|
|
140
|
+
> svg {
|
|
141
|
+
fill: var(--zaui-brand, #006aff);
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
.errorDot {
|
|
144
|
-
display
|
|
145
|
-
align-items
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
146
147
|
justify-content: center;
|
|
147
|
-
width
|
|
148
|
-
height
|
|
149
|
-
background
|
|
150
|
-
border-radius
|
|
151
|
-
|
|
152
|
-
>span {
|
|
153
|
-
color
|
|
154
|
-
font-weight
|
|
155
|
-
font-size
|
|
148
|
+
width: 16px;
|
|
149
|
+
height: 16px;
|
|
150
|
+
background: rgba(255, 80, 80, 0.2);
|
|
151
|
+
border-radius: 8px;
|
|
152
|
+
|
|
153
|
+
> span {
|
|
154
|
+
color: #ff5050;
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
font-size: var(--aui-font-size-sm, 12px);
|
|
156
157
|
border-radius: 8px;
|
|
157
158
|
}
|
|
158
159
|
}
|
|
@@ -18,10 +18,10 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
18
18
|
ellipsis = props.ellipsis,
|
|
19
19
|
width = props.width,
|
|
20
20
|
originalValue = props.originalValue,
|
|
21
|
-
|
|
21
|
+
originalDiffTip = props.originalDiffTip;
|
|
22
22
|
if (originalValue !== undefined) {
|
|
23
23
|
var renderNode = value ? node : '-';
|
|
24
|
-
if (ellipsis ||
|
|
24
|
+
if (ellipsis || originalDiffTip) {
|
|
25
25
|
if (ellipsis) {
|
|
26
26
|
renderNode = _jsx(Text, {
|
|
27
27
|
style: {
|
|
@@ -38,7 +38,7 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
38
38
|
style: {
|
|
39
39
|
width: width
|
|
40
40
|
},
|
|
41
|
-
title:
|
|
41
|
+
title: originalDiffTip ? _jsxs(_Fragment, {
|
|
42
42
|
children: ["\u521D\u59CB\u503C\uFF1A", originalValue, _jsx("br", {}), ellipsis ? "\u5F53\u524D\u503C\uFF1A".concat(currentValue) : undefined]
|
|
43
43
|
}) : node,
|
|
44
44
|
children: renderNode
|
|
@@ -26,7 +26,7 @@ export interface ProTableColumn extends Omit<ColumnType<any>, 'dataIndex'> {
|
|
|
26
26
|
precision?: number;
|
|
27
27
|
code?: string | string[] | ((text: any, record: any) => string);
|
|
28
28
|
copyable?: boolean;
|
|
29
|
-
|
|
29
|
+
originalDiffTip?: boolean;
|
|
30
30
|
prefix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);
|
|
31
31
|
suffix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);
|
|
32
32
|
tooltip?: ReactNode | {
|