htui-yllkbz 1.2.16 → 1.2.20

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 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-11-15 17:11:30
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
 
@@ -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":
@@ -6936,12 +7221,12 @@ var es_array_map = __webpack_require__("d81d");
6936
7221
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
6937
7222
  var es_function_name = __webpack_require__("b0c0");
6938
7223
 
6939
- // 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/SelectTable/index.vue?vue&type=template&id=525648ed&
7224
+ // 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/SelectTable/index.vue?vue&type=template&id=0af39fce&
6940
7225
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-popover',{ref:"elPopver",staticClass:"ht-popover",attrs:{"placement":"bottom","title":"","width":_vm.width||600,"trigger":"click"},on:{"show":_vm.show,"hide":_vm.hide}},[_c('div',{staticClass:"ht-contnet",style:(("width:" + _vm.inputWidth + "px")),attrs:{"slot":"reference"},on:{"click":function($event){!_vm.state.config.disabled?_vm.state.visible = true:_vm.state.visible=false}},slot:"reference"},[_c('el-input',{style:(("width:" + _vm.inputWidth + "px")),attrs:{"readonly":"","placeholder":_vm.placeholder,"disabled":_vm.state.config.disabled,"suffix-icon":_vm.state.icon},on:{"blur":_vm.blurInput,"focus":_vm.focusInput},model:{value:(_vm.state.name),callback:function ($$v) {_vm.$set(_vm.state, "name", $$v)},expression:"state.name"}}),(_vm.state.name&&_vm.state.config.clearable)?_c('el-button',{staticClass:"ht-close",attrs:{"type":"text"},nativeOn:{"click":function($event){$event.stopPropagation();return _vm.clear($event)}}},[_c('div',[_c('i',{staticClass:"el-icon-circle-close"})])]):_vm._e()],1),_c('CommonTable',{ref:_vm.state.config.key||'ht-table',attrs:{"searchPlaceholder":_vm.searchPlaceholder,"columns":_vm.state.columns,"visible":_vm.state.visible,"confige":_vm.state.config},on:{"callback":_vm.callback,"update:visible":function($event){return _vm.$set(_vm.state, "visible", $event)}}})],1)}
6941
7226
  var staticRenderFns = []
6942
7227
 
6943
7228
 
6944
- // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=525648ed&
7229
+ // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=0af39fce&
6945
7230
 
6946
7231
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
6947
7232
  function _classCallCheck(instance, Constructor) {
@@ -8812,7 +9097,6 @@ var SelectTablevue_type_script_lang_ts_HtSelectTable = /*#__PURE__*/function (_V
8812
9097
  //
8813
9098
  if (!this.state.config.disabled) {
8814
9099
  var ref = this.$refs[this.state.config.key || "ht-table"];
8815
- console.log("333");
8816
9100
  this.state.visible = false;
8817
9101
  ref.clearCheck();
8818
9102
  }
@@ -8890,12 +9174,12 @@ SelectTable.install = function (Vue) {
8890
9174
  };
8891
9175
 
8892
9176
  /* 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=08687955&
8894
- var PageInfovue_type_template_id_08687955_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}})}
8895
- var PageInfovue_type_template_id_08687955_staticRenderFns = []
9177
+ // 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&
9178
+ 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}})}
9179
+ var PageInfovue_type_template_id_abb473c6_staticRenderFns = []
8896
9180
 
8897
9181
 
8898
- // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=08687955&
9182
+ // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=abb473c6&
8899
9183
 
8900
9184
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
8901
9185
  var es_number_constructor = __webpack_require__("a9e3");
@@ -9009,7 +9293,9 @@ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "la
9009
9293
 
9010
9294
  __decorate([Watch("pageInfo")], PageInfovue_type_script_lang_ts_HtPagination.prototype, "setpageInfo", null);
9011
9295
 
9012
- PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm], PageInfovue_type_script_lang_ts_HtPagination);
9296
+ PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm({
9297
+ name: "HtPagination"
9298
+ })], PageInfovue_type_script_lang_ts_HtPagination);
9013
9299
  /* harmony default export */ var PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_HtPagination);
9014
9300
  // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=script&lang=ts&
9015
9301
  /* harmony default export */ var packages_PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_);
@@ -9023,8 +9309,8 @@ PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_e
9023
9309
 
