@zat-design/sisyphus-react 3.7.0 → 3.7.1-beta.1

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 (76) 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 +30 -4
  41. package/dist/less.esm.css +30 -4
  42. package/es/ProEditTable/style/index.less +0 -1
  43. package/es/ProEditTable/utils/index.js +2 -2
  44. package/es/ProEnum/hooks/useEnumRequest.js +3 -0
  45. package/es/ProEnum/utils/index.js +1 -1
  46. package/es/ProForm/components/base/Select/index.js +1 -0
  47. package/es/ProForm/components/combination/ProModalSelect/index.js +4 -3
  48. package/es/ProForm/components/combination/ProModalSelect/style/index.less +37 -4
  49. package/es/ProForm/components/render/ConfirmWrapper.js +2 -1
  50. package/es/ProForm/components/render/propsType.d.ts +1 -1
  51. package/es/ProLayout/style/index.less +0 -1
  52. package/es/ProSelect/index.js +4 -0
  53. package/es/ProTable/components/RcTable/components/BaseTable/index.js +0 -1
  54. package/es/ProTable/components/RcTable/components/DraggableTable/index.js +1 -1
  55. package/es/ProTable/components/RenderColumn/index.js +71 -12
  56. package/es/ProTable/components/RenderFooter/index.js +5 -3
  57. package/es/ProTable/index.js +14 -2
  58. package/es/ProTable/style/index.less +1 -2
  59. package/lib/ProEditTable/style/index.less +0 -1
  60. package/lib/ProEditTable/utils/index.js +1 -1
  61. package/lib/ProEnum/hooks/useEnumRequest.js +3 -0
  62. package/lib/ProEnum/utils/index.js +1 -1
  63. package/lib/ProForm/components/base/Select/index.js +1 -0
  64. package/lib/ProForm/components/combination/ProModalSelect/index.js +3 -2
  65. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +37 -4
  66. package/lib/ProForm/components/render/ConfirmWrapper.js +2 -1
  67. package/lib/ProForm/components/render/propsType.d.ts +1 -1
  68. package/lib/ProLayout/style/index.less +0 -1
  69. package/lib/ProSelect/index.js +4 -0
  70. package/lib/ProTable/components/RcTable/components/BaseTable/index.js +0 -1
  71. package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +1 -1
  72. package/lib/ProTable/components/RenderColumn/index.js +71 -12
  73. package/lib/ProTable/components/RenderFooter/index.js +5 -3
  74. package/lib/ProTable/index.js +13 -1
  75. package/lib/ProTable/style/index.less +1 -2
  76. package/package.json +1 -1
@@ -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
+
@@ -1387,7 +1387,6 @@
1387
1387
  content: '';
1388
1388
  }
1389
1389
  .pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-item-selected {
1390
- padding-right: 16px;
1391
1390
  background: transparent !important;
1392
1391
  }
1393
1392
  .pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-item-selected::after {
@@ -2024,7 +2023,6 @@
2024
2023
  height: 100%;
2025
2024
  }
2026
2025
  .pro-table .ant-table .ant-table-thead > tr > th {
2027
- white-space: nowrap;
2028
2026
  background: var(--zaui-table-header-bg, #f2f3f5);
2029
2027
  border-bottom: 0;
2030
2028
  }
@@ -2477,6 +2475,32 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2477
2475
  border-top-left-radius: 0;
2478
2476
  border-bottom-left-radius: 0;
2479
2477
  }
2478
+ .pro-modal-select .ant-input-compact-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl),
2479
+ .pro-tree-modal .ant-input-compact-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl) {
2480
+ margin-right: 0;
2481
+ }
2482
+ .pro-modal-select .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl):hover,
2483
+ .pro-tree-modal .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl):hover {
2484
+ position: relative;
2485
+ -webkit-transition: none;
2486
+ transition: none;
2487
+ }
2488
+ .pro-modal-select .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl):hover::before,
2489
+ .pro-tree-modal .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl):hover::before {
2490
+ opacity: 1;
2491
+ }
2492
+ .pro-modal-select .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl)::before,
2493
+ .pro-tree-modal .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl)::before {
2494
+ content: '';
2495
+ position: absolute;
2496
+ top: -1px;
2497
+ left: -1px;
2498
+ width: 1px;
2499
+ height: calc(100% + 2px);
2500
+ background: var(--ant-primary-color-hover);
2501
+ opacity: 0;
2502
+ display: block;
2503
+ }
2480
2504
  .pro-modal-select .ant-input-group-wrapper-status-error:hover .ant-input,
