@zat-design/sisyphus-react 3.8.2 → 3.8.3-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.
Files changed (109) hide show
  1. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
  2. package/coverage/lcov-report/src/.umi/core/history.ts.html +148 -0
  3. package/coverage/lcov-report/src/.umi/core/index.html +206 -0
  4. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
  5. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
  6. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
  7. package/coverage/lcov-report/src/.umi/core/routes.ts.html +26050 -0
  8. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
  9. package/coverage/lcov-report/src/.umi/dumi/demos/index.html +116 -0
  10. package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +6340 -0
  11. package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
  12. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
  13. package/coverage/lcov-report/src/.umi/index.html +116 -0
  14. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
  15. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
  16. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
  17. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
  18. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
  19. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
  20. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
  21. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
  22. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
  23. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
  24. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
  25. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
  26. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
  27. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
  28. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
  29. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
  30. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
  31. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
  32. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
  33. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
  34. package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
  35. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
  36. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
  37. package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
  38. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
  39. package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
  40. package/dist/index.esm.css +32 -8
  41. package/dist/less.esm.css +32 -8
  42. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +22 -7
  43. package/es/ProEditTable/components/RenderField/index.js +9 -1
  44. package/es/ProEditTable/index.js +0 -1
  45. package/es/ProEditTable/propsType.d.ts +0 -1
  46. package/es/ProEditTable/utils/index.js +10 -3
  47. package/es/ProEnum/hooks/useEnumRequest.js +1 -1
  48. package/es/ProEnum/index.js +2 -2
  49. package/es/ProForm/components/base/InputNumber/index.js +1 -1
  50. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +2 -0
  51. package/es/ProForm/components/combination/FormList/components/BlockFields.js +4 -2
  52. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -0
  53. package/es/ProForm/components/combination/FormList/components/LineFields.js +4 -2
  54. package/es/ProForm/components/combination/FormList/index.js +14 -3
  55. package/es/ProForm/components/combination/Group/component/ComRender.d.ts +1 -0
  56. package/es/ProForm/components/combination/Group/component/ComRender.js +4 -2
  57. package/es/ProForm/components/combination/Group/index.js +6 -3
  58. package/es/ProForm/components/combination/ProCascader/index.js +20 -13
  59. package/es/ProForm/components/combination/ProModalSelect/index.js +17 -3
  60. package/es/ProForm/components/render/ChangedWrapper.js +20 -2
  61. package/es/ProForm/components/render/Render.js +6 -3
  62. package/es/ProForm/components/render/RenderFields.js +4 -2
  63. package/es/ProForm/components/render/propsType.d.ts +4 -0
  64. package/es/ProForm/propsType.d.ts +1 -0
  65. package/es/ProForm/style/index.less +22 -2
  66. package/es/ProForm/utils/diffOriginal.js +14 -2
  67. package/es/ProForm/utils/useShouldUpdate.js +20 -13
  68. package/es/ProTable/components/FormatColumn/index.d.ts +4 -1
  69. package/es/ProTable/components/FormatColumn/index.js +180 -30
  70. package/es/ProTable/components/RenderColumn/index.d.ts +2 -0
  71. package/es/ProTable/components/RenderColumn/index.js +28 -10
  72. package/es/ProTable/index.js +26 -10
  73. package/es/ProTable/propsType.d.ts +4 -0
  74. package/es/ProTable/style/index.less +22 -6
  75. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +25 -10
  76. package/lib/ProEditTable/components/RenderField/index.js +9 -1
  77. package/lib/ProEditTable/index.js +0 -1
  78. package/lib/ProEditTable/propsType.d.ts +0 -1
  79. package/lib/ProEditTable/utils/index.js +10 -3
  80. package/lib/ProEnum/hooks/useEnumRequest.js +1 -1
  81. package/lib/ProEnum/index.js +2 -2
  82. package/lib/ProForm/components/base/InputNumber/index.js +1 -1
  83. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +2 -0
  84. package/lib/ProForm/components/combination/FormList/components/BlockFields.js +4 -2
  85. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -0
  86. package/lib/ProForm/components/combination/FormList/components/LineFields.js +4 -2
  87. package/lib/ProForm/components/combination/FormList/index.js +14 -3
  88. package/lib/ProForm/components/combination/Group/component/ComRender.d.ts +1 -0
  89. package/lib/ProForm/components/combination/Group/component/ComRender.js +4 -2
  90. package/lib/ProForm/components/combination/Group/index.js +6 -3
  91. package/lib/ProForm/components/combination/ProCascader/index.js +20 -13
  92. package/lib/ProForm/components/combination/ProModalSelect/index.js +17 -3
  93. package/lib/ProForm/components/render/ChangedWrapper.js +20 -2
  94. package/lib/ProForm/components/render/Render.js +6 -3
  95. package/lib/ProForm/components/render/RenderFields.js +4 -2
  96. package/lib/ProForm/components/render/propsType.d.ts +4 -0
  97. package/lib/ProForm/propsType.d.ts +1 -0
  98. package/lib/ProForm/style/index.less +22 -2
  99. package/lib/ProForm/utils/diffOriginal.js +13 -1
  100. package/lib/ProForm/utils/useShouldUpdate.js +18 -11
  101. package/lib/ProTable/components/FormatColumn/index.d.ts +4 -1
  102. package/lib/ProTable/components/FormatColumn/index.js +179 -29
  103. package/lib/ProTable/components/RenderColumn/index.d.ts +2 -0
  104. package/lib/ProTable/components/RenderColumn/index.js +27 -9
  105. package/lib/ProTable/index.js +26 -10
  106. package/lib/ProTable/propsType.d.ts +4 -0
  107. package/lib/ProTable/style/index.less +22 -6
  108. package/package.json +4 -3
  109. package/.vscode/extensions.json +0 -5
