htui-yllkbz 1.2.15 → 1.2.19
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/README.md +22 -1
- package/lib/htui.common.js +409 -52
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.umd.js +409 -52
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +3 -3
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/packages/HtTable/index.vue +66 -5
- package/src/packages/PageInfo/index.vue +4 -2
- package/src/views/About.vue +10 -6
package/lib/htui.umd.js
CHANGED
|
@@ -397,6 +397,148 @@ module.exports = function spread(callback) {
|
|
|
397
397
|
};
|
|
398
398
|
|
|
399
399
|
|
|
400
|
+
/***/ }),
|
|
401
|
+
|
|
402
|
+
/***/ "1276":
|
|
403
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
404
|
+
|
|
405
|
+
"use strict";
|
|
406
|
+
|
|
407
|
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
|
408
|
+
var isRegExp = __webpack_require__("44e7");
|
|
409
|
+
var anObject = __webpack_require__("825a");
|
|
410
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
411
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
412
|
+
var advanceStringIndex = __webpack_require__("8aa5");
|
|
413
|
+
var toLength = __webpack_require__("50c4");
|
|
414
|
+
var callRegExpExec = __webpack_require__("14c3");
|
|
415
|
+
var regexpExec = __webpack_require__("9263");
|
|
416
|
+
var fails = __webpack_require__("d039");
|
|
417
|
+
|
|
418
|
+
var arrayPush = [].push;
|
|
419
|
+
var min = Math.min;
|
|
420
|
+
var MAX_UINT32 = 0xFFFFFFFF;
|
|
421
|
+
|
|
422
|
+
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
423
|
+
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
|
|
424
|
+
|
|
425
|
+
// @@split logic
|
|
426
|
+
fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
|
427
|
+
var internalSplit;
|
|
428
|
+
if (
|
|
429
|
+
'abbc'.split(/(b)*/)[1] == 'c' ||
|
|
430
|
+
'test'.split(/(?:)/, -1).length != 4 ||
|
|
431
|
+
'ab'.split(/(?:ab)*/).length != 2 ||
|
|
432
|
+
'.'.split(/(.?)(.?)/).length != 4 ||
|
|
433
|
+
'.'.split(/()()/).length > 1 ||
|
|
434
|
+
''.split(/.?/).length
|
|
435
|
+
) {
|
|
436
|
+
// based on es5-shim implementation, need to rework it
|
|
437
|
+
internalSplit = function (separator, limit) {
|
|
438
|
+
var string = String(requireObjectCoercible(this));
|
|
439
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
440
|
+
if (lim === 0) return [];
|
|
441
|
+
if (separator === undefined) return [string];
|
|
442
|
+
// If `separator` is not a regex, use native split
|
|
443
|
+
if (!isRegExp(separator)) {
|
|
444
|
+
return nativeSplit.call(string, separator, lim);
|
|
445
|
+
}
|
|
446
|
+
var output = [];
|
|
447
|
+
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
448
|
+
(separator.multiline ? 'm' : '') +
|
|
449
|
+
(separator.unicode ? 'u' : '') +
|
|
450
|
+
(separator.sticky ? 'y' : '');
|
|
451
|
+
var lastLastIndex = 0;
|
|
452
|
+
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
453
|
+
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
454
|
+
var match, lastIndex, lastLength;
|
|
455
|
+
while (match = regexpExec.call(separatorCopy, string)) {
|
|
456
|
+
lastIndex = separatorCopy.lastIndex;
|
|
457
|
+
if (lastIndex > lastLastIndex) {
|
|
458
|
+
output.push(string.slice(lastLastIndex, match.index));
|
|
459
|
+
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
|
460
|
+
lastLength = match[0].length;
|
|
461
|
+
lastLastIndex = lastIndex;
|
|
462
|
+
if (output.length >= lim) break;
|
|
463
|
+
}
|
|
464
|
+
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
465
|
+
}
|
|
466
|
+
if (lastLastIndex === string.length) {
|
|
467
|
+
if (lastLength || !separatorCopy.test('')) output.push('');
|
|
468
|
+
} else output.push(string.slice(lastLastIndex));
|
|
469
|
+
return output.length > lim ? output.slice(0, lim) : output;
|
|
470
|
+
};
|
|
471
|
+
// Chakra, V8
|
|
472
|
+
} else if ('0'.split(undefined, 0).length) {
|
|
473
|
+
internalSplit = function (separator, limit) {
|
|
474
|
+
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
|
475
|
+
};
|
|
476
|
+
} else internalSplit = nativeSplit;
|
|
477
|
+
|
|
478
|
+
return [
|
|
479
|
+
// `String.prototype.split` method
|
|
480
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.split
|
|
481
|
+
function split(separator, limit) {
|
|
482
|
+
var O = requireObjectCoercible(this);
|
|
483
|
+
var splitter = separator == undefined ? undefined : separator[SPLIT];
|
|
484
|
+
return splitter !== undefined
|
|
485
|
+
? splitter.call(separator, O, limit)
|
|
486
|
+
: internalSplit.call(String(O), separator, limit);
|
|
487
|
+
},
|
|
488
|
+
// `RegExp.prototype[@@split]` method
|
|
489
|
+
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
|
|
490
|
+
//
|
|
491
|
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
492
|
+
// the 'y' flag.
|
|
493
|
+
function (regexp, limit) {
|
|
494
|
+
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
|
|
495
|
+
if (res.done) return res.value;
|
|
496
|
+
|
|
497
|
+
var rx = anObject(regexp);
|
|
498
|
+
var S = String(this);
|
|
499
|
+
var C = speciesConstructor(rx, RegExp);
|
|
500
|
+
|
|
501
|
+
var unicodeMatching = rx.unicode;
|
|
502
|
+
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
503
|
+
(rx.multiline ? 'm' : '') +
|
|
504
|
+
(rx.unicode ? 'u' : '') +
|
|
505
|
+
(SUPPORTS_Y ? 'y' : 'g');
|
|
506
|
+
|
|
507
|
+
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
508
|
+
// simulate the 'y' flag.
|
|
509
|
+
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
|
|
510
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
511
|
+
if (lim === 0) return [];
|
|
512
|
+
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
|
513
|
+
var p = 0;
|
|
514
|
+
var q = 0;
|
|
515
|
+
var A = [];
|
|
516
|
+
while (q < S.length) {
|
|
517
|
+
splitter.lastIndex = SUPPORTS_Y ? q : 0;
|
|
518
|
+
var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
|
|
519
|
+
var e;
|
|
520
|
+
if (
|
|
521
|
+
z === null ||
|
|
522
|
+
(e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
|
|
523
|
+
) {
|
|
524
|
+
q = advanceStringIndex(S, q, unicodeMatching);
|
|
525
|
+
} else {
|
|
526
|
+
A.push(S.slice(p, q));
|
|
527
|
+
if (A.length === lim) return A;
|
|
528
|
+
for (var i = 1; i <= z.length - 1; i++) {
|
|
529
|
+
A.push(z[i]);
|
|
530
|
+
if (A.length === lim) return A;
|
|
531
|
+
}
|
|
532
|
+
q = p = e;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
A.push(S.slice(p));
|
|
536
|
+
return A;
|
|
537
|
+
}
|
|
538
|
+
];
|
|
539
|
+
}, !SUPPORTS_Y);
|
|
540
|
+
|
|
541
|
+
|
|
400
542
|
/***/ }),
|
|
401
543
|
|
|
402
544
|
/***/ "14c3":
|
|
@@ -2107,6 +2249,149 @@ module.exports = function dispatchRequest(config) {
|
|
|
2107
2249
|
};
|
|
2108
2250
|
|
|
2109
2251
|
|
|
2252
|
+
/***/ }),
|
|
2253
|
+
|
|
2254
|
+
/***/ "5319":
|
|
2255
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2256
|
+
|
|
2257
|
+
"use strict";
|
|
2258
|
+
|
|
2259
|
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
|
2260
|
+
var anObject = __webpack_require__("825a");
|
|
2261
|
+
var toObject = __webpack_require__("7b0b");
|
|
2262
|
+
var toLength = __webpack_require__("50c4");
|
|
2263
|
+
var toInteger = __webpack_require__("a691");
|
|
2264
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
2265
|
+
var advanceStringIndex = __webpack_require__("8aa5");
|
|
2266
|
+
var regExpExec = __webpack_require__("14c3");
|
|
2267
|
+
|
|
2268
|
+
var max = Math.max;
|
|
2269
|
+
var min = Math.min;
|
|
2270
|
+
var floor = Math.floor;
|
|
2271
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
|
|
2272
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
|
|
2273
|
+
|
|
2274
|
+
var maybeToString = function (it) {
|
|
2275
|
+
return it === undefined ? it : String(it);
|
|
2276
|
+
};
|
|
2277
|
+
|
|
2278
|
+
// @@replace logic
|
|
2279
|
+
fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
|
2280
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
|
2281
|
+
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
|
2282
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
2283
|
+
|
|
2284
|
+
return [
|
|
2285
|
+
// `String.prototype.replace` method
|
|
2286
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
2287
|
+
function replace(searchValue, replaceValue) {
|
|
2288
|
+
var O = requireObjectCoercible(this);
|
|
2289
|
+
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
|
2290
|
+
return replacer !== undefined
|
|
2291
|
+
? replacer.call(searchValue, O, replaceValue)
|
|
2292
|
+
: nativeReplace.call(String(O), searchValue, replaceValue);
|
|
2293
|
+
},
|
|
2294
|
+
// `RegExp.prototype[@@replace]` method
|
|
2295
|
+
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
2296
|
+
function (regexp, replaceValue) {
|
|
2297
|
+
if (
|
|
2298
|
+
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
|
2299
|
+
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
|
2300
|
+
) {
|
|
2301
|
+
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
|
2302
|
+
if (res.done) return res.value;
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
var rx = anObject(regexp);
|
|
2306
|
+
var S = String(this);
|
|
2307
|
+
|
|
2308
|
+
var functionalReplace = typeof replaceValue === 'function';
|
|
2309
|
+
if (!functionalReplace) replaceValue = String(replaceValue);
|
|
2310
|
+
|
|
2311
|
+
var global = rx.global;
|
|
2312
|
+
if (global) {
|
|
2313
|
+
var fullUnicode = rx.unicode;
|
|
2314
|
+
rx.lastIndex = 0;
|
|
2315
|
+
}
|
|
2316
|
+
var results = [];
|
|
2317
|
+
while (true) {
|
|
2318
|
+
var result = regExpExec(rx, S);
|
|
2319
|
+
if (result === null) break;
|
|
2320
|
+
|
|
2321
|
+
results.push(result);
|
|
2322
|
+
if (!global) break;
|
|
2323
|
+
|
|
2324
|
+
var matchStr = String(result[0]);
|
|
2325
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
var accumulatedResult = '';
|
|
2329
|
+
var nextSourcePosition = 0;
|
|
2330
|
+
for (var i = 0; i < results.length; i++) {
|
|
2331
|
+
result = results[i];
|
|
2332
|
+
|
|
2333
|
+
var matched = String(result[0]);
|
|
2334
|
+
var position = max(min(toInteger(result.index), S.length), 0);
|
|
2335
|
+
var captures = [];
|
|
2336
|
+
// NOTE: This is equivalent to
|
|
2337
|
+
// captures = result.slice(1).map(maybeToString)
|
|
2338
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2339
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2340
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2341
|
+
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
|
2342
|
+
var namedCaptures = result.groups;
|
|
2343
|
+
if (functionalReplace) {
|
|
2344
|
+
var replacerArgs = [matched].concat(captures, position, S);
|
|
2345
|
+
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
2346
|
+
var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
|
2347
|
+
} else {
|
|
2348
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2349
|
+
}
|
|
2350
|
+
if (position >= nextSourcePosition) {
|
|
2351
|
+
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
|
2352
|
+
nextSourcePosition = position + matched.length;
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
return accumulatedResult + S.slice(nextSourcePosition);
|
|
2356
|
+
}
|
|
2357
|
+
];
|
|
2358
|
+
|
|
2359
|
+
// https://tc39.github.io/ecma262/#sec-getsubstitution
|
|
2360
|
+
function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
|
|
2361
|
+
var tailPos = position + matched.length;
|
|
2362
|
+
var m = captures.length;
|
|
2363
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2364
|
+
if (namedCaptures !== undefined) {
|
|
2365
|
+
namedCaptures = toObject(namedCaptures);
|
|
2366
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
2367
|
+
}
|
|
2368
|
+
return nativeReplace.call(replacement, symbols, function (match, ch) {
|
|
2369
|
+
var capture;
|
|
2370
|
+
switch (ch.charAt(0)) {
|
|
2371
|
+
case '$': return '$';
|
|
2372
|
+
case '&': return matched;
|
|
2373
|
+
case '`': return str.slice(0, position);
|
|
2374
|
+
case "'": return str.slice(tailPos);
|
|
2375
|
+
case '<':
|
|
2376
|
+
capture = namedCaptures[ch.slice(1, -1)];
|
|
2377
|
+
break;
|
|
2378
|
+
default: // \d\d?
|
|
2379
|
+
var n = +ch;
|
|
2380
|
+
if (n === 0) return match;
|
|
2381
|
+
if (n > m) {
|
|
2382
|
+
var f = floor(n / 10);
|
|
2383
|
+
if (f === 0) return match;
|
|
2384
|
+
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
|
2385
|
+
return match;
|
|
2386
|
+
}
|
|
2387
|
+
capture = captures[n - 1];
|
|
2388
|
+
}
|
|
2389
|
+
return capture === undefined ? '' : capture;
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
});
|
|
2393
|
+
|
|
2394
|
+
|
|
2110
2395
|
/***/ }),
|
|
2111
2396
|
|
|
2112
2397
|
/***/ "5692":
|
|
@@ -8899,12 +9184,12 @@ SelectTable.install = function (Vue) {
|
|
|
8899
9184
|
};
|
|
8900
9185
|
|
|
8901
9186
|
/* harmony default export */ var packages_SelectTable = (SelectTable);
|
|
8902
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/PageInfo/index.vue?vue&type=template&id=
|
|
8903
|
-
var
|
|
8904
|
-
var
|
|
9187
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/PageInfo/index.vue?vue&type=template&id=abb473c6&
|
|
9188
|
+
var PageInfovue_type_template_id_abb473c6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-pagination',{attrs:{"background":_vm.background,"hide-on-single-page":_vm.hideOnSinglePage,"disabled":!!_vm.disabled,"small":!!_vm.small,"current-page":_vm.state.pageInfo.currentPage,"page-size":_vm.state.pageInfo.maxResultCount,"page-sizes":_vm.pageSizes||[10, 20, 30, 40, 50, 100],"layout":_vm.layout||'total, sizes, prev, pager, next, jumper',"total":_vm.state.pageInfo.totalCount},on:{"current-change":_vm.handleCurrentChange,"size-change":_vm.handelSizeChange}})}
|
|
9189
|
+
var PageInfovue_type_template_id_abb473c6_staticRenderFns = []
|
|
8905
9190
|
|
|
8906
9191
|
|
|
8907
|
-
// CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=
|
|
9192
|
+
// CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=abb473c6&
|
|
8908
9193
|
|
|
8909
9194
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
8910
9195
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
@@ -9018,7 +9303,9 @@ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "la
|
|
|
9018
9303
|
|
|
9019
9304
|
__decorate([Watch("pageInfo")], PageInfovue_type_script_lang_ts_HtPagination.prototype, "setpageInfo", null);
|
|
9020
9305
|
|
|
9021
|
-
PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm
|
|
9306
|
+
PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm({
|
|
9307
|
+
name: "HtPagination"
|
|
9308
|
+
})], PageInfovue_type_script_lang_ts_HtPagination);
|
|
9022
9309
|
/* harmony default export */ var PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_HtPagination);
|
|
9023
9310
|
// CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=script&lang=ts&
|
|
9024
9311
|
/* harmony default export */ var packages_PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_);
|
|
@@ -9032,8 +9319,8 @@ PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_e
|
|
|
9032
9319
|
|
|
9033
9320
|
var PageInfo_component = normalizeComponent(
|
|
9034
9321
|
packages_PageInfovue_type_script_lang_ts_,
|
|
9035
|
-
|
|
9036
|
-
|
|
9322
|
+
PageInfovue_type_template_id_abb473c6_render,
|
|
9323
|
+
PageInfovue_type_template_id_abb473c6_staticRenderFns,
|
|
9037
9324
|
false,
|
|
9038
9325
|
null,
|
|
9039
9326
|
null,
|
|
@@ -9058,25 +9345,31 @@ PageInfo.install = function (Vue) {
|
|
|
9058
9345
|
};
|
|
9059
9346
|
|
|
9060
9347
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
9061
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=template&id=
|
|
9062
|
-
var
|
|
9348
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"46e974bd-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=template&id=cca4e680&scoped=true&
|
|
9349
|
+
var HtTablevue_type_template_id_cca4e680_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.state.loading),expression:"state.loading"}]},[_c('article',[_c('el-table',{ref:"comTable",attrs:{"height":_vm.height,"max-height":_vm.maxHeight,"border":_vm.border,"stripe":_vm.stripe,"size":_vm.size,"fit":_vm.fit,"show-header":_vm.showHeader,"empty-text":_vm.emptyText||'暂无数据',"row-style":_vm.rowStyle,"row-class-name":_vm.rowClassName,"current-row-key":_vm.currentRowKey,"highlight-current-row":_vm.highlightCurrentRow,"row-key":_vm.rowKey||'id',"data":_vm.data,"tooltip-effect":"dark"},on:{"row-click":function (row, column, event){ return _vm.$emit('row-click',row, column, event); },"row-contextmenu":function (row, column, event){ return _vm.$emit('row-contextmenu',row, column, event); },"row-dblclick":function (row, column, event){ return _vm.$emit('row-dblclick',row, column, event); },"header-click":function ( column, event){ return _vm.$emit('header-click', column, event); },"header-contextmenu":function ( column, event){ return _vm.$emit('header-contextmenu', column, event); },"sort-change":function (ref){
|
|
9063
9350
|
var column = ref.column;
|
|
9064
9351
|
var prop = ref.prop;
|
|
9065
9352
|
var order = ref.order;
|
|
9066
9353
|
|
|
9067
9354
|
return _vm.$emit('sort-change', { column: column, prop: prop, order: order});
|
|
9068
|
-
},"filter-change":function (filter){ return _vm.$emit('filter-change', filter); },"current-change":function (currentRow, oldCurrentRow){ return _vm.$emit('current-change', currentRow, oldCurrentRow); },"select":function (selection, row){ return _vm.$emit('select',selection, row); },"select-all":function (selection){ return _vm.$emit('select-all',selection); },"selection-change":function (selection){ return _vm.$emit('selection-change',selection); },"cell-mouse-enter":function (row, column, cell, event){ return _vm.$emit('cell-mouse-enter',row, column, cell, event); },"cell-mouse-leave":function (row, column, cell, event){ return _vm.$emit('cell-mouse-leave',row, column, cell, event); },"cell-click":function (row, column, cell, event){ return _vm.$emit('cell-click',row, column, cell, event); },"cell-dblclick":function (row, column, cell, event){ return _vm.$emit('cell-dblclick',row, column, cell, event); }}},[_c('el-table-column',{attrs:{"width":"55","type":"selection"}}),(!_vm.hideOrder)?_c('el-table-column',{attrs:{"label":"序号","width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(" "+_vm._s((_vm.state.pageInfo.currentPage-1)*_vm.state.pageInfo.pageSize+(scope.$index+1))+" ")]}}],null,false,2272936552)},[_c('template',{slot:"header"},[_vm._t('header_order')],2)],2):_vm._e(),_vm._l((_vm.columns),function(item){return _c('el-table-column',{key:item.key,attrs:{"label":item.title,"show-overflow-tooltip":true,"prop":item.key,"width":item.width
|
|
9355
|
+
},"filter-change":function (filter){ return _vm.$emit('filter-change', filter); },"current-change":function (currentRow, oldCurrentRow){ return _vm.$emit('current-change', currentRow, oldCurrentRow); },"select":function (selection, row){ return _vm.$emit('select',selection, row); },"select-all":function (selection){ return _vm.$emit('select-all',selection); },"selection-change":function (selection){ return _vm.$emit('selection-change',selection); },"cell-mouse-enter":function (row, column, cell, event){ return _vm.$emit('cell-mouse-enter',row, column, cell, event); },"cell-mouse-leave":function (row, column, cell, event){ return _vm.$emit('cell-mouse-leave',row, column, cell, event); },"cell-click":function (row, column, cell, event){ return _vm.$emit('cell-click',row, column, cell, event); },"cell-dblclick":function (row, column, cell, event){ return _vm.$emit('cell-dblclick',row, column, cell, event); }}},[_c('el-table-column',{attrs:{"width":"55","type":"selection"}}),(!_vm.hideOrder)?_c('el-table-column',{attrs:{"label":"序号","width":"55"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_vm._v(" "+_vm._s((_vm.state.pageInfo.currentPage-1)*_vm.state.pageInfo.pageSize+(scope.$index+1))+" ")]}}],null,false,2272936552)},[_c('template',{slot:"header"},[_vm._t('header_order')],2)],2):_vm._e(),_vm._l((_vm.columns),function(item){return _c('el-table-column',{key:item.key,attrs:{"label":item.title,"fixed":item.fixed,"align":item.align,"header-align":item.headerAlign,"column-key":item.columnKey,"class-name":item.className,"show-overflow-tooltip":true,"prop":item.key,"sortable":item.sortable,"sort-method":item.sortMethod,"sort-orders":item.sortOrders,"formatter":item.formatter,"sort-by":item.sortBy,"min-width":item.minWidth,"width":item.width},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
9069
9356
|
var row = ref.row;
|
|
9070
9357
|
var column = ref.column;
|
|
9071
9358
|
var rowIndex = ref.rowIndex;
|
|
9072
|
-
return [_vm._t(item.key,[_vm._v(_vm._s(row
|
|
9359
|
+
return [_vm._t(item.key,[_vm._v(_vm._s(_vm.getPropByPath(row,item.key)))],{"row":row,"column":column,"rowIndex":rowIndex})]}},{key:"header",fn:function(ref){
|
|
9073
9360
|
var column = ref.column;
|
|
9074
9361
|
var $index = ref.$index;
|
|
9075
9362
|
return [_vm._t('header_'+item.key,[_vm._v(_vm._s(item.title))],{"column":column,"$index":$index})]}}],null,true)})})],2)],1),(!_vm.hidePage)?_c('footer',[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('PageInfo',{attrs:{"hide-on-single-page":_vm.pagination&&_vm.pagination.hideOnSinglePage,"small":_vm.pagination&&_vm.pagination.small,"page-sizes":_vm.pagination&&_vm.pagination.pageSizes,"page-info":_vm.state.pageInfo},on:{"onchange":function (e){ return _vm.$emit('onchange',e); }}})],1)],1)],1):_vm._e()])}
|
|
9076
|
-
var
|
|
9363
|
+
var HtTablevue_type_template_id_cca4e680_scoped_true_staticRenderFns = []
|
|
9364
|
+
|
|
9077
9365
|
|
|
9366
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=cca4e680&scoped=true&
|
|
9078
9367
|
|
|
9079
|
-
//
|
|
9368
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9369
|
+
var es_string_replace = __webpack_require__("5319");
|
|
9370
|
+
|
|
9371
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
9372
|
+
var es_string_split = __webpack_require__("1276");
|
|
9080
9373
|
|
|
9081
9374
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--14-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
|
|
9082
9375
|
|
|
@@ -9088,15 +9381,20 @@ var HtTablevue_type_template_id_75844174_scoped_true_staticRenderFns = []
|
|
|
9088
9381
|
|
|
9089
9382
|
|
|
9090
9383
|
|
|
9091
|
-
var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
9092
|
-
_inherits(Index, _Vue);
|
|
9093
9384
|
|
|
9094
|
-
var _super = _createSuper(Index);
|
|
9095
9385
|
|
|
9096
|
-
|
|
9386
|
+
|
|
9387
|
+
|
|
9388
|
+
|
|
9389
|
+
var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
9390
|
+
_inherits(HtTable, _Vue);
|
|
9391
|
+
|
|
9392
|
+
var _super = _createSuper(HtTable);
|
|
9393
|
+
|
|
9394
|
+
function HtTable() {
|
|
9097
9395
|
var _this;
|
|
9098
9396
|
|
|
9099
|
-
_classCallCheck(this,
|
|
9397
|
+
_classCallCheck(this, HtTable);
|
|
9100
9398
|
|
|
9101
9399
|
_this = _super.apply(this, arguments);
|
|
9102
9400
|
_this.state = {
|
|
@@ -9111,12 +9409,70 @@ var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
9111
9409
|
return _this;
|
|
9112
9410
|
}
|
|
9113
9411
|
|
|
9114
|
-
_createClass(
|
|
9412
|
+
_createClass(HtTable, [{
|
|
9115
9413
|
key: "created",
|
|
9116
9414
|
value: function created() {
|
|
9117
9415
|
// console.log("this", this.$props);
|
|
9118
9416
|
this.setPageInfo(this.pageInfo);
|
|
9119
9417
|
}
|
|
9418
|
+
}, {
|
|
9419
|
+
key: "getPropByPath",
|
|
9420
|
+
value: function getPropByPath(obj, path, strict) {
|
|
9421
|
+
var tempObj = obj;
|
|
9422
|
+
path = path.replace(/\[(\w+)\]/g, ".$1");
|
|
9423
|
+
path = path.replace(/^\./, "");
|
|
9424
|
+
var keyArr = path.split(".");
|
|
9425
|
+
var i = 0;
|
|
9426
|
+
|
|
9427
|
+
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
9428
|
+
if (!tempObj && !strict) break;
|
|
9429
|
+
var key = keyArr[i];
|
|
9430
|
+
|
|
9431
|
+
if (key in tempObj) {
|
|
9432
|
+
tempObj = tempObj[key];
|
|
9433
|
+
} else {
|
|
9434
|
+
if (strict) {
|
|
9435
|
+
throw new Error("please transfer a valid prop path to form item!");
|
|
9436
|
+
}
|
|
9437
|
+
|
|
9438
|
+
break;
|
|
9439
|
+
}
|
|
9440
|
+
} // return {
|
|
9441
|
+
// o: tempObj,
|
|
9442
|
+
// k: keyArr[i],
|
|
9443
|
+
// v: tempObj ? tempObj[keyArr[i]] : null,
|
|
9444
|
+
// };
|
|
9445
|
+
|
|
9446
|
+
|
|
9447
|
+
return tempObj ? tempObj[keyArr[i]] : null;
|
|
9448
|
+
}
|
|
9449
|
+
/** 遍历循环展示row数据 */
|
|
9450
|
+
|
|
9451
|
+
}, {
|
|
9452
|
+
key: "showValue",
|
|
9453
|
+
value: function showValue(row, key) {
|
|
9454
|
+
if (key) {
|
|
9455
|
+
if (key.includes(".")) {
|
|
9456
|
+
//存在多级的情况
|
|
9457
|
+
//console.log("eval", key, eval(row[key]));
|
|
9458
|
+
// const arrKey = key.split(".");
|
|
9459
|
+
// let data = row;
|
|
9460
|
+
// arrKey.forEach((item) => {
|
|
9461
|
+
// if (data[item]) {
|
|
9462
|
+
// data = data[item];
|
|
9463
|
+
// } else {
|
|
9464
|
+
// data = "";
|
|
9465
|
+
// }
|
|
9466
|
+
// });
|
|
9467
|
+
return "";
|
|
9468
|
+
} else {
|
|
9469
|
+
//如果不存在多级数据
|
|
9470
|
+
return row[key];
|
|
9471
|
+
}
|
|
9472
|
+
} else {
|
|
9473
|
+
return "";
|
|
9474
|
+
}
|
|
9475
|
+
}
|
|
9120
9476
|
/** 监听 */
|
|
9121
9477
|
|
|
9122
9478
|
}, {
|
|
@@ -9134,55 +9490,56 @@ var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
9134
9490
|
}
|
|
9135
9491
|
}]);
|
|
9136
9492
|
|
|
9137
|
-
return
|
|
9493
|
+
return HtTable;
|
|
9138
9494
|
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
9139
9495
|
|
|
9140
|
-
__decorate([Prop()],
|
|
9496
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "columns", void 0);
|
|
9141
9497
|
|
|
9142
|
-
__decorate([Prop()],
|
|
9498
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
|
|
9143
9499
|
|
|
9144
|
-
__decorate([Prop()],
|
|
9500
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
|
|
9145
9501
|
|
|
9146
|
-
__decorate([Prop()],
|
|
9502
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
|
|
9147
9503
|
|
|
9148
|
-
__decorate([Prop()],
|
|
9504
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
|
|
9149
9505
|
|
|
9150
|
-
__decorate([Prop()],
|
|
9506
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowKey", void 0);
|
|
9151
9507
|
|
|
9152
|
-
__decorate([Prop()],
|
|
9508
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "stripe", void 0);
|
|
9153
9509
|
|
|
9154
|
-
__decorate([Prop()],
|
|
9510
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "border", void 0);
|
|
9155
9511
|
|
|
9156
|
-
__decorate([Prop()],
|
|
9512
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "size", void 0);
|
|
9157
9513
|
|
|
9158
|
-
__decorate([Prop()],
|
|
9514
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "fit", void 0);
|
|
9159
9515
|
|
|
9160
|
-
__decorate([Prop()],
|
|
9516
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHeader", void 0);
|
|
9161
9517
|
|
|
9162
|
-
__decorate([Prop()],
|
|
9518
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
|
|
9163
9519
|
|
|
9164
|
-
__decorate([Prop()],
|
|
9520
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
|
|
9165
9521
|
|
|
9166
|
-
__decorate([Prop()],
|
|
9522
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "highlightCurrentRow", void 0);
|
|
9167
9523
|
|
|
9168
|
-
__decorate([Prop()],
|
|
9524
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowStyle", void 0);
|
|
9169
9525
|
|
|
9170
|
-
__decorate([Prop()],
|
|
9526
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hideOrder", void 0);
|
|
9171
9527
|
|
|
9172
|
-
__decorate([Prop()],
|
|
9528
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pageInfo", void 0);
|
|
9173
9529
|
|
|
9174
|
-
__decorate([Prop()],
|
|
9530
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "emptyText", void 0);
|
|
9175
9531
|
|
|
9176
|
-
__decorate([Prop()],
|
|
9532
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pagination", void 0);
|
|
9177
9533
|
|
|
9178
|
-
__decorate([Watch("pageInfo")],
|
|
9534
|
+
__decorate([Watch("pageInfo")], HtTablevue_type_script_lang_ts_HtTable.prototype, "setPageInfo", null);
|
|
9179
9535
|
|
|
9180
|
-
|
|
9536
|
+
HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
9537
|
+
name: "HtTable",
|
|
9181
9538
|
components: {
|
|
9182
9539
|
PageInfo: PageInfo
|
|
9183
9540
|
}
|
|
9184
|
-
})],
|
|
9185
|
-
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (
|
|
9541
|
+
})], HtTablevue_type_script_lang_ts_HtTable);
|
|
9542
|
+
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_HtTable);
|
|
9186
9543
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
|
|
9187
9544
|
/* harmony default export */ var packages_HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_);
|
|
9188
9545
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue
|
|
@@ -9195,16 +9552,16 @@ HtTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm({
|
|
|
9195
9552
|
|
|
9196
9553
|
var HtTable_component = normalizeComponent(
|
|
9197
9554
|
packages_HtTablevue_type_script_lang_ts_,
|
|
9198
|
-
|
|
9199
|
-
|
|
9555
|
+
HtTablevue_type_template_id_cca4e680_scoped_true_render,
|
|
9556
|
+
HtTablevue_type_template_id_cca4e680_scoped_true_staticRenderFns,
|
|
9200
9557
|
false,
|
|
9201
9558
|
null,
|
|
9202
|
-
"
|
|
9559
|
+
"cca4e680",
|
|
9203
9560
|
null
|
|
9204
9561
|
|
|
9205
9562
|
)
|
|
9206
9563
|
|
|
9207
|
-
/* harmony default export */ var
|
|
9564
|
+
/* harmony default export */ var packages_HtTable = (HtTable_component.exports);
|
|
9208
9565
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.ts
|
|
9209
9566
|
/*
|
|
9210
9567
|
* @Descripttion:
|
|
@@ -9216,11 +9573,11 @@ var HtTable_component = normalizeComponent(
|
|
|
9216
9573
|
*/
|
|
9217
9574
|
|
|
9218
9575
|
|
|
9219
|
-
|
|
9220
|
-
Vue.component("HtTable",
|
|
9576
|
+
packages_HtTable.install = function (Vue) {
|
|
9577
|
+
Vue.component("HtTable", packages_HtTable);
|
|
9221
9578
|
};
|
|
9222
9579
|
|
|
9223
|
-
/* harmony default export */ var
|
|
9580
|
+
/* harmony default export */ var src_packages_HtTable = (packages_HtTable);
|
|
9224
9581
|
// CONCATENATED MODULE: ./src/packages/index.ts
|
|
9225
9582
|
|
|
9226
9583
|
|
|
@@ -9241,7 +9598,7 @@ HtTable.install = function (Vue) {
|
|
|
9241
9598
|
|
|
9242
9599
|
// 存储组件列表
|
|
9243
9600
|
|
|
9244
|
-
var components = [packages_SelectTable, packages_PageInfo,
|
|
9601
|
+
var components = [packages_SelectTable, packages_PageInfo, src_packages_HtTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
9245
9602
|
|
|
9246
9603
|
var install = function install(Vue) {
|
|
9247
9604
|
// 判断是否安装
|
|
@@ -9263,7 +9620,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
9263
9620
|
// 以下是具体的组件列表
|
|
9264
9621
|
HtSelectTable: packages_SelectTable,
|
|
9265
9622
|
HtPagination: packages_PageInfo,
|
|
9266
|
-
HtTable:
|
|
9623
|
+
HtTable: src_packages_HtTable
|
|
9267
9624
|
});
|
|
9268
9625
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
9269
9626
|
|
package/lib/htui.umd.js.gz
CHANGED
|
Binary file
|