vxe-table 3.8.16 → 3.8.18
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/edit/src/mixin.js +39 -29
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/export/src/mixin.js +26 -6
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/grid/src/grid.js +63 -20
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/icon/style/{iconfont.1721369585843.ttf → iconfont.1723040514481.ttf} +0 -0
- package/lib/icon/style/iconfont.1723040514481.woff +0 -0
- package/lib/icon/style/iconfont.1723040514481.woff2 +0 -0
- package/lib/icon/style/style.css +81 -3
- package/lib/icon/style/style.min.css +81 -3
- package/lib/{iconfont.1721369585843.ttf → iconfont.1723040514481.ttf} +0 -0
- package/lib/iconfont.1723040514481.woff +0 -0
- package/lib/iconfont.1723040514481.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.umd.js +180 -87
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +14 -6
- 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/src/methods.js +25 -24
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +15 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +70 -46
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +3 -0
- package/lib/toolbar/src/toolbar.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 +2 -1
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +1 -1
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +57 -3
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +81 -3
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-table/style/style.css +70 -46
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/edit/src/mixin.js +10 -3
- package/packages/export/src/mixin.js +15 -4
- package/packages/grid/src/grid.js +48 -18
- package/packages/input/src/input.js +14 -8
- package/packages/table/src/methods.js +23 -22
- package/packages/table/src/table.js +40 -28
- package/packages/toolbar/src/toolbar.js +3 -0
- package/packages/v-x-e-table/src/conf.js +2 -1
- package/packages/v-x-e-table/src/renderer.js +1 -1
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/icon.scss +53 -4
- package/styles/old-icon.scss +4 -0
- package/styles/table.scss +37 -17
- package/lib/icon/style/iconfont.1721369585843.woff +0 -0
- package/lib/icon/style/iconfont.1721369585843.woff2 +0 -0
- package/lib/iconfont.1721369585843.woff +0 -0
- package/lib/iconfont.1721369585843.woff2 +0 -0
package/lib/table/src/methods.js
CHANGED
|
@@ -464,11 +464,11 @@ var Methods = {
|
|
|
464
464
|
if (childrenField === treeOpts.mapChildrenField) {
|
|
465
465
|
(0, _log.errLog)('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField']);
|
|
466
466
|
}
|
|
467
|
-
fullData.forEach(
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
})
|
|
467
|
+
// fullData.forEach(row => {
|
|
468
|
+
// if (row[childrenField] && row[childrenField].length) {
|
|
469
|
+
// warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${childrenField}`])
|
|
470
|
+
// }
|
|
471
|
+
// })
|
|
472
472
|
}
|
|
473
473
|
treeData = _xeUtils.default.toArrayTree(fullData, {
|
|
474
474
|
key: treeOpts.rowField,
|
|
@@ -2040,7 +2040,6 @@ var Methods = {
|
|
|
2040
2040
|
return this.refreshColumn(true);
|
|
2041
2041
|
},
|
|
2042
2042
|
handleCustomRestore: function handleCustomRestore(storeData) {
|
|
2043
|
-
var tableFullColumn = this.tableFullColumn;
|
|
2044
2043
|
var collectColumn = this.collectColumn;
|
|
2045
2044
|
var resizableData = storeData.resizableData,
|
|
2046
2045
|
sortData = storeData.sortData,
|
|
@@ -2049,7 +2048,7 @@ var Methods = {
|
|
|
2049
2048
|
var hasCustomSort = false;
|
|
2050
2049
|
// 处理还原
|
|
2051
2050
|
if (resizableData || sortData || visibleData || fixedData) {
|
|
2052
|
-
|
|
2051
|
+
_xeUtils.default.eachTree(collectColumn, function (column, index, items, path, parent) {
|
|
2053
2052
|
var colKey = column.getKey();
|
|
2054
2053
|
// 支持一级
|
|
2055
2054
|
if (!parent) {
|
|
@@ -2081,7 +2080,7 @@ var Methods = {
|
|
|
2081
2080
|
*/
|
|
2082
2081
|
restoreCustomStorage: function restoreCustomStorage() {
|
|
2083
2082
|
var _this21 = this;
|
|
2084
|
-
var
|
|
2083
|
+
var tableId = this.tableId,
|
|
2085
2084
|
customConfig = this.customConfig,
|
|
2086
2085
|
customOpts = this.customOpts;
|
|
2087
2086
|
var storage = customOpts.storage,
|
|
@@ -2093,14 +2092,14 @@ var Methods = {
|
|
|
2093
2092
|
var isCustomFixed = isAllCustom || storageOpts.fixed;
|
|
2094
2093
|
var isCustomSort = isAllCustom || storageOpts.sort;
|
|
2095
2094
|
if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
|
|
2096
|
-
if (!
|
|
2095
|
+
if (!tableId) {
|
|
2097
2096
|
(0, _log.errLog)('vxe.error.reqProp', ['id']);
|
|
2098
2097
|
return;
|
|
2099
2098
|
}
|
|
2100
|
-
var storeData = getCustomStorageMap(
|
|
2099
|
+
var storeData = getCustomStorageMap(tableId);
|
|
2101
2100
|
if (restoreStore) {
|
|
2102
2101
|
return Promise.resolve(restoreStore({
|
|
2103
|
-
id:
|
|
2102
|
+
id: tableId,
|
|
2104
2103
|
type: 'restore',
|
|
2105
2104
|
storeData: storeData
|
|
2106
2105
|
})).then(function (storeData) {
|
|
@@ -2197,7 +2196,7 @@ var Methods = {
|
|
|
2197
2196
|
return storeData;
|
|
2198
2197
|
},
|
|
2199
2198
|
saveCustomStore: function saveCustomStore(type) {
|
|
2200
|
-
var
|
|
2199
|
+
var tableId = this.tableId,
|
|
2201
2200
|
customOpts = this.customOpts;
|
|
2202
2201
|
var updateStore = customOpts.updateStore,
|
|
2203
2202
|
storage = customOpts.storage;
|
|
@@ -2208,7 +2207,7 @@ var Methods = {
|
|
|
2208
2207
|
var isCustomFixed = isAllCustom || storageOpts.fixed;
|
|
2209
2208
|
var isCustomSort = isAllCustom || storageOpts.sort;
|
|
2210
2209
|
if (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort) {
|
|
2211
|
-
if (!
|
|
2210
|
+
if (!tableId) {
|
|
2212
2211
|
(0, _log.errLog)('vxe.error.reqProp', ['id']);
|
|
2213
2212
|
return this.$nextTick();
|
|
2214
2213
|
}
|
|
@@ -2220,12 +2219,12 @@ var Methods = {
|
|
|
2220
2219
|
} : this.getCustomStoreData();
|
|
2221
2220
|
if (updateStore) {
|
|
2222
2221
|
return updateStore({
|
|
2223
|
-
id:
|
|
2222
|
+
id: tableId,
|
|
2224
2223
|
type: type,
|
|
2225
2224
|
storeData: storeData
|
|
2226
2225
|
});
|
|
2227
2226
|
} else {
|
|
2228
|
-
setCustomStorageMap(
|
|
2227
|
+
setCustomStorageMap(tableId, type === 'reset' ? null : storeData);
|
|
2229
2228
|
}
|
|
2230
2229
|
}
|
|
2231
2230
|
return this.$nextTick();
|
|
@@ -3088,15 +3087,17 @@ var Methods = {
|
|
|
3088
3087
|
this.clearSelected();
|
|
3089
3088
|
}
|
|
3090
3089
|
if (areaOpts.autoClear) {
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3090
|
+
if (this.getCellAreas) {
|
|
3091
|
+
var cellAreas = this.getCellAreas();
|
|
3092
|
+
if (cellAreas && cellAreas.length && !getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
|
|
3093
|
+
this.preventEvent(evnt, 'event.clearAreas', {}, function () {
|
|
3094
|
+
_this29.clearCellAreas();
|
|
3095
|
+
_this29.clearCopyCellArea();
|
|
3096
|
+
_this29.emitEvent('clear-cell-area-selection', {
|
|
3097
|
+
cellAreas: cellAreas
|
|
3098
|
+
}, evnt);
|
|
3099
|
+
});
|
|
3100
|
+
}
|
|
3100
3101
|
}
|
|
3101
3102
|
}
|
|
3102
3103
|
}
|