9024
9310
  var PageInfo_component = normalizeComponent(
9025
9311
  packages_PageInfovue_type_script_lang_ts_,
9026
- PageInfovue_type_template_id_08687955_render,
9027
- PageInfovue_type_template_id_08687955_staticRenderFns,
9312
+ PageInfovue_type_template_id_abb473c6_render,
9313
+ PageInfovue_type_template_id_abb473c6_staticRenderFns,
9028
9314
  false,
9029
9315
  null,
9030
9316
  null,
@@ -9049,25 +9335,31 @@ PageInfo.install = function (Vue) {
9049
9335
  };
9050
9336
 
9051
9337
  /* 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=cf5f313e&scoped=true&
9053
- var HtTablevue_type_template_id_cf5f313e_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){
9338
+ // 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=c55d8356&scoped=true&
9339
+ var HtTablevue_type_template_id_c55d8356_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
9340
  var column = ref.column;
9055
9341
  var prop = ref.prop;
9056
9342
  var order = ref.order;
9057
9343
 
9058
9344
  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||120},scopedSlots:_vm._u([{key:"default",fn:function(ref){
9345
+ },"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); }}},[(_vm.checked)?_c('el-table-column',{attrs:{"width":"55","type":"selection"}}):_vm._e(),(!_vm.hideOrder)?_c('el-table-column',{attrs:{"label":"序号","align":'center',"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,"selectable":item.selectable,"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
9346
  var row = ref.row;
9061
9347
  var column = ref.column;
9062
9348
  var rowIndex = ref.rowIndex;
9063
- return [_vm._t(item.key,[_vm._v(_vm._s(row[item.key]))],{"row":row,"column":column,"rowIndex":rowIndex}),_vm._v(" "+_vm._s(item.headerSlot)+" ")]}},{key:"header",fn:function(ref){
9349
+ 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
9350
  var column = ref.column;
9065
9351
  var $index = ref.$index;
9066
9352
  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 HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns = []
9353
+ var HtTablevue_type_template_id_c55d8356_scoped_true_staticRenderFns = []
9354
+
9068
9355
 
9356
+ // CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=c55d8356&scoped=true&
9069
9357
 
9070
- // CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=cf5f313e&scoped=true&
9358
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
9359
+ var es_string_replace = __webpack_require__("5319");
9360
+
9361
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
9362
+ var es_string_split = __webpack_require__("1276");
9071
9363
 
9072
9364
  // 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
9365
 
@@ -9079,6 +9371,11 @@ var HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns = []
9079
9371
 
9080
9372
 
9081
9373
 
9374
+
9375
+
9376
+
9377
+
9378
+
9082
9379
  var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
9083
9380
  _inherits(HtTable, _Vue);
9084
9381
 
@@ -9108,6 +9405,64 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
9108
9405
  // console.log("this", this.$props);
9109
9406
  this.setPageInfo(this.pageInfo);
9110
9407
  }
9408
+ }, {
9409
+ key: "getPropByPath",
9410
+ value: function getPropByPath(obj, path, strict) {
9411
+ var tempObj = obj;
9412
+ path = path.replace(/\[(\w+)\]/g, ".$1");
9413
+ path = path.replace(/^\./, "");
9414
+ var keyArr = path.split(".");
9415
+ var i = 0;
9416
+
9417
+ for (var len = keyArr.length; i < len - 1; ++i) {
9418
+ if (!tempObj && !strict) break;
9419
+ var key = keyArr[i];
9420
+
9421
+ if (key in tempObj) {
9422
+ tempObj = tempObj[key];
9423
+ } else {
9424
+ if (strict) {
9425
+ throw new Error("please transfer a valid prop path to form item!");
9426
+ }
9427
+
9428
+ break;
9429
+ }
9430
+ } // return {
9431
+ // o: tempObj,
9432
+ // k: keyArr[i],
9433
+ // v: tempObj ? tempObj[keyArr[i]] : null,
9434
+ // };
9435
+
9436
+
9437
+ return tempObj ? tempObj[keyArr[i]] : null;
9438
+ }
9439
+ /** 遍历循环展示row数据 */
9440
+
9441
+ }, {
9442
+ key: "showValue",
9443
+ value: function showValue(row, key) {
9444
+ if (key) {
9445
+ if (key.includes(".")) {
9446
+ //存在多级的情况
9447
+ //console.log("eval", key, eval(row[key]));
9448
+ // const arrKey = key.split(".");
9449
+ // let data = row;
9450
+ // arrKey.forEach((item) => {
9451
+ // if (data[item]) {
9452
+ // data = data[item];
9453
+ // } else {
9454
+ // data = "";
9455
+ // }
9456
+ // });
9457
+ return "";
9458
+ } else {
9459
+ //如果不存在多级数据
9460
+ return row[key];
9461
+ }
9462
+ } else {
9463
+ return "";
9464
+ }
9465
+ }
9111
9466
  /** 监听 */
9112
9467
 
9113
9468
  }, {
@@ -9134,6 +9489,8 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", v
9134
9489
 
9135
9490
  __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
9136
9491
 
9492
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "checked", void 0);
9493
+
9137
9494
  __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
9138
9495
 
9139
9496
  __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
@@ -9169,6 +9526,7 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "paginati
9169
9526
  __decorate([Watch("pageInfo")], HtTablevue_type_script_lang_ts_HtTable.prototype, "setPageInfo", null);
9170
9527
 
9171
9528
  HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
9529
+ name: "HtTable",
9172
9530
  components: {
9173
9531
  PageInfo: PageInfo
9174
9532
  }
@@ -9186,11 +9544,11 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
9186
9544
 
9187
9545
  var HtTable_component = normalizeComponent(
9188
9546
  packages_HtTablevue_type_script_lang_ts_,
9189
- HtTablevue_type_template_id_cf5f313e_scoped_true_render,
9190
- HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns,
9547
+ HtTablevue_type_template_id_c55d8356_scoped_true_render,
9548
+ HtTablevue_type_template_id_c55d8356_scoped_true_staticRenderFns,
9191
9549
  false,
9192
9550
  null,
9193
- "cf5f313e",
9551
+ "c55d8356",
9194
9552
  null
9195
9553
 
9196
9554
  )
Binary file