@weitutech/by-components 1.1.155 → 1.1.157
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 +167 -89
- package/lib/by-components.umd.js +84 -6
- 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=d3326672
|
|
74528
|
+
var tablevue_type_template_id_d3326672_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({
|
|
@@ -74546,6 +74546,8 @@ var tablevue_type_template_id_1531768e_render = function render() {
|
|
|
74546
74546
|
fn: function () {
|
|
74547
74547
|
return [_c('div', {
|
|
74548
74548
|
staticClass: "pager-container"
|
|
74549
|
+
}, [_c('div', {
|
|
74550
|
+
staticClass: "reset-button"
|
|
74549
74551
|
}, [_vm.showResetCache ? _c('el-button', {
|
|
74550
74552
|
attrs: {
|
|
74551
74553
|
"disabled": !_vm.hasCache,
|
|
@@ -74554,7 +74556,7 @@ var tablevue_type_template_id_1531768e_render = function render() {
|
|
|
74554
74556
|
on: {
|
|
74555
74557
|
"click": _vm.resetCachedTableColumns
|
|
74556
74558
|
}
|
|
74557
|
-
}, [_vm._v(" 重置列宽 ")]) : _vm._e(), _c('by-pager', {
|
|
74559
|
+
}, [_vm._v(" 重置列宽 ")]) : _vm._e()], 1), _c('by-pager', {
|
|
74558
74560
|
attrs: {
|
|
74559
74561
|
"page": _vm.options.pagerConfig.currentPage,
|
|
74560
74562
|
"limit": _vm.options.pagerConfig.pageSize,
|
|
@@ -74603,7 +74605,7 @@ var tablevue_type_template_id_1531768e_render = function render() {
|
|
|
74603
74605
|
}
|
|
74604
74606
|
}) : _vm._e()], 1);
|
|
74605
74607
|
};
|
|
74606
|
-
var
|
|
74608
|
+
var tablevue_type_template_id_d3326672_staticRenderFns = [];
|
|
74607
74609
|
|
|
74608
74610
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
74609
74611
|
var es_array_push = __webpack_require__(4114);
|
|
@@ -76764,6 +76766,9 @@ var custom_column_component = normalizeComponent(
|
|
|
76764
76766
|
newColumns = this.removeFixedColumns(newColumns);
|
|
76765
76767
|
}
|
|
76766
76768
|
|
|
76769
|
+
// 为表头补充tooltips展示能力
|
|
76770
|
+
newColumns = this.applyColumnTooltips(newColumns);
|
|
76771
|
+
|
|
76767
76772
|
// 处理前端分页和虚拟滚动
|
|
76768
76773
|
let data = others.data || [];
|
|
76769
76774
|
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 +76942,79 @@ var custom_column_component = normalizeComponent(
|
|
|
76937
76942
|
setHasCache() {
|
|
76938
76943
|
this.hasCache = isCachedTableColumns(this.name);
|
|
76939
76944
|
},
|
|
76945
|
+
/**
|
|
76946
|
+
* 根据工具提示配置增强表头
|
|
76947
|
+
* @param {Array} columns
|
|
76948
|
+
*/
|
|
76949
|
+
applyColumnTooltips(columns) {
|
|
76950
|
+
if (!Array.isArray(columns)) return columns;
|
|
76951
|
+
return columns.map(column => {
|
|
76952
|
+
const newColumn = {
|
|
76953
|
+
...column
|
|
76954
|
+
};
|
|
76955
|
+
if (Array.isArray(newColumn.children) && newColumn.children.length) {
|
|
76956
|
+
newColumn.children = this.applyColumnTooltips(newColumn.children);
|
|
76957
|
+
}
|
|
76958
|
+
const tooltipConfig = this.normalizeTooltipConfig(newColumn.tooltips);
|
|
76959
|
+
if (tooltipConfig) {
|
|
76960
|
+
newColumn.titleSuffix = this.createTitleSuffixConfig(newColumn.titleSuffix, tooltipConfig);
|
|
76961
|
+
}
|
|
76962
|
+
return newColumn;
|
|
76963
|
+
});
|
|
76964
|
+
},
|
|
76965
|
+
/**
|
|
76966
|
+
* 规范化列配置上的tooltips字段
|
|
76967
|
+
* @param {string|Object} tooltips
|
|
76968
|
+
*/
|
|
76969
|
+
normalizeTooltipConfig(tooltips) {
|
|
76970
|
+
if (!tooltips) return null;
|
|
76971
|
+
if (typeof tooltips === 'string') {
|
|
76972
|
+
return {
|
|
76973
|
+
content: tooltips,
|
|
76974
|
+
placement: 'top',
|
|
76975
|
+
effect: 'dark'
|
|
76976
|
+
};
|
|
76977
|
+
}
|
|
76978
|
+
if (typeof tooltips === 'object') {
|
|
76979
|
+
const {
|
|
76980
|
+
content,
|
|
76981
|
+
placement,
|
|
76982
|
+
effect,
|
|
76983
|
+
popperClass,
|
|
76984
|
+
iconClass
|
|
76985
|
+
} = tooltips;
|
|
76986
|
+
if (!content) {
|
|
76987
|
+
return null;
|
|
76988
|
+
}
|
|
76989
|
+
return {
|
|
76990
|
+
content,
|
|
76991
|
+
placement: placement || 'top',
|
|
76992
|
+
effect: effect || 'dark',
|
|
76993
|
+
popperClass,
|
|
76994
|
+
iconClass
|
|
76995
|
+
};
|
|
76996
|
+
}
|
|
76997
|
+
return null;
|
|
76998
|
+
},
|
|
76999
|
+
/**
|
|
77000
|
+
* 生成 VXE 表格 titleSuffix 配置
|
|
77001
|
+
*/
|
|
77002
|
+
createTitleSuffixConfig(existingSuffix, tooltipConfig) {
|
|
77003
|
+
const suffix = typeof existingSuffix === 'object' && existingSuffix !== null ? {
|
|
77004
|
+
...existingSuffix
|
|
77005
|
+
} : {};
|
|
77006
|
+
const iconClass = tooltipConfig.iconClass || suffix.icon || 'el-icon-question';
|
|
77007
|
+
return {
|
|
77008
|
+
...suffix,
|
|
77009
|
+
icon: iconClass,
|
|
77010
|
+
content: tooltipConfig.content,
|
|
77011
|
+
message: tooltipConfig.content,
|
|
77012
|
+
theme: suffix.theme || tooltipConfig.effect || 'dark',
|
|
77013
|
+
enterable: typeof suffix.enterable === 'boolean' ? suffix.enterable : true,
|
|
77014
|
+
placement: suffix.placement || tooltipConfig.placement || 'top',
|
|
77015
|
+
popperClass: suffix.popperClass || tooltipConfig.popperClass
|
|
77016
|
+
};
|
|
77017
|
+
},
|
|
76940
77018
|
//重置列宽缓存
|
|
76941
77019
|
resetCachedTableColumns() {
|
|
76942
77020
|
removeCachedTableColumns(this.name);
|
|
@@ -77390,8 +77468,8 @@ var custom_column_component = normalizeComponent(
|
|
|
77390
77468
|
;
|
|
77391
77469
|
var table_component = normalizeComponent(
|
|
77392
77470
|
components_tablevue_type_script_lang_js,
|
|
77393
|
-
|
|
77394
|
-
|
|
77471
|
+
tablevue_type_template_id_d3326672_render,
|
|
77472
|
+
tablevue_type_template_id_d3326672_staticRenderFns,
|
|
77395
77473
|
false,
|
|
77396
77474
|
null,
|
|
77397
77475
|
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=d3326672
|
|
74538
|
+
var tablevue_type_template_id_d3326672_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({
|
|
@@ -74556,6 +74556,8 @@ var tablevue_type_template_id_1531768e_render = function render() {
|
|
|
74556
74556
|
fn: function () {
|
|
74557
74557
|
return [_c('div', {
|
|
74558
74558
|
staticClass: "pager-container"
|
|
74559
|
+
}, [_c('div', {
|
|
74560
|
+
staticClass: "reset-button"
|
|
74559
74561
|
}, [_vm.showResetCache ? _c('el-button', {
|
|
74560
74562
|
attrs: {
|
|
74561
74563
|
"disabled": !_vm.hasCache,
|
|
@@ -74564,7 +74566,7 @@ var tablevue_type_template_id_1531768e_render = function render() {
|
|
|
74564
74566
|
on: {
|
|
74565
74567
|
"click": _vm.resetCachedTableColumns
|
|
74566
74568
|
}
|
|
74567
|
-
}, [_vm._v(" 重置列宽 ")]) : _vm._e(), _c('by-pager', {
|
|
74569
|
+
}, [_vm._v(" 重置列宽 ")]) : _vm._e()], 1), _c('by-pager', {
|
|
74568
74570
|
attrs: {
|
|
74569
74571
|
"page": _vm.options.pagerConfig.currentPage,
|
|
74570
74572
|
"limit": _vm.options.pagerConfig.pageSize,
|
|
@@ -74613,7 +74615,7 @@ var tablevue_type_template_id_1531768e_render = function render() {
|
|
|
74613
74615
|
}
|
|
74614
74616
|
}) : _vm._e()], 1);
|
|
74615
74617
|
};
|
|
74616
|
-
var
|
|
74618
|
+
var tablevue_type_template_id_d3326672_staticRenderFns = [];
|
|
74617
74619
|
|
|
74618
74620
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
74619
74621
|
var es_array_push = __webpack_require__(4114);
|
|
@@ -76774,6 +76776,9 @@ var custom_column_component = normalizeComponent(
|
|
|
76774
76776
|
newColumns = this.removeFixedColumns(newColumns);
|
|
76775
76777
|
}
|
|
76776
76778
|
|
|
76779
|
+
// 为表头补充tooltips展示能力
|
|
76780
|
+
newColumns = this.applyColumnTooltips(newColumns);
|
|
76781
|
+
|
|
76777
76782
|
// 处理前端分页和虚拟滚动
|
|
76778
76783
|
let data = others.data || [];
|
|
76779
76784
|
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 +76952,79 @@ var custom_column_component = normalizeComponent(
|
|
|
76947
76952
|
setHasCache() {
|
|
76948
76953
|
this.hasCache = isCachedTableColumns(this.name);
|
|
76949
76954
|
},
|
|
76955
|
+
/**
|
|
76956
|
+
* 根据工具提示配置增强表头
|
|
76957
|
+
* @param {Array} columns
|
|
76958
|
+
*/
|
|
76959
|
+
applyColumnTooltips(columns) {
|
|
76960
|
+
if (!Array.isArray(columns)) return columns;
|
|
76961
|
+
return columns.map(column => {
|
|
76962
|
+
const newColumn = {
|
|
76963
|
+
...column
|
|
76964
|
+
};
|
|
76965
|
+
if (Array.isArray(newColumn.children) && newColumn.children.length) {
|
|
76966
|
+
newColumn.children = this.applyColumnTooltips(newColumn.children);
|
|
76967
|
+
}
|
|
76968
|
+
const tooltipConfig = this.normalizeTooltipConfig(newColumn.tooltips);
|
|
76969
|
+
if (tooltipConfig) {
|
|
76970
|
+
newColumn.titleSuffix = this.createTitleSuffixConfig(newColumn.titleSuffix, tooltipConfig);
|
|
76971
|
+
}
|
|
76972
|
+
return newColumn;
|
|
76973
|
+
});
|
|
76974
|
+
},
|
|
76975
|
+
/**
|
|
76976
|
+
* 规范化列配置上的tooltips字段
|
|
76977
|
+
* @param {string|Object} tooltips
|
|
76978
|
+
*/
|
|
76979
|
+
normalizeTooltipConfig(tooltips) {
|
|
76980
|
+
if (!tooltips) return null;
|
|
76981
|
+
if (typeof tooltips === 'string') {
|
|
76982
|
+
return {
|
|
76983
|
+
content: tooltips,
|
|
76984
|
+
placement: 'top',
|
|
76985
|
+
effect: 'dark'
|
|
76986
|
+
};
|
|
76987
|
+
}
|
|
76988
|
+
if (typeof tooltips === 'object') {
|
|
76989
|
+
const {
|
|
76990
|
+
content,
|
|
76991
|
+
placement,
|
|
76992
|
+
effect,
|
|
76993
|
+
popperClass,
|
|
76994
|
+
iconClass
|
|
76995
|
+
} = tooltips;
|
|
76996
|
+
if (!content) {
|
|
76997
|
+
return null;
|
|
76998
|
+
}
|
|
76999
|
+
return {
|
|
77000
|
+
content,
|
|
77001
|
+
placement: placement || 'top',
|
|
77002
|
+
effect: effect || 'dark',
|
|
77003
|
+
popperClass,
|
|
77004
|
+
iconClass
|
|
77005
|
+
};
|
|
77006
|
+
}
|
|
77007
|
+
return null;
|
|
77008
|
+
},
|
|
77009
|
+
/**
|
|
77010
|
+
* 生成 VXE 表格 titleSuffix 配置
|
|
77011
|
+
*/
|
|
77012
|
+
createTitleSuffixConfig(existingSuffix, tooltipConfig) {
|
|
77013
|
+
const suffix = typeof existingSuffix === 'object' && existingSuffix !== null ? {
|
|
77014
|
+
...existingSuffix
|
|
77015
|
+
} : {};
|
|
77016
|
+
const iconClass = tooltipConfig.iconClass || suffix.icon || 'el-icon-question';
|
|
77017
|
+
return {
|
|
77018
|
+
...suffix,
|
|
77019
|
+
icon: iconClass,
|
|
77020
|
+
content: tooltipConfig.content,
|
|
77021
|
+
message: tooltipConfig.content,
|
|
77022
|
+
theme: suffix.theme || tooltipConfig.effect || 'dark',
|
|
77023
|
+
enterable: typeof suffix.enterable === 'boolean' ? suffix.enterable : true,
|
|
77024
|
+
placement: suffix.placement || tooltipConfig.placement || 'top',
|
|
77025
|
+
popperClass: suffix.popperClass || tooltipConfig.popperClass
|
|
77026
|
+
};
|
|
77027
|
+
},
|
|
76950
77028
|
//重置列宽缓存
|
|
76951
77029
|
resetCachedTableColumns() {
|
|
76952
77030
|
removeCachedTableColumns(this.name);
|
|
@@ -77400,8 +77478,8 @@ var custom_column_component = normalizeComponent(
|
|
|
77400
77478
|
;
|
|
77401
77479
|
var table_component = normalizeComponent(
|
|
77402
77480
|
components_tablevue_type_script_lang_js,
|
|
77403
|
-
|
|
77404
|
-
|
|
77481
|
+
tablevue_type_template_id_d3326672_render,
|
|
77482
|
+
tablevue_type_template_id_d3326672_staticRenderFns,
|
|
77405
77483
|
false,
|
|
77406
77484
|
null,
|
|
77407
77485
|
null,
|