vxe-table 3.8.6-beta.0 → 3.8.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/all.js +2 -0
- package/lib/all.min.js +1 -1
- package/lib/custom/src/panel.js +15 -1
- package/lib/custom/src/panel.min.js +1 -1
- package/lib/export/style/style.css +1 -0
- package/lib/export/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +43 -9
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +1 -0
- package/lib/input/src/input.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/style/style.css +10 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/tools/dom.js +2 -4
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +3 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/config.js +6 -2
- package/lib/v-x-e-table/src/config.min.js +1 -1
- package/lib/v-x-e-table/src/theme.js +17 -0
- package/lib/v-x-e-table/src/theme.min.js +1 -0
- package/lib/vxe-table/style/style.css +10 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-table-export-module/style/style.css +1 -0
- package/lib/vxe-table-export-module/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/all.js +2 -0
- package/packages/custom/src/panel.js +14 -1
- package/packages/input/src/input.js +1 -0
- package/packages/tools/dom.js +2 -4
- package/packages/v-x-e-table/index.js +3 -0
- package/packages/v-x-e-table/src/config.js +6 -2
- package/packages/v-x-e-table/src/theme.js +11 -0
- package/styles/export.scss +1 -0
- package/styles/table.scss +8 -0
- /package/lib/icon/style/{iconfont.1715127150277.ttf → iconfont.1715224576202.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1715127150277.woff → iconfont.1715224576202.woff} +0 -0
- /package/lib/icon/style/{iconfont.1715127150277.woff2 → iconfont.1715224576202.woff2} +0 -0
- /package/lib/{iconfont.1715127150277.ttf → iconfont.1715224576202.ttf} +0 -0
- /package/lib/{iconfont.1715127150277.woff → iconfont.1715224576202.woff} +0 -0
- /package/lib/{iconfont.1715127150277.woff2 → iconfont.1715224576202.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11346,7 +11346,7 @@ var es_array_concat = __webpack_require__(8706);
|
|
|
11346
11346
|
|
|
11347
11347
|
|
|
11348
11348
|
function getLog(message, params) {
|
|
11349
|
-
return "[vxe-table v".concat("3.8.6-beta.
|
|
11349
|
+
return "[vxe-table v".concat("3.8.6-beta.1", "] ").concat(conf.i18n(message, params));
|
|
11350
11350
|
}
|
|
11351
11351
|
function outLog(type) {
|
|
11352
11352
|
return function (message, params) {
|
|
@@ -12954,17 +12954,32 @@ var Store = /*#__PURE__*/function () {
|
|
|
12954
12954
|
|
|
12955
12955
|
var validators = new store();
|
|
12956
12956
|
if (false) {}
|
|
12957
|
+
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/theme.js
|
|
12958
|
+
|
|
12959
|
+
function setTheme(options) {
|
|
12960
|
+
var theme = (options ? options.theme : null) || conf.theme || 'default';
|
|
12961
|
+
if (typeof document !== 'undefined') {
|
|
12962
|
+
var documentElement = document.documentElement;
|
|
12963
|
+
if (documentElement) {
|
|
12964
|
+
documentElement.setAttribute('data-vxe-table-theme', theme);
|
|
12965
|
+
}
|
|
12966
|
+
}
|
|
12967
|
+
}
|
|
12957
12968
|
;// CONCATENATED MODULE: ./packages/v-x-e-table/src/config.js
|
|
12958
12969
|
|
|
12959
12970
|
|
|
12960
12971
|
|
|
12961
12972
|
|
|
12973
|
+
|
|
12962
12974
|
/**
|
|
12963
12975
|
* 全局参数设置
|
|
12964
12976
|
*/
|
|
12965
12977
|
function config(options) {
|
|
12966
|
-
if (options
|
|
12967
|
-
|
|
12978
|
+
if (options) {
|
|
12979
|
+
setTheme(options);
|
|
12980
|
+
if (options.zIndex) {
|
|
12981
|
+
index_esm.setCurrent(options.zIndex);
|
|
12982
|
+
}
|
|
12968
12983
|
}
|
|
12969
12984
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().merge(conf, options);
|
|
12970
12985
|
}
|
|
@@ -12983,6 +12998,7 @@ function config(options) {
|
|
|
12983
12998
|
|
|
12984
12999
|
|
|
12985
13000
|
|
|
13001
|
+
|
|
12986
13002
|
var installedPlugins = [];
|
|
12987
13003
|
function use(Plugin, options) {
|
|
12988
13004
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
@@ -13067,7 +13083,7 @@ var setup = config;
|
|
|
13067
13083
|
var globalStore = {};
|
|
13068
13084
|
var VXETable = {
|
|
13069
13085
|
v: v,
|
|
13070
|
-
version: "3.8.6-beta.
|
|
13086
|
+
version: "3.8.6-beta.1",
|
|
13071
13087
|
reg: reg,
|
|
13072
13088
|
use: use,
|
|
13073
13089
|
setup: setup,
|
|
@@ -13084,6 +13100,7 @@ var VXETable = {
|
|
|
13084
13100
|
config: config,
|
|
13085
13101
|
globalConfs: globalConfs
|
|
13086
13102
|
};
|
|
13103
|
+
setTheme(globalStore);
|
|
13087
13104
|
|
|
13088
13105
|
|
|
13089
13106
|
|
|
@@ -13392,11 +13409,9 @@ var DomTools = {
|
|
|
13392
13409
|
});
|
|
13393
13410
|
},
|
|
13394
13411
|
getAbsolutePos: function getAbsolutePos(elem) {
|
|
13395
|
-
// 当主页面嵌套在iframe时,elem.getBoundingClientRect()仅计算在当前body内的边界距离,忽略了body所在的边界距离
|
|
13396
|
-
var bodyBounding = document.body.getBoundingClientRect();
|
|
13397
13412
|
var bounding = elem.getBoundingClientRect();
|
|
13398
|
-
var boundingTop = bounding.top
|
|
13399
|
-
var boundingLeft = bounding.left
|
|
13413
|
+
var boundingTop = bounding.top;
|
|
13414
|
+
var boundingLeft = bounding.left;
|
|
13400
13415
|
var _getDomNode = getDomNode(),
|
|
13401
13416
|
scrollTop = _getDomNode.scrollTop,
|
|
13402
13417
|
scrollLeft = _getDomNode.scrollLeft,
|
|
@@ -27281,6 +27296,8 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
27281
27296
|
|
|
27282
27297
|
|
|
27283
27298
|
|
|
27299
|
+
|
|
27300
|
+
|
|
27284
27301
|
|
|
27285
27302
|
|
|
27286
27303
|
|
|
@@ -29557,6 +29574,7 @@ function renderExtraSuffixIcon(h, _vm) {
|
|
|
29557
29574
|
visibleHeight = _DomTools$getAbsolute.visibleHeight,
|
|
29558
29575
|
visibleWidth = _DomTools$getAbsolute.visibleWidth;
|
|
29559
29576
|
var panelPlacement = 'bottom';
|
|
29577
|
+
console.log(dom.getAbsolutePos(targetElem));
|
|
29560
29578
|
if (transfer) {
|
|
29561
29579
|
var left = boundingLeft;
|
|
29562
29580
|
var top = boundingTop + targetHeight;
|
|
@@ -34547,6 +34565,7 @@ var Validator = VxeTableValidatorModule;
|
|
|
34547
34565
|
|
|
34548
34566
|
|
|
34549
34567
|
|
|
34568
|
+
|
|
34550
34569
|
var panel_formatText = utils.formatText;
|
|
34551
34570
|
var panel_addClass = dom.addClass,
|
|
34552
34571
|
panel_removeClass = dom.removeClass;
|
|
@@ -34953,7 +34972,20 @@ function renderPopupPanel(h, _vm) {
|
|
|
34953
34972
|
$xetable.emitCustomEvent('reset', evnt);
|
|
34954
34973
|
},
|
|
34955
34974
|
resetPopupCustomEvent: function resetPopupCustomEvent(evnt) {
|
|
34956
|
-
this
|
|
34975
|
+
var _this = this;
|
|
34976
|
+
if (v_x_e_table.modal) {
|
|
34977
|
+
v_x_e_table.modal.confirm({
|
|
34978
|
+
content: conf.i18n('vxe.custom.cstmConfirmRestore'),
|
|
34979
|
+
className: 'vxe-table--ignore-clear',
|
|
34980
|
+
escClosable: true
|
|
34981
|
+
}).then(function (type) {
|
|
34982
|
+
if (type === 'confirm') {
|
|
34983
|
+
_this.resetCustomEvent(evnt);
|
|
34984
|
+
}
|
|
34985
|
+
});
|
|
34986
|
+
} else {
|
|
34987
|
+
this.resetCustomEvent(evnt);
|
|
34988
|
+
}
|
|
34957
34989
|
},
|
|
34958
34990
|
handleOptionCheck: function handleOptionCheck(column) {
|
|
34959
34991
|
var $xetable = this.$xetable;
|
|
@@ -42197,6 +42229,7 @@ var Pulldown = VxePulldown;
|
|
|
42197
42229
|
|
|
42198
42230
|
|
|
42199
42231
|
|
|
42232
|
+
|
|
42200
42233
|
|
|
42201
42234
|
|
|
42202
42235
|
// 按需加载的组件
|
|
@@ -42210,6 +42243,7 @@ Icon, Column, Colgroup, Table, Grid, Toolbar, Pager, Checkbox, CheckboxGroup, Ra
|
|
|
42210
42243
|
function install(Vue, options) {
|
|
42211
42244
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(options)) {
|
|
42212
42245
|
VXETable.config(options);
|
|
42246
|
+
setTheme(options);
|
|
42213
42247
|
}
|
|
42214
42248
|
components.map(function (component) {
|
|
42215
42249
|
return component.install(Vue);
|