vxe-table 4.13.13 → 4.13.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/es/style.css +1 -1
- package/es/table/src/table.js +112 -66
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +9 -53
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +7 -51
- 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 +1 -1
- package/packages/table/src/table.ts +115 -68
- /package/es/{iconfont.1745800678796.ttf → iconfont.1745827953655.ttf} +0 -0
- /package/es/{iconfont.1745800678796.woff → iconfont.1745827953655.woff} +0 -0
- /package/es/{iconfont.1745800678796.woff2 → iconfont.1745827953655.woff2} +0 -0
- /package/lib/{iconfont.1745800678796.ttf → iconfont.1745827953655.ttf} +0 -0
- /package/lib/{iconfont.1745800678796.woff → iconfont.1745827953655.woff} +0 -0
- /package/lib/{iconfont.1745800678796.woff2 → iconfont.1745827953655.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.13.
|
|
16
|
+
const version = exports.version = "4.13.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.13.
|
|
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.13.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,minHeight:144,resizeConfig:{},resizableConfig:{dragMode:"auto",showDragTip:!0,isSyncAutoHeight:!0,isSyncAutoWidth:!0,minHeight:18},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},validConfig:{showMessage:!0,autoClear:!0,autoPos:!0,message:"inline",msgMode:"single",theme:"beautify"},columnConfig:{maxFixedSize:4},cellConfig:{padding:!0},headerCellConfig:{height:"unset"},footerCellConfig:{height:"unset"},customConfig:{allowVisible:!0,allowResizable:!0,allowFixed:!0,allowSort:!0,showFooter:!0,placement:"top-right",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:{showIcon:!0},rowGroupConfig:{padding:!0,rowField:"id",parentField:"_X_ROW_PARENT_KEY",childrenField:"_X_ROW_CHILDREN",mapChildrenField:"_X_ROW_CHILD_LIST",indent:20,showIcon:!0},treeConfig:{padding:!0,rowField:"id",parentField:"parentId",childrenField:"children",hasChildField:"hasChild",mapChildrenField:"_X_ROW_CHILD",indent:20,showIcon:!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:{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:{enabled:!0,gt:24,preSize:1,oSize:0},virtualYConfig:{enabled:!0,gt:100,preSize:1,oSize:0},scrollbarConfig:{}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showResponseMsg:!0,showActiveMsg:!0,props:{list:null,result:"result",total:"page.total",message:"message"}}},toolbar:{}}),"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_RADIO_CHECKED:iconPrefix+"radio-checked-fill",TABLE_RADIO_UNCHECKED:iconPrefix+"radio-unchecked",TABLE_CUSTOM_SORT:iconPrefix+"drag-handle",TABLE_MENU_OPTIONS:iconPrefix+"arrow-right",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_COLUMN:iconPrefix+"swap",TABLE_DRAG_DISABLED:iconPrefix+"no-drop",TABLE_ROW_GROUP_OPEN:iconPrefix+"arrow-right rotate90",TABLE_ROW_GROUP_CLOSE:iconPrefix+"arrow-right",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.13.
|
|
11
|
+
const version = `table v${"4.13.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.13.
|
|
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.13.14",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -3744,41 +3744,41 @@ export default defineComponent({
|
|
|
3744
3744
|
}
|
|
3745
3745
|
}
|
|
3746
3746
|
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3747
|
+
const lazyScrollXData = () => {
|
|
3748
|
+
const { lxTimeout, lxRunTime, scrollXStore } = internalData
|
|
3749
|
+
const { visibleSize } = scrollXStore
|
|
3750
|
+
const fpsTime = visibleSize > 26 ? 26 : (visibleSize > 16 ? 14 : 6)
|
|
3751
|
+
if (lxTimeout) {
|
|
3752
|
+
clearTimeout(lxTimeout)
|
|
3753
|
+
}
|
|
3754
|
+
if (!lxRunTime || lxRunTime + fpsTime < Date.now()) {
|
|
3755
|
+
internalData.lxRunTime = Date.now()
|
|
3756
|
+
loadScrollXData()
|
|
3757
|
+
}
|
|
3758
|
+
internalData.lxTimeout = setTimeout(() => {
|
|
3759
|
+
internalData.lxTimeout = undefined
|
|
3760
|
+
internalData.lxRunTime = undefined
|
|
3761
|
+
loadScrollXData()
|
|
3762
|
+
}, fpsTime)
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
const lazyScrollYData = () => {
|
|
3766
|
+
const { lyTimeout, lyRunTime, scrollYStore } = internalData
|
|
3767
|
+
const { visibleSize } = scrollYStore
|
|
3768
|
+
const fpsTime = visibleSize > 30 ? 32 : (visibleSize > 20 ? 18 : 8)
|
|
3769
|
+
if (lyTimeout) {
|
|
3770
|
+
clearTimeout(lyTimeout)
|
|
3771
|
+
}
|
|
3772
|
+
if (!lyRunTime || lyRunTime + fpsTime < Date.now()) {
|
|
3773
|
+
internalData.lyRunTime = Date.now()
|
|
3774
|
+
loadScrollYData()
|
|
3775
|
+
}
|
|
3776
|
+
internalData.lyTimeout = setTimeout(() => {
|
|
3777
|
+
internalData.lyTimeout = undefined
|
|
3778
|
+
internalData.lyRunTime = undefined
|
|
3779
|
+
loadScrollYData()
|
|
3780
|
+
}, fpsTime)
|
|
3781
|
+
}
|
|
3782
3782
|
|
|
3783
3783
|
const checkLastSyncScroll = (isRollX: boolean, isRollY: boolean) => {
|
|
3784
3784
|
const { scrollXLoad, scrollYLoad } = reactData
|
|
@@ -9648,23 +9648,23 @@ export default defineComponent({
|
|
|
9648
9648
|
* 横向 X 可视渲染事件处理
|
|
9649
9649
|
*/
|
|
9650
9650
|
triggerScrollXEvent () {
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
|
|
9651
|
+
const virtualXOpts = computeVirtualXOpts.value
|
|
9652
|
+
if (virtualXOpts.immediate) {
|
|
9653
|
+
loadScrollXData()
|
|
9654
|
+
} else {
|
|
9655
|
+
lazyScrollXData()
|
|
9656
|
+
}
|
|
9657
9657
|
},
|
|
9658
9658
|
/**
|
|
9659
9659
|
* 纵向 Y 可视渲染事件处理
|
|
9660
9660
|
*/
|
|
9661
9661
|
triggerScrollYEvent () {
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9665
|
-
|
|
9666
|
-
|
|
9667
|
-
|
|
9662
|
+
const virtualYOpts = computeVirtualYOpts.value
|
|
9663
|
+
if (virtualYOpts.immediate) {
|
|
9664
|
+
loadScrollYData()
|
|
9665
|
+
} else {
|
|
9666
|
+
lazyScrollYData()
|
|
9667
|
+
}
|
|
9668
9668
|
},
|
|
9669
9669
|
triggerBodyScrollEvent (evnt, fixedType) {
|
|
9670
9670
|
const { scrollYLoad, scrollXLoad } = reactData
|
|
@@ -9877,9 +9877,8 @@ export default defineComponent({
|
|
|
9877
9877
|
if (isRollX) {
|
|
9878
9878
|
evnt.preventDefault()
|
|
9879
9879
|
internalData.inWheelScroll = true
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
const currLeftNum = offsetLeft
|
|
9880
|
+
if (browseObj['-moz'] || browseObj.safari) {
|
|
9881
|
+
const currLeftNum = scrollLeft
|
|
9883
9882
|
setScrollLeft(xHandleEl, currLeftNum)
|
|
9884
9883
|
setScrollLeft(bodyScrollElem, currLeftNum)
|
|
9885
9884
|
setScrollLeft(headerScrollElem, currLeftNum)
|
|
@@ -9891,14 +9890,29 @@ export default defineComponent({
|
|
|
9891
9890
|
type: 'table',
|
|
9892
9891
|
fixed: ''
|
|
9893
9892
|
})
|
|
9894
|
-
}
|
|
9893
|
+
} else {
|
|
9894
|
+
wheelScrollLeftTo(scrollLeft, (offsetLeft: number) => {
|
|
9895
|
+
internalData.inWheelScroll = true
|
|
9896
|
+
const currLeftNum = offsetLeft
|
|
9897
|
+
setScrollLeft(xHandleEl, currLeftNum)
|
|
9898
|
+
setScrollLeft(bodyScrollElem, currLeftNum)
|
|
9899
|
+
setScrollLeft(headerScrollElem, currLeftNum)
|
|
9900
|
+
setScrollLeft(footerScrollElem, currLeftNum)
|
|
9901
|
+
if (scrollXLoad) {
|
|
9902
|
+
$xeTable.triggerScrollXEvent(evnt)
|
|
9903
|
+
}
|
|
9904
|
+
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, bodyScrollElem.scrollTop, currLeftNum, {
|
|
9905
|
+
type: 'table',
|
|
9906
|
+
fixed: ''
|
|
9907
|
+
})
|
|
9908
|
+
})
|
|
9909
|
+
}
|
|
9895
9910
|
}
|
|
9896
9911
|
if (isRollY) {
|
|
9897
9912
|
evnt.preventDefault()
|
|
9898
9913
|
internalData.inWheelScroll = true
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
const currTopNum = bodyScrollElem.scrollTop + offsetTop
|
|
9914
|
+
if (browseObj['-moz'] || browseObj.safari) {
|
|
9915
|
+
const currTopNum = scrollTop
|
|
9902
9916
|
setScrollTop(yHandleEl, currTopNum)
|
|
9903
9917
|
setScrollTop(bodyScrollElem, currTopNum)
|
|
9904
9918
|
setScrollTop(leftScrollElem, currTopNum)
|
|
@@ -9911,7 +9925,24 @@ export default defineComponent({
|
|
|
9911
9925
|
type: 'table',
|
|
9912
9926
|
fixed: ''
|
|
9913
9927
|
})
|
|
9914
|
-
}
|
|
9928
|
+
} else {
|
|
9929
|
+
wheelScrollTopTo(scrollTop - currScrollTop, (offsetTop: number) => {
|
|
9930
|
+
internalData.inWheelScroll = true
|
|
9931
|
+
const currTopNum = bodyScrollElem.scrollTop + offsetTop
|
|
9932
|
+
setScrollTop(yHandleEl, currTopNum)
|
|
9933
|
+
setScrollTop(bodyScrollElem, currTopNum)
|
|
9934
|
+
setScrollTop(leftScrollElem, currTopNum)
|
|
9935
|
+
setScrollTop(rightScrollElem, currTopNum)
|
|
9936
|
+
setScrollTop(rowExpandEl, currTopNum)
|
|
9937
|
+
if (scrollYLoad) {
|
|
9938
|
+
$xeTable.triggerScrollYEvent(evnt)
|
|
9939
|
+
}
|
|
9940
|
+
$xeTable.handleScrollEvent(evnt, isRollY, isRollX, currTopNum, bodyScrollElem.scrollLeft, {
|
|
9941
|
+
type: 'table',
|
|
9942
|
+
fixed: ''
|
|
9943
|
+
})
|
|
9944
|
+
})
|
|
9945
|
+
}
|
|
9915
9946
|
}
|
|
9916
9947
|
},
|
|
9917
9948
|
triggerVirtualScrollXEvent (evnt) {
|
|
@@ -10050,22 +10081,20 @@ export default defineComponent({
|
|
|
10050
10081
|
isScrollXBig = true
|
|
10051
10082
|
}
|
|
10052
10083
|
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
marginLeft = `${xSpaceLeft}px`
|
|
10084
|
+
if (!(scrollXLoad && overflowX)) {
|
|
10085
|
+
xSpaceLeft = 0
|
|
10056
10086
|
}
|
|
10087
|
+
|
|
10057
10088
|
if (headerTableElem) {
|
|
10058
|
-
headerTableElem.style.
|
|
10089
|
+
headerTableElem.style.transform = headerTableElem.getAttribute('xvm') ? `translate(${xSpaceLeft}px, 0px)` : ''
|
|
10059
10090
|
}
|
|
10060
10091
|
if (bodyTableElem) {
|
|
10061
|
-
bodyTableElem.style.
|
|
10092
|
+
bodyTableElem.style.transform = `translate(${xSpaceLeft}px, ${reactData.scrollYTop || 0}px)`
|
|
10062
10093
|
}
|
|
10063
10094
|
if (footerTableElem) {
|
|
10064
|
-
footerTableElem.style.
|
|
10095
|
+
footerTableElem.style.transform = footerTableElem.getAttribute('xvm') ? `translate(${xSpaceLeft}px, 0px)` : ''
|
|
10065
10096
|
}
|
|
10066
10097
|
|
|
10067
|
-
reactData.isScrollXBig = isScrollXBig
|
|
10068
|
-
|
|
10069
10098
|
const containerList = ['main']
|
|
10070
10099
|
containerList.forEach(name => {
|
|
10071
10100
|
const layoutList = ['header', 'body', 'footer']
|
|
@@ -10076,6 +10105,11 @@ export default defineComponent({
|
|
|
10076
10105
|
}
|
|
10077
10106
|
})
|
|
10078
10107
|
})
|
|
10108
|
+
|
|
10109
|
+
reactData.scrollXLeft = xSpaceLeft
|
|
10110
|
+
reactData.scrollXWidth = ySpaceWidth
|
|
10111
|
+
reactData.isScrollXBig = isScrollXBig
|
|
10112
|
+
|
|
10079
10113
|
const scrollXSpaceEl = refScrollXSpaceElem.value
|
|
10080
10114
|
if (scrollXSpaceEl) {
|
|
10081
10115
|
scrollXSpaceEl.style.width = `${ySpaceWidth}px`
|
|
@@ -10092,7 +10126,7 @@ export default defineComponent({
|
|
|
10092
10126
|
},
|
|
10093
10127
|
// 更新纵向 Y 可视渲染上下剩余空间大小
|
|
10094
10128
|
updateScrollYSpace () {
|
|
10095
|
-
const { isAllOverflow, scrollYLoad, expandColumn } = reactData
|
|
10129
|
+
const { isAllOverflow, overflowY, scrollYLoad, expandColumn } = reactData
|
|
10096
10130
|
const { scrollYStore, elemStore, isResizeCellHeight, afterFullData, fullAllDataRowIdData, rowExpandedMaps } = internalData
|
|
10097
10131
|
const { startIndex } = scrollYStore
|
|
10098
10132
|
const mouseOpts = computeMouseOpts.value
|
|
@@ -10102,6 +10136,8 @@ export default defineComponent({
|
|
|
10102
10136
|
const defaultRowHeight = computeDefaultRowHeight.value
|
|
10103
10137
|
const bodyScrollElem = getRefElem(elemStore['main-body-scroll'])
|
|
10104
10138
|
const bodyTableElem = getRefElem(elemStore['main-body-table'])
|
|
10139
|
+
const leftBodyTableElem = getRefElem(elemStore['left-body-table'])
|
|
10140
|
+
const rightbodyTableElem = getRefElem(elemStore['right-body-table'])
|
|
10105
10141
|
const containerList = ['main', 'left', 'right']
|
|
10106
10142
|
let ySpaceTop = 0
|
|
10107
10143
|
let scrollYHeight = 0
|
|
@@ -10153,12 +10189,22 @@ export default defineComponent({
|
|
|
10153
10189
|
}
|
|
10154
10190
|
ySpaceHeight = maxYHeight
|
|
10155
10191
|
}
|
|
10192
|
+
if (!(scrollYLoad && overflowY)) {
|
|
10193
|
+
scrollYTop = 0
|
|
10194
|
+
}
|
|
10195
|
+
|
|
10196
|
+
if (leftBodyTableElem) {
|
|
10197
|
+
leftBodyTableElem.style.transform = `translate(0px, ${scrollYTop}px)`
|
|
10198
|
+
}
|
|
10199
|
+
if (bodyTableElem) {
|
|
10200
|
+
bodyTableElem.style.transform = `translate(${reactData.scrollXLeft || 0}px, ${scrollYTop}px)`
|
|
10201
|
+
}
|
|
10202
|
+
if (rightbodyTableElem) {
|
|
10203
|
+
rightbodyTableElem.style.transform = `translate(0px, ${scrollYTop}px)`
|
|
10204
|
+
}
|
|
10205
|
+
|
|
10156
10206
|
containerList.forEach(name => {
|
|
10157
10207
|
const layoutList = ['header', 'body', 'footer']
|
|
10158
|
-
const tableElem = getRefElem(elemStore[`${name}-body-table`])
|
|
10159
|
-
if (tableElem) {
|
|
10160
|
-
tableElem.style.marginTop = scrollYTop ? `${scrollYTop}px` : ''
|
|
10161
|
-
}
|
|
10162
10208
|
layoutList.forEach(layout => {
|
|
10163
10209
|
const ySpaceElem = getRefElem(elemStore[`${name}-${layout}-ySpace`])
|
|
10164
10210
|
if (ySpaceElem) {
|
|
@@ -10166,6 +10212,7 @@ export default defineComponent({
|
|
|
10166
10212
|
}
|
|
10167
10213
|
})
|
|
10168
10214
|
})
|
|
10215
|
+
|
|
10169
10216
|
const scrollYSpaceEl = refScrollYSpaceElem.value
|
|
10170
10217
|
if (scrollYSpaceEl) {
|
|
10171
10218
|
scrollYSpaceEl.style.height = ySpaceHeight ? `${ySpaceHeight}px` : ''
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|