@zat-design/sisyphus-react 3.11.14-beta.11 → 3.11.14-beta.12

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 (145) hide show
  1. package/.vscode/extensions.json +5 -0
  2. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +2 -2
  3. package/coverage/lcov-report/src/.umi/core/history.ts.html +3 -3
  4. package/coverage/lcov-report/src/.umi/core/index.html +8 -8
  5. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +3 -3
  6. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +6 -6
  7. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +2 -2
  8. package/coverage/lcov-report/src/.umi/core/routes.ts.html +3723 -624
  9. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +2 -2
  10. package/coverage/lcov-report/src/.umi/dumi/index.html +2 -2
  11. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +3 -3
  12. package/coverage/lcov-report/src/.umi/index.html +2 -2
  13. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +2 -2
  14. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +2 -2
  15. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +3 -3
  16. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +2 -2
  17. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +2 -2
  18. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +2 -2
  19. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +2 -2
  20. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +2 -2
  21. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +2 -2
  22. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +2 -2
  23. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +2 -2
  24. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +2 -2
  25. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +2 -2
  26. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +5 -5
  27. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +2 -2
  28. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +3 -3
  29. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +2 -2
  30. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +2 -2
  31. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +2 -2
  32. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +2 -2
  33. package/coverage/lcov-report/src/.umi/plugin-model/index.html +2 -2
  34. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +2 -2
  35. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +3 -3
  36. package/coverage/lcov-report/src/.umi/plugin-request/index.html +2 -2
  37. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +6 -6
  38. package/coverage/lcov-report/src/.umi/umi.ts.html +6 -6
  39. package/coverage/src/.umi/core/devScripts.ts.html +241 -0
  40. package/coverage/src/.umi/core/history.ts.html +148 -0
  41. package/coverage/src/.umi/core/index.html +206 -0
  42. package/coverage/src/.umi/core/plugin.ts.html +109 -0
  43. package/coverage/src/.umi/core/pluginRegister.ts.html +160 -0
  44. package/coverage/src/.umi/core/polyfill.ts.html +97 -0
  45. package/coverage/src/.umi/core/routes.ts.html +29149 -0
  46. package/coverage/src/.umi/core/umiExports.ts.html +112 -0
  47. package/coverage/src/.umi/dumi/index.html +116 -0
  48. package/coverage/src/.umi/dumi/layout.tsx.html +109 -0
  49. package/coverage/src/.umi/index.html +116 -0
  50. package/coverage/src/.umi/plugin-antd/index.html +116 -0
  51. package/coverage/src/.umi/plugin-antd/runtime.tsx.html +172 -0
  52. package/coverage/src/.umi/plugin-helmet/exports.ts.html +94 -0
  53. package/coverage/src/.umi/plugin-helmet/index.html +116 -0
  54. package/coverage/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
  55. package/coverage/src/.umi/plugin-initial-state/exports.ts.html +106 -0
  56. package/coverage/src/.umi/plugin-initial-state/index.html +146 -0
  57. package/coverage/{lcov-report/src/.umi/dumi/demos → src/.umi/plugin-initial-state/models}/index.html +15 -15
  58. package/coverage/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
  59. package/coverage/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
  60. package/coverage/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
  61. package/coverage/src/.umi/plugin-locale/index.html +161 -0
  62. package/coverage/src/.umi/plugin-locale/locale.tsx.html +268 -0
  63. package/coverage/src/.umi/plugin-locale/localeExports.ts.html +778 -0
  64. package/coverage/src/.umi/plugin-locale/runtime.tsx.html +115 -0
  65. package/coverage/src/.umi/plugin-model/Provider.tsx.html +202 -0
  66. package/coverage/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
  67. package/coverage/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
  68. package/coverage/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
  69. package/coverage/src/.umi/plugin-model/helpers/index.html +146 -0
  70. package/coverage/src/.umi/plugin-model/index.html +146 -0
  71. package/coverage/src/.umi/plugin-model/runtime.tsx.html +121 -0
  72. package/coverage/src/.umi/plugin-model/useModel.tsx.html +298 -0
  73. package/coverage/src/.umi/plugin-request/index.html +116 -0
  74. package/coverage/src/.umi/plugin-request/request.ts.html +919 -0
  75. package/coverage/src/.umi/umi.ts.html +268 -0
  76. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  77. package/es/ProEditTable/index.js +12 -8
  78. package/es/ProEditTable/propsType.d.ts +39 -41
  79. package/es/ProEditTable/utils/index.d.ts +1 -1
  80. package/es/ProEditTable/utils/index.js +6 -4
  81. package/es/ProEditTable/utils/tools.d.ts +57 -22
  82. package/es/ProEditTable/utils/tools.js +47 -21
  83. package/es/ProEnum/propsType.d.ts +1 -1
  84. package/es/ProForm/components/combination/Group/propsType.d.ts +1 -1
  85. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +2 -2
  86. package/es/ProForm/components/render/propsType.d.ts +3 -6
  87. package/es/ProForm/propsType.d.ts +5 -3
  88. package/es/ProForm/propsType.js +0 -1
  89. package/es/ProForm/utils/useForm.d.ts +1 -1
  90. package/es/ProForm/utils/useRules.d.ts +1 -1
  91. package/es/ProIcon/propsTypes.d.ts +0 -4
  92. package/es/ProStep/components/Anchor/index.d.ts +2 -1
  93. package/es/ProStep/components/Item/index.d.ts +1 -1
  94. package/es/ProStep/components/Item/index.js +6 -2
  95. package/es/ProStep/components/Listener/index.d.ts +4 -3
  96. package/es/ProStep/components/Listener/index.js +18 -4
  97. package/es/ProStep/index.d.ts +7 -7
  98. package/es/ProStep/index.js +7 -3
  99. package/es/ProStep/propsType.d.ts +145 -5
  100. package/es/ProStep/utils/index.d.ts +16 -3
  101. package/es/ProStep/utils/index.js +11 -2
  102. package/es/ProTable/components/FormatColumn/index.js +2 -4
  103. package/es/ProTable/propsType.d.ts +14 -20
  104. package/es/ProTooltip/propsType.d.ts +0 -3
  105. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +0 -7
  106. package/es/ProTree/propsType.d.ts +0 -11
  107. package/es/ProTreeModal/propsType.d.ts +0 -2
  108. package/es/index.d.ts +15 -11
  109. package/es/index.js +1 -12
  110. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  111. package/lib/ProEditTable/index.js +12 -8
  112. package/lib/ProEditTable/propsType.d.ts +39 -41
  113. package/lib/ProEditTable/utils/index.d.ts +1 -1
  114. package/lib/ProEditTable/utils/index.js +6 -4
  115. package/lib/ProEditTable/utils/tools.d.ts +57 -22
  116. package/lib/ProEditTable/utils/tools.js +47 -21
  117. package/lib/ProEnum/propsType.d.ts +1 -1
  118. package/lib/ProForm/components/combination/Group/propsType.d.ts +1 -1
  119. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +2 -2
  120. package/lib/ProForm/components/render/propsType.d.ts +3 -6
  121. package/lib/ProForm/propsType.d.ts +5 -3
  122. package/lib/ProForm/propsType.js +0 -15
  123. package/lib/ProForm/utils/useForm.d.ts +1 -1
  124. package/lib/ProForm/utils/useRules.d.ts +1 -1
  125. package/lib/ProIcon/propsTypes.d.ts +0 -4
  126. package/lib/ProStep/components/Anchor/index.d.ts +2 -1
  127. package/lib/ProStep/components/Item/index.d.ts +1 -1
  128. package/lib/ProStep/components/Item/index.js +6 -2
  129. package/lib/ProStep/components/Listener/index.d.ts +4 -3
  130. package/lib/ProStep/components/Listener/index.js +18 -4
  131. package/lib/ProStep/index.d.ts +7 -7
  132. package/lib/ProStep/index.js +7 -3
  133. package/lib/ProStep/propsType.d.ts +145 -5
  134. package/lib/ProStep/utils/index.d.ts +16 -3
  135. package/lib/ProStep/utils/index.js +11 -2
  136. package/lib/ProTable/components/FormatColumn/index.js +2 -4
  137. package/lib/ProTable/propsType.d.ts +14 -20
  138. package/lib/ProTooltip/propsType.d.ts +0 -3
  139. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +0 -7
  140. package/lib/ProTree/propsType.d.ts +0 -11
  141. package/lib/ProTreeModal/propsType.d.ts +0 -2
  142. package/lib/index.d.ts +15 -11
  143. package/lib/index.js +7 -131
  144. package/package.json +1 -1
  145. package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +0 -6340