2481
2505
  .pro-tree-modal .ant-input-group-wrapper-status-error:hover .ant-input,
2482
2506
  .pro-modal-select .ant-input-group-wrapper-status-error:hover .ant-input-group-addon,
@@ -2515,7 +2539,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2515
2539
  }
2516
2540
  .pro-modal-select .ant-space-compact .ant-btn-compact-last-item,
2517
2541
  .pro-tree-modal .ant-space-compact .ant-btn-compact-last-item {
2518
- border-left: none;
2542
+ border-left: none !important;
2519
2543
  }
2520
2544
  .pro-modal-select .ant-input-group-addon,
2521
2545
  .pro-tree-modal .ant-input-group-addon {
@@ -2538,6 +2562,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2538
2562
  color: var(--zaui-danger, #ff5050);
2539
2563
  border-color: var(--zaui-danger, #ff5050);
2540
2564
  }
2565
+ .ant-form-item-has-error .pro-modal-select .ant-btn-compact-last-item::before {
2566
+ background: var(--zaui-danger, #ff5050) !important;
2567
+ }
2541
2568
  .pro-group {
2542
2569
  width: unset !important;
2543
2570
  display: -webkit-box;
@@ -4433,7 +4460,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
4433
4460
  }
4434
4461
  .pro-edit-table .ant-table-thead > tr > th {
4435
4462
  border: 0;
4436
- white-space: nowrap;
4437
4463
  background-color: var(--zaui-table-header-bg, #f2f3f5);
4438
4464
  }
4439
4465
  .pro-edit-table .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
package/dist/less.esm.css CHANGED
@@ -1387,7 +1387,6 @@
1387
1387
  content: '';
1388
1388
  }
1389
1389
  .pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-item-selected {
1390
- padding-right: 16px;
1391
1390
  background: transparent !important;
1392
1391
  }
1393
1392
  .pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-item-selected::after {
@@ -2024,7 +2023,6 @@
2024
2023
  height: 100%;
2025
2024
  }
2026
2025
  .pro-table .ant-table .ant-table-thead > tr > th {
2027
- white-space: nowrap;
2028
2026
  background: var(--zaui-table-header-bg, #f2f3f5);
2029
2027
  border-bottom: 0;
2030
2028
  }
@@ -2477,6 +2475,32 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2477
2475
  border-top-left-radius: 0;
2478
2476
  border-bottom-left-radius: 0;
2479
2477
  }
2478
+ .pro-modal-select .ant-input-compact-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl),
2479
+ .pro-tree-modal .ant-input-compact-item:not(.ant-input-compact-last-item):not(.ant-input-compact-item-rtl) {
2480
+ margin-right: 0;
2481
+ }
2482
+ .pro-modal-select .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl):hover,
2483
+ .pro-tree-modal .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl):hover {
2484
+ position: relative;
2485
+ -webkit-transition: none;
2486
+ transition: none;
2487
+ }
2488
+ .pro-modal-select .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl):hover::before,
2489
+ .pro-tree-modal .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl):hover::before {
2490
+ opacity: 1;
2491
+ }
2492
+ .pro-modal-select .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl)::before,
2493
+ .pro-tree-modal .ant-btn-compact-item.ant-btn.ant-btn-compact-last-item:not(.ant-btn-compact-first-item):not(.ant-btn-compact-item-rtl)::before {
2494
+ content: '';
2495
+ position: absolute;
2496
+ top: -1px;
2497
+ left: -1px;
2498
+ width: 1px;
2499
+ height: calc(100% + 2px);
2500
+ background: var(--ant-primary-color-hover);
2501
+ opacity: 0;
2502
+ display: block;
2503
+ }
2480
2504
  .pro-modal-select .ant-input-group-wrapper-status-error:hover .ant-input,
2481
2505
  .pro-tree-modal .ant-input-group-wrapper-status-error:hover .ant-input,