@@ -0,0 +1,268 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for src/.umi/umi.ts</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="../../prettify.css" />
9
+ <link rel="stylesheet" href="../../base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(../../sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/.umi</a> umi.ts</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">0% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>0/14</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">0% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>0/7</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">0% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>0/4</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">0% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>0/13</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input oninput="onInput()" type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line low'></div>
65
+ <pre><table class="coverage">
66
+ <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
+ <a name='L2'></a><a href='#L2'>2</a>
68
+ <a name='L3'></a><a href='#L3'>3</a>
69
+ <a name='L4'></a><a href='#L4'>4</a>
70
+ <a name='L5'></a><a href='#L5'>5</a>
71
+ <a name='L6'></a><a href='#L6'>6</a>
72
+ <a name='L7'></a><a href='#L7'>7</a>
73
+ <a name='L8'></a><a href='#L8'>8</a>
74
+ <a name='L9'></a><a href='#L9'>9</a>
75
+ <a name='L10'></a><a href='#L10'>10</a>
76
+ <a name='L11'></a><a href='#L11'>11</a>
77
+ <a name='L12'></a><a href='#L12'>12</a>
78
+ <a name='L13'></a><a href='#L13'>13</a>
79
+ <a name='L14'></a><a href='#L14'>14</a>
80
+ <a name='L15'></a><a href='#L15'>15</a>
81
+ <a name='L16'></a><a href='#L16'>16</a>
82
+ <a name='L17'></a><a href='#L17'>17</a>
83
+ <a name='L18'></a><a href='#L18'>18</a>
84
+ <a name='L19'></a><a href='#L19'>19</a>
85
+ <a name='L20'></a><a href='#L20'>20</a>
86
+ <a name='L21'></a><a href='#L21'>21</a>
87
+ <a name='L22'></a><a href='#L22'>22</a>
88
+ <a name='L23'></a><a href='#L23'>23</a>
89
+ <a name='L24'></a><a href='#L24'>24</a>
90
+ <a name='L25'></a><a href='#L25'>25</a>
91
+ <a name='L26'></a><a href='#L26'>26</a>
92
+ <a name='L27'></a><a href='#L27'>27</a>
93
+ <a name='L28'></a><a href='#L28'>28</a>
94
+ <a name='L29'></a><a href='#L29'>29</a>
95
+ <a name='L30'></a><a href='#L30'>30</a>
96
+ <a name='L31'></a><a href='#L31'>31</a>
97
+ <a name='L32'></a><a href='#L32'>32</a>
98
+ <a name='L33'></a><a href='#L33'>33</a>
99
+ <a name='L34'></a><a href='#L34'>34</a>
100
+ <a name='L35'></a><a href='#L35'>35</a>
101
+ <a name='L36'></a><a href='#L36'>36</a>
102
+ <a name='L37'></a><a href='#L37'>37</a>
103
+ <a name='L38'></a><a href='#L38'>38</a>
104
+ <a name='L39'></a><a href='#L39'>39</a>
105
+ <a name='L40'></a><a href='#L40'>40</a>
106
+ <a name='L41'></a><a href='#L41'>41</a>
107
+ <a name='L42'></a><a href='#L42'>42</a>
108
+ <a name='L43'></a><a href='#L43'>43</a>
109
+ <a name='L44'></a><a href='#L44'>44</a>
110
+ <a name='L45'></a><a href='#L45'>45</a>
111
+ <a name='L46'></a><a href='#L46'>46</a>
112
+ <a name='L47'></a><a href='#L47'>47</a>
113
+ <a name='L48'></a><a href='#L48'>48</a>
114
+ <a name='L49'></a><a href='#L49'>49</a>
115
+ <a name='L50'></a><a href='#L50'>50</a>
116
+ <a name='L51'></a><a href='#L51'>51</a>
117
+ <a name='L52'></a><a href='#L52'>52</a>
118
+ <a name='L53'></a><a href='#L53'>53</a>
119
+ <a name='L54'></a><a href='#L54'>54</a>
120
+ <a name='L55'></a><a href='#L55'>55</a>
121
+ <a name='L56'></a><a href='#L56'>56</a>
122
+ <a name='L57'></a><a href='#L57'>57</a>
123
+ <a name='L58'></a><a href='#L58'>58</a>
124
+ <a name='L59'></a><a href='#L59'>59</a>
125
+ <a name='L60'></a><a href='#L60'>60</a>
126
+ <a name='L61'></a><a href='#L61'>61</a>
127
+ <a name='L62'></a><a href='#L62'>62</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
128
+ <span class="cline-any cline-neutral">&nbsp;</span>
129
+ <span class="cline-any cline-neutral">&nbsp;</span>
130
+ <span class="cline-any cline-neutral">&nbsp;</span>
131
+ <span class="cline-any cline-neutral">&nbsp;</span>
132
+ <span class="cline-any cline-neutral">&nbsp;</span>
133
+ <span class="cline-any cline-neutral">&nbsp;</span>
134
+ <span class="cline-any cline-neutral">&nbsp;</span>
135
+ <span class="cline-any cline-neutral">&nbsp;</span>
136
+ <span class="cline-any cline-neutral">&nbsp;</span>
137
+ <span class="cline-any cline-neutral">&nbsp;</span>
138
+ <span class="cline-any cline-neutral">&nbsp;</span>
139
+ <span class="cline-any cline-neutral">&nbsp;</span>
140
+ <span class="cline-any cline-no">&nbsp;</span>
141
+ <span class="cline-any cline-neutral">&nbsp;</span>
142
+ <span class="cline-any cline-no">&nbsp;</span>
143
+ <span class="cline-any cline-neutral">&nbsp;</span>
144
+ <span class="cline-any cline-neutral">&nbsp;</span>
145
+ <span class="cline-any cline-neutral">&nbsp;</span>
146
+ <span class="cline-any cline-no">&nbsp;</span>
147
+ <span class="cline-any cline-neutral">&nbsp;</span>
148
+ <span class="cline-any cline-neutral">&nbsp;</span>
149
+ <span class="cline-any cline-neutral">&nbsp;</span>
150
+ <span class="cline-any cline-neutral">&nbsp;</span>
151
+ <span class="cline-any cline-neutral">&nbsp;</span>
152
+ <span class="cline-any cline-neutral">&nbsp;</span>
153
+ <span class="cline-any cline-neutral">&nbsp;</span>
154
+ <span class="cline-any cline-neutral">&nbsp;</span>
155
+ <span class="cline-any cline-neutral">&nbsp;</span>
156
+ <span class="cline-any cline-neutral">&nbsp;</span>
157
+ <span class="cline-any cline-neutral">&nbsp;</span>
158
+ <span class="cline-any cline-neutral">&nbsp;</span>
159
+ <span class="cline-any cline-no">&nbsp;</span>
160
+ <span class="cline-any cline-neutral">&nbsp;</span>
161
+ <span class="cline-any cline-neutral">&nbsp;</span>
162
+ <span class="cline-any cline-neutral">&nbsp;</span>
163
+ <span class="cline-any cline-neutral">&nbsp;</span>
164
+ <span class="cline-any cline-no">&nbsp;</span>
165
+ <span class="cline-any cline-neutral">&nbsp;</span>
166
+ <span class="cline-any cline-neutral">&nbsp;</span>
167
+ <span class="cline-any cline-neutral">&nbsp;</span>
168
+ <span class="cline-any cline-no">&nbsp;</span>
169
+ <span class="cline-any cline-neutral">&nbsp;</span>
170
+ <span class="cline-any cline-neutral">&nbsp;</span>
171
+ <span class="cline-any cline-neutral">&nbsp;</span>
172
+ <span class="cline-any cline-neutral">&nbsp;</span>
173
+ <span class="cline-any cline-neutral">&nbsp;</span>
174
+ <span class="cline-any cline-neutral">&nbsp;</span>
175
+ <span class="cline-any cline-no">&nbsp;</span>
176
+ <span class="cline-any cline-neutral">&nbsp;</span>
177
+ <span class="cline-any cline-no">&nbsp;</span>
178
+ <span class="cline-any cline-no">&nbsp;</span>
179
+ <span class="cline-any cline-no">&nbsp;</span>
180
+ <span class="cline-any cline-no">&nbsp;</span>
181
+ <span class="cline-any cline-no">&nbsp;</span>
182
+ <span class="cline-any cline-neutral">&nbsp;</span>
183
+ <span class="cline-any cline-neutral">&nbsp;</span>
184
+ <span class="cline-any cline-no">&nbsp;</span>
185
+ <span class="cline-any cline-neutral">&nbsp;</span>
186
+ <span class="cline-any cline-neutral">&nbsp;</span>
187
+ <span class="cline-any cline-neutral">&nbsp;</span>
188
+ <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">// @ts-nocheck
189
+ import './core/polyfill';
190
+ import '@@/core/devScripts';
191
+ import { plugin } from './core/plugin';
192
+ import './core/pluginRegister';
193
+ import { createHistory } from './core/history';
194
+ import { ApplyPluginsType } from '/Users/zakj/Desktop/pro/za-material-warehouse/node_modules/@umijs/runtime';
195
+ import { renderClient } from '/Users/zakj/Desktop/pro/za-material-warehouse/node_modules/@umijs/renderer-react/dist/index.js';
196
+ import { getRoutes } from './core/routes';
197
+ &nbsp;
198
+ &nbsp;
199
+ import '../global.less';
200
+ import { _onCreate } from './plugin-locale/locale';
201
+ <span class="cstat-no" title="statement not covered" >_onCreate();</span>
202
+ &nbsp;
203
+ const getClientRender = <span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >(a</span>rgs: { hot?: boolean; routes?: any[] } = <span class="branch-0 cbranch-no" title="branch not covered" >{})</span> =&gt; <span class="cstat-no" title="statement not covered" >plugin.applyPlugins({</span></span>
204
+ key: 'render',
205
+ type: ApplyPluginsType.compose,
206
+ initialValue: <span class="fstat-no" title="function not covered" >()</span> =&gt; {
207
+ const opts = <span class="cstat-no" title="statement not covered" >plugin.applyPlugins({</span>
208
+ key: 'modifyClientRenderOpts',
209
+ type: ApplyPluginsType.modify,
210
+ initialValue: {
211
+ routes: args.routes || getRoutes(),
212
+ plugin,
213
+ history: createHistory(args.hot),
214
+ isServer: process.env.__IS_SERVER,
215
+ dynamicImport: true,
216
+ rootElement: 'root',
217
+ defaultTitle: `sisyphus(3.4.3-beta.6)`,
218
+ },
219
+ });
220
+ <span class="cstat-no" title="statement not covered" > return renderClient(opts);</span>
221
+ },
222
+ args,
223
+ });
224
+ &nbsp;
225
+ const clientRender = <span class="cstat-no" title="statement not covered" >getClientRender();</span>
226
+ export default clientRender();
227
+ &nbsp;
228
+ &nbsp;
229
+ <span class="cstat-no" title="statement not covered" > window.g_umi = {</span>
230
+ version: '3.5.41',
231
+ };
232
+
233
+ &nbsp;
234
+ // hot module replacement
235
+ // @ts-ignore
236
+ <span class="cstat-no" title="statement not covered" >if (module.hot) {</span>
237
+ // @ts-ignore
238
+ <span class="cstat-no" title="statement not covered" > module.hot.accept('./core/routes', <span class="fstat-no" title="function not covered" >()</span> =&gt; {</span>
239
+ const ret = <span class="cstat-no" title="statement not covered" >require('./core/routes');</span>
240
+ <span class="cstat-no" title="statement not covered" > if (ret.then) {</span>
241
+ <span class="cstat-no" title="statement not covered" > ret.then(<span class="fstat-no" title="function not covered" >({</span> getRoutes }) =&gt; {</span>
242
+ <span class="cstat-no" title="statement not covered" > getClientRender({ hot: true, routes: getRoutes() })();</span>
243
+ });
244
+ } else {
245
+ <span class="cstat-no" title="statement not covered" > getClientRender({ hot: true, routes: ret.getRoutes() })();</span>
246
+ }
247
+ });
248
+ }
249
+ &nbsp;</pre></td></tr></table></pre>
250
+
251
+ <div class='push'></div><!-- for sticky footer -->
252
+ </div><!-- /wrapper -->
253
+ <div class='footer quiet pad2 space-top1 center small'>
254
+ Code coverage generated by
255
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
256
+ at 2024-01-24T02:49:50.075Z
257
+ </div>
258
+ <script src="../../prettify.js"></script>
259
+ <script>
260
+ window.onload = function () {
261
+ prettyPrint();
262
+ };
263
+ </script>
264
+ <script src="../../sorter.js"></script>
265
+ <script src="../../block-navigation.js"></script>
266
+ </body>
267
+ </html>
268
+
@@ -1899,20 +1899,32 @@
1899
1899
  .pro-table .ant-table-tbody .ant-table-cell-fix-right {
1900
1900
  background: unset !important;
1901
1901
  }