@@ -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 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/site/zakj/za-material-warehouse/node_modules/umi/node_modules/@umijs/runtime';
195
+ import { renderClient } from '/Users/zakj/site/zakj/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.11.14-beta.10)`,
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.43',
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 2025-03-20T08:06:25.125Z
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
+
@@ -1,8 +1,8 @@
1
- import { SummaryColumnType } from '../../propsType';
1
+ import { ProEditTableSummaryColumnType } from '../../propsType';
2
2
  interface SummaryProps<T = any> {
3
3
  data: T[];
4
4
  summary: {
5
- columns: SummaryColumnType[];
5
+ columns: ProEditTableSummaryColumnType[];
6
6
  total?: boolean;
7
7
  fixed?: boolean | 'top' | 'bottom';
8
8
  };
@@ -77,7 +77,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
77
77
  disabled = (formFieldProps === null || formFieldProps === void 0 ? void 0 : formFieldProps.disabled) || disabled; // formFieldProps?.disabled可能是函数??
78
78
  }
79
79
  var tableRef = useRef(null);
80
- var valueChangeRef = useRef(null);
80
+ var valueChangeRef = useRef(0);
81
81
  valueChangeRef.current = 0;
82
82
  var _React$useContext = React.useContext(_ConfigProvider.ConfigContext),
