@zat-design/sisyphus-react 3.9.5 → 3.9.6-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 (88) 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 +51 -6
  41. package/dist/less.esm.css +51 -6
  42. package/es/FormsProvider/index.d.ts +15 -0
  43. package/es/FormsProvider/index.js +32 -0
  44. package/es/ProConfigProvider/index.d.ts +0 -1
  45. package/es/ProConfigProvider/index.js +0 -5
  46. package/es/ProEditTable/utils/diffOriginal.js +11 -8
  47. package/es/ProForm/components/render/Render.js +4 -4
  48. package/es/ProForm/index.js +12 -38
  49. package/es/ProForm/style/index.less +1 -0
  50. package/es/ProForm/utils/diffOriginal.js +14 -19
  51. package/es/ProForm/utils/useForm.d.ts +4 -3
  52. package/es/ProForm/utils/useForm.js +12 -3
  53. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +8 -0
  54. package/es/ProLayout/components/ProHeader/index.js +94 -28
  55. package/es/ProLayout/components/ProHeader/style/index.less +51 -6
  56. package/es/ProLayout/components/ProHeader/utils/index.d.ts +5 -0
  57. package/es/ProLayout/components/ProHeader/utils/index.js +14 -0
  58. package/es/ProLayout/style/index.less +1 -1
  59. package/es/ProSelect/index.js +1 -1
  60. package/es/ProTreeModal/components/Trigger.js +4 -0
  61. package/es/index.d.ts +1 -0
  62. package/es/index.js +1 -0
  63. package/es/utils/index.d.ts +4 -1
  64. package/es/utils/index.js +4 -1
  65. package/lib/FormsProvider/index.d.ts +15 -0
  66. package/lib/FormsProvider/index.js +39 -0
  67. package/lib/ProConfigProvider/index.d.ts +0 -1
  68. package/lib/ProConfigProvider/index.js +0 -6
  69. package/lib/ProEditTable/utils/diffOriginal.js +11 -8
  70. package/lib/ProForm/components/render/Render.js +4 -4
  71. package/lib/ProForm/index.js +11 -37
  72. package/lib/ProForm/style/index.less +1 -0
  73. package/lib/ProForm/utils/diffOriginal.js +14 -19
  74. package/lib/ProForm/utils/useForm.d.ts +4 -3
  75. package/lib/ProForm/utils/useForm.js +12 -3
  76. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +8 -0
  77. package/lib/ProLayout/components/ProHeader/index.js +90 -24
  78. package/lib/ProLayout/components/ProHeader/style/index.less +51 -6
  79. package/lib/ProLayout/components/ProHeader/utils/index.d.ts +5 -0
  80. package/lib/ProLayout/components/ProHeader/utils/index.js +20 -0
  81. package/lib/ProLayout/style/index.less +1 -1
  82. package/lib/ProSelect/index.js +1 -1
  83. package/lib/ProTreeModal/components/Trigger.js +4 -0
  84. package/lib/index.d.ts +1 -0
  85. package/lib/index.js +8 -0
  86. package/lib/utils/index.d.ts +4 -1
  87. package/lib/utils/index.js +4 -1
  88. 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
+
@@ -854,7 +854,7 @@
854
854
  background: var(--zaui-disabled-bg);
855
855
  }
856
856
  .pro-header {
857
- padding: 16px 0 0 0 !important;
857
+ padding: 10px 0 0 0 !important;
858
858
  background-color: var(--zaui-base-bg, #ffffff);
859
859
  -webkit-box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
860
860
  box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
@@ -881,9 +881,44 @@
881
881
  .pro-header.pro-header-fixed.pro-header-no-describe .pro-header-top {
882
882
  padding-bottom: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1) - var(--zaui-space-size-xs, 4px) * var(--zaui-size, 1));
883
883
  }
