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/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":
@@ -6945,12 +7230,12 @@ var es_array_map = __webpack_require__("d81d");
6945
7230
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
6946
7231
  var es_function_name = __webpack_require__("b0c0");
6947
7232
 
6948
- // 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&
7233
+ // 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&
6949
7234
  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)}
6950
7235
  var staticRenderFns = []
6951
7236
 
6952
7237
 
6953
- // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=525648ed&
7238
+ // CONCATENATED MODULE: ./src/packages/SelectTable/index.vue?vue&type=template&id=0af39fce&
6954
7239
 
6955
7240
  // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
6956
7241
  function _classCallCheck(instance, Constructor) {
@@ -8821,7 +9106,6 @@ var SelectTablevue_type_script_lang_ts_HtSelectTable = /*#__PURE__*/function (_V
8821
9106
  //
8822
9107
  if (!this.state.config.disabled) {
8823
9108
  var ref = this.$refs[this.state.config.key || "ht-table"];
8824
- console.log("333");
8825
9109
  this.state.visible = false;
8826
9110
  ref.clearCheck();
8827
9111
  }
@@ -8899,12 +9183,12 @@ SelectTable.install = function (Vue) {
8899
9183
  };
8900
9184
 
8901
9185
  /* 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=08687955&
8903
- 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}})}
8904
- var PageInfovue_type_template_id_08687955_staticRenderFns = []
9186
+ // 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&
9187
+ 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}})}
9188
+ var PageInfovue_type_template_id_abb473c6_staticRenderFns = []
8905
9189
 
8906
9190
 
8907
- // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=08687955&
9191
+ // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=template&id=abb473c6&
8908
9192
 
8909
9193
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
8910
9194
  var es_number_constructor = __webpack_require__("a9e3");
@@ -9018,7 +9302,9 @@ __decorate([Prop()], PageInfovue_type_script_lang_ts_HtPagination.prototype, "la
9018
9302
 
9019
9303
  __decorate([Watch("pageInfo")], PageInfovue_type_script_lang_ts_HtPagination.prototype, "setpageInfo", null);
9020
9304
 
9021
- PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm], PageInfovue_type_script_lang_ts_HtPagination);
9305
+ PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_esm({
9306
+ name: "HtPagination"
9307
+ })], PageInfovue_type_script_lang_ts_HtPagination);
9022
9308
  /* harmony default export */ var PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_HtPagination);
9023
9309
  // CONCATENATED MODULE: ./src/packages/PageInfo/index.vue?vue&type=script&lang=ts&
9024
9310
  /* harmony default export */ var packages_PageInfovue_type_script_lang_ts_ = (PageInfovue_type_script_lang_ts_);
@@ -9032,8 +9318,8 @@ PageInfovue_type_script_lang_ts_HtPagination = __decorate([vue_class_component_e
9032
9318
 
9033
9319
  var PageInfo_component = normalizeComponent(
9034
9320
  packages_PageInfovue_type_script_lang_ts_,
9035
- PageInfovue_type_template_id_08687955_render,
9036
- PageInfovue_type_template_id_08687955_staticRenderFns,
9321
+ PageInfovue_type_template_id_abb473c6_render,
9322
+ PageInfovue_type_template_id_abb473c6_staticRenderFns,
9037
9323
  false,
9038
9324
  null,
9039
9325
  null,
@@ -9058,25 +9344,31 @@ PageInfo.install = function (Vue) {
9058
9344
  };
9059
9345
 
9060
9346
  /* 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=cf5f313e&scoped=true&
9062
- 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){
9347
+ // 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&
9348
+ 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){
9063
9349
  var column = ref.column;
9064
9350
  var prop = ref.prop;
9065
9351
  var order = ref.order;
9066
9352
 
9067
9353
  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||120},scopedSlots:_vm._u([{key:"default",fn:function(ref){
9354
+ },"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){
9069
9355
  var row = ref.row;
9070
9356
  var column = ref.column;
9071
9357
  var rowIndex = ref.rowIndex;
9072
- 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){
9358
+ 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
9359
  var column = ref.column;
9074
9360
  var $index = ref.$index;
9075
9361
  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 HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns = []
9362
+ var HtTablevue_type_template_id_c55d8356_scoped_true_staticRenderFns = []
9363
+
9077
9364
 
9365
+ // CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=c55d8356&scoped=true&
9078
9366
 
9079
- // CONCATENATED MODULE: ./src/packages/HtTable/index.vue?vue&type=template&id=cf5f313e&scoped=true&
9367
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
9368
+ var es_string_replace = __webpack_require__("5319");
9369
+
9370
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
9371
+ var es_string_split = __webpack_require__("1276");
9080
9372
 
9081
9373
  // 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
9374
 
@@ -9088,6 +9380,11 @@ var HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns = []
9088
9380
 
9089
9381
 
9090
9382
 
9383
+
9384
+
9385
+
9386
+
9387
+
9091
9388
  var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
9092
9389
  _inherits(HtTable, _Vue);
9093
9390
 
@@ -9117,6 +9414,64 @@ var HtTablevue_type_script_lang_ts_HtTable = /*#__PURE__*/function (_Vue) {
9117
9414
  // console.log("this", this.$props);
9118
9415
  this.setPageInfo(this.pageInfo);
9119
9416
  }
9417
+ }, {
9418
+ key: "getPropByPath",
9419
+ value: function getPropByPath(obj, path, strict) {
9420
+ var tempObj = obj;
9421
+ path = path.replace(/\[(\w+)\]/g, ".$1");
9422
+ path = path.replace(/^\./, "");
9423
+ var keyArr = path.split(".");
9424
+ var i = 0;
9425
+
9426
+ for (var len = keyArr.length; i < len - 1; ++i) {
9427
+ if (!tempObj && !strict) break;
9428
+ var key = keyArr[i];
9429
+
9430
+ if (key in tempObj) {
9431
+ tempObj = tempObj[key];
9432
+ } else {
9433
+ if (strict) {
9434
+ throw new Error("please transfer a valid prop path to form item!");
9435
+ }
9436
+
9437
+ break;
9438
+ }
9439
+ } // return {
9440
+ // o: tempObj,
9441
+ // k: keyArr[i],
9442
+ // v: tempObj ? tempObj[keyArr[i]] : null,
9443
+ // };
9444
+
9445
+
9446
+ return tempObj ? tempObj[keyArr[i]] : null;
9447
+ }
9448
+ /** 遍历循环展示row数据 */
9449
+
9450
+ }, {
9451
+ key: "showValue",
9452
+ value: function showValue(row, key) {
9453
+ if (key) {
9454
+ if (key.includes(".")) {
9455
+ //存在多级的情况
9456
+ //console.log("eval", key, eval(row[key]));
9457
+ // const arrKey = key.split(".");
9458
+ // let data = row;
9459
+ // arrKey.forEach((item) => {
9460
+ // if (data[item]) {
9461
+ // data = data[item];
9462
+ // } else {
9463
+ // data = "";
9464
+ // }
9465
+ // });
9466
+ return "";
9467
+ } else {
9468
+ //如果不存在多级数据
9469
+ return row[key];
9470
+ }
9471
+ } else {
9472
+ return "";
9473
+ }
9474
+ }
9120
9475
  /** 监听 */
9121
9476
 
9122
9477
  }, {
@@ -9143,6 +9498,8 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "data", v
9143
9498
 
9144
9499
  __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "hidePage", void 0);
9145
9500
 
9501
+ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "checked", void 0);
9502
+
9146
9503
  __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "height", void 0);
9147
9504
 
9148
9505
  __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "maxHeight", void 0);