2482
2506
  .pro-modal-select .ant-input-group-wrapper-status-error:hover .ant-input-group-addon,
@@ -2515,7 +2539,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2515
2539
  }
2516
2540
  .pro-modal-select .ant-space-compact .ant-btn-compact-last-item,
2517
2541
  .pro-tree-modal .ant-space-compact .ant-btn-compact-last-item {
2518
- border-left: none;
2542
+ border-left: none !important;
2519
2543
  }
2520
2544
  .pro-modal-select .ant-input-group-addon,
2521
2545
  .pro-tree-modal .ant-input-group-addon {
@@ -2538,6 +2562,9 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2538
2562
  color: var(--zaui-danger, #ff5050);
2539
2563
  border-color: var(--zaui-danger, #ff5050);
2540
2564
  }
2565
+ .ant-form-item-has-error .pro-modal-select .ant-btn-compact-last-item::before {
2566
+ background: var(--zaui-danger, #ff5050) !important;
2567
+ }
2541
2568
  .pro-group {
2542
2569
  width: unset !important;
2543
2570
  display: -webkit-box;
@@ -4433,7 +4460,6 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
4433
4460
  }
4434
4461
  .pro-edit-table .ant-table-thead > tr > th {
4435
4462
  border: 0;
4436
- white-space: nowrap;
4437
4463
  background-color: var(--zaui-table-header-bg, #f2f3f5);
4438
4464
  }
4439
4465
  .pro-edit-table .ant-table-thead > tr > th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
@@ -206,7 +206,6 @@
206
206
 
207
207
  .@{ant-prefix}-table-thead>tr>th {
208
208
  border : 0;
209
- white-space : nowrap;
210
209
  background-color: var(--zaui-table-header-bg, #f2f3f5);
211
210
  }
212
211
 
@@ -13,7 +13,7 @@ var _excluded = ["type", "label", "show", "needConfirm", "onHandle", "onClick"],
13
13
  _excluded2 = ["title", "icon"];
14
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  import React from 'react';
16
- import { cloneDeep, cloneDeepWith, isArray, isBoolean, isEqual } from 'lodash';
16
+ import { cloneDeepWith, isArray, isBoolean, isEqual } from 'lodash';
17
17
  import classnames from 'classnames';
18
18
  import { ReactSVG } from 'react-svg';
19
19
  import { tools } from '@zat-design/utils';
@@ -284,7 +284,7 @@ export var transformColumns = function transformColumns() {
284
284
  if (!(_cacheMap === null || _cacheMap === void 0 ? void 0 : (_cacheMap$item$dataIn = _cacheMap[item.dataIndex]) === null || _cacheMap$item$dataIn === void 0 ? void 0 : (_cacheMap$item$dataIn2 = _cacheMap$item$dataIn.dataSource) === null || _cacheMap$item$dataIn2 === void 0 ? void 0 : _cacheMap$item$dataIn2.length)) {
285
285
  var _item$fieldProps, _item$fieldProps2;
286
286
  _cacheMap[item.dataIndex] = {
287
- useRequest: cloneDeep((_item$fieldProps = item.fieldProps) === null || _item$fieldProps === void 0 ? void 0 : _item$fieldProps.useRequest),
287
+ useRequest: (_item$fieldProps = item.fieldProps) === null || _item$fieldProps === void 0 ? void 0 : _item$fieldProps.useRequest,
288
288
  dataSource: [],
289
289
  transformResponse: (_item$fieldProps2 = item.fieldProps) === null || _item$fieldProps2 === void 0 ? void 0 : _item$fieldProps2.transformResponse
290
290
  };
@@ -91,6 +91,9 @@ var useEnumRequest = function useEnumRequest(props, dispatch) {
91
91
  // 忽略清洗的 codes
92
92
  ignoreCodes = (useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options = useRequest.options) === null || _useRequest$options === void 0 ? void 0 : _useRequest$options.ignoreCodes) || [];
93
93
  Object.keys(response).forEach(function (key) {
94
+ if (!response[key] || !Array.isArray(response[key])) {
95
+ return;
96
+ }
94
97
  var options = _toConsumableArray(response[key]) || [];
95
98
  if (ignoreCodes.includes(key)) {
96
99
  response[key] = options;
@@ -74,7 +74,7 @@ export function cacheFieldNames(fieldNames, dataSource) {
74
74
  });
75
75
  // 递归去对数据进行清洗
76
76
  if (children && Array.isArray(dataSource[children])) {
77
- result[children] = dataSource[children].map(function (item) {
77
+ result.children = dataSource[children].map(function (item) {
78
78
  return cacheFieldNames(fieldNames, item);
79
79
  });
80
80
  }
@@ -58,6 +58,7 @@ var Select = function Select(props) {
58
58
  }, initialConfig), {}, {
59
59
  options: dataSource
60
60
  }, rest), {}, {
61
+ value: rest.value === '' ? null : rest.value,
61
62
  fieldNames: _fieldNames
62
63
  }));
63
64
  };
@@ -9,6 +9,7 @@ import _Spin from "antd/es/spin";
9
9
  import "antd/es/space/style";
10
10
  import _Space from "antd/es/space";
11
11
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
12
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
12
13
  import "antd/es/message/style";
13
14
  import _message from "antd/es/message";
14
15
  import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
@@ -24,7 +25,7 @@ var _excluded = ["value", "onChange", "disabled", "labelInValue", "fieldNames",
24
25
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
25
26
  import { SearchOutlined } from '@ant-design/icons';
26
27
  import { useDeepCompareEffect, useMount, useSetState } from 'ahooks';
27
- import { cloneDeep, debounce, isArray, isEqual, isFunction, omit } from 'lodash';
28
+ import { debounce, isArray, isEqual, isFunction, omit } from 'lodash';
28
29
  import { ReactSVG } from 'react-svg';
29
30
  import React, { forwardRef, useEffect, useImperativeHandle, useMemo } from 'react';
30
31
  import { ProForm, ProDrawerForm, ProTable, useProConfig, ProSelect } from '../../../../index';
@@ -409,8 +410,8 @@ var ProModalSelect = function ProModalSelect(props, ref) {
409
410
  }
410
411
  if (record === null || record === void 0 ? void 0 : record.disabled) return;
411
412
  var selectedValue = getRowKey(record);
412
- var tempSelectedRows = cloneDeep(selectedRows);
413
- var tempSelectedRowKeys = cloneDeep(selectedRowKeys);
413
+ var tempSelectedRows = _toConsumableArray(selectedRows);
414
+ var tempSelectedRowKeys = _toConsumableArray(selectedRowKeys);
414
415
  if (isMultiple) {
415
416
  var rowIndex = tempSelectedRows.findIndex(function (item) {
416
417
  return getRowKey(item) === selectedValue;
@@ -57,7 +57,7 @@
57
57
  .@{ant-prefix}-input-affix-wrapper {
58
58
  border-top-right-radius: 0;
59
59
  border-bottom-right-radius: 0;
60
- &.ant-input-affix-wrapper-status-error{
60
+ &.@{ant-prefix}-input-affix-wrapper-status-error{
61
61
  & + .@{ant-prefix}-btn{
62
62
  border: 1px solid var(--ant-error-color);
63
63
  >.viewSvg{
@@ -74,6 +74,36 @@
74
74
  }
75
75
  }
76
76
 
77
+ .@{ant-prefix}-input-compact-item:not(.@{ant-prefix}-input-compact-last-item):not(.@{ant-prefix}-input-compact-item-rtl){
78
+ margin-right: 0;
79
+ }
80
+
81
+ .@{ant-prefix}-btn-compact-item.@{ant-prefix}-btn.@{ant-prefix}-btn-compact-last-item:not(.@{ant-prefix}-btn-compact-first-item):not(.@{ant-prefix}-btn-compact-item-rtl){
82
+ &:hover{
83
+ position: relative;
84
+ transition: none;
85
+ &::before{
86
+ opacity: 1;
87
+ }
88
+ }
89
+ &::before{
90
+ content: '';
91
+ position: absolute;
92
+ top: -1px;
93
+ left: -1px;
94
+ width: 1px;
95
+ height: calc(100% + 2px);
96
+ background:var(--ant-primary-color-hover);
97
+ opacity: 0;
98
+ display: block;
99
+ }
100
+ }
101
+
102
+ .@{ant-prefix}-input-affix-wrapper-status-error{
103
+
104
+ }
105
+
106
+
77
107
  .@{ant-prefix}-input-group-wrapper-status-error {
78
108
  &:hover {
79
109
  .@{ant-prefix}-input,
@@ -109,7 +139,7 @@
109
139
 
110
140
  .@{ant-prefix}-space-compact {
111
141
  .@{ant-prefix}-select-compact-item-div:has(.@{ant-prefix}-select-status-error) {
112
- & + .ant-btn-compact-last-item {
142
+ & + .@{ant-prefix}-btn-compact-last-item {
113
143
  border-top: 1px solid var(--ant-error-color);
114
144
  border-right: 1px solid var(--ant-error-color);
115
145
  border-bottom: 1px solid var(--ant-error-color);
@@ -119,7 +149,7 @@
119
149
  }
120
150
  }
121
151
  .@{ant-prefix}-btn-compact-last-item{
122
- border-left: none;
152
+ border-left: none !important;
123
153
  }
124
154
  }
125
155
 
@@ -138,9 +168,12 @@
138
168
  // 报错信息
139
169
  .@{ant-prefix}-form-item-has-error{
140
170
  .pro-modal-select{
141
- .ant-btn-compact-last-item{
171
+ .@{ant-prefix}-btn-compact-last-item{
142
172
  color: @zaui-danger;
143
173
  border-color: @zaui-danger;
174
+ &::before{
175
+ background: @zaui-danger !important;
176
+ }
144
177
  }
145
178
  }
146
179
  }
@@ -46,7 +46,8 @@ var ConfirmWrapper = function ConfirmWrapper(props) {
46
46
  form: form,
47
47
  namePath: otherProps.namePath,
48
48
  name: otherProps.name,
49
- index: otherProps.index
49
+ index: otherProps.index,
50
+ preValue: form.getFieldValue(otherProps.listName || otherProps.name)
50
51
  });
51
52
  case 5:
52
53
  _context.t0 = _context.sent;
@@ -220,7 +220,7 @@ export interface ProFormColumnProps<Values = any> extends Omit<FormItemProps<Val
220
220
  extra?: string | React.ReactNode;
221
221
  /** 是否固定字段, 不隐藏 */
222
222
  fixed?: boolean;
223
- confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps | void>;
223
+ confirm?: boolean | ModalFuncProps | FunctionArgs<Values, boolean | ModalFuncProps | void | Promise<boolean | ModalFuncProps | void>>;
224
224
  /** 防抖模式 */
225
225
  debounceWait?: number;
226
226
  }
@@ -242,7 +242,6 @@
242
242
  }
243
243
 
244
244
  .pro-layout-open-menu .@{ant-prefix}-menu-item-selected {
245
- padding-right: 16px;
246
245
  &::after {
247
246
  display: none;
248
247
  }
@@ -268,6 +268,10 @@ export var ProSelect = function ProSelect(props, ref) {
268
268
  return option === null || option === void 0 ? void 0 : option[code];
269
269
  }
270
270
  }
271
+ // 修复空字符placeholder不显示
272
+ if (value === '') {
273
+ return null;
274
+ }
271
275
  return value;
272
276
  };
273
277
  var newSelectList = selectList;
@@ -25,7 +25,6 @@ var BaseTable = function BaseTable(_ref) {
25
25
  return null;
26
26
  };
27
27
  return _jsx(_Table, _objectSpread(_objectSpread({
28
- className: "pro-edit-table-drag",
29
28
  components: renderComponents(),
30
29
  columns: columns,
31
30
  locale: {
@@ -8,7 +8,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
8
8
  * @Author: za-xuwenli xuwenli@zhongan.io
9
9
  * @Date: 2024-08-09 13:48:59
10
10
  * @LastEditors: za-xuwenli xuwenli@zhongan.io
11
- * @LastEditTime: 2024-08-20 19:31:24
11
+ * @LastEditTime: 2024-08-27 15:27:44
12
12
  * @FilePath: /za-material-warehouse/src/ProTable/components/RcTable/components/DraggableTable/index.tsx
13
13
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
14
14
  */