@zat-design/sisyphus-react 3.8.2-beta.14 → 3.8.2-beta.16
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.
- package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
- package/coverage/lcov-report/src/.umi/core/history.ts.html +148 -0
- package/coverage/lcov-report/src/.umi/core/index.html +206 -0
- package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
- package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
- package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
- package/coverage/lcov-report/src/.umi/core/routes.ts.html +26050 -0
- package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
- package/coverage/lcov-report/src/.umi/dumi/demos/index.html +116 -0
- package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +6340 -0
- package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
- package/coverage/lcov-report/src/.umi/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
- package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
- package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
- package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
- package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
- package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
- package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
- package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
- package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
- package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
- package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
- package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +7 -6
- package/es/ProEditTable/components/RenderField/index.js +1 -0
- package/es/ProForm/components/render/ChangedWrapper.js +4 -2
- package/es/ProForm/components/render/Render.js +1 -0
- package/es/ProTable/components/FormatColumn/index.js +20 -10
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -0
- package/es/ProTable/components/RenderColumn/index.js +22 -7
- package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +10 -9
- package/lib/ProEditTable/components/RenderField/index.js +1 -0
- package/lib/ProForm/components/render/ChangedWrapper.js +4 -2
- package/lib/ProForm/components/render/Render.js +1 -0
- package/lib/ProTable/components/FormatColumn/index.js +20 -10
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -0
- package/lib/ProTable/components/RenderColumn/index.js +22 -7
- package/package.json +1 -1
- package/.vscode/extensions.json +0 -5
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
|
|
2
|
+
<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
|
|
5
|
+
<head>
|
|
6
|
+
<title>Code coverage report for src/.umi/umi.ts</title>
|
|
7
|
+
<meta charset="utf-8" />
|
|
8
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../favicon.png" />
|
|
11
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
|
+
<style type='text/css'>
|
|
13
|
+
.coverage-summary .sorter {
|
|
14
|
+
background-image: url(../../sort-arrow-sprite.png);
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<body>
|
|
20
|
+
<div class='wrapper'>
|
|
21
|
+
<div class='pad1'>
|
|
22
|
+
<h1><a href="../../index.html">All files</a> / <a href="index.html">src/.umi</a> umi.ts</h1>
|
|
23
|
+
<div class='clearfix'>
|
|
24
|
+
|
|
25
|
+
<div class='fl pad1y space-right2'>
|
|
26
|
+
<span class="strong">0% </span>
|
|
27
|
+
<span class="quiet">Statements</span>
|
|
28
|
+
<span class='fraction'>0/14</span>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
|
+
<span class="quiet">Branches</span>
|
|
35
|
+
<span class='fraction'>0/7</span>
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<div class='fl pad1y space-right2'>
|
|
40
|
+
<span class="strong">0% </span>
|
|
41
|
+
<span class="quiet">Functions</span>
|
|
42
|
+
<span class='fraction'>0/4</span>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<div class='fl pad1y space-right2'>
|
|
47
|
+
<span class="strong">0% </span>
|
|
48
|
+
<span class="quiet">Lines</span>
|
|
49
|
+
<span class='fraction'>0/13</span>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
<p class="quiet">
|
|
55
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
|
+
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='status-line low'></div>
|
|
65
|
+
<pre><table class="coverage">
|
|
66
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
67
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
68
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
69
|
+
<a name='L4'></a><a href='#L4'>4</a>
|
|
70
|
+
<a name='L5'></a><a href='#L5'>5</a>
|
|
71
|
+
<a name='L6'></a><a href='#L6'>6</a>
|
|
72
|
+
<a name='L7'></a><a href='#L7'>7</a>
|
|
73
|
+
<a name='L8'></a><a href='#L8'>8</a>
|
|
74
|
+
<a name='L9'></a><a href='#L9'>9</a>
|
|
75
|
+
<a name='L10'></a><a href='#L10'>10</a>
|
|
76
|
+
<a name='L11'></a><a href='#L11'>11</a>
|
|
77
|
+
<a name='L12'></a><a href='#L12'>12</a>
|
|
78
|
+
<a name='L13'></a><a href='#L13'>13</a>
|
|
79
|
+
<a name='L14'></a><a href='#L14'>14</a>
|
|
80
|
+
<a name='L15'></a><a href='#L15'>15</a>
|
|
81
|
+
<a name='L16'></a><a href='#L16'>16</a>
|
|
82
|
+
<a name='L17'></a><a href='#L17'>17</a>
|
|
83
|
+
<a name='L18'></a><a href='#L18'>18</a>
|
|
84
|
+
<a name='L19'></a><a href='#L19'>19</a>
|
|
85
|
+
<a name='L20'></a><a href='#L20'>20</a>
|
|
86
|
+
<a name='L21'></a><a href='#L21'>21</a>
|
|
87
|
+
<a name='L22'></a><a href='#L22'>22</a>
|
|
88
|
+
<a name='L23'></a><a href='#L23'>23</a>
|
|
89
|
+
<a name='L24'></a><a href='#L24'>24</a>
|
|
90
|
+
<a name='L25'></a><a href='#L25'>25</a>
|
|
91
|
+
<a name='L26'></a><a href='#L26'>26</a>
|
|
92
|
+
<a name='L27'></a><a href='#L27'>27</a>
|
|
93
|
+
<a name='L28'></a><a href='#L28'>28</a>
|
|
94
|
+
<a name='L29'></a><a href='#L29'>29</a>
|
|
95
|
+
<a name='L30'></a><a href='#L30'>30</a>
|
|
96
|
+
<a name='L31'></a><a href='#L31'>31</a>
|
|
97
|
+
<a name='L32'></a><a href='#L32'>32</a>
|
|
98
|
+
<a name='L33'></a><a href='#L33'>33</a>
|
|
99
|
+
<a name='L34'></a><a href='#L34'>34</a>
|
|
100
|
+
<a name='L35'></a><a href='#L35'>35</a>
|
|
101
|
+
<a name='L36'></a><a href='#L36'>36</a>
|
|
102
|
+
<a name='L37'></a><a href='#L37'>37</a>
|
|
103
|
+
<a name='L38'></a><a href='#L38'>38</a>
|
|
104
|
+
<a name='L39'></a><a href='#L39'>39</a>
|
|
105
|
+
<a name='L40'></a><a href='#L40'>40</a>
|
|
106
|
+
<a name='L41'></a><a href='#L41'>41</a>
|
|
107
|
+
<a name='L42'></a><a href='#L42'>42</a>
|
|
108
|
+
<a name='L43'></a><a href='#L43'>43</a>
|
|
109
|
+
<a name='L44'></a><a href='#L44'>44</a>
|
|
110
|
+
<a name='L45'></a><a href='#L45'>45</a>
|
|
111
|
+
<a name='L46'></a><a href='#L46'>46</a>
|
|
112
|
+
<a name='L47'></a><a href='#L47'>47</a>
|
|
113
|
+
<a name='L48'></a><a href='#L48'>48</a>
|
|
114
|
+
<a name='L49'></a><a href='#L49'>49</a>
|
|
115
|
+
<a name='L50'></a><a href='#L50'>50</a>
|
|
116
|
+
<a name='L51'></a><a href='#L51'>51</a>
|
|
117
|
+
<a name='L52'></a><a href='#L52'>52</a>
|
|
118
|
+
<a name='L53'></a><a href='#L53'>53</a>
|
|
119
|
+
<a name='L54'></a><a href='#L54'>54</a>
|
|
120
|
+
<a name='L55'></a><a href='#L55'>55</a>
|
|
121
|
+
<a name='L56'></a><a href='#L56'>56</a>
|
|
122
|
+
<a name='L57'></a><a href='#L57'>57</a>
|
|
123
|
+
<a name='L58'></a><a href='#L58'>58</a>
|
|
124
|
+
<a name='L59'></a><a href='#L59'>59</a>
|
|
125
|
+
<a name='L60'></a><a href='#L60'>60</a>
|
|
126
|
+
<a name='L61'></a><a href='#L61'>61</a>
|
|
127
|
+
<a name='L62'></a><a href='#L62'>62</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
|
132
|
+
<span class="cline-any cline-neutral"> </span>
|
|
133
|
+
<span class="cline-any cline-neutral"> </span>
|
|
134
|
+
<span class="cline-any cline-neutral"> </span>
|
|
135
|
+
<span class="cline-any cline-neutral"> </span>
|
|
136
|
+
<span class="cline-any cline-neutral"> </span>
|
|
137
|
+
<span class="cline-any cline-neutral"> </span>
|
|
138
|
+
<span class="cline-any cline-neutral"> </span>
|
|
139
|
+
<span class="cline-any cline-neutral"> </span>
|
|
140
|
+
<span class="cline-any cline-no"> </span>
|
|
141
|
+
<span class="cline-any cline-neutral"> </span>
|
|
142
|
+
<span class="cline-any cline-no"> </span>
|
|
143
|
+
<span class="cline-any cline-neutral"> </span>
|
|
144
|
+
<span class="cline-any cline-neutral"> </span>
|
|
145
|
+
<span class="cline-any cline-neutral"> </span>
|
|
146
|
+
<span class="cline-any cline-no"> </span>
|
|
147
|
+
<span class="cline-any cline-neutral"> </span>
|
|
148
|
+
<span class="cline-any cline-neutral"> </span>
|
|
149
|
+
<span class="cline-any cline-neutral"> </span>
|
|
150
|
+
<span class="cline-any cline-neutral"> </span>
|
|
151
|
+
<span class="cline-any cline-neutral"> </span>
|
|
152
|
+
<span class="cline-any cline-neutral"> </span>
|
|
153
|
+
<span class="cline-any cline-neutral"> </span>
|
|
154
|
+
<span class="cline-any cline-neutral"> </span>
|
|
155
|
+
<span class="cline-any cline-neutral"> </span>
|
|
156
|
+
<span class="cline-any cline-neutral"> </span>
|
|
157
|
+
<span class="cline-any cline-neutral"> </span>
|
|
158
|
+
<span class="cline-any cline-neutral"> </span>
|
|
159
|
+
<span class="cline-any cline-no"> </span>
|
|
160
|
+
<span class="cline-any cline-neutral"> </span>
|
|
161
|
+
<span class="cline-any cline-neutral"> </span>
|
|
162
|
+
<span class="cline-any cline-neutral"> </span>
|
|
163
|
+
<span class="cline-any cline-neutral"> </span>
|
|
164
|
+
<span class="cline-any cline-no"> </span>
|
|
165
|
+
<span class="cline-any cline-neutral"> </span>
|
|
166
|
+
<span class="cline-any cline-neutral"> </span>
|
|
167
|
+
<span class="cline-any cline-neutral"> </span>
|
|
168
|
+
<span class="cline-any cline-no"> </span>
|
|
169
|
+
<span class="cline-any cline-neutral"> </span>
|
|
170
|
+
<span class="cline-any cline-neutral"> </span>
|
|
171
|
+
<span class="cline-any cline-neutral"> </span>
|
|
172
|
+
<span class="cline-any cline-neutral"> </span>
|
|
173
|
+
<span class="cline-any cline-neutral"> </span>
|
|
174
|
+
<span class="cline-any cline-neutral"> </span>
|
|
175
|
+
<span class="cline-any cline-no"> </span>
|
|
176
|
+
<span class="cline-any cline-neutral"> </span>
|
|
177
|
+
<span class="cline-any cline-no"> </span>
|
|
178
|
+
<span class="cline-any cline-no"> </span>
|
|
179
|
+
<span class="cline-any cline-no"> </span>
|
|
180
|
+
<span class="cline-any cline-no"> </span>
|
|
181
|
+
<span class="cline-any cline-no"> </span>
|
|
182
|
+
<span class="cline-any cline-neutral"> </span>
|
|
183
|
+
<span class="cline-any cline-neutral"> </span>
|
|
184
|
+
<span class="cline-any cline-no"> </span>
|
|
185
|
+
<span class="cline-any cline-neutral"> </span>
|
|
186
|
+
<span class="cline-any cline-neutral"> </span>
|
|
187
|
+
<span class="cline-any cline-neutral"> </span>
|
|
188
|
+
<span class="cline-any cline-neutral"> </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
|
+
|
|
198
|
+
|
|
199
|
+
import '../global.less';
|
|
200
|
+
import { _onCreate } from './plugin-locale/locale';
|
|
201
|
+
<span class="cstat-no" title="statement not covered" >_onCreate();</span>
|
|
202
|
+
|
|
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> => <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> => {
|
|
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
|
+
|
|
225
|
+
const clientRender = <span class="cstat-no" title="statement not covered" >getClientRender();</span>
|
|
226
|
+
export default clientRender();
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
<span class="cstat-no" title="statement not covered" > window.g_umi = {</span>
|
|
230
|
+
version: '3.5.41',
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
|
|
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> => {</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 }) => {</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
|
+
</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
|
+
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
1
2
|
import "antd/es/space/style";
|
|
2
3
|
import _Space from "antd/es/space";
|
|
3
4
|
import "antd/es/tooltip/style";
|
|
4
5
|
import _Tooltip from "antd/es/tooltip";
|
|
5
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
7
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
7
|
-
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type", "normalize", "valuePropName"];
|
|
8
|
+
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type", "normalize", "getValueProps", "valuePropName"];
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
import React, { useMemo } from 'react';
|
|
10
11
|
import classNames from 'classnames';
|
|
@@ -65,6 +66,7 @@ var getOriginalValue = function getOriginalValue(_ref) {
|
|
|
65
66
|
}) : get(originalValues, originalName);
|
|
66
67
|
};
|
|
67
68
|
var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
69
|
+
var _getValueProps;
|
|
68
70
|
var name = props.name,
|
|
69
71
|
names = props.names,
|
|
70
72
|
namesStr = props.namesStr,
|
|
@@ -79,6 +81,7 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
|
79
81
|
children = props.children,
|
|
80
82
|
type = props.type,
|
|
81
83
|
normalize = props.normalize,
|
|
84
|
+
getValueProps = props.getValueProps,
|
|
82
85
|
_props$valuePropName = props.valuePropName,
|
|
83
86
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
84
87
|
rest = _objectWithoutProperties(props, _excluded);
|
|
@@ -124,12 +127,10 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
|
124
127
|
return target.parentElement;
|
|
125
128
|
},
|
|
126
129
|
title: _jsxs(_Space, {
|
|
127
|
-
children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children), {}, {
|
|
130
|
+
children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children), {}, _defineProperty(_defineProperty({
|
|
128
131
|
// @ts-ignore
|
|
129
|
-
isView: true
|
|
130
|
-
|
|
131
|
-
checked: type === 'Switch' ? originalValue : undefined
|
|
132
|
-
})) : undefined]
|
|
132
|
+
isView: true
|
|
133
|
+
}, valuePropName, getValueProps ? (_getValueProps = getValueProps(originalValue)) === null || _getValueProps === void 0 ? void 0 : _getValueProps[valuePropName] : props[valuePropName]), "checked", type === 'Switch' ? originalValue : undefined))) : undefined]
|
|
133
134
|
}),
|
|
134
135
|
children: _jsx("div", {
|
|
135
136
|
className: diffClassName,
|
|
@@ -5,7 +5,7 @@ import _Tooltip from "antd/es/tooltip";
|
|
|
5
5
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
6
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
7
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
8
|
-
var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "type", "diffConfig", "valuePropName", "normalize"];
|
|
8
|
+
var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "type", "diffConfig", "valuePropName", "normalize", "getValueProps"];
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
import { get } from 'lodash';
|
|
@@ -26,6 +26,7 @@ var ChangedWrapper = function ChangedWrapper(props) {
|
|
|
26
26
|
_props$valuePropName = props.valuePropName,
|
|
27
27
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
28
28
|
normalize = props.normalize,
|
|
29
|
+
getValueProps = props.getValueProps,
|
|
29
30
|
rest = _objectWithoutProperties(props, _excluded);
|
|
30
31
|
var _useProConfig = useProConfig('ProForm'),
|
|
31
32
|
isDiffAll = _useProConfig.isDiffAll;
|
|
@@ -53,9 +54,10 @@ var ChangedWrapper = function ChangedWrapper(props) {
|
|
|
53
54
|
var isChanged = diffType === 'changed';
|
|
54
55
|
var tipContent = useMemo(function () {
|
|
55
56
|
if (!isWatch || noChange) return undefined;
|
|
57
|
+
var valueProps = getValueProps ? getValueProps(originalValue) : originalValue;
|
|
56
58
|
return /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), {}, _defineProperty({
|
|
57
59
|
isView: true
|
|
58
|
-
}, valuePropName,
|
|
60
|
+
}, valuePropName, valueProps === null || valueProps === void 0 ? void 0 : valueProps.value))) : undefined;
|
|
59
61
|
}, [originalValue, children]);
|
|
60
62
|
if (!isWatch || noChange) {
|
|
61
63
|
// 嵌套子组件
|
|
@@ -37,7 +37,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
37
37
|
_column$originalDiffT = column.originalDiffTip,
|
|
38
38
|
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT,
|
|
39
39
|
_column$toolTipProps = column.toolTipProps,
|
|
40
|
-
toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps
|
|
40
|
+
toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps,
|
|
41
|
+
minWidth = column.minWidth;
|
|
41
42
|
var _toolTipProps = _objectSpread(_objectSpread({}, toolTipProps), wrapToolTipProps);
|
|
42
43
|
var _originalDiffTip = diffToolTip !== null && diffToolTip !== void 0 ? diffToolTip : originalDiffTip;
|
|
43
44
|
// 前缀处理
|
|
@@ -85,7 +86,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
85
86
|
node: _value,
|
|
86
87
|
currentValue: _value,
|
|
87
88
|
originalDiffTip: _originalDiffTip,
|
|
88
|
-
toolTipProps: _toolTipProps
|
|
89
|
+
toolTipProps: _toolTipProps,
|
|
90
|
+
minWidth: minWidth
|
|
89
91
|
});
|
|
90
92
|
};
|
|
91
93
|
return;
|
|
@@ -131,7 +133,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
131
133
|
value: value,
|
|
132
134
|
currentValue: renderValue,
|
|
133
135
|
originalDiffTip: _originalDiffTip,
|
|
134
|
-
toolTipProps: _toolTipProps
|
|
136
|
+
toolTipProps: _toolTipProps,
|
|
137
|
+
minWidth: minWidth
|
|
135
138
|
});
|
|
136
139
|
};
|
|
137
140
|
// 千分位, 千分位带CNY前缀
|
|
@@ -161,7 +164,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
161
164
|
value: value,
|
|
162
165
|
currentValue: renderValue,
|
|
163
166
|
originalDiffTip: _originalDiffTip,
|
|
164
|
-
toolTipProps: _toolTipProps
|
|
167
|
+
toolTipProps: _toolTipProps,
|
|
168
|
+
minWidth: minWidth
|
|
165
169
|
});
|
|
166
170
|
};
|
|
167
171
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -214,7 +218,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
214
218
|
value: value,
|
|
215
219
|
currentValue: renderValue,
|
|
216
220
|
originalDiffTip: _originalDiffTip,
|
|
217
|
-
toolTipProps: _toolTipProps
|
|
221
|
+
toolTipProps: _toolTipProps,
|
|
222
|
+
minWidth: minWidth
|
|
218
223
|
});
|
|
219
224
|
};
|
|
220
225
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -252,7 +257,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
252
257
|
value: value,
|
|
253
258
|
currentValue: renderValue,
|
|
254
259
|
originalDiffTip: _originalDiffTip,
|
|
255
|
-
toolTipProps: _toolTipProps
|
|
260
|
+
toolTipProps: _toolTipProps,
|
|
261
|
+
minWidth: minWidth
|
|
256
262
|
});
|
|
257
263
|
};
|
|
258
264
|
} else if (precision || prefix || suffix) {
|
|
@@ -279,7 +285,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
279
285
|
value: value,
|
|
280
286
|
currentValue: renderValue,
|
|
281
287
|
originalDiffTip: _originalDiffTip,
|
|
282
|
-
toolTipProps: _toolTipProps
|
|
288
|
+
toolTipProps: _toolTipProps,
|
|
289
|
+
minWidth: minWidth
|
|
283
290
|
});
|
|
284
291
|
};
|
|
285
292
|
} else if (valueType === 'address') {
|
|
@@ -335,7 +342,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
335
342
|
node: value,
|
|
336
343
|
value: value,
|
|
337
344
|
currentValue: value,
|
|
338
|
-
toolTipProps: _toolTipProps
|
|
345
|
+
toolTipProps: _toolTipProps,
|
|
346
|
+
minWidth: minWidth
|
|
339
347
|
}), suffixNode(value, record, index)]
|
|
340
348
|
});
|
|
341
349
|
};
|
|
@@ -356,7 +364,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
356
364
|
value: value,
|
|
357
365
|
currentValue: value || '-',
|
|
358
366
|
originalDiffTip: _originalDiffTip,
|
|
359
|
-
toolTipProps: _toolTipProps
|
|
367
|
+
toolTipProps: _toolTipProps,
|
|
368
|
+
minWidth: minWidth
|
|
360
369
|
}), suffixNode(value, record, index)]
|
|
361
370
|
});
|
|
362
371
|
};
|
|
@@ -379,7 +388,8 @@ export var formatColumn = function formatColumn(_ref) {
|
|
|
379
388
|
value: value,
|
|
380
389
|
currentValue: value || '-',
|
|
381
390
|
originalDiffTip: _originalDiffTip,
|
|
382
|
-
toolTipProps: _toolTipProps
|
|
391
|
+
toolTipProps: _toolTipProps,
|
|
392
|
+
minWidth: minWidth
|
|
383
393
|
});
|
|
384
394
|
};
|
|
385
395
|
}
|
|
@@ -23,7 +23,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
23
23
|
originalValue = props.originalValue,
|
|
24
24
|
originalDiffTip = props.originalDiffTip,
|
|
25
25
|
_props$toolTipProps = props.toolTipProps,
|
|
26
|
-
toolTipProps = _props$toolTipProps === void 0 ? {} : _props$toolTipProps
|
|
26
|
+
toolTipProps = _props$toolTipProps === void 0 ? {} : _props$toolTipProps,
|
|
27
|
+
minWidth = props.minWidth;
|
|
27
28
|
var _useSetState = useSetState({
|
|
28
29
|
tooltip: false
|
|
29
30
|
}),
|
|
@@ -36,7 +37,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
36
37
|
if (ellipsis) {
|
|
37
38
|
renderNode = _jsx(Text, {
|
|
38
39
|
style: {
|
|
39
|
-
width: currentValue === '-' ? 32.5 : width
|
|
40
|
+
width: currentValue === '-' ? 32.5 : width,
|
|
41
|
+
minWidth: minWidth
|
|
40
42
|
},
|
|
41
43
|
ellipsis: {
|
|
42
44
|
tooltip: false
|
|
@@ -47,7 +49,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
47
49
|
return _jsx(_Tooltip, _objectSpread(_objectSpread({
|
|
48
50
|
className: "varied-cell",
|
|
49
51
|
style: {
|
|
50
|
-
width: width
|
|
52
|
+
width: width,
|
|
53
|
+
minWidth: minWidth
|
|
51
54
|
},
|
|
52
55
|
title: originalDiffTip ? _jsxs(_Fragment, {
|
|
53
56
|
children: ["\u521D\u59CB\u503C\uFF1A", originalValue, _jsx("br", {}), ellipsis ? "\u5F53\u524D\u503C\uFF1A".concat(currentValue) : undefined]
|
|
@@ -62,7 +65,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
62
65
|
return _jsx("span", {
|
|
63
66
|
className: "varied-cell",
|
|
64
67
|
style: {
|
|
65
|
-
width: width
|
|
68
|
+
width: width,
|
|
69
|
+
minWidth: minWidth
|
|
66
70
|
},
|
|
67
71
|
children: renderNode
|
|
68
72
|
});
|
|
@@ -133,7 +137,12 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
133
137
|
}
|
|
134
138
|
}, toolTipProps);
|
|
135
139
|
if (!value) {
|
|
136
|
-
return
|
|
140
|
+
return _jsx("div", {
|
|
141
|
+
style: {
|
|
142
|
+
minWidth: minWidth
|
|
143
|
+
},
|
|
144
|
+
children: "-"
|
|
145
|
+
});
|
|
137
146
|
}
|
|
138
147
|
return _jsx(_Tooltip, _objectSpread(_objectSpread({
|
|
139
148
|
title: value,
|
|
@@ -146,7 +155,8 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
146
155
|
}, tooltipProps), {}, {
|
|
147
156
|
children: _jsx(Text, {
|
|
148
157
|
style: {
|
|
149
|
-
width: width
|
|
158
|
+
width: width,
|
|
159
|
+
minWidth: minWidth
|
|
150
160
|
},
|
|
151
161
|
ellipsis: true,
|
|
152
162
|
onMouseOver: handleMouseOver,
|
|
@@ -155,6 +165,11 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
155
165
|
})
|
|
156
166
|
}));
|
|
157
167
|
}
|
|
158
|
-
return
|
|
168
|
+
return _jsx("div", {
|
|
169
|
+
style: {
|
|
170
|
+
minWidth: minWidth
|
|
171
|
+
},
|
|
172
|
+
children: value || value === 0 ? node : '-'
|
|
173
|
+
});
|
|
159
174
|
};
|
|
160
175
|
export default RenderColumn;
|
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -16,7 +17,7 @@ var _lodash = require("lodash");
|
|
|
16
17
|
var _diffOriginal = require("../../../ProForm/utils/diffOriginal");
|
|
17
18
|
var _ProConfigProvider = require("../../../ProConfigProvider");
|
|
18
19
|
var _utils = require("../../../utils");
|
|
19
|
-
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type", "normalize", "valuePropName"];
|
|
20
|
+
var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type", "normalize", "getValueProps", "valuePropName"];
|
|
20
21
|
var toNamePath = function toNamePath(name) {
|
|
21
22
|
if (Array.isArray(name)) {
|
|
22
23
|
return name;
|
|
@@ -70,6 +71,7 @@ var getOriginalValue = function getOriginalValue(_ref) {
|
|
|
70
71
|
}) : (0, _lodash.get)(originalValues, originalName);
|
|
71
72
|
};
|
|
72
73
|
var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
74
|
+
var _getValueProps;
|
|
73
75
|
var name = props.name,
|
|
74
76
|
names = props.names,
|
|
75
77
|
namesStr = props.namesStr,
|
|
@@ -84,6 +86,7 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
|
84
86
|
children = props.children,
|
|
85
87
|
type = props.type,
|
|
86
88
|
normalize = props.normalize,
|
|
89
|
+
getValueProps = props.getValueProps,
|
|
87
90
|
_props$valuePropName = props.valuePropName,
|
|
88
91
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
89
92
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
@@ -116,7 +119,7 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
|
116
119
|
var isAdd = diffType === 'add';
|
|
117
120
|
var isChanged = diffType === 'changed';
|
|
118
121
|
if (!isWatch || noChange) {
|
|
119
|
-
return /*#__PURE__*/_react.default.isValidElement(children) && /*#__PURE__*/_react.default.cloneElement(children, (0,
|
|
122
|
+
return /*#__PURE__*/_react.default.isValidElement(children) && /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, children.props), rest));
|
|
120
123
|
}
|
|
121
124
|
var diffClassName = (0, _classnames.default)({
|
|
122
125
|
'pro-form-item-changed': isChanged,
|
|
@@ -131,16 +134,14 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
|
|
|
131
134
|
return target.parentElement;
|
|
132
135
|
},
|
|
133
136
|
title: (0, _jsxRuntime.jsxs)(_antd.Space, {
|
|
134
|
-
children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0,
|
|
137
|
+
children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, children), {}, (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
135
138
|
// @ts-ignore
|
|
136
|
-
isView: true
|
|
137
|
-
|
|
138
|
-
checked: type === 'Switch' ? originalValue : undefined
|
|
139
|
-
})) : undefined]
|
|
139
|
+
isView: true
|
|
140
|
+
}, valuePropName, getValueProps ? (_getValueProps = getValueProps(originalValue)) === null || _getValueProps === void 0 ? void 0 : _getValueProps[valuePropName] : props[valuePropName]), "checked", type === 'Switch' ? originalValue : undefined))) : undefined]
|
|
140
141
|
}),
|
|
141
142
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
142
143
|
className: diffClassName,
|
|
143
|
-
children: /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0,
|
|
144
|
+
children: /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, children.props), rest)) : undefined
|
|
144
145
|
})
|
|
145
146
|
});
|
|
146
147
|
};
|
|
@@ -17,7 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
var _diffOriginal = require("../../utils/diffOriginal");
|
|
18
18
|
var _ProConfigProvider = require("../../../ProConfigProvider");
|
|
19
19
|
var _utils = require("../../../utils");
|
|
20
|
-
var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "type", "diffConfig", "valuePropName", "normalize"];
|
|
20
|
+
var _excluded = ["name", "names", "namesStr", "form", "equalWith", "children", "type", "diffConfig", "valuePropName", "normalize", "getValueProps"];
|
|
21
21
|
var ChangedWrapper = function ChangedWrapper(props) {
|
|
22
22
|
var _diffConfig$toolTip, _children$props, _children$props2, _children$props3;
|
|
23
23
|
var name = props.name,
|
|
@@ -31,6 +31,7 @@ var ChangedWrapper = function ChangedWrapper(props) {
|
|
|
31
31
|
_props$valuePropName = props.valuePropName,
|
|
32
32
|
valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName,
|
|
33
33
|
normalize = props.normalize,
|
|
34
|
+
getValueProps = props.getValueProps,
|
|
34
35
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
35
36
|
var _useProConfig = (0, _ProConfigProvider.useProConfig)('ProForm'),
|
|
36
37
|
isDiffAll = _useProConfig.isDiffAll;
|
|
@@ -58,9 +59,10 @@ var ChangedWrapper = function ChangedWrapper(props) {
|
|
|
58
59
|
var isChanged = diffType === 'changed';
|
|
59
60
|
var tipContent = (0, _react.useMemo)(function () {
|
|
60
61
|
if (!isWatch || noChange) return undefined;
|
|
62
|
+
var valueProps = getValueProps ? getValueProps(originalValue) : originalValue;
|
|
61
63
|
return /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, children.props), {}, (0, _defineProperty2.default)({
|
|
62
64
|
isView: true
|
|
63
|
-
}, valuePropName,
|
|
65
|
+
}, valuePropName, valueProps === null || valueProps === void 0 ? void 0 : valueProps.value))) : undefined;
|
|
64
66
|
}, [originalValue, children]);
|
|
65
67
|
if (!isWatch || noChange) {
|
|
66
68
|
// 嵌套子组件
|