@weitutech/by-components 1.1.155 → 1.1.156
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/by-components.common.js +164 -88
- package/lib/by-components.umd.js +81 -5
- package/lib/by-components.umd.min.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
|
@@ -557,24 +557,6 @@ var isInContainer = exports.isInContainer = function isInContainer(el, container
|
|
|
557
557
|
return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
|
|
558
558
|
};
|
|
559
559
|
|
|
560
|
-
/***/ }),
|
|
561
|
-
|
|
562
|
-
/***/ 175:
|
|
563
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
564
|
-
|
|
565
|
-
var store = __webpack_require__(7421)('wks');
|
|
566
|
-
var uid = __webpack_require__(3108);
|
|
567
|
-
var Symbol = (__webpack_require__(6903).Symbol);
|
|
568
|
-
var USE_SYMBOL = typeof Symbol == 'function';
|
|
569
|
-
|
|
570
|
-
var $exports = module.exports = function (name) {
|
|
571
|
-
return store[name] || (store[name] =
|
|
572
|
-
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
|
573
|
-
};
|
|
574
|
-
|
|
575
|
-
$exports.store = store;
|
|
576
|
-
|
|
577
|
-
|
|
578
560
|
/***/ }),
|
|
579
561
|
|
|
580
562
|
/***/ 261:
|
|
@@ -2724,7 +2706,7 @@ module.exports = function (it) {
|
|
|
2724
2706
|
|
|
2725
2707
|
var def = (__webpack_require__(1672).f);
|
|
2726
2708
|
var has = __webpack_require__(3066);
|
|
2727
|
-
var TAG = __webpack_require__(
|
|
2709
|
+
var TAG = __webpack_require__(5413)('toStringTag');
|
|
2728
2710
|
|
|
2729
2711
|
module.exports = function (it, tag, stat) {
|
|
2730
2712
|
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
|
|
@@ -15559,7 +15541,7 @@ var setToStringTag = __webpack_require__(1123);
|
|
|
15559
15541
|
var IteratorPrototype = {};
|
|
15560
15542
|
|
|
15561
15543
|
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
|
15562
|
-
__webpack_require__(4632)(IteratorPrototype, __webpack_require__(
|
|
15544
|
+
__webpack_require__(4632)(IteratorPrototype, __webpack_require__(5413)('iterator'), function () { return this; });
|
|
15563
15545
|
|
|
15564
15546
|
module.exports = function (Constructor, NAME, next) {
|
|
15565
15547
|
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
|
|
@@ -15646,7 +15628,7 @@ module.exports = function (Constructor, NAME, next) {
|
|
|
15646
15628
|
/***/ 1275:
|
|
15647
15629
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
15648
15630
|
|
|
15649
|
-
exports.f = __webpack_require__(
|
|
15631
|
+
exports.f = __webpack_require__(5413);
|
|
15650
15632
|
|
|
15651
15633
|
|
|
15652
15634
|
/***/ }),
|
|
@@ -23945,7 +23927,7 @@ var Iterators = __webpack_require__(2833);
|
|
|
23945
23927
|
var $iterCreate = __webpack_require__(1199);
|
|
23946
23928
|
var setToStringTag = __webpack_require__(1123);
|
|
23947
23929
|
var getPrototypeOf = __webpack_require__(6870);
|
|
23948
|
-
var ITERATOR = __webpack_require__(
|
|
23930
|
+
var ITERATOR = __webpack_require__(5413)('iterator');
|
|
23949
23931
|
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
|
|
23950
23932
|
var FF_ITERATOR = '@@iterator';
|
|
23951
23933
|
var KEYS = 'keys';
|
|
@@ -39764,8 +39746,8 @@ var map = {
|
|
|
39764
39746
|
"./en-gb.js": 1106,
|
|
39765
39747
|
"./en-ie": 7625,
|
|
39766
39748
|
"./en-ie.js": 7625,
|
|
39767
|
-
"./en-il":
|
|
39768
|
-
"./en-il.js":
|
|
39749
|
+
"./en-il": 7794,
|
|
39750
|
+
"./en-il.js": 7794,
|
|
39769
39751
|
"./en-in": 5176,
|
|
39770
39752
|
"./en-in.js": 5176,
|
|
39771
39753
|
"./en-nz": 2379,
|
|
@@ -40015,66 +39997,20 @@ module.exports = function (it) {
|
|
|
40015
39997
|
/***/ }),
|
|
40016
39998
|
|
|
40017
39999
|
/***/ 5413:
|
|
40018
|
-
/***/ (function(
|
|
40000
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
40019
40001
|
|
|
40020
|
-
|
|
40021
|
-
|
|
40022
|
-
|
|
40002
|
+
var store = __webpack_require__(7421)('wks');
|
|
40003
|
+
var uid = __webpack_require__(3108);
|
|
40004
|
+
var Symbol = (__webpack_require__(6903).Symbol);
|
|
40005
|
+
var USE_SYMBOL = typeof Symbol == 'function';
|
|
40023
40006
|
|
|
40024
|
-
|
|
40025
|
-
|
|
40026
|
-
|
|
40027
|
-
}
|
|
40028
|
-
|
|
40007
|
+
var $exports = module.exports = function (name) {
|
|
40008
|
+
return store[name] || (store[name] =
|
|
40009
|
+
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
|
40010
|
+
};
|
|
40011
|
+
|
|
40012
|
+
$exports.store = store;
|
|
40029
40013
|
|
|
40030
|
-
//! moment.js locale configuration
|
|
40031
|
-
var enIl = moment.defineLocale('en-il', {
|
|
40032
|
-
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
|
40033
|
-
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
|
40034
|
-
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
|
40035
|
-
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
|
40036
|
-
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
|
40037
|
-
longDateFormat: {
|
|
40038
|
-
LT: 'HH:mm',
|
|
40039
|
-
LTS: 'HH:mm:ss',
|
|
40040
|
-
L: 'DD/MM/YYYY',
|
|
40041
|
-
LL: 'D MMMM YYYY',
|
|
40042
|
-
LLL: 'D MMMM YYYY HH:mm',
|
|
40043
|
-
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
|
40044
|
-
},
|
|
40045
|
-
calendar: {
|
|
40046
|
-
sameDay: '[Today at] LT',
|
|
40047
|
-
nextDay: '[Tomorrow at] LT',
|
|
40048
|
-
nextWeek: 'dddd [at] LT',
|
|
40049
|
-
lastDay: '[Yesterday at] LT',
|
|
40050
|
-
lastWeek: '[Last] dddd [at] LT',
|
|
40051
|
-
sameElse: 'L'
|
|
40052
|
-
},
|
|
40053
|
-
relativeTime: {
|
|
40054
|
-
future: 'in %s',
|
|
40055
|
-
past: '%s ago',
|
|
40056
|
-
s: 'a few seconds',
|
|
40057
|
-
ss: '%d seconds',
|
|
40058
|
-
m: 'a minute',
|
|
40059
|
-
mm: '%d minutes',
|
|
40060
|
-
h: 'an hour',
|
|
40061
|
-
hh: '%d hours',
|
|
40062
|
-
d: 'a day',
|
|
40063
|
-
dd: '%d days',
|
|
40064
|
-
M: 'a month',
|
|
40065
|
-
MM: '%d months',
|
|
40066
|
-
y: 'a year',
|
|
40067
|
-
yy: '%d years'
|
|
40068
|
-
},
|
|
40069
|
-
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
|
|
40070
|
-
ordinal: function (number) {
|
|
40071
|
-
var b = number % 10,
|
|
40072
|
-
output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
|
|
40073
|
-
return number + output;
|
|
40074
|
-
}
|
|
40075
|
-
});
|
|
40076
|
-
return enIl;
|
|
40077
|
-
});
|
|
40078
40014
|
|
|
40079
40015
|
/***/ }),
|
|
40080
40016
|
|
|
@@ -43164,7 +43100,7 @@ __webpack_require__(5270);
|
|
|
43164
43100
|
var global = __webpack_require__(6903);
|
|
43165
43101
|
var hide = __webpack_require__(4632);
|
|
43166
43102
|
var Iterators = __webpack_require__(2833);
|
|
43167
|
-
var TO_STRING_TAG = __webpack_require__(
|
|
43103
|
+
var TO_STRING_TAG = __webpack_require__(5413)('toStringTag');
|
|
43168
43104
|
|
|
43169
43105
|
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
|
|
43170
43106
|
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
|
|
@@ -45569,6 +45505,70 @@ module.exports = Object.create || function create(O, Properties) {
|
|
|
45569
45505
|
};
|
|
45570
45506
|
|
|
45571
45507
|
|
|
45508
|
+
/***/ }),
|
|
45509
|
+
|
|
45510
|
+
/***/ 7794:
|
|
45511
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
45512
|
+
|
|
45513
|
+
//! moment.js locale configuration
|
|
45514
|
+
//! locale : English (Israel) [en-il]
|
|
45515
|
+
//! author : Chris Gedrim : https://github.com/chrisgedrim
|
|
45516
|
+
|
|
45517
|
+
;
|
|
45518
|
+
(function (global, factory) {
|
|
45519
|
+
true ? factory(__webpack_require__(9412)) : 0;
|
|
45520
|
+
})(this, function (moment) {
|
|
45521
|
+
'use strict';
|
|
45522
|
+
|
|
45523
|
+
//! moment.js locale configuration
|
|
45524
|
+
var enIl = moment.defineLocale('en-il', {
|
|
45525
|
+
months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
|
|
45526
|
+
monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
|
45527
|
+
weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
|
45528
|
+
weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
|
45529
|
+
weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
|
45530
|
+
longDateFormat: {
|
|
45531
|
+
LT: 'HH:mm',
|
|
45532
|
+
LTS: 'HH:mm:ss',
|
|
45533
|
+
L: 'DD/MM/YYYY',
|
|
45534
|
+
LL: 'D MMMM YYYY',
|
|
45535
|
+
LLL: 'D MMMM YYYY HH:mm',
|
|
45536
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm'
|
|
45537
|
+
},
|
|
45538
|
+
calendar: {
|
|
45539
|
+
sameDay: '[Today at] LT',
|
|
45540
|
+
nextDay: '[Tomorrow at] LT',
|
|
45541
|
+
nextWeek: 'dddd [at] LT',
|
|
45542
|
+
lastDay: '[Yesterday at] LT',
|
|
45543
|
+
lastWeek: '[Last] dddd [at] LT',
|
|
45544
|
+
sameElse: 'L'
|
|
45545
|
+
},
|
|
45546
|
+
relativeTime: {
|
|
45547
|
+
future: 'in %s',
|
|
45548
|
+
past: '%s ago',
|
|
45549
|
+
s: 'a few seconds',
|
|
45550
|
+
ss: '%d seconds',
|
|
45551
|
+
m: 'a minute',
|
|
45552
|
+
mm: '%d minutes',
|
|
45553
|
+
h: 'an hour',
|
|
45554
|
+
hh: '%d hours',
|
|
45555
|
+
d: 'a day',
|
|
45556
|
+
dd: '%d days',
|
|
45557
|
+
M: 'a month',
|
|
45558
|
+
MM: '%d months',
|
|
45559
|
+
y: 'a year',
|
|
45560
|
+
yy: '%d years'
|
|
45561
|
+
},
|
|
45562
|
+
dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
|
|
45563
|
+
ordinal: function (number) {
|
|
45564
|
+
var b = number % 10,
|
|
45565
|
+
output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
|
|
45566
|
+
return number + output;
|
|
45567
|
+
}
|
|
45568
|
+
});
|
|
45569
|
+
return enIl;
|
|
45570
|
+
});
|
|
45571
|
+
|
|
45572
45572
|
/***/ }),
|
|
45573
45573
|
|
|
45574
45574
|
/***/ 7811:
|
|
@@ -60533,7 +60533,7 @@ var $fails = __webpack_require__(2451);
|
|
|
60533
60533
|
var shared = __webpack_require__(7421);
|
|
60534
60534
|
var setToStringTag = __webpack_require__(1123);
|
|
60535
60535
|
var uid = __webpack_require__(3108);
|
|
60536
|
-
var wks = __webpack_require__(
|
|
60536
|
+
var wks = __webpack_require__(5413);
|
|
60537
60537
|
var wksExt = __webpack_require__(1275);
|
|
60538
60538
|
var wksDefine = __webpack_require__(2613);
|
|
60539
60539
|
var enumKeys = __webpack_require__(6358);
|
|
@@ -74524,8 +74524,8 @@ var component = normalizeComponent(
|
|
|
74524
74524
|
)
|
|
74525
74525
|
|
|
74526
74526
|
/* harmony default export */ var pager = (component.exports);
|
|
74527
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=
|
|
74528
|
-
var
|
|
74527
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=7d8ad903
|
|
74528
|
+
var tablevue_type_template_id_7d8ad903_render = function render() {
|
|
74529
74529
|
var _vm = this,
|
|
74530
74530
|
_c = _vm._self._c;
|
|
74531
74531
|
return _c('div', [_c('vxe-grid', _vm._g(_vm._b({
|
|
@@ -74603,7 +74603,7 @@ var tablevue_type_template_id_1531768e_render = function render() {
|
|
|
74603
74603
|
}
|
|
74604
74604
|
}) : _vm._e()], 1);
|
|
74605
74605
|
};
|
|
74606
|
-
var
|
|
74606
|
+
var tablevue_type_template_id_7d8ad903_staticRenderFns = [];
|
|
74607
74607
|
|
|
74608
74608
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
74609
74609
|
var es_array_push = __webpack_require__(4114);
|
|
@@ -76764,6 +76764,9 @@ var custom_column_component = normalizeComponent(
|
|
|
76764
76764
|
newColumns = this.removeFixedColumns(newColumns);
|
|
76765
76765
|
}
|
|
76766
76766
|
|
|
76767
|
+
// 为表头补充tooltips展示能力
|
|
76768
|
+
newColumns = this.applyColumnTooltips(newColumns);
|
|
76769
|
+
|
|
76767
76770
|
// 处理前端分页和虚拟滚动
|
|
76768
76771
|
let data = others.data || [];
|
|
76769
76772
|
if ((_others$pagerConfig = others.pagerConfig) !== null && _others$pagerConfig !== void 0 && _others$pagerConfig.frontendPagination || (_others$sortConfig = others.sortConfig) !== null && _others$sortConfig !== void 0 && _others$sortConfig.frontendSort) {
|
|
@@ -76937,6 +76940,79 @@ var custom_column_component = normalizeComponent(
|
|
|
76937
76940
|
setHasCache() {
|
|
76938
76941
|
this.hasCache = isCachedTableColumns(this.name);
|
|
76939
76942
|
},
|
|
76943
|
+
/**
|
|
76944
|
+
* 根据工具提示配置增强表头
|
|
76945
|
+
* @param {Array} columns
|
|
76946
|
+
*/
|
|
76947
|
+
applyColumnTooltips(columns) {
|
|
76948
|
+
if (!Array.isArray(columns)) return columns;
|
|
76949
|
+
return columns.map(column => {
|
|
76950
|
+
const newColumn = {
|
|
76951
|
+
...column
|
|
76952
|
+
};
|
|
76953
|
+
if (Array.isArray(newColumn.children) && newColumn.children.length) {
|
|
76954
|
+
newColumn.children = this.applyColumnTooltips(newColumn.children);
|
|
76955
|
+
}
|
|
76956
|
+
const tooltipConfig = this.normalizeTooltipConfig(newColumn.tooltips);
|
|
76957
|
+
if (tooltipConfig) {
|
|
76958
|
+
newColumn.titleSuffix = this.createTitleSuffixConfig(newColumn.titleSuffix, tooltipConfig);
|
|
76959
|
+
}
|
|
76960
|
+
return newColumn;
|
|
76961
|
+
});
|
|
76962
|
+
},
|
|
76963
|
+
/**
|
|
76964
|
+
* 规范化列配置上的tooltips字段
|
|
76965
|
+
* @param {string|Object} tooltips
|
|
76966
|
+
*/
|
|
76967
|
+
normalizeTooltipConfig(tooltips) {
|
|
76968
|
+
if (!tooltips) return null;
|
|
76969
|
+
if (typeof tooltips === 'string') {
|
|
76970
|
+
return {
|
|
76971
|
+
content: tooltips,
|
|
76972
|
+
placement: 'top',
|
|
76973
|
+
effect: 'dark'
|
|
76974
|
+
};
|
|
76975
|
+
}
|
|
76976
|
+
if (typeof tooltips === 'object') {
|
|
76977
|
+
const {
|
|
76978
|
+
content,
|
|
76979
|
+
placement,
|
|
76980
|
+
effect,
|
|
76981
|
+
popperClass,
|
|
76982
|
+
iconClass
|
|
76983
|
+
} = tooltips;
|
|
76984
|
+
if (!content) {
|
|
76985
|
+
return null;
|
|
76986
|
+
}
|
|
76987
|
+
return {
|
|
76988
|
+
content,
|
|
76989
|
+
placement: placement || 'top',
|
|
76990
|
+
effect: effect || 'dark',
|
|
76991
|
+
popperClass,
|
|
76992
|
+
iconClass
|
|
76993
|
+
};
|
|
76994
|
+
}
|
|
76995
|
+
return null;
|
|
76996
|
+
},
|
|
76997
|
+
/**
|
|
76998
|
+
* 生成 VXE 表格 titleSuffix 配置
|
|
76999
|
+
*/
|
|
77000
|
+
createTitleSuffixConfig(existingSuffix, tooltipConfig) {
|
|
77001
|
+
const suffix = typeof existingSuffix === 'object' && existingSuffix !== null ? {
|
|
77002
|
+
...existingSuffix
|
|
77003
|
+
} : {};
|
|
77004
|
+
const iconClass = tooltipConfig.iconClass || suffix.icon || 'el-icon-question';
|
|
77005
|
+
return {
|
|
77006
|
+
...suffix,
|
|
77007
|
+
icon: iconClass,
|
|
77008
|
+
content: tooltipConfig.content,
|
|
77009
|
+
message: tooltipConfig.content,
|
|
77010
|
+
theme: suffix.theme || tooltipConfig.effect || 'dark',
|
|
77011
|
+
enterable: typeof suffix.enterable === 'boolean' ? suffix.enterable : true,
|
|
77012
|
+
placement: suffix.placement || tooltipConfig.placement || 'top',
|
|
77013
|
+
popperClass: suffix.popperClass || tooltipConfig.popperClass
|
|
77014
|
+
};
|
|
77015
|
+
},
|
|
76940
77016
|
//重置列宽缓存
|
|
76941
77017
|
resetCachedTableColumns() {
|
|
76942
77018
|
removeCachedTableColumns(this.name);
|
|
@@ -77390,8 +77466,8 @@ var custom_column_component = normalizeComponent(
|
|
|
77390
77466
|
;
|
|
77391
77467
|
var table_component = normalizeComponent(
|
|
77392
77468
|
components_tablevue_type_script_lang_js,
|
|
77393
|
-
|
|
77394
|
-
|
|
77469
|
+
tablevue_type_template_id_7d8ad903_render,
|
|
77470
|
+
tablevue_type_template_id_7d8ad903_staticRenderFns,
|
|
77395
77471
|
false,
|
|
77396
77472
|
null,
|
|
77397
77473
|
null,
|
package/lib/by-components.umd.js
CHANGED
|
@@ -74534,8 +74534,8 @@ var component = normalizeComponent(
|
|
|
74534
74534
|
)
|
|
74535
74535
|
|
|
74536
74536
|
/* harmony default export */ var pager = (component.exports);
|
|
74537
|
-
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=
|
|
74538
|
-
var
|
|
74537
|
+
;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"444f6cde-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/table/index.vue?vue&type=template&id=7d8ad903
|
|
74538
|
+
var tablevue_type_template_id_7d8ad903_render = function render() {
|
|
74539
74539
|
var _vm = this,
|
|
74540
74540
|
_c = _vm._self._c;
|
|
74541
74541
|
return _c('div', [_c('vxe-grid', _vm._g(_vm._b({
|
|
@@ -74613,7 +74613,7 @@ var tablevue_type_template_id_1531768e_render = function render() {
|
|
|
74613
74613
|
}
|
|
74614
74614
|
}) : _vm._e()], 1);
|
|
74615
74615
|
};
|
|
74616
|
-
var
|
|
74616
|
+
var tablevue_type_template_id_7d8ad903_staticRenderFns = [];
|
|
74617
74617
|
|
|
74618
74618
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
74619
74619
|
var es_array_push = __webpack_require__(4114);
|
|
@@ -76774,6 +76774,9 @@ var custom_column_component = normalizeComponent(
|
|
|
76774
76774
|
newColumns = this.removeFixedColumns(newColumns);
|
|
76775
76775
|
}
|
|
76776
76776
|
|
|
76777
|
+
// 为表头补充tooltips展示能力
|
|
76778
|
+
newColumns = this.applyColumnTooltips(newColumns);
|
|
76779
|
+
|
|
76777
76780
|
// 处理前端分页和虚拟滚动
|
|
76778
76781
|
let data = others.data || [];
|
|
76779
76782
|
if ((_others$pagerConfig = others.pagerConfig) !== null && _others$pagerConfig !== void 0 && _others$pagerConfig.frontendPagination || (_others$sortConfig = others.sortConfig) !== null && _others$sortConfig !== void 0 && _others$sortConfig.frontendSort) {
|
|
@@ -76947,6 +76950,79 @@ var custom_column_component = normalizeComponent(
|
|
|
76947
76950
|
setHasCache() {
|
|
76948
76951
|
this.hasCache = isCachedTableColumns(this.name);
|
|
76949
76952
|
},
|
|
76953
|
+
/**
|
|
76954
|
+
* 根据工具提示配置增强表头
|
|
76955
|
+
* @param {Array} columns
|
|
76956
|
+
*/
|
|
76957
|
+
applyColumnTooltips(columns) {
|
|
76958
|
+
if (!Array.isArray(columns)) return columns;
|
|
76959
|
+
return columns.map(column => {
|
|
76960
|
+
const newColumn = {
|
|
76961
|
+
...column
|
|
76962
|
+
};
|
|
76963
|
+
if (Array.isArray(newColumn.children) && newColumn.children.length) {
|
|
76964
|
+
newColumn.children = this.applyColumnTooltips(newColumn.children);
|
|
76965
|
+
}
|
|
76966
|
+
const tooltipConfig = this.normalizeTooltipConfig(newColumn.tooltips);
|
|
76967
|
+
if (tooltipConfig) {
|
|
76968
|
+
newColumn.titleSuffix = this.createTitleSuffixConfig(newColumn.titleSuffix, tooltipConfig);
|
|
76969
|
+
}
|
|
76970
|
+
return newColumn;
|
|
76971
|
+
});
|
|
76972
|
+
},
|
|
76973
|
+
/**
|
|
76974
|
+
* 规范化列配置上的tooltips字段
|
|
76975
|
+
* @param {string|Object} tooltips
|
|
76976
|
+
*/
|
|
76977
|
+
normalizeTooltipConfig(tooltips) {
|
|
76978
|
+
if (!tooltips) return null;
|
|
76979
|
+
if (typeof tooltips === 'string') {
|
|
76980
|
+
return {
|
|
76981
|
+
content: tooltips,
|
|
76982
|
+
placement: 'top',
|
|
76983
|
+
effect: 'dark'
|
|
76984
|
+
};
|
|
76985
|
+
}
|
|
76986
|
+
if (typeof tooltips === 'object') {
|
|
76987
|
+
const {
|
|
76988
|
+
content,
|
|
76989
|
+
placement,
|
|
76990
|
+
effect,
|
|
76991
|
+
popperClass,
|
|
76992
|
+
iconClass
|
|
76993
|
+
} = tooltips;
|
|
76994
|
+
if (!content) {
|
|
76995
|
+
return null;
|
|
76996
|
+
}
|
|
76997
|
+
return {
|
|
76998
|
+
content,
|
|
76999
|
+
placement: placement || 'top',
|
|
77000
|
+
effect: effect || 'dark',
|
|
77001
|
+
popperClass,
|
|
77002
|
+
iconClass
|
|
77003
|
+
};
|
|
77004
|
+
}
|
|
77005
|
+
return null;
|
|
77006
|
+
},
|
|
77007
|
+
/**
|
|
77008
|
+
* 生成 VXE 表格 titleSuffix 配置
|
|
77009
|
+
*/
|
|
77010
|
+
createTitleSuffixConfig(existingSuffix, tooltipConfig) {
|
|
77011
|
+
const suffix = typeof existingSuffix === 'object' && existingSuffix !== null ? {
|
|
77012
|
+
...existingSuffix
|
|
77013
|
+
} : {};
|
|
77014
|
+
const iconClass = tooltipConfig.iconClass || suffix.icon || 'el-icon-question';
|
|
77015
|
+
return {
|
|
77016
|
+
...suffix,
|
|
77017
|
+
icon: iconClass,
|
|
77018
|
+
content: tooltipConfig.content,
|
|
77019
|
+
message: tooltipConfig.content,
|
|
77020
|
+
theme: suffix.theme || tooltipConfig.effect || 'dark',
|
|
77021
|
+
enterable: typeof suffix.enterable === 'boolean' ? suffix.enterable : true,
|
|
77022
|
+
placement: suffix.placement || tooltipConfig.placement || 'top',
|
|
77023
|
+
popperClass: suffix.popperClass || tooltipConfig.popperClass
|
|
77024
|
+
};
|
|
77025
|
+
},
|
|
76950
77026
|
//重置列宽缓存
|
|
76951
77027
|
resetCachedTableColumns() {
|
|
76952
77028
|
removeCachedTableColumns(this.name);
|
|
@@ -77400,8 +77476,8 @@ var custom_column_component = normalizeComponent(
|
|
|
77400
77476
|
;
|
|
77401
77477
|
var table_component = normalizeComponent(
|
|
77402
77478
|
components_tablevue_type_script_lang_js,
|
|
77403
|
-
|
|
77404
|
-
|
|
77479
|
+
tablevue_type_template_id_7d8ad903_render,
|
|
77480
|
+
tablevue_type_template_id_7d8ad903_staticRenderFns,
|
|
77405
77481
|
false,
|
|
77406
77482
|
null,
|
|
77407
77483
|
null,
|