884
+ .pro-header .pro-header-describe {
885
+ -webkit-transition: height 0.2s ease-in-out;
886
+ transition: height 0.2s ease-in-out;
887
+ }
884
888
  .pro-header .pro-header-describe a {
885
889
  color: var(--zaui-link, #006aff);
886
890
  }
891
+ .pro-header .pro-header-describe .pro-header-describe-items-calc {
892
+ position: relative;
893
+ }
894
+ .pro-header .pro-header-describe.pro-header-describe-hidden {
895
+ height: 0;
896
+ padding: 0;
897
+ overflow: hidden;
898
+ border: 0;
899
+ }
900
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-label {
901
+ font-weight: normal;
902
+ }
903
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value {
904
+ font-weight: 600;
905
+ }
906
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value .ant-space-item {
907
+ font-weight: 600;
908
+ }
909
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items span:first-child {
910
+ margin-right: 2px;
911
+ }
912
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items .pro-header-describe-items-omit {
913
+ position: absolute;
914
+ right: 0;
915
+ background: #fff;
916
+ }
917
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items.pro-header-describe-items-more .pro-header-tag {
918
+ padding: 0;
919
+ background: #fff;
920
+ color: #333;
921
+ }
887
922
  .pro-header .pro-header-copy {
888
923
  display: -webkit-box;
889
924
  display: -webkit-flex;
@@ -1167,7 +1202,13 @@
1167
1202
  font-size: var(--zaui-font-size, 14px);
1168
1203
  }
1169
1204
  .pro-header .pro-header-describe li {
1170
- margin-left: var(--zaui-space-card, 32px);
1205
+ -webkit-box-flex: 0;
1206
+ -webkit-flex: 0 0 auto;
1207
+ -ms-flex: 0 0 auto;
1208
+ flex: 0 0 auto;
1209
+ white-space: nowrap;
1210
+ overflow: hidden;
1211
+ text-overflow: ellipsis;
1171
1212
  }
1172
1213
  .pro-header .pro-header-describe li.pro-header-only-tag {
1173
1214
  margin-left: var(--zaui-space-size-sm, 8px);
@@ -1175,9 +1216,6 @@
1175
1216
  .pro-header .pro-header-describe li.pro-header-only-tag span:first-child {
1176
1217
  margin-right: 0;
1177
1218
  }
1178
- .pro-header .pro-header-describe li:first-child {
1179
- margin-left: 0;
1180
- }
1181
1219
  .pro-header .pro-header-describe li span {
1182
1220
  color: #0a0a0a;
1183
1221
  font-weight: 400;
@@ -1192,6 +1230,12 @@
1192
1230
  .pro-header .pro-header-describe li span:last-child .pro-header-tag {
1193
1231
  margin-left: 4px;
1194
1232
  }
1233
+ .pro-header-describe-items-tip {
1234
+ max-width: 600px;
1235
+ }
1236
+ .pro-header-describe-items-tip .pro-header-describe-items-tip-value {
1237
+ margin-bottom: var(--zaui-space-size-sm, 8px);
1238
+ }
1195
1239
  @media (max-width: 1366px) {
1196
1240
  .pro-header-describe li span:last-child {
1197
1241
  max-width: 350px;
@@ -1253,7 +1297,7 @@
1253
1297
  border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
1254
1298
  }
1255
1299
  .pro-layout.pro-layout-light .pro-header.pro-header-no-describe {
1256
- padding: var(--zaui-space-size-md, 16px) !important;
1300
+ padding: 10px var(--zaui-space-size-md, 16px) !important;
1257
1301
  }
1258
1302
  .pro-layout.pro-layout-light .pro-header.pro-header-no-describe .pro-header-top {
1259
1303
  padding-bottom: 0;
@@ -3220,6 +3264,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3220
3264
  width: -webkit-max-content;
3221
3265
  width: -moz-max-content;
3222
3266
  width: max-content;
3267
+ max-width: 100%;
3223
3268
  }
3224
3269
  .original-value-tooltip .changed-tooltip .original-value-container .ant-space-item:nth-child(1) {
3225
3270
  white-space: nowrap;
package/dist/less.esm.css CHANGED
@@ -854,7 +854,7 @@
854
854
  background: var(--zaui-disabled-bg);
855
855
  }
856
856
  .pro-header {
857
- padding: 16px 0 0 0 !important;
857
+ padding: 10px 0 0 0 !important;
858
858
  background-color: var(--zaui-base-bg, #ffffff);
859
859
  -webkit-box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
860
860
  box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
@@ -881,9 +881,44 @@
881
881
  .pro-header.pro-header-fixed.pro-header-no-describe .pro-header-top {
882
882
  padding-bottom: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1) - var(--zaui-space-size-xs, 4px) * var(--zaui-size, 1));
883
883
  }
884
+ .pro-header .pro-header-describe {
885
+ -webkit-transition: height 0.2s ease-in-out;
886
+ transition: height 0.2s ease-in-out;
887
+ }
884
888
  .pro-header .pro-header-describe a {
885
889
  color: var(--zaui-link, #006aff);
886
890
  }
891
+ .pro-header .pro-header-describe .pro-header-describe-items-calc {
892
+ position: relative;
893
+ }
894
+ .pro-header .pro-header-describe.pro-header-describe-hidden {
895
+ height: 0;
896
+ padding: 0;
897
+ overflow: hidden;
898
+ border: 0;
899
+ }
900
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-label {
901
+ font-weight: normal;
902
+ }
903
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value {
904
+ font-weight: 600;
905
+ }
906
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value .ant-space-item {
907
+ font-weight: 600;
908
+ }
909
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items span:first-child {
910
+ margin-right: 2px;
911
+ }
912
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items .pro-header-describe-items-omit {
913
+ position: absolute;
914
+ right: 0;
915
+ background: #fff;
916
+ }
917
+ .pro-header .pro-header-describe .ant-space .pro-header-describe-value .pro-header-describe-items.pro-header-describe-items-more .pro-header-tag {
918
+ padding: 0;
919
+ background: #fff;
920
+ color: #333;
921
+ }
887
922
  .pro-header .pro-header-copy {
888
923
  display: -webkit-box;
889
924
  display: -webkit-flex;
@@ -1167,7 +1202,13 @@
1167
1202
  font-size: var(--zaui-font-size, 14px);
1168
1203
  }
1169
1204
  .pro-header .pro-header-describe li {
1170
- margin-left: var(--zaui-space-card, 32px);
1205
+ -webkit-box-flex: 0;
1206
+ -webkit-flex: 0 0 auto;
1207
+ -ms-flex: 0 0 auto;
1208
+ flex: 0 0 auto;
1209
+ white-space: nowrap;
1210
+ overflow: hidden;
1211
+ text-overflow: ellipsis;
1171
1212
  }
1172
1213
  .pro-header .pro-header-describe li.pro-header-only-tag {
1173
1214
  margin-left: var(--zaui-space-size-sm, 8px);
@@ -1175,9 +1216,6 @@
1175
1216
  .pro-header .pro-header-describe li.pro-header-only-tag span:first-child {
1176
1217
  margin-right: 0;
1177
1218
  }
1178
- .pro-header .pro-header-describe li:first-child {
1179
- margin-left: 0;
1180
- }
1181
1219
  .pro-header .pro-header-describe li span {
1182
1220
  color: #0a0a0a;
1183
1221
  font-weight: 400;
@@ -1192,6 +1230,12 @@
1192
1230
  .pro-header .pro-header-describe li span:last-child .pro-header-tag {
1193
1231
  margin-left: 4px;
1194
1232
  }
1233
+ .pro-header-describe-items-tip {
1234
+ max-width: 600px;
1235
+ }
1236
+ .pro-header-describe-items-tip .pro-header-describe-items-tip-value {
1237
+ margin-bottom: var(--zaui-space-size-sm, 8px);
1238
+ }
1195
1239
  @media (max-width: 1366px) {
1196
1240
  .pro-header-describe li span:last-child {
1197
1241
  max-width: 350px;
@@ -1253,7 +1297,7 @@
1253
1297
  border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
1254
1298
  }
1255
1299
  .pro-layout.pro-layout-light .pro-header.pro-header-no-describe {
1256
- padding: var(--zaui-space-size-md, 16px) !important;
1300
+ padding: 10px var(--zaui-space-size-md, 16px) !important;
1257
1301
  }
1258
1302
  .pro-layout.pro-layout-light .pro-header.pro-header-no-describe .pro-header-top {
1259
1303
  padding-bottom: 0;
@@ -3220,6 +3264,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
3220
3264
  width: -webkit-max-content;
3221
3265
  width: -moz-max-content;
3222
3266
  width: max-content;
3267
+ max-width: 100%;
3223
3268
  }
3224
3269
  .original-value-tooltip .changed-tooltip .original-value-container .ant-space-item:nth-child(1) {
3225
3270
  white-space: nowrap;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ModifiedFormInstance } from '../ProForm/utils/useForm';
3
+ type Forms = Record<string, ModifiedFormInstance<any>>;
4
+ export declare const FormsContext: React.Context<Forms>;
5
+ /**
6
+ * @param formKey 表单实例key
7
+ * @param formIst form实例, 如果传了会把传入的实例存入全局
8
+ * @returns 没有入参: 返回表单实例但是不存入全局
9
+ * 有formKey: 取全局中的表单实例返回, 如果不存在则创建后返回
10
+ */
11
+ export declare const useForms: () => Forms;
12
+ /** 获取所有表单实例 */
13
+ export declare const useContextForms: () => Forms;
14
+ declare const FormsProvider: React.FC;
15
+ export default FormsProvider;
@@ -0,0 +1,32 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React, { useContext, useEffect, useRef } from 'react';
3
+ export var FormsContext = /*#__PURE__*/React.createContext({});
4
+ /**
5
+ * @param formKey 表单实例key
6
+ * @param formIst form实例, 如果传了会把传入的实例存入全局
7
+ * @returns 没有入参: 返回表单实例但是不存入全局
8
+ * 有formKey: 取全局中的表单实例返回, 如果不存在则创建后返回
9
+ */
10
+ export var useForms = function useForms() {
11
+ var forms = useContext(FormsContext);
12
+ return forms;
13
+ };
14
+ /** 获取所有表单实例 */
15
+ export var useContextForms = function useContextForms() {
16
+ var forms = useContext(FormsContext);
17
+ return forms;
18
+ };
19
+ var FormsProvider = function FormsProvider(props) {
20
+ var formsRef = useRef({});
21
+ useEffect(function () {
22
+ // 销毁
23
+ return function () {
24
+ formsRef.current = {};
25
+ };
26
+ }, []);
27
+ return _jsx(FormsContext.Provider, {
28
+ value: formsRef.current,
29
+ children: props.children
30
+ });
31
+ };
32
+ export default FormsProvider;
@@ -20,7 +20,6 @@ interface ConfigContext {
20
20
  export declare const ProConfigContext: React.Context<ConfigContext>;
21
21
  export declare function useProConfig(): ConfigContext;
22
22
  export declare function useProConfig(name: keyof ConfigContext['state']): ConfigContext['state'][keyof ConfigContext['state']];
23
- export declare function useContextForms(): Record<string, FormInstance<any>>;
24
23
  type ActionsType = 'set' | 'setProEnum' | 'setProEnumDic' | 'setWithLocal';
25
24
  interface Actions {
26
25
  type: ActionsType;
@@ -35,11 +35,6 @@ export function useProConfig(name) {
35
35
  var config = useContext(ProConfigContext);
36
36
  return name ? config.state[name] : config;
37
37
  }
38
- export function useContextForms() {
39
- var _config$state;
40
- var config = useContext(ProConfigContext);
41
- return (_config$state = config.state) === null || _config$state === void 0 ? void 0 : _config$state.forms;
42
- }
43
38
  var antdLangMap = {
44
39
  'zh-CN': zhCN,
45
40
  'en-US': enUS // en-US
@@ -46,14 +46,17 @@ export var diffOriginal = function diffOriginal(params) {
46
46
  return 'add';
47
47
  }
48
48
  if (Array.isArray(_originalValue)) {
49
- var isSame = _originalValue.every(function (valueItem, index) {
50
- // 如果两个值有一个不是空值, 则进行深比较
51
- if (!isEmpty(value === null || value === void 0 ? void 0 : value[index]) || !isEmpty(valueItem)) {
52
- return isEqual(value === null || value === void 0 ? void 0 : value[index], valueItem);
53
- }
54
- return true;
55
- });
56
- return isSame ? 'same' : 'changed';
49
+ if ((_originalValue === null || _originalValue === void 0 ? void 0 : _originalValue.length) === (_value === null || _value === void 0 ? void 0 : _value.length)) {
50
+ var isSame = _originalValue.every(function (valueItem, index) {
51
+ // 如果两个值有一个不是空值, 则进行深比较
52
+ if (!isEmpty(value === null || value === void 0 ? void 0 : value[index]) || !isEmpty(valueItem)) {
53
+ return isEqual(value === null || value === void 0 ? void 0 : value[index], valueItem);
54
+ }
55
+ return true;
56
+ });
57
+ return isSame ? 'same' : 'changed';
58
+ }
59
+ return 'changed';
57
60
  }
58
61
  if (!isEmpty(_originalValue) || !isEmpty(_value)) {
59
62
  return isEqual(_value, _originalValue) ? 'same' : 'changed';
@@ -409,7 +409,10 @@ var Render = function Render(props) {
409
409
  if (type === 'FormList') {
410
410
  lastComponentProps.disabled = lastDisabled;
411
411
  var lessMode = lastComponentProps.mode === 'less';
412
- child = _jsx(_Form.List, _objectSpread(_objectSpread({
412
+ colProps = _objectSpread(_objectSpread({}, colProps), {}, {
413
+ span: lessMode ? colProps.span : 24 // 默认占一行
414
+ });
415
+ return _jsx(_Form.List, _objectSpread(_objectSpread({
413
416
  name: _otherFormItemProps.name
414
417
  }, omit(_otherFormItemProps, ['rules'])), {}, {
415
418
  children: function children(fields, operation, meta) {
@@ -421,9 +424,6 @@ var Render = function Render(props) {
421
424
  }));
422
425
  }
423
426
  }));
424
- colProps = _objectSpread(_objectSpread({}, colProps), {}, {
425
- span: lessMode ? colProps.span : 24 // 默认占一行
426
- });
427
427
  }
428
428
  // 默认占据一行
429
429
  if (['ProCollapse', 'Container'].includes(type)) {