83
83
  getPrefixCls = _React$useContext.getPrefixCls;
@@ -88,7 +88,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
88
88
  var requiredAlign = useMemo(function () {
89
89
  var _ref2, _themeConfig$data$zau, _themeConfig$data;
90
90
  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';
91
- }, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign]);
91
+ }, [themeConfig === null || themeConfig === void 0 ? void 0 : (_themeConfig$data2 = themeConfig.data) === null || _themeConfig$data2 === void 0 ? void 0 : _themeConfig$data2.zauiFormAlign, configRequiredAlign]);
92
92
  var _useSetState = useSetState({
93
93
  cellNamePath: [],
94
94
  forceUpdate: {},
@@ -211,7 +211,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
211
211
  return function (_x, _x2) {
212
212
  return _ref4.apply(this, arguments);
213
213
  };
214
- }(), []);
214
+ }(), [pagination, page.pageSize, form, name]);
215
215
  var config = _objectSpread({
216
216
  form: form,
217
217
  mode: mode,
@@ -269,10 +269,12 @@ var ProEditTable = function ProEditTable(_ref, ref) {
269
269
  return item.type === type;
270
270
  });
271
271
  if (typeof (addBtnConfig === null || addBtnConfig === void 0 ? void 0 : addBtnConfig.show) === 'function') {
272
- addBtnConfig.show = addBtnConfig.show();
272
+ var result = addBtnConfig.show();
273
+ addBtnConfig.show = result;
273
274
  }
274
275
  return (addBtnConfig === null || addBtnConfig === void 0 ? void 0 : addBtnConfig.show) === false;
275
276
  }
277
+ return false;
276
278
  }, [toolbarProps]);
277
279
  // 是否隐藏勾选框
278
280
  var isHideCheckBox = isForbiddenBtn('mulDelete');
