@zat-design/sisyphus-react 3.2.2 → 3.3.0

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.
Files changed (170) hide show
  1. package/README.md +7 -0
  2. package/dist/index.esm.css +82 -37
  3. package/es/ProAction/index.less +3 -0
  4. package/es/ProDownload/index.js +9 -6
  5. package/es/ProDownload/style/index.less +5 -2
  6. package/es/ProDrawerForm/index.js +1 -15
  7. package/es/ProDrawerForm/style/index.less +76 -73
  8. package/es/ProEditLabel/style/index.less +12 -9
  9. package/es/ProEditTable/index.js +8 -4
  10. package/es/ProEditTable/style/index.less +57 -47
  11. package/es/ProEditTable/utils/config.d.ts +1 -1
  12. package/es/ProEditTable/utils/config.js +3 -3
  13. package/es/ProEnum/style/index.less +3 -0
  14. package/es/ProForm/components/base/DatePicker/index.js +0 -3
  15. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  16. package/es/ProForm/components/base/TextArea/index.less +4 -3
  17. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  18. package/es/ProForm/components/combination/Container/style/index.less +6 -3
  19. package/es/ProForm/components/combination/FormList/style/index.less +20 -24
  20. package/es/ProForm/components/combination/Group/style/index.less +18 -15
  21. package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  22. package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
  23. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
  24. package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  25. package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  26. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  27. package/es/ProForm/components/render/RenderFields.js +4 -5
  28. package/es/ProForm/style/index.less +46 -44
  29. package/es/ProIcon/style/index.less +4 -1
  30. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  31. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  32. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  33. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  34. package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
  35. package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
  36. package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
  37. package/es/ProLayout/components/ProFooter/style/index.less +11 -7
  38. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  39. package/es/ProLayout/components/ProHeader/style/index.less +12 -11
  40. package/es/ProLayout/style/index.less +10 -7
  41. package/es/ProSelect/index.less +3 -0
  42. package/es/ProStep/style/index.less +3 -0
  43. package/es/ProTable/index.js +15 -7
  44. package/es/ProTable/style/index.less +76 -54
  45. package/es/ProTable/utils.d.ts +1 -1
  46. package/es/ProTable/utils.js +38 -19
  47. package/es/ProTabs/style/index.less +25 -23
  48. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  49. package/es/ProThemeTools/component/PrdTools/index.js +7 -6
  50. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  51. package/es/ProThemeTools/index.d.ts +1 -1
  52. package/es/ProThemeTools/index.js +7 -2
  53. package/es/ProThemeTools/propsType.d.ts +4 -0
  54. package/es/ProThemeTools/style/index.less +6 -3
  55. package/es/ProThemeTools/utils/index.d.ts +1 -1
  56. package/es/ProThemeTools/utils/index.js +2 -1
  57. package/es/ProTooltip/style/index.less +3 -0
  58. package/es/ProTree/components/CloseIcon.js +2 -4
  59. package/es/ProTree/components/ProTree.js +27 -11
  60. package/es/ProTree/components/Tree.js +1 -1
  61. package/es/ProTree/propsType.d.ts +2 -2
  62. package/es/ProTree/style/index.less +29 -26
  63. package/es/ProTree/utils.d.ts +6 -0
  64. package/es/ProTree/utils.js +11 -0
  65. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  66. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  67. package/es/ProTreeModal/components/Trigger.js +79 -19
  68. package/es/ProTreeModal/index.js +38 -6
  69. package/es/ProTreeModal/propsType.d.ts +5 -2
  70. package/es/ProTreeModal/style/index.less +11 -8
  71. package/es/ProTreeSelect/index.js +6 -4
  72. package/es/ProTreeSelect/propsType.d.ts +2 -0
  73. package/es/ProTreeSelect/style/index.less +25 -22
  74. package/es/ProUpload/components/DragRender.js +7 -4
  75. package/es/ProUpload/components/ImageRender.js +5 -1
  76. package/es/ProUpload/index.js +11 -7
  77. package/es/ProUpload/style/index.less +13 -4
  78. package/es/ProViewer/index.js +3 -1
  79. package/es/ProViewer/style/index.less +6 -3
  80. package/es/locale/en_US.d.ts +4 -0
  81. package/es/locale/en_US.js +5 -1
  82. package/es/locale/zh_CN.d.ts +4 -0
  83. package/es/locale/zh_CN.js +6 -2
  84. package/es/style/core/compatible.less +6 -6
  85. package/es/style/theme/antd.less +272 -253
  86. package/lib/ProAction/index.less +3 -0
  87. package/lib/ProDownload/index.js +9 -6
  88. package/lib/ProDownload/style/index.less +5 -2
  89. package/lib/ProDrawerForm/index.js +0 -14
  90. package/lib/ProDrawerForm/style/index.less +76 -73
  91. package/lib/ProEditLabel/style/index.less +12 -9
  92. package/lib/ProEditTable/index.js +6 -2
  93. package/lib/ProEditTable/style/index.less +57 -47
  94. package/lib/ProEditTable/utils/config.d.ts +1 -1
  95. package/lib/ProEditTable/utils/config.js +3 -3
  96. package/lib/ProEnum/style/index.less +3 -0
  97. package/lib/ProForm/components/base/DatePicker/index.js +0 -3
  98. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  99. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  100. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  101. package/lib/ProForm/components/combination/Container/style/index.less +6 -3
  102. package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
  103. package/lib/ProForm/components/combination/Group/style/index.less +18 -15
  104. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  105. package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
  106. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
  107. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  108. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  109. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  110. package/lib/ProForm/components/render/RenderFields.js +4 -5
  111. package/lib/ProForm/style/index.less +46 -44
  112. package/lib/ProIcon/style/index.less +4 -1
  113. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  114. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  115. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  116. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  117. package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
  118. package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
  119. package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
  120. package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
  121. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  122. package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
  123. package/lib/ProLayout/style/index.less +10 -7
  124. package/lib/ProSelect/index.less +3 -0
  125. package/lib/ProStep/style/index.less +3 -0
  126. package/lib/ProTable/index.js +14 -6
  127. package/lib/ProTable/style/index.less +76 -54
  128. package/lib/ProTable/utils.d.ts +1 -1
  129. package/lib/ProTable/utils.js +38 -19
  130. package/lib/ProTabs/style/index.less +25 -23
  131. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  132. package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
  133. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  134. package/lib/ProThemeTools/index.d.ts +1 -1
  135. package/lib/ProThemeTools/index.js +7 -2
  136. package/lib/ProThemeTools/propsType.d.ts +4 -0
  137. package/lib/ProThemeTools/style/index.less +6 -3
  138. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  139. package/lib/ProThemeTools/utils/index.js +2 -1
  140. package/lib/ProTooltip/style/index.less +3 -0
  141. package/lib/ProTree/components/CloseIcon.js +2 -4
  142. package/lib/ProTree/components/ProTree.js +26 -10
  143. package/lib/ProTree/components/Tree.js +1 -1
  144. package/lib/ProTree/propsType.d.ts +2 -2
  145. package/lib/ProTree/style/index.less +29 -26
  146. package/lib/ProTree/utils.d.ts +6 -0
  147. package/lib/ProTree/utils.js +12 -0
  148. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  149. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  150. package/lib/ProTreeModal/components/Trigger.js +74 -18
  151. package/lib/ProTreeModal/index.js +38 -6
  152. package/lib/ProTreeModal/propsType.d.ts +5 -2
  153. package/lib/ProTreeModal/style/index.less +11 -8
  154. package/lib/ProTreeSelect/index.js +6 -4
  155. package/lib/ProTreeSelect/propsType.d.ts +2 -0
  156. package/lib/ProTreeSelect/style/index.less +25 -22
  157. package/lib/ProUpload/components/DragRender.js +7 -4
  158. package/lib/ProUpload/components/ImageRender.js +5 -1
  159. package/lib/ProUpload/index.js +11 -7
  160. package/lib/ProUpload/style/index.less +13 -4
  161. package/lib/ProViewer/index.js +4 -3
  162. package/lib/ProViewer/style/index.less +6 -3
  163. package/lib/locale/en_US.d.ts +4 -0
  164. package/lib/locale/en_US.js +5 -1
  165. package/lib/locale/zh_CN.d.ts +4 -0
  166. package/lib/locale/zh_CN.js +6 -2
  167. package/lib/style/core/compatible.less +6 -6
  168. package/lib/style/theme/antd.less +272 -253
  169. package/package.json +1 -1
  170. package/typings.d.ts +0 -6
