@zat-design/sisyphus-react 3.4.1 → 3.4.2-beta.10
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 +246 -209
- package/es/ProConfigProvider/index.js +8 -1
- package/es/ProEditLabel/style/index.less +1 -1
- package/es/ProEditTable/components/RenderField/index.js +13 -15
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/propsType.d.ts +1 -1
- package/es/ProEditTable/style/index.less +1 -1
- package/es/ProEditTable/utils/index.js +42 -26
- package/es/ProEditTable/utils/tools.js +3 -1
- package/es/ProEnum/style/index.less +6 -5
- package/es/ProForm/components/base/DatePicker/index.js +2 -2
- package/es/ProForm/components/base/InputNumber/index.js +3 -0
- package/es/ProForm/components/combination/Group/index.js +17 -3
- package/es/ProForm/components/combination/Group/propsType.d.ts +4 -0
- package/es/ProForm/components/combination/Group/style/index.less +7 -4
- package/es/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/es/ProForm/components/combination/Group/utils.js +10 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.js +8 -2
- package/es/ProForm/components/index.d.ts +0 -1
- package/es/ProForm/components/index.js +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.js +15 -23
- package/es/ProForm/components/render/Render.js +26 -18
- package/es/ProForm/components/render/RenderFields.d.ts +2 -1
- package/es/ProForm/components/render/RenderFields.js +4 -2
- package/es/ProForm/components/render/propsType.d.ts +1 -4
- package/es/ProForm/index.js +8 -6
- package/es/ProForm/propsType.d.ts +3 -1
- 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 +3 -1
- package/es/ProForm/utils/index.js +15 -14
- 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 +4 -3
- package/es/ProIcon/config/index.d.ts +4 -0
- package/es/ProIcon/config/index.js +199 -0
- package/es/ProIcon/index.js +77 -31
- package/es/ProIcon/propsTypes.d.ts +23 -1
- package/es/ProIcon/symbolIcon.js +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/es/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/es/ProLayout/components/ProCollapse/style/index.less +17 -9
- 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 +173 -87
- 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/style/index.less +2 -2
- package/es/ProTable/utils.js +9 -9
- package/es/ProTabs/style/index.less +3 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +2 -2
- package/es/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/es/ProThemeTools/index.js +21 -28
- package/es/ProThemeTools/propsType.d.ts +1 -1
- package/es/ProThemeTools/style/index.less +25 -8
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +2 -2
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/es/ProTree/index.js +1 -1
- package/es/ProTreeModal/style/index.less +10 -2
- package/es/ProUpload/style/fileItem.less +2 -2
- package/es/ProUpload/style/index.less +2 -2
- package/es/assets/setting.svg +14 -0
- package/es/style/components.less +0 -1
- package/es/style/theme/antd.less +0 -1
- package/es/style/theme/index.less +2 -2
- package/es/style/theme/tokens.less +2 -2
- package/es/tokens.js +2 -2
- package/lib/ProConfigProvider/index.js +8 -1
- package/lib/ProEditLabel/style/index.less +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +12 -14
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/propsType.d.ts +1 -1
- package/lib/ProEditTable/style/index.less +1 -1
- package/lib/ProEditTable/utils/index.js +42 -26
- package/lib/ProEditTable/utils/tools.js +3 -1
- package/lib/ProEnum/style/index.less +6 -5
- package/lib/ProForm/components/base/DatePicker/index.js +1 -1
- package/lib/ProForm/components/base/InputNumber/index.js +3 -0
- package/lib/ProForm/components/combination/Group/index.js +15 -1
- package/lib/ProForm/components/combination/Group/propsType.d.ts +4 -0
- package/lib/ProForm/components/combination/Group/style/index.less +7 -4
- package/lib/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/lib/ProForm/components/combination/Group/utils.js +11 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +7 -1
- package/lib/ProForm/components/index.d.ts +0 -1
- package/lib/ProForm/components/index.js +0 -7
- package/lib/ProForm/components/render/ConfirmWrapper.js +15 -23
- package/lib/ProForm/components/render/Render.js +25 -17
- package/lib/ProForm/components/render/RenderFields.d.ts +2 -1
- package/lib/ProForm/components/render/RenderFields.js +4 -2
- package/lib/ProForm/components/render/propsType.d.ts +1 -4
- package/lib/ProForm/index.js +7 -5
- package/lib/ProForm/propsType.d.ts +3 -1
- 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 +3 -1
- package/lib/ProForm/utils/index.js +16 -15
- 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 +4 -3
- package/lib/ProIcon/config/index.d.ts +4 -0
- package/lib/ProIcon/config/index.js +205 -0
- package/lib/ProIcon/index.js +77 -31
- package/lib/ProIcon/propsTypes.d.ts +23 -1
- package/lib/ProIcon/symbolIcon.js +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/lib/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/lib/ProLayout/components/ProCollapse/style/index.less +17 -9
- 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 +173 -87
- 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/style/index.less +2 -2
- package/lib/ProTable/utils.js +9 -9
- package/lib/ProTabs/style/index.less +3 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
- package/lib/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/lib/ProThemeTools/index.js +19 -27
- package/lib/ProThemeTools/propsType.d.ts +1 -1
- package/lib/ProThemeTools/style/index.less +25 -8
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +2 -2
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTreeModal/style/index.less +10 -2
- package/lib/ProUpload/style/fileItem.less +2 -2
- package/lib/ProUpload/style/index.less +2 -2
- package/lib/assets/setting.svg +14 -0
- package/lib/style/components.less +0 -1
- package/lib/style/theme/antd.less +0 -1
- package/lib/style/theme/index.less +2 -2
- package/lib/style/theme/tokens.less +2 -2
- package/lib/tokens.js +2 -2
- package/package.json +1 -1
- package/es/ProForm/utils/contrastOriginal.js +0 -24
- package/lib/ProForm/utils/contrastOriginal.js +0 -30
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
@root-entry-name: 'default';
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
6
|
-
@import
|
|
7
|
-
@import
|
|
8
|
-
|
|
4
|
+
@import '../components/Layout/index.less';
|
|
5
|
+
@import '../components/ProCollapse/style/index.less';
|
|
6
|
+
@import '../components/ProFooter/style/index.less';
|
|
7
|
+
@import '../components/ProHeader/style/index.less';
|
|
9
8
|
|
|
10
9
|
.pro-layout {
|
|
11
|
-
display
|
|
10
|
+
display: flex;
|
|
12
11
|
flex-direction: column;
|
|
13
|
-
background
|
|
12
|
+
background: var(--zaui-base-bg, #ffffff);
|
|
14
13
|
|
|
15
14
|
.pro-layout-menu-open {
|
|
16
15
|
.pro-layout-open-menu-lv1 {
|
|
@@ -23,6 +22,76 @@
|
|
|
23
22
|
// light模式
|
|
24
23
|
&.pro-layout-light {
|
|
25
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-border-radius, 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;
|
|
94
|
+
}
|
|
26
95
|
|
|
27
96
|
.pro-layout-menu-open,
|
|
28
97
|
.pro-layout-menu {
|
|
@@ -30,80 +99,92 @@
|
|
|
30
99
|
}
|
|
31
100
|
|
|
32
101
|
.pro-layout-open-menu .@{ant-prefix}-menu-title-content div .pro-layout-icon {
|
|
33
|
-
color : var(--zaui-text, #343434);
|
|
34
102
|
position: relative;
|
|
35
|
-
z-index
|
|
103
|
+
z-index: 1;
|
|
104
|
+
color: var(--zaui-text, #343434);
|
|
36
105
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
&>div {
|
|
106
|
+
.pro-layout-menu-fold {
|
|
107
|
+
.pro-layout-menu-fold-list {
|
|
108
|
+
border-right: 1px solid #f0f0f0;
|
|
109
|
+
li {
|
|
43
110
|
position: relative;
|
|
44
|
-
z-index : 1;
|
|
45
|
-
}
|
|
46
111
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
div .pro-layout-icon {
|
|
51
|
-
color: #fff;
|
|
112
|
+
& > div {
|
|
113
|
+
position: relative;
|
|
114
|
+
z-index: 1;
|
|
52
115
|
}
|
|
53
116
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
border-radius
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
117
|
+
&.active {
|
|
118
|
+
background: transparent;
|
|
119
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
120
|
+
|
|
121
|
+
div .pro-layout-icon {
|
|
122
|
+
color: #fff;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&::before {
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 4px;
|
|
128
|
+
left: 5px;
|
|
129
|
+
width: calc(100% - 10px);
|
|
130
|
+
height: 38px;
|
|
131
|
+
background-color: var(--zaui-brand, #006aff);
|
|
132
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
133
|
+
opacity: 1 !important;
|
|
134
|
+
content: '';
|
|
135
|
+
}
|
|
64
136
|
}
|
|
65
|
-
}
|
|
66
137
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
138
|
+
&:hover {
|
|
139
|
+
background: transparent;
|
|
140
|
+
|
|
141
|
+
&::before {
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: 4px;
|
|
144
|
+
left: 5px;
|
|
145
|
+
width: calc(100% - 10px);
|
|
146
|
+
height: 38px;
|
|
147
|
+
background-color: var(--zaui-brand, #006aff);
|
|
148
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
149
|
+
opacity: 0.08;
|
|
150
|
+
content: '';
|
|
151
|
+
}
|
|
80
152
|
}
|
|
81
153
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
color: var(--zaui-text, #343434);
|
|
154
|
+
div .pro-layout-icon {
|
|
155
|
+
color: var(--zaui-text, #343434);
|
|
156
|
+
}
|
|
86
157
|
}
|
|
87
158
|
}
|
|
88
159
|
}
|
|
89
160
|
|
|
90
|
-
|
|
91
|
-
.pro-layout-menu-fold-list li.active {
|
|
92
|
-
border-radius: var(--zaui-border-radius, 4px);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
161
|
.pro-layout-menu-collapsed {
|
|
96
162
|
position: relative;
|
|
163
|
+
background: var(--zaui-base-bg, #fff);
|
|
164
|
+
border-right: 1px solid #f0f0f0;
|
|
165
|
+
&:hover {
|
|
166
|
+
background: transparent !important;
|
|
167
|
+
}
|
|
168
|
+
&:hover::after {
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 5px;
|
|
171
|
+
left: 5px;
|
|
172
|
+
width: calc(100% - 10px);
|
|
173
|
+
height: 40px;
|
|
174
|
+
background-color: var(--zaui-brand, #006aff);
|
|
175
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
176
|
+
opacity: 0.08;
|
|
177
|
+
content: '';
|
|
178
|
+
}
|
|
97
179
|
|
|
98
180
|
&::before {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
width
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: 0;
|
|
183
|
+
left: var(--zaui-space-size-sm, 8px);
|
|
184
|
+
width: calc(100% - 16px);
|
|
185
|
+
height: 1px;
|
|
186
|
+
background: #dee0e3;
|
|
187
|
+
content: '';
|
|
107
188
|
}
|
|
108
189
|
}
|
|
109
190
|
|
|
@@ -112,45 +193,50 @@
|
|
|
112
193
|
border-color: var(--zaui-text, #343434);
|
|
113
194
|
}
|
|
114
195
|
}
|
|
115
|
-
|
|
116
|
-
.pro-layout-menu-collapsed {
|
|
117
|
-
background: var(--zaui-base-bg, #fff);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
196
|
.@{ant-prefix}-menu-root {
|
|
121
197
|
overflow-x: hidden !important;
|
|
122
198
|
}
|
|
123
199
|
|
|
124
200
|
.anticon-caret-down {
|
|
125
|
-
color: #
|
|
201
|
+
color: #999 !important;
|
|
126
202
|
}
|
|
127
203
|
|
|
128
204
|
.pro-layout-row .pro-layout-menu {
|
|
129
205
|
background: var(--zaui-base-bg, #ffffff);
|
|
130
206
|
}
|
|
131
207
|
|
|
132
|
-
.pro-layout-open-menu
|
|
208
|
+
.pro-layout-open-menu
|
|
209
|
+
.@{ant-prefix}-menu-root
|
|
210
|
+
> .@{ant-prefix}-menu-submenu
|
|
211
|
+
.@{ant-prefix}-menu-sub {
|
|
133
212
|
background: var(--zaui-base-bg, #ffffff);
|
|
134
213
|
}
|
|
135
214
|
|
|
136
215
|
.pro-layout-open-menu .@{ant-prefix}-menu-title-content div h2 {
|
|
137
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: 0;
|
|
222
|
+
}
|
|
138
223
|
}
|
|
139
224
|
|
|
140
225
|
.pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
|
|
141
226
|
.pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover {
|
|
227
|
+
position: relative;
|
|
142
228
|
background: transparent;
|
|
143
|
-
position : relative;
|
|
144
229
|
|
|
145
230
|
&:before {
|
|
146
|
-
|
|
147
|
-
|
|
231
|
+
position: absolute;
|
|
232
|
+
left: var(--zaui-space-size-sm, 8px);
|
|
233
|
+
width: calc(100% - 16px);
|
|
234
|
+
min-height: 38px;
|
|
235
|
+
height: 80%;
|
|
148
236
|
background-color: var(--zaui-brand, #006aff);
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
left : var(--zaui-space-size-sm, 8px);
|
|
153
|
-
width : calc(100% - 16px);
|
|
237
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
238
|
+
opacity: 0.08;
|
|
239
|
+
content: '';
|
|
154
240
|
}
|
|
155
241
|
}
|
|
156
242
|
|
|
@@ -175,18 +261,18 @@
|
|
|
175
261
|
|
|
176
262
|
/** 内容区 */
|
|
177
263
|
.pro-layout-content {
|
|
178
|
-
|
|
264
|
+
z-index: 1;
|
|
265
|
+
flex: auto;
|
|
266
|
+
flex: auto;
|
|
267
|
+
min-height: calc(100vh - 48px);
|
|
268
|
+
margin-top: 48px;
|
|
179
269
|
margin-left: 48px;
|
|
180
|
-
padding
|
|
181
|
-
transition
|
|
182
|
-
z-index : 1;
|
|
183
|
-
flex : auto;
|
|
184
|
-
min-height : calc(100vh - 48px);
|
|
185
|
-
margin-top : 48px;
|
|
270
|
+
padding: 0 var(--zaui-space-size-lg, 32px);
|
|
271
|
+
transition: all 0.24s ease;
|
|
186
272
|
|
|
187
273
|
&.pro-layout-has-notice {
|
|
188
|
-
margin-top: 80px;
|
|
189
274
|
min-height: calc(100vh - 80px);
|
|
275
|
+
margin-top: 80px;
|
|
190
276
|
}
|
|
191
277
|
}
|
|
192
278
|
|
|
@@ -208,7 +294,7 @@
|
|
|
208
294
|
}
|
|
209
295
|
}
|
|
210
296
|
|
|
211
|
-
.pro-layout-header-pure
|
|
297
|
+
.pro-layout-header-pure + .pro-layout-row {
|
|
212
298
|
.pro-layout-sider-new-nav {
|
|
213
299
|
top: 0 !important;
|
|
214
300
|
}
|
|
@@ -22,10 +22,10 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
22
22
|
ellipsis = props.ellipsis,
|
|
23
23
|
width = props.width,
|
|
24
24
|
originalValue = props.originalValue,
|
|
25
|
-
|
|
25
|
+
originalDiffTip = props.originalDiffTip;
|
|
26
26
|
if (originalValue !== undefined) {
|
|
27
27
|
var renderNode = value ? node : '-';
|
|
28
|
-
if (ellipsis ||
|
|
28
|
+
if (ellipsis || originalDiffTip) {
|
|
29
29
|
if (ellipsis) {
|
|
30
30
|
renderNode = (0, _jsxRuntime.jsx)(Text, {
|
|
31
31
|
style: {
|
|
@@ -42,7 +42,7 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
42
42
|
style: {
|
|
43
43
|
width: width
|
|
44
44
|
},
|
|
45
|
-
title:
|
|
45
|
+
title: originalDiffTip ? (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
46
46
|
children: ["\u521D\u59CB\u503C\uFF1A", originalValue, (0, _jsxRuntime.jsx)("br", {}), ellipsis ? "\u5F53\u524D\u503C\uFF1A".concat(currentValue) : undefined]
|
|
47
47
|
}) : node,
|
|
48
48
|
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 | {
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
margin-left: -8px;
|
|
178
178
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
179
179
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
180
|
-
border-radius: var(--zaui-border-radius,
|
|
180
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.varied-cell.empty-cell {
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
.@{ant-prefix}-pagination .@{ant-prefix}-pagination-item-active a {
|
|
433
433
|
color: #ffffff;
|
|
434
434
|
background: var(--zaui-brand, #006aff) !important;
|
|
435
|
-
border-radius: var(--zaui-border-radius,
|
|
435
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
.pro-table-footer {
|
package/lib/ProTable/utils.js
CHANGED
|
@@ -64,8 +64,8 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
64
64
|
prefix = column.prefix,
|
|
65
65
|
suffix = column.suffix,
|
|
66
66
|
dataIndex = column.dataIndex,
|
|
67
|
-
_column$
|
|
68
|
-
|
|
67
|
+
_column$originalDiffT = column.originalDiffTip,
|
|
68
|
+
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT;
|
|
69
69
|
// 前缀处理
|
|
70
70
|
var prefixNode = function prefixNode(value, record, index) {
|
|
71
71
|
if (!prefix) {
|
|
@@ -129,7 +129,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
129
129
|
node: renderValue,
|
|
130
130
|
value: value,
|
|
131
131
|
currentValue: renderValue,
|
|
132
|
-
|
|
132
|
+
originalDiffTip: originalDiffTip
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
135
|
// 千分位, 千分位带CNY前缀
|
|
@@ -158,7 +158,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
158
158
|
node: node,
|
|
159
159
|
value: value,
|
|
160
160
|
currentValue: renderValue,
|
|
161
|
-
|
|
161
|
+
originalDiffTip: originalDiffTip
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
164
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -210,7 +210,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
210
210
|
node: node,
|
|
211
211
|
value: value,
|
|
212
212
|
currentValue: renderValue,
|
|
213
|
-
|
|
213
|
+
originalDiffTip: originalDiffTip
|
|
214
214
|
});
|
|
215
215
|
};
|
|
216
216
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -231,7 +231,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
231
231
|
node: node,
|
|
232
232
|
value: value,
|
|
233
233
|
currentValue: renderValue,
|
|
234
|
-
|
|
234
|
+
originalDiffTip: originalDiffTip
|
|
235
235
|
});
|
|
236
236
|
};
|
|
237
237
|
} else if (precision || prefix || suffix) {
|
|
@@ -257,7 +257,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
257
257
|
node: node,
|
|
258
258
|
value: value,
|
|
259
259
|
currentValue: renderValue,
|
|
260
|
-
|
|
260
|
+
originalDiffTip: originalDiffTip
|
|
261
261
|
});
|
|
262
262
|
};
|
|
263
263
|
} else if (valueType === 'address') {
|
|
@@ -329,7 +329,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
329
329
|
node: value,
|
|
330
330
|
value: value,
|
|
331
331
|
currentValue: value || '-',
|
|
332
|
-
|
|
332
|
+
originalDiffTip: originalDiffTip
|
|
333
333
|
}), suffixNode(value, record, index)]
|
|
334
334
|
});
|
|
335
335
|
};
|
|
@@ -351,7 +351,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
351
351
|
node: node,
|
|
352
352
|
value: value,
|
|
353
353
|
currentValue: value || '-',
|
|
354
|
-
|
|
354
|
+
originalDiffTip: originalDiffTip
|
|
355
355
|
});
|
|
356
356
|
};
|
|
357
357
|
}
|
|
@@ -70,9 +70,11 @@
|
|
|
70
70
|
.pro-tabs-tab {
|
|
71
71
|
.pro-tabs-card {
|
|
72
72
|
.@{ant-prefix}-tag {
|
|
73
|
+
min-width: 22px;
|
|
73
74
|
margin-right: 0;
|
|
74
75
|
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
75
|
-
|
|
76
|
+
text-align: center;
|
|
77
|
+
border-radius: 12px;
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
.@{ant-prefix}-space-item {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DevToolsPropsType } from '../../propsType';
|
|
2
|
-
declare const PrdTools: ({ onReset, onClose, setState,
|
|
2
|
+
declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, prefixCls, }: DevToolsPropsType) => JSX.Element;
|
|
3
3
|
export default PrdTools;
|
|
@@ -24,7 +24,7 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
24
24
|
var onReset = _ref.onReset,
|
|
25
25
|
onClose = _ref.onClose,
|
|
26
26
|
setState = _ref.setState,
|
|
27
|
-
|
|
27
|
+
open = _ref.open,
|
|
28
28
|
state = _ref.state,
|
|
29
29
|
tableBorder = _ref.tableBorder,
|
|
30
30
|
tableStripe = _ref.tableStripe,
|
|
@@ -68,7 +68,7 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
68
68
|
title: "".concat(_locale.default.ProThemeTools.title),
|
|
69
69
|
placement: "right",
|
|
70
70
|
onClose: onClose,
|
|
71
|
-
open:
|
|
71
|
+
open: open,
|
|
72
72
|
closable: false,
|
|
73
73
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
74
74
|
className: "pro-drawer-close",
|
|
@@ -10,13 +10,14 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
var _icons = require("@ant-design/icons");
|
|
14
13
|
var _antd = require("antd");
|
|
15
14
|
var _react = require("react");
|
|
16
15
|
var _ahooks = require("ahooks");
|
|
16
|
+
var _reactSvg = require("react-svg");
|
|
17
17
|
var _lodash = require("lodash");
|
|
18
18
|
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
19
19
|
var _index = require("./utils/index");
|
|
20
|
+
var _setting = _interopRequireDefault(require("../assets/setting.svg"));
|
|
20
21
|
var _component = require("./component");
|
|
21
22
|
var _locale = _interopRequireDefault(require("../locale"));
|
|
22
23
|
var _excluded = ["size", "className", "cacheTime", "color", "mode", "iconFollowTheme", "prefixCls", "tableBorder", "tableStripe", "theme", "onChange"];
|
|
@@ -54,24 +55,18 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
54
55
|
theme = _ref$theme === void 0 ? {} : _ref$theme,
|
|
55
56
|
onChange = _ref.onChange,
|
|
56
57
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
57
|
-
var
|
|
58
|
+
var _useToggle = (0, _ahooks.useToggle)(false),
|
|
59
|
+
_useToggle2 = (0, _slicedToArray2.default)(_useToggle, 2),
|
|
60
|
+
visible = _useToggle2[0],
|
|
61
|
+
toggle = _useToggle2[1].toggle;
|
|
62
|
+
var _useState = (0, _react.useState)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, defaultThemeConfig), (0, _index.getMapHumpCase)(theme))),
|
|
58
63
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
var _useState3 = (0, _react.useState)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, defaultThemeConfig), (0, _index.getMapHumpCase)(theme))),
|
|
62
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
63
|
-
state = _useState4[0],
|
|
64
|
-
setState = _useState4[1];
|
|
64
|
+
state = _useState2[0],
|
|
65
|
+
setState = _useState2[1];
|
|
65
66
|
var previousState = (0, _ahooks.usePrevious)(state);
|
|
66
67
|
var zauiBrand = state.zauiBrand,
|
|
67
68
|
zauiStripe = state.zauiStripe,
|
|
68
69
|
zauiTableBorder = state.zauiTableBorder;
|
|
69
|
-
var showDrawer = function showDrawer() {
|
|
70
|
-
setVisible(true);
|
|
71
|
-
};
|
|
72
|
-
var onClose = function onClose() {
|
|
73
|
-
setVisible(false);
|
|
74
|
-
};
|
|
75
70
|
// 重置
|
|
76
71
|
var onReset = function onReset() {
|
|
77
72
|
setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), defaultThemeConfig));
|
|
@@ -184,24 +179,21 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
184
179
|
'pro-theme-tools': true,
|
|
185
180
|
'pro-theme-tools-follow': iconFollowTheme
|
|
186
181
|
}, className, className));
|
|
187
|
-
return (0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
onClick: function onClick() {
|
|
196
|
-
showDrawer();
|
|
197
|
-
}
|
|
182
|
+
return (0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
183
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
184
|
+
className: cls,
|
|
185
|
+
onClick: toggle,
|
|
186
|
+
children: (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
|
|
187
|
+
className: "setting-icon",
|
|
188
|
+
src: _setting.default
|
|
189
|
+
})
|
|
198
190
|
}), (0, _jsxRuntime.jsx)(_component.PrdTools, {
|
|
199
191
|
prefixCls: prefixCls,
|
|
200
192
|
onReset: onReset,
|
|
201
|
-
onClose:
|
|
193
|
+
onClose: toggle,
|
|
202
194
|
onCopy: onCopy,
|
|
203
195
|
setState: setState,
|
|
204
|
-
|
|
196
|
+
open: visible,
|
|
205
197
|
state: state,
|
|
206
198
|
tableBorder: tableBorder,
|
|
207
199
|
tableStripe: tableStripe
|