@zat-design/sisyphus-react 3.11.11 → 3.11.13-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.
- 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 +4 -4
- package/dist/less.esm.css +4 -4
- package/es/ProForm/components/combination/ProModalSelect/index.js +4 -3
- package/es/ProTable/style/index.less +5 -4
- package/lib/ProForm/components/combination/ProModalSelect/index.js +22 -21
- package/lib/ProTable/style/index.less +5 -4
- 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
|
+
|
package/dist/index.esm.css
CHANGED
@@ -1832,15 +1832,15 @@
|
|
1832
1832
|
.pro-table.pro-table-draggable-only .ant-table-tbody .anticon {
|
1833
1833
|
margin-right: 0;
|
1834
1834
|
}
|
1835
|
+
.pro-table.pro-table-draggable-only .ant-table-row-expand-icon {
|
1836
|
+
position: absolute;
|
1837
|
+
left: -16px;
|
1838
|
+
}
|
1835
1839
|
.pro-table .ant-table-cell-with-append {
|
1836
1840
|
position: relative;
|
1837
1841
|
z-index: 100;
|
1838
1842
|
white-space: nowrap;
|
1839
1843
|
}
|
1840
|
-
.pro-table .ant-table-row-expand-icon {
|
1841
|
-
position: absolute;
|
1842
|
-
left: -16px;
|
1843
|
-
}
|
1844
1844
|
.pro-table .ant-table-content > table .ant-table-summary {
|
1845
1845
|
color: var(--zaui-text, #343434);
|
1846
1846
|
font-weight: 600;
|
package/dist/less.esm.css
CHANGED
@@ -1832,15 +1832,15 @@
|
|
1832
1832
|
.pro-table.pro-table-draggable-only .ant-table-tbody .anticon {
|
1833
1833
|
margin-right: 0;
|
1834
1834
|
}
|
1835
|
+
.pro-table.pro-table-draggable-only .ant-table-row-expand-icon {
|
1836
|
+
position: absolute;
|
1837
|
+
left: -16px;
|
1838
|
+
}
|
1835
1839
|
.pro-table .ant-table-cell-with-append {
|
1836
1840
|
position: relative;
|
1837
1841
|
z-index: 100;
|
1838
1842
|
white-space: nowrap;
|
1839
1843
|
}
|
1840
|
-
.pro-table .ant-table-row-expand-icon {
|
1841
|
-
position: absolute;
|
1842
|
-
left: -16px;
|
1843
|
-
}
|
1844
1844
|
.pro-table .ant-table-content > table .ant-table-summary {
|
1845
1845
|
color: var(--zaui-text, #343434);
|
1846
1846
|
font-weight: 600;
|
@@ -661,8 +661,9 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
661
661
|
if (value && !visible && readOnly && (!isEqual(value, preValue.current) || (options === null || options === void 0 ? void 0 : options.length) === 0)) {
|
662
662
|
var _options$some;
|
663
663
|
preValue.current = value;
|
664
|
+
var _data3 = labelInValue ? value[valueKey] : value;
|
664
665
|
var isHasValue = options === null || options === void 0 ? void 0 : (_options$some = options.some) === null || _options$some === void 0 ? void 0 : _options$some.call(options, function (item) {
|
665
|
-
return item[valueKey] ===
|
666
|
+
return item[valueKey] === _data3;
|
666
667
|
});
|
667
668
|
if (isHasValue) {
|
668
669
|
return;
|
@@ -673,8 +674,8 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
673
674
|
var params = withPagination ? {
|
674
675
|
pageNum: 1,
|
675
676
|
pageSize: 50,
|
676
|
-
queryBean: _objectSpread(_objectSpread({}, defaultParams), initParams)
|
677
|
-
} : _objectSpread(_objectSpread({}, defaultParams), initParams);
|
677
|
+
queryBean: _objectSpread(_objectSpread(_objectSpread({}, defaultParams), initParams), {}, _defineProperty({}, searchKey !== null && searchKey !== void 0 ? searchKey : valueKey, _data3))
|
678
|
+
} : _objectSpread(_objectSpread(_objectSpread({}, defaultParams), initParams), {}, _defineProperty({}, searchKey !== null && searchKey !== void 0 ? searchKey : valueKey, _data3));
|
678
679
|
var nextParams = transformParams ? transformParams(params) : params;
|
679
680
|
run(nextParams);
|
680
681
|
}, 300);
|
@@ -8,16 +8,17 @@
|
|
8
8
|
margin-right: 0;
|
9
9
|
}
|
10
10
|
}
|
11
|
+
.@{ant-prefix}-table-row-expand-icon {
|
12
|
+
position: absolute;
|
13
|
+
left: -16px;
|
14
|
+
}
|
11
15
|
}
|
12
16
|
.@{ant-prefix}-table-cell-with-append {
|
13
17
|
position: relative;
|
14
18
|
z-index: 100;
|
15
19
|
white-space: nowrap;
|
16
20
|
}
|
17
|
-
|
18
|
-
position: absolute;
|
19
|
-
left: -16px;
|
20
|
-
}
|
21
|
+
|
21
22
|
|
22
23
|
.@{ant-prefix}-table-content {
|
23
24
|
> table {
|
@@ -10,7 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
10
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
11
11
|
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/regeneratorRuntime"));
|
12
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
13
|
-
var
|
13
|
+
var _objectSpread5 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
15
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
@@ -134,7 +134,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
134
134
|
withPagination: withPagination,
|
135
135
|
transformParams: transformParams,
|
136
136
|
transformResponse: transformResponse
|
137
|
-
}, (0,
|
137
|
+
}, (0, _objectSpread5.default)((0, _objectSpread5.default)({}, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options), {}, {
|
138
138
|
manual: true,
|
139
139
|
onSuccess: function onSuccess(res) {
|
140
140
|
var _res$data, _ref5;
|
@@ -158,7 +158,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
158
158
|
withPagination: withPagination,
|
159
159
|
transformParams: transformParams,
|
160
160
|
transformResponse: transformResponse
|
161
|
-
}, (0,
|
161
|
+
}, (0, _objectSpread5.default)({
|
162
162
|
manual: true,
|
163
163
|
ready: (initParams || defaultOne) && !readOnly || visible
|
164
164
|
}, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options)),
|
@@ -192,13 +192,13 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
192
192
|
return data;
|
193
193
|
}
|
194
194
|
if (Object.prototype.toString.call(data) === '[object Object]') {
|
195
|
-
return handleFormat((0,
|
195
|
+
return handleFormat((0, _objectSpread5.default)((0, _objectSpread5.default)({}, data), {}, {
|
196
196
|
value: data[valueKey],
|
197
197
|
label: data[labelKey]
|
198
198
|
}));
|
199
199
|
}
|
200
200
|
return (0, _lodash.isArray)(data) ? data === null || data === void 0 ? void 0 : (_data$map = data.map(function (item) {
|
201
|
-
return handleFormat((0,
|
201
|
+
return handleFormat((0, _objectSpread5.default)((0, _objectSpread5.default)({}, item), {}, {
|
202
202
|
value: item[valueKey],
|
203
203
|
label: item[labelKey]
|
204
204
|
}));
|
@@ -403,7 +403,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
403
403
|
return form.validateFields();
|
404
404
|
case 2:
|
405
405
|
values = _context3.sent;
|
406
|
-
onSearch((0,
|
406
|
+
onSearch((0, _objectSpread5.default)((0, _objectSpread5.default)({}, values), {}, {
|
407
407
|
d: Date.now()
|
408
408
|
}));
|
409
409
|
case 4:
|
@@ -416,7 +416,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
416
416
|
return _ref9.apply(this, arguments);
|
417
417
|
};
|
418
418
|
}();
|
419
|
-
var _rowSelection = (0,
|
419
|
+
var _rowSelection = (0, _objectSpread5.default)({
|
420
420
|
type: type,
|
421
421
|
onChange: function onChange(rowKeys, rows) {
|
422
422
|
setState({
|
@@ -476,12 +476,12 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
476
476
|
_context4.next = 9;
|
477
477
|
break;
|
478
478
|
}
|
479
|
-
queryBean = (0,
|
480
|
-
page = (0,
|
479
|
+
queryBean = (0, _objectSpread5.default)((0, _objectSpread5.default)({}, defaultParams), initParams || {});
|
480
|
+
page = (0, _objectSpread5.default)({
|
481
481
|
pageNum: 1,
|
482
482
|
pageSize: 10
|
483
483
|
}, useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options5 = useRequest.options) === null || _useRequest$options5 === void 0 ? void 0 : _useRequest$options5.page);
|
484
|
-
params = withPagination ? (0,
|
484
|
+
params = withPagination ? (0, _objectSpread5.default)((0, _objectSpread5.default)({}, page), {}, {
|
485
485
|
queryBean: queryBean !== null && queryBean !== void 0 ? queryBean : {}
|
486
486
|
}) : queryBean;
|
487
487
|
params = transformParams ? transformParams(params) : params;
|
@@ -534,12 +534,12 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
534
534
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee5$(_context5) {
|
535
535
|
while (1) switch (_context5.prev = _context5.next) {
|
536
536
|
case 0:
|
537
|
-
queryBean = (0,
|
538
|
-
page = (0,
|
537
|
+
queryBean = (0, _objectSpread5.default)({}, defaultParams);
|
538
|
+
page = (0, _objectSpread5.default)({
|
539
539
|
pageNum: 1,
|
540
540
|
pageSize: 10
|
541
541
|
}, useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options6 = useRequest.options) === null || _useRequest$options6 === void 0 ? void 0 : _useRequest$options6.page);
|
542
|
-
params = withPagination ? (0,
|
542
|
+
params = withPagination ? (0, _objectSpread5.default)((0, _objectSpread5.default)({}, page), {}, {
|
543
543
|
queryBean: queryBean !== null && queryBean !== void 0 ? queryBean : {}
|
544
544
|
}) : queryBean;
|
545
545
|
params = transformParams ? transformParams(params) : params;
|
@@ -656,8 +656,9 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
656
656
|
if (value && !visible && readOnly && (!(0, _lodash.isEqual)(value, preValue.current) || (options === null || options === void 0 ? void 0 : options.length) === 0)) {
|
657
657
|
var _options$some;
|
658
658
|
preValue.current = value;
|
659
|
+
var _data3 = labelInValue ? value[valueKey] : value;
|
659
660
|
var isHasValue = options === null || options === void 0 ? void 0 : (_options$some = options.some) === null || _options$some === void 0 ? void 0 : _options$some.call(options, function (item) {
|
660
|
-
return item[valueKey] ===
|
661
|
+
return item[valueKey] === _data3;
|
661
662
|
});
|
662
663
|
if (isHasValue) {
|
663
664
|
return;
|
@@ -668,8 +669,8 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
668
669
|
var params = withPagination ? {
|
669
670
|
pageNum: 1,
|
670
671
|
pageSize: 50,
|
671
|
-
queryBean: (0,
|
672
|
-
} : (0,
|
672
|
+
queryBean: (0, _objectSpread5.default)((0, _objectSpread5.default)((0, _objectSpread5.default)({}, defaultParams), initParams), {}, (0, _defineProperty2.default)({}, searchKey !== null && searchKey !== void 0 ? searchKey : valueKey, _data3))
|
673
|
+
} : (0, _objectSpread5.default)((0, _objectSpread5.default)((0, _objectSpread5.default)({}, defaultParams), initParams), {}, (0, _defineProperty2.default)({}, searchKey !== null && searchKey !== void 0 ? searchKey : valueKey, _data3));
|
673
674
|
var nextParams = transformParams ? transformParams(params) : params;
|
674
675
|
run(nextParams);
|
675
676
|
}, 300);
|
@@ -697,7 +698,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
697
698
|
};
|
698
699
|
var handleSelectSearch = (0, _lodash.debounce)(function (val) {
|
699
700
|
if (useRequest) {
|
700
|
-
var queryBean = (0,
|
701
|
+
var queryBean = (0, _objectSpread5.default)((0, _objectSpread5.default)({}, defaultParams), {}, (0, _defineProperty2.default)({}, searchKey !== null && searchKey !== void 0 ? searchKey : labelKey, val));
|
701
702
|
var params = withPagination ? {
|
702
703
|
pageNum: 1,
|
703
704
|
pageSize: 50,
|
@@ -742,7 +743,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
742
743
|
width: '100%'
|
743
744
|
},
|
744
745
|
block: true,
|
745
|
-
children: [readOnly ? (0, _jsxRuntime.jsx)(_index.ProSelect, (0,
|
746
|
+
children: [readOnly ? (0, _jsxRuntime.jsx)(_index.ProSelect, (0, _objectSpread5.default)({
|
746
747
|
value: value,
|
747
748
|
onChange: handleSelectValue,
|
748
749
|
disabled: disabled,
|
@@ -761,7 +762,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
761
762
|
style: {
|
762
763
|
width: isView || disabled ? '100%' : 'calc(100% - 30px)'
|
763
764
|
}
|
764
|
-
}, restProps)) : (0, _jsxRuntime.jsx)(_antd.Input, (0,
|
765
|
+
}, restProps)) : (0, _jsxRuntime.jsx)(_antd.Input, (0, _objectSpread5.default)({
|
765
766
|
value: viewText,
|
766
767
|
onChange: handleChangeValue,
|
767
768
|
disabled: disabled,
|
@@ -856,7 +857,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
856
857
|
title: viewText,
|
857
858
|
children: initRender
|
858
859
|
}) : initRender
|
859
|
-
}), (0, _jsxRuntime.jsxs)(_index.ProDrawerForm, (0,
|
860
|
+
}), (0, _jsxRuntime.jsxs)(_index.ProDrawerForm, (0, _objectSpread5.default)((0, _objectSpread5.default)({
|
860
861
|
showType: "Modal",
|
861
862
|
title: title,
|
862
863
|
onOk: handleFinish,
|
@@ -871,7 +872,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
871
872
|
onFinish: handleSearch,
|
872
873
|
confirmLoading: loading,
|
873
874
|
footer: (formColumns === null || formColumns === void 0 ? void 0 : formColumns.length) > 1
|
874
|
-
}), (0, _jsxRuntime.jsx)(_index.ProTable, (0,
|
875
|
+
}), (0, _jsxRuntime.jsx)(_index.ProTable, (0, _objectSpread5.default)({
|
875
876
|
onRow: function onRow(record) {
|
876
877
|
return {
|
877
878
|
onClick: function onClick() {
|
@@ -8,16 +8,17 @@
|
|
8
8
|
margin-right: 0;
|
9
9
|
}
|
10
10
|
}
|
11
|
+
.@{ant-prefix}-table-row-expand-icon {
|
12
|
+
position: absolute;
|
13
|
+
left: -16px;
|
14
|
+
}
|
11
15
|
}
|
12
16
|
.@{ant-prefix}-table-cell-with-append {
|
13
17
|
position: relative;
|
14
18
|
z-index: 100;
|
15
19
|
white-space: nowrap;
|
16
20
|
}
|
17
|
-
|
18
|
-
position: absolute;
|
19
|
-
left: -16px;
|
20
|
-
}
|
21
|
+
|
21
22
|
|
22
23
|
.@{ant-prefix}-table-content {
|
23
24
|
> table {
|
package/package.json
CHANGED