vxe-table 4.19.13 → 4.19.14
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/dist/all.esm.js +225 -81
- package/dist/style.css +1 -1
- package/es/style.css +1 -1
- package/es/table/module/edit/hook.js +5 -5
- package/es/table/src/table.js +216 -72
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +24 -12
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/hook.js +5 -0
- package/lib/table/module/edit/hook.min.js +1 -1
- package/lib/table/src/table.js +18 -11
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- 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/package.json +2 -2
- package/packages/table/module/edit/hook.ts +5 -5
- package/packages/table/src/table.ts +218 -72
- /package/es/{iconfont.1781229243647.ttf → iconfont.1781257692019.ttf} +0 -0
- /package/es/{iconfont.1781229243647.woff → iconfont.1781257692019.woff} +0 -0
- /package/es/{iconfont.1781229243647.woff2 → iconfont.1781257692019.woff2} +0 -0
- /package/lib/{iconfont.1781229243647.ttf → iconfont.1781257692019.ttf} +0 -0
- /package/lib/{iconfont.1781229243647.woff → iconfont.1781257692019.woff} +0 -0
- /package/lib/{iconfont.1781229243647.woff2 → iconfont.1781257692019.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "VxeUI", {
|
|
|
13
13
|
exports.version = exports.validators = exports.use = exports.t = exports.setup = exports.setTheme = exports.setLanguage = exports.setIcon = exports.setI18n = exports.setConfig = exports.saveFile = exports.renderer = exports.readFile = exports.print = exports.modal = exports.menus = exports.log = exports.interceptor = exports.hooks = exports.globalResize = exports.globalEvents = exports.getTheme = exports.getIcon = exports.getI18n = exports.getConfig = exports.formats = exports.default = exports.config = exports.commands = exports.clipboard = exports._t = void 0;
|
|
14
14
|
var _core = require("@vxe-ui/core");
|
|
15
15
|
var _utils = require("./src/utils");
|
|
16
|
-
const version = exports.version = "4.19.
|
|
16
|
+
const version = exports.version = "4.19.14";
|
|
17
17
|
_core.VxeUI.version = version;
|
|
18
18
|
_core.VxeUI.tableVersion = version;
|
|
19
19
|
_core.VxeUI.setConfig({
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.VXETable=void 0,Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.version=exports.validators=exports.use=exports.t=exports.setup=exports.setTheme=exports.setLanguage=exports.setIcon=exports.setI18n=exports.setConfig=exports.saveFile=exports.renderer=exports.readFile=exports.print=exports.modal=exports.menus=exports.log=exports.interceptor=exports.hooks=exports.globalResize=exports.globalEvents=exports.getTheme=exports.getIcon=exports.getI18n=exports.getConfig=exports.formats=exports.default=exports.config=exports.commands=exports.clipboard=exports._t=void 0;var _core=require("@vxe-ui/core"),_utils=require("./src/utils");let version=exports.version="4.19.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.VXETable=void 0,Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.version=exports.validators=exports.use=exports.t=exports.setup=exports.setTheme=exports.setLanguage=exports.setIcon=exports.setI18n=exports.setConfig=exports.saveFile=exports.renderer=exports.readFile=exports.print=exports.modal=exports.menus=exports.log=exports.interceptor=exports.hooks=exports.globalResize=exports.globalEvents=exports.getTheme=exports.getIcon=exports.getI18n=exports.getConfig=exports.formats=exports.default=exports.config=exports.commands=exports.clipboard=exports._t=void 0;var _core=require("@vxe-ui/core"),_utils=require("./src/utils");let version=exports.version="4.19.14",iconPrefix=(_core.VxeUI.version=version,_core.VxeUI.tableVersion=version,_core.VxeUI.setConfig({emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,resizeConfig:{},resizableConfig:{dragMode:"auto",showDragTip:!0,isSyncAutoHeight:!0,isSyncAutoWidth:!0,minHeight:18},currentRowConfig:{strict:!0},currentColumnConfig:{strict:!0},radioConfig:{strict:!0},rowDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},columnDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},checkboxConfig:{strict:!0},tooltipConfig:{enterable:!0,defaultPlacement:"top"},headerTooltipConfig:{enterable:!0},footerTooltipConfig:{enterable:!0},validConfig:{showErrorMessage:!0,autoClear:!0,autoPos:!0,message:"inline",msgMode:"single",theme:"beautify"},columnConfig:{autoOptions:{isCalcHeader:!0,isCalcBody:!0,isCalcFooter:!0},maxFixedSize:4},cellConfig:{padding:!0},headerCellConfig:{height:"unset"},footerCellConfig:{height:"unset"},menuConfig:{destroyOnClose:!0},customConfig:{allowVisible:!0,allowResizable:!0,allowFixed:!0,allowSort:!0,showSortDragButton:!0,showFooter:!0,placement:"top-right",storeOptions:{visible:!0,resizable:!0,sort:!0,fixed:!0},modalOptions:{showMaximize:!0,mask:!0,lockView:!0,resize:!0,escClosable:!0},drawerOptions:{mask:!0,lockView:!0,escClosable:!0,resize:!0}},sortConfig:{showIcon:!0,allowClear:!0,allowBtn:!0,iconLayout:"vertical"},filterConfig:{destroyOnClose:!0,multiple:!0,showIcon:!0,maxHeight:280},floatingFilterConfig:{},aggregateConfig:{padding:!0,placement:"left",rowField:"id",parentField:"_X_ROW_PARENT_KEY",childrenField:"_X_ROW_CHILDREN",mapChildrenField:"_X_ROW_CHILD_LIST",indent:20,showIcon:!0,maxGroupSize:4,showAggFuncTitle:!0},treeConfig:{padding:!0,rowField:"id",parentField:"parentId",childrenField:"children",hasChildField:"hasChild",mapChildrenField:"_X_ROW_CHILD",indent:20,showIcon:!0,showRootLine:!0},expandConfig:{showIcon:!0,mode:"fixed"},editConfig:{showIcon:!0,showAsterisk:!0,autoFocus:!0},importConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},exportConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},printConfig:{},mouseConfig:{extension:!0},keyboardConfig:{isAll:!0,isEsc:!0},areaConfig:{autoClear:!0,selectCellByHeader:!0,selectCellByBody:!0,extendDirection:{top:!0,left:!0,bottom:!0,right:!0}},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},virtualXConfig:{gt:24,preSize:1,oSize:0},virtualYConfig:{gt:100,preSize:1,oSize:0},scrollbarConfig:{x:{visible:!0},y:{visible:!0}},undoRedoHistoryConfig:{stackSize:50}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:"list",result:"result",total:"page.total",footerData:"footerData",message:"message"}}},toolbar:{},gantt:{}}),"vxe-table-icon-"),setTheme=(_core.VxeUI.setIcon({TABLE_SORT_ASC:iconPrefix+"caret-up",TABLE_SORT_DESC:iconPrefix+"caret-down",TABLE_FILTER_NONE:iconPrefix+"funnel",TABLE_FILTER_MATCH:iconPrefix+"funnel",TABLE_EDIT:iconPrefix+"edit",TABLE_TITLE_PREFIX:iconPrefix+"question-circle-fill",TABLE_TITLE_SUFFIX:iconPrefix+"question-circle-fill",TABLE_TREE_LOADED:iconPrefix+"spinner roll",TABLE_TREE_OPEN:iconPrefix+"caret-right rotate90",TABLE_TREE_CLOSE:iconPrefix+"caret-right",TABLE_EXPAND_LOADED:iconPrefix+"spinner roll",TABLE_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",TABLE_EXPAND_CLOSE:iconPrefix+"arrow-right",TABLE_CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",TABLE_CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",TABLE_CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",TABLE_CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",TABLE_RADIO_CHECKED:iconPrefix+"radio-checked-fill",TABLE_RADIO_UNCHECKED:iconPrefix+"radio-unchecked",TABLE_RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",TABLE_CUSTOM_SORT:iconPrefix+"drag-handle",TABLE_MENU_OPTIONS:iconPrefix+"arrow-right",TABLE_MENU_OPTION_LOADING:iconPrefix+"repeat roll",TABLE_DRAG_ROW:iconPrefix+"drag-handle",TABLE_DRAG_COLUMN:iconPrefix+"drag-handle",TABLE_DRAG_STATUS_ROW:iconPrefix+"sort",TABLE_DRAG_STATUS_SUB_ROW:iconPrefix+"add-sub",TABLE_DRAG_STATUS_AGG_GROUP:iconPrefix+"grouping",TABLE_DRAG_STATUS_AGG_VALUES:iconPrefix+"values",TABLE_DRAG_STATUS_COLUMN:iconPrefix+"swap",TABLE_DRAG_DISABLED:iconPrefix+"no-drop",TABLE_ROW_GROUP_OPEN:iconPrefix+"arrow-right rotate90",TABLE_ROW_GROUP_CLOSE:iconPrefix+"arrow-right",TABLE_AGGREGATE_GROUPING:iconPrefix+"grouping",TABLE_AGGREGATE_VALUES:iconPrefix+"values",TABLE_AGGREGATE_SORT:iconPrefix+"drag-handle",TABLE_AGGREGATE_DELETE:iconPrefix+"close",TOOLBAR_TOOLS_REFRESH:iconPrefix+"repeat",TOOLBAR_TOOLS_REFRESH_LOADING:iconPrefix+"repeat roll",TOOLBAR_TOOLS_IMPORT:iconPrefix+"upload",TOOLBAR_TOOLS_EXPORT:iconPrefix+"download",TOOLBAR_TOOLS_PRINT:iconPrefix+"print",TOOLBAR_TOOLS_FULLSCREEN:iconPrefix+"fullscreen",TOOLBAR_TOOLS_MINIMIZE:iconPrefix+"minimize",TOOLBAR_TOOLS_CUSTOM:iconPrefix+"custom-column",TOOLBAR_TOOLS_FIXED_LEFT:iconPrefix+"fixed-left",TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:iconPrefix+"fixed-left-fill",TOOLBAR_TOOLS_FIXED_RIGHT:iconPrefix+"fixed-right",TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:iconPrefix+"fixed-right-fill"}),exports.setTheme=_core.VxeUI.setTheme),getTheme=exports.getTheme=_core.VxeUI.getTheme,setConfig=exports.setConfig=_core.VxeUI.setConfig,getConfig=exports.getConfig=_core.VxeUI.getConfig,setIcon=exports.setIcon=_core.VxeUI.setIcon,getIcon=exports.getIcon=_core.VxeUI.getIcon,setLanguage=exports.setLanguage=_core.VxeUI.setLanguage,setI18n=exports.setI18n=_core.VxeUI.setI18n,getI18n=exports.getI18n=_core.VxeUI.getI18n,globalEvents=exports.globalEvents=_core.VxeUI.globalEvents,globalResize=exports.globalResize=_core.VxeUI.globalResize,renderer=exports.renderer=_core.VxeUI.renderer,validators=exports.validators=_core.VxeUI.validators,menus=exports.menus=_core.VxeUI.menus,formats=exports.formats=_core.VxeUI.formats,commands=exports.commands=_core.VxeUI.commands,interceptor=exports.interceptor=_core.VxeUI.interceptor,clipboard=exports.clipboard=_core.VxeUI.clipboard,log=exports.log=_core.VxeUI.log,hooks=exports.hooks=_core.VxeUI.hooks,use=exports.use=_core.VxeUI.use,setup=e=>_core.VxeUI.setConfig(e),config=(exports.setup=setup,_core.VxeUI.setup=setup,e=>_core.VxeUI.setConfig(e)),t=(exports.config=config,_core.VxeUI.config=config,(e,o)=>_core.VxeUI.getI18n(e,o)),_t=(exports.t=t,_core.VxeUI.t=t,(e,o)=>(0,_utils.getFuncText)(e,o)),VXETable=(exports._t=_t,_core.VxeUI._t=_t,exports.VXETable=_core.VxeUI),saveFile=e=>_core.VxeUI.saveFile(e),readFile=(exports.saveFile=saveFile,e=>_core.VxeUI.readFile(e)),print=(exports.readFile=readFile,e=>_core.VxeUI.print(e)),modal=(exports.print=print,exports.modal={get(e){return _core.VxeUI.modal.get(e)},close(e){return _core.VxeUI.modal.close(e)},open(e){return _core.VxeUI.modal.open(e)},alert(e,o,r){return _core.VxeUI.modal.alert(e,o,r)},confirm(e,o,r){return _core.VxeUI.modal.confirm(e,o,r)},message(e,o){return _core.VxeUI.modal.message(e,o)},notification(e,o,r){return _core.VxeUI.modal.notification(e,o,r)}});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -8,6 +8,6 @@ var _core = require("@vxe-ui/core");
|
|
|
8
8
|
const {
|
|
9
9
|
log
|
|
10
10
|
} = _core.VxeUI;
|
|
11
|
-
const version = `table v${"4.19.
|
|
11
|
+
const version = `table v${"4.19.14"}`;
|
|
12
12
|
const warnLog = exports.warnLog = log.create('warn', version);
|
|
13
13
|
const errLog = exports.errLog = log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="table v4.19.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="table v4.19.14",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.14",
|
|
4
4
|
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"typescript": "~4.7.4",
|
|
70
70
|
"vue": "3.4.27",
|
|
71
71
|
"vue-router": "~4.5.1",
|
|
72
|
-
"vxe-pc-ui": "4.14.
|
|
72
|
+
"vxe-pc-ui": "4.14.36"
|
|
73
73
|
},
|
|
74
74
|
"vetur": {
|
|
75
75
|
"tags": "helper/vetur/tags.json",
|
|
@@ -88,7 +88,7 @@ hooks.add('tableEditModule', {
|
|
|
88
88
|
}
|
|
89
89
|
pChilds[funcName](item)
|
|
90
90
|
pMapChilds[funcName](item)
|
|
91
|
-
const rest = { row: item, rowid, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: pChilds, parent: parentRow, level: parentLevel + 1, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
91
|
+
const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: pChilds, parent: parentRow, level: parentLevel + 1, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
92
92
|
fullDataRowIdData[rowid] = rest
|
|
93
93
|
fullAllDataRowIdData[rowid] = rest
|
|
94
94
|
} else {
|
|
@@ -97,7 +97,7 @@ hooks.add('tableEditModule', {
|
|
|
97
97
|
}
|
|
98
98
|
afterFullData[funcName](item)
|
|
99
99
|
tableFullTreeData[funcName](item)
|
|
100
|
-
const rest = { row: item, rowid, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: tableFullTreeData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
100
|
+
const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: tableFullTreeData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
101
101
|
fullDataRowIdData[rowid] = rest
|
|
102
102
|
fullAllDataRowIdData[rowid] = rest
|
|
103
103
|
}
|
|
@@ -148,7 +148,7 @@ hooks.add('tableEditModule', {
|
|
|
148
148
|
} else {
|
|
149
149
|
newRecords.forEach(item => {
|
|
150
150
|
const rowid = getRowid($xeTable, item)
|
|
151
|
-
const rest = { row: item, rowid, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: afterFullData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
151
|
+
const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: afterFullData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
152
152
|
fullDataRowIdData[rowid] = rest
|
|
153
153
|
fullAllDataRowIdData[rowid] = rest
|
|
154
154
|
afterFullData.unshift(item)
|
|
@@ -177,7 +177,7 @@ hooks.add('tableEditModule', {
|
|
|
177
177
|
} else {
|
|
178
178
|
newRecords.forEach(item => {
|
|
179
179
|
const rowid = getRowid($xeTable, item)
|
|
180
|
-
const rest = { row: item, rowid, seq: -1, index: -1, _index: -1, treeIndex: -1, _tIndex: -1, $index: -1, items: afterFullData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
180
|
+
const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, treeIndex: -1, _tIndex: -1, $index: -1, items: afterFullData, parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
181
181
|
fullDataRowIdData[rowid] = rest
|
|
182
182
|
fullAllDataRowIdData[rowid] = rest
|
|
183
183
|
afterFullData.push(item)
|
|
@@ -215,7 +215,7 @@ hooks.add('tableEditModule', {
|
|
|
215
215
|
})
|
|
216
216
|
XEUtils.eachTree(treeRecords, (item) => {
|
|
217
217
|
const rowid = getRowid($xeTable, item)
|
|
218
|
-
const rest = { row: item, rowid, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: parentMapChilds, parent: parentRow, level: parentLevel + 1, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
218
|
+
const rest = { row: item, rowid, _seq: -1, seq: -1, index: -1, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items: parentMapChilds, parent: parentRow, level: parentLevel + 1, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
219
219
|
if (item[childrenField]) {
|
|
220
220
|
item[mapChildrenField] = item[childrenField]
|
|
221
221
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, ComponentPublicInstance, reactive, ref, Ref, provide, inject, nextTick, Teleport, onActivated, onDeactivated, onBeforeUnmount, onUnmounted, watch, computed, onMounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
|
-
import XEUtils from 'xe-utils'
|
|
3
|
+
import XEUtils, { isNaN } from 'xe-utils'
|
|
4
4
|
import { initTpImg, getTpImg, isPx, isScale, hasClass, addClass, removeClass, wheelScrollTopTo, wheelScrollLeftTo, getEventTargetNode, getPaddingTopBottomSize, setScrollTop, setScrollLeft, toCssUnit, hasControlKey, checkTargetElement, hasEventInputTarget } from '../../ui/src/dom'
|
|
5
5
|
import { getLastZIndex, nextZIndex, hasChildrenList, getFuncText, isEnableConf, formatText, eqEmptyValue } from '../../ui/src/utils'
|
|
6
6
|
import { VxeUI } from '../../ui'
|
|
@@ -686,22 +686,32 @@ export default defineVxeComponent({
|
|
|
686
686
|
const { tableFullColumn } = internalData
|
|
687
687
|
const { updateColFlag } = reactData
|
|
688
688
|
const editDirtyOpts = computeEditDirtyOpts.value
|
|
689
|
-
const { includeFields, excludeFields } = editDirtyOpts
|
|
689
|
+
const { extraFields, includeFields, excludeFields } = editDirtyOpts
|
|
690
690
|
const kpFields: string[] = []
|
|
691
691
|
if (updateColFlag) {
|
|
692
692
|
if (includeFields && includeFields.length) {
|
|
693
693
|
return includeFields
|
|
694
694
|
}
|
|
695
|
-
const
|
|
695
|
+
const excludeFdMaps: Record<string, number> = {}
|
|
696
696
|
if (excludeFields && excludeFields.length) {
|
|
697
697
|
excludeFields.forEach(field => {
|
|
698
|
-
|
|
698
|
+
excludeFdMaps[field] = 1
|
|
699
|
+
})
|
|
700
|
+
}
|
|
701
|
+
const addFdMaps: Record<string, number> = {}
|
|
702
|
+
if (extraFields && extraFields.length) {
|
|
703
|
+
extraFields.forEach(field => {
|
|
704
|
+
if (!addFdMaps[field]) {
|
|
705
|
+
addFdMaps[field] = 1
|
|
706
|
+
kpFields.push(field)
|
|
707
|
+
}
|
|
699
708
|
})
|
|
700
709
|
}
|
|
701
710
|
for (let i = 0; i < tableFullColumn.length; i++) {
|
|
702
711
|
const column = tableFullColumn[i]
|
|
703
712
|
const { field, type, editRender, cellRender } = column
|
|
704
|
-
if (field && !type && (editRender || cellRender) && !
|
|
713
|
+
if (field && !type && (editRender || cellRender) && !addFdMaps[field] && !excludeFdMaps[field]) {
|
|
714
|
+
addFdMaps[field] = 1
|
|
705
715
|
kpFields.push(field)
|
|
706
716
|
}
|
|
707
717
|
}
|
|
@@ -2204,25 +2214,62 @@ export default defineVxeComponent({
|
|
|
2204
2214
|
}
|
|
2205
2215
|
}
|
|
2206
2216
|
|
|
2217
|
+
const updateAfterTreeIndex = () => {
|
|
2218
|
+
const { fullDataRowIdData, fullAllDataRowIdData, afterFullData, afterTreeFullData } = internalData
|
|
2219
|
+
const treeOpts = computeTreeOpts.value
|
|
2220
|
+
const { transform, mapChildrenField } = treeOpts
|
|
2221
|
+
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
2222
|
+
const fullMaps: Record<string, any> = {}
|
|
2223
|
+
let rowNum = 0
|
|
2224
|
+
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
2225
|
+
XEUtils.eachTree(afterTreeFullData, (row, index, items, path) => {
|
|
2226
|
+
const rowid = handleGetRowId(row)
|
|
2227
|
+
const rowRest = fullAllDataRowIdData[rowid]
|
|
2228
|
+
const seq = path.map((num, i) => i % 2 === 0 ? (Number(num) + 1) : '.').join('')
|
|
2229
|
+
if (rowRest) {
|
|
2230
|
+
rowRest.seq = seq
|
|
2231
|
+
rowRest._seq = rowNum
|
|
2232
|
+
rowRest.treeIndex = index
|
|
2233
|
+
rowRest._tIndex = rowNum
|
|
2234
|
+
} else {
|
|
2235
|
+
const rest = { row, rowid, _seq: rowNum, seq, index: -1, $index: -1, _index: -1, treeIndex: -1, _tIndex: rowNum, items: [], parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
2236
|
+
fullAllDataRowIdData[rowid] = rest
|
|
2237
|
+
fullDataRowIdData[rowid] = rest
|
|
2238
|
+
}
|
|
2239
|
+
rowNum++
|
|
2240
|
+
fullMaps[rowid] = row
|
|
2241
|
+
}, { children: transform ? mapChildrenField : childrenField })
|
|
2242
|
+
if (transform) {
|
|
2243
|
+
afterFullData.forEach((row, index) => {
|
|
2244
|
+
const rowid = handleGetRowId(row)
|
|
2245
|
+
const rowRest = fullAllDataRowIdData[rowid]
|
|
2246
|
+
if (rowRest) {
|
|
2247
|
+
rowRest._index = index
|
|
2248
|
+
}
|
|
2249
|
+
})
|
|
2250
|
+
}
|
|
2251
|
+
internalData.afterFullRowMaps = fullMaps
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2207
2254
|
const updateAfterListIndex = () => {
|
|
2208
|
-
const { treeConfig } = props
|
|
2209
2255
|
const { afterFullData, fullDataRowIdData, fullAllDataRowIdData } = internalData
|
|
2210
2256
|
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
2211
2257
|
const fullMaps: Record<string, any> = {}
|
|
2258
|
+
let rowNum = 0
|
|
2212
2259
|
afterFullData.forEach((row, index) => {
|
|
2213
2260
|
const rowid = handleGetRowId(row)
|
|
2214
2261
|
const rowRest = fullAllDataRowIdData[rowid]
|
|
2215
2262
|
const seq = index + 1
|
|
2216
2263
|
if (rowRest) {
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
}
|
|
2264
|
+
rowRest.seq = seq
|
|
2265
|
+
rowRest._seq = rowNum
|
|
2220
2266
|
rowRest._index = index
|
|
2221
2267
|
} else {
|
|
2222
|
-
const rest = { row, rowid, seq, index: -1, $index: -1, _index: index, treeIndex: -1, _tIndex: -1, items: [], parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
2268
|
+
const rest = { row, rowid, _seq: rowNum, seq, index: -1, $index: -1, _index: index, treeIndex: -1, _tIndex: -1, items: [], parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
2223
2269
|
fullAllDataRowIdData[rowid] = rest
|
|
2224
2270
|
fullDataRowIdData[rowid] = rest
|
|
2225
2271
|
}
|
|
2272
|
+
rowNum++
|
|
2226
2273
|
fullMaps[rowid] = row
|
|
2227
2274
|
})
|
|
2228
2275
|
internalData.afterFullRowMaps = fullMaps
|
|
@@ -2234,44 +2281,8 @@ export default defineVxeComponent({
|
|
|
2234
2281
|
*/
|
|
2235
2282
|
const updateAfterDataIndex = () => {
|
|
2236
2283
|
const { treeConfig } = props
|
|
2237
|
-
const { fullDataRowIdData, fullAllDataRowIdData, afterFullData, afterTreeFullData } = internalData
|
|
2238
|
-
const treeOpts = computeTreeOpts.value
|
|
2239
|
-
const { transform } = treeOpts
|
|
2240
|
-
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
2241
|
-
const fullMaps: Record<string, any> = {}
|
|
2242
2284
|
if (treeConfig) {
|
|
2243
|
-
|
|
2244
|
-
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
2245
|
-
XEUtils.eachTree(afterTreeFullData, (row, index, items, path) => {
|
|
2246
|
-
const rowid = handleGetRowId(row)
|
|
2247
|
-
const rowRest = fullAllDataRowIdData[rowid]
|
|
2248
|
-
const seq = path.map((num, i) => i % 2 === 0 ? (Number(num) + 1) : '.').join('')
|
|
2249
|
-
if (rowRest) {
|
|
2250
|
-
rowRest.seq = seq
|
|
2251
|
-
rowRest.treeIndex = index
|
|
2252
|
-
rowRest._tIndex = _treeIndex
|
|
2253
|
-
} else {
|
|
2254
|
-
const rest = { row, rowid, seq, index: -1, $index: -1, _index: -1, treeIndex: -1, _tIndex: _treeIndex, items: [], parent: null, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
2255
|
-
fullAllDataRowIdData[rowid] = rest
|
|
2256
|
-
fullDataRowIdData[rowid] = rest
|
|
2257
|
-
}
|
|
2258
|
-
_treeIndex++
|
|
2259
|
-
fullMaps[rowid] = row
|
|
2260
|
-
}, { children: transform ? treeOpts.mapChildrenField : childrenField })
|
|
2261
|
-
if (transform) {
|
|
2262
|
-
afterFullData.forEach((row, index) => {
|
|
2263
|
-
const rowid = handleGetRowId(row)
|
|
2264
|
-
const rowRest = fullAllDataRowIdData[rowid]
|
|
2265
|
-
const seq = index + 1
|
|
2266
|
-
if (rowRest) {
|
|
2267
|
-
if (!treeConfig) {
|
|
2268
|
-
rowRest.seq = seq
|
|
2269
|
-
}
|
|
2270
|
-
rowRest._index = index
|
|
2271
|
-
}
|
|
2272
|
-
})
|
|
2273
|
-
}
|
|
2274
|
-
internalData.afterFullRowMaps = fullMaps
|
|
2285
|
+
updateAfterTreeIndex()
|
|
2275
2286
|
} else {
|
|
2276
2287
|
updateAfterListIndex()
|
|
2277
2288
|
}
|
|
@@ -3493,9 +3504,12 @@ export default defineVxeComponent({
|
|
|
3493
3504
|
})
|
|
3494
3505
|
}
|
|
3495
3506
|
|
|
3496
|
-
const
|
|
3507
|
+
const defaultMinRunDelay = 50
|
|
3497
3508
|
|
|
3498
|
-
const handleLazyRecalculate = (reFull: boolean, reWidth: boolean, reHeight: boolean
|
|
3509
|
+
const handleLazyRecalculate = (reFull: boolean, reWidth: boolean, reHeight: boolean, options?: {
|
|
3510
|
+
minRunDelay?: number // 多少毫秒内至少执行一次
|
|
3511
|
+
}) => {
|
|
3512
|
+
const minRunDelay = (options ? options.minRunDelay : defaultMinRunDelay) || defaultMinRunDelay
|
|
3499
3513
|
return new Promise<void>(resolve => {
|
|
3500
3514
|
const $xeGanttView = internalData.xeGanttView
|
|
3501
3515
|
const { customStore } = reactData
|
|
@@ -3521,6 +3535,7 @@ export default defineVxeComponent({
|
|
|
3521
3535
|
}
|
|
3522
3536
|
if (rceTimeout) {
|
|
3523
3537
|
clearTimeout(rceTimeout)
|
|
3538
|
+
// 多少毫秒内至少执行一次
|
|
3524
3539
|
if (rceRunTime && rceRunTime + minRunDelay < Date.now()) {
|
|
3525
3540
|
resolve(
|
|
3526
3541
|
handleRecalculateStyle(reFull, reWidth, reHeight)
|
|
@@ -3548,17 +3563,17 @@ export default defineVxeComponent({
|
|
|
3548
3563
|
})
|
|
3549
3564
|
}
|
|
3550
3565
|
|
|
3551
|
-
let resizePending = false
|
|
3552
|
-
|
|
3553
3566
|
const handleResizeEvent = () => {
|
|
3554
|
-
if (
|
|
3567
|
+
if (internalData.rsePending) {
|
|
3555
3568
|
return
|
|
3556
3569
|
}
|
|
3557
|
-
|
|
3558
|
-
handleLazyRecalculate(true, true, true
|
|
3559
|
-
|
|
3570
|
+
internalData.rsePending = true
|
|
3571
|
+
handleLazyRecalculate(true, true, true, {
|
|
3572
|
+
minRunDelay: 200
|
|
3573
|
+
}).then(() => {
|
|
3574
|
+
internalData.rsePending = false
|
|
3560
3575
|
}).catch(() => {
|
|
3561
|
-
|
|
3576
|
+
internalData.rsePending = false
|
|
3562
3577
|
})
|
|
3563
3578
|
}
|
|
3564
3579
|
|
|
@@ -5181,7 +5196,7 @@ export default defineVxeComponent({
|
|
|
5181
5196
|
XEUtils.eachTree(rows, (childRow, index, items, path, parentItem, nodes) => {
|
|
5182
5197
|
const rowid = getRowid($xeTable, childRow)
|
|
5183
5198
|
const parentRow = parentItem || parentRest.row
|
|
5184
|
-
const rest = { row: childRow, rowid, seq: -1, index, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
5199
|
+
const rest = { row: childRow, rowid, _seq: -1, seq: -1, index, _index: -1, $index: -1, treeIndex: -1, _tIndex: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
5185
5200
|
fullDataRowIdData[rowid] = rest
|
|
5186
5201
|
fullAllDataRowIdData[rowid] = rest
|
|
5187
5202
|
}, { children: childrenField })
|
|
@@ -9566,19 +9581,21 @@ export default defineVxeComponent({
|
|
|
9566
9581
|
|
|
9567
9582
|
const idMaps: Record<string, boolean> = {}
|
|
9568
9583
|
const { handleUpdateRowId } = createHandleUpdateRowId($xeTable)
|
|
9584
|
+
let rowNum = 0
|
|
9569
9585
|
const handleRowCache = (row: any, index: number, items: any, currIndex: number, parentRow: any, rowid: string, level: number, seq: string | number) => {
|
|
9570
9586
|
let rowRest = fullAllDataRowIdMaps[rowid]
|
|
9571
9587
|
if (idMaps[rowid]) {
|
|
9572
9588
|
errLog('vxe.error.repeatKey', [currKeyField, rowid])
|
|
9573
9589
|
}
|
|
9574
9590
|
if (!rowRest) {
|
|
9575
|
-
rowRest = { row, rowid, seq, index: -1, _index: -1, $index: -1, treeIndex: index, _tIndex: -1, items, parent: parentRow, level, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
9591
|
+
rowRest = { row, rowid, _seq: -1, seq, index: -1, _index: -1, $index: -1, treeIndex: index, _tIndex: -1, items, parent: parentRow, level, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
9576
9592
|
fullDataRowIdMaps[rowid] = rowRest
|
|
9577
9593
|
fullAllDataRowIdMaps[rowid] = rowRest
|
|
9578
9594
|
}
|
|
9579
9595
|
rowRest.treeLoaded = false
|
|
9580
9596
|
rowRest.expandLoaded = false
|
|
9581
9597
|
|
|
9598
|
+
rowRest._seq = rowNum++
|
|
9582
9599
|
rowRest.row = row
|
|
9583
9600
|
rowRest.items = items
|
|
9584
9601
|
rowRest.parent = parentRow
|
|
@@ -9594,6 +9611,7 @@ export default defineVxeComponent({
|
|
|
9594
9611
|
rowExpandedMaps[rowid] = row
|
|
9595
9612
|
}
|
|
9596
9613
|
|
|
9614
|
+
rowNum++
|
|
9597
9615
|
idMaps[rowid] = true
|
|
9598
9616
|
fullDataRowIdMaps[rowid] = rowRest
|
|
9599
9617
|
fullAllDataRowIdMaps[rowid] = rowRest
|
|
@@ -10875,31 +10893,162 @@ export default defineVxeComponent({
|
|
|
10875
10893
|
const { treeConfig } = props
|
|
10876
10894
|
const { row } = params
|
|
10877
10895
|
const { isRowGroupStatus } = reactData
|
|
10878
|
-
const { afterFullData } = internalData
|
|
10896
|
+
const { fullAllDataRowIdData, afterFullData, afterTreeFullData, afterGroupFullData } = internalData
|
|
10879
10897
|
const checkboxOpts = computeCheckboxOpts.value
|
|
10880
|
-
const
|
|
10898
|
+
const aggregateOpts = computeAggregateOpts.value
|
|
10899
|
+
const treeOpts = computeTreeOpts.value
|
|
10900
|
+
const { checkMethod, trigger, checkStrictly } = checkboxOpts
|
|
10881
10901
|
if (trigger === 'manual') {
|
|
10882
10902
|
return
|
|
10883
10903
|
}
|
|
10884
10904
|
evnt.stopPropagation()
|
|
10885
|
-
|
|
10905
|
+
|
|
10906
|
+
if (checkboxOpts.isShiftKey && evnt.shiftKey) {
|
|
10907
|
+
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
10886
10908
|
const checkboxRecords = $xeTable.getCheckboxRecords()
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10909
|
+
let currSeq = -1
|
|
10910
|
+
let currRow: any = null
|
|
10911
|
+
const currRowid = handleGetRowId(row)
|
|
10912
|
+
const rowRest = fullAllDataRowIdData[currRowid]
|
|
10913
|
+
if (rowRest) {
|
|
10914
|
+
currRow = rowRest.row
|
|
10915
|
+
currSeq = rowRest._seq
|
|
10916
|
+
}
|
|
10917
|
+
if (currRow && checkboxRecords.length) {
|
|
10918
|
+
let rangeRows: any[] = []
|
|
10919
|
+
let firstSeq = -1
|
|
10920
|
+
let firstRow: any = null
|
|
10921
|
+
let firstRowid = ''
|
|
10922
|
+
let lastSeq = -1
|
|
10923
|
+
let lastRow: any = null
|
|
10924
|
+
let lastRowid = ''
|
|
10925
|
+
// 根据序号取出范围最小/最大的行
|
|
10926
|
+
const selectMaps: Record<string, any> = {}
|
|
10927
|
+
checkboxRecords.forEach(item => {
|
|
10928
|
+
const rowid = handleGetRowId(item)
|
|
10929
|
+
const rowRest = fullAllDataRowIdData[rowid]
|
|
10930
|
+
if (rowRest) {
|
|
10931
|
+
if (!firstRow || firstSeq > rowRest._seq) {
|
|
10932
|
+
firstRowid = rowRest.rowid
|
|
10933
|
+
firstRow = rowRest.row
|
|
10934
|
+
firstSeq = rowRest._seq
|
|
10935
|
+
}
|
|
10936
|
+
if (!lastRow || lastSeq < rowRest._seq) {
|
|
10937
|
+
lastRowid = rowRest.rowid
|
|
10938
|
+
lastRow = rowRest.row
|
|
10939
|
+
lastSeq = rowRest._seq
|
|
10940
|
+
}
|
|
10941
|
+
}
|
|
10942
|
+
selectMaps[rowid] = item
|
|
10943
|
+
})
|
|
10944
|
+
// 如果已选只有一条并选择当前则跳过
|
|
10945
|
+
if (firstRow && lastRow && (checkboxRecords.length > 1 || currRowid !== firstRowid) && (Math.abs(firstSeq - lastSeq) > 1 || Math.abs(currSeq - firstSeq) > 1 || Math.abs(currSeq - lastSeq) > 1)) {
|
|
10946
|
+
// 树与分组
|
|
10947
|
+
if (treeConfig || isRowGroupStatus) {
|
|
10948
|
+
const { transform } = treeOpts
|
|
10949
|
+
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
10950
|
+
const iteratorChildField = treeConfig ? (transform ? treeOpts.mapChildrenField : childrenField) : aggregateOpts.mapChildrenField as string
|
|
10951
|
+
let isMatchFirst = false
|
|
10952
|
+
let matchStartRowid = ''
|
|
10953
|
+
let matchEndRowid = ''
|
|
10954
|
+
|
|
10955
|
+
const handleGetChildRowid = (rowid: string, isLast: 0 | 1): string => {
|
|
10956
|
+
const rowRest = fullAllDataRowIdData[rowid]
|
|
10957
|
+
if (rowRest) {
|
|
10958
|
+
const item = rowRest.row
|
|
10959
|
+
const childList = item[iteratorChildField]
|
|
10960
|
+
if (childList && childList.length) {
|
|
10961
|
+
const targetRow = isLast ? XEUtils.last(childList) : XEUtils.first(childList)
|
|
10962
|
+
return handleGetChildRowid(handleGetRowId(targetRow), isLast)
|
|
10963
|
+
}
|
|
10964
|
+
}
|
|
10965
|
+
return rowid
|
|
10966
|
+
}
|
|
10967
|
+
|
|
10968
|
+
const handleGetSelectParentRowid = (rowid: string): string => {
|
|
10969
|
+
const rowRest = fullAllDataRowIdData[rowid]
|
|
10970
|
+
if (rowRest) {
|
|
10971
|
+
const parentItem = rowRest.parent
|
|
10972
|
+
if (parentItem) {
|
|
10973
|
+
const parentRowid = handleGetRowId(parentItem)
|
|
10974
|
+
if (selectMaps[parentRowid]) {
|
|
10975
|
+
return handleGetSelectParentRowid(parentRowid)
|
|
10976
|
+
}
|
|
10977
|
+
}
|
|
10978
|
+
}
|
|
10979
|
+
return rowid
|
|
10980
|
+
}
|
|
10981
|
+
|
|
10982
|
+
const handleGetRootRow = (row: string): VxeTableDefines.RowCacheItem | null => {
|
|
10983
|
+
const rowid = handleGetRowId(row)
|
|
10984
|
+
if (rowid) {
|
|
10985
|
+
const rest = fullAllDataRowIdData[rowid]
|
|
10986
|
+
if (rest) {
|
|
10987
|
+
return rest.parent ? handleGetRootRow(rest.parent) : rest
|
|
10988
|
+
}
|
|
10989
|
+
}
|
|
10990
|
+
return null
|
|
10991
|
+
}
|
|
10992
|
+
|
|
10993
|
+
if (currSeq < firstSeq) {
|
|
10994
|
+
matchStartRowid = handleGetChildRowid(currRowid, 0)
|
|
10995
|
+
matchEndRowid = handleGetChildRowid(firstRowid, 1)
|
|
10996
|
+
} else {
|
|
10997
|
+
if (currSeq > lastSeq) {
|
|
10998
|
+
matchStartRowid = handleGetSelectParentRowid(lastRowid)
|
|
10999
|
+
} else {
|
|
11000
|
+
matchStartRowid = handleGetChildRowid(firstRowid, 0)
|
|
11001
|
+
}
|
|
11002
|
+
matchEndRowid = handleGetChildRowid(currRowid, 1)
|
|
11003
|
+
}
|
|
11004
|
+
|
|
11005
|
+
const handleRangeRow = (item: any) => {
|
|
11006
|
+
const rowid = handleGetRowId(item)
|
|
11007
|
+
const childList = item[iteratorChildField]
|
|
11008
|
+
if (!isMatchFirst && rowid === matchStartRowid) {
|
|
11009
|
+
isMatchFirst = true
|
|
11010
|
+
}
|
|
11011
|
+
// 如果是父子关联,则排除父节点
|
|
11012
|
+
if (isMatchFirst && (checkStrictly || !childList || !childList.length)) {
|
|
11013
|
+
rangeRows.push(item)
|
|
11014
|
+
}
|
|
11015
|
+
// break
|
|
11016
|
+
return rowid === matchEndRowid
|
|
11017
|
+
}
|
|
11018
|
+
if (treeConfig) {
|
|
11019
|
+
const matchStartRowRest = fullAllDataRowIdData[matchStartRowid]
|
|
11020
|
+
const firstRootRowRest = matchStartRowRest ? handleGetRootRow(matchStartRowRest.row) : null
|
|
11021
|
+
if (firstRootRowRest) {
|
|
11022
|
+
// 优化查找复杂度
|
|
11023
|
+
XEUtils.findTree(afterTreeFullData.slice(firstRootRowRest.treeIndex), handleRangeRow, { children: iteratorChildField })
|
|
11024
|
+
} else {
|
|
11025
|
+
XEUtils.findTree(afterTreeFullData, handleRangeRow, { children: iteratorChildField })
|
|
11026
|
+
}
|
|
11027
|
+
} else {
|
|
11028
|
+
XEUtils.findTree(afterGroupFullData, handleRangeRow, { children: iteratorChildField })
|
|
11029
|
+
}
|
|
11030
|
+
} else {
|
|
11031
|
+
const _currRowIndex = $xeTable.getVTRowIndex(currRow)
|
|
11032
|
+
const _firstRowIndex = $xeTable.getVTRowIndex(firstRow)
|
|
11033
|
+
const _lastRowIndex = $xeTable.getVTRowIndex(lastRow)
|
|
11034
|
+
if (_currRowIndex < _firstRowIndex) {
|
|
11035
|
+
rangeRows = afterFullData.slice(_currRowIndex, _firstRowIndex + 1)
|
|
11036
|
+
} else if (_currRowIndex > _lastRowIndex) {
|
|
11037
|
+
rangeRows = afterFullData.slice(_lastRowIndex, _currRowIndex + 1)
|
|
11038
|
+
} else {
|
|
11039
|
+
rangeRows = afterFullData.slice(_firstRowIndex, _currRowIndex + 1)
|
|
11040
|
+
}
|
|
11041
|
+
}
|
|
10892
11042
|
$xeTable.setAllCheckboxRow(false)
|
|
10893
|
-
const rangeRows = _rowIndex < _firstRowIndex ? afterFullData.slice(_rowIndex, _firstRowIndex + 1) : afterFullData.slice(_firstRowIndex, _rowIndex + 1)
|
|
10894
11043
|
nextTick(() => {
|
|
10895
11044
|
handleCheckedCheckboxRow(rangeRows, true, false)
|
|
10896
11045
|
})
|
|
10897
11046
|
dispatchEvent('checkbox-range-select', Object.assign({ rangeRecords: rangeRows }, params), evnt)
|
|
10898
|
-
return
|
|
10899
11047
|
}
|
|
10900
11048
|
}
|
|
10901
11049
|
}
|
|
10902
|
-
|
|
11050
|
+
|
|
11051
|
+
if (!checkMethod || checkMethod({ $table: $xeTable, row })) {
|
|
10903
11052
|
$xeTable.handleBatchSelectRows([row], checked)
|
|
10904
11053
|
$xeTable.checkSelectionStatus()
|
|
10905
11054
|
dispatchEvent('checkbox-change', Object.assign({
|
|
@@ -14474,9 +14623,6 @@ export default defineVxeComponent({
|
|
|
14474
14623
|
if (props.editConfig && editOpts.activeMethod) {
|
|
14475
14624
|
warnLog('vxe.error.delProp', ['edit-config.activeMethod', 'edit-config.beforeEditMethod'])
|
|
14476
14625
|
}
|
|
14477
|
-
if (props.treeConfig && checkboxOpts.isShiftKey) {
|
|
14478
|
-
errLog('vxe.error.reqSupportProp', ['tree-config', 'checkbox-config.isShiftKey=false'])
|
|
14479
|
-
}
|
|
14480
14626
|
if (checkboxOpts.halfField) {
|
|
14481
14627
|
warnLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField'])
|
|
14482
14628
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|