vxe-table 3.8.6-beta.1 → 3.8.6-beta.2
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 +3 -1
- package/lib/all.min.js +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 +22 -11
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/body.js +4 -2
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/methods.js +8 -5
- package/lib/table/src/methods.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 +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +1 -0
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/config.js +3 -1
- package/lib/v-x-e-table/src/config.min.js +1 -1
- package/package.json +1 -1
- package/packages/all.js +3 -1
- package/packages/table/src/body.js +3 -2
- package/packages/table/src/methods.js +8 -6
- package/packages/v-x-e-table/src/conf.js +1 -0
- package/packages/v-x-e-table/src/config.js +3 -1
- /package/lib/icon/style/{iconfont.1715224576202.ttf → iconfont.1715243520903.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1715224576202.woff → iconfont.1715243520903.woff} +0 -0
- /package/lib/icon/style/{iconfont.1715224576202.woff2 → iconfont.1715243520903.woff2} +0 -0
- /package/lib/{iconfont.1715224576202.ttf → iconfont.1715243520903.ttf} +0 -0
- /package/lib/{iconfont.1715224576202.woff → iconfont.1715243520903.woff} +0 -0
- /package/lib/{iconfont.1715224576202.woff2 → iconfont.1715243520903.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11073,6 +11073,7 @@ var iconPrefix = 'vxe-icon-';
|
|
|
11073
11073
|
isEsc: true
|
|
11074
11074
|
},
|
|
11075
11075
|
areaConfig: {
|
|
11076
|
+
autoClear: true,
|
|
11076
11077
|
selectCellByHeader: true
|
|
11077
11078
|
},
|
|
11078
11079
|
clipConfig: {
|
|
@@ -11346,7 +11347,7 @@ var es_array_concat = __webpack_require__(8706);
|
|
|
11346
11347
|
|
|
11347
11348
|
|
|
11348
11349
|
function getLog(message, params) {
|
|
11349
|
-
return "[vxe-table v".concat("3.8.6-beta.
|
|
11350
|
+
return "[vxe-table v".concat("3.8.6-beta.2", "] ").concat(conf.i18n(message, params));
|
|
11350
11351
|
}
|
|
11351
11352
|
function outLog(type) {
|
|
11352
11353
|
return function (message, params) {
|
|
@@ -12976,7 +12977,9 @@ function setTheme(options) {
|
|
|
12976
12977
|
*/
|
|
12977
12978
|
function config(options) {
|
|
12978
12979
|
if (options) {
|
|
12979
|
-
|
|
12980
|
+
if (options.theme) {
|
|
12981
|
+
setTheme(options);
|
|
12982
|
+
}
|
|
12980
12983
|
if (options.zIndex) {
|
|
12981
12984
|
index_esm.setCurrent(options.zIndex);
|
|
12982
12985
|
}
|
|
@@ -13083,7 +13086,7 @@ var setup = config;
|
|
|
13083
13086
|
var globalStore = {};
|
|
13084
13087
|
var VXETable = {
|
|
13085
13088
|
v: v,
|
|
13086
|
-
version: "3.8.6-beta.
|
|
13089
|
+
version: "3.8.6-beta.2",
|
|
13087
13090
|
reg: reg,
|
|
13088
13091
|
use: use,
|
|
13089
13092
|
setup: setup,
|
|
@@ -13867,6 +13870,7 @@ function getSlotVNs(vns) {
|
|
|
13867
13870
|
|
|
13868
13871
|
|
|
13869
13872
|
|
|
13873
|
+
|
|
13870
13874
|
var renderType = 'body';
|
|
13871
13875
|
|
|
13872
13876
|
// 滚动、拖动过程中不需要触发
|
|
@@ -13876,7 +13880,8 @@ function isVMScrollProcess($xetable) {
|
|
|
13876
13880
|
function renderLine(h, _vm, $xetable, params) {
|
|
13877
13881
|
var row = params.row,
|
|
13878
13882
|
column = params.column;
|
|
13879
|
-
var
|
|
13883
|
+
var afterFullData = $xetable.afterFullData,
|
|
13884
|
+
treeOpts = $xetable.treeOpts,
|
|
13880
13885
|
treeConfig = $xetable.treeConfig,
|
|
13881
13886
|
fullAllDataRowIdData = $xetable.fullAllDataRowIdData;
|
|
13882
13887
|
var slots = column.slots,
|
|
@@ -13894,13 +13899,14 @@ function renderLine(h, _vm, $xetable, params) {
|
|
|
13894
13899
|
if (slots && slots.line) {
|
|
13895
13900
|
return $xetable.callSlot(slots.line, params, h);
|
|
13896
13901
|
}
|
|
13902
|
+
var isFirstRow = $xetable.eqRow(afterFullData[0], row);
|
|
13897
13903
|
if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
|
|
13898
13904
|
return [h('div', {
|
|
13899
13905
|
class: 'vxe-tree--line-wrapper'
|
|
13900
13906
|
}, [h('div', {
|
|
13901
13907
|
class: 'vxe-tree--line',
|
|
13902
13908
|
style: {
|
|
13903
|
-
height: "".concat(calcTreeLine(params, items, rIndex), "px"),
|
|
13909
|
+
height: "".concat(isFirstRow ? 1 : calcTreeLine(params, items, rIndex), "px"),
|
|
13904
13910
|
left: "".concat(rLevel * treeOpts.indent + (rLevel ? 2 - getOffsetSize($xetable) : 0) + 16, "px")
|
|
13905
13911
|
}
|
|
13906
13912
|
})])];
|
|
@@ -19348,6 +19354,7 @@ var Methods = {
|
|
|
19348
19354
|
editRules = this.editRules,
|
|
19349
19355
|
editOpts = this.editOpts,
|
|
19350
19356
|
validOpts = this.validOpts,
|
|
19357
|
+
areaOpts = this.areaOpts,
|
|
19351
19358
|
filterStore = this.filterStore,
|
|
19352
19359
|
customStore = this.customStore,
|
|
19353
19360
|
getRowNode = this.getRowNode;
|
|
@@ -19436,11 +19443,13 @@ var Methods = {
|
|
|
19436
19443
|
if (this.clearSelected) {
|
|
19437
19444
|
this.clearSelected();
|
|
19438
19445
|
}
|
|
19439
|
-
if (
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19446
|
+
if (areaOpts.autoClear) {
|
|
19447
|
+
if (!getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
|
|
19448
|
+
this.preventEvent(evnt, 'event.clearAreas', {}, function () {
|
|
19449
|
+
_this27.clearCellAreas();
|
|
19450
|
+
_this27.clearCopyCellArea();
|
|
19451
|
+
});
|
|
19452
|
+
}
|
|
19444
19453
|
}
|
|
19445
19454
|
}
|
|
19446
19455
|
}
|
|
@@ -42243,7 +42252,9 @@ Icon, Column, Colgroup, Table, Grid, Toolbar, Pager, Checkbox, CheckboxGroup, Ra
|
|
|
42243
42252
|
function install(Vue, options) {
|
|
42244
42253
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(options)) {
|
|
42245
42254
|
VXETable.config(options);
|
|
42246
|
-
|
|
42255
|
+
if (options.theme) {
|
|
42256
|
+
setTheme(options);
|
|
42257
|
+
}
|
|
42247
42258
|
}
|
|
42248
42259
|
components.map(function (component) {
|
|
42249
42260
|
return component.install(Vue);
|