@zat-design/sisyphus-react 3.4.2-beta.2 → 3.4.2-beta.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/dist/index.esm.css +139 -84
- package/es/ProEditTable/components/RenderField/index.js +12 -14
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/propsType.d.ts +1 -1
- package/es/ProEditTable/utils/index.js +1 -1
- package/es/ProEditTable/utils/tools.js +3 -1
- package/es/ProForm/components/combination/Group/index.js +6 -9
- package/es/ProForm/components/combination/Group/style/index.less +4 -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/render/Render.js +2 -2
- package/es/ProForm/components/render/RenderFields.d.ts +1 -1
- package/es/ProForm/components/render/RenderFields.js +2 -2
- package/es/ProForm/index.js +4 -4
- package/es/ProForm/propsType.d.ts +1 -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 +1 -1
- package/es/ProForm/utils/index.js +1 -1
- package/es/ProForm/utils/transformValue.js +2 -2
- package/es/ProForm/utils/useChanged.js +11 -3
- package/es/ProForm/utils/useListChanged.js +2 -2
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +59 -55
- package/es/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/es/ProLayout/components/ProCollapse/style/index.less +7 -1
- package/es/ProLayout/style/index.less +98 -88
- 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/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +2 -2
- 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/assets/setting.svg +14 -0
- package/lib/ProEditTable/components/RenderField/index.js +11 -13
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/propsType.d.ts +1 -1
- package/lib/ProEditTable/utils/index.js +1 -1
- package/lib/ProEditTable/utils/tools.js +3 -1
- package/lib/ProForm/components/combination/Group/index.js +4 -7
- package/lib/ProForm/components/combination/Group/style/index.less +4 -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/render/Render.js +2 -2
- package/lib/ProForm/components/render/RenderFields.d.ts +1 -1
- package/lib/ProForm/components/render/RenderFields.js +2 -2
- package/lib/ProForm/index.js +4 -4
- package/lib/ProForm/propsType.d.ts +1 -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 +1 -1
- package/lib/ProForm/utils/index.js +2 -2
- package/lib/ProForm/utils/transformValue.js +1 -1
- package/lib/ProForm/utils/useChanged.js +11 -3
- package/lib/ProForm/utils/useListChanged.js +2 -2
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +59 -55
- package/lib/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/lib/ProLayout/components/ProCollapse/style/index.less +7 -1
- package/lib/ProLayout/style/index.less +98 -88
- 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/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
- 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/assets/setting.svg +14 -0
- package/package.json +1 -1
- package/es/ProForm/utils/contrastOriginal.js +0 -24
- package/lib/ProForm/utils/contrastOriginal.js +0 -30
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
@root-entry-name: 'default';
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
-
@import
|
|
4
|
-
@import
|
|
5
|
-
@import
|
|
3
|
+
@import '../FoldMenu/style/index.less';
|
|
4
|
+
@import '../OpenMenu/style/index.less';
|
|
5
|
+
@import '../SideMenu/style/index.less';
|
|
6
6
|
|
|
7
7
|
/** 侧边栏 + 内容区 */
|
|
8
8
|
.pro-layout-row {
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
.pro-layout-menu-open {
|
|
13
|
-
.pro-layout-arrow
|
|
12
|
+
.pro-layout-arrow {
|
|
14
13
|
transform: rotate(225deg);
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
.pro-layout-arrow {
|
|
19
|
-
width
|
|
20
|
-
height
|
|
18
|
+
width: 10px;
|
|
19
|
+
height: 10px;
|
|
20
|
+
margin-left: -5px;
|
|
21
21
|
background-color: transparent;
|
|
22
22
|
/* 模块背景为透明 */
|
|
23
|
-
border-color
|
|
24
|
-
border-style
|
|
25
|
-
border-width
|
|
26
|
-
|
|
27
|
-
transform : rotate(45deg);
|
|
23
|
+
border-color: #fff;
|
|
24
|
+
border-style: solid;
|
|
25
|
+
border-width: 2px 2px 0 0;
|
|
26
|
+
transform: rotate(45deg);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
&.pro-layout-menu-no-collapsed {
|
|
31
30
|
.pro-layout-menu-fold-li {
|
|
32
|
-
display
|
|
33
|
-
align-items
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
34
33
|
justify-content: center;
|
|
35
34
|
|
|
36
35
|
div {
|
|
@@ -42,11 +41,10 @@
|
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
h2 {
|
|
45
|
-
display
|
|
44
|
+
display: inline-block;
|
|
46
45
|
white-space: nowrap;
|
|
47
|
-
opacity
|
|
48
|
-
transition
|
|
49
|
-
color 0.5s;
|
|
46
|
+
opacity: 0;
|
|
47
|
+
transition: opacity 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.5s;
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
}
|
|
@@ -81,18 +79,18 @@
|
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
.pro-layout-menu {
|
|
84
|
-
position
|
|
85
|
-
top
|
|
86
|
-
left
|
|
87
|
-
z-index
|
|
88
|
-
width
|
|
89
|
-
height
|
|
90
|
-
min-height
|
|
91
|
-
padding
|
|
92
|
-
overflow-x
|
|
93
|
-
overflow-y
|
|
82
|
+
position: fixed;
|
|
83
|
+
top: 48px;
|
|
84
|
+
left: 0;
|
|
85
|
+
z-index: 99;
|
|
86
|
+
width: 48px;
|
|
87
|
+
height: 100vh;
|
|
88
|
+
min-height: 100%;
|
|
89
|
+
padding: 0;
|
|
90
|
+
overflow-x: hidden;
|
|
91
|
+
overflow-y: auto;
|
|
94
92
|
background-color: #1a202d;
|
|
95
|
-
transition
|
|
93
|
+
transition: background 0.3s, width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;
|
|
96
94
|
|
|
97
95
|
&.pro-layout-menu-open {
|
|
98
96
|
width: 220px;
|
|
@@ -101,52 +99,50 @@
|
|
|
101
99
|
|
|
102
100
|
/** 内容区 */
|
|
103
101
|
.pro-layout-content {
|
|
104
|
-
|
|
102
|
+
z-index: 1;
|
|
103
|
+
flex: auto;
|
|
104
|
+
flex: auto;
|
|
105
|
+
min-height: calc(100vh - 48px);
|
|
106
|
+
margin-top: 48px;
|
|
105
107
|
margin-left: 48px;
|
|
106
|
-
padding
|
|
107
|
-
transition
|
|
108
|
-
z-index : 1;
|
|
109
|
-
flex : auto;
|
|
110
|
-
min-height : calc(100vh - 48px);
|
|
111
|
-
margin-top : 48px;
|
|
108
|
+
padding: 0 var(--zaui-space-size-md, 16px);
|
|
109
|
+
transition: all 0.3s ease-in-out;
|
|
112
110
|
}
|
|
113
111
|
|
|
114
|
-
|
|
115
|
-
|
|
116
112
|
.pro-layout-menu.pro-layout-menu-open .pro-layout-menu-collapsed {
|
|
117
|
-
left
|
|
118
|
-
width: 220px
|
|
113
|
+
left: 0;
|
|
114
|
+
width: 220px;
|
|
119
115
|
}
|
|
120
116
|
|
|
121
117
|
.pro-layout-menu.pro-layout-menu-open .pro-layout-menu-collapsed img {
|
|
122
|
-
transform: rotate(-180deg)
|
|
118
|
+
transform: rotate(-180deg);
|
|
123
119
|
}
|
|
124
120
|
|
|
125
121
|
.pro-layout-menu .pro-layout-menu-collapsed {
|
|
126
|
-
position
|
|
127
|
-
bottom
|
|
128
|
-
left
|
|
129
|
-
z-index
|
|
130
|
-
display
|
|
131
|
-
align-items
|
|
122
|
+
position: fixed;
|
|
123
|
+
bottom: 0;
|
|
124
|
+
left: 0;
|
|
125
|
+
z-index: 2;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
132
128
|
justify-content: center;
|
|
133
|
-
width
|
|
134
|
-
height
|
|
135
|
-
|
|
136
|
-
|
|
129
|
+
width: 48px;
|
|
130
|
+
height: 48px;
|
|
131
|
+
background: #292f3b;
|
|
132
|
+
transition: all 0.25s ease;
|
|
137
133
|
}
|
|
138
134
|
|
|
139
135
|
.pro-layout-menu .pro-layout-menu-collapsed:hover {
|
|
140
|
-
background-color: rgba(185, 185, 189, .1)
|
|
136
|
+
background-color: rgba(185, 185, 189, 0.1);
|
|
141
137
|
}
|
|
142
138
|
|
|
143
139
|
.pro-layout-menu .pro-layout-menu-collapsed img {
|
|
144
140
|
display: inline-block;
|
|
145
|
-
width
|
|
146
|
-
height
|
|
141
|
+
width: 20px;
|
|
142
|
+
height: 20px;
|
|
147
143
|
}
|
|
148
144
|
|
|
149
|
-
.pro-layout-menu-open
|
|
150
|
-
margin-left: 220px !important
|
|
145
|
+
.pro-layout-menu-open ~ .pro-layout-content {
|
|
146
|
+
margin-left: 220px !important;
|
|
151
147
|
}
|
|
152
148
|
}
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
18
18
|
padding-bottom: var(--zaui-space-size-sm, 8px) !important;
|
|
19
19
|
}
|
|
20
|
+
.pro-collapse-panel{
|
|
21
|
+
.@{ant-prefix}-collapse-header{
|
|
22
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
|
|
@@ -106,7 +112,7 @@
|
|
|
106
112
|
.pro-collapse-level2-collapse {
|
|
107
113
|
.@{ant-prefix}-collapse-header {
|
|
108
114
|
padding: 0 8px 6px !important;
|
|
109
|
-
border-bottom:
|
|
115
|
+
border-bottom: 1px solid #dee0e3;
|
|
110
116
|
margin: 0 -8px;
|
|
111
117
|
.@{ant-prefix}-collapse-arrow{
|
|
112
118
|
right: 8px;
|
|
@@ -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 {
|
|
@@ -22,7 +21,8 @@
|
|
|
22
21
|
|
|
23
22
|
// light模式
|
|
24
23
|
&.pro-layout-light {
|
|
25
|
-
|
|
24
|
+
.pro-layout-menu-collapsed {
|
|
25
|
+
}
|
|
26
26
|
|
|
27
27
|
.pro-layout-menu-open,
|
|
28
28
|
.pro-layout-menu {
|
|
@@ -30,80 +30,92 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.pro-layout-open-menu .@{ant-prefix}-menu-title-content div .pro-layout-icon {
|
|
33
|
-
color : var(--zaui-text, #343434);
|
|
34
33
|
position: relative;
|
|
35
|
-
z-index
|
|
34
|
+
z-index: 1;
|
|
35
|
+
color: var(--zaui-text, #343434);
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
&>div {
|
|
37
|
+
.pro-layout-menu-fold {
|
|
38
|
+
.pro-layout-menu-fold-list {
|
|
39
|
+
border-right: 1px solid #f0f0f0;
|
|
40
|
+
li {
|
|
43
41
|
position: relative;
|
|
44
|
-
z-index : 1;
|
|
45
|
-
}
|
|
46
42
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
div .pro-layout-icon {
|
|
51
|
-
color: #fff;
|
|
43
|
+
& > div {
|
|
44
|
+
position: relative;
|
|
45
|
+
z-index: 1;
|
|
52
46
|
}
|
|
53
47
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
border-radius
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
48
|
+
&.active {
|
|
49
|
+
background: transparent;
|
|
50
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
51
|
+
|
|
52
|
+
div .pro-layout-icon {
|
|
53
|
+
color: #fff;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&::before {
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 4px;
|
|
59
|
+
left: 5px;
|
|
60
|
+
width: calc(100% - 10px);
|
|
61
|
+
height: 38px;
|
|
62
|
+
background-color: var(--zaui-brand, #006aff);
|
|
63
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
64
|
+
opacity: 1 !important;
|
|
65
|
+
content: '';
|
|
66
|
+
}
|
|
64
67
|
}
|
|
65
|
-
}
|
|
66
68
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
&:hover {
|
|
70
|
+
background: transparent;
|
|
71
|
+
|
|
72
|
+
&::before {
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 4px;
|
|
75
|
+
left: 5px;
|
|
76
|
+
width: calc(100% - 10px);
|
|
77
|
+
height: 38px;
|
|
78
|
+
background-color: var(--zaui-brand, #006aff);
|
|
79
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
80
|
+
opacity: 0.08;
|
|
81
|
+
content: '';
|
|
82
|
+
}
|
|
80
83
|
}
|
|
81
84
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
color: var(--zaui-text, #343434);
|
|
85
|
+
div .pro-layout-icon {
|
|
86
|
+
color: var(--zaui-text, #343434);
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
|
|
91
|
-
.pro-layout-menu-fold-list li.active {
|
|
92
|
-
border-radius: var(--zaui-border-radius, 8px);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
92
|
.pro-layout-menu-collapsed {
|
|
96
93
|
position: relative;
|
|
94
|
+
background: var(--zaui-base-bg, #fff);
|
|
95
|
+
border-right: 1px solid #f0f0f0;
|
|
96
|
+
&:hover {
|
|
97
|
+
background: transparent !important;
|
|
98
|
+
}
|
|
99
|
+
&:hover::after {
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: 5px;
|
|
102
|
+
left: 5px;
|
|
103
|
+
width: calc(100% - 10px);
|
|
104
|
+
height: 40px;
|
|
105
|
+
background-color: var(--zaui-brand, #006aff);
|
|
106
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
107
|
+
opacity: 0.08;
|
|
108
|
+
content: '';
|
|
109
|
+
}
|
|
97
110
|
|
|
98
111
|
&::before {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
width
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 0;
|
|
114
|
+
left: var(--zaui-space-size-sm, 8px);
|
|
115
|
+
width: calc(100% - 16px);
|
|
116
|
+
height: 1px;
|
|
117
|
+
background: #dee0e3;
|
|
118
|
+
content: '';
|
|
107
119
|
}
|
|
108
120
|
}
|
|
109
121
|
|
|
@@ -112,24 +124,22 @@
|
|
|
112
124
|
border-color: var(--zaui-text, #343434);
|
|
113
125
|
}
|
|
114
126
|
}
|
|
115
|
-
|
|
116
|
-
.pro-layout-menu-collapsed {
|
|
117
|
-
background: var(--zaui-base-bg, #fff);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
127
|
.@{ant-prefix}-menu-root {
|
|
121
128
|
overflow-x: hidden !important;
|
|
122
129
|
}
|
|
123
130
|
|
|
124
131
|
.anticon-caret-down {
|
|
125
|
-
color: #
|
|
132
|
+
color: #cacaca !important;
|
|
126
133
|
}
|
|
127
134
|
|
|
128
135
|
.pro-layout-row .pro-layout-menu {
|
|
129
136
|
background: var(--zaui-base-bg, #ffffff);
|
|
130
137
|
}
|
|
131
138
|
|
|
132
|
-
.pro-layout-open-menu
|
|
139
|
+
.pro-layout-open-menu
|
|
140
|
+
.@{ant-prefix}-menu-root
|
|
141
|
+
> .@{ant-prefix}-menu-submenu
|
|
142
|
+
.@{ant-prefix}-menu-sub {
|
|
133
143
|
background: var(--zaui-base-bg, #ffffff);
|
|
134
144
|
}
|
|
135
145
|
|
|
@@ -139,18 +149,18 @@
|
|
|
139
149
|
|
|
140
150
|
.pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
|
|
141
151
|
.pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover {
|
|
152
|
+
position: relative;
|
|
142
153
|
background: transparent;
|
|
143
|
-
position : relative;
|
|
144
154
|
|
|
145
155
|
&:before {
|
|
146
|
-
|
|
147
|
-
|
|
156
|
+
position: absolute;
|
|
157
|
+
left: var(--zaui-space-size-sm, 8px);
|
|
158
|
+
width: calc(100% - 16px);
|
|
159
|
+
height: 38px;
|
|
148
160
|
background-color: var(--zaui-brand, #006aff);
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
left : var(--zaui-space-size-sm, 8px);
|
|
153
|
-
width : calc(100% - 16px);
|
|
161
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
162
|
+
opacity: 0.08;
|
|
163
|
+
content: '';
|
|
154
164
|
}
|
|
155
165
|
}
|
|
156
166
|
|
|
@@ -175,18 +185,18 @@
|
|
|
175
185
|
|
|
176
186
|
/** 内容区 */
|
|
177
187
|
.pro-layout-content {
|
|
178
|
-
|
|
188
|
+
z-index: 1;
|
|
189
|
+
flex: auto;
|
|
190
|
+
flex: auto;
|
|
191
|
+
min-height: calc(100vh - 48px);
|
|
192
|
+
margin-top: 48px;
|
|
179
193
|
margin-left: 48px;
|
|
180
|
-
padding
|
|
181
|
-
transition
|
|
182
|
-
z-index : 1;
|
|
183
|
-
flex : auto;
|
|
184
|
-
min-height : calc(100vh - 48px);
|
|
185
|
-
margin-top : 48px;
|
|
194
|
+
padding: 0 var(--zaui-space-size-lg, 32px);
|
|
195
|
+
transition: all 0.3s ease-in-out;
|
|
186
196
|
|
|
187
197
|
&.pro-layout-has-notice {
|
|
188
|
-
margin-top: 80px;
|
|
189
198
|
min-height: calc(100vh - 80px);
|
|
199
|
+
margin-top: 80px;
|
|
190
200
|
}
|
|
191
201
|
}
|
|
192
202
|
|
|
@@ -208,7 +218,7 @@
|
|
|
208
218
|
}
|
|
209
219
|
}
|
|
210
220
|
|
|
211
|
-
.pro-layout-header-pure
|
|
221
|
+
.pro-layout-header-pure + .pro-layout-row {
|
|
212
222
|
.pro-layout-sider-new-nav {
|
|
213
223
|
top: 0 !important;
|
|
214
224
|
}
|
|
@@ -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 | {
|
package/es/ProTable/utils.js
CHANGED
|
@@ -57,8 +57,8 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
57
57
|
prefix = column.prefix,
|
|
58
58
|
suffix = column.suffix,
|
|
59
59
|
dataIndex = column.dataIndex,
|
|
60
|
-
_column$
|
|
61
|
-
|
|
60
|
+
_column$originalDiffT = column.originalDiffTip,
|
|
61
|
+
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT;
|
|
62
62
|
// 前缀处理
|
|
63
63
|
var prefixNode = function prefixNode(value, record, index) {
|
|
64
64
|
if (!prefix) {
|
|
@@ -122,7 +122,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
122
122
|
node: renderValue,
|
|
123
123
|
value: value,
|
|
124
124
|
currentValue: renderValue,
|
|
125
|
-
|
|
125
|
+
originalDiffTip: originalDiffTip
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
// 千分位, 千分位带CNY前缀
|
|
@@ -151,7 +151,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
151
151
|
node: node,
|
|
152
152
|
value: value,
|
|
153
153
|
currentValue: renderValue,
|
|
154
|
-
|
|
154
|
+
originalDiffTip: originalDiffTip
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -203,7 +203,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
203
203
|
node: node,
|
|
204
204
|
value: value,
|
|
205
205
|
currentValue: renderValue,
|
|
206
|
-
|
|
206
|
+
originalDiffTip: originalDiffTip
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
209
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -224,7 +224,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
224
224
|
node: node,
|
|
225
225
|
value: value,
|
|
226
226
|
currentValue: renderValue,
|
|
227
|
-
|
|
227
|
+
originalDiffTip: originalDiffTip
|
|
228
228
|
});
|
|
229
229
|
};
|
|
230
230
|
} else if (precision || prefix || suffix) {
|
|
@@ -250,7 +250,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
250
250
|
node: node,
|
|
251
251
|
value: value,
|
|
252
252
|
currentValue: renderValue,
|
|
253
|
-
|
|
253
|
+
originalDiffTip: originalDiffTip
|
|
254
254
|
});
|
|
255
255
|
};
|
|
256
256
|
} else if (valueType === 'address') {
|
|
@@ -322,7 +322,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
322
322
|
node: value,
|
|
323
323
|
value: value,
|
|
324
324
|
currentValue: value || '-',
|
|
325
|
-
|
|
325
|
+
originalDiffTip: originalDiffTip
|
|
326
326
|
}), suffixNode(value, record, index)]
|
|
327
327
|
});
|
|
328
328
|
};
|
|
@@ -344,7 +344,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
344
344
|
node: node,
|
|
345
345
|
value: value,
|
|
346
346
|
currentValue: value || '-',
|
|
347
|
-
|
|
347
|
+
originalDiffTip: originalDiffTip
|
|
348
348
|
});
|
|
349
349
|
};
|
|
350
350
|
}
|
|
@@ -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.ProThemeTools.title),
|
|
69
69
|
placement: "right",
|
|
70
70
|
onClose: onClose,
|
|
71
|
-
open:
|
|
71
|
+
open: open,
|
|
72
72
|
closable: false,
|
|
73
73
|
children: [_jsx("div", {
|
|
74
74
|
className: "pro-drawer-close",
|