@zat-design/sisyphus-react 3.8.3-beta.6 → 3.8.3-beta.8
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/dist/index.esm.css +10 -0
- package/dist/less.esm.css +10 -0
- package/es/ProForm/components/combination/ProModalSelect/index.js +17 -3
- package/es/ProTable/components/FormatColumn/index.d.ts +2 -1
- package/es/ProTable/components/FormatColumn/index.js +43 -14
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -0
- package/es/ProTable/components/RenderColumn/index.js +3 -2
- package/es/ProTable/index.js +8 -7
- package/es/ProTable/propsType.d.ts +1 -0
- package/es/ProTable/style/index.less +14 -0
- package/lib/ProForm/components/combination/ProModalSelect/index.js +17 -3
- package/lib/ProTable/components/FormatColumn/index.d.ts +2 -1
- package/lib/ProTable/components/FormatColumn/index.js +43 -14
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -0
- package/lib/ProTable/components/RenderColumn/index.js +3 -2
- package/lib/ProTable/index.js +8 -7
- package/lib/ProTable/propsType.d.ts +1 -0
- package/lib/ProTable/style/index.less +14 -0
- 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"> </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
|
+
|
package/dist/index.esm.css
CHANGED
|
@@ -1914,6 +1914,16 @@
|
|
|
1914
1914
|
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
1915
1915
|
border-radius: var(--zaui-border-radius, 8px);
|
|
1916
1916
|
}
|
|
1917
|
+
.pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container {
|
|
1918
|
+
overflow: hidden;
|
|
1919
|
+
white-space: nowrap;
|
|
1920
|
+
text-overflow: ellipsis;
|
|
1921
|
+
}
|
|
1922
|
+
.pro-table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container {
|
|
1923
|
+
overflow: hidden;
|
|
1924
|
+
white-space: nowrap;
|
|
1925
|
+
text-overflow: ellipsis;
|
|
1926
|
+
}
|
|
1917
1927
|
.pro-table tbody.ant-table-tbody .varied-cell.empty-cell {
|
|
1918
1928
|
width: 24.5px;
|
|
1919
1929
|
}
|
package/dist/less.esm.css
CHANGED
|
@@ -1914,6 +1914,16 @@
|
|
|
1914
1914
|
background: var(--zaui-contract-bg, #fffaa1) !important;
|
|
1915
1915
|
border-radius: var(--zaui-border-radius, 8px);
|
|
1916
1916
|
}
|
|
1917
|
+
.pro-table tbody.ant-table-tbody .ant-table-cell .varied-cell .pro-form-view-container {
|
|
1918
|
+
overflow: hidden;
|
|
1919
|
+
white-space: nowrap;
|
|
1920
|
+
text-overflow: ellipsis;
|
|
1921
|
+
}
|
|
1922
|
+
.pro-table tbody.ant-table-tbody .ant-table-cell .ant-typography-ellipsis .pro-form-view-container {
|
|
1923
|
+
overflow: hidden;
|
|
1924
|
+
white-space: nowrap;
|
|
1925
|
+
text-overflow: ellipsis;
|
|
1926
|
+
}
|
|
1917
1927
|
.pro-table tbody.ant-table-tbody .varied-cell.empty-cell {
|
|
1918
1928
|
width: 24.5px;
|
|
1919
1929
|
}
|
|
@@ -195,11 +195,25 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
195
195
|
value: item[valueKey],
|
|
196
196
|
label: item[labelKey]
|
|
197
197
|
}));
|
|
198
|
-
})) === null || _data$map === void 0 ? void 0 : _data$map.join(',') :
|
|
198
|
+
})) === null || _data$map === void 0 ? void 0 : _data$map.join(',') : '';
|
|
199
199
|
};
|
|
200
200
|
var viewText = useMemo(function () {
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
var nextValue = labelInValue ? value : _value;
|
|
202
|
+
if (labelInValue) {
|
|
203
|
+
nextValue = value;
|
|
204
|
+
} else {
|
|
205
|
+
var _options$find;
|
|
206
|
+
var optionDTO = options === null || options === void 0 ? void 0 : (_options$find = options.find) === null || _options$find === void 0 ? void 0 : _options$find.call(options, function (item) {
|
|
207
|
+
return item[valueKey] === value;
|
|
208
|
+
});
|
|
209
|
+
if (optionDTO) {
|
|
210
|
+
nextValue = optionDTO;
|
|
211
|
+
} else {
|
|
212
|
+
nextValue = _value;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return formatValue(nextValue);
|
|
216
|
+
}, [value, _value, options]);
|
|
203
217
|
/**
|
|
204
218
|
* 获取表格的rowKey,支持函数、字符串
|
|
205
219
|
* @date 2023-02-16
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ProTableColumn } from '../../propsType';
|
|
3
|
-
export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey, diffToolTip, wrapToolTipProps, scroll, onUpdateMinWidth, }: {
|
|
3
|
+
export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey, diffToolTip, wrapToolTipProps, scroll, onUpdateMinWidth, isInNewRow, }: {
|
|
4
4
|
column: ProTableColumn;
|
|
5
5
|
originalObj: any;
|
|
6
6
|
dataSourceObj: any;
|
|
@@ -9,6 +9,7 @@ export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey
|
|
|
9
9
|
wrapToolTipProps?: any;
|
|
10
10
|
scroll?: any;
|
|
11
11
|
onUpdateMinWidth?: any;
|
|
12
|
+
isInNewRow?: any;
|
|
12
13
|
}) => void;
|
|
13
14
|
/**
|
|
14
15
|
* 查找最近的父级className
|
|
@@ -51,7 +51,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
51
51
|
diffToolTip = _ref2.diffToolTip,
|
|
52
52
|
wrapToolTipProps = _ref2.wrapToolTipProps,
|
|
53
53
|
scroll = _ref2.scroll,
|
|
54
|
-
onUpdateMinWidth = _ref2.onUpdateMinWidth
|
|
54
|
+
onUpdateMinWidth = _ref2.onUpdateMinWidth,
|
|
55
|
+
isInNewRow = _ref2.isInNewRow;
|
|
55
56
|
var title = column.title,
|
|
56
57
|
valueType = column.valueType,
|
|
57
58
|
_column$format = column.format,
|
|
@@ -71,7 +72,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
71
72
|
originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT,
|
|
72
73
|
_column$toolTipProps = column.toolTipProps,
|
|
73
74
|
toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps,
|
|
74
|
-
minWidth = column.minWidth
|
|
75
|
+
minWidth = column.minWidth,
|
|
76
|
+
diffTeleport = column.diffTeleport;
|
|
75
77
|
// 仅在 {x: 'max-content', y: 300 } 且 column无指定 width minWidth 情况下 才开启 minWidth的自动计算
|
|
76
78
|
var isMaxContentOverFlow = isObject(scroll) ? (scroll === null || scroll === void 0 ? void 0 : scroll.x) === 'max-content' && Reflect.ownKeys(scroll).includes('y') : false;
|
|
77
79
|
calcMinWidth({
|
|
@@ -108,7 +110,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
108
110
|
}
|
|
109
111
|
};
|
|
110
112
|
if (column === null || column === void 0 ? void 0 : column.render) {
|
|
111
|
-
if (!originalObj && Object.keys(originalObj !== null && originalObj !== void 0 ? originalObj : {}).length === 0) {
|
|
113
|
+
if (!originalObj && Object.keys(originalObj !== null && originalObj !== void 0 ? originalObj : {}).length === 0 && !diffTeleport) {
|
|
112
114
|
return;
|
|
113
115
|
}
|
|
114
116
|
var originalRender = column.render; // 保存原始的 render 方法
|
|
@@ -119,6 +121,14 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
119
121
|
var _value = isFn ? originalRender === null || originalRender === void 0 ? void 0 : originalRender(value, record !== null && record !== void 0 ? record : {}, index) : undefined;
|
|
120
122
|
var originalValue = getOriginalValue(value, record !== null && record !== void 0 ? record : {}, originalObj, rowKey, dataIndex);
|
|
121
123
|
var originalRenderValue = isFn ? originalRender === null || originalRender === void 0 ? void 0 : originalRender(originalValue, (_originalObj$record$r = originalObj === null || originalObj === void 0 ? void 0 : originalObj[record === null || record === void 0 ? void 0 : record[rowKey]]) !== null && _originalObj$record$r !== void 0 ? _originalObj$record$r : {}, index) : undefined;
|
|
124
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
125
|
+
// 把比对结果告诉我
|
|
126
|
+
if (diffTeleport) {
|
|
127
|
+
var isDiff = diffTeleport(value, record, index, originalObj === null || originalObj === void 0 ? void 0 : originalObj[record === null || record === void 0 ? void 0 : record[rowKey]]);
|
|
128
|
+
if (!isDiff) {
|
|
129
|
+
originalValue = undefined;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
122
132
|
return _jsx(RenderColumn, {
|
|
123
133
|
valueType: valueType,
|
|
124
134
|
originalValue: originalValue === undefined ? undefined : originalRenderValue,
|
|
@@ -129,7 +139,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
129
139
|
currentValue: _value,
|
|
130
140
|
originalDiffTip: _originalDiffTip,
|
|
131
141
|
toolTipProps: _toolTipProps,
|
|
132
|
-
minWidth: minWidth
|
|
142
|
+
minWidth: minWidth,
|
|
143
|
+
isInNewRowFlag: isInNewRowFlag
|
|
133
144
|
});
|
|
134
145
|
};
|
|
135
146
|
return;
|
|
@@ -171,6 +182,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
171
182
|
size: 8,
|
|
172
183
|
children: [prefixNode(value, record, index), renderValue, suffixNode(value, record, index)]
|
|
173
184
|
});
|
|
185
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
174
186
|
return _jsx(RenderColumn, {
|
|
175
187
|
valueType: valueType,
|
|
176
188
|
originalValue: originalValue === undefined ? undefined : originalRenderValue,
|
|
@@ -181,7 +193,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
181
193
|
currentValue: renderValue,
|
|
182
194
|
originalDiffTip: _originalDiffTip,
|
|
183
195
|
toolTipProps: _toolTipProps,
|
|
184
|
-
minWidth: minWidth
|
|
196
|
+
minWidth: minWidth,
|
|
197
|
+
isInNewRowFlag: isInNewRowFlag
|
|
185
198
|
});
|
|
186
199
|
};
|
|
187
200
|
// 千分位, 千分位带CNY前缀
|
|
@@ -207,6 +220,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
207
220
|
children: "-"
|
|
208
221
|
});
|
|
209
222
|
}
|
|
223
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
210
224
|
return _jsx(RenderColumn, {
|
|
211
225
|
valueType: valueType,
|
|
212
226
|
originalValue: originalValue === undefined ? undefined : originalRenderValue,
|
|
@@ -217,7 +231,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
217
231
|
currentValue: renderValue,
|
|
218
232
|
originalDiffTip: _originalDiffTip,
|
|
219
233
|
toolTipProps: _toolTipProps,
|
|
220
|
-
minWidth: minWidth
|
|
234
|
+
minWidth: minWidth,
|
|
235
|
+
isInNewRowFlag: isInNewRowFlag
|
|
221
236
|
});
|
|
222
237
|
};
|
|
223
238
|
} else if (['datePicker', 'date', 'dateTime', 'dateStartTime', 'dateEndTime', 'dateStartEndTime'].includes(valueType)) {
|
|
@@ -266,6 +281,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
266
281
|
children: "-"
|
|
267
282
|
});
|
|
268
283
|
}
|
|
284
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
269
285
|
return _jsx(RenderColumn, {
|
|
270
286
|
valueType: valueType,
|
|
271
287
|
originalValue: originalValue === undefined ? undefined : originalRenderValue,
|
|
@@ -276,7 +292,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
276
292
|
currentValue: renderValue,
|
|
277
293
|
originalDiffTip: _originalDiffTip,
|
|
278
294
|
toolTipProps: _toolTipProps,
|
|
279
|
-
minWidth: minWidth
|
|
295
|
+
minWidth: minWidth,
|
|
296
|
+
isInNewRowFlag: isInNewRowFlag
|
|
280
297
|
});
|
|
281
298
|
};
|
|
282
299
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
@@ -305,6 +322,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
305
322
|
size: 8,
|
|
306
323
|
children: [prefixNode(value, record, index), renderValue, suffixNode(value, record, index)]
|
|
307
324
|
});
|
|
325
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
308
326
|
return _jsx(RenderColumn, {
|
|
309
327
|
valueType: valueType,
|
|
310
328
|
originalValue: originalValue === undefined ? undefined : originalRenderValue,
|
|
@@ -315,7 +333,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
315
333
|
currentValue: renderValue,
|
|
316
334
|
originalDiffTip: _originalDiffTip,
|
|
317
335
|
toolTipProps: _toolTipProps,
|
|
318
|
-
minWidth: minWidth
|
|
336
|
+
minWidth: minWidth,
|
|
337
|
+
isInNewRowFlag: isInNewRowFlag
|
|
319
338
|
});
|
|
320
339
|
};
|
|
321
340
|
} else if (precision || prefix || suffix) {
|
|
@@ -338,6 +357,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
338
357
|
children: "-"
|
|
339
358
|
});
|
|
340
359
|
}
|
|
360
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
341
361
|
return _jsx(RenderColumn, {
|
|
342
362
|
valueType: valueType,
|
|
343
363
|
originalValue: originalValue === undefined ? undefined : originalRenderValue,
|
|
@@ -348,7 +368,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
348
368
|
currentValue: renderValue,
|
|
349
369
|
originalDiffTip: _originalDiffTip,
|
|
350
370
|
toolTipProps: _toolTipProps,
|
|
351
|
-
minWidth: minWidth
|
|
371
|
+
minWidth: minWidth,
|
|
372
|
+
isInNewRowFlag: isInNewRowFlag
|
|
352
373
|
});
|
|
353
374
|
};
|
|
354
375
|
} else if (valueType === 'address') {
|
|
@@ -392,21 +413,24 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
392
413
|
value: realValue,
|
|
393
414
|
tooltip: false
|
|
394
415
|
});
|
|
416
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
395
417
|
return _jsx(RenderColumn, {
|
|
396
418
|
valueType: valueType,
|
|
397
419
|
originalValue: originalRealValue === undefined ? undefined : originalRenderValue,
|
|
398
420
|
ellipsis: ellipsis !== null && ellipsis !== void 0 ? ellipsis : true,
|
|
399
421
|
width: width,
|
|
400
422
|
node: renderNode,
|
|
401
|
-
value:
|
|
423
|
+
value: renderValue,
|
|
402
424
|
currentValue: renderValue,
|
|
403
425
|
originalDiffTip: _originalDiffTip,
|
|
404
426
|
toolTipProps: _toolTipProps,
|
|
405
|
-
minWidth: minWidth
|
|
427
|
+
minWidth: minWidth,
|
|
428
|
+
isInNewRowFlag: isInNewRowFlag
|
|
406
429
|
});
|
|
407
430
|
};
|
|
408
431
|
} else if (copyable) {
|
|
409
432
|
column.render = function (value, record, index) {
|
|
433
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
410
434
|
return _jsxs(_Space, {
|
|
411
435
|
size: 8,
|
|
412
436
|
children: [prefixNode(value, record, index), _jsx(RenderColumn, {
|
|
@@ -418,7 +442,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
418
442
|
value: value,
|
|
419
443
|
currentValue: value,
|
|
420
444
|
toolTipProps: _toolTipProps,
|
|
421
|
-
minWidth: minWidth
|
|
445
|
+
minWidth: minWidth,
|
|
446
|
+
isInNewRowFlag: isInNewRowFlag
|
|
422
447
|
}), suffixNode(value, record, index)]
|
|
423
448
|
});
|
|
424
449
|
};
|
|
@@ -433,6 +458,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
433
458
|
children: "-"
|
|
434
459
|
});
|
|
435
460
|
}
|
|
461
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
436
462
|
return _jsxs(_Space, {
|
|
437
463
|
size: 8,
|
|
438
464
|
children: [prefixNode(value, record, index), _jsx(RenderColumn, {
|
|
@@ -445,7 +471,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
445
471
|
currentValue: value || '-',
|
|
446
472
|
originalDiffTip: _originalDiffTip,
|
|
447
473
|
toolTipProps: _toolTipProps,
|
|
448
|
-
minWidth: minWidth
|
|
474
|
+
minWidth: minWidth,
|
|
475
|
+
isInNewRowFlag: isInNewRowFlag
|
|
449
476
|
}), suffixNode(value, record, index)]
|
|
450
477
|
});
|
|
451
478
|
};
|
|
@@ -464,6 +491,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
464
491
|
children: "-"
|
|
465
492
|
});
|
|
466
493
|
}
|
|
494
|
+
var isInNewRowFlag = isInNewRow(record);
|
|
467
495
|
return _jsx(RenderColumn, {
|
|
468
496
|
valueType: valueType,
|
|
469
497
|
originalValue: originalValue === undefined ? undefined : originalValue || '-',
|
|
@@ -474,7 +502,8 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
|
474
502
|
currentValue: value || '-',
|
|
475
503
|
originalDiffTip: _originalDiffTip,
|
|
476
504
|
toolTipProps: _toolTipProps,
|
|
477
|
-
minWidth: minWidth
|
|
505
|
+
minWidth: minWidth,
|
|
506
|
+
isInNewRowFlag: isInNewRowFlag
|
|
478
507
|
});
|
|
479
508
|
};
|
|
480
509
|
}
|
|
@@ -24,14 +24,15 @@ var RenderColumn = function RenderColumn(props) {
|
|
|
24
24
|
originalDiffTip = props.originalDiffTip,
|
|
25
25
|
_props$toolTipProps = props.toolTipProps,
|
|
26
26
|
toolTipProps = _props$toolTipProps === void 0 ? {} : _props$toolTipProps,
|
|
27
|
-
minWidth = props.minWidth
|
|
27
|
+
minWidth = props.minWidth,
|
|
28
|
+
isInNewRowFlag = props.isInNewRowFlag;
|
|
28
29
|
var _useSetState = useSetState({
|
|
29
30
|
tooltip: false
|
|
30
31
|
}),
|
|
31
32
|
_useSetState2 = _slicedToArray(_useSetState, 2),
|
|
32
33
|
tooltip = _useSetState2[0].tooltip,
|
|
33
34
|
setState = _useSetState2[1];
|
|
34
|
-
if (originalValue !== undefined) {
|
|
35
|
+
if (originalValue !== undefined && !isInNewRowFlag) {
|
|
35
36
|
var renderNode = value ? node : '-';
|
|
36
37
|
if (ellipsis || originalDiffTip) {
|
|
37
38
|
if (ellipsis) {
|
package/es/ProTable/index.js
CHANGED
|
@@ -183,6 +183,11 @@ function ProTable(props) {
|
|
|
183
183
|
setCurColumns(nextColumns);
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
|
+
var _rowClassName = function _rowClassName(record, index) {
|
|
187
|
+
if (originalDataSource && !originalObj.hasOwnProperty(get(record, 'rowKey'))) {
|
|
188
|
+
return 'new-cell';
|
|
189
|
+
}
|
|
190
|
+
};
|
|
186
191
|
var columns = useMemo(function () {
|
|
187
192
|
var newColumns = curColumns.map(function (item, index) {
|
|
188
193
|
var _propsColumnObj$getCo2;
|
|
@@ -215,11 +220,12 @@ function ProTable(props) {
|
|
|
215
220
|
scroll: _scroll,
|
|
216
221
|
onUpdateMinWidth: function onUpdateMinWidth(w) {
|
|
217
222
|
curColumns[index].minWidth = w;
|
|
218
|
-
}
|
|
223
|
+
},
|
|
224
|
+
isInNewRow: _rowClassName
|
|
219
225
|
});
|
|
220
226
|
});
|
|
221
227
|
return newColumns;
|
|
222
|
-
}, [curColumns, handleResize, _scroll]);
|
|
228
|
+
}, [curColumns, handleResize, _scroll, originalDataSource, originalObj, _rowClassName]);
|
|
223
229
|
var _columns = useMemo(function () {
|
|
224
230
|
return columns === null || columns === void 0 ? void 0 : columns.filter(function (item, index) {
|
|
225
231
|
var show = item.show;
|
|
@@ -368,11 +374,6 @@ function ProTable(props) {
|
|
|
368
374
|
return _ref7.apply(this, arguments);
|
|
369
375
|
};
|
|
370
376
|
}();
|
|
371
|
-
var _rowClassName = function _rowClassName(record, index) {
|
|
372
|
-
if (originalDataSource && !originalObj.hasOwnProperty(get(record, 'rowKey'))) {
|
|
373
|
-
return 'new-cell';
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
377
|
var TableComponent = draggable ? DraggableTable : BaseTable;
|
|
377
378
|
// 标记样式
|
|
378
379
|
var tagStyle = {
|
|
@@ -41,6 +41,7 @@ export interface ProTableColumn extends Omit<ColumnType<any>, 'dataIndex'> {
|
|
|
41
41
|
toolTipProps?: TooltipProps & React.RefAttributes<unknown>;
|
|
42
42
|
transform?: (value: any, record?: any) => string[];
|
|
43
43
|
show?: boolean | (() => boolean);
|
|
44
|
+
diffTeleport?: (value: any, record: any, index: number, originalRecord?: any) => boolean;
|
|
44
45
|
}
|
|
45
46
|
export interface CreateTreeFromArrayOptions {
|
|
46
47
|
itemKey?: string;
|
|
@@ -272,8 +272,22 @@
|
|
|
272
272
|
.@{ant-prefix}-table-cell .varied-cell {
|
|
273
273
|
margin-left: -8px;
|
|
274
274
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
275
|
+
|
|
275
276
|
background: var(--zaui-contract-bg; #fffaa1) !important;
|
|
276
277
|
border-radius: var(--zaui-border-radius, 8px);
|
|
278
|
+
.pro-form-view-container {
|
|
279
|
+
overflow: hidden;
|
|
280
|
+
white-space: nowrap;
|
|
281
|
+
text-overflow: ellipsis;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.@{ant-prefix}-table-cell .@{ant-prefix}-typography-ellipsis {
|
|
286
|
+
.pro-form-view-container {
|
|
287
|
+
overflow: hidden;
|
|
288
|
+
white-space: nowrap;
|
|
289
|
+
text-overflow: ellipsis;
|
|
290
|
+
}
|
|
277
291
|
}
|
|
278
292
|
|
|
279
293
|
.varied-cell.empty-cell {
|