vxe-table 3.9.0-rc.2 → 3.9.0-rc.21
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/es/grid/src/grid.js +120 -66
- package/es/locale/lang/en-US.js +2 -8
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/hu-HU.d.ts +2 -0
- package/es/locale/lang/hu-HU.js +497 -501
- package/es/locale/lang/ja-JP.js +2 -8
- package/es/locale/lang/ko-KR.d.ts +2 -0
- package/es/locale/lang/ko-KR.js +2 -8
- package/es/locale/lang/pt-BR.js +2 -8
- package/es/locale/lang/ru-RU.d.ts +2 -0
- package/es/locale/lang/ru-RU.js +497 -503
- package/es/locale/lang/uk-UA.d.ts +2 -0
- package/es/locale/lang/uk-UA.js +667 -0
- package/es/locale/lang/vi-VN.js +2 -8
- package/es/locale/lang/zh-CHT.d.ts +2 -0
- package/es/locale/lang/zh-CHT.js +667 -0
- package/es/locale/lang/zh-CN.js +2 -8
- package/es/locale/lang/zh-HK.js +2 -2
- package/es/locale/lang/zh-MO.js +2 -2
- package/es/locale/lang/zh-TC.js +2 -673
- package/es/locale/lang/zh-TW.js +2 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/index.js +29 -3
- package/es/table/module/custom/panel.js +183 -173
- package/es/table/module/edit/mixin.js +33 -24
- package/es/table/module/export/export-panel.js +32 -4
- package/es/table/module/export/import-panel.js +24 -5
- package/es/table/module/export/mixin.js +11 -11
- package/es/table/module/menu/mixin.js +2 -2
- package/es/table/module/validator/mixin.js +4 -4
- package/es/table/render/index.js +23 -38
- package/es/table/src/body.js +1 -0
- package/es/table/src/columnInfo.js +3 -3
- package/es/table/src/methods.js +48 -40
- package/es/table/src/props.js +65 -15
- package/es/table/src/table.js +161 -55
- package/es/table/src/util.js +3 -2
- package/es/table/style.css +37 -23
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +21 -7
- package/es/ui/index.js +5 -4
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/vn.js +24 -1
- package/es/vxe-table/style.css +37 -23
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +115 -68
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +632 -330
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +2 -8
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -8
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/hu-HU.d.ts +2 -0
- package/lib/locale/lang/hu-HU.js +497 -501
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +687 -0
- package/lib/locale/lang/ja-JP.js +2 -8
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -8
- package/lib/locale/lang/ko-KR.d.ts +2 -0
- package/lib/locale/lang/ko-KR.js +2 -8
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +687 -0
- package/lib/locale/lang/pt-BR.js +2 -8
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -8
- package/lib/locale/lang/ru-RU.d.ts +2 -0
- package/lib/locale/lang/ru-RU.js +497 -503
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +687 -0
- package/lib/locale/lang/uk-UA.d.ts +2 -0
- package/lib/locale/lang/uk-UA.js +673 -0
- package/lib/locale/lang/uk-UA.min.js +1 -0
- package/lib/locale/lang/uk-UA.umd.js +687 -0
- package/lib/locale/lang/vi-VN.js +2 -8
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.d.ts +2 -0
- package/lib/locale/lang/zh-CHT.js +673 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -0
- package/lib/locale/lang/zh-CHT.umd.js +687 -0
- package/lib/locale/lang/zh-CN.js +2 -8
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -8
- package/lib/locale/lang/zh-HK.js +2 -2
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +7 -677
- package/lib/locale/lang/zh-MO.js +2 -2
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +7 -677
- package/lib/locale/lang/zh-TC.js +3 -673
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +7 -677
- package/lib/locale/lang/zh-TW.js +2 -2
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +7 -677
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/index.js +30 -3
- package/lib/table/index.min.js +1 -1
- package/lib/table/module/custom/panel.js +12 -7
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/module/edit/mixin.js +32 -23
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/export/export-panel.js +31 -4
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/import-panel.js +23 -5
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/module/export/mixin.js +11 -11
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/menu/mixin.js +2 -2
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/module/validator/mixin.js +4 -4
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/render/index.js +27 -41
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +1 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/columnInfo.js +3 -3
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +47 -40
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +7 -0
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +147 -48
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +3 -2
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +37 -23
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +21 -7
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +6 -5
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/vn.js +26 -1
- package/lib/ui/src/vn.min.js +1 -1
- package/lib/vxe-table/style/style.css +37 -23
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +127 -65
- package/packages/locale/lang/en-US.ts +2 -10
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +497 -503
- package/packages/locale/lang/ja-JP.ts +2 -10
- package/packages/locale/lang/ko-KR.ts +2 -10
- package/packages/locale/lang/pt-BR.ts +2 -10
- package/packages/locale/lang/ru-RU.ts +497 -505
- package/packages/locale/lang/uk-UA.ts +667 -0
- package/packages/locale/lang/vi-VN.ts +2 -10
- package/packages/locale/lang/zh-CHT.ts +667 -0
- package/packages/locale/lang/zh-CN.ts +2 -10
- package/packages/locale/lang/zh-HK.ts +2 -2
- package/packages/locale/lang/zh-MO.ts +2 -2
- package/packages/locale/lang/zh-TC.ts +2 -674
- package/packages/locale/lang/zh-TW.ts +2 -2
- package/packages/table/index.ts +28 -5
- package/packages/table/module/custom/panel.ts +186 -175
- package/packages/table/module/edit/mixin.ts +32 -23
- package/packages/table/module/export/export-panel.ts +36 -4
- package/packages/table/module/export/import-panel.ts +28 -5
- package/packages/table/module/export/mixin.ts +11 -11
- package/packages/table/module/menu/mixin.ts +2 -2
- package/packages/table/module/validator/mixin.ts +4 -4
- package/packages/table/render/index.ts +26 -40
- package/packages/table/src/body.ts +1 -0
- package/packages/table/src/columnInfo.ts +3 -3
- package/packages/table/src/methods.ts +47 -40
- package/packages/table/src/props.ts +68 -15
- package/packages/table/src/table.ts +167 -56
- package/packages/table/src/util.ts +3 -2
- package/packages/toolbar/src/toolbar.ts +21 -7
- package/packages/ui/index.ts +3 -2
- package/packages/ui/src/vn.ts +26 -1
- package/styles/components/table.scss +82 -17
- package/types/all.d.ts +2 -2
- /package/es/{iconfont.1726028471123.ttf → iconfont.1727868548661.ttf} +0 -0
- /package/es/{iconfont.1726028471123.woff → iconfont.1727868548661.woff} +0 -0
- /package/es/{iconfont.1726028471123.woff2 → iconfont.1727868548661.woff2} +0 -0
- /package/lib/{iconfont.1726028471123.ttf → iconfont.1727868548661.ttf} +0 -0
- /package/lib/{iconfont.1726028471123.woff → iconfont.1727868548661.woff} +0 -0
- /package/lib/{iconfont.1726028471123.woff2 → iconfont.1727868548661.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("@vxe-ui/core"), require("xe-utils"));
|
|
3
|
+
module.exports = factory(require("vue"), require("@vxe-ui/core"), require("xe-utils"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["@vxe-ui/core", "xe-utils"], factory);
|
|
5
|
+
define([, "@vxe-ui/core", "xe-utils"], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["VXETable"] = factory(require("@vxe-ui/core"), require("xe-utils"));
|
|
7
|
+
exports["VXETable"] = factory(require("vue"), require("@vxe-ui/core"), require("xe-utils"));
|
|
8
8
|
else
|
|
9
|
-
root["VXETable"] = factory(root["VxeUI"], root["XEUtils"]);
|
|
10
|
-
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__4345__, __WEBPACK_EXTERNAL_MODULE__8871__) {
|
|
9
|
+
root["VXETable"] = factory(root["Vue"], root["VxeUI"], root["XEUtils"]);
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__9274__, __WEBPACK_EXTERNAL_MODULE__4345__, __WEBPACK_EXTERNAL_MODULE__8871__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -100,6 +100,14 @@ __webpack_require__(3611);
|
|
|
100
100
|
|
|
101
101
|
/***/ }),
|
|
102
102
|
|
|
103
|
+
/***/ 9274:
|
|
104
|
+
/***/ (function(module) {
|
|
105
|
+
|
|
106
|
+
"use strict";
|
|
107
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__9274__;
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
103
111
|
/***/ 4345:
|
|
104
112
|
/***/ (function(module) {
|
|
105
113
|
|
|
@@ -10713,7 +10721,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10713
10721
|
getTheme: function() { return /* reexport */ getTheme; },
|
|
10714
10722
|
globalEvents: function() { return /* reexport */ globalEvents; },
|
|
10715
10723
|
globalResize: function() { return /* reexport */ globalResize; },
|
|
10716
|
-
hooks: function() { return /* reexport */ hooks; },
|
|
10717
10724
|
install: function() { return /* reexport */ install; },
|
|
10718
10725
|
interceptor: function() { return /* reexport */ interceptor; },
|
|
10719
10726
|
log: function() { return /* reexport */ log; },
|
|
@@ -10762,7 +10769,6 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
10762
10769
|
getTheme: function() { return getTheme; },
|
|
10763
10770
|
globalEvents: function() { return globalEvents; },
|
|
10764
10771
|
globalResize: function() { return globalResize; },
|
|
10765
|
-
hooks: function() { return hooks; },
|
|
10766
10772
|
install: function() { return install; },
|
|
10767
10773
|
interceptor: function() { return interceptor; },
|
|
10768
10774
|
log: function() { return log; },
|
|
@@ -10832,6 +10838,8 @@ var es_regexp_test = __webpack_require__(906);
|
|
|
10832
10838
|
|
|
10833
10839
|
|
|
10834
10840
|
|
|
10841
|
+
var winDom = null;
|
|
10842
|
+
var bodyEl = null;
|
|
10835
10843
|
var storeEl = null;
|
|
10836
10844
|
var storeId = 'z-index-manage';
|
|
10837
10845
|
var styleEl = null;
|
|
@@ -10842,19 +10850,34 @@ var storeData = {
|
|
|
10842
10850
|
m: 1000,
|
|
10843
10851
|
s: 1000
|
|
10844
10852
|
};
|
|
10845
|
-
function
|
|
10846
|
-
|
|
10853
|
+
function getDocument() {
|
|
10854
|
+
if (!winDom) {
|
|
10855
|
+
if (typeof document !== 'undefined') {
|
|
10856
|
+
winDom = document;
|
|
10857
|
+
}
|
|
10858
|
+
}
|
|
10859
|
+
return winDom;
|
|
10860
|
+
}
|
|
10861
|
+
function getBody() {
|
|
10862
|
+
if (winDom && !bodyEl) {
|
|
10863
|
+
bodyEl = winDom.body || winDom.getElementsByTagName('body')[0];
|
|
10864
|
+
}
|
|
10865
|
+
return bodyEl;
|
|
10847
10866
|
}
|
|
10848
10867
|
function getDomMaxZIndex() {
|
|
10849
10868
|
var max = 0;
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10869
|
+
var dom = getDocument();
|
|
10870
|
+
if (dom) {
|
|
10871
|
+
var body = getBody();
|
|
10872
|
+
if (body) {
|
|
10873
|
+
var allElem = body.getElementsByTagName('*');
|
|
10874
|
+
for (var i = 0; i < allElem.length; i++) {
|
|
10875
|
+
var elem = allElem[i];
|
|
10876
|
+
if (elem && elem.style && elem.nodeType === 1) {
|
|
10877
|
+
var zIndex = elem.style.zIndex;
|
|
10878
|
+
if (zIndex && /^\d+$/.test(zIndex)) {
|
|
10879
|
+
max = Math.max(max, Number(zIndex));
|
|
10880
|
+
}
|
|
10858
10881
|
}
|
|
10859
10882
|
}
|
|
10860
10883
|
}
|
|
@@ -10863,12 +10886,13 @@ function getDomMaxZIndex() {
|
|
|
10863
10886
|
}
|
|
10864
10887
|
function getStyle() {
|
|
10865
10888
|
if (!styleEl) {
|
|
10866
|
-
|
|
10867
|
-
|
|
10889
|
+
var dom = getDocument();
|
|
10890
|
+
if (dom) {
|
|
10891
|
+
styleEl = dom.getElementById(styleId);
|
|
10868
10892
|
if (!styleEl) {
|
|
10869
|
-
styleEl =
|
|
10893
|
+
styleEl = dom.createElement('style');
|
|
10870
10894
|
styleEl.id = styleId;
|
|
10871
|
-
|
|
10895
|
+
dom.getElementsByTagName('head')[0].appendChild(styleEl);
|
|
10872
10896
|
}
|
|
10873
10897
|
}
|
|
10874
10898
|
}
|
|
@@ -10882,17 +10906,21 @@ function updateVar() {
|
|
|
10882
10906
|
styEl.innerHTML = ':root{' + prefixes + 'main' + propKey + ':' + getCurrent() + ';' + prefixes + 'sub' + propKey + ':' + getSubCurrent() + '}';
|
|
10883
10907
|
}
|
|
10884
10908
|
}
|
|
10885
|
-
function
|
|
10909
|
+
function getStoreDom() {
|
|
10886
10910
|
if (!storeEl) {
|
|
10887
|
-
|
|
10888
|
-
|
|
10911
|
+
var dom = getDocument();
|
|
10912
|
+
if (dom) {
|
|
10913
|
+
storeEl = dom.getElementById(storeId);
|
|
10889
10914
|
if (!storeEl) {
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10915
|
+
var body = getBody();
|
|
10916
|
+
if (body) {
|
|
10917
|
+
storeEl = dom.createElement('div');
|
|
10918
|
+
storeEl.id = storeId;
|
|
10919
|
+
storeEl.style.display = 'none';
|
|
10920
|
+
body.appendChild(storeEl);
|
|
10921
|
+
setCurrent(storeData.m);
|
|
10922
|
+
setSubCurrent(storeData.s);
|
|
10923
|
+
}
|
|
10896
10924
|
}
|
|
10897
10925
|
}
|
|
10898
10926
|
}
|
|
@@ -10903,12 +10931,12 @@ function createSetHandle(key) {
|
|
|
10903
10931
|
if (value) {
|
|
10904
10932
|
value = Number(value);
|
|
10905
10933
|
storeData[key] = value;
|
|
10906
|
-
var
|
|
10907
|
-
if (
|
|
10908
|
-
if (
|
|
10909
|
-
|
|
10934
|
+
var el = getStoreDom();
|
|
10935
|
+
if (el) {
|
|
10936
|
+
if (el.dataset) {
|
|
10937
|
+
el.dataset[key] = value + '';
|
|
10910
10938
|
} else {
|
|
10911
|
-
|
|
10939
|
+
el.setAttribute('data-' + key, value + '');
|
|
10912
10940
|
}
|
|
10913
10941
|
}
|
|
10914
10942
|
}
|
|
@@ -10920,9 +10948,9 @@ var setCurrent = createSetHandle(storeMainKey);
|
|
|
10920
10948
|
function createGetHandle(key, nextMethod) {
|
|
10921
10949
|
return function getCurrent(currZindex) {
|
|
10922
10950
|
var zIndex;
|
|
10923
|
-
var
|
|
10924
|
-
if (
|
|
10925
|
-
var domVal =
|
|
10951
|
+
var el = getStoreDom();
|
|
10952
|
+
if (el) {
|
|
10953
|
+
var domVal = el.dataset ? el.dataset[key] : el.getAttribute('data-' + key);
|
|
10926
10954
|
if (domVal) {
|
|
10927
10955
|
zIndex = Number(domVal);
|
|
10928
10956
|
}
|
|
@@ -11018,9 +11046,9 @@ function getClass(property, params) {
|
|
|
11018
11046
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
11019
11047
|
|
|
11020
11048
|
|
|
11021
|
-
var version = "3.9.0-rc.
|
|
11049
|
+
var version = "3.9.0-rc.21";
|
|
11022
11050
|
core_.VxeUI.version = version;
|
|
11023
|
-
core_.VxeUI.tableVersion = "3.9.0-rc.
|
|
11051
|
+
core_.VxeUI.tableVersion = "3.9.0-rc.21";
|
|
11024
11052
|
core_.VxeUI.setConfig({
|
|
11025
11053
|
emptyCell: ' ',
|
|
11026
11054
|
table: {
|
|
@@ -11029,6 +11057,7 @@ core_.VxeUI.setConfig({
|
|
|
11029
11057
|
animat: true,
|
|
11030
11058
|
delayHover: 250,
|
|
11031
11059
|
autoResize: true,
|
|
11060
|
+
padding: true,
|
|
11032
11061
|
minHeight: 144,
|
|
11033
11062
|
// keepSource: false,
|
|
11034
11063
|
// showOverflow: null,
|
|
@@ -11120,7 +11149,8 @@ core_.VxeUI.setConfig({
|
|
|
11120
11149
|
editConfig: {
|
|
11121
11150
|
// mode: 'cell',
|
|
11122
11151
|
showIcon: true,
|
|
11123
|
-
showAsterisk: true
|
|
11152
|
+
showAsterisk: true,
|
|
11153
|
+
autoFocus: true
|
|
11124
11154
|
},
|
|
11125
11155
|
importConfig: {
|
|
11126
11156
|
_typeMaps: {
|
|
@@ -11276,7 +11306,6 @@ var commands = core_.VxeUI.commands;
|
|
|
11276
11306
|
var interceptor = core_.VxeUI.interceptor;
|
|
11277
11307
|
var clipboard = core_.VxeUI.clipboard;
|
|
11278
11308
|
var log = core_.VxeUI.log;
|
|
11279
|
-
var hooks = core_.VxeUI.hooks;
|
|
11280
11309
|
var use = core_.VxeUI.use;
|
|
11281
11310
|
/**
|
|
11282
11311
|
* 已废弃
|
|
@@ -11788,7 +11817,7 @@ var es_string_fixed = __webpack_require__(4298);
|
|
|
11788
11817
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
11789
11818
|
|
|
11790
11819
|
var log_log = core_.VxeUI.log;
|
|
11791
|
-
var log_version = "table v".concat("3.9.0-rc.
|
|
11820
|
+
var log_version = "table v".concat("3.9.0-rc.21");
|
|
11792
11821
|
var warnLog = log_log.create('warn', log_version);
|
|
11793
11822
|
var errLog = log_log.create('error', log_version);
|
|
11794
11823
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -11817,7 +11846,7 @@ var ColumnInfo = /*#__PURE__*/function () {
|
|
|
11817
11846
|
var proxyOpts = $xegrid ? $xegrid.proxyOpts : null;
|
|
11818
11847
|
var formatter = _vm.formatter;
|
|
11819
11848
|
var visible = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(_vm.visible) ? _vm.visible : true;
|
|
11820
|
-
if (
|
|
11849
|
+
if (true) {
|
|
11821
11850
|
var types = ['seq', 'checkbox', 'radio', 'expand', 'html'];
|
|
11822
11851
|
if (_vm.type && types.indexOf(_vm.type) === -1) {
|
|
11823
11852
|
warnLog('vxe.error.errProp', ["type=".concat(_vm.type), types.join(', ')]);
|
|
@@ -11845,12 +11874,12 @@ var ColumnInfo = /*#__PURE__*/function () {
|
|
|
11845
11874
|
if (formatter) {
|
|
11846
11875
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
11847
11876
|
var gFormatOpts = columnInfo_formats.get(formatter) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter];
|
|
11848
|
-
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
11877
|
+
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
|
|
11849
11878
|
errLog('vxe.error.notFormats', [formatter]);
|
|
11850
11879
|
}
|
|
11851
11880
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
11852
11881
|
var _gFormatOpts = columnInfo_formats.get(formatter[0]) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter[0]];
|
|
11853
|
-
if (!_gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(_gFormatOpts.cellFormatMethod)) {
|
|
11882
|
+
if (!_gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(_gFormatOpts.tableCellFormatMethod || _gFormatOpts.cellFormatMethod)) {
|
|
11854
11883
|
errLog('vxe.error.notFormats', [formatter[0]]);
|
|
11855
11884
|
}
|
|
11856
11885
|
}
|
|
@@ -12126,7 +12155,7 @@ function assembleColumn(_vm) {
|
|
|
12126
12155
|
var groupConfig = $xecolumn ? $xecolumn.columnConfig : null;
|
|
12127
12156
|
columnConfig.slots = _vm.$scopedSlots;
|
|
12128
12157
|
if (groupConfig) {
|
|
12129
|
-
if (
|
|
12158
|
+
if (true) {
|
|
12130
12159
|
if ($xecolumn.$options._componentTag === 'vxe-table-column') {
|
|
12131
12160
|
errLog('vxe.error.groupTag', ["<vxe-table-colgroup title=".concat($xecolumn.title, " ...>"), "<vxe-table-column title=".concat($xecolumn.title, " ...>")]);
|
|
12132
12161
|
} else if ($xecolumn.$options._componentTag === 'vxe-column') {
|
|
@@ -12258,7 +12287,8 @@ function countTreeExpand(prevRow, params) {
|
|
|
12258
12287
|
return count;
|
|
12259
12288
|
}
|
|
12260
12289
|
function getOffsetSize($xetable) {
|
|
12261
|
-
|
|
12290
|
+
var vSize = $xetable.computeSize;
|
|
12291
|
+
return lineOffsetSizes[vSize] || 0;
|
|
12262
12292
|
}
|
|
12263
12293
|
function calcTreeLine(params, items, rIndex) {
|
|
12264
12294
|
var $table = params.$table;
|
|
@@ -12397,8 +12427,32 @@ function colToVisible($xetable, column) {
|
|
|
12397
12427
|
}
|
|
12398
12428
|
;// CONCATENATED MODULE: ./packages/ui/src/vn.ts
|
|
12399
12429
|
|
|
12430
|
+
|
|
12400
12431
|
function getOnName(type) {
|
|
12401
|
-
return
|
|
12432
|
+
return type;
|
|
12433
|
+
}
|
|
12434
|
+
function getModelEvent(renderOpts) {
|
|
12435
|
+
switch (renderOpts.name) {
|
|
12436
|
+
case 'input':
|
|
12437
|
+
case 'textarea':
|
|
12438
|
+
return 'input';
|
|
12439
|
+
case 'select':
|
|
12440
|
+
return 'change';
|
|
12441
|
+
}
|
|
12442
|
+
return 'modelValue';
|
|
12443
|
+
}
|
|
12444
|
+
function getChangeEvent(renderOpts) {
|
|
12445
|
+
switch (renderOpts.name) {
|
|
12446
|
+
case 'input':
|
|
12447
|
+
case 'textarea':
|
|
12448
|
+
case 'VxeInput':
|
|
12449
|
+
case 'VxeNumberInput':
|
|
12450
|
+
case 'VxeTextarea':
|
|
12451
|
+
case '$input':
|
|
12452
|
+
case '$textarea':
|
|
12453
|
+
return 'input';
|
|
12454
|
+
}
|
|
12455
|
+
return 'change';
|
|
12402
12456
|
}
|
|
12403
12457
|
function getSlotVNs(vns) {
|
|
12404
12458
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(vns)) {
|
|
@@ -13681,11 +13735,12 @@ function computeVirtualX(_vm) {
|
|
|
13681
13735
|
}
|
|
13682
13736
|
function computeVirtualY(_vm) {
|
|
13683
13737
|
var $refs = _vm.$refs,
|
|
13684
|
-
|
|
13738
|
+
computeSize = _vm.computeSize,
|
|
13685
13739
|
rowHeightMaps = _vm.rowHeightMaps;
|
|
13686
13740
|
var tableHeader = $refs.tableHeader,
|
|
13687
13741
|
tableBody = $refs.tableBody;
|
|
13688
13742
|
var tableBodyElem = tableBody ? tableBody.$el : null;
|
|
13743
|
+
var vSize = computeSize;
|
|
13689
13744
|
if (tableBodyElem) {
|
|
13690
13745
|
var tableHeaderElem = tableHeader ? tableHeader.$el : null;
|
|
13691
13746
|
var rowHeight = 0;
|
|
@@ -14012,7 +14067,7 @@ var Methods = {
|
|
|
14012
14067
|
if (treeConfig) {
|
|
14013
14068
|
// 树结构自动转换
|
|
14014
14069
|
if (treeOpts.transform) {
|
|
14015
|
-
if (
|
|
14070
|
+
if (true) {
|
|
14016
14071
|
if (!treeOpts.rowField) {
|
|
14017
14072
|
errLog('vxe.error.reqProp', ['table.tree-config.rowField']);
|
|
14018
14073
|
}
|
|
@@ -14066,7 +14121,7 @@ var Methods = {
|
|
|
14066
14121
|
if (keepSource) {
|
|
14067
14122
|
this.cacheSourceMap(fullData);
|
|
14068
14123
|
}
|
|
14069
|
-
if (
|
|
14124
|
+
if (true) {
|
|
14070
14125
|
if (sYLoad) {
|
|
14071
14126
|
if (!(this.height || this.maxHeight)) {
|
|
14072
14127
|
errLog('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}']);
|
|
@@ -14204,7 +14259,7 @@ var Methods = {
|
|
|
14204
14259
|
}
|
|
14205
14260
|
this.tableData = tableData.slice(0);
|
|
14206
14261
|
} else {
|
|
14207
|
-
if (
|
|
14262
|
+
if (true) {
|
|
14208
14263
|
warnLog('vxe.error.reqProp', ['keep-source']);
|
|
14209
14264
|
}
|
|
14210
14265
|
}
|
|
@@ -14261,7 +14316,7 @@ var Methods = {
|
|
|
14261
14316
|
_this9.clearMergeCells();
|
|
14262
14317
|
_this9.clearMergeFooterItems();
|
|
14263
14318
|
_this9.handleTableData(true);
|
|
14264
|
-
if (
|
|
14319
|
+
if (true) {
|
|
14265
14320
|
if ((_this9.scrollXLoad || _this9.scrollYLoad) && _this9.expandColumn) {
|
|
14266
14321
|
warnLog('vxe.error.scrollErrProp', ['column.type=expand']);
|
|
14267
14322
|
}
|
|
@@ -14467,7 +14522,7 @@ var Methods = {
|
|
|
14467
14522
|
parent: parent
|
|
14468
14523
|
};
|
|
14469
14524
|
if (field) {
|
|
14470
|
-
if (
|
|
14525
|
+
if (true) {
|
|
14471
14526
|
if (fullColumnFieldData[field]) {
|
|
14472
14527
|
warnLog('vxe.error.colRepet', ['field', field]);
|
|
14473
14528
|
}
|
|
@@ -14481,7 +14536,7 @@ var Methods = {
|
|
|
14481
14536
|
htmlColumn = column;
|
|
14482
14537
|
}
|
|
14483
14538
|
if (treeNode) {
|
|
14484
|
-
if (
|
|
14539
|
+
if (true) {
|
|
14485
14540
|
if (treeNodeColumn) {
|
|
14486
14541
|
warnLog('vxe.error.colRepet', ['tree-node', treeNode]);
|
|
14487
14542
|
}
|
|
@@ -14490,7 +14545,7 @@ var Methods = {
|
|
|
14490
14545
|
treeNodeColumn = column;
|
|
14491
14546
|
}
|
|
14492
14547
|
} else if (type === 'expand') {
|
|
14493
|
-
if (
|
|
14548
|
+
if (true) {
|
|
14494
14549
|
if (expandColumn) {
|
|
14495
14550
|
warnLog('vxe.error.colRepet', ['type', type]);
|
|
14496
14551
|
}
|
|
@@ -14499,7 +14554,7 @@ var Methods = {
|
|
|
14499
14554
|
expandColumn = column;
|
|
14500
14555
|
}
|
|
14501
14556
|
}
|
|
14502
|
-
if (
|
|
14557
|
+
if (true) {
|
|
14503
14558
|
if (type === 'checkbox') {
|
|
14504
14559
|
if (checkboxColumn) {
|
|
14505
14560
|
warnLog('vxe.error.colRepet', ['type', type]);
|
|
@@ -14516,7 +14571,7 @@ var Methods = {
|
|
|
14516
14571
|
}
|
|
14517
14572
|
}
|
|
14518
14573
|
}
|
|
14519
|
-
if (
|
|
14574
|
+
if (true) {
|
|
14520
14575
|
if (_this13.showOverflow && column.showOverflow === false) {
|
|
14521
14576
|
warnLog('vxe.error.errConflicts', ["table.show-overflow=".concat(_this13.showOverflow), "column.show-overflow=".concat(column.showOverflow)]);
|
|
14522
14577
|
}
|
|
@@ -14527,7 +14582,7 @@ var Methods = {
|
|
|
14527
14582
|
warnLog('vxe.error.errConflicts', ["table.show-footer-overflow=".concat(_this13.showFooterOverflow), "column.show-footer-overflow=".concat(column.showFooterOverflow)]);
|
|
14528
14583
|
}
|
|
14529
14584
|
}
|
|
14530
|
-
if (
|
|
14585
|
+
if (true) {
|
|
14531
14586
|
if (htmlColumn) {
|
|
14532
14587
|
if (!columnOpts.useKey) {
|
|
14533
14588
|
errLog('vxe.error.reqProp', ['column-config.useKey', 'column.type=html']);
|
|
@@ -14555,7 +14610,7 @@ var Methods = {
|
|
|
14555
14610
|
} else {
|
|
14556
14611
|
tableFullColumn.forEach(handleFunc);
|
|
14557
14612
|
}
|
|
14558
|
-
if (
|
|
14613
|
+
if (true) {
|
|
14559
14614
|
if (expandColumn && this.mouseOpts.area) {
|
|
14560
14615
|
errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand']);
|
|
14561
14616
|
}
|
|
@@ -14638,7 +14693,7 @@ var Methods = {
|
|
|
14638
14693
|
},
|
|
14639
14694
|
// 在 v3 中废弃
|
|
14640
14695
|
_getRowIndex: function _getRowIndex(row) {
|
|
14641
|
-
if (
|
|
14696
|
+
if (true) {
|
|
14642
14697
|
warnLog('vxe.error.delFunc', ['_getRowIndex', 'getVTRowIndex']);
|
|
14643
14698
|
}
|
|
14644
14699
|
return this.getVTRowIndex(row);
|
|
@@ -14652,7 +14707,7 @@ var Methods = {
|
|
|
14652
14707
|
},
|
|
14653
14708
|
// 在 v3 中废弃
|
|
14654
14709
|
$getRowIndex: function $getRowIndex(row) {
|
|
14655
|
-
if (
|
|
14710
|
+
if (true) {
|
|
14656
14711
|
warnLog('vxe.error.delFunc', ['$getRowIndex', 'getVMRowIndex']);
|
|
14657
14712
|
}
|
|
14658
14713
|
return this.getVMRowIndex(row);
|
|
@@ -14673,7 +14728,7 @@ var Methods = {
|
|
|
14673
14728
|
},
|
|
14674
14729
|
// 在 v3 中废弃
|
|
14675
14730
|
_getColumnIndex: function _getColumnIndex(column) {
|
|
14676
|
-
if (
|
|
14731
|
+
if (true) {
|
|
14677
14732
|
warnLog('vxe.error.delFunc', ['_getColumnIndex', 'getVTColumnIndex']);
|
|
14678
14733
|
}
|
|
14679
14734
|
return this.getVTColumnIndex(column);
|
|
@@ -14687,7 +14742,7 @@ var Methods = {
|
|
|
14687
14742
|
},
|
|
14688
14743
|
// 在 v3 中废弃
|
|
14689
14744
|
$getColumnIndex: function $getColumnIndex(column) {
|
|
14690
|
-
if (
|
|
14745
|
+
if (true) {
|
|
14691
14746
|
warnLog('vxe.error.delFunc', ['$getColumnIndex', 'getVMColumnIndex']);
|
|
14692
14747
|
}
|
|
14693
14748
|
return this.getVMColumnIndex(column);
|
|
@@ -14788,7 +14843,7 @@ var Methods = {
|
|
|
14788
14843
|
tableSourceData = this.tableSourceData,
|
|
14789
14844
|
treeConfig = this.treeConfig;
|
|
14790
14845
|
if (!keepSource) {
|
|
14791
|
-
if (
|
|
14846
|
+
if (true) {
|
|
14792
14847
|
warnLog('vxe.error.reqProp', ['keep-source']);
|
|
14793
14848
|
}
|
|
14794
14849
|
return this.$nextTick();
|
|
@@ -14906,10 +14961,12 @@ var Methods = {
|
|
|
14906
14961
|
};
|
|
14907
14962
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
14908
14963
|
var gFormatOpts = methods_formats.get(formatter);
|
|
14909
|
-
|
|
14964
|
+
var tcFormatMethod = gFormatOpts ? gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod : null;
|
|
14965
|
+
cellLabel = tcFormatMethod ? tcFormatMethod(formatParams) : '';
|
|
14910
14966
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
14911
14967
|
var _gFormatOpts = methods_formats.get(formatter[0]);
|
|
14912
|
-
|
|
14968
|
+
var _tcFormatMethod = _gFormatOpts ? _gFormatOpts.tableCellFormatMethod || _gFormatOpts.cellFormatMethod : null;
|
|
14969
|
+
cellLabel = _tcFormatMethod ? _tcFormatMethod.apply(void 0, [formatParams].concat(_toConsumableArray(formatter.slice(1)))) : '';
|
|
14913
14970
|
} else {
|
|
14914
14971
|
cellLabel = formatter(formatParams);
|
|
14915
14972
|
}
|
|
@@ -15172,8 +15229,8 @@ var Methods = {
|
|
|
15172
15229
|
filterRender = column.filterRender,
|
|
15173
15230
|
field = column.field;
|
|
15174
15231
|
var compConf = isEnableConf(filterRender) ? methods_renderer.get(filterRender.name) : null;
|
|
15175
|
-
var compFilterMethod = compConf
|
|
15176
|
-
var
|
|
15232
|
+
var compFilterMethod = compConf ? compConf.tableFilterMethod || compConf.filterMethod : null;
|
|
15233
|
+
var tdFilterMethod = compConf ? compConf.tableFilterDefaultMethod || compConf.defaultTableFilterMethod || compConf.defaultFilterMethod : null;
|
|
15177
15234
|
var cellValue = getCellValue(row, column);
|
|
15178
15235
|
if (filterMethod) {
|
|
15179
15236
|
return itemList.some(function (item) {
|
|
@@ -15205,9 +15262,9 @@ var Methods = {
|
|
|
15205
15262
|
row: row,
|
|
15206
15263
|
column: column
|
|
15207
15264
|
});
|
|
15208
|
-
} else if (
|
|
15265
|
+
} else if (tdFilterMethod) {
|
|
15209
15266
|
return itemList.some(function (item) {
|
|
15210
|
-
return
|
|
15267
|
+
return tdFilterMethod({
|
|
15211
15268
|
value: item.value,
|
|
15212
15269
|
option: item,
|
|
15213
15270
|
cellValue: cellValue,
|
|
@@ -15901,7 +15958,7 @@ var Methods = {
|
|
|
15901
15958
|
rightList: rightList
|
|
15902
15959
|
});
|
|
15903
15960
|
if (scrollXLoad) {
|
|
15904
|
-
if (
|
|
15961
|
+
if (true) {
|
|
15905
15962
|
// if (this.showHeader && !this.showHeaderOverflow) {
|
|
15906
15963
|
// warnLog('vxe.error.reqProp', ['show-header-overflow'])
|
|
15907
15964
|
// }
|
|
@@ -16072,10 +16129,20 @@ var Methods = {
|
|
|
16072
16129
|
paddingSize = Math.floor(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellStyle.paddingLeft) + external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(cellStyle.paddingRight)) + 2;
|
|
16073
16130
|
}
|
|
16074
16131
|
var colWidth = column.renderAutoWidth - paddingSize;
|
|
16075
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellElList, function (
|
|
16076
|
-
var
|
|
16077
|
-
|
|
16078
|
-
|
|
16132
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellElList, function (itemEl) {
|
|
16133
|
+
var cellEl = itemEl;
|
|
16134
|
+
var thElem = cellEl.parentNode;
|
|
16135
|
+
var titleWidth = 0;
|
|
16136
|
+
if ("".concat(thElem.tagName).toLowerCase() === 'th') {
|
|
16137
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(cellEl.children, function (btnEl) {
|
|
16138
|
+
titleWidth += btnEl.offsetWidth + 1;
|
|
16139
|
+
});
|
|
16140
|
+
} else {
|
|
16141
|
+
var labelEl = cellEl.firstChild;
|
|
16142
|
+
titleWidth = labelEl.offsetWidth;
|
|
16143
|
+
}
|
|
16144
|
+
if (titleWidth) {
|
|
16145
|
+
colWidth = Math.max(colWidth, Math.ceil(titleWidth) + 4);
|
|
16079
16146
|
}
|
|
16080
16147
|
});
|
|
16081
16148
|
column.renderAutoWidth = colWidth + paddingSize;
|
|
@@ -16541,7 +16608,7 @@ var Methods = {
|
|
|
16541
16608
|
// 兼容老版本
|
|
16542
16609
|
if (!evntList.length && type === 'event.clearEdit') {
|
|
16543
16610
|
evntList = methods_interceptor.get('event.clearActived');
|
|
16544
|
-
if (
|
|
16611
|
+
if (true) {
|
|
16545
16612
|
if (evntList.length) {
|
|
16546
16613
|
warnLog('vxe.error.delEvent', ['event.clearActived', 'event.clearEdit']);
|
|
16547
16614
|
}
|
|
@@ -17004,12 +17071,6 @@ var Methods = {
|
|
|
17004
17071
|
setCellValue(selected.row, selected.column, null);
|
|
17005
17072
|
_this31.handleEdit(selected.args, evnt);
|
|
17006
17073
|
}
|
|
17007
|
-
var afterEditMethod = editOpts.afterEditMethod;
|
|
17008
|
-
if (afterEditMethod) {
|
|
17009
|
-
_this31.$nextTick(function () {
|
|
17010
|
-
afterEditMethod(_params5);
|
|
17011
|
-
});
|
|
17012
|
-
}
|
|
17013
17074
|
}
|
|
17014
17075
|
}
|
|
17015
17076
|
}
|
|
@@ -18679,7 +18740,7 @@ var Methods = {
|
|
|
18679
18740
|
},
|
|
18680
18741
|
// 在 v3 中废弃
|
|
18681
18742
|
getSortColumn: function getSortColumn() {
|
|
18682
|
-
if (
|
|
18743
|
+
if (true) {
|
|
18683
18744
|
warnLog('vxe.error.delFunc', ['getSortColumn', 'getSortColumns']);
|
|
18684
18745
|
}
|
|
18685
18746
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(this.tableFullColumn, function (column) {
|
|
@@ -18801,7 +18862,7 @@ var Methods = {
|
|
|
18801
18862
|
return this.$nextTick();
|
|
18802
18863
|
},
|
|
18803
18864
|
reloadExpandContent: function reloadExpandContent(row) {
|
|
18804
|
-
if (
|
|
18865
|
+
if (true) {
|
|
18805
18866
|
warnLog('vxe.error.delFunc', ['reloadExpandContent', 'reloadRowExpand']);
|
|
18806
18867
|
}
|
|
18807
18868
|
// 即将废弃
|
|
@@ -19008,7 +19069,7 @@ var Methods = {
|
|
|
19008
19069
|
return !!rowExpandedMaps[rowid];
|
|
19009
19070
|
},
|
|
19010
19071
|
isExpandByRow: function isExpandByRow(row) {
|
|
19011
|
-
if (
|
|
19072
|
+
if (true) {
|
|
19012
19073
|
warnLog('vxe.error.delFunc', ['isExpandByRow', 'isRowExpandByRow']);
|
|
19013
19074
|
}
|
|
19014
19075
|
// 即将废弃
|
|
@@ -19136,7 +19197,7 @@ var Methods = {
|
|
|
19136
19197
|
return this.$nextTick();
|
|
19137
19198
|
},
|
|
19138
19199
|
reloadTreeChilds: function reloadTreeChilds(row) {
|
|
19139
|
-
if (
|
|
19200
|
+
if (true) {
|
|
19140
19201
|
warnLog('vxe.error.delFunc', ['reloadTreeChilds', 'reloadTreeExpand']);
|
|
19141
19202
|
}
|
|
19142
19203
|
// 即将废弃
|
|
@@ -20061,7 +20122,7 @@ var Methods = {
|
|
|
20061
20122
|
var funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,updateFilterOptionStatus,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,getPrintHtml,exportData,openImport,importData,saveFile,readFile,importByFile,print,openCustom,closeCustom'.split(',');
|
|
20062
20123
|
funcs.forEach(function (name) {
|
|
20063
20124
|
Methods[name] = function () {
|
|
20064
|
-
if (
|
|
20125
|
+
if (true) {
|
|
20065
20126
|
if (!this["_".concat(name)]) {
|
|
20066
20127
|
if ('openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').includes(name)) {
|
|
20067
20128
|
errLog('vxe.error.reqModule', ['VxeTableExportModule']);
|
|
@@ -20379,7 +20440,7 @@ function renderColumn(h, _vm, $xetable, seq, rowid, fixedType, rowLevel, row, ro
|
|
|
20379
20440
|
}
|
|
20380
20441
|
}
|
|
20381
20442
|
return h('td', {
|
|
20382
|
-
class: ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), "col--".concat(type), type), 'col--last', $columnIndex === columns.length - 1), 'col--tree-node', treeNode), 'col--edit', isEdit), 'col--ellipsis', hasEllipsis), 'fixed--hidden', fixedHiddenColumn), 'col--dirty', isDirty), 'col--active', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), 'col--valid-error', !!errorValidItem),
|
|
20443
|
+
class: ['vxe-body--column', column.id, (_ref2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "col--".concat(cellAlign), cellAlign), "col--".concat(type), type), 'col--last', $columnIndex === columns.length - 1), 'col--tree-node', treeNode), 'col--edit', isEdit), 'col--ellipsis', hasEllipsis), 'col--height', !!rowOpts.height), 'fixed--hidden', fixedHiddenColumn), 'col--dirty', isDirty), 'col--active', editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === 'row')), _defineProperty(_defineProperty(_ref2, 'col--valid-error', !!errorValidItem), 'col--current', currentColumn === column)), getClass(compCellClassName, params), getClass(className, params), getClass(allCellClassName, params)],
|
|
20383
20444
|
key: columnKey || columnOpts.useKey ? column.id : $columnIndex,
|
|
20384
20445
|
attrs: attrs,
|
|
20385
20446
|
style: Object.assign({
|
|
@@ -21694,6 +21755,13 @@ var props_getConfig = core_.VxeUI.getConfig;
|
|
|
21694
21755
|
return props_getConfig().table.border;
|
|
21695
21756
|
}
|
|
21696
21757
|
},
|
|
21758
|
+
// 单元格是否有边距
|
|
21759
|
+
padding: {
|
|
21760
|
+
type: Boolean,
|
|
21761
|
+
default: function _default() {
|
|
21762
|
+
return props_getConfig().table.padding;
|
|
21763
|
+
}
|
|
21764
|
+
},
|
|
21697
21765
|
// 是否圆角边框
|
|
21698
21766
|
round: {
|
|
21699
21767
|
type: Boolean,
|
|
@@ -21960,7 +22028,8 @@ var props_getConfig = core_.VxeUI.getConfig;
|
|
|
21960
22028
|
|
|
21961
22029
|
|
|
21962
22030
|
var panel_getI18n = core_.VxeUI.getI18n,
|
|
21963
|
-
panel_getIcon = core_.VxeUI.getIcon
|
|
22031
|
+
panel_getIcon = core_.VxeUI.getIcon,
|
|
22032
|
+
renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
21964
22033
|
function updateDropHint(_vm, evnt) {
|
|
21965
22034
|
var $refs = _vm.$refs;
|
|
21966
22035
|
var dragHintEl = $refs.dragHintElemRef;
|
|
@@ -22185,7 +22254,11 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
22185
22254
|
})]) : null] : []);
|
|
22186
22255
|
};
|
|
22187
22256
|
var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
22257
|
+
var VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
22188
22258
|
var VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
22259
|
+
var VxeUIInputComponent = core_.VxeUI.getComponent('VxeInput');
|
|
22260
|
+
var VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
22261
|
+
var $xeTableCustomPanel = _vm;
|
|
22189
22262
|
var _e = _vm._e,
|
|
22190
22263
|
$xetable = _vm.$xetable,
|
|
22191
22264
|
customStore = _vm.customStore;
|
|
@@ -22280,7 +22353,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
22280
22353
|
}
|
|
22281
22354
|
}, colTitle)]), allowResizable ? h('td', {
|
|
22282
22355
|
class: 'vxe-table-custom-popup--column-item col--resizable'
|
|
22283
|
-
}, [column.children && column.children.length ? h('span', '-') : h(
|
|
22356
|
+
}, [column.children && column.children.length ? h('span', '-') : VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
22284
22357
|
props: {
|
|
22285
22358
|
type: 'integer',
|
|
22286
22359
|
disabled: isHidden,
|
|
@@ -22291,7 +22364,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
22291
22364
|
column.renderResizeWidth = Math.max(0, Number(value));
|
|
22292
22365
|
}
|
|
22293
22366
|
}
|
|
22294
|
-
})]) : _e(), allowFixed ? h('td', {
|
|
22367
|
+
}) : renderEmptyElement($xeTableCustomPanel)]) : _e(), allowFixed ? h('td', {
|
|
22295
22368
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
22296
22369
|
}, [parent ? h('span', '-') : h('vxe-radio-group', {
|
|
22297
22370
|
props: {
|
|
@@ -22323,7 +22396,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
22323
22396
|
});
|
|
22324
22397
|
var isAllChecked = customStore.isAll;
|
|
22325
22398
|
var isAllIndeterminate = customStore.isIndeterminate;
|
|
22326
|
-
return h(
|
|
22399
|
+
return VxeUIModalComponent ? h(VxeUIModalComponent, {
|
|
22327
22400
|
key: 'modal',
|
|
22328
22401
|
props: {
|
|
22329
22402
|
className: ['vxe-table-custom-popup-wrapper', 'vxe-table--ignore-clear', modalOpts.className || ''].join(' '),
|
|
@@ -22390,7 +22463,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
22390
22463
|
class: 'vxe-checkbox--label'
|
|
22391
22464
|
}, panel_getI18n('vxe.toolbar.customAll'))])]) : _e(), allowSort ? h('th', {}, [h('span', {
|
|
22392
22465
|
class: 'vxe-table-custom-popup--table-sort-help-title'
|
|
22393
|
-
}, panel_getI18n('vxe.custom.setting.colSort')), h(
|
|
22466
|
+
}, panel_getI18n('vxe.custom.setting.colSort')), VxeUITooltipComponent ? h(VxeUITooltipComponent, {
|
|
22394
22467
|
props: {
|
|
22395
22468
|
enterable: true,
|
|
22396
22469
|
content: panel_getI18n('vxe.custom.setting.sortHelpTip'),
|
|
@@ -22403,7 +22476,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
22403
22476
|
});
|
|
22404
22477
|
}
|
|
22405
22478
|
}
|
|
22406
|
-
})]) : _e(), h('th', {}, panel_getI18n('vxe.custom.setting.colTitle')), allowResizable ? h('th', {}, panel_getI18n('vxe.custom.setting.colResizable')) : _e(), allowFixed ? h('th', {}, panel_getI18n("vxe.custom.setting.".concat(maxFixedSize ? 'colFixedMax' : 'colFixed'), [maxFixedSize])) : _e()])]), h('transition-group', {
|
|
22479
|
+
}) : renderEmptyElement($xeTableCustomPanel)]) : _e(), h('th', {}, panel_getI18n('vxe.custom.setting.colTitle')), allowResizable ? h('th', {}, panel_getI18n('vxe.custom.setting.colResizable')) : _e(), allowFixed ? h('th', {}, panel_getI18n("vxe.custom.setting.".concat(maxFixedSize ? 'colFixedMax' : 'colFixed'), [maxFixedSize])) : _e()])]), h('transition-group', {
|
|
22407
22480
|
class: 'vxe-table-custom--body',
|
|
22408
22481
|
props: {
|
|
22409
22482
|
tag: 'tbody',
|
|
@@ -22442,7 +22515,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
22442
22515
|
})]);
|
|
22443
22516
|
}
|
|
22444
22517
|
}
|
|
22445
|
-
});
|
|
22518
|
+
}) : renderEmptyElement($xeTableCustomPanel);
|
|
22446
22519
|
};
|
|
22447
22520
|
/* harmony default export */ var panel = ({
|
|
22448
22521
|
name: 'VxeTableCustomPanel',
|
|
@@ -23082,11 +23155,13 @@ var filter_panel_getI18n = core_.VxeUI.getI18n,
|
|
|
23082
23155
|
|
|
23083
23156
|
|
|
23084
23157
|
|
|
23085
|
-
|
|
23158
|
+
|
|
23086
23159
|
var import_panel_getI18n = core_.VxeUI.getI18n,
|
|
23087
|
-
import_panel_getIcon = core_.VxeUI.getIcon
|
|
23160
|
+
import_panel_getIcon = core_.VxeUI.getIcon,
|
|
23161
|
+
globalMixins = core_.VxeUI.globalMixins;
|
|
23088
23162
|
/* harmony default export */ var import_panel = ({
|
|
23089
23163
|
name: 'VxeTableImportPanel',
|
|
23164
|
+
mixins: [globalMixins.sizeMixin],
|
|
23090
23165
|
props: {
|
|
23091
23166
|
defaultOptions: Object,
|
|
23092
23167
|
storeData: Object
|
|
@@ -23101,9 +23176,6 @@ var import_panel_getI18n = core_.VxeUI.getI18n,
|
|
|
23101
23176
|
};
|
|
23102
23177
|
},
|
|
23103
23178
|
computed: {
|
|
23104
|
-
vSize: function vSize() {
|
|
23105
|
-
return this.size || this.$parent.size || this.$parent.vSize;
|
|
23106
|
-
},
|
|
23107
23179
|
selectName: function selectName() {
|
|
23108
23180
|
return "".concat(this.storeData.filename, ".").concat(this.storeData.type);
|
|
23109
23181
|
},
|
|
@@ -23125,6 +23197,25 @@ var import_panel_getI18n = core_.VxeUI.getI18n,
|
|
|
23125
23197
|
}).join(', *.'));
|
|
23126
23198
|
}
|
|
23127
23199
|
},
|
|
23200
|
+
created: function created() {
|
|
23201
|
+
var $xeTableImportPanel = this;
|
|
23202
|
+
if (true) {
|
|
23203
|
+
var VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
23204
|
+
var VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
23205
|
+
var VxeUISelectComponent = core_.VxeUI.getComponent('VxeSelect');
|
|
23206
|
+
$xeTableImportPanel.$nextTick(function () {
|
|
23207
|
+
if (!VxeUIModalComponent) {
|
|
23208
|
+
errLog('vxe.error.reqComp', ['vxe-modal']);
|
|
23209
|
+
}
|
|
23210
|
+
if (!VxeUIButtonComponent) {
|
|
23211
|
+
errLog('vxe.error.reqComp', ['vxe-button']);
|
|
23212
|
+
}
|
|
23213
|
+
if (!VxeUISelectComponent) {
|
|
23214
|
+
errLog('vxe.error.reqComp', ['vxe-select']);
|
|
23215
|
+
}
|
|
23216
|
+
});
|
|
23217
|
+
}
|
|
23218
|
+
},
|
|
23128
23219
|
render: function render(h) {
|
|
23129
23220
|
var hasFile = this.hasFile,
|
|
23130
23221
|
parseTypeLabel = this.parseTypeLabel,
|
|
@@ -23256,10 +23347,13 @@ var import_panel_getI18n = core_.VxeUI.getI18n,
|
|
|
23256
23347
|
|
|
23257
23348
|
|
|
23258
23349
|
|
|
23350
|
+
|
|
23259
23351
|
var export_panel_getI18n = core_.VxeUI.getI18n,
|
|
23260
|
-
export_panel_getIcon = core_.VxeUI.getIcon
|
|
23352
|
+
export_panel_getIcon = core_.VxeUI.getIcon,
|
|
23353
|
+
export_panel_globalMixins = core_.VxeUI.globalMixins;
|
|
23261
23354
|
/* harmony default export */ var export_panel = ({
|
|
23262
23355
|
name: 'VxeTableExportPanel',
|
|
23356
|
+
mixins: [export_panel_globalMixins.sizeMixin],
|
|
23263
23357
|
props: {
|
|
23264
23358
|
defaultOptions: Object,
|
|
23265
23359
|
storeData: Object
|
|
@@ -23279,9 +23373,6 @@ var export_panel_getI18n = core_.VxeUI.getI18n,
|
|
|
23279
23373
|
};
|
|
23280
23374
|
},
|
|
23281
23375
|
computed: {
|
|
23282
|
-
vSize: function vSize() {
|
|
23283
|
-
return this.size || this.$parent.size || this.$parent.vSize;
|
|
23284
|
-
},
|
|
23285
23376
|
checkedAll: function checkedAll() {
|
|
23286
23377
|
return this.storeData.columns.every(function (column) {
|
|
23287
23378
|
return column.checked;
|
|
@@ -23300,6 +23391,33 @@ var export_panel_getI18n = core_.VxeUI.getI18n,
|
|
|
23300
23391
|
return !defaultOptions.original && ['xlsx'].indexOf(defaultOptions.type) > -1;
|
|
23301
23392
|
}
|
|
23302
23393
|
},
|
|
23394
|
+
created: function created() {
|
|
23395
|
+
var $xeTableExportPanel = this;
|
|
23396
|
+
if (true) {
|
|
23397
|
+
var VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
23398
|
+
var VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
23399
|
+
var VxeUISelectComponent = core_.VxeUI.getComponent('VxeSelect');
|
|
23400
|
+
var VxeUIInputComponent = core_.VxeUI.getComponent('VxeInput');
|
|
23401
|
+
var VxeUICheckboxComponent = core_.VxeUI.getComponent('VxeCheckbox');
|
|
23402
|
+
$xeTableExportPanel.$nextTick(function () {
|
|
23403
|
+
if (!VxeUIModalComponent) {
|
|
23404
|
+
errLog('vxe.error.reqComp', ['vxe-modal']);
|
|
23405
|
+
}
|
|
23406
|
+
if (!VxeUIButtonComponent) {
|
|
23407
|
+
errLog('vxe.error.reqComp', ['vxe-button']);
|
|
23408
|
+
}
|
|
23409
|
+
if (!VxeUISelectComponent) {
|
|
23410
|
+
errLog('vxe.error.reqComp', ['vxe-select']);
|
|
23411
|
+
}
|
|
23412
|
+
if (!VxeUIInputComponent) {
|
|
23413
|
+
errLog('vxe.error.reqComp', ['vxe-input']);
|
|
23414
|
+
}
|
|
23415
|
+
if (!VxeUICheckboxComponent) {
|
|
23416
|
+
errLog('vxe.error.reqComp', ['vxe-checkbox']);
|
|
23417
|
+
}
|
|
23418
|
+
});
|
|
23419
|
+
}
|
|
23420
|
+
},
|
|
23303
23421
|
render: function render(h) {
|
|
23304
23422
|
var _this = this;
|
|
23305
23423
|
var _e = this._e,
|
|
@@ -24242,7 +24360,7 @@ var mixin_menus = core_.VxeUI.menus;
|
|
|
24242
24360
|
this.handleOpenMenuEvent(evnt, layout, _params);
|
|
24243
24361
|
// 在 v4 中废弃事件 cell-context-menu、header-cell-context-menu、footer-cell-context-menu
|
|
24244
24362
|
if (this.$listeners["".concat(typePrefix, "cell-context-menu")]) {
|
|
24245
|
-
if (
|
|
24363
|
+
if (true) {
|
|
24246
24364
|
warnLog('vxe.error.delEvent', ["".concat(typePrefix, "cell-context-menu"), "".concat(typePrefix, "cell-menu")]);
|
|
24247
24365
|
}
|
|
24248
24366
|
this.emitEvent("".concat(typePrefix, "cell-context-menu"), _params, evnt);
|
|
@@ -24418,7 +24536,7 @@ var mixin_menus = core_.VxeUI.menus;
|
|
|
24418
24536
|
}
|
|
24419
24537
|
// 在 v4 中废弃事件 context-menu-click
|
|
24420
24538
|
if (this.$listeners['context-menu-click']) {
|
|
24421
|
-
if (
|
|
24539
|
+
if (true) {
|
|
24422
24540
|
warnLog('vxe.error.delEvent', ['context-menu-click', 'menu-click']);
|
|
24423
24541
|
}
|
|
24424
24542
|
this.emitEvent('context-menu-click', params, evnt);
|
|
@@ -24450,6 +24568,7 @@ var mixin_menus = core_.VxeUI.menus;
|
|
|
24450
24568
|
|
|
24451
24569
|
|
|
24452
24570
|
|
|
24571
|
+
|
|
24453
24572
|
|
|
24454
24573
|
|
|
24455
24574
|
var mixin_getConfig = core_.VxeUI.getConfig,
|
|
@@ -24502,7 +24621,7 @@ function insertTreeRow(_vm, newRecords, isAppend) {
|
|
|
24502
24621
|
fullDataRowIdData[rowid] = rest;
|
|
24503
24622
|
fullAllDataRowIdData[rowid] = rest;
|
|
24504
24623
|
} else {
|
|
24505
|
-
if (
|
|
24624
|
+
if (true) {
|
|
24506
24625
|
if (parentRowId) {
|
|
24507
24626
|
warnLog('vxe.error.unableInsert');
|
|
24508
24627
|
}
|
|
@@ -24592,7 +24711,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
24592
24711
|
var parentLevel = parentRest ? parentRest.level : 0;
|
|
24593
24712
|
newRecords.forEach(function (item, i) {
|
|
24594
24713
|
var rowid = getRowid(_vm, item);
|
|
24595
|
-
if (
|
|
24714
|
+
if (true) {
|
|
24596
24715
|
if (item[treeOpts.parentField]) {
|
|
24597
24716
|
if (parentRow && item[treeOpts.parentField] !== parentRow[rowField]) {
|
|
24598
24717
|
errLog('vxe.error.errProp', ["".concat(treeOpts.parentField, "=").concat(item[treeOpts.parentField]), "".concat(treeOpts.parentField, "=").concat(parentRow[rowField])]);
|
|
@@ -24638,7 +24757,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
24638
24757
|
}
|
|
24639
24758
|
}
|
|
24640
24759
|
} else {
|
|
24641
|
-
if (
|
|
24760
|
+
if (true) {
|
|
24642
24761
|
warnLog('vxe.error.unableInsert');
|
|
24643
24762
|
}
|
|
24644
24763
|
insertTreeRow(_vm, newRecords, true);
|
|
@@ -25124,7 +25243,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
25124
25243
|
}
|
|
25125
25244
|
},
|
|
25126
25245
|
_clearActived: function _clearActived(evnt) {
|
|
25127
|
-
if (
|
|
25246
|
+
if (true) {
|
|
25128
25247
|
warnLog('vxe.error.delFunc', ['clearActived', 'clearEdit']);
|
|
25129
25248
|
}
|
|
25130
25249
|
// 即将废弃
|
|
@@ -25164,7 +25283,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
25164
25283
|
return this.$nextTick();
|
|
25165
25284
|
},
|
|
25166
25285
|
_getActiveRecord: function _getActiveRecord() {
|
|
25167
|
-
if (
|
|
25286
|
+
if (true) {
|
|
25168
25287
|
warnLog('vxe.error.delFunc', ['getActiveRecord', 'getEditRecord']);
|
|
25169
25288
|
}
|
|
25170
25289
|
// 即将废弃
|
|
@@ -25183,7 +25302,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
25183
25302
|
return null;
|
|
25184
25303
|
},
|
|
25185
25304
|
_isActiveByRow: function _isActiveByRow(row) {
|
|
25186
|
-
if (
|
|
25305
|
+
if (true) {
|
|
25187
25306
|
warnLog('vxe.error.delFunc', ['isActiveByRow', 'isEditByRow']);
|
|
25188
25307
|
}
|
|
25189
25308
|
// 即将废弃
|
|
@@ -25200,6 +25319,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
25200
25319
|
* 处理聚焦
|
|
25201
25320
|
*/
|
|
25202
25321
|
handleFocus: function handleFocus(params) {
|
|
25322
|
+
var editOpts = this.editOpts;
|
|
25203
25323
|
var row = params.row,
|
|
25204
25324
|
column = params.column,
|
|
25205
25325
|
cell = params.cell;
|
|
@@ -25209,19 +25329,22 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
25209
25329
|
var autoFocus = editRender.autofocus || editRender.autoFocus;
|
|
25210
25330
|
var autoSelect = editRender.autoSelect || editRender.autoselect;
|
|
25211
25331
|
var inputElem;
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
|
|
25215
|
-
|
|
25216
|
-
|
|
25217
|
-
|
|
25218
|
-
|
|
25219
|
-
|
|
25220
|
-
|
|
25221
|
-
|
|
25222
|
-
|
|
25223
|
-
if (
|
|
25224
|
-
inputElem.
|
|
25332
|
+
// 是否启用聚焦
|
|
25333
|
+
if (editOpts.autoFocus) {
|
|
25334
|
+
if (!autoFocus && compRender) {
|
|
25335
|
+
autoFocus = compRender.tableAutoFocus || compRender.tableAutofocus || compRender.autoFocus || compRender.autofocus;
|
|
25336
|
+
}
|
|
25337
|
+
if (!autoSelect && compRender) {
|
|
25338
|
+
autoSelect = compRender.tableAutoSelect || compRender.autoSelect || compRender.autoselect;
|
|
25339
|
+
}
|
|
25340
|
+
// 如果指定了聚焦 class
|
|
25341
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(autoFocus)) {
|
|
25342
|
+
inputElem = autoFocus.call(this, params);
|
|
25343
|
+
} else if (autoFocus) {
|
|
25344
|
+
inputElem = cell.querySelector(autoFocus);
|
|
25345
|
+
if (inputElem) {
|
|
25346
|
+
inputElem.focus();
|
|
25347
|
+
}
|
|
25225
25348
|
}
|
|
25226
25349
|
}
|
|
25227
25350
|
if (inputElem) {
|
|
@@ -25236,13 +25359,18 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
25236
25359
|
}
|
|
25237
25360
|
}
|
|
25238
25361
|
} else {
|
|
25239
|
-
//
|
|
25240
|
-
|
|
25362
|
+
// 是否自动定位
|
|
25363
|
+
if (editOpts.autoPos) {
|
|
25364
|
+
if (!column.fixed) {
|
|
25365
|
+
// 显示到可视区中
|
|
25366
|
+
this.scrollToRow(row, column);
|
|
25367
|
+
}
|
|
25368
|
+
}
|
|
25241
25369
|
}
|
|
25242
25370
|
}
|
|
25243
25371
|
},
|
|
25244
25372
|
_setActiveRow: function _setActiveRow(row) {
|
|
25245
|
-
if (
|
|
25373
|
+
if (true) {
|
|
25246
25374
|
warnLog('vxe.error.delFunc', ['setActiveRow', 'setEditRow']);
|
|
25247
25375
|
}
|
|
25248
25376
|
// 即将废弃
|
|
@@ -25261,7 +25389,7 @@ function handleInsertRowAt(_vm, records, row, isInsertNextRow) {
|
|
|
25261
25389
|
return this.setEditCell(row, column);
|
|
25262
25390
|
},
|
|
25263
25391
|
_setActiveCell: function _setActiveCell(row, fieldOrColumn) {
|
|
25264
|
-
if (
|
|
25392
|
+
if (true) {
|
|
25265
25393
|
warnLog('vxe.error.delFunc', ['setActiveCell', 'setEditCell']);
|
|
25266
25394
|
}
|
|
25267
25395
|
// 即将废弃
|
|
@@ -26100,7 +26228,7 @@ function downloadFile($xetable, opts, content) {
|
|
|
26100
26228
|
}).then(function () {
|
|
26101
26229
|
if (opts.message !== false) {
|
|
26102
26230
|
// 检测弹窗模块
|
|
26103
|
-
if (
|
|
26231
|
+
if (true) {
|
|
26104
26232
|
if (!core_.VxeUI.modal) {
|
|
26105
26233
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
26106
26234
|
}
|
|
@@ -26370,7 +26498,7 @@ function handleImport($xetable, content, opts) {
|
|
|
26370
26498
|
}
|
|
26371
26499
|
if (opts.message !== false) {
|
|
26372
26500
|
// 检测弹窗模块
|
|
26373
|
-
if (
|
|
26501
|
+
if (true) {
|
|
26374
26502
|
if (!core_.VxeUI.modal) {
|
|
26375
26503
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
26376
26504
|
}
|
|
@@ -26390,7 +26518,7 @@ function handleImport($xetable, content, opts) {
|
|
|
26390
26518
|
});
|
|
26391
26519
|
} else if (opts.message !== false) {
|
|
26392
26520
|
// 检测弹窗模块
|
|
26393
|
-
if (
|
|
26521
|
+
if (true) {
|
|
26394
26522
|
if (!core_.VxeUI.modal) {
|
|
26395
26523
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
26396
26524
|
}
|
|
@@ -26417,7 +26545,7 @@ function handleFileImport($xetable, file, opts) {
|
|
|
26417
26545
|
if (!importMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps), type)) {
|
|
26418
26546
|
if (opts.message !== false) {
|
|
26419
26547
|
// 检测弹窗模块
|
|
26420
|
-
if (
|
|
26548
|
+
if (true) {
|
|
26421
26549
|
if (!core_.VxeUI.modal) {
|
|
26422
26550
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
26423
26551
|
}
|
|
@@ -26493,7 +26621,7 @@ function handleFileImport($xetable, file, opts) {
|
|
|
26493
26621
|
}
|
|
26494
26622
|
} else {
|
|
26495
26623
|
// 不支持的浏览器
|
|
26496
|
-
if (
|
|
26624
|
+
if (true) {
|
|
26497
26625
|
errLog('vxe.error.notExp');
|
|
26498
26626
|
}
|
|
26499
26627
|
_importResolve({
|
|
@@ -26566,7 +26694,7 @@ function readLocalFile() {
|
|
|
26566
26694
|
} else {
|
|
26567
26695
|
if (options.message !== false) {
|
|
26568
26696
|
// 检测弹窗模块
|
|
26569
|
-
if (
|
|
26697
|
+
if (true) {
|
|
26570
26698
|
if (!core_.VxeUI.modal) {
|
|
26571
26699
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
26572
26700
|
}
|
|
@@ -26930,7 +27058,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
26930
27058
|
}
|
|
26931
27059
|
// 检查类型,如果为自定义导出,则不需要校验类型
|
|
26932
27060
|
if (!opts.exportMethod && !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps), type)) {
|
|
26933
|
-
if (
|
|
27061
|
+
if (true) {
|
|
26934
27062
|
errLog('vxe.error.notType', [type]);
|
|
26935
27063
|
}
|
|
26936
27064
|
var params = {
|
|
@@ -26961,7 +27089,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
26961
27089
|
opts.data = selectRecords;
|
|
26962
27090
|
}
|
|
26963
27091
|
} else if (mode === 'all') {
|
|
26964
|
-
if (
|
|
27092
|
+
if (true) {
|
|
26965
27093
|
if (!$xegrid) {
|
|
26966
27094
|
warnLog('vxe.error.errProp', ['all', 'mode=current,selected']);
|
|
26967
27095
|
}
|
|
@@ -26977,7 +27105,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
26977
27105
|
var ajaxMethods = ajax.queryAll;
|
|
26978
27106
|
var queryAllSuccessMethods = ajax.queryAllSuccess;
|
|
26979
27107
|
var queryAllErrorMethods = ajax.queryAllError;
|
|
26980
|
-
if (
|
|
27108
|
+
if (true) {
|
|
26981
27109
|
if (!ajaxMethods) {
|
|
26982
27110
|
warnLog('vxe.error.notFunc', ['proxy-config.ajax.queryAll']);
|
|
26983
27111
|
}
|
|
@@ -27169,7 +27297,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
27169
27297
|
},
|
|
27170
27298
|
_openExport: function _openExport(options) {
|
|
27171
27299
|
var exportOpts = this.exportOpts;
|
|
27172
|
-
if (
|
|
27300
|
+
if (true) {
|
|
27173
27301
|
if (!this.exportConfig) {
|
|
27174
27302
|
errLog('vxe.error.reqProp', ['export-config']);
|
|
27175
27303
|
}
|
|
@@ -27178,7 +27306,7 @@ var convertToRows = function convertToRows(originColumns) {
|
|
|
27178
27306
|
},
|
|
27179
27307
|
_openPrint: function _openPrint(options) {
|
|
27180
27308
|
var printOpts = this.printOpts;
|
|
27181
|
-
if (
|
|
27309
|
+
if (true) {
|
|
27182
27310
|
if (!this.printConfig) {
|
|
27183
27311
|
errLog('vxe.error.reqProp', ['print-config']);
|
|
27184
27312
|
}
|
|
@@ -27694,7 +27822,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
27694
27822
|
* 完整校验,和 validate 的区别就是会给有效数据中的每一行进行校验
|
|
27695
27823
|
*/
|
|
27696
27824
|
_fullValidate: function _fullValidate(rows, cb) {
|
|
27697
|
-
if (
|
|
27825
|
+
if (true) {
|
|
27698
27826
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
27699
27827
|
warnLog('vxe.error.notValidators', ['fullValidate(rows, callback)', 'fullValidate(rows)']);
|
|
27700
27828
|
}
|
|
@@ -27705,7 +27833,7 @@ function validErrorRuleValue(rule, val) {
|
|
|
27705
27833
|
* 快速校验,如果存在记录不通过的记录,则返回不再继续校验(异步校验除外)
|
|
27706
27834
|
*/
|
|
27707
27835
|
_validate: function _validate(rows, cb) {
|
|
27708
|
-
if (
|
|
27836
|
+
if (true) {
|
|
27709
27837
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(cb)) {
|
|
27710
27838
|
warnLog('vxe.error.notValidators', ['validate(rows, callback)', 'validate(rows)']);
|
|
27711
27839
|
}
|
|
@@ -27950,12 +28078,12 @@ function validErrorRuleValue(rule, val) {
|
|
|
27950
28078
|
if (gvItem.cellValidatorMethod) {
|
|
27951
28079
|
customValid = gvItem.cellValidatorMethod(validParams);
|
|
27952
28080
|
} else {
|
|
27953
|
-
if (
|
|
28081
|
+
if (true) {
|
|
27954
28082
|
warnLog('vxe.error.notValidators', [validator]);
|
|
27955
28083
|
}
|
|
27956
28084
|
}
|
|
27957
28085
|
} else {
|
|
27958
|
-
if (
|
|
28086
|
+
if (true) {
|
|
27959
28087
|
errLog('vxe.error.notValidators', [validator]);
|
|
27960
28088
|
}
|
|
27961
28089
|
}
|
|
@@ -28308,7 +28436,7 @@ var table_getConfig = core_.VxeUI.getConfig,
|
|
|
28308
28436
|
table_renderer = core_.VxeUI.renderer,
|
|
28309
28437
|
table_globalResize = core_.VxeUI.globalResize,
|
|
28310
28438
|
table_globalEvents = core_.VxeUI.globalEvents,
|
|
28311
|
-
|
|
28439
|
+
table_globalMixins = core_.VxeUI.globalMixins;
|
|
28312
28440
|
/**
|
|
28313
28441
|
* 渲染浮固定列
|
|
28314
28442
|
* 分别渲染左边固定列和右边固定列
|
|
@@ -28389,7 +28517,7 @@ function handleUupdateResize(_vm) {
|
|
|
28389
28517
|
}
|
|
28390
28518
|
/* harmony default export */ var table = ({
|
|
28391
28519
|
name: 'VxeTable',
|
|
28392
|
-
mixins: [
|
|
28520
|
+
mixins: [table_globalMixins.sizeMixin, mixin, menu_mixin, edit_mixin, export_mixin, keyboard_mixin, validator_mixin, custom_mixin],
|
|
28393
28521
|
props: src_props,
|
|
28394
28522
|
provide: function provide() {
|
|
28395
28523
|
return {
|
|
@@ -28639,15 +28767,24 @@ function handleUupdateResize(_vm) {
|
|
|
28639
28767
|
return '';
|
|
28640
28768
|
},
|
|
28641
28769
|
validOpts: function validOpts() {
|
|
28770
|
+
return this.computeValidOpts;
|
|
28771
|
+
},
|
|
28772
|
+
computeValidOpts: function computeValidOpts() {
|
|
28642
28773
|
return Object.assign({
|
|
28643
28774
|
message: 'default'
|
|
28644
|
-
}, table_getConfig().table.validConfig, this.validConfig);
|
|
28775
|
+
}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.validConfig, true), this.validConfig);
|
|
28645
28776
|
},
|
|
28646
28777
|
sXOpts: function sXOpts() {
|
|
28647
|
-
return
|
|
28778
|
+
return this.computeSXOpts;
|
|
28779
|
+
},
|
|
28780
|
+
computeSXOpts: function computeSXOpts() {
|
|
28781
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.scrollX, true), this.scrollX);
|
|
28648
28782
|
},
|
|
28649
28783
|
sYOpts: function sYOpts() {
|
|
28650
|
-
return
|
|
28784
|
+
return this.computeSYOpts;
|
|
28785
|
+
},
|
|
28786
|
+
computeSYOpts: function computeSYOpts() {
|
|
28787
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.scrollY, true), this.scrollY);
|
|
28651
28788
|
},
|
|
28652
28789
|
rowHeightMaps: function rowHeightMaps() {
|
|
28653
28790
|
return {
|
|
@@ -28658,30 +28795,54 @@ function handleUupdateResize(_vm) {
|
|
|
28658
28795
|
};
|
|
28659
28796
|
},
|
|
28660
28797
|
columnOpts: function columnOpts() {
|
|
28661
|
-
return
|
|
28798
|
+
return this.computeColumnOpts;
|
|
28799
|
+
},
|
|
28800
|
+
computeColumnOpts: function computeColumnOpts() {
|
|
28801
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.columnConfig, true), this.columnConfig);
|
|
28662
28802
|
},
|
|
28663
28803
|
rowOpts: function rowOpts() {
|
|
28664
|
-
return
|
|
28804
|
+
return this.computeRowOpts;
|
|
28805
|
+
},
|
|
28806
|
+
computeRowOpts: function computeRowOpts() {
|
|
28807
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.rowConfig, true), this.rowConfig);
|
|
28665
28808
|
},
|
|
28666
28809
|
resizeOpts: function resizeOpts() {
|
|
28667
|
-
return
|
|
28810
|
+
return this.computeResizeOpts;
|
|
28811
|
+
},
|
|
28812
|
+
computeResizeOpts: function computeResizeOpts() {
|
|
28813
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.resizeConfig, true), this.resizeConfig);
|
|
28668
28814
|
},
|
|
28669
28815
|
resizableOpts: function resizableOpts() {
|
|
28670
|
-
return
|
|
28816
|
+
return this.computeResizableOpts;
|
|
28817
|
+
},
|
|
28818
|
+
computeResizableOpts: function computeResizableOpts() {
|
|
28819
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.resizableConfig, true), this.resizableConfig);
|
|
28671
28820
|
},
|
|
28672
28821
|
seqOpts: function seqOpts() {
|
|
28822
|
+
return this.computeSeqOpts;
|
|
28823
|
+
},
|
|
28824
|
+
computeSeqOpts: function computeSeqOpts() {
|
|
28673
28825
|
return Object.assign({
|
|
28674
28826
|
startIndex: 0
|
|
28675
|
-
}, table_getConfig().table.seqConfig, this.seqConfig);
|
|
28827
|
+
}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.seqConfig, true), this.seqConfig);
|
|
28676
28828
|
},
|
|
28677
28829
|
radioOpts: function radioOpts() {
|
|
28678
|
-
return
|
|
28830
|
+
return this.computeRadioOpts;
|
|
28831
|
+
},
|
|
28832
|
+
computeRadioOpts: function computeRadioOpts() {
|
|
28833
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.radioConfig, true), this.radioConfig);
|
|
28679
28834
|
},
|
|
28680
28835
|
checkboxOpts: function checkboxOpts() {
|
|
28681
|
-
return
|
|
28836
|
+
return this.computeCheckboxOpts;
|
|
28837
|
+
},
|
|
28838
|
+
computeCheckboxOpts: function computeCheckboxOpts() {
|
|
28839
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.checkboxConfig, true), this.checkboxConfig);
|
|
28682
28840
|
},
|
|
28683
28841
|
tooltipOpts: function tooltipOpts() {
|
|
28684
|
-
return
|
|
28842
|
+
return this.computeTooltipOpts;
|
|
28843
|
+
},
|
|
28844
|
+
computeTooltipOpts: function computeTooltipOpts() {
|
|
28845
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().tooltip, true), external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.tooltipConfig, true), this.tooltipConfig);
|
|
28685
28846
|
},
|
|
28686
28847
|
tipConfig: function tipConfig() {
|
|
28687
28848
|
return _objectSpread2({}, this.tooltipOpts);
|
|
@@ -28692,34 +28853,54 @@ function handleUupdateResize(_vm) {
|
|
|
28692
28853
|
}, this.tooltipOpts);
|
|
28693
28854
|
},
|
|
28694
28855
|
editOpts: function editOpts() {
|
|
28695
|
-
return
|
|
28856
|
+
return this.computeEditOpts;
|
|
28857
|
+
},
|
|
28858
|
+
computeEditOpts: function computeEditOpts() {
|
|
28859
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.editConfig, true), this.editConfig);
|
|
28696
28860
|
},
|
|
28697
28861
|
sortOpts: function sortOpts() {
|
|
28862
|
+
return this.computeSortOpts;
|
|
28863
|
+
},
|
|
28864
|
+
computeSortOpts: function computeSortOpts() {
|
|
28698
28865
|
return Object.assign({
|
|
28699
28866
|
orders: ['asc', 'desc', null]
|
|
28700
|
-
}, table_getConfig().table.sortConfig, this.sortConfig);
|
|
28867
|
+
}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.sortConfig, true), this.sortConfig);
|
|
28701
28868
|
},
|
|
28702
28869
|
filterOpts: function filterOpts() {
|
|
28703
|
-
return
|
|
28870
|
+
return this.computeFilterOpts;
|
|
28871
|
+
},
|
|
28872
|
+
computeFilterOpts: function computeFilterOpts() {
|
|
28873
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.filterConfig, true), this.filterConfig);
|
|
28704
28874
|
},
|
|
28705
28875
|
mouseOpts: function mouseOpts() {
|
|
28706
|
-
return
|
|
28876
|
+
return this.computeMouseOpts;
|
|
28877
|
+
},
|
|
28878
|
+
computeMouseOpts: function computeMouseOpts() {
|
|
28879
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.mouseConfig, true), this.mouseConfig);
|
|
28707
28880
|
},
|
|
28708
28881
|
areaOpts: function areaOpts() {
|
|
28709
|
-
return
|
|
28882
|
+
return this.computeAreaOpts;
|
|
28883
|
+
},
|
|
28884
|
+
computeAreaOpts: function computeAreaOpts() {
|
|
28885
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.areaConfig, true), this.areaConfig);
|
|
28710
28886
|
},
|
|
28711
28887
|
keyboardOpts: function keyboardOpts() {
|
|
28712
|
-
return
|
|
28888
|
+
return this.computeKeyboardOpts;
|
|
28889
|
+
},
|
|
28890
|
+
computeKeyboardOpts: function computeKeyboardOpts() {
|
|
28891
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.keyboardConfig, true), this.keyboardConfig);
|
|
28713
28892
|
},
|
|
28714
28893
|
clipOpts: function clipOpts() {
|
|
28715
|
-
return
|
|
28894
|
+
return this.computeClipOpts;
|
|
28895
|
+
},
|
|
28896
|
+
computeClipOpts: function computeClipOpts() {
|
|
28897
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.clipConfig, true), this.clipConfig);
|
|
28716
28898
|
},
|
|
28717
28899
|
fnrOpts: function fnrOpts() {
|
|
28718
|
-
return
|
|
28900
|
+
return this.computeFNROpts;
|
|
28719
28901
|
},
|
|
28720
|
-
|
|
28721
|
-
return true;
|
|
28722
|
-
// return VXETable._tooltip
|
|
28902
|
+
computeFNROpts: function computeFNROpts() {
|
|
28903
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.fnrConfig, true), this.fnrConfig);
|
|
28723
28904
|
},
|
|
28724
28905
|
headerCtxMenu: function headerCtxMenu() {
|
|
28725
28906
|
var headerOpts = this.ctxMenuOpts.header;
|
|
@@ -28736,9 +28917,6 @@ function handleUupdateResize(_vm) {
|
|
|
28736
28917
|
isCtxMenu: function isCtxMenu() {
|
|
28737
28918
|
return !!((this.contextMenu || this.menuConfig) && isEnableConf(this.ctxMenuOpts) && (this.headerCtxMenu.length || this.bodyCtxMenu.length || this.footerCtxMenu.length));
|
|
28738
28919
|
},
|
|
28739
|
-
ctxMenuOpts: function ctxMenuOpts() {
|
|
28740
|
-
return Object.assign({}, table_getConfig().table.menuConfig, this.contextMenu, this.menuConfig);
|
|
28741
|
-
},
|
|
28742
28920
|
ctxMenuList: function ctxMenuList() {
|
|
28743
28921
|
var rest = [];
|
|
28744
28922
|
this.ctxMenuStore.list.forEach(function (list) {
|
|
@@ -28748,36 +28926,63 @@ function handleUupdateResize(_vm) {
|
|
|
28748
28926
|
});
|
|
28749
28927
|
return rest;
|
|
28750
28928
|
},
|
|
28929
|
+
ctxMenuOpts: function ctxMenuOpts() {
|
|
28930
|
+
return this.computeMenuOpts;
|
|
28931
|
+
},
|
|
28932
|
+
computeMenuOpts: function computeMenuOpts() {
|
|
28933
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.menuConfig, true), this.contextMenu, this.menuConfig);
|
|
28934
|
+
},
|
|
28751
28935
|
exportOpts: function exportOpts() {
|
|
28752
|
-
return
|
|
28936
|
+
return this.computeExportOpts;
|
|
28937
|
+
},
|
|
28938
|
+
computeExportOpts: function computeExportOpts() {
|
|
28939
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.exportConfig, true), this.exportConfig);
|
|
28753
28940
|
},
|
|
28754
28941
|
importOpts: function importOpts() {
|
|
28755
|
-
return
|
|
28942
|
+
return this.computeImportOpts;
|
|
28943
|
+
},
|
|
28944
|
+
computeImportOpts: function computeImportOpts() {
|
|
28945
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.importConfig, true), this.importConfig);
|
|
28756
28946
|
},
|
|
28757
28947
|
printOpts: function printOpts() {
|
|
28758
|
-
return
|
|
28948
|
+
return this.computePrintOpts;
|
|
28949
|
+
},
|
|
28950
|
+
computePrintOpts: function computePrintOpts() {
|
|
28951
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.printConfig, true), this.printConfig);
|
|
28759
28952
|
},
|
|
28760
28953
|
expandOpts: function expandOpts() {
|
|
28761
|
-
return
|
|
28954
|
+
return this.computeExpandOpts;
|
|
28955
|
+
},
|
|
28956
|
+
computeExpandOpts: function computeExpandOpts() {
|
|
28957
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.expandConfig, true), this.expandConfig);
|
|
28762
28958
|
},
|
|
28763
28959
|
treeOpts: function treeOpts() {
|
|
28764
|
-
return
|
|
28960
|
+
return this.computeTreeOpts;
|
|
28961
|
+
},
|
|
28962
|
+
computeTreeOpts: function computeTreeOpts() {
|
|
28963
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.treeConfig, true), this.treeConfig);
|
|
28765
28964
|
},
|
|
28766
28965
|
emptyOpts: function emptyOpts() {
|
|
28767
|
-
return
|
|
28966
|
+
return this.computeEmptyOpts;
|
|
28967
|
+
},
|
|
28968
|
+
computeEmptyOpts: function computeEmptyOpts() {
|
|
28969
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.emptyRender, true), this.emptyRender);
|
|
28768
28970
|
},
|
|
28769
28971
|
loadingOpts: function loadingOpts() {
|
|
28770
|
-
return
|
|
28972
|
+
return this.computeLoadingOpts;
|
|
28973
|
+
},
|
|
28974
|
+
computeLoadingOpts: function computeLoadingOpts() {
|
|
28975
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.loadingConfig, true), this.loadingConfig);
|
|
28771
28976
|
},
|
|
28772
28977
|
cellOffsetWidth: function cellOffsetWidth() {
|
|
28773
28978
|
return this.border ? Math.max(2, Math.ceil(this.scrollbarWidth / this.tableColumn.length)) : 1;
|
|
28774
28979
|
},
|
|
28775
|
-
computeCustomOpts: function computeCustomOpts() {
|
|
28776
|
-
return Object.assign({}, table_getConfig().table.customConfig, this.customConfig);
|
|
28777
|
-
},
|
|
28778
28980
|
customOpts: function customOpts() {
|
|
28779
28981
|
return this.computeCustomOpts;
|
|
28780
28982
|
},
|
|
28983
|
+
computeCustomOpts: function computeCustomOpts() {
|
|
28984
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(table_getConfig().table.customConfig, true), this.customConfig);
|
|
28985
|
+
},
|
|
28781
28986
|
autoWidthColumnList: function autoWidthColumnList() {
|
|
28782
28987
|
var tableColumn = this.tableColumn,
|
|
28783
28988
|
visibleColumn = this.visibleColumn;
|
|
@@ -28998,7 +29203,7 @@ function handleUupdateResize(_vm) {
|
|
|
28998
29203
|
treeConfig = _Object$assign.treeConfig,
|
|
28999
29204
|
showOverflow = _Object$assign.showOverflow,
|
|
29000
29205
|
rowOpts = _Object$assign.rowOpts;
|
|
29001
|
-
if (
|
|
29206
|
+
if (true) {
|
|
29002
29207
|
if (this.rowId) {
|
|
29003
29208
|
warnLog('vxe.error.delProp', ['row-id', 'row-config.keyField']);
|
|
29004
29209
|
}
|
|
@@ -29054,7 +29259,7 @@ function handleUupdateResize(_vm) {
|
|
|
29054
29259
|
}).join(',') || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps).join(',')]);
|
|
29055
29260
|
}
|
|
29056
29261
|
}
|
|
29057
|
-
if (
|
|
29262
|
+
if (true) {
|
|
29058
29263
|
var customOpts = this.customOpts;
|
|
29059
29264
|
if (!this.id && this.customConfig && (customOpts.storage === true || customOpts.storage && customOpts.storage.resizable || customOpts.storage && customOpts.storage.visible)) {
|
|
29060
29265
|
errLog('vxe.error.reqProp', ['id']);
|
|
@@ -29094,7 +29299,7 @@ function handleUupdateResize(_vm) {
|
|
|
29094
29299
|
}
|
|
29095
29300
|
}
|
|
29096
29301
|
// v4 中只支持对象类型
|
|
29097
|
-
if (
|
|
29302
|
+
if (true) {
|
|
29098
29303
|
// 在 v3.0 中废弃 context-menu
|
|
29099
29304
|
if (this.contextMenu) {
|
|
29100
29305
|
warnLog('vxe.error.delProp', ['context-menu', 'menu-config']);
|
|
@@ -29137,7 +29342,7 @@ function handleUupdateResize(_vm) {
|
|
|
29137
29342
|
}
|
|
29138
29343
|
}
|
|
29139
29344
|
// 检查是否有安装需要的模块
|
|
29140
|
-
if (
|
|
29345
|
+
if (true) {
|
|
29141
29346
|
if (this.editConfig && !this._insert) {
|
|
29142
29347
|
errLog('vxe.error.reqModule', ['Edit']);
|
|
29143
29348
|
}
|
|
@@ -29184,7 +29389,9 @@ function handleUupdateResize(_vm) {
|
|
|
29184
29389
|
},
|
|
29185
29390
|
mounted: function mounted() {
|
|
29186
29391
|
var _this12 = this;
|
|
29187
|
-
|
|
29392
|
+
var $xeTable = this;
|
|
29393
|
+
var props = $xeTable;
|
|
29394
|
+
if (true) {
|
|
29188
29395
|
var $listeners = this.$listeners;
|
|
29189
29396
|
if (!this.menuConfig && ($listeners['menu-click'] || $listeners['cell-menu'] || $listeners['header-cell-menu'] || $listeners['footer-cell-menu'])) {
|
|
29190
29397
|
warnLog('vxe.error.reqProp', ['menu-config']);
|
|
@@ -29193,6 +29400,23 @@ function handleUupdateResize(_vm) {
|
|
|
29193
29400
|
warnLog('vxe.error.reqProp', ['tooltip-config']);
|
|
29194
29401
|
}
|
|
29195
29402
|
}
|
|
29403
|
+
if (true) {
|
|
29404
|
+
// 使用已安装的组件,如果未安装则不渲染
|
|
29405
|
+
var VxeUILoadingComponent = core_.VxeUI.getComponent('VxeLoading');
|
|
29406
|
+
var VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
29407
|
+
$xeTable.$nextTick(function () {
|
|
29408
|
+
if (props.loading) {
|
|
29409
|
+
if (!VxeUILoadingComponent) {
|
|
29410
|
+
errLog('vxe.error.reqComp', ['vxe-loading']);
|
|
29411
|
+
}
|
|
29412
|
+
}
|
|
29413
|
+
if (props.showOverflow === true || props.showOverflow === 'tooltip' || props.showHeaderOverflow === true || props.showHeaderOverflow === 'tooltip' || props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip' || props.tooltipConfig || props.editRules) {
|
|
29414
|
+
if (!VxeUITooltipComponent) {
|
|
29415
|
+
errLog('vxe.error.reqComp', ['vxe-tooltip']);
|
|
29416
|
+
}
|
|
29417
|
+
}
|
|
29418
|
+
});
|
|
29419
|
+
}
|
|
29196
29420
|
if (this.autoResize) {
|
|
29197
29421
|
var handleWrapperResize = this.resizeOpts.refreshDelay ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().throttle(function () {
|
|
29198
29422
|
return _this12.recalculate(true);
|
|
@@ -29247,6 +29471,9 @@ function handleUupdateResize(_vm) {
|
|
|
29247
29471
|
},
|
|
29248
29472
|
render: function render(h) {
|
|
29249
29473
|
var _ref;
|
|
29474
|
+
// 使用已安装的组件,如果未安装则不渲染
|
|
29475
|
+
var VxeUILoadingComponent = core_.VxeUI.getComponent('VxeLoading');
|
|
29476
|
+
var VxeUITooltipComponent = core_.VxeUI.getComponent('VxeTooltip');
|
|
29250
29477
|
var _e = this._e,
|
|
29251
29478
|
$scopedSlots = this.$scopedSlots,
|
|
29252
29479
|
tId = this.tId,
|
|
@@ -29264,7 +29491,7 @@ function handleUupdateResize(_vm) {
|
|
|
29264
29491
|
treeConfig = this.treeConfig,
|
|
29265
29492
|
mouseConfig = this.mouseConfig,
|
|
29266
29493
|
mouseOpts = this.mouseOpts,
|
|
29267
|
-
|
|
29494
|
+
computeSize = this.computeSize,
|
|
29268
29495
|
validOpts = this.validOpts,
|
|
29269
29496
|
showFooter = this.showFooter,
|
|
29270
29497
|
overflowX = this.overflowX,
|
|
@@ -29284,7 +29511,6 @@ function handleUupdateResize(_vm) {
|
|
|
29284
29511
|
ctxMenuStore = this.ctxMenuStore,
|
|
29285
29512
|
ctxMenuOpts = this.ctxMenuOpts,
|
|
29286
29513
|
footerTableData = this.footerTableData,
|
|
29287
|
-
hasTip = this.hasTip,
|
|
29288
29514
|
columnOpts = this.columnOpts,
|
|
29289
29515
|
rowOpts = this.rowOpts,
|
|
29290
29516
|
checkboxOpts = this.checkboxOpts,
|
|
@@ -29293,8 +29519,9 @@ function handleUupdateResize(_vm) {
|
|
|
29293
29519
|
var leftList = columnStore.leftList,
|
|
29294
29520
|
rightList = columnStore.rightList;
|
|
29295
29521
|
var currLoading = this._isLoading || loading;
|
|
29522
|
+
var vSize = computeSize;
|
|
29296
29523
|
return h('div', {
|
|
29297
|
-
class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "valid-msg--".concat(validOpts.msgMode), !!editRules), 'vxe-editable', !!editConfig), 'old-cell-valid', editRules && table_getConfig().cellVaildMode === 'obsolete'), 'cell--highlight', highlightCell), 'cell--selected', mouseConfig && mouseOpts.selected), 'cell--area', mouseConfig && mouseOpts.area), 'row--highlight', rowOpts.isHover || highlightHoverRow), 'column--highlight', columnOpts.isHover || highlightHoverColumn), 'checkbox--range', checkboxOpts.range), 'column--calc', isCalcColumn), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--header', showHeader), 'is--footer', showFooter), 'is--group', isGroup), 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), 'is--fixed-left', leftList.length), 'is--fixed-right', rightList.length), 'is--animat', !!this.animat), 'is--round', this.round), 'is--stripe', !treeConfig && stripe),
|
|
29524
|
+
class: ['vxe-table', 'vxe-table--render-default', "tid_".concat(tId), vSize ? "size--".concat(vSize) : '', "border--".concat(tableBorder), (_ref = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, "valid-msg--".concat(validOpts.msgMode), !!editRules), 'vxe-editable', !!editConfig), 'old-cell-valid', editRules && table_getConfig().cellVaildMode === 'obsolete'), 'cell--highlight', highlightCell), 'cell--selected', mouseConfig && mouseOpts.selected), 'cell--area', mouseConfig && mouseOpts.area), 'row--highlight', rowOpts.isHover || highlightHoverRow), 'column--highlight', columnOpts.isHover || highlightHoverColumn), 'checkbox--range', checkboxOpts.range), 'column--calc', isCalcColumn), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--header', showHeader), 'is--footer', showFooter), 'is--group', isGroup), 'is--tree-line', treeConfig && (treeOpts.showLine || treeOpts.line)), 'is--fixed-left', leftList.length), 'is--fixed-right', rightList.length), 'is--animat', !!this.animat), 'is--padding', this.padding), 'is--round', this.round), 'is--stripe', !treeConfig && stripe), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref, 'is--loading', currLoading), 'is--empty', !currLoading && !tableData.length), 'is--scroll-y', overflowY), 'is--scroll-x', overflowX), 'is--virtual-x', scrollXLoad), 'is--virtual-y', scrollYLoad))],
|
|
29298
29525
|
attrs: {
|
|
29299
29526
|
spellcheck: false
|
|
29300
29527
|
},
|
|
@@ -29385,14 +29612,14 @@ function handleUupdateResize(_vm) {
|
|
|
29385
29612
|
/**
|
|
29386
29613
|
* 加载中
|
|
29387
29614
|
*/
|
|
29388
|
-
h(
|
|
29615
|
+
VxeUILoadingComponent ? h(VxeUILoadingComponent, {
|
|
29389
29616
|
class: 'vxe-table--loading',
|
|
29390
29617
|
props: {
|
|
29391
29618
|
value: currLoading,
|
|
29392
29619
|
icon: loadingOpts.icon,
|
|
29393
29620
|
text: loadingOpts.text
|
|
29394
29621
|
}
|
|
29395
|
-
}, this.callSlot($scopedSlots.loading, {}, h)),
|
|
29622
|
+
}, this.callSlot($scopedSlots.loading, {}, h)) : _e(),
|
|
29396
29623
|
/**
|
|
29397
29624
|
* 自定义列
|
|
29398
29625
|
*/
|
|
@@ -29442,7 +29669,7 @@ function handleUupdateResize(_vm) {
|
|
|
29442
29669
|
/**
|
|
29443
29670
|
* 通用提示
|
|
29444
29671
|
*/
|
|
29445
|
-
|
|
29672
|
+
VxeUITooltipComponent ? h(VxeUITooltipComponent, {
|
|
29446
29673
|
ref: 'commTip',
|
|
29447
29674
|
props: {
|
|
29448
29675
|
isArrow: false,
|
|
@@ -29452,14 +29679,14 @@ function handleUupdateResize(_vm) {
|
|
|
29452
29679
|
/**
|
|
29453
29680
|
* 工具提示
|
|
29454
29681
|
*/
|
|
29455
|
-
|
|
29682
|
+
VxeUITooltipComponent ? h(VxeUITooltipComponent, {
|
|
29456
29683
|
ref: 'tooltip',
|
|
29457
29684
|
props: Object.assign({}, this.tipConfig, this.tooltipStore.currOpts)
|
|
29458
29685
|
}) : _e(),
|
|
29459
29686
|
/**
|
|
29460
29687
|
* 校验提示
|
|
29461
29688
|
*/
|
|
29462
|
-
|
|
29689
|
+
VxeUITooltipComponent && this.editRules && validOpts.showMessage && (validOpts.message === 'default' ? !height : validOpts.message === 'tooltip') ? h(VxeUITooltipComponent, {
|
|
29463
29690
|
ref: 'validTip',
|
|
29464
29691
|
class: [{
|
|
29465
29692
|
'old-cell-valid': editRules && table_getConfig().cellVaildMode === 'obsolete'
|
|
@@ -29496,7 +29723,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
29496
29723
|
toolbar_commands = core_.VxeUI.commands,
|
|
29497
29724
|
createEvent = core_.VxeUI.createEvent,
|
|
29498
29725
|
toolbar_globalMixins = core_.VxeUI.globalMixins,
|
|
29499
|
-
|
|
29726
|
+
toolbar_renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
29500
29727
|
/* harmony default export */ var src_toolbar = (defineVxeComponent({
|
|
29501
29728
|
name: 'VxeToolbar',
|
|
29502
29729
|
mixins: [toolbar_globalMixins.sizeMixin],
|
|
@@ -29559,32 +29786,32 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
29559
29786
|
computeRefreshOpts: function computeRefreshOpts() {
|
|
29560
29787
|
var $xeToolbar = this;
|
|
29561
29788
|
var props = $xeToolbar;
|
|
29562
|
-
return Object.assign({}, toolbar_getConfig().toolbar.refresh, props.refresh);
|
|
29789
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.refresh, true), props.refresh);
|
|
29563
29790
|
},
|
|
29564
29791
|
computeImportOpts: function computeImportOpts() {
|
|
29565
29792
|
var $xeToolbar = this;
|
|
29566
29793
|
var props = $xeToolbar;
|
|
29567
|
-
return Object.assign({}, toolbar_getConfig().toolbar.import, props.import);
|
|
29794
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.import, true), props.import);
|
|
29568
29795
|
},
|
|
29569
29796
|
computeExportOpts: function computeExportOpts() {
|
|
29570
29797
|
var $xeToolbar = this;
|
|
29571
29798
|
var props = $xeToolbar;
|
|
29572
|
-
return Object.assign({}, toolbar_getConfig().toolbar.export, props.export);
|
|
29799
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.export, true), props.export);
|
|
29573
29800
|
},
|
|
29574
29801
|
computePrintOpts: function computePrintOpts() {
|
|
29575
29802
|
var $xeToolbar = this;
|
|
29576
29803
|
var props = $xeToolbar;
|
|
29577
|
-
return Object.assign({}, toolbar_getConfig().toolbar.print, props.print);
|
|
29804
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.print, true), props.print);
|
|
29578
29805
|
},
|
|
29579
29806
|
computeZoomOpts: function computeZoomOpts() {
|
|
29580
29807
|
var $xeToolbar = this;
|
|
29581
29808
|
var props = $xeToolbar;
|
|
29582
|
-
return Object.assign({}, toolbar_getConfig().toolbar.zoom, props.zoom);
|
|
29809
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.zoom, true), props.zoom);
|
|
29583
29810
|
},
|
|
29584
29811
|
computeCustomOpts: function computeCustomOpts() {
|
|
29585
29812
|
var $xeToolbar = this;
|
|
29586
29813
|
var props = $xeToolbar;
|
|
29587
|
-
return Object.assign({}, toolbar_getConfig().toolbar.custom, props.custom);
|
|
29814
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(toolbar_getConfig().toolbar.custom, true), props.custom);
|
|
29588
29815
|
},
|
|
29589
29816
|
computeTableCustomOpts: function computeTableCustomOpts() {
|
|
29590
29817
|
var $xeToolbar = this;
|
|
@@ -29835,7 +30062,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
29835
30062
|
if (dropdowns) {
|
|
29836
30063
|
return dropdowns.map(function (child, index) {
|
|
29837
30064
|
if (child.visible === false) {
|
|
29838
|
-
return
|
|
30065
|
+
return toolbar_renderEmptyElement($xeToolbar);
|
|
29839
30066
|
}
|
|
29840
30067
|
return VxeUIButtonComponent ? h(VxeUIButtonComponent, {
|
|
29841
30068
|
key: index,
|
|
@@ -29848,7 +30075,12 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
29848
30075
|
circle: child.circle,
|
|
29849
30076
|
round: child.round,
|
|
29850
30077
|
status: child.status,
|
|
29851
|
-
content: child.name
|
|
30078
|
+
content: child.name,
|
|
30079
|
+
title: child.title,
|
|
30080
|
+
routerLink: child.routerLink,
|
|
30081
|
+
permissionCode: child.permissionCode,
|
|
30082
|
+
prefixTooltip: child.prefixTooltip,
|
|
30083
|
+
suffixTooltip: child.suffixTooltip
|
|
29852
30084
|
},
|
|
29853
30085
|
on: {
|
|
29854
30086
|
click: function click(_ref6) {
|
|
@@ -29856,7 +30088,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
29856
30088
|
return isBtn ? $xeToolbar.btnEvent($event, child) : $xeToolbar.tolEvent($event, child);
|
|
29857
30089
|
}
|
|
29858
30090
|
}
|
|
29859
|
-
}) :
|
|
30091
|
+
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
29860
30092
|
});
|
|
29861
30093
|
}
|
|
29862
30094
|
return downVNs;
|
|
@@ -29905,7 +30137,11 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
29905
30137
|
round: item.round,
|
|
29906
30138
|
status: item.status,
|
|
29907
30139
|
content: item.name,
|
|
30140
|
+
title: item.title,
|
|
30141
|
+
routerLink: item.routerLink,
|
|
29908
30142
|
permissionCode: item.permissionCode,
|
|
30143
|
+
prefixTooltip: item.prefixTooltip,
|
|
30144
|
+
suffixTooltip: item.suffixTooltip,
|
|
29909
30145
|
destroyOnClose: item.destroyOnClose,
|
|
29910
30146
|
placement: item.placement,
|
|
29911
30147
|
transfer: item.transfer
|
|
@@ -29975,6 +30211,11 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
29975
30211
|
round: item.round,
|
|
29976
30212
|
status: item.status,
|
|
29977
30213
|
content: item.name,
|
|
30214
|
+
title: item.title,
|
|
30215
|
+
routerLink: item.routerLink,
|
|
30216
|
+
permissionCode: item.permissionCode,
|
|
30217
|
+
prefixTooltip: item.prefixTooltip,
|
|
30218
|
+
suffixTooltip: item.suffixTooltip,
|
|
29978
30219
|
destroyOnClose: item.destroyOnClose,
|
|
29979
30220
|
placement: item.placement,
|
|
29980
30221
|
transfer: item.transfer
|
|
@@ -30013,7 +30254,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
30013
30254
|
on: {
|
|
30014
30255
|
click: $xeToolbar.importEvent
|
|
30015
30256
|
}
|
|
30016
|
-
}) :
|
|
30257
|
+
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30017
30258
|
},
|
|
30018
30259
|
renderToolExport: function renderToolExport(h) {
|
|
30019
30260
|
// 使用已安装的组件,如果未安装则不渲染
|
|
@@ -30030,7 +30271,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
30030
30271
|
on: {
|
|
30031
30272
|
click: $xeToolbar.exportEvent
|
|
30032
30273
|
}
|
|
30033
|
-
}) :
|
|
30274
|
+
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30034
30275
|
},
|
|
30035
30276
|
renderToolPrint: function renderToolPrint(h) {
|
|
30036
30277
|
// 使用已安装的组件,如果未安装则不渲染
|
|
@@ -30047,7 +30288,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
30047
30288
|
on: {
|
|
30048
30289
|
click: $xeToolbar.printEvent
|
|
30049
30290
|
}
|
|
30050
|
-
}) :
|
|
30291
|
+
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30051
30292
|
},
|
|
30052
30293
|
renderToolRefresh: function renderToolRefresh(h) {
|
|
30053
30294
|
// 使用已安装的组件,如果未安装则不渲染
|
|
@@ -30065,7 +30306,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
30065
30306
|
on: {
|
|
30066
30307
|
click: $xeToolbar.refreshEvent
|
|
30067
30308
|
}
|
|
30068
|
-
}) :
|
|
30309
|
+
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30069
30310
|
},
|
|
30070
30311
|
renderToolZoom: function renderToolZoom(h) {
|
|
30071
30312
|
// 使用已安装的组件,如果未安装则不渲染
|
|
@@ -30083,7 +30324,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
30083
30324
|
on: {
|
|
30084
30325
|
click: $xeToolbar.zoomEvent
|
|
30085
30326
|
}
|
|
30086
|
-
}) :
|
|
30327
|
+
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30087
30328
|
},
|
|
30088
30329
|
renderToolCustom: function renderToolCustom(h) {
|
|
30089
30330
|
// 使用已安装的组件,如果未安装则不渲染
|
|
@@ -30111,7 +30352,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
30111
30352
|
className: 'vxe-toolbar-custom-target'
|
|
30112
30353
|
},
|
|
30113
30354
|
on: customBtnOns
|
|
30114
|
-
}) :
|
|
30355
|
+
}) : toolbar_renderEmptyElement($xeToolbar);
|
|
30115
30356
|
},
|
|
30116
30357
|
renderVN: function renderVN(h) {
|
|
30117
30358
|
var $xeToolbar = this;
|
|
@@ -30147,7 +30388,7 @@ var toolbar_getConfig = core_.VxeUI.getConfig,
|
|
|
30147
30388
|
$table: $table
|
|
30148
30389
|
}) : $xeToolbar.renderRightTools(h)), h('div', {
|
|
30149
30390
|
class: 'vxe-tools--operate'
|
|
30150
|
-
}, [props.import ? $xeToolbar.renderToolImport(h) :
|
|
30391
|
+
}, [props.import ? $xeToolbar.renderToolImport(h) : toolbar_renderEmptyElement($xeToolbar), props.export ? $xeToolbar.renderToolExport(h) : toolbar_renderEmptyElement($xeToolbar), props.print ? $xeToolbar.renderToolPrint(h) : toolbar_renderEmptyElement($xeToolbar), refresh ? $xeToolbar.renderToolRefresh(h) : toolbar_renderEmptyElement($xeToolbar), zoom && $xeGrid ? $xeToolbar.renderToolZoom(h) : toolbar_renderEmptyElement($xeToolbar), custom ? $xeToolbar.renderToolCustom(h) : toolbar_renderEmptyElement($xeToolbar)])]);
|
|
30151
30392
|
}
|
|
30152
30393
|
},
|
|
30153
30394
|
created: function created() {
|
|
@@ -30225,16 +30466,19 @@ var grid_getConfig = core_.VxeUI.getConfig,
|
|
|
30225
30466
|
grid_getI18n = core_.VxeUI.getI18n,
|
|
30226
30467
|
grid_commands = core_.VxeUI.commands,
|
|
30227
30468
|
grid_globalEvents = core_.VxeUI.globalEvents,
|
|
30228
|
-
grid_globalMixins = core_.VxeUI.globalMixins
|
|
30469
|
+
grid_globalMixins = core_.VxeUI.globalMixins,
|
|
30470
|
+
grid_renderEmptyElement = core_.VxeUI.renderEmptyElement;
|
|
30229
30471
|
var grid_methods = {};
|
|
30230
30472
|
var propKeys = Object.keys(src_props);
|
|
30231
|
-
function renderDefaultForm(h,
|
|
30232
|
-
var
|
|
30233
|
-
|
|
30234
|
-
|
|
30235
|
-
|
|
30236
|
-
formConfig =
|
|
30237
|
-
|
|
30473
|
+
function renderDefaultForm(h, $xeGrid) {
|
|
30474
|
+
var VxeUIFormComponent = core_.VxeUI.getComponent('VxeForm');
|
|
30475
|
+
var props = $xeGrid;
|
|
30476
|
+
var slots = $xeGrid.$scopedSlots;
|
|
30477
|
+
var proxyConfig = props.proxyConfig,
|
|
30478
|
+
formConfig = props.formConfig;
|
|
30479
|
+
var proxyOpts = $xeGrid.proxyOpts,
|
|
30480
|
+
formData = $xeGrid.formData,
|
|
30481
|
+
formOpts = $xeGrid.formOpts;
|
|
30238
30482
|
if (isEnableConf(formConfig) && formOpts.items && formOpts.items.length) {
|
|
30239
30483
|
var formSlots = {};
|
|
30240
30484
|
if (!formOpts.inited) {
|
|
@@ -30242,8 +30486,8 @@ function renderDefaultForm(h, _vm) {
|
|
|
30242
30486
|
var beforeItem = proxyOpts.beforeItem;
|
|
30243
30487
|
if (proxyOpts && beforeItem) {
|
|
30244
30488
|
formOpts.items.forEach(function (item) {
|
|
30245
|
-
beforeItem.call(
|
|
30246
|
-
$grid:
|
|
30489
|
+
beforeItem.call($xeGrid, {
|
|
30490
|
+
$grid: $xeGrid,
|
|
30247
30491
|
item: item
|
|
30248
30492
|
});
|
|
30249
30493
|
});
|
|
@@ -30253,36 +30497,36 @@ function renderDefaultForm(h, _vm) {
|
|
|
30253
30497
|
formOpts.items.forEach(function (item) {
|
|
30254
30498
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(item.slots, function (func) {
|
|
30255
30499
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
30256
|
-
if (
|
|
30257
|
-
formSlots[func] =
|
|
30500
|
+
if (slots[func]) {
|
|
30501
|
+
formSlots[func] = slots[func];
|
|
30258
30502
|
}
|
|
30259
30503
|
}
|
|
30260
30504
|
});
|
|
30261
30505
|
});
|
|
30262
|
-
return [h(
|
|
30506
|
+
return [VxeUIFormComponent ? h(VxeUIFormComponent, {
|
|
30263
30507
|
props: Object.assign({}, formOpts, {
|
|
30264
30508
|
data: proxyConfig && proxyOpts.form ? formData : formOpts.data
|
|
30265
30509
|
}),
|
|
30266
30510
|
on: {
|
|
30267
|
-
submit:
|
|
30268
|
-
reset:
|
|
30269
|
-
collapse:
|
|
30270
|
-
'submit-invalid':
|
|
30511
|
+
submit: $xeGrid.submitEvent,
|
|
30512
|
+
reset: $xeGrid.resetEvent,
|
|
30513
|
+
collapse: $xeGrid.collapseEvent,
|
|
30514
|
+
'submit-invalid': $xeGrid.submitInvalidEvent
|
|
30271
30515
|
},
|
|
30272
30516
|
scopedSlots: formSlots
|
|
30273
|
-
})];
|
|
30517
|
+
}) : grid_renderEmptyElement($xeGrid)];
|
|
30274
30518
|
}
|
|
30275
30519
|
return [];
|
|
30276
30520
|
}
|
|
30277
|
-
function getFuncSlot(
|
|
30278
|
-
var
|
|
30521
|
+
function getFuncSlot($xeGrid, optSlots, slotKey) {
|
|
30522
|
+
var slots = $xeGrid.$scopedSlots;
|
|
30279
30523
|
var funcSlot = optSlots[slotKey];
|
|
30280
30524
|
if (funcSlot) {
|
|
30281
30525
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(funcSlot)) {
|
|
30282
|
-
if (
|
|
30283
|
-
return
|
|
30526
|
+
if (slots[funcSlot]) {
|
|
30527
|
+
return slots[funcSlot];
|
|
30284
30528
|
} else {
|
|
30285
|
-
if (
|
|
30529
|
+
if (true) {
|
|
30286
30530
|
errLog('vxe.error.notSlot', [funcSlot]);
|
|
30287
30531
|
}
|
|
30288
30532
|
}
|
|
@@ -30299,7 +30543,7 @@ function getToolbarSlots(_vm) {
|
|
|
30299
30543
|
var buttonsSlot;
|
|
30300
30544
|
var toolsSlot;
|
|
30301
30545
|
var slots = {};
|
|
30302
|
-
if (
|
|
30546
|
+
if (true) {
|
|
30303
30547
|
if ($scopedSlots.buttons && (!toolbarOptSlots || toolbarOptSlots.buttons !== 'buttons')) {
|
|
30304
30548
|
warnLog('vxe.error.reqProp', ['toolbar-config.slots.buttons']);
|
|
30305
30549
|
}
|
|
@@ -30480,12 +30724,13 @@ function renderBottom(h, _vm) {
|
|
|
30480
30724
|
/**
|
|
30481
30725
|
* 渲染分页
|
|
30482
30726
|
*/
|
|
30483
|
-
function renderPager(h,
|
|
30484
|
-
var
|
|
30485
|
-
|
|
30486
|
-
|
|
30487
|
-
proxyConfig =
|
|
30488
|
-
|
|
30727
|
+
function renderPager(h, $xeGrid) {
|
|
30728
|
+
var VxeUIPagerComponent = core_.VxeUI.getComponent('VxePager');
|
|
30729
|
+
var props = $xeGrid;
|
|
30730
|
+
var pagerConfig = props.pagerConfig,
|
|
30731
|
+
proxyConfig = props.proxyConfig;
|
|
30732
|
+
var $scopedSlots = $xeGrid.$scopedSlots,
|
|
30733
|
+
tablePage = $xeGrid.tablePage;
|
|
30489
30734
|
var pagerSlot = $scopedSlots.pager;
|
|
30490
30735
|
var hasPager = !!(pagerSlot || isEnableConf(pagerConfig));
|
|
30491
30736
|
if (hasPager) {
|
|
@@ -30493,17 +30738,17 @@ function renderPager(h, _vm) {
|
|
|
30493
30738
|
key: 'pager',
|
|
30494
30739
|
ref: 'pagerWrapper',
|
|
30495
30740
|
class: 'vxe-grid--pager-wrapper'
|
|
30496
|
-
}, pagerSlot ? pagerSlot.call(
|
|
30497
|
-
$grid:
|
|
30498
|
-
}, h) : [h(
|
|
30499
|
-
props: _objectSpread2(_objectSpread2({},
|
|
30741
|
+
}, pagerSlot ? pagerSlot.call($xeGrid, {
|
|
30742
|
+
$grid: $xeGrid
|
|
30743
|
+
}, h) : [VxeUIPagerComponent ? h(VxeUIPagerComponent, {
|
|
30744
|
+
props: _objectSpread2(_objectSpread2({}, $xeGrid.pagerOpts), proxyConfig ? tablePage : {}),
|
|
30500
30745
|
on: {
|
|
30501
|
-
'page-change':
|
|
30746
|
+
'page-change': $xeGrid.pageChangeEvent
|
|
30502
30747
|
},
|
|
30503
|
-
scopedSlots: getPagerSlots(
|
|
30504
|
-
})]);
|
|
30748
|
+
scopedSlots: getPagerSlots($xeGrid)
|
|
30749
|
+
}) : grid_renderEmptyElement($xeGrid)]);
|
|
30505
30750
|
}
|
|
30506
|
-
return
|
|
30751
|
+
return grid_renderEmptyElement($xeGrid);
|
|
30507
30752
|
}
|
|
30508
30753
|
var defaultLayouts = ['Form', 'Toolbar', 'Top', 'Table', 'Bottom', 'Pager'];
|
|
30509
30754
|
function renderLayout(h, _vm) {
|
|
@@ -30534,7 +30779,7 @@ function renderLayout(h, _vm) {
|
|
|
30534
30779
|
vns.push(renderPager(h, _vm));
|
|
30535
30780
|
break;
|
|
30536
30781
|
default:
|
|
30537
|
-
if (
|
|
30782
|
+
if (true) {
|
|
30538
30783
|
errLog('vxe.error.notProp', ["layouts -> ".concat(name)]);
|
|
30539
30784
|
}
|
|
30540
30785
|
break;
|
|
@@ -30574,6 +30819,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
30574
30819
|
};
|
|
30575
30820
|
},
|
|
30576
30821
|
data: function data() {
|
|
30822
|
+
var _getConfig$pager;
|
|
30577
30823
|
return {
|
|
30578
30824
|
tableLoading: false,
|
|
30579
30825
|
isZMax: false,
|
|
@@ -30584,7 +30830,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
30584
30830
|
tZindex: 0,
|
|
30585
30831
|
tablePage: {
|
|
30586
30832
|
total: 0,
|
|
30587
|
-
pageSize: grid_getConfig().pager.pageSize || 10,
|
|
30833
|
+
pageSize: ((_getConfig$pager = grid_getConfig().pager) === null || _getConfig$pager === void 0 ? void 0 : _getConfig$pager.pageSize) || 10,
|
|
30588
30834
|
currentPage: 1
|
|
30589
30835
|
}
|
|
30590
30836
|
};
|
|
@@ -30598,19 +30844,34 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
30598
30844
|
return this.proxyOpts.showActiveMsg;
|
|
30599
30845
|
},
|
|
30600
30846
|
proxyOpts: function proxyOpts() {
|
|
30601
|
-
return
|
|
30847
|
+
return this.computeProxyOpts;
|
|
30848
|
+
},
|
|
30849
|
+
computeProxyOpts: function computeProxyOpts() {
|
|
30850
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(grid_getConfig().grid.proxyConfig, true), this.proxyConfig);
|
|
30602
30851
|
},
|
|
30603
30852
|
pagerOpts: function pagerOpts() {
|
|
30604
|
-
return
|
|
30853
|
+
return this.computePagerOpts;
|
|
30854
|
+
},
|
|
30855
|
+
computePagerOpts: function computePagerOpts() {
|
|
30856
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(grid_getConfig().grid.pagerConfig, true), this.pagerConfig);
|
|
30605
30857
|
},
|
|
30606
30858
|
formOpts: function formOpts() {
|
|
30607
|
-
return
|
|
30859
|
+
return this.computeFormOpts;
|
|
30860
|
+
},
|
|
30861
|
+
computeFormOpts: function computeFormOpts() {
|
|
30862
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(grid_getConfig().grid.formConfig, true), this.formConfig);
|
|
30608
30863
|
},
|
|
30609
30864
|
toolbarOpts: function toolbarOpts() {
|
|
30610
|
-
return
|
|
30865
|
+
return this.computeToolbarOpts;
|
|
30866
|
+
},
|
|
30867
|
+
computeToolbarOpts: function computeToolbarOpts() {
|
|
30868
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(grid_getConfig().grid.toolbarConfig, true), this.toolbarConfig || this.toolbar);
|
|
30611
30869
|
},
|
|
30612
30870
|
zoomOpts: function zoomOpts() {
|
|
30613
|
-
return
|
|
30871
|
+
return this.computeZoomOpts;
|
|
30872
|
+
},
|
|
30873
|
+
computeZoomOpts: function computeZoomOpts() {
|
|
30874
|
+
return Object.assign({}, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(grid_getConfig().grid.zoomConfig, true), this.zoomConfig);
|
|
30614
30875
|
},
|
|
30615
30876
|
renderStyle: function renderStyle() {
|
|
30616
30877
|
return this.isZMax ? {
|
|
@@ -30685,11 +30946,13 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
30685
30946
|
}
|
|
30686
30947
|
},
|
|
30687
30948
|
created: function created() {
|
|
30949
|
+
var $xeGrid = this;
|
|
30950
|
+
var props = $xeGrid;
|
|
30688
30951
|
// const { data, formOpts, proxyOpts, proxyConfig } = this
|
|
30689
30952
|
// if (proxyConfig && (data || (proxyOpts.form && formOpts.data))) {
|
|
30690
30953
|
// errLog('vxe.error.errConflicts', ['grid.data', 'grid.proxy-config'])
|
|
30691
30954
|
// }
|
|
30692
|
-
if (
|
|
30955
|
+
if (true) {
|
|
30693
30956
|
if (this.toolbar) {
|
|
30694
30957
|
warnLog('vxe.error.delProp', ['grid.toolbar', 'grid.toolbar-config']);
|
|
30695
30958
|
}
|
|
@@ -30700,6 +30963,23 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
30700
30963
|
// warnLog('vxe.error.delProp', ['proxy-config.props', 'proxy-config.response'])
|
|
30701
30964
|
// }
|
|
30702
30965
|
}
|
|
30966
|
+
if (true) {
|
|
30967
|
+
// 使用已安装的组件,如果未安装则不渲染
|
|
30968
|
+
var VxeUIFormComponent = core_.VxeUI.getComponent('VxeForm');
|
|
30969
|
+
var VxeUIPagerComponent = core_.VxeUI.getComponent('VxePager');
|
|
30970
|
+
$xeGrid.$nextTick(function () {
|
|
30971
|
+
if (props.formConfig) {
|
|
30972
|
+
if (!VxeUIFormComponent) {
|
|
30973
|
+
errLog('vxe.error.reqComp', ['vxe-form']);
|
|
30974
|
+
}
|
|
30975
|
+
}
|
|
30976
|
+
if (props.pagerConfig) {
|
|
30977
|
+
if (!VxeUIPagerComponent) {
|
|
30978
|
+
errLog('vxe.error.reqComp', ['vxe-pager']);
|
|
30979
|
+
}
|
|
30980
|
+
}
|
|
30981
|
+
});
|
|
30982
|
+
}
|
|
30703
30983
|
this.initPages();
|
|
30704
30984
|
grid_globalEvents.on(this, 'keydown', this.handleGlobalKeydownEvent);
|
|
30705
30985
|
},
|
|
@@ -30714,8 +30994,9 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
30714
30994
|
grid_globalEvents.off(this, 'keydown');
|
|
30715
30995
|
},
|
|
30716
30996
|
render: function render(h) {
|
|
30717
|
-
var
|
|
30997
|
+
var computeSize = this.computeSize,
|
|
30718
30998
|
isZMax = this.isZMax;
|
|
30999
|
+
var vSize = computeSize;
|
|
30719
31000
|
return h('div', {
|
|
30720
31001
|
class: ['vxe-grid', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--animat', !!this.animat), 'is--round', this.round), 'is--maximize', isZMax), 'is--loading', this.loading || this.tableLoading)],
|
|
30721
31002
|
style: this.renderStyle
|
|
@@ -30937,8 +31218,11 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
30937
31218
|
}
|
|
30938
31219
|
}
|
|
30939
31220
|
if (isInited) {
|
|
30940
|
-
var
|
|
30941
|
-
|
|
31221
|
+
var defaultSort = null;
|
|
31222
|
+
if ($xetable) {
|
|
31223
|
+
var sortOpts = $xetable.sortOpts;
|
|
31224
|
+
defaultSort = sortOpts.defaultSort;
|
|
31225
|
+
}
|
|
30942
31226
|
// 如果使用默认排序
|
|
30943
31227
|
if (defaultSort) {
|
|
30944
31228
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(defaultSort)) {
|
|
@@ -30952,14 +31236,18 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
30952
31236
|
};
|
|
30953
31237
|
});
|
|
30954
31238
|
}
|
|
30955
|
-
|
|
30956
|
-
} else {
|
|
30957
|
-
if (isReload) {
|
|
30958
|
-
$xetable.clearAll();
|
|
30959
|
-
} else {
|
|
30960
|
-
sortList = $xetable.getSortColumns();
|
|
31239
|
+
if ($xetable) {
|
|
30961
31240
|
filterList = $xetable.getCheckedFilters();
|
|
30962
31241
|
}
|
|
31242
|
+
} else {
|
|
31243
|
+
if ($xetable) {
|
|
31244
|
+
if (isReload) {
|
|
31245
|
+
$xetable.clearAll();
|
|
31246
|
+
} else {
|
|
31247
|
+
sortList = $xetable.getSortColumns();
|
|
31248
|
+
filterList = $xetable.getCheckedFilters();
|
|
31249
|
+
}
|
|
31250
|
+
}
|
|
30963
31251
|
}
|
|
30964
31252
|
var commitParams = {
|
|
30965
31253
|
code: code,
|
|
@@ -31031,7 +31319,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31031
31319
|
};
|
|
31032
31320
|
});
|
|
31033
31321
|
} else {
|
|
31034
|
-
if (
|
|
31322
|
+
if (true) {
|
|
31035
31323
|
errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
|
|
31036
31324
|
}
|
|
31037
31325
|
}
|
|
@@ -31070,7 +31358,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31070
31358
|
$xetable.setPendingRow(removeRecords, false);
|
|
31071
31359
|
if (isRespMsg) {
|
|
31072
31360
|
// 检测弹窗模块
|
|
31073
|
-
if (
|
|
31361
|
+
if (true) {
|
|
31074
31362
|
if (!core_.VxeUI.modal) {
|
|
31075
31363
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
31076
31364
|
}
|
|
@@ -31097,7 +31385,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31097
31385
|
_this5.tableLoading = false;
|
|
31098
31386
|
if (isRespMsg) {
|
|
31099
31387
|
// 检测弹窗模块
|
|
31100
|
-
if (
|
|
31388
|
+
if (true) {
|
|
31101
31389
|
if (!core_.VxeUI.modal) {
|
|
31102
31390
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
31103
31391
|
}
|
|
@@ -31121,7 +31409,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31121
31409
|
} else {
|
|
31122
31410
|
if (isActiveMsg) {
|
|
31123
31411
|
// 检测弹窗模块
|
|
31124
|
-
if (
|
|
31412
|
+
if (true) {
|
|
31125
31413
|
if (!core_.VxeUI.modal) {
|
|
31126
31414
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
31127
31415
|
}
|
|
@@ -31134,7 +31422,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31134
31422
|
}
|
|
31135
31423
|
}
|
|
31136
31424
|
} else {
|
|
31137
|
-
if (
|
|
31425
|
+
if (true) {
|
|
31138
31426
|
errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
|
|
31139
31427
|
}
|
|
31140
31428
|
}
|
|
@@ -31189,7 +31477,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31189
31477
|
$xetable.clearPendingRow();
|
|
31190
31478
|
if (isRespMsg) {
|
|
31191
31479
|
// 检测弹窗模块
|
|
31192
|
-
if (
|
|
31480
|
+
if (true) {
|
|
31193
31481
|
if (!core_.VxeUI.modal) {
|
|
31194
31482
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
31195
31483
|
}
|
|
@@ -31216,7 +31504,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31216
31504
|
_this5.tableLoading = false;
|
|
31217
31505
|
if (isRespMsg) {
|
|
31218
31506
|
// 检测弹窗模块
|
|
31219
|
-
if (
|
|
31507
|
+
if (true) {
|
|
31220
31508
|
if (!core_.VxeUI.modal) {
|
|
31221
31509
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
31222
31510
|
}
|
|
@@ -31239,7 +31527,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31239
31527
|
} else {
|
|
31240
31528
|
if (isActiveMsg) {
|
|
31241
31529
|
// 检测弹窗模块
|
|
31242
|
-
if (
|
|
31530
|
+
if (true) {
|
|
31243
31531
|
if (!core_.VxeUI.modal) {
|
|
31244
31532
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
31245
31533
|
}
|
|
@@ -31253,7 +31541,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31253
31541
|
}
|
|
31254
31542
|
});
|
|
31255
31543
|
} else {
|
|
31256
|
-
if (
|
|
31544
|
+
if (true) {
|
|
31257
31545
|
errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
|
|
31258
31546
|
}
|
|
31259
31547
|
}
|
|
@@ -31271,7 +31559,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31271
31559
|
$table: $xetable
|
|
31272
31560
|
}].concat(args));
|
|
31273
31561
|
} else {
|
|
31274
|
-
if (
|
|
31562
|
+
if (true) {
|
|
31275
31563
|
errLog('vxe.error.notCommands', [code]);
|
|
31276
31564
|
}
|
|
31277
31565
|
}
|
|
@@ -31304,7 +31592,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31304
31592
|
});
|
|
31305
31593
|
} else {
|
|
31306
31594
|
// 检测弹窗模块
|
|
31307
|
-
if (
|
|
31595
|
+
if (true) {
|
|
31308
31596
|
if (!core_.VxeUI.modal) {
|
|
31309
31597
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
31310
31598
|
}
|
|
@@ -31380,7 +31668,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31380
31668
|
} else {
|
|
31381
31669
|
if (isActiveMsg) {
|
|
31382
31670
|
// 检测弹窗模块
|
|
31383
|
-
if (
|
|
31671
|
+
if (true) {
|
|
31384
31672
|
if (!core_.VxeUI.modal) {
|
|
31385
31673
|
errLog('vxe.error.reqModule', ['Modal']);
|
|
31386
31674
|
}
|
|
@@ -31559,7 +31847,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31559
31847
|
}
|
|
31560
31848
|
return null;
|
|
31561
31849
|
}
|
|
31562
|
-
},
|
|
31850
|
+
}, true ? {
|
|
31563
31851
|
loadColumn: function loadColumn(columns) {
|
|
31564
31852
|
var $scopedSlots = this.$scopedSlots;
|
|
31565
31853
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(columns, function (column) {
|
|
@@ -31579,7 +31867,7 @@ Object.keys(table.methods).forEach(function (name) {
|
|
|
31579
31867
|
this.clearAll();
|
|
31580
31868
|
return this.loadColumn(columns);
|
|
31581
31869
|
}
|
|
31582
|
-
} :
|
|
31870
|
+
} : 0)
|
|
31583
31871
|
});
|
|
31584
31872
|
;// CONCATENATED MODULE: ./packages/grid/index.ts
|
|
31585
31873
|
|
|
@@ -31597,6 +31885,9 @@ if (core_.VxeUI.dynamicApp) {
|
|
|
31597
31885
|
core_.VxeUI.component(grid);
|
|
31598
31886
|
var Grid = VxeGrid;
|
|
31599
31887
|
/* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
|
|
31888
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
31889
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
31890
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
31600
31891
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
31601
31892
|
var es_number_to_fixed = __webpack_require__(9868);
|
|
31602
31893
|
;// CONCATENATED MODULE: ./packages/table/render/index.ts
|
|
@@ -31622,31 +31913,10 @@ var es_number_to_fixed = __webpack_require__(9868);
|
|
|
31622
31913
|
var render_getConfig = core_.VxeUI.getConfig,
|
|
31623
31914
|
render_renderer = core_.VxeUI.renderer,
|
|
31624
31915
|
render_getI18n = core_.VxeUI.getI18n;
|
|
31625
|
-
var componentDefaultModelProp = '
|
|
31916
|
+
var componentDefaultModelProp = 'value';
|
|
31626
31917
|
var defaultCompProps = {
|
|
31627
31918
|
transfer: true
|
|
31628
31919
|
};
|
|
31629
|
-
function getModelEvent(renderOpts) {
|
|
31630
|
-
switch (renderOpts.name) {
|
|
31631
|
-
case 'input':
|
|
31632
|
-
case 'textarea':
|
|
31633
|
-
return 'input';
|
|
31634
|
-
}
|
|
31635
|
-
return 'update:modelValue';
|
|
31636
|
-
}
|
|
31637
|
-
function getChangeEvent(renderOpts) {
|
|
31638
|
-
switch (renderOpts.name) {
|
|
31639
|
-
case 'input':
|
|
31640
|
-
case 'textarea':
|
|
31641
|
-
case 'VxeInput':
|
|
31642
|
-
case 'VxeNumberInput':
|
|
31643
|
-
case 'VxeTextarea':
|
|
31644
|
-
case '$input':
|
|
31645
|
-
case '$textarea':
|
|
31646
|
-
return 'input';
|
|
31647
|
-
}
|
|
31648
|
-
return 'change';
|
|
31649
|
-
}
|
|
31650
31920
|
function parseDate(value, props) {
|
|
31651
31921
|
return value && props.valueFormat ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(value, props.valueFormat) : value;
|
|
31652
31922
|
}
|
|
@@ -31656,7 +31926,7 @@ function getFormatDate(value, props, defaultFormat) {
|
|
|
31656
31926
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(parseDate(value, props), dateConfig.labelFormat || defaultFormat);
|
|
31657
31927
|
}
|
|
31658
31928
|
function getLabelFormatDate(value, props) {
|
|
31659
|
-
return getFormatDate(value, props, render_getI18n("vxe.input.date.labelFormat.".concat(props.type)));
|
|
31929
|
+
return getFormatDate(value, props, render_getI18n("vxe.input.date.labelFormat.".concat(props.type || 'date')));
|
|
31660
31930
|
}
|
|
31661
31931
|
/**
|
|
31662
31932
|
* 已废弃
|
|
@@ -31734,7 +32004,7 @@ function getCellLabelVNs(h, renderOpts, params, cellLabel) {
|
|
|
31734
32004
|
* @param modelFunc
|
|
31735
32005
|
* @param changeFunc
|
|
31736
32006
|
*/
|
|
31737
|
-
function
|
|
32007
|
+
function getNativeElementOns(renderOpts, params, modelFunc, changeFunc) {
|
|
31738
32008
|
var events = renderOpts.events;
|
|
31739
32009
|
var modelEvent = getModelEvent(renderOpts);
|
|
31740
32010
|
var changeEvent = getChangeEvent(renderOpts);
|
|
@@ -31859,7 +32129,7 @@ function getNativeEditOns(renderOpts, params) {
|
|
|
31859
32129
|
row = params.row,
|
|
31860
32130
|
column = params.column;
|
|
31861
32131
|
var model = column.model;
|
|
31862
|
-
return
|
|
32132
|
+
return getNativeElementOns(renderOpts, params, function (evnt) {
|
|
31863
32133
|
// 处理 model 值双向绑定
|
|
31864
32134
|
var cellValue = evnt.target.value;
|
|
31865
32135
|
if (isImmediateCell(renderOpts, params)) {
|
|
@@ -31875,7 +32145,7 @@ function getNativeEditOns(renderOpts, params) {
|
|
|
31875
32145
|
});
|
|
31876
32146
|
}
|
|
31877
32147
|
function getNativeFilterOns(renderOpts, params, option) {
|
|
31878
|
-
return
|
|
32148
|
+
return getNativeElementOns(renderOpts, params, function (evnt) {
|
|
31879
32149
|
// 处理 model 值双向绑定
|
|
31880
32150
|
option.data = evnt.target.value;
|
|
31881
32151
|
}, function () {
|
|
@@ -31968,7 +32238,7 @@ function renderNativeOptgroups(h, renderOpts, params, renderOptionsMethods) {
|
|
|
31968
32238
|
return optionGroups.map(function (group, gIndex) {
|
|
31969
32239
|
return h('optgroup', {
|
|
31970
32240
|
key: gIndex,
|
|
31971
|
-
|
|
32241
|
+
attrs: {
|
|
31972
32242
|
label: group[groupLabel]
|
|
31973
32243
|
}
|
|
31974
32244
|
}, renderOptionsMethods(h, group[groupOptions], renderOpts, params));
|
|
@@ -32293,15 +32563,7 @@ render_renderer.mixin({
|
|
|
32293
32563
|
column = params.column;
|
|
32294
32564
|
var cellValue = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(row, column.field);
|
|
32295
32565
|
if (cellValue) {
|
|
32296
|
-
|
|
32297
|
-
case 'date':
|
|
32298
|
-
case 'week':
|
|
32299
|
-
case 'month':
|
|
32300
|
-
case 'quarter':
|
|
32301
|
-
case 'year':
|
|
32302
|
-
cellValue = getLabelFormatDate(cellValue, props);
|
|
32303
|
-
break;
|
|
32304
|
-
}
|
|
32566
|
+
cellValue = getLabelFormatDate(cellValue, props);
|
|
32305
32567
|
}
|
|
32306
32568
|
return getCellLabelVNs(h, renderOpts, params, cellValue);
|
|
32307
32569
|
},
|
|
@@ -32310,7 +32572,8 @@ render_renderer.mixin({
|
|
|
32310
32572
|
tableFilterDefaultMethod: handleFilterMethod
|
|
32311
32573
|
},
|
|
32312
32574
|
VxeTextarea: {
|
|
32313
|
-
tableAutoFocus: '
|
|
32575
|
+
tableAutoFocus: 'textarea',
|
|
32576
|
+
renderTableEdit: defaultEditRender
|
|
32314
32577
|
},
|
|
32315
32578
|
VxeButton: {
|
|
32316
32579
|
renderTableDefault: buttonCellRender
|
|
@@ -32418,6 +32681,20 @@ render_renderer.mixin({
|
|
|
32418
32681
|
})];
|
|
32419
32682
|
}
|
|
32420
32683
|
},
|
|
32684
|
+
VxeTextEllipsis: {
|
|
32685
|
+
renderTableDefault: function renderTableDefault(h, renderOpts, params) {
|
|
32686
|
+
var row = params.row,
|
|
32687
|
+
column = params.column;
|
|
32688
|
+
var props = renderOpts.props;
|
|
32689
|
+
var cellValue = getCellValue(row, column);
|
|
32690
|
+
return [h(getDefaultComponent(renderOpts), {
|
|
32691
|
+
props: _objectSpread2(_objectSpread2({}, props), {}, {
|
|
32692
|
+
content: cellValue
|
|
32693
|
+
}),
|
|
32694
|
+
on: getEditOns(renderOpts, params)
|
|
32695
|
+
})];
|
|
32696
|
+
}
|
|
32697
|
+
},
|
|
32421
32698
|
// 以下已废弃
|
|
32422
32699
|
$input: {
|
|
32423
32700
|
tableAutoFocus: '.vxe-input--inner',
|
|
@@ -32507,14 +32784,42 @@ render_renderer.mixin({
|
|
|
32507
32784
|
|
|
32508
32785
|
|
|
32509
32786
|
|
|
32787
|
+
|
|
32788
|
+
|
|
32789
|
+
var isReg = false;
|
|
32510
32790
|
var VxeTable = Object.assign({}, table, {
|
|
32511
32791
|
install: function install(app) {
|
|
32792
|
+
if (typeof window !== 'undefined' && window.VXETableMixin) {
|
|
32793
|
+
table.mixins.push(window.VXETableMixin);
|
|
32794
|
+
delete window.VXETableMixin;
|
|
32795
|
+
}
|
|
32796
|
+
// 兼容老版本
|
|
32797
|
+
if (typeof window !== 'undefined' && window.VxeTableExtendCellArea && window.VxeTableExtendCellArea.init) {
|
|
32798
|
+
window.VxeTableExtendCellArea.init(core_.VxeUI);
|
|
32799
|
+
delete window.VxeTableExtendCellArea;
|
|
32800
|
+
delete window.VXETablePro;
|
|
32801
|
+
} else if (typeof window !== 'undefined' && window.VXETablePro && window.VXETablePro.init) {
|
|
32802
|
+
window.VXETablePro.init(core_.VxeUI);
|
|
32803
|
+
delete window.VXETablePro;
|
|
32804
|
+
}
|
|
32805
|
+
if (!(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$vxe) {
|
|
32806
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$vxe = {
|
|
32807
|
+
t: core_.VxeUI.t,
|
|
32808
|
+
_t: core_.VxeUI._t
|
|
32809
|
+
};
|
|
32810
|
+
} else {
|
|
32811
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$vxe.t = core_.VxeUI.t;
|
|
32812
|
+
(external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$vxe._t = core_.VxeUI._t;
|
|
32813
|
+
}
|
|
32814
|
+
if (!isReg) {
|
|
32815
|
+
isReg = true;
|
|
32816
|
+
if (core_.VxeUI.dynamicApp) {
|
|
32817
|
+
core_.VxeUI.dynamicApp.component(table.name, table);
|
|
32818
|
+
}
|
|
32819
|
+
}
|
|
32512
32820
|
app.component(table.name, table);
|
|
32513
32821
|
}
|
|
32514
32822
|
});
|
|
32515
|
-
if (core_.VxeUI.dynamicApp) {
|
|
32516
|
-
core_.VxeUI.dynamicApp.component(table.name, table);
|
|
32517
|
-
}
|
|
32518
32823
|
core_.VxeUI.component(table);
|
|
32519
32824
|
var Table = VxeTable;
|
|
32520
32825
|
/* harmony default export */ var packages_table = ((/* unused pure expression or super */ null && (VxeTable)));
|
|
@@ -32737,7 +33042,8 @@ var Toolbar = VxeToolbar;
|
|
|
32737
33042
|
zoomIn: '最大化',
|
|
32738
33043
|
zoomOut: '还原',
|
|
32739
33044
|
close: '关闭',
|
|
32740
|
-
miniMaxSize: '最小化窗口的数量不能超过 {0} 个'
|
|
33045
|
+
miniMaxSize: '最小化窗口的数量不能超过 {0} 个',
|
|
33046
|
+
footPropErr: 'show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用'
|
|
32741
33047
|
},
|
|
32742
33048
|
drawer: {
|
|
32743
33049
|
close: '关闭'
|
|
@@ -33009,9 +33315,6 @@ var Toolbar = VxeToolbar;
|
|
|
33009
33315
|
ss: '秒'
|
|
33010
33316
|
}
|
|
33011
33317
|
},
|
|
33012
|
-
/**
|
|
33013
|
-
* 扩展插件
|
|
33014
|
-
*/
|
|
33015
33318
|
plugins: {
|
|
33016
33319
|
extendCellArea: {
|
|
33017
33320
|
area: {
|
|
@@ -33116,10 +33419,6 @@ var Toolbar = VxeToolbar;
|
|
|
33116
33419
|
notData: '无匹配项'
|
|
33117
33420
|
}
|
|
33118
33421
|
},
|
|
33119
|
-
/**
|
|
33120
|
-
* 以下废弃
|
|
33121
|
-
* @deprecated
|
|
33122
|
-
*/
|
|
33123
33422
|
pro: {
|
|
33124
33423
|
area: {
|
|
33125
33424
|
mergeErr: '无法对合并单元格进行该操作',
|
|
@@ -33243,6 +33542,9 @@ core_.VxeUI.setTheme('light');
|
|
|
33243
33542
|
;// CONCATENATED MODULE: ./index.ts
|
|
33244
33543
|
|
|
33245
33544
|
|
|
33545
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
33546
|
+
window.Vue.use(components_namespaceObject);
|
|
33547
|
+
}
|
|
33246
33548
|
|
|
33247
33549
|
/* harmony default export */ var index = (components_namespaceObject);
|
|
33248
33550
|
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|