@@ -1,39 +1,42 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-collapse {
2
5
  background: #f6f8fc;
3
6
 
4
7
  &.pro-collapse-no-title {
5
- .ant-collapse-header {
8
+ .@{ant-prefix}-collapse-header {
6
9
  display: none !important;
7
10
  }
8
11
  }
9
12
 
10
- &.ant-collapse {
13
+ &.@{ant-prefix}-collapse {
11
14
  .pro-collapse-panel {
12
15
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
13
16
  }
14
17
  }
15
18
 
16
- .ant-collapse-header {
19
+ .@{ant-prefix}-collapse-header {
17
20
  align-items: center !important;
18
21
  padding : 12px var(--zaui-space-size-md, 16px) !important;
19
22
  background : var(--zaui-area, #fafafa);
20
23
  }
21
24
 
22
- .ant-collapse-header-text {
25
+ .@{ant-prefix}-collapse-header-text {
23
26
  color : var(--zaui-text, #343434);
24
27
  font-weight: 500;
25
28
  font-size : var(--zaui-font-size-lg, 16px);
26
29
  }
27
30
 
28
- .ant-collapse-expand-icon {
31
+ .@{ant-prefix}-collapse-expand-icon {
29
32
  color: #c5c7cd;
30
33
  }
31
34
 
32
- &.ant-collapse-borderless .ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box {
35
+ &.@{ant-prefix}-collapse-borderless .@{ant-prefix}-collapse-item>.@{ant-prefix}-collapse-content>.@{ant-prefix}-collapse-content-box {
33
36
  padding: 0;
34
37
  }
35
38
 
36
- .ant-collapse-content-box {
39
+ .@{ant-prefix}-collapse-content-box {
37
40
  padding : 0;
38
41
  background: var(--zaui-base-bg, #ffffff);
39
42
 
@@ -48,12 +51,12 @@
48
51
  margin-bottom: 0;
49
52
  background : var(--zaui-base-bg, #ffffff);
50
53
 
51
- .ant-collapse-header {
54
+ .@{ant-prefix}-collapse-header {
52
55
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
53
56
  padding : 0 !important;
54
57
  background : var(--zaui-base-bg, #ffffff);
55
58
 
56
- .ant-collapse-header-text {
59
+ .@{ant-prefix}-collapse-header-text {
57
60
  position : relative;
58
61
  padding-left: var(--zaui-space-size-sm, 8px);
59
62
  font-size : var(--zaui-font-size, 14px);
@@ -71,7 +74,7 @@
71
74
  }
72
75
  }
73
76
 
74
- .ant-collapse-extra {
77
+ .@{ant-prefix}-collapse-extra {
75
78
  .extra-info {
76
79
  margin-right: var(--zaui-space-size-sm, 8px);
77
80
  }
@@ -79,7 +82,7 @@
79
82
  }
80
83
 
81
84
  .pro-collapse-level2-collapse {
82
- .ant-collapse-extra {
85
+ .@{ant-prefix}-collapse-extra {
83
86
  .extra-info {
84
87
  margin-right: var(--zaui-space-size-lg, 32px);
85
88
  }
@@ -90,24 +93,24 @@
90
93
  padding: 0;
91
94
  }
92
95
 
93
- &.ant-collapse .ant-collapse-item-disabled>.ant-collapse-header,
94
- .ant-collapse .ant-collapse-item-disabled>.ant-collapse-header>.arrow {
96
+ &.@{ant-prefix}-collapse .@{ant-prefix}-collapse-item-disabled>.@{ant-prefix}-collapse-header,
97
+ .@{ant-prefix}-collapse .@{ant-prefix}-collapse-item-disabled>.@{ant-prefix}-collapse-header>.arrow {
95
98
  color : var(--zaui-text, #343434);
96
99
  cursor: default;
97
100
  }
98
101
 
99
- .ant-collapse-expand-icon {
102
+ .@{ant-prefix}-collapse-expand-icon {
100
103
  display: none;
101
104
  }
102
105
 
103
106
  .pro-collapse-level2-collapse {
104
- .ant-collapse-expand-icon {
107
+ .@{ant-prefix}-collapse-expand-icon {
105
108
  display: block;
106
109
  }
107
110
  }
108
111
  }
109
112
 
110
- .ant-collapse-extra {
113
+ .@{ant-prefix}-collapse-extra {
111
114
  .extra-info {
112
115
  margin-right: 24px;
113
116
  }
@@ -115,17 +118,17 @@
115
118
 
116
119
  &.pro-collapse-list {
117
120
 
118
- .ant-descriptions-row>th,
119
- .ant-descriptions-row>td {
121
+ .@{ant-prefix}-descriptions-row>th,
122
+ .@{ant-prefix}-descriptions-row>td {
120
123
  padding : var(--zaui-space-size-md, 16px) 0;
121
124
  background: #fafafa;
122
125
 
123
- &.ant-descriptions-item {
126
+ &.@{ant-prefix}-descriptions-item {
124
127
  padding-left: var(--zaui-space-size-md, 16px);
125
128
  }
126
129
  }
127
130
 
128
- .ant-descriptions-row {
131
+ .@{ant-prefix}-descriptions-row {
129
132
  td:first-child {
130
133
  position: relative;
131
134
 
@@ -143,17 +146,17 @@
143
146
  }
144
147
  }
145
148
 
146
- .ant-descriptions-item-container {
149
+ .@{ant-prefix}-descriptions-item-container {
147
150
 
148
- .ant-descriptions-item-label,
149
- .ant-descriptions-item-content {
151
+ .@{ant-prefix}-descriptions-item-label,
152
+ .@{ant-prefix}-descriptions-item-content {
150
153
  color : #0a0a0a !important;
151
154
  font-weight: 500 !important;
152
155
  font-size : var(--zaui-font-size, 14px);
153
156
  }
154
157
  }
155
158
 
156
- .ant-descriptions {
159
+ .@{ant-prefix}-descriptions {
157
160
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
158
161
  }
159
162
  }
@@ -1,10 +1,14 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-footer {
2
- position : fixed;
3
- bottom : 0;
4
- right : 0;
5
- width : 100%;
6
- padding : var(--zaui-space-size-md, 16px) var(--zaui-space-size-lg, 32px);
5
+ position: fixed;
6
+ right: 0;
7
+ bottom: 0;
8
+ z-index: 101;
9
+ width: 100%;
10
+ padding: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1))
11
+ var(--zaui-space-size-lg, 32px);
7
12
  background: var(--zaui-base-bg, #ffffff);
8
- box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, .32);
9
- z-index : 101;
13
+ box-shadow: 3px 2px 12px 0 hsla(0, 0%, 59.2%, 0.32);
10
14
  }
@@ -1,5 +1,8 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .back-button-container {
2
- &.ant-btn {
5
+ &.@{ant-prefix}-btn {
3
6
  color : var(--zaui-text);
4
7
  font-weight: 400;
5
8
  background : var(--zaui-disabled-bg);
@@ -1,8 +1,10 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
1
3
  @import '../components/ProBackBtn/style/index';
2
4
 
3
5
  .pro-header {
4
6
  background-color: var(--zaui-base-bg, #ffffff);
5
- padding : 24px 0 0 0;
7
+ padding : 16px 0 0 0 !important;
6
8
 
7
9
  &.pro-header-no-back.pro-header-has-describe {
8
10
  .pro-header-top {
@@ -52,7 +54,7 @@
52
54
  display : flex;
53
55
  align-items : center;
54
56
 
55
- .ant-typography-copy-success {
57
+ .@{ant-prefix}-typography-copy-success {
56
58
  svg {
57
59
  width : 14px;
58
60
  height : 14px;
@@ -104,18 +106,18 @@
104
106
  box-shadow: 0px 1px 2px 0px rgba(0, 55, 93, 0.1);
105
107
  }
106
108
 
107
- .ant-breadcrumb {
109
+ .@{ant-prefix}-breadcrumb {
108
110
  li {
109
111
  font-weight: 500;
110
112
  color : #1D2129;
111
113
  }
112
114
 
113
- .ant-breadcrumb-link {
115
+ .@{ant-prefix}-breadcrumb-link {
114
116
  font-size: var(--zaui-font-size-xl, 18px);
115
117
  display : inline-flex;
116
118
  }
117
119
 
118
- .ant-breadcrumb-separator {
120
+ .@{ant-prefix}-breadcrumb-separator {
119
121
  font-weight: 500;
120
122
  color : #1D2129;
121
123
  font-size : var(--zaui-font-size-xl, 18px);
@@ -167,7 +169,7 @@
167
169
  font-size: var(--zaui-font-size-lg, 16px);
168
170
  }
169
171
 
170
- .ant-typography {
172
+ .@{ant-prefix}-typography {
171
173
  display : flex;
172
174
  margin-bottom: 0;
173
175
  }
@@ -192,19 +194,19 @@
192
194
  }
193
195
 
194
196
  .pro-header-right {
195
- .ant-btn-link {
197
+ .@{ant-prefix}-btn-link {
196
198
  color: #616161;
197
199
  }
198
200
 
199
- .ant-btn-primary {
201
+ .@{ant-prefix}-btn-primary {
200
202
  color: #ffffff;
201
203
  }
202
204
 
203
- .ant-btn-link {
205
+ .@{ant-prefix}-btn-link {
204
206
  padding: var(--zaui-space-size-xs, 4px), var(--zaui-space-size-sm, 8px);
205
207
  }
206
208
 
207
- .ant-divider-vertical {
209
+ .@{ant-prefix}-divider-vertical {
208
210
  margin: 0;
209
211
  }
210
212
  }
@@ -232,7 +234,6 @@
232
234
 
233
235
  ul {
234
236
  height : 0;
235
- // padding : 0;
236
237
  overflow : hidden;
237
238
  }
238
239
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  @import "../components/Layout/index.less";
2
5
  @import "../components/ProCollapse/style/index.less";
3
6
  @import "../components/ProFooter/style/index.less";
@@ -26,7 +29,7 @@
26
29
  box-shadow: 2px 0px 5px 0px rgba(0, 55, 93, 0.1);
27
30
  }
28
31
 
29
- .pro-layout-open-menu .ant-menu-title-content div .pro-layout-icon {
32
+ .pro-layout-open-menu .@{ant-prefix}-menu-title-content div .pro-layout-icon {
30
33
  color : var(--zaui-text, #343434);
31
34
  position: relative;
32
35
  z-index : 1;
@@ -114,7 +117,7 @@
114
117
  background: var(--zaui-base-bg, #fff);
115
118
  }
116
119
 
117
- .ant-menu-root {
120
+ .@{ant-prefix}-menu-root {
118
121
  overflow-x: hidden !important;
119
122
  }
120
123
 
@@ -126,16 +129,16 @@
126
129
  background: var(--zaui-base-bg, #ffffff);
127
130
  }
128
131
 
129
- .pro-layout-open-menu .ant-menu-root>.ant-menu-submenu .ant-menu-sub {
132
+ .pro-layout-open-menu .@{ant-prefix}-menu-root>.@{ant-prefix}-menu-submenu .@{ant-prefix}-menu-sub {
130
133
  background: var(--zaui-base-bg, #ffffff);
131
134
  }
132
135
 
133
- .pro-layout-open-menu .ant-menu-title-content div h2 {
136
+ .pro-layout-open-menu .@{ant-prefix}-menu-title-content div h2 {
134
137
  color: var(--zaui-text, #343434);
135
138
  }
136
139
 
137
- .pro-layout-open-menu .ant-menu-item:hover,
138
- .pro-layout-open-menu .ant-menu-submenu-title:hover {
140
+ .pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
141
+ .pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover {
139
142
  background: transparent;
140
143
  position : relative;
141
144
 
@@ -151,7 +154,7 @@
151
154
  }
152
155
  }
153
156
 
154
- .pro-layout-open-menu .ant-menu-item-selected {
157
+ .pro-layout-open-menu .@{ant-prefix}-menu-item-selected {
155
158
  &::after {
156
159
  display: none;
157
160
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-select-ellipse {
2
5
  display: block;
3
6
  width: 100%;
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-step-wrapper {
2
5
  padding-right: 48px;
3
6
  }
@@ -76,7 +76,10 @@ function ProTable(props) {
76
76
  tableProps = (0, _objectWithoutProperties2.default)(quickTableConfig, _excluded2);
77
77
  var _ref3 = tableProps || {},
78
78
  pagination = _ref3.pagination,
79
- dataSource = _ref3.dataSource;
79
+ dataSource = _ref3.dataSource,
80
+ rowKey = _ref3.rowKey;
81
+ var originalObj = originalDataSource ? (0, _lodash.keyBy)(originalDataSource, rowKey) : undefined;
82
+ var dataSourceObj = dataSource ? (0, _lodash.keyBy)(dataSource, rowKey) : {};
80
83
  var propsColumnObj = (0, _react.useMemo)(function () {
81
84
  return propsColumns.reduce(function (acc, cur) {
82
85
  // @ts-ignore
@@ -167,7 +170,7 @@ function ProTable(props) {
167
170
  return !(item === null || item === void 0 ? void 0 : item.delete);
168
171
  });
169
172
  newColumns === null || newColumns === void 0 ? void 0 : newColumns.forEach(function (item) {
170
- (0, _utils3.formatColumn)(item, originalDataSource);
173
+ (0, _utils3.formatColumn)(item, originalObj, dataSourceObj, rowKey);
171
174
  });
172
175
  return newColumns;
173
176
  }, [curColumns, handleResize]);
@@ -315,22 +318,27 @@ function ProTable(props) {
315
318
  columns: columns,
316
319
  locale: {
317
320
  emptyText: (0, _jsxRuntime.jsxs)("div", {
318
- className: "ant-empty ant-empty-normal",
321
+ className: "pro-table-empty",
319
322
  children: [(0, _jsxRuntime.jsx)("div", {
320
- className: "ant-empty-image",
323
+ className: "empty-image",
321
324
  children: (0, _jsxRuntime.jsx)("img", {
322
325
  src: _empty.default,
323
326
  alt: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProTable5 = _locale.default.ProTable) === null || _locale$ProTable5 === void 0 ? void 0 : _locale$ProTable5.noData
324
327
  })
325
328
  }), (0, _jsxRuntime.jsx)("div", {
326
- className: "ant-empty-description",
329
+ className: "empty-description",
327
330
  children: typeof emptyText === 'function' ? emptyText() : emptyText
328
331
  })]
329
332
  })
330
333
  },
331
334
  summary: (0, _typeof2.default)(summary) === 'object' ? function () {
332
335
  return renderSummary();
333
- } : summary
336
+ } : summary,
337
+ rowClassName: function rowClassName(record, index) {
338
+ if (originalDataSource && !originalObj.hasOwnProperty((0, _lodash.get)(record, rowKey))) {
339
+ return 'new-cell';
340
+ }
341
+ }
334
342
  }, tableProps)), (0, _jsxRuntime.jsx)(_components.ResizableLine, {})]
335
343
  }), footerRender ? (0, _jsxRuntime.jsx)("div", {
336
344
  className: "pro-table-footer ".concat(pagination && !!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) ? 'has-page' : 'no-page'),
@@ -1,38 +1,41 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-table {
2
5
  &.pro-table-bordered {
3
- .ant-table .ant-table-thead>tr>th {
6
+ .@{ant-prefix}-table .@{ant-prefix}-table-thead>tr>th {
4
7
  border-bottom: 1px solid #f0f0f0
5
8
  }
6
9
 
7
- .ant-table>.ant-table-container>.ant-table-content>table,
8
- .ant-table>.ant-table-container>.ant-table-header>table {
10
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table,
11
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table {
9
12
  border-top: 1px solid rgba(0, 0, 0, 0.06);
10
13
  }
11
14
 
12
- .ant-table>.ant-table-container>.ant-table-content>table>thead>tr>th,
13
- .ant-table>.ant-table-container>.ant-table-header>table>thead>tr>th,
14
- .ant-table>.ant-table-container>.ant-table-body>table>thead>tr>th,
15
- .ant-table>.ant-table-container>.ant-table-summary>table>thead>tr>th,
16
- .ant-table>.ant-table-container>.ant-table-content>table>tbody>tr>td,
17
- .ant-table>.ant-table-container>.ant-table-header>table>tbody>tr>td,
18
- .ant-table>.ant-table-container>.ant-table-body>table>tbody>tr>td,
19
- .ant-table>.ant-table-container>.ant-table-summary>table>tbody>tr>td,
20
- .ant-table>.ant-table-container>.ant-table-content>table>tfoot>tr>th,
21
- .ant-table>.ant-table-container>.ant-table-header>table>tfoot>tr>th,
22
- .ant-table>.ant-table-container>.ant-table-body>table>tfoot>tr>th,
23
- .ant-table>.ant-table-container>.ant-table-summary>table>tfoot>tr>th,
24
- .ant-table>.ant-table-container>.ant-table-content>table>tfoot>tr>td,
25
- .ant-table>.ant-table-container>.ant-table-header>table>tfoot>tr>td,
26
- .ant-table>.ant-table-container>.ant-table-body>table>tfoot>tr>td,
27
- .ant-table>.ant-table-container>.ant-table-summary>table>tfoot>tr>td {
15
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>thead>tr>th,
16
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>thead>tr>th,
17
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>thead>tr>th,
18
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>thead>tr>th,
19
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tbody>tr>td,
20
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tbody>tr>td,
21
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tbody>tr>td,
22
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tbody>tr>td,
23
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tfoot>tr>th,
24
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tfoot>tr>th,
25
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tfoot>tr>th,
26
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tfoot>tr>th,
27
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tfoot>tr>td,
28
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tfoot>tr>td,
29
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tfoot>tr>td,
30
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tfoot>tr>td {
28
31
  border-right: 1px solid rgba(0, 0, 0, 0.06);
29
32
  }
30
33
 
31
- .ant-table .ant-table-tbody>tr:not(.ant-table-measure-row)>td {
34
+ .@{ant-prefix}-table .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
32
35
  border-bottom: 1px solid #f0f0f0;
33
36
  }
34
37
 
35
- .ant-table>.ant-table-container {
38
+ .@{ant-prefix}-table>.@{ant-prefix}-table-container {
36
39
  border-left: 1px solid rgba(0, 0, 0, 0.06);
37
40
  }
38
41
  }
@@ -54,14 +57,22 @@
54
57
  }
55
58
  }
56
59
 
57
- .ant-table-tbody {
58
- .ant-table-cell-fix-left, .ant-table-cell-fix-right {
60
+ .@{ant-prefix}-table-tbody {
61
+ .@{ant-prefix}-table-cell-fix-left, .@{ant-prefix}-table-cell-fix-right {
59
62
  background: unset !important;
60
63
  }
61
64
  }
62
65
 
63
- .ant-table-body {
64
- .ant-table-cell .varied-cell {
66
+ .@{ant-prefix}-table-body {
67
+ // .@{ant-prefix}-table-tbody .@{ant-prefix}-table-row:nth-child(odd).new-cell {
68
+ // background: #00ae4d !important;
69
+
70
+ // td {
71
+ // background: #00ae4d !important;
72
+ // }
73
+ // }
74
+
75
+ .@{ant-prefix}-table-cell .varied-cell {
65
76
  margin-left: -8px;
66
77
  background: var(--zaui-contract-bg, #fffaa1);
67
78
  padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
@@ -76,7 +87,7 @@
76
87
  .copyable-table-cell {
77
88
 
78
89
 
79
- .ant-typography {
90
+ .@{ant-prefix}-typography {
80
91
  margin-bottom: 0;
81
92
  display : flex;
82
93
  align-items : center;
@@ -89,7 +100,7 @@
89
100
  }
90
101
  }
91
102
 
92
- .ant-typography-copy-success {
103
+ .@{ant-prefix}-typography-copy-success {
93
104
  svg {
94
105
  fill: var(--zaui-success, #00ae4d);
95
106
  }
@@ -104,14 +115,14 @@
104
115
  }
105
116
 
106
117
  &.pro-table-no-stripe {
107
- .ant-table.ant-table-scroll-horizontal .ant-table-tbody .ant-table-row:nth-child(n)>td {
118
+ .@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal .@{ant-prefix}-table-tbody .@{ant-prefix}-table-row:nth-child(n)>td {
108
119
  background: var(--zaui-base-bg, #ffffff);
109
120
  }
110
121
  }
111
122
 
112
- .ant-table-thead {
113
- .ant-dropdown-trigger {
114
- &.ant-dropdown-open {
123
+ .@{ant-prefix}-table-thead {
124
+ .@{ant-prefix}-dropdown-trigger {
125
+ &.@{ant-prefix}-dropdown-open {
115
126
 
116
127
  .anticon-down {
117
128
  transition: transform 0.3s;
@@ -134,7 +145,7 @@
134
145
  }
135
146
  }
136
147
 
137
- .ant-table-thead {
148
+ .@{ant-prefix}-table-thead {
138
149
  tr th {
139
150
  &:last-child {
140
151
  .react-resizable-handle {
@@ -144,11 +155,11 @@
144
155
  }
145
156
  }
146
157
 
147
- .ant-space {
158
+ .@{ant-prefix}-space {
148
159
  gap: var(--zaui-space-size-sm, 8px) !important;
149
160
  }
150
161
 
151
- .ant-btn-link {
162
+ .@{ant-prefix}-btn-link {
152
163
  padding: 0 var(--zaui-space-size-xs, 4px);
153
164
 
154
165
  &:first-child {
@@ -165,7 +176,7 @@
165
176
  display : flex;
166
177
  align-items: center;
167
178
 
168
- >.ant-btn {
179
+ >.@{ant-prefix}-btn {
169
180
 
170
181
  &:hover,
171
182
  &:visited,
@@ -182,11 +193,22 @@
182
193
  }
183
194
  }
184
195
 
185
- .ant-empty .ant-empty-image {
186
- height: 80px;
196
+ .pro-table-empty {
197
+ margin: var(--zaui-space-size-lg, 32px) 0;
198
+ color: rgba(0, 0, 0, 0.25);
199
+ font-size: var(--zaui-font-size-md, 14px);
200
+ text-align: center;
201
+
202
+ .empty-image {
203
+ height: 80px;
204
+
205
+ img {
206
+ height: 100%;
207
+ }
208
+ }
187
209
  }
188
210
 
189
- .ant-table .ant-table-thead>tr>th {
211
+ .@{ant-prefix}-table .@{ant-prefix}-table-thead>tr>th {
190
212
  border-bottom: 0;
191
213
  white-space : nowrap;
192
214
  background : var(--zaui-table-header-bg, #f2f3f5);
@@ -229,29 +251,29 @@
229
251
  }
230
252
  }
231
253
 
232
- .ant-table.ant-table-bordered {
233
- .ant-table-thead>tr>th {
254
+ .@{ant-prefix}-table.@{ant-prefix}-table-bordered {
255
+ .@{ant-prefix}-table-thead>tr>th {
234
256
  border-bottom: 1px solid #f0f0f0;
235
257
  }
236
258
 
237
- .ant-table-tbody>tr:not(.ant-table-placeholder)>td {
259
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
238
260
  border-bottom: 1px solid #f0f0f0;
239
261
  }
240
262
 
241
- .ant-table-tbody>tr:not(.ant-table-measure-row)>td {
263
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
242
264
  border-bottom: 1px solid #f0f0f0;
243
265
  }
244
266
  }
245
267
 
246
- .ant-table-tbody .ant-table-placeholder {
268
+ .@{ant-prefix}-table-tbody .@{ant-prefix}-table-placeholder {
247
269
  background: var(--zaui-base-bg, #ffffff) !important;
248
270
  }
249
271
 
250
- .ant-table-tbody>tr:not(.ant-table-placeholder)>td {
272
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
251
273
  border-bottom: 0;
252
274
  }
253
275
 
254
- .ant-table-tbody>tr:not(.ant-table-measure-row)>td {
276
+ .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
255
277
  border-bottom: 0;
256
278
  }
257
279
 
@@ -259,7 +281,7 @@
259
281
  position : relative;
260
282
  background-clip: padding-box;
261
283
 
262
- .ant-table-filter-trigger {
284
+ .@{ant-prefix}-table-filter-trigger {
263
285
  margin-right: 0;
264
286
  }
265
287
  }
@@ -295,20 +317,20 @@
295
317
  }
296
318
  }
297
319
 
298
- .ant-table-tbody tr td .ant-checkbox-wrapper-checked.checkbox-disabled {
320
+ .@{ant-prefix}-table-tbody tr td .@{ant-prefix}-checkbox-wrapper-checked.checkbox-disabled {
299
321
  pointer-events: none;
300
322
  cursor : not-allowed;
301
323
  opacity : 0.5;
302
324
  }
303
325
 
304
- .ant-pagination-options-quick-jumper input {
326
+ .@{ant-prefix}-pagination-options-quick-jumper input {
305
327
  border : unset;
306
328
  background: #FAFAFA;
307
329
  min-width : 32px;
308
330
  height : 32px;
309
331
  }
310
332
 
311
- .ant-pagination .ant-pagination-item-active a {
333
+ .@{ant-prefix}-pagination .@{ant-prefix}-pagination-item-active a {
312
334
  color : #ffffff;
313
335
  background : var(--zaui-brand, #006aff) !important;
314
336
  border-radius: var(--zaui-border-radius, 4px);
@@ -324,10 +346,10 @@
324
346
  }
325
347
  }
326
348
 
327
- .ant-table-summary {
349
+ .@{ant-prefix}-table-summary {
328
350
  background-color: var(--zaui-table-header-bg, #f2f3f5);
329
351
 
330
- .ant-table-cell {
352
+ .@{ant-prefix}-table-cell {
331
353
  font-weight : 500;
332
354
  background-color: var(--zaui-table-header-bg, #f2f3f5);
333
355
  border : none;
@@ -335,10 +357,10 @@
335
357
  }
336
358
  }
337
359
 
338
- .ant-dropdown-placement-bottomLeft {
339
- .ant-dropdown-menu-vertical.ant-dropdown-menu-light {
360
+ .@{ant-prefix}-dropdown-placement-bottomLeft {
361
+ .@{ant-prefix}-dropdown-menu-vertical.@{ant-prefix}-dropdown-menu-light {
340
362
 
341
- .ant-dropdown-menu-item-only-child {
363
+ .@{ant-prefix}-dropdown-menu-item-only-child {
342
364
  &:hover {
343
365
  background: rgba(0, 106, 255, 0.08);
344
366
  }