@@ -304,7 +306,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
304
306
  className: "com-empty",
305
307
  children: [_jsx("img", {
306
308
  className: "img",
307
- src: Empty
309
+ src: Empty,
310
+ alt: "Empty"
308
311
  }), _jsx("div", {
309
312
  className: "content",
310
313
  children: disabled || isForbiddenBtn('add') ? locale.ProEditTable.noData : _jsxs(_Fragment, {
@@ -357,7 +360,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
357
360
  rowKey: getRowKey(item)
358
361
  });
359
362
  });
360
- onChange(nextValues);
363
+ onChange === null || onChange === void 0 ? void 0 : onChange(nextValues);
361
364
  if (virtualKey) {
362
365
  form.setFieldValue(virtualRowName, nextValues);
363
366
  }
@@ -377,8 +380,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
377
380
  useEffect(function () {
378
381
  if (toolbarSticky) {
379
382
  var updatePos = function updatePos() {
380
- var _affixRef$current;
381
- affixRef === null || affixRef === void 0 ? void 0 : (_affixRef$current = affixRef.current) === null || _affixRef$current === void 0 ? void 0 : _affixRef$current.updatePosition();
383
+ var _affixRef$current, _affixRef$current$upd;
384
+ affixRef === null || affixRef === void 0 ? void 0 : (_affixRef$current = affixRef.current) === null || _affixRef$current === void 0 ? void 0 : (_affixRef$current$upd = _affixRef$current.updatePosition) === null || _affixRef$current$upd === void 0 ? void 0 : _affixRef$current$upd.call(_affixRef$current);
382
385
  };
383
386
  window.addEventListener('scroll', updatePos, true);
384
387
  return function () {
@@ -480,4 +483,5 @@ ForwardProEditTable.defaultProps = {
480
483
  deletePoConfirmMsg: locale.ProEditTable.deletePoConfirmMsg,
481
484
  mulDeletePoConfirmMsg: locale.ProEditTable.mulDeletePoConfirmMsg
482
485
  };
486
+ // 导出组件
483
487
  export default ForwardProEditTable;
@@ -6,8 +6,7 @@ import type { TooltipProps } from 'antd/es/tooltip';
6
6
  import type { NamePath } from 'antd/es/form/interface';
7
7
  import type { ColumnType, TableProps } from 'antd/es/table';
8
8
  import type { FormInstance, FormItemProps } from 'antd/es/form';
9
- import type { FunctionArgs, ProRule } from '../ProForm/propsType';
10
- import type { ProFormValueType, ColumnTypeMap } from '../ProForm/components/render/propsType';
9
+ import type { ProFormValueType, FunctionArgs, ProRule } from '../ProForm/components/render/propsType';
11
10
  import type { DiffOriginalParams } from '../ProForm/utils/diffOriginal';
12
11
  /**
13
12
  * 操作类型定义
@@ -17,14 +16,14 @@ export type ActionType = 'edit' | 'delete' | 'save' | 'cancel' | 'add' | 'mulDel
17
16
  * 操作按钮展示控制函数类型
18
17
  * @template T 记录类型
19
18
  */
20
- export type ShowFunction<T> = (record?: T, options?: {
19
+ export type ShowFunction<T = any> = (record?: T, options?: {
21
20
  index: number;
22
21
  form: FormInstance;
23
22
  name: NamePath;
24
23
  namePath: NamePath;
25
24
  tableLength: number;
26
25
  selectedRows: T[];
27
- }) => Promise<any> | boolean | void;
26
+ }) => Promise<boolean> | boolean | void;
28
27
  /**
29
28
  * 选项属性接口
30
29
  */
@@ -61,10 +60,6 @@ export interface SummaryColumnProps {
61
60
  /** 前缀 */
62
61
  prefix?: ReactNode | string;
63
62
  }
64
- /**
65
- * 汇总列属性类型(基于接口)
66
- */
67
- export type SummaryColumnType = SummaryColumnProps;
68
63
  /**
69
64
  * 基础操作按钮属性
70
65
  * @template T 记录类型
@@ -110,36 +105,31 @@ export interface BaseActionProps<T = any> {
110
105
  /**
111
106
  * 按钮前置校验事件
112
107
  */
113
- onClick?: (record?: any, index?: number) => any;
108
+ onClick?: (record?: T, index?: number) => any;
114
109
  /**
115
110
  * 按钮前置校验事件
116
111
  */
117
- onHandle?: (record?: any, index?: number) => any;
112
+ onHandle?: (record?: T, index?: number) => any;
118
113
  /**
119
114
  * 支持antd的Button属性
120
115
  */
121
116
  buttonProps?: Omit<ButtonProps, 'type' | 'onClick'>;
122
117
  }
123
- /**
124
- * 基础操作按钮类型(基于接口)
125
- * @template T 记录类型
126
- */
127
- export type BaseActionType<T = any> = BaseActionProps<T>;
128
118
  /**
129
119
  * 规则函数类型
130
120
  * @template T 记录类型
131
121
  */
132
- export type RulesFn<T> = (text?: any, record?: T, options?: OptionsProps) => ProRule[] | void;
122
+ export type RulesFn<T = any> = (text?: any, record?: T, options?: OptionsProps) => ProRule[] | void;
133
123
  /**
134
124
  * 必填函数类型
135
125
  * @template T 记录类型
136
126
  */
137
- export type RequiredFn<T> = (text?: any, record?: T, options?: OptionsProps) => boolean | void;
127
+ export type RequiredFn<T = any> = (text?: any, record?: T, options?: OptionsProps) => boolean | void;
138
128
  /**
139
129
  * 视图渲染函数类型
140
130
  * @template T 记录类型
141
131
  */
142
- export type viewRenderFn<T> = (text?: any, record?: T, options?: OptionsProps) => string | number | ReactNode | void;
132
+ export type viewRenderFn<T = any> = (text?: any, record?: T, options?: OptionsProps) => string | number | ReactNode | void;
143
133
  /**
144
134
  * 表格列属性接口
145
135
  * @template Values 值类型
@@ -157,7 +147,7 @@ export interface ProColumnsProps<Values = any, T = any> extends Omit<FormItemPro
157
147
  /** 是否可编辑 */
158
148
  isEditable?: boolean | RequiredFn<T>;
159
149
  /** 值类型 */
160
- valueType?: ProFormValueType | ((text?: any, record?: any, options?: OptionsProps) => ProFormValueType);
150
+ valueType?: ProFormValueType | ((text?: any, record?: T, options?: OptionsProps) => ProFormValueType);
161
151
  /** 提示信息 */
162
152
  tooltip?: string | ({
163
153
  icon?: string | ReactNode;
@@ -188,20 +178,15 @@ export type ProColumnsType<Values = any, T = any> = ProColumnsProps<Values, T>;
188
178
  * 可编辑表格列属性
189
179
  * @template K 键类型
190
180
  */
191
- export type ProEditTableColumnsProps<K = any> = ProColumnsProps & ColumnTypeMap<K, 'ProEditTable'>;
192
- /**
193
- * 可编辑表格列属性类型(基于类型)
194
- * @template K 键类型
195
- */
196
- export type ProEditTableColumnsType<K = any> = ProEditTableColumnsProps<K>;
181
+ export type ProEditTableColumnsProps<K = any> = ProColumnsProps<K, 'ProEditTable'>;
197
182
  /**
198
183
  * 状态接口
199
184
  */
200
- export interface State {
185
+ export interface StateProps {
201
186
  /** 单元格名称路径 */
202
187
  cellNamePath: NamePath[];
203
188
  /** 表格内部强制刷新开关 */
204
- forceUpdate: {};
189
+ forceUpdate: Record<string, any>;
205
190
  /** 正在编辑行的row-key集合 */
206
191
  editingKeys: string[];
207
192
  /** 当前选中行的row-key集合 */
@@ -219,13 +204,15 @@ export interface State {
219
204
  /**
220
205
  * 状态类型(基于接口)
221
206
  */
222
- export type StateType = State;
207
+ export type StateType = StateProps;
223
208
  /**
224
209
  * 可编辑表格引用属性
225
210
  */
226
211
  export interface ProEditTableRefProps {
227
212
  /** 获取内部状态 */
228
- getInternalState: () => StateType;
213
+ getInternalState: () => StateProps;
214
+ /** 设置内部状态 */
215
+ setInternalState: (state: Partial<StateProps>) => void;
229
216
  }
230
217
  /**
231
218
  * 可编辑表格引用属性类型(基于接口)
@@ -249,12 +236,11 @@ export type ActionDirectionType = ActionDirection;
249
236
  * 汇总信息配置
250
237
  * @template T 记录类型
251
238
  */
252
- export type SummaryConfig<T> = {
253
- columns: SummaryColumnType[];
239
+ export type SummaryProps<T = any> = {
240
+ columns: ProEditTableSummaryColumnType[];
254
241
  total?: boolean;
255
242
  fixed?: boolean | 'top' | 'bottom';
256
243
  } | TableProps<T>['summary'];
257
- export type SummaryConfigType<T = any> = SummaryConfig<T>;
258
244
  /**
259
245
  * 可编辑表格属性接口
260
246
  * @template T 记录类型
@@ -267,18 +253,18 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
267
253
  /**
268
254
  * 原始数据源,设置后可以对比更新后的数值
269
255
  */
270
- originalValues?: any;
256
+ originalValues?: Record<string, any>;
271
257
  /**
272
258
  * 可编辑表格的模式
273
259
  * @default multiple
274
260
  */
275
- mode?: ProEditTableModeType;
261
+ mode?: ProEditTableMode;
276
262
  /**
277
263
  * 可编辑表格的类型,单行编辑或者多行编辑
278
264
  * @deprecated 将于下个版本 4.0.0 被弃用
279
265
  * @default multiple
280
266
  */
281
- type?: ProEditTableModeType;
267
+ type?: ProEditTableMode;
282
268
  /**
283
269
  * 必填对齐方式, 默认右对齐
284
270
  * @default right
@@ -297,7 +283,7 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
297
283
  * 表格列的配置描述,扩展了FormItemProps属性
298
284
  * @default []
299
285
  */
300
- columns: ProEditTableColumnsProps[];
286
+ columns: ProEditTableColumnType<T>[];
301
287
  /**
302
288
  * 是否禁止编辑
303
289
  * @default false
@@ -352,7 +338,7 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
352
338
  /**
353
339
  * 自定义编辑模式的操作栏 单行编辑默认为编辑、删除、保存、取消;多行编辑为删除
354
340
  */
355
- actionProps?: BaseActionType<T>[] | boolean;
341
+ actionProps?: BaseActionProps<T>[] | boolean;
356
342
  /**
357
343
  * 自定义 table footer 左侧渲染, 配置后toolbarProps会失效
358
344
  */
@@ -360,7 +346,7 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
360
346
  /**
361
347
  * 自定义底部操作栏 默认为添加、删除(批量)
362
348
  */
363
- toolbarProps?: BaseActionType<T>[] | boolean;
349
+ toolbarProps?: BaseActionProps<T>[] | boolean;
364
350
  /**
365
351
  * 自定义底部操作栏跟随页面滚动
366
352
  */
@@ -372,11 +358,11 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
372
358
  /**
373
359
  * formItem的props
374
360
  */
375
- otherProps?: any;
361
+ otherProps?: Record<string, any>;
376
362
  /**
377
363
  * 底部合计配置
378
364
  */
379
- summary?: SummaryConfigType<T>;
365
+ summary?: ProEditTableSummaryConfigType<T>;
380
366
  /**
381
367
  * 自定义头部渲染
382
368
  */
@@ -400,7 +386,7 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
400
386
  /**
401
387
  * 操作按钮方向
402
388
  */
403
- actionDirection?: ActionDirectionType;
389
+ actionDirection?: ActionDirection;
404
390
  /**
405
391
  * 校验触发方式
406
392
  */
@@ -413,6 +399,18 @@ export interface ProEditTableProps<T = any> extends Omit<TableProps<T>, 'onChang
413
399
  scrollFollowParent?: boolean;
414
400
  };
415
401
  }
402
+ /**
403
+ * 基础操作按钮类型(基于接口)
404
+ * @template T 记录类型
405
+ */
406
+ export type ProEditTableActionType<T = any> = BaseActionProps<T>;
407
+ export type ProEditTableSummaryConfigType<T = any> = SummaryProps<T>;
408
+ export type ProEditTableSummaryColumnType = SummaryColumnProps;
409
+ /**
410
+ * 可编辑表格列属性类型(基于类型)
411
+ * @template K 键类型
412
+ */
413
+ export type ProEditTableColumnType<K = any> = ProEditTableColumnsProps<K>;
416
414
  /**
417
415
  * 可编辑表格属性类型(基于接口)
418
416
  * @template T 记录类型
@@ -6,4 +6,4 @@
6
6
  * @param columns 表格配置数据
7
7
  * @param config
8
8
  */
9
- export declare const transformColumns: (columns: any[], config: any) => any;
9
+ export declare const transformColumns: (columns: any[], config: any) => any[];
@@ -258,11 +258,12 @@ export var transformColumns = function transformColumns() {
258
258
  var required = isBoolean(item.required) ? item.required : false;
259
259
  if (typeof item.required === 'function') {
260
260
  var namePath = getNamePath(name, virtualKey);
261
- var rowData = form.getFieldValue([].concat(_toConsumableArray(namePath), [index])) || {};
261
+ var namePathArray = Array.isArray(namePath) ? namePath : [namePath];
262
+ var rowData = form.getFieldValue([].concat(_toConsumableArray(namePathArray), [index])) || {};
262
263
  required = item.required(rowData[columnName], rowData, {
263
264
  form: form,
264
265
  index: index,
265
- namePath: [].concat(_toConsumableArray(namePath), [index])
266
+ namePath: [].concat(_toConsumableArray(namePathArray), [index])
266
267
  });
267
268
  }
268
269
  // 样式处理
@@ -282,17 +283,18 @@ export var transformColumns = function transformColumns() {
282
283
  if (virtualKey && editingKeys.includes(record.rowKey)) {
283
284
  namePath = getNamePath(name, virtualKey);
284
285
  }
286
+ var namePathArray = Array.isArray(namePath) ? namePath : [namePath];
285
287
  var columnNamePath = isArray(columnName) ? columnName : [columnName];
286
288
  index = tools.calc(firstIndex, '+', index);
287
289
  // 设置单元格formItem的namePath
288
- var cellName = columnName ? [].concat(_toConsumableArray(namePath), [index], _toConsumableArray(columnNamePath)) : [].concat(_toConsumableArray(namePath), [index]);
290
+ var cellName = columnName ? [].concat(_toConsumableArray(namePathArray), [index], _toConsumableArray(columnNamePath)) : [].concat(_toConsumableArray(namePathArray), [index]);
289
291
  var _text = text;
290
292
  // 当传入组合组件时,name需要重新组合一下,以防names中key与dataIndex重叠
291
293
  if (names === null || names === void 0 ? void 0 : names.length) {
292
294
  var nextDataIndex = splitNames(names);
293
295
  item.dataIndex = nextDataIndex;
294
296
  item.key = nextDataIndex;
295
- cellName = [].concat(_toConsumableArray(namePath), [index, nextDataIndex]);
297
+ cellName = [].concat(_toConsumableArray(namePathArray), [index, nextDataIndex]);
296
298
  // 给names返回数组值
297
299
  _text = names.map(function (item) {
298
300
  return record === null || record === void 0 ? void 0 : record[item];