seeder-resources-view 1.0.2 → 1.0.3
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/dist/index.esm.js +406 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +406 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -60,6 +60,396 @@ function _toPropertyKey(t) {
|
|
|
60
60
|
return "symbol" == typeof i ? i : i + "";
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
67
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
68
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
69
|
+
* Released under MIT license <https://lodash.com/license>
|
|
70
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
71
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
var lodash_debounce;
|
|
75
|
+
var hasRequiredLodash_debounce;
|
|
76
|
+
|
|
77
|
+
function requireLodash_debounce () {
|
|
78
|
+
if (hasRequiredLodash_debounce) return lodash_debounce;
|
|
79
|
+
hasRequiredLodash_debounce = 1;
|
|
80
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
|
81
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
82
|
+
|
|
83
|
+
/** Used as references for various `Number` constants. */
|
|
84
|
+
var NAN = 0 / 0;
|
|
85
|
+
|
|
86
|
+
/** `Object#toString` result references. */
|
|
87
|
+
var symbolTag = '[object Symbol]';
|
|
88
|
+
|
|
89
|
+
/** Used to match leading and trailing whitespace. */
|
|
90
|
+
var reTrim = /^\s+|\s+$/g;
|
|
91
|
+
|
|
92
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
93
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
94
|
+
|
|
95
|
+
/** Used to detect binary string values. */
|
|
96
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
97
|
+
|
|
98
|
+
/** Used to detect octal string values. */
|
|
99
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
100
|
+
|
|
101
|
+
/** Built-in method references without a dependency on `root`. */
|
|
102
|
+
var freeParseInt = parseInt;
|
|
103
|
+
|
|
104
|
+
/** Detect free variable `global` from Node.js. */
|
|
105
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
106
|
+
|
|
107
|
+
/** Detect free variable `self`. */
|
|
108
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
109
|
+
|
|
110
|
+
/** Used as a reference to the global object. */
|
|
111
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
112
|
+
|
|
113
|
+
/** Used for built-in method references. */
|
|
114
|
+
var objectProto = Object.prototype;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Used to resolve the
|
|
118
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
119
|
+
* of values.
|
|
120
|
+
*/
|
|
121
|
+
var objectToString = objectProto.toString;
|
|
122
|
+
|
|
123
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
124
|
+
var nativeMax = Math.max,
|
|
125
|
+
nativeMin = Math.min;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
129
|
+
* the Unix epoch (1 January 1970 00:00:00 UTC).
|
|
130
|
+
*
|
|
131
|
+
* @static
|
|
132
|
+
* @memberOf _
|
|
133
|
+
* @since 2.4.0
|
|
134
|
+
* @category Date
|
|
135
|
+
* @returns {number} Returns the timestamp.
|
|
136
|
+
* @example
|
|
137
|
+
*
|
|
138
|
+
* _.defer(function(stamp) {
|
|
139
|
+
* console.log(_.now() - stamp);
|
|
140
|
+
* }, _.now());
|
|
141
|
+
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
142
|
+
*/
|
|
143
|
+
var now = function() {
|
|
144
|
+
return root.Date.now();
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Creates a debounced function that delays invoking `func` until after `wait`
|
|
149
|
+
* milliseconds have elapsed since the last time the debounced function was
|
|
150
|
+
* invoked. The debounced function comes with a `cancel` method to cancel
|
|
151
|
+
* delayed `func` invocations and a `flush` method to immediately invoke them.
|
|
152
|
+
* Provide `options` to indicate whether `func` should be invoked on the
|
|
153
|
+
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
|
|
154
|
+
* with the last arguments provided to the debounced function. Subsequent
|
|
155
|
+
* calls to the debounced function return the result of the last `func`
|
|
156
|
+
* invocation.
|
|
157
|
+
*
|
|
158
|
+
* **Note:** If `leading` and `trailing` options are `true`, `func` is
|
|
159
|
+
* invoked on the trailing edge of the timeout only if the debounced function
|
|
160
|
+
* is invoked more than once during the `wait` timeout.
|
|
161
|
+
*
|
|
162
|
+
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
|
|
163
|
+
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
|
|
164
|
+
*
|
|
165
|
+
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
|
|
166
|
+
* for details over the differences between `_.debounce` and `_.throttle`.
|
|
167
|
+
*
|
|
168
|
+
* @static
|
|
169
|
+
* @memberOf _
|
|
170
|
+
* @since 0.1.0
|
|
171
|
+
* @category Function
|
|
172
|
+
* @param {Function} func The function to debounce.
|
|
173
|
+
* @param {number} [wait=0] The number of milliseconds to delay.
|
|
174
|
+
* @param {Object} [options={}] The options object.
|
|
175
|
+
* @param {boolean} [options.leading=false]
|
|
176
|
+
* Specify invoking on the leading edge of the timeout.
|
|
177
|
+
* @param {number} [options.maxWait]
|
|
178
|
+
* The maximum time `func` is allowed to be delayed before it's invoked.
|
|
179
|
+
* @param {boolean} [options.trailing=true]
|
|
180
|
+
* Specify invoking on the trailing edge of the timeout.
|
|
181
|
+
* @returns {Function} Returns the new debounced function.
|
|
182
|
+
* @example
|
|
183
|
+
*
|
|
184
|
+
* // Avoid costly calculations while the window size is in flux.
|
|
185
|
+
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
|
|
186
|
+
*
|
|
187
|
+
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
|
|
188
|
+
* jQuery(element).on('click', _.debounce(sendMail, 300, {
|
|
189
|
+
* 'leading': true,
|
|
190
|
+
* 'trailing': false
|
|
191
|
+
* }));
|
|
192
|
+
*
|
|
193
|
+
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
|
|
194
|
+
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
|
|
195
|
+
* var source = new EventSource('/stream');
|
|
196
|
+
* jQuery(source).on('message', debounced);
|
|
197
|
+
*
|
|
198
|
+
* // Cancel the trailing debounced invocation.
|
|
199
|
+
* jQuery(window).on('popstate', debounced.cancel);
|
|
200
|
+
*/
|
|
201
|
+
function debounce(func, wait, options) {
|
|
202
|
+
var lastArgs,
|
|
203
|
+
lastThis,
|
|
204
|
+
maxWait,
|
|
205
|
+
result,
|
|
206
|
+
timerId,
|
|
207
|
+
lastCallTime,
|
|
208
|
+
lastInvokeTime = 0,
|
|
209
|
+
leading = false,
|
|
210
|
+
maxing = false,
|
|
211
|
+
trailing = true;
|
|
212
|
+
|
|
213
|
+
if (typeof func != 'function') {
|
|
214
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
215
|
+
}
|
|
216
|
+
wait = toNumber(wait) || 0;
|
|
217
|
+
if (isObject(options)) {
|
|
218
|
+
leading = !!options.leading;
|
|
219
|
+
maxing = 'maxWait' in options;
|
|
220
|
+
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
221
|
+
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function invokeFunc(time) {
|
|
225
|
+
var args = lastArgs,
|
|
226
|
+
thisArg = lastThis;
|
|
227
|
+
|
|
228
|
+
lastArgs = lastThis = undefined;
|
|
229
|
+
lastInvokeTime = time;
|
|
230
|
+
result = func.apply(thisArg, args);
|
|
231
|
+
return result;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function leadingEdge(time) {
|
|
235
|
+
// Reset any `maxWait` timer.
|
|
236
|
+
lastInvokeTime = time;
|
|
237
|
+
// Start the timer for the trailing edge.
|
|
238
|
+
timerId = setTimeout(timerExpired, wait);
|
|
239
|
+
// Invoke the leading edge.
|
|
240
|
+
return leading ? invokeFunc(time) : result;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
function remainingWait(time) {
|
|
244
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
245
|
+
timeSinceLastInvoke = time - lastInvokeTime,
|
|
246
|
+
result = wait - timeSinceLastCall;
|
|
247
|
+
|
|
248
|
+
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function shouldInvoke(time) {
|
|
252
|
+
var timeSinceLastCall = time - lastCallTime,
|
|
253
|
+
timeSinceLastInvoke = time - lastInvokeTime;
|
|
254
|
+
|
|
255
|
+
// Either this is the first call, activity has stopped and we're at the
|
|
256
|
+
// trailing edge, the system time has gone backwards and we're treating
|
|
257
|
+
// it as the trailing edge, or we've hit the `maxWait` limit.
|
|
258
|
+
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
|
|
259
|
+
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
function timerExpired() {
|
|
263
|
+
var time = now();
|
|
264
|
+
if (shouldInvoke(time)) {
|
|
265
|
+
return trailingEdge(time);
|
|
266
|
+
}
|
|
267
|
+
// Restart the timer.
|
|
268
|
+
timerId = setTimeout(timerExpired, remainingWait(time));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function trailingEdge(time) {
|
|
272
|
+
timerId = undefined;
|
|
273
|
+
|
|
274
|
+
// Only invoke if we have `lastArgs` which means `func` has been
|
|
275
|
+
// debounced at least once.
|
|
276
|
+
if (trailing && lastArgs) {
|
|
277
|
+
return invokeFunc(time);
|
|
278
|
+
}
|
|
279
|
+
lastArgs = lastThis = undefined;
|
|
280
|
+
return result;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function cancel() {
|
|
284
|
+
if (timerId !== undefined) {
|
|
285
|
+
clearTimeout(timerId);
|
|
286
|
+
}
|
|
287
|
+
lastInvokeTime = 0;
|
|
288
|
+
lastArgs = lastCallTime = lastThis = timerId = undefined;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function flush() {
|
|
292
|
+
return timerId === undefined ? result : trailingEdge(now());
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function debounced() {
|
|
296
|
+
var time = now(),
|
|
297
|
+
isInvoking = shouldInvoke(time);
|
|
298
|
+
|
|
299
|
+
lastArgs = arguments;
|
|
300
|
+
lastThis = this;
|
|
301
|
+
lastCallTime = time;
|
|
302
|
+
|
|
303
|
+
if (isInvoking) {
|
|
304
|
+
if (timerId === undefined) {
|
|
305
|
+
return leadingEdge(lastCallTime);
|
|
306
|
+
}
|
|
307
|
+
if (maxing) {
|
|
308
|
+
// Handle invocations in a tight loop.
|
|
309
|
+
timerId = setTimeout(timerExpired, wait);
|
|
310
|
+
return invokeFunc(lastCallTime);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
if (timerId === undefined) {
|
|
314
|
+
timerId = setTimeout(timerExpired, wait);
|
|
315
|
+
}
|
|
316
|
+
return result;
|
|
317
|
+
}
|
|
318
|
+
debounced.cancel = cancel;
|
|
319
|
+
debounced.flush = flush;
|
|
320
|
+
return debounced;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Checks if `value` is the
|
|
325
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
326
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
327
|
+
*
|
|
328
|
+
* @static
|
|
329
|
+
* @memberOf _
|
|
330
|
+
* @since 0.1.0
|
|
331
|
+
* @category Lang
|
|
332
|
+
* @param {*} value The value to check.
|
|
333
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
334
|
+
* @example
|
|
335
|
+
*
|
|
336
|
+
* _.isObject({});
|
|
337
|
+
* // => true
|
|
338
|
+
*
|
|
339
|
+
* _.isObject([1, 2, 3]);
|
|
340
|
+
* // => true
|
|
341
|
+
*
|
|
342
|
+
* _.isObject(_.noop);
|
|
343
|
+
* // => true
|
|
344
|
+
*
|
|
345
|
+
* _.isObject(null);
|
|
346
|
+
* // => false
|
|
347
|
+
*/
|
|
348
|
+
function isObject(value) {
|
|
349
|
+
var type = typeof value;
|
|
350
|
+
return !!value && (type == 'object' || type == 'function');
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
355
|
+
* and has a `typeof` result of "object".
|
|
356
|
+
*
|
|
357
|
+
* @static
|
|
358
|
+
* @memberOf _
|
|
359
|
+
* @since 4.0.0
|
|
360
|
+
* @category Lang
|
|
361
|
+
* @param {*} value The value to check.
|
|
362
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
363
|
+
* @example
|
|
364
|
+
*
|
|
365
|
+
* _.isObjectLike({});
|
|
366
|
+
* // => true
|
|
367
|
+
*
|
|
368
|
+
* _.isObjectLike([1, 2, 3]);
|
|
369
|
+
* // => true
|
|
370
|
+
*
|
|
371
|
+
* _.isObjectLike(_.noop);
|
|
372
|
+
* // => false
|
|
373
|
+
*
|
|
374
|
+
* _.isObjectLike(null);
|
|
375
|
+
* // => false
|
|
376
|
+
*/
|
|
377
|
+
function isObjectLike(value) {
|
|
378
|
+
return !!value && typeof value == 'object';
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
383
|
+
*
|
|
384
|
+
* @static
|
|
385
|
+
* @memberOf _
|
|
386
|
+
* @since 4.0.0
|
|
387
|
+
* @category Lang
|
|
388
|
+
* @param {*} value The value to check.
|
|
389
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
390
|
+
* @example
|
|
391
|
+
*
|
|
392
|
+
* _.isSymbol(Symbol.iterator);
|
|
393
|
+
* // => true
|
|
394
|
+
*
|
|
395
|
+
* _.isSymbol('abc');
|
|
396
|
+
* // => false
|
|
397
|
+
*/
|
|
398
|
+
function isSymbol(value) {
|
|
399
|
+
return typeof value == 'symbol' ||
|
|
400
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Converts `value` to a number.
|
|
405
|
+
*
|
|
406
|
+
* @static
|
|
407
|
+
* @memberOf _
|
|
408
|
+
* @since 4.0.0
|
|
409
|
+
* @category Lang
|
|
410
|
+
* @param {*} value The value to process.
|
|
411
|
+
* @returns {number} Returns the number.
|
|
412
|
+
* @example
|
|
413
|
+
*
|
|
414
|
+
* _.toNumber(3.2);
|
|
415
|
+
* // => 3.2
|
|
416
|
+
*
|
|
417
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
418
|
+
* // => 5e-324
|
|
419
|
+
*
|
|
420
|
+
* _.toNumber(Infinity);
|
|
421
|
+
* // => Infinity
|
|
422
|
+
*
|
|
423
|
+
* _.toNumber('3.2');
|
|
424
|
+
* // => 3.2
|
|
425
|
+
*/
|
|
426
|
+
function toNumber(value) {
|
|
427
|
+
if (typeof value == 'number') {
|
|
428
|
+
return value;
|
|
429
|
+
}
|
|
430
|
+
if (isSymbol(value)) {
|
|
431
|
+
return NAN;
|
|
432
|
+
}
|
|
433
|
+
if (isObject(value)) {
|
|
434
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
435
|
+
value = isObject(other) ? (other + '') : other;
|
|
436
|
+
}
|
|
437
|
+
if (typeof value != 'string') {
|
|
438
|
+
return value === 0 ? value : +value;
|
|
439
|
+
}
|
|
440
|
+
value = value.replace(reTrim, '');
|
|
441
|
+
var isBinary = reIsBinary.test(value);
|
|
442
|
+
return (isBinary || reIsOctal.test(value))
|
|
443
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
444
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
lodash_debounce = debounce;
|
|
448
|
+
return lodash_debounce;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
var lodash_debounceExports = requireLodash_debounce();
|
|
452
|
+
|
|
63
453
|
const BASE_MENU_ITEMS = [{
|
|
64
454
|
label: 'Download',
|
|
65
455
|
key: 'download',
|
|
@@ -212,7 +602,6 @@ const SelectFolderPathModal = _ref => {
|
|
|
212
602
|
const [form] = Form.useForm();
|
|
213
603
|
const [options, setOptions] = useState([]);
|
|
214
604
|
const [internalLoading, setInternalLoading] = useState(false);
|
|
215
|
-
const [selectedPath, setSelectedPath] = useState([]);
|
|
216
605
|
const loading = externalLoading || internalLoading;
|
|
217
606
|
|
|
218
607
|
// 将 directoryTree 转换为 Cascader 需要的 options 格式
|
|
@@ -285,7 +674,6 @@ const SelectFolderPathModal = _ref => {
|
|
|
285
674
|
}, [form, options, getSelectedNodes, onOk, showFullPath]);
|
|
286
675
|
const handleAfterClose = useCallback(() => {
|
|
287
676
|
form.resetFields();
|
|
288
|
-
setSelectedPath([]);
|
|
289
677
|
}, [form]);
|
|
290
678
|
return /*#__PURE__*/jsx(Modal, {
|
|
291
679
|
title: title,
|
|
@@ -296,13 +684,11 @@ const SelectFolderPathModal = _ref => {
|
|
|
296
684
|
destroyOnHidden: true,
|
|
297
685
|
footer: [/*#__PURE__*/jsx(Button, {
|
|
298
686
|
onClick: onClose,
|
|
299
|
-
disabled: batchLoading,
|
|
300
687
|
children: cancelText
|
|
301
688
|
}, "cancel"), /*#__PURE__*/jsx(Button, {
|
|
302
689
|
type: "primary",
|
|
303
690
|
onClick: handleOk,
|
|
304
691
|
loading: batchLoading,
|
|
305
|
-
disabled: disabled || selectedPath.length === 0,
|
|
306
692
|
children: okText
|
|
307
693
|
}, "submit")],
|
|
308
694
|
children: /*#__PURE__*/jsx(Spin, {
|
|
@@ -971,12 +1357,24 @@ const ResourcesView = _ref => {
|
|
|
971
1357
|
const [checkAll, setCheckAll] = useState(false);
|
|
972
1358
|
const [batchLoading, setBatchLoading] = useState(false);
|
|
973
1359
|
const [keyword, setKeyword] = useState('');
|
|
1360
|
+
const [debouncedKeyword, setDebouncedKeyword] = useState('');
|
|
1361
|
+
|
|
1362
|
+
// 创建防抖函数(延迟 300ms)
|
|
1363
|
+
const debouncedSearch = useMemo(() => lodash_debounceExports.debounce(searchValue => {
|
|
1364
|
+
setDebouncedKeyword(searchValue);
|
|
1365
|
+
}, 300), []);
|
|
1366
|
+
|
|
1367
|
+
// 监听 keyword 变化并触发防抖
|
|
1368
|
+
useEffect(() => {
|
|
1369
|
+
debouncedSearch(keyword);
|
|
1370
|
+
return () => debouncedSearch.cancel(); // 组件卸载时取消防抖
|
|
1371
|
+
}, [keyword, debouncedSearch]);
|
|
974
1372
|
|
|
975
1373
|
// 过滤内容
|
|
976
1374
|
const filteredContents = useMemo(() => {
|
|
977
|
-
if (!
|
|
978
|
-
return contents.filter(item => item.name.toLowerCase().includes(
|
|
979
|
-
}, [contents,
|
|
1375
|
+
if (!debouncedKeyword) return contents;
|
|
1376
|
+
return contents.filter(item => item.name.toLowerCase().includes(debouncedKeyword.toLowerCase()));
|
|
1377
|
+
}, [contents, debouncedKeyword]);
|
|
980
1378
|
|
|
981
1379
|
// 在组件卸载时取消上传
|
|
982
1380
|
useEffect(() => {
|
|
@@ -1173,7 +1571,7 @@ const ResourcesView = _ref => {
|
|
|
1173
1571
|
setCheckAll(checked);
|
|
1174
1572
|
};
|
|
1175
1573
|
|
|
1176
|
-
//
|
|
1574
|
+
// 搜索框变化处理
|
|
1177
1575
|
const handleSearchChange = e => {
|
|
1178
1576
|
setKeyword(e.target.value);
|
|
1179
1577
|
};
|