1902
- .pro-table .ant-table-body .ant-table-tbody .ant-table-row:nth-child(odd).new-cell {
1903
- background: #d2fff4 !important;
1902
+ .pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell {
1903
+ background: var(--zaui-contract-bg-add, #d2fff4) !important;
1904
+ background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
1904
1905
  }
1905
- .pro-table .ant-table-body .ant-table-tbody .ant-table-row:nth-child(odd).new-cell td {
1906
- background: #d2fff4 !important;
1906
+ .pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell {
1907
+ background: var(--zaui-contract-bg-add, #d2fff4) !important;
1908
+ background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
1907
1909
  border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
1908
1910
  }
1909
- .pro-table .ant-table-body .ant-table-cell .varied-cell {
1911
+ .pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell {
1910
1912
  margin-left: -8px;
1911
1913
  padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
1912
1914
  background: var(--zaui-contract-bg, #fffaa1) !important;
1913
1915
  border-radius: var(--zaui-border-radius, 8px);
1914
1916
  }
1915
- .pro-table .ant-table-body .varied-cell.empty-cell {
1917
+ .pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container {
1918
+ overflow: hidden;
1919
+ white-space: nowrap;
1920
+ text-overflow: ellipsis;
1921
+ }
1922
+ .pro-table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container {
1923
+ overflow: hidden;
1924
+ white-space: nowrap;
1925
+ text-overflow: ellipsis;
1926
+ }
1927
+ .pro-table tbody.ant-table-tbody .varied-cell.empty-cell {
1916
1928
  width: 24.5px;
1917
1929
  }
1918
1930
  .pro-table .copyable-table-cell .ant-typography {
@@ -3027,6 +3039,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3027
3039
  border-radius: 4px;
3028
3040
  background: var(--zaui-contract-bg, #fffaa1) !important;
3029
3041
  }
3042
+ .pro-form .pro-form-item-changed .ant-input {
3043
+ background: var(--zaui-contract-bg, #fffaa1) !important;
3044
+ }
3030
3045
  .pro-form .pro-form-item-changed .ant-select.ant-select-disabled .ant-select-selector {
3031
3046
  background: var(--zaui-contract-bg, #fffaa1) !important;
3032
3047
  }
@@ -3073,7 +3088,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3073
3088
  padding: 5px 0;
3074
3089
  }
3075
3090
  .pro-form .pro-form-item-changed .ant-input-textarea > textarea {
3076
- background: var(--zaui-contract-bg, #fffaa1);
3091
+ background: var(--zaui-contract-bg, #fffaa1) !important;
3077
3092
  }
3078
3093
  .pro-form .pro-form-item-changed .pro-form-view-container {
3079
3094
  padding: 4px 8px;
@@ -3084,6 +3099,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3084
3099
  border-radius: 4px;
3085
3100
  background: var(--zaui-contract-bg-add, #d2fff4) !important;
3086
3101
  }
3102
+ .pro-form .pro-form-item-add .ant-input {
3103
+ background: var(--zaui-contract-bg, #fffaa1) !important;
3104
+ }
3087
3105
  .pro-form .pro-form-item-add .ant-select.ant-select-disabled .ant-select-selector {
3088
3106
  background: var(--zaui-contract-bg-add, #d2fff4) !important;
3089
3107
  }
@@ -3130,13 +3148,19 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3130
3148
  padding: 5px 0;
3131
3149
  }
3132
3150
  .pro-form .pro-form-item-add .ant-input-textarea > textarea {
3133
- background: var(--zaui-contract-bg-add, #d2fff4);
3151
+ background: var(--zaui-contract-bg-add, #d2fff4) !important;
3134
3152
  }
3135
3153
  .pro-form .pro-form-item-add .pro-form-view-container {
3136
3154
  padding: 4px 8px;
3137
3155
  background: var(--zaui-contract-bg-add, #d2fff4);
3138
3156
  border-radius: 4px;
3139
3157
  }
3158
+ .changed-tooltip .original-value-container .ant-space-item:nth-child(1) {
3159
+ white-space: nowrap;
3160
+ }
3161
+ .changed-tooltip .current-value-container .ant-space-item:nth-child(1) {
3162
+ white-space: nowrap;
3163
+ }
3140
3164
  .pro-upload .pro-upload-dragger .pro-upload-handle-box {
3141
3165
  padding: var(--zaui-space-size-sm, 8px);
3142
3166
  background: #f8f9fa;
package/dist/less.esm.css CHANGED
@@ -1899,20 +1899,32 @@
1899
1899
  .pro-table .ant-table-tbody .ant-table-cell-fix-right {
1900
1900
  background: unset !important;
1901
1901
  }
1902
- .pro-table .ant-table-body .ant-table-tbody .ant-table-row:nth-child(odd).new-cell {
1903
- background: #d2fff4 !important;
1902
+ .pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell {
1903
+ background: var(--zaui-contract-bg-add, #d2fff4) !important;
1904
+ background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
1904
1905
  }
1905
- .pro-table .ant-table-body .ant-table-tbody .ant-table-row:nth-child(odd).new-cell td {
1906
- background: #d2fff4 !important;
1906
+ .pro-table tbody.ant-table-tbody tr.ant-table-row.new-cell td.ant-table-cell {
1907
+ background: var(--zaui-contract-bg-add, #d2fff4) !important;
1908
+ background-color: var(--zaui-contract-bg-add, #d2fff4) !important;
1907
1909
  border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
1908
1910
  }
1909
- .pro-table .ant-table-body .ant-table-cell .varied-cell {
1911
+ .pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell {
1910
1912
  margin-left: -8px;
1911
1913
  padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
1912
1914
  background: var(--zaui-contract-bg, #fffaa1) !important;
1913
1915
  border-radius: var(--zaui-border-radius, 8px);
1914
1916
  }
1915
- .pro-table .ant-table-body .varied-cell.empty-cell {
1917
+ .pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container {
1918
+ overflow: hidden;
1919
+ white-space: nowrap;
1920
+ text-overflow: ellipsis;
1921
+ }
1922
+ .pro-table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container {
1923
+ overflow: hidden;
1924
+ white-space: nowrap;
1925
+ text-overflow: ellipsis;
1926
+ }
1927
+ .pro-table tbody.ant-table-tbody .varied-cell.empty-cell {
1916
1928
  width: 24.5px;
1917
1929
  }
1918
1930
  .pro-table .copyable-table-cell .ant-typography {
@@ -3027,6 +3039,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3027
3039
  border-radius: 4px;
3028
3040
  background: var(--zaui-contract-bg, #fffaa1) !important;
3029
3041
  }
3042
+ .pro-form .pro-form-item-changed .ant-input {
3043
+ background: var(--zaui-contract-bg, #fffaa1) !important;
3044
+ }
3030
3045
  .pro-form .pro-form-item-changed .ant-select.ant-select-disabled .ant-select-selector {
3031
3046
  background: var(--zaui-contract-bg, #fffaa1) !important;
3032
3047
  }
@@ -3073,7 +3088,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3073
3088
  padding: 5px 0;
3074
3089
  }
3075
3090
  .pro-form .pro-form-item-changed .ant-input-textarea > textarea {
3076
- background: var(--zaui-contract-bg, #fffaa1);
3091
+ background: var(--zaui-contract-bg, #fffaa1) !important;
3077
3092
  }
3078
3093
  .pro-form .pro-form-item-changed .pro-form-view-container {
3079
3094
  padding: 4px 8px;
@@ -3084,6 +3099,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3084
3099
  border-radius: 4px;
3085
3100
  background: var(--zaui-contract-bg-add, #d2fff4) !important;
3086
3101
  }
3102
+ .pro-form .pro-form-item-add .ant-input {
3103
+ background: var(--zaui-contract-bg, #fffaa1) !important;
3104
+ }
3087
3105
  .pro-form .pro-form-item-add .ant-select.ant-select-disabled .ant-select-selector {
3088
3106
  background: var(--zaui-contract-bg-add, #d2fff4) !important;
3089
3107
  }
@@ -3130,13 +3148,19 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3130
3148
  padding: 5px 0;
3131
3149
  }
3132
3150
  .pro-form .pro-form-item-add .ant-input-textarea > textarea {
3133
- background: var(--zaui-contract-bg-add, #d2fff4);
3151
+ background: var(--zaui-contract-bg-add, #d2fff4) !important;
3134
3152
  }
3135
3153
  .pro-form .pro-form-item-add .pro-form-view-container {
3136
3154
  padding: 4px 8px;
3137
3155
  background: var(--zaui-contract-bg-add, #d2fff4);
3138
3156
  border-radius: 4px;
3139
3157
  }
3158
+ .changed-tooltip .original-value-container .ant-space-item:nth-child(1) {
3159
+ white-space: nowrap;
3160
+ }
3161
+ .changed-tooltip .current-value-container .ant-space-item:nth-child(1) {
3162
+ white-space: nowrap;
3163
+ }
3140
3164
  .pro-upload .pro-upload-dragger .pro-upload-handle-box {
3141
3165
  padding: var(--zaui-space-size-sm, 8px);
3142
3166
  background: #f8f9fa;
@@ -2,9 +2,10 @@ import "antd/es/space/style";
2
2
  import _Space from "antd/es/space";
3
3
  import "antd/es/tooltip/style";
4
4
  import _Tooltip from "antd/es/tooltip";
5
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
6
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
6
7
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
7
- var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type", "normalize", "valuePropName"];
8
+ var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type", "normalize", "getValueProps", "valuePropName", "viewRender"];
8
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
10
  import React, { useMemo } from 'react';
10
11
  import classNames from 'classnames';
@@ -79,8 +80,10 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
79
80
  children = props.children,
80
81
  type = props.type,
81
82
  normalize = props.normalize,
83
+ getValueProps = props.getValueProps,
82
84
  _props$valuePropName = props.valuePropName,
83
85
  valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
86
+ viewRender = props.viewRender,
84
87
  rest = _objectWithoutProperties(props, _excluded);
85
88
  var _ref2 = useProConfig('ProEditTable') || {},
86
89
  isDiffAll = _ref2.isDiffAll;
@@ -110,6 +113,23 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
110
113
  }, [props[valuePropName], originalValue]);
111
114
  var isAdd = diffType === 'add';
112
115
  var isChanged = diffType === 'changed';
116
+ var tipContent = useMemo(function () {
117
+ var _getValueProps;
118
+ if (!isWatch || noChange) return undefined;
119
+ var orgValue = getValueProps ? (_getValueProps = getValueProps(originalValue)) === null || _getValueProps === void 0 ? void 0 : _getValueProps[valuePropName] : originalValue;
120
+ // 兼容viewRender函数和Element场景
121
+ var _children = children;
122
+ if (viewRender) {
123
+ if (! /*#__PURE__*/React.isValidElement(viewRender)) {
124
+ return viewRender(orgValue);
125
+ }
126
+ _children = viewRender;
127
+ }
128
+ return /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children), {}, _defineProperty(_defineProperty({
129
+ // @ts-ignore
130
+ isView: true
131
+ }, valuePropName, orgValue), "checked", type === 'Switch' ? originalValue : undefined))) : undefined;
132
+ }, [originalValue, children]);
113
133
  if (!isWatch || noChange) {
114
134
  return /*#__PURE__*/React.isValidElement(children) && /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest));
115
135
  }
@@ -124,12 +144,7 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
124
144
  return target.parentElement;
125
145
  },
126
146
  title: _jsxs(_Space, {
127
- children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children), {}, {
128
- // @ts-ignore
129
- isView: true,
130
- value: originalValue,
131
- checked: type === 'Switch' ? originalValue : undefined
132
- })) : undefined]
147
+ children: ["\u521D\u59CB\u503C\uFF1A", tipContent]
133
148
  }),
134
149
  children: _jsx("div", {
135
150
  className: diffClassName,
@@ -248,13 +248,19 @@ var RenderField = function RenderField(_ref) {
248
248
  TargetComponent = _editRender;
249
249
  }
250
250
  }
251
+ var viewRenderFun = function viewRenderFun(value) {
252
+ if (/*#__PURE__*/React.isValidElement(viewRender)) {
253
+ return viewRender;
254
+ }
255
+ return viewRender === null || viewRender === void 0 ? void 0 : viewRender(value, record, options);
256
+ };
251
257
  // 查看模式
252
258
  if (isView) {
253
259
  // 存在viewRender覆盖默认值
254
260
  if (typeof viewRender === 'function') {
255
261
  var _column$dataIndex;
256
262
  currentValue = (column === null || column === void 0 ? void 0 : (_column$dataIndex = column.dataIndex) === null || _column$dataIndex === void 0 ? void 0 : _column$dataIndex.includes('-')) ? value : currentValue;
257
- var View = viewRender(currentValue, record, options);
263
+ var View = viewRenderFun(currentValue);
258
264
  TargetComponent = _jsx(Container, {
259
265
  viewEmpty: viewEmpty,
260
266
  children: View
@@ -559,6 +565,8 @@ var RenderField = function RenderField(_ref) {
559
565
  onChange: _onChange,
560
566
  valuePropName: _formItemProps.valuePropName,
561
567
  normalize: _formItemProps.normalize,
568
+ getValueProps: _formItemProps.getValueProps,
569
+ viewRender: viewRender && viewRenderFun,
562
570
  children: FieldComponent
563
571
  });
564
572
  }
@@ -89,7 +89,6 @@ var ProEditTable = function ProEditTable(_ref, ref) {
89
89
  return (_ref2 = (_themeConfig$data$zau = themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data = themeConfig.data) === null || _themeConfig$data === void 0 ? void 0 : _themeConfig$data.zauiFormAlign) !== null && _themeConfig$data$zau !== void 0 ? _themeConfig$data$zau : configRequiredAlign) !== null && _ref2 !== void 0 ? _ref2 : 'left';
90
90
  }, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign]);
91
91
  var _useSetState = useSetState({
92
- _columns: columns,
93
92
  cellNamePath: [],
94
93
  forceUpdate: {},
95
94
  editingKeys: [],
@@ -109,7 +109,6 @@ export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemPro
109
109
  }
110
110
  export type ProEditTableColumnsProps<K = any> = ProColumnsProps & ColumnPropsMap<K, 'ProEditTable'>;
111
111
  export interface State {
112
- _columns: ProEditTableColumnsProps[];
113
112
  cellNamePath: NamePath[];
114
113
  forceUpdate: {};
115
114
  editingKeys: string[];
@@ -335,14 +335,21 @@ export var transformColumns = function transformColumns() {
335
335
  });
336
336
  }
337
337
  // 单行多行交互有较大差异
338
- return _jsx("div", {
338
+ return _jsxs("div", {
339
339
  className: cellClassName,
340
340
  onClick: function onClick() {
341
341
  isCanEdit && setState({
342
342
  cellNamePath: cellName
343
343
  });
344
344
  },
345
- children: _jsx(RenderField, {
345
+ children: [index === 0 && !item.width ? _jsx("div", {
346
+ style: {
347
+ visibility: 'hidden',
348
+ height: 0,
349
+ paddingLeft: (item === null || item === void 0 ? void 0 : item.required) ? 16 : 0
350
+ },
351
+ children: columnTitle
352
+ }) : null, _jsx(RenderField, {
346
353
  text: _text,
347
354
  record: record,
348
355
  index: index,
@@ -351,7 +358,7 @@ export var transformColumns = function transformColumns() {
351
358
  cellName: cellName,
352
359
  isEditing: isEditing // 是否正在编辑
353
360
  })
354
- })
361
+ })]
355
362
  });
356
363
  };
357
364
  item.render = _render;
@@ -42,7 +42,7 @@ var useEnumRequest = function useEnumRequest(props, dispatch) {
42
42
  }
43
43
  var logDebug = function logDebug(msg) {
44
44
  if (props.debugger) {
45
- console.info('proEnum:', msg);
45
+ console.warn('proEnum:', msg);
46
46
  }
47
47
  };
48
48
  var enumRes = useRequestFunc(useRequest === null || useRequest === void 0 ? void 0 : useRequest.service, _objectSpread(_objectSpread({
@@ -53,8 +53,8 @@ var ProEnum = function ProEnum(props) {
53
53
  showCodeName = _ref2.showCodeName,
54
54
  resProps = _objectWithoutProperties(_ref2, _excluded2);
55
55
  enumProps.showCodeName = (_enumProps$showCodeNa = enumProps.showCodeName) !== null && _enumProps$showCodeNa !== void 0 ? _enumProps$showCodeNa : showCodeName;
56
- var label = '';
57
- var fieldValue = '';
56
+ var label = 'label';
57
+ var fieldValue = 'value';
58
58
  var _useState = useState(dataSource || []),
59
59
  _useState2 = _slicedToArray(_useState, 2),
60
60
  dataList = _useState2[0],
@@ -82,7 +82,7 @@ var InputNumber = function InputNumber(props) {
82
82
  var _parser = function parser(value, precision) {
83
83
  if (value === '') return value;
84
84
  var num = Number(value.replace(/[\s,]+/g, ''));
85
- return Number.isNaN(num) || !precision && precision !== 0 ? Number.isNaN(Number(value)) ? null : value : num.toFixed(precision);
85
+ return Number.isNaN(num) || !precision && precision !== 0 ? Number.isNaN(Number(value)) ? null : Number(value) : Number(num.toFixed(precision));
86
86
  };
87
87
  if (valueType) {
88
88
  switch (valueType) {
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { InternalNamePath } from 'antd/es/form/interface';
4
4
  import type { levelType } from '../../../../../ProLayout/components/ProCollapse/PropTypes';
5
5
  import type { FormListProps } from '../propsType';
6
+ import { DiffConfigProps } from '../../../../propsType';
6
7
  interface Props extends Omit<FormListProps, 'toolbarProps'> {
7
8
  index: number;
8
9
  namePath: InternalNamePath;
@@ -14,6 +15,7 @@ interface Props extends Omit<FormListProps, 'toolbarProps'> {
14
15
  };
15
16
  level?: levelType;
16
17
  towCollapse?: boolean;
18
+ diffConfig?: DiffConfigProps;
17
19
  }
18
20
  declare const BlockFields: React.FC<Props>;
19
21
  export default BlockFields;