@@ -9178,6 +9535,7 @@ __decorate([Prop()], HtTablevue_type_script_lang_ts_HtTable.prototype, "paginati
9178
9535
  __decorate([Watch("pageInfo")], HtTablevue_type_script_lang_ts_HtTable.prototype, "setPageInfo", null);
9179
9536
 
9180
9537
  HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
9538
+ name: "HtTable",
9181
9539
  components: {
9182
9540
  PageInfo: PageInfo
9183
9541
  }
@@ -9195,11 +9553,11 @@ HtTablevue_type_script_lang_ts_HtTable = __decorate([vue_class_component_esm({
9195
9553
 
9196
9554
  var HtTable_component = normalizeComponent(
9197
9555
  packages_HtTablevue_type_script_lang_ts_,
9198
- HtTablevue_type_template_id_cf5f313e_scoped_true_render,
9199
- HtTablevue_type_template_id_cf5f313e_scoped_true_staticRenderFns,
9556
+ HtTablevue_type_template_id_c55d8356_scoped_true_render,
9557
+ HtTablevue_type_template_id_c55d8356_scoped_true_staticRenderFns,
9200
9558
  false,
9201
9559
  null,
9202
- "cf5f313e",
9560
+ "c55d8356",
9203
9561
  null
9204
9562
 
9205
9563
  )
Binary file