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/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-11-15 14:41:40
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2021-
|
|
7
|
+
* @LastEditTime: 2021-12-09 17:47:51
|
|
8
8
|
-->
|
|
9
9
|
|
|
10
10
|
# 基础组件整理
|
|
@@ -38,6 +38,27 @@ Vue.use(HtUI)
|
|
|
38
38
|
},
|
|
39
39
|
text:'name',
|
|
40
40
|
})"></selectTable>
|
|
41
|
+
//table选择
|
|
42
|
+
<ht-table
|
|
43
|
+
:data="state.tableData"
|
|
44
|
+
@onchange='changePage'
|
|
45
|
+
style="width: 100%"
|
|
46
|
+
border
|
|
47
|
+
@sort-change="sortChange"
|
|
48
|
+
height="calc(100vh - 240px)"
|
|
49
|
+
highlight-current-row
|
|
50
|
+
:page-info="{
|
|
51
|
+
currentPage:state.filterData.currentPage,
|
|
52
|
+
pageSize:state.filterData.maxResultCount,
|
|
53
|
+
skipCount:state.filterData.skipCount,
|
|
54
|
+
totalCount:state.filterData.totalCount,
|
|
55
|
+
}"
|
|
56
|
+
:columns="state.columns">
|
|
57
|
+
<template slot-scope="{row}"
|
|
58
|
+
slot="executor">
|
|
59
|
+
这里显示人员
|
|
60
|
+
</template>
|
|
61
|
+
</ht-table>
|
|
41
62
|
|
|
42
63
|
```
|
|
43
64
|
|
package/lib/htui.common.js
CHANGED
|
@@ -388,6 +388,148 @@ module.exports = function spread(callback) {
|
|
|
388
388
|
};
|
|
389
389
|
|
|
390
390
|
|
|
391
|
+
/***/ }),
|
|
392
|
+
|
|
393
|
+
/***/ "1276":
|
|
394
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
395
|
+
|
|
396
|
+
"use strict";
|
|
397
|
+
|
|
398
|
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
|
399
|
+
var isRegExp = __webpack_require__("44e7");
|
|
400
|
+
var anObject = __webpack_require__("825a");
|
|
401
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
402
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
403
|
+
var advanceStringIndex = __webpack_require__("8aa5");
|
|
404
|
+
var toLength = __webpack_require__("50c4");
|
|
405
|
+
var callRegExpExec = __webpack_require__("14c3");
|
|
406
|
+
var regexpExec = __webpack_require__("9263");
|
|
407
|
+
var fails = __webpack_require__("d039");
|
|
408
|
+
|
|
409
|
+
var arrayPush = [].push;
|
|
410
|
+
var min = Math.min;
|
|
411
|
+
var MAX_UINT32 = 0xFFFFFFFF;
|
|
412
|
+
|
|
413
|
+
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
414
|
+
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
|
|
415
|
+
|
|
416
|
+
// @@split logic
|
|
417
|
+
fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
|
418
|
+
var internalSplit;
|
|
419
|
+
if (
|
|
420
|
+
'abbc'.split(/(b)*/)[1] == 'c' ||
|
|
421
|
+
'test'.split(/(?:)/, -1).length != 4 ||
|
|
422
|
+
'ab'.split(/(?:ab)*/).length != 2 ||
|
|
423
|
+
'.'.split(/(.?)(.?)/).length != 4 ||
|
|
424
|
+
'.'.split(/()()/).length > 1 ||
|
|
425
|
+
''.split(/.?/).length
|
|
426
|
+
) {
|
|
427
|
+
// based on es5-shim implementation, need to rework it
|
|
428
|
+
internalSplit = function (separator, limit) {
|
|
429
|
+
var string = String(requireObjectCoercible(this));
|
|
430
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
431
|
+
if (lim === 0) return [];
|
|
432
|
+
if (separator === undefined) return [string];
|
|
433
|
+
// If `separator` is not a regex, use native split
|
|
434
|
+
if (!isRegExp(separator)) {
|
|
435
|
+
return nativeSplit.call(string, separator, lim);
|
|
436
|
+
}
|
|
437
|
+
var output = [];
|
|
438
|
+
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
439
|
+
(separator.multiline ? 'm' : '') +
|
|
440
|
+
(separator.unicode ? 'u' : '') +
|
|
441
|
+
(separator.sticky ? 'y' : '');
|
|
442
|
+
var lastLastIndex = 0;
|
|
443
|
+
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
444
|
+
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
445
|
+
var match, lastIndex, lastLength;
|
|
446
|
+
while (match = regexpExec.call(separatorCopy, string)) {
|
|
447
|
+
lastIndex = separatorCopy.lastIndex;
|
|
448
|
+
if (lastIndex > lastLastIndex) {
|
|
449
|
+
output.push(string.slice(lastLastIndex, match.index));
|
|
450
|
+
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
|
451
|
+
lastLength = match[0].length;
|
|
452
|
+
lastLastIndex = lastIndex;
|
|
453
|
+
if (output.length >= lim) break;
|
|
454
|
+
}
|
|
455
|
+
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
456
|
+
}
|
|
457
|
+
if (lastLastIndex === string.length) {
|
|
458
|
+
if (lastLength || !separatorCopy.test('')) output.push('');
|
|
459
|
+
} else output.push(string.slice(lastLastIndex));
|
|
460
|
+
return output.length > lim ? output.slice(0, lim) : output;
|
|
461
|
+
};
|
|
462
|
+
// Chakra, V8
|
|
463
|
+
} else if ('0'.split(undefined, 0).length) {
|
|
464
|
+
internalSplit = function (separator, limit) {
|
|
465
|
+
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
|
466
|
+
};
|
|
467
|
+
} else internalSplit = nativeSplit;
|
|
468
|
+
|
|
469
|
+
return [
|
|
470
|
+
// `String.prototype.split` method
|
|
471
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.split
|
|
472
|
+
function split(separator, limit) {
|
|
473
|
+
var O = requireObjectCoercible(this);
|
|
474
|
+
var splitter = separator == undefined ? undefined : separator[SPLIT];
|
|
475
|
+
return splitter !== undefined
|
|
476
|
+
? splitter.call(separator, O, limit)
|
|
477
|
+
: internalSplit.call(String(O), separator, limit);
|
|
478
|
+
},
|
|
479
|
+
// `RegExp.prototype[@@split]` method
|
|
480
|
+
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
|
|
481
|
+
//
|
|
482
|
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
483
|
+
// the 'y' flag.
|
|
484
|
+
function (regexp, limit) {
|
|
485
|
+
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
|
|
486
|
+
if (res.done) return res.value;
|
|
487
|
+
|
|
488
|
+
var rx = anObject(regexp);
|
|
489
|
+
var S = String(this);
|
|
490
|
+
var C = speciesConstructor(rx, RegExp);
|
|
491
|
+
|
|
492
|
+
var unicodeMatching = rx.unicode;
|
|
493
|
+
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
494
|
+
(rx.multiline ? 'm' : '') +
|
|
495
|
+
(rx.unicode ? 'u' : '') +
|
|
496
|
+
(SUPPORTS_Y ? 'y' : 'g');
|
|
497
|
+
|
|
498
|
+
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
499
|
+
// simulate the 'y' flag.
|
|
500
|
+
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
|
|
501
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
502
|
+
if (lim === 0) return [];
|
|
503
|
+
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
|
504
|
+
var p = 0;
|
|
505
|
+
var q = 0;
|
|
506
|
+
var A = [];
|
|
507
|
+
while (q < S.length) {
|
|
508
|
+
splitter.lastIndex = SUPPORTS_Y ? q : 0;
|
|
509
|
+
var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
|
|
510
|
+
var e;
|
|
511
|
+
if (
|
|
512
|
+
z === null ||
|
|
513
|
+
(e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
|
|
514
|
+
) {
|
|
515
|
+
q = advanceStringIndex(S, q, unicodeMatching);
|
|
516
|
+
} else {
|
|
517
|
+
A.push(S.slice(p, q));
|
|
518
|
+
if (A.length === lim) return A;
|
|
519
|
+
for (var i = 1; i <= z.length - 1; i++) {
|
|
520
|
+
A.push(z[i]);
|
|
521
|
+
if (A.length === lim) return A;
|
|
522
|
+
}
|
|
523
|
+
q = p = e;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
A.push(S.slice(p));
|
|
527
|
+
return A;
|
|
528
|
+
}
|
|
529
|
+
];
|
|
530
|
+
}, !SUPPORTS_Y);
|
|
531
|
+
|
|
532
|
+
|
|
391
533
|
/***/ }),
|
|
392
534
|
|
|
393
535
|
/***/ "14c3":
|
|
@@ -2098,6 +2240,149 @@ module.exports = function dispatchRequest(config) {
|
|
|
2098
2240
|
};
|
|
2099
2241
|
|
|
2100
2242
|
|
|
2243
|
+
/***/ }),
|
|
2244
|
+
|
|
2245
|
+
/***/ "5319":
|
|
2246
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2247
|
+
|
|
2248
|
+
"use strict";
|
|
2249
|
+
|
|
2250
|
+
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
|
2251
|
+
var anObject = __webpack_require__("825a");
|
|
2252
|
+
var toObject = __webpack_require__("7b0b");
|
|
2253
|
+
var toLength = __webpack_require__("50c4");
|
|
2254
|
+
var toInteger = __webpack_require__("a691");
|
|
2255
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
2256
|
+
var advanceStringIndex = __webpack_require__("8aa5");
|
|
2257
|
+
var regExpExec = __webpack_require__("14c3");
|
|
2258
|
+
|
|
2259
|
+
var max = Math.max;
|
|
2260
|
+
var min = Math.min;
|
|
2261
|
+
var floor = Math.floor;
|
|
2262
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
|
|
2263
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
|
|
2264
|
+
|
|
2265
|
+
var maybeToString = function (it) {
|
|
2266
|
+
return it === undefined ? it : String(it);
|
|
2267
|
+
};
|
|
2268
|
+
|
|
2269
|
+
// @@replace logic
|
|
2270
|
+
fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
|
2271
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
|
2272
|
+
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
|
2273
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
2274
|
+
|
|
2275
|
+
return [
|
|
2276
|
+
// `String.prototype.replace` method
|
|
2277
|
+
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
2278
|
+
function replace(searchValue, replaceValue) {
|
|
2279
|
+
var O = requireObjectCoercible(this);
|
|
2280
|
+
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
|
2281
|
+
return replacer !== undefined
|
|
2282
|
+
? replacer.call(searchValue, O, replaceValue)
|
|
2283
|
+
: nativeReplace.call(String(O), searchValue, replaceValue);
|
|
2284
|
+
},
|
|
2285
|
+
// `RegExp.prototype[@@replace]` method
|
|
2286
|
+
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
2287
|
+
function (regexp, replaceValue) {
|
|
2288
|
+
if (
|
|
2289
|
+
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
|
2290
|
+
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
|
2291
|
+
) {
|
|
2292
|
+
var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
|
2293
|
+
if (res.done) return res.value;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
var rx = anObject(regexp);
|
|
2297
|
+
var S = String(this);
|
|
2298
|
+
|
|
2299
|
+
var functionalReplace = typeof replaceValue === 'function';
|
|
2300
|
+
if (!functionalReplace) replaceValue = String(replaceValue);
|
|
2301
|
+
|
|
2302
|
+
var global = rx.global;
|
|
2303
|
+
if (global) {
|
|
2304
|
+
var fullUnicode = rx.unicode;
|
|
2305
|
+
rx.lastIndex = 0;
|
|
2306
|
+
}
|
|
2307
|
+
var results = [];
|
|
2308
|
+
while (true) {
|
|
2309
|
+
var result = regExpExec(rx, S);
|
|
2310
|
+
if (result === null) break;
|
|
2311
|
+
|
|
2312
|
+
results.push(result);
|
|
2313
|
+
if (!global) break;
|
|
2314
|
+
|
|
2315
|
+
var matchStr = String(result[0]);
|
|
2316
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
var accumulatedResult = '';
|
|
2320
|
+
var nextSourcePosition = 0;
|
|
2321
|
+
for (var i = 0; i < results.length; i++) {
|
|
2322
|
+
result = results[i];
|
|
2323
|
+
|
|
2324
|
+
var matched = String(result[0]);
|
|
2325
|
+
var position = max(min(toInteger(result.index), S.length), 0);
|
|
2326
|
+
var captures = [];
|
|
2327
|
+
// NOTE: This is equivalent to
|
|
2328
|
+
// captures = result.slice(1).map(maybeToString)
|
|
2329
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
2330
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
2331
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
2332
|
+
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
|
2333
|
+
var namedCaptures = result.groups;
|
|
2334
|
+
if (functionalReplace) {
|
|
2335
|
+
var replacerArgs = [matched].concat(captures, position, S);
|
|
2336
|
+
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
2337
|
+
var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
|
2338
|
+
} else {
|
|
2339
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
2340
|
+
}
|
|
2341
|
+
if (position >= nextSourcePosition) {
|
|
2342
|
+
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
|
2343
|
+
nextSourcePosition = position + matched.length;
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
return accumulatedResult + S.slice(nextSourcePosition);
|
|
2347
|
+
}
|
|
2348
|
+
];
|
|
2349
|
+
|
|
2350
|
+
// https://tc39.github.io/ecma262/#sec-getsubstitution
|
|
2351
|
+
function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
|
|
2352
|
+
var tailPos = position + matched.length;
|
|
2353
|
+
var m = captures.length;
|
|
2354
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
2355
|
+
if (namedCaptures !== undefined) {
|
|
2356
|
+
namedCaptures = toObject(namedCaptures);
|
|
2357
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
2358
|
+
}
|
|
2359
|
+
return nativeReplace.call(replacement, symbols, function (match, ch) {
|
|
2360
|
+
var capture;
|
|
2361
|
+
switch (ch.charAt(0)) {
|
|
2362
|
+
case '$': return '$';
|
|
2363
|
+
case '&': return matched;
|
|
2364
|
+
case '`': return str.slice(0, position);
|
|
2365
|
+
case "'": return str.slice(tailPos);
|
|
2366
|
+
case '<':
|
|
2367
|
+
capture = namedCaptures[ch.slice(1, -1)];
|
|
2368
|
+
break;
|
|
2369
|
+
default: // \d\d?
|
|
2370
|
+
var n = +ch;
|
|
2371
|
+
if (n === 0) return match;
|
|
2372
|
+
if (n > m) {
|
|
2373
|
+
var f = floor(n / 10);
|
|
2374
|
+
if (f === 0) return match;
|
|
2375
|
+
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
|
2376
|
+
return match;
|
|
2377
|
+
}
|
|
2378
|
+
capture = captures[n - 1];
|
|
2379
|
+
}
|
|
2380
|
+
return capture === undefined ? '' : capture;
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
});
|
|
2384
|
+
|
|
2385
|
+
|
|
2101
2386
|
/***/ }),
|
|
2102
2387
|
|
|
2103
2388
|
/***/ "5692":
|
|
@@ -8890,12 +9175,12 @@ SelectTable.install = function (Vue) {
|
|
|
8890
9175
|
};
|
|
8891
9176
|
|
|
8892
9177
|
/* harmony default export */ var packages_SelectTable = (SelectTable);
|
|
8893
|
-
// 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=
|
|
8894
|
-
var
|
|
8895
|
-
var
|
|
9178
|
+
// 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&
|
|
9179
|
+
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}})}
|
|
9180
|
+
var PageInfovue_type_template_id_abb473c6_staticRenderFns = []
|
|
8896
9181
|
|
|
8897
9182
|
|
|
8898
|
-
// CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=
|
|
9183
|
+
// CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=abb473c6&
|
|
8899
9184
|
|
|
8900
9185
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
8901
9186
|
var es_number_constructor = __webpack_require__("a9e3");
|
|
@@ -9009,7 +9294,9 @@ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "la
|
|
|
9009
9294
|
|
|
9010
9295
|
__decorate([Watch("pageInfo")], PageInfovue_type_script_lang_ts_HtPagination.prototype, "setpageInfo", null);
|
|
9011
9296
|
|
|
9012
|
-
PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm
|
|
9297
|
+
PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm({
|
|
9298
|
+
name: "HtPagination"
|
|
9299
|
+
})], PageInfovue_type_script_lang_ts_HtPagination);
|
|
9013
9300
|
/* harmony default export */ var PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_HtPagination);
|
|
9014
9301
|
// CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=script&lang=ts&
|
|
9015
9302
|
/* harmony default export */ var packages_PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_);
|
|
@@ -9023,8 +9310,8 @@ PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_e
|
|
|
9023
9310
|
|
|
9024
9311
|
var PageInfo_component = normalizeComponent(
|
|
9025
9312
|
packages_PageInfovue_type_script_lang_ts_,
|
|
9026
|
-
|
|
9027
|
-
|
|
9313
|
+
PageInfovue_type_template_id_abb473c6_render,
|
|
9314
|
+
PageInfovue_type_template_id_abb473c6_staticRenderFns,
|
|
9028
9315
|
false,
|
|
9029
9316
|
null,
|
|
9030
9317
|
null,
|
|
@@ -9049,25 +9336,31 @@ PageInfo.install = function (Vue) {
|
|
|
9049
9336
|
};
|
|
9050
9337
|
|
|
9051
9338
|
/* harmony default export */ var packages_PageInfo = (PageInfo);
|
|
9052
|
-
// 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=
|
|
9053
|
-
var
|
|
9339
|
+
// 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&
|
|
9340
|
+
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){
|
|
9054
9341
|
var column = ref.column;
|
|
9055
9342
|
var prop = ref.prop;
|
|
9056
9343
|
var order = ref.order;
|
|
9057
9344
|
|
|
9058
9345
|
return _vm.$emit('sort-change', { column: column, prop: prop, order: order});
|
|
9059
|
-
},"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
|
|
9346
|
+
},"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){
|
|
9060
9347
|
var row = ref.row;
|
|
9061
9348
|
var column = ref.column;
|
|
9062
9349
|
var rowIndex = ref.rowIndex;
|
|
9063
|
-
return [_vm._t(item.key,[_vm._v(_vm._s(row
|
|
9350
|
+
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){
|
|
9064
9351
|
var column = ref.column;
|
|
9065
9352
|
var $index = ref.$index;
|
|
9066
9353
|
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()])}
|
|
9067
|
-
var
|
|
9354
|
+
var HtTablevue_type_template_id_cca4e680_scoped_true_staticRenderFns = []
|
|
9355
|
+
|
|
9068
9356
|
|
|
9357
|
+
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=cca4e680&scoped=true&
|
|
9069
9358
|
|
|
9070
|
-
//
|
|
9359
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9360
|
+
var es_string_replace = __webpack_require__("5319");
|
|
9361
|
+
|
|
9362
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
9363
|
+
var es_string_split = __webpack_require__("1276");
|
|
9071
9364
|
|
|
9072
9365
|
// 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&
|
|
9073
9366
|
|
|
@@ -9079,15 +9372,20 @@ var HtTablevue_type_template_id_75844174_scoped_true_staticRenderFns = []
|
|
|
9079
9372
|
|
|
9080
9373
|
|
|
9081
9374
|
|
|
9082
|
-
var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
9083
|
-
_inherits(Index, _Vue);
|
|
9084
9375
|
|
|
9085
|
-
var _super = _createSuper(Index);
|
|
9086
9376
|
|
|
9087
|
-
|
|
9377
|
+
|
|
9378
|
+
|
|
9379
|
+
|
|
9380
|
+
var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
|
|
9381
|
+
_inherits(HtTable, _Vue);
|
|
9382
|
+
|
|
9383
|
+
var _super = _createSuper(HtTable);
|
|
9384
|
+
|
|
9385
|
+
function HtTable() {
|
|
9088
9386
|
var _this;
|
|
9089
9387
|
|
|
9090
|
-
_classCallCheck(this,
|
|
9388
|
+
_classCallCheck(this, HtTable);
|
|
9091
9389
|
|
|
9092
9390
|
_this = _super.apply(this, arguments);
|
|
9093
9391
|
_this.state = {
|
|
@@ -9102,12 +9400,70 @@ var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
9102
9400
|
return _this;
|
|
9103
9401
|
}
|
|
9104
9402
|
|
|
9105
|
-
_createClass(
|
|
9403
|
+
_createClass(HtTable, [{
|
|
9106
9404
|
key: "created",
|
|
9107
9405
|
value: function created() {
|
|
9108
9406
|
// console.log("this", this.$props);
|
|
9109
9407
|
this.setPageInfo(this.pageInfo);
|
|
9110
9408
|
}
|
|
9409
|
+
}, {
|
|
9410
|
+
key: "getPropByPath",
|
|
9411
|
+
value: function getPropByPath(obj, path, strict) {
|
|
9412
|
+
var tempObj = obj;
|
|
9413
|
+
path = path.replace(/\[(\w+)\]/g, ".$1");
|
|
9414
|
+
path = path.replace(/^\./, "");
|
|
9415
|
+
var keyArr = path.split(".");
|
|
9416
|
+
var i = 0;
|
|
9417
|
+
|
|
9418
|
+
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
9419
|
+
if (!tempObj && !strict) break;
|
|
9420
|
+
var key = keyArr[i];
|
|
9421
|
+
|
|
9422
|
+
if (key in tempObj) {
|
|
9423
|
+
tempObj = tempObj[key];
|
|
9424
|
+
} else {
|
|
9425
|
+
if (strict) {
|
|
9426
|
+
throw new Error("please transfer a valid prop path to form item!");
|
|
9427
|
+
}
|
|
9428
|
+
|
|
9429
|
+
break;
|
|
9430
|
+
}
|
|
9431
|
+
} // return {
|
|
9432
|
+
// o: tempObj,
|
|
9433
|
+
// k: keyArr[i],
|
|
9434
|
+
// v: tempObj ? tempObj[keyArr[i]] : null,
|
|
9435
|
+
// };
|
|
9436
|
+
|
|
9437
|
+
|
|
9438
|
+
return tempObj ? tempObj[keyArr[i]] : null;
|
|
9439
|
+
}
|
|
9440
|
+
/** 遍历循环展示row数据 */
|
|
9441
|
+
|
|
9442
|
+
}, {
|
|
9443
|
+
key: "showValue",
|
|
9444
|
+
value: function showValue(row, key) {
|
|
9445
|
+
if (key) {
|
|
9446
|
+
if (key.includes(".")) {
|
|
9447
|
+
//存在多级的情况
|
|
9448
|
+
//console.log("eval", key, eval(row[key]));
|
|
9449
|
+
// const arrKey = key.split(".");
|
|
9450
|
+
// let data = row;
|
|
9451
|
+
// arrKey.forEach((item) => {
|
|
9452
|
+
// if (data[item]) {
|
|
9453
|
+
// data = data[item];
|
|
9454
|
+
// } else {
|
|
9455
|
+
// data = "";
|
|
9456
|
+
// }
|
|
9457
|
+
// });
|
|
9458
|
+
return "";
|
|
9459
|
+
} else {
|
|
9460
|
+
//如果不存在多级数据
|
|
9461
|
+
return row[key];
|
|
9462
|
+
}
|
|
9463
|
+
} else {
|
|
9464
|
+
return "";
|
|
9465
|
+
}
|
|
9466
|
+
}
|
|
9111
9467
|
/** 监听 */
|
|
9112
9468
|
|
|
9113
9469
|
}, {
|
|
@@ -9125,55 +9481,56 @@ var HtTablevue_type_script_lang_ts_Index = /*#__PURE__*/function (_Vue) {
|
|
|
9125
9481
|
}
|
|
9126
9482
|
}]);
|
|
9127
9483
|
|
|
9128
|
-
return
|
|
9484
|
+
return HtTable;
|
|
9129
9485
|
}(external_commonjs_vue_commonjs2_vue_root_Vue_default.a);
|
|
9130
9486
|
|
|
9131
|
-
__decorate([Prop()],
|
|
9487
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "columns", void 0);
|
|
9132
9488
|
|
|
9133
|
-
__decorate([Prop()],
|
|
9489
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", void 0);
|
|
9134
9490
|
|
|
9135
|
-
__decorate([Prop()],
|
|
9491
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
|
|
9136
9492
|
|
|
9137
|
-
__decorate([Prop()],
|
|
9493
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
|
|
9138
9494
|
|
|
9139
|
-
__decorate([Prop()],
|
|
9495
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
|
|
9140
9496
|
|
|
9141
|
-
__decorate([Prop()],
|
|
9497
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowKey", void 0);
|
|
9142
9498
|
|
|
9143
|
-
__decorate([Prop()],
|
|
9499
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "stripe", void 0);
|
|
9144
9500
|
|
|
9145
|
-
__decorate([Prop()],
|
|
9501
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "border", void 0);
|
|
9146
9502
|
|
|
9147
|
-
__decorate([Prop()],
|
|
9503
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "size", void 0);
|
|
9148
9504
|
|
|
9149
|
-
__decorate([Prop()],
|
|
9505
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "fit", void 0);
|
|
9150
9506
|
|
|
9151
|
-
__decorate([Prop()],
|
|
9507
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "showHeader", void 0);
|
|
9152
9508
|
|
|
9153
|
-
__decorate([Prop()],
|
|
9509
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowClassName", void 0);
|
|
9154
9510
|
|
|
9155
|
-
__decorate([Prop()],
|
|
9511
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "currentRowKey", void 0);
|
|
9156
9512
|
|
|
9157
|
-
__decorate([Prop()],
|
|
9513
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "highlightCurrentRow", void 0);
|
|
9158
9514
|
|
|
9159
|
-
__decorate([Prop()],
|
|
9515
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "rowStyle", void 0);
|
|
9160
9516
|
|
|
9161
|
-
__decorate([Prop()],
|
|
9517
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hideOrder", void 0);
|
|
9162
9518
|
|
|
9163
|
-
__decorate([Prop()],
|
|
9519
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pageInfo", void 0);
|
|
9164
9520
|
|
|
9165
|
-
__decorate([Prop()],
|
|
9521
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "emptyText", void 0);
|
|
9166
9522
|
|
|
9167
|
-
__decorate([Prop()],
|
|
9523
|
+
__decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "pagination", void 0);
|
|
9168
9524
|
|
|
9169
|
-
__decorate([Watch("pageInfo")],
|
|
9525
|
+
__decorate([Watch("pageInfo")], HtTablevue_type_script_lang_ts_HtTable.prototype, "setPageInfo", null);
|
|
9170
9526
|
|
|
9171
|
-
|
|
9527
|
+
HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
|
|
9528
|
+
name: "HtTable",
|
|
9172
9529
|
components: {
|
|
9173
9530
|
PageInfo: PageInfo
|
|
9174
9531
|
}
|
|
9175
|
-
})],
|
|
9176
|
-
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (
|
|
9532
|
+
})], HtTablevue_type_script_lang_ts_HtTable);
|
|
9533
|
+
/* harmony default export */ var HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_HtTable);
|
|
9177
9534
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=script&lang=ts&
|
|
9178
9535
|
/* harmony default export */ var packages_HtTablevue_type_script_lang_ts_ = (HtTablevue_type_script_lang_ts_);
|
|
9179
9536
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.vue
|
|
@@ -9186,16 +9543,16 @@ HtTablevue_type_script_lang_ts_Index = __decorate([vue_class_component_esm({
|
|
|
9186
9543
|
|
|
9187
9544
|
var HtTable_component = normalizeComponent(
|
|
9188
9545
|
packages_HtTablevue_type_script_lang_ts_,
|
|
9189
|
-
|
|
9190
|
-
|
|
9546
|
+
HtTablevue_type_template_id_cca4e680_scoped_true_render,
|
|
9547
|
+
HtTablevue_type_template_id_cca4e680_scoped_true_staticRenderFns,
|
|
9191
9548
|
false,
|
|
9192
9549
|
null,
|
|
9193
|
-
"
|
|
9550
|
+
"cca4e680",
|
|
9194
9551
|
null
|
|
9195
9552
|
|
|
9196
9553
|
)
|
|
9197
9554
|
|
|
9198
|
-
/* harmony default export */ var
|
|
9555
|
+
/* harmony default export */ var packages_HtTable = (HtTable_component.exports);
|
|
9199
9556
|
// CONCATENATED MODULE: ./src/packages/HtTable/index.ts
|
|
9200
9557
|
/*
|
|
9201
9558
|
* @Descripttion:
|
|
@@ -9207,11 +9564,11 @@ var HtTable_component = normalizeComponent(
|
|
|
9207
9564
|
*/
|
|
9208
9565
|
|
|
9209
9566
|
|
|
9210
|
-
|
|
9211
|
-
Vue.component("HtTable",
|
|
9567
|
+
packages_HtTable.install = function (Vue) {
|
|
9568
|
+
Vue.component("HtTable", packages_HtTable);
|
|
9212
9569
|
};
|
|
9213
9570
|
|
|
9214
|
-
/* harmony default export */ var
|
|
9571
|
+
/* harmony default export */ var src_packages_HtTable = (packages_HtTable);
|
|
9215
9572
|
// CONCATENATED MODULE: ./src/packages/index.ts
|
|
9216
9573
|
|
|
9217
9574
|
|
|
@@ -9232,7 +9589,7 @@ HtTable.install = function (Vue) {
|
|
|
9232
9589
|
|
|
9233
9590
|
// 存储组件列表
|
|
9234
9591
|
|
|
9235
|
-
var components = [packages_SelectTable, packages_PageInfo,
|
|
9592
|
+
var components = [packages_SelectTable, packages_PageInfo, src_packages_HtTable]; // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
9236
9593
|
|
|
9237
9594
|
var install = function install(Vue) {
|
|
9238
9595
|
// 判断是否安装
|
|
@@ -9254,7 +9611,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
9254
9611
|
// 以下是具体的组件列表
|
|
9255
9612
|
HtSelectTable: packages_SelectTable,
|
|
9256
9613
|
HtPagination: packages_PageInfo,
|
|
9257
|
-
HtTable:
|
|
9614
|
+
HtTable: src_packages_HtTable
|
|
9258
9615
|
});
|
|
9259
9616
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
9260
9617
|
|
package/lib/htui.common.js.gz
CHANGED
|
Binary file
|