vxe-table 4.16.7 → 4.16.8
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/grid/src/grid.js +12 -0
- package/es/style.css +1 -1
- package/es/table/src/table.js +49 -8
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +12 -0
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +22 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +8 -8
- 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/grid/src/grid.ts +15 -0
- package/packages/table/src/table.ts +49 -8
- /package/es/{iconfont.1757059046547.ttf → iconfont.1757293933468.ttf} +0 -0
- /package/es/{iconfont.1757059046547.woff → iconfont.1757293933468.woff} +0 -0
- /package/es/{iconfont.1757059046547.woff2 → iconfont.1757293933468.woff2} +0 -0
- /package/lib/{iconfont.1757059046547.ttf → iconfont.1757293933468.ttf} +0 -0
- /package/lib/{iconfont.1757059046547.woff → iconfont.1757293933468.woff} +0 -0
- /package/lib/{iconfont.1757059046547.woff2 → iconfont.1757293933468.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.16.
|
|
16
|
+
const version = exports.version = "4.16.8";
|
|
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.16.
|
|
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.16.8",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},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:{autoOptions:{isCalcHeader:!0,isCalcBody:!0,isCalcFooter:!0},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",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:{multiple:!0,showIcon:!0},aggregateConfig:{padding:!0,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},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}}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:null,result:"result",total:"page.total",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_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.16.
|
|
11
|
+
const version = `table v${"4.16.8"}`;
|
|
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.16.
|
|
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.16.8",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.16.
|
|
3
|
+
"version": "4.16.8",
|
|
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",
|
|
@@ -697,6 +697,9 @@ export default defineVxeComponent({
|
|
|
697
697
|
const loadingSlot = slots.loading
|
|
698
698
|
const rowDragIconSlot = slots.rowDragIcon || slots['row-drag-icon']
|
|
699
699
|
const columnDragIconSlot = slots.columnDragIcon || slots['column-drag-icon']
|
|
700
|
+
const headerTooltipSlot = slots.headerTooltip || slots['header-tooltip']
|
|
701
|
+
const tooltipSlot = slots.tooltip
|
|
702
|
+
const footerTooltipSlot = slots.footerTooltip || slots['footer-tooltip']
|
|
700
703
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
701
704
|
if (proxyOpts.sort) {
|
|
702
705
|
tableOns.onSortChange = sortChangeEvent
|
|
@@ -712,6 +715,9 @@ export default defineVxeComponent({
|
|
|
712
715
|
loading?(params: any): any
|
|
713
716
|
rowDragIcon?(params: any): any
|
|
714
717
|
columnDragIcon?(params: any): any
|
|
718
|
+
headerTooltip?(params: any): any
|
|
719
|
+
tooltip?(params: any): any
|
|
720
|
+
footerTooltip?(params: any): any
|
|
715
721
|
} = {}
|
|
716
722
|
if (emptySlot) {
|
|
717
723
|
slotObj.empty = emptySlot
|
|
@@ -725,6 +731,15 @@ export default defineVxeComponent({
|
|
|
725
731
|
if (columnDragIconSlot) {
|
|
726
732
|
slotObj.columnDragIcon = columnDragIconSlot
|
|
727
733
|
}
|
|
734
|
+
if (headerTooltipSlot) {
|
|
735
|
+
slotObj.headerTooltip = headerTooltipSlot
|
|
736
|
+
}
|
|
737
|
+
if (tooltipSlot) {
|
|
738
|
+
slotObj.tooltip = tooltipSlot
|
|
739
|
+
}
|
|
740
|
+
if (footerTooltipSlot) {
|
|
741
|
+
slotObj.footerTooltip = footerTooltipSlot
|
|
742
|
+
}
|
|
728
743
|
return h('div', {
|
|
729
744
|
class: 'vxe-grid--table-wrapper'
|
|
730
745
|
}, [
|
|
@@ -216,6 +216,7 @@ export default defineVxeComponent({
|
|
|
216
216
|
column: null,
|
|
217
217
|
content: null,
|
|
218
218
|
visible: false,
|
|
219
|
+
type: null,
|
|
219
220
|
currOpts: {}
|
|
220
221
|
},
|
|
221
222
|
// 存放数据校验相关信息
|
|
@@ -5740,6 +5741,7 @@ export default defineVxeComponent({
|
|
|
5740
5741
|
column: null,
|
|
5741
5742
|
content: null,
|
|
5742
5743
|
visible: false,
|
|
5744
|
+
type: null,
|
|
5743
5745
|
currOpts: {}
|
|
5744
5746
|
})
|
|
5745
5747
|
if ($tooltip && $tooltip.close) {
|
|
@@ -8215,7 +8217,7 @@ export default defineVxeComponent({
|
|
|
8215
8217
|
* @param {Event} evnt 事件
|
|
8216
8218
|
* @param {Row} row 行对象
|
|
8217
8219
|
*/
|
|
8218
|
-
const handleTooltip = (evnt: MouseEvent, tdEl: HTMLTableCellElement, overflowElem: HTMLElement | null, tipElem: HTMLElement | null, params: any) => {
|
|
8220
|
+
const handleTooltip = (evnt: MouseEvent, type: 'header' | 'body' | 'footer', tdEl: HTMLTableCellElement, overflowElem: HTMLElement | null, tipElem: HTMLElement | null, params: any) => {
|
|
8219
8221
|
const tipOverEl = overflowElem || tdEl
|
|
8220
8222
|
if (!tipOverEl) {
|
|
8221
8223
|
return nextTick()
|
|
@@ -8230,16 +8232,19 @@ export default defineVxeComponent({
|
|
|
8230
8232
|
const content = useCustom ? customContent : XEUtils.toString(column.type === 'html' ? tipOverEl.innerText : tipOverEl.textContent).trim()
|
|
8231
8233
|
const isOver = tipOverEl.scrollWidth > tipOverEl.clientWidth
|
|
8232
8234
|
if (content && (showAll || useCustom || isOver)) {
|
|
8235
|
+
const tipContent = formatText(content)
|
|
8233
8236
|
Object.assign(tooltipStore, {
|
|
8234
8237
|
row,
|
|
8235
8238
|
column,
|
|
8236
8239
|
visible: true,
|
|
8240
|
+
content: tipContent,
|
|
8241
|
+
type,
|
|
8237
8242
|
currOpts: {}
|
|
8238
8243
|
})
|
|
8239
8244
|
nextTick(() => {
|
|
8240
8245
|
const $tooltip = refTooltip.value
|
|
8241
8246
|
if ($tooltip && $tooltip.open) {
|
|
8242
|
-
$tooltip.open(isOver ? tipOverEl : tipElem,
|
|
8247
|
+
$tooltip.open(isOver ? tipOverEl : tipElem, tipContent)
|
|
8243
8248
|
}
|
|
8244
8249
|
})
|
|
8245
8250
|
}
|
|
@@ -9363,7 +9368,7 @@ export default defineVxeComponent({
|
|
|
9363
9368
|
}
|
|
9364
9369
|
if (tooltipStore.column !== column || !tooltipStore.visible) {
|
|
9365
9370
|
const ctEl = thEl.querySelector<HTMLElement>('.vxe-cell--title')
|
|
9366
|
-
handleTooltip(evnt, thEl, (hasClass(thEl, 'col--ellipsis') ? ctEl : cWrapperEl) || cWrapperEl, ctEl || cellEl, params)
|
|
9371
|
+
handleTooltip(evnt, 'header', thEl, (hasClass(thEl, 'col--ellipsis') ? ctEl : cWrapperEl) || cWrapperEl, ctEl || cellEl, params)
|
|
9367
9372
|
}
|
|
9368
9373
|
},
|
|
9369
9374
|
/**
|
|
@@ -9399,7 +9404,7 @@ export default defineVxeComponent({
|
|
|
9399
9404
|
if (!tipEl) {
|
|
9400
9405
|
tipEl = ctEl
|
|
9401
9406
|
}
|
|
9402
|
-
handleTooltip(evnt, tdEl, ovEl || ctEl, tipEl, params)
|
|
9407
|
+
handleTooltip(evnt, 'body', tdEl, ovEl || ctEl, tipEl, params)
|
|
9403
9408
|
}
|
|
9404
9409
|
},
|
|
9405
9410
|
/**
|
|
@@ -9420,7 +9425,7 @@ export default defineVxeComponent({
|
|
|
9420
9425
|
if (!tipEl) {
|
|
9421
9426
|
tipEl = ctEl
|
|
9422
9427
|
}
|
|
9423
|
-
handleTooltip(evnt, tdEl, ovEl || ctEl, tipEl, params)
|
|
9428
|
+
handleTooltip(evnt, 'footer', tdEl, ovEl || ctEl, tipEl, params)
|
|
9424
9429
|
}
|
|
9425
9430
|
},
|
|
9426
9431
|
handleTargetLeaveEvent () {
|
|
@@ -12228,10 +12233,16 @@ export default defineVxeComponent({
|
|
|
12228
12233
|
|
|
12229
12234
|
const renderVN = () => {
|
|
12230
12235
|
const { loading, stripe, showHeader, height, treeConfig, mouseConfig, showFooter, highlightCell, highlightHoverRow, highlightHoverColumn, editConfig, editRules } = props
|
|
12231
|
-
const { isGroup, overflowX, overflowY, scrollXLoad, scrollYLoad, tableData, initStore, isRowGroupStatus, columnStore, filterStore, customStore } = reactData
|
|
12236
|
+
const { isGroup, overflowX, overflowY, scrollXLoad, scrollYLoad, tableData, initStore, isRowGroupStatus, columnStore, filterStore, customStore, tooltipStore } = reactData
|
|
12232
12237
|
const { teleportToWrapperElem } = internalData
|
|
12233
12238
|
const { leftList, rightList } = columnStore
|
|
12234
12239
|
const loadingSlot = slots.loading
|
|
12240
|
+
const tipSlots = {
|
|
12241
|
+
header: slots.headerTooltip || slots['header-tooltip'],
|
|
12242
|
+
body: slots.tooltip,
|
|
12243
|
+
footer: slots.footerTooltip || slots['footer-tooltip']
|
|
12244
|
+
}
|
|
12245
|
+
const currTooltipSlot = tooltipStore.visible && tooltipStore.type ? tipSlots[tooltipStore.type] : null
|
|
12235
12246
|
const rowDragOpts = computeRowDragOpts.value
|
|
12236
12247
|
const tableTipConfig = computeTableTipConfig.value
|
|
12237
12248
|
const validTipConfig = computeValidTipConfig.value
|
|
@@ -12492,8 +12503,38 @@ export default defineVxeComponent({
|
|
|
12492
12503
|
enterable: tableTipConfig.enterable,
|
|
12493
12504
|
enterDelay: tableTipConfig.enterDelay,
|
|
12494
12505
|
leaveDelay: tableTipConfig.leaveDelay,
|
|
12495
|
-
useHTML: tableTipConfig.useHTML
|
|
12496
|
-
|
|
12506
|
+
useHTML: tableTipConfig.useHTML,
|
|
12507
|
+
width: tableTipConfig.width,
|
|
12508
|
+
height: tableTipConfig.height,
|
|
12509
|
+
minWidth: tableTipConfig.minWidth,
|
|
12510
|
+
minHeight: tableTipConfig.minHeight,
|
|
12511
|
+
maxWidth: tableTipConfig.maxWidth,
|
|
12512
|
+
maxHeight: tableTipConfig.maxHeight
|
|
12513
|
+
}, currTooltipSlot
|
|
12514
|
+
? {
|
|
12515
|
+
content: () => {
|
|
12516
|
+
const { type, row, column, content: tooltipContent } = tooltipStore
|
|
12517
|
+
if (currTooltipSlot) {
|
|
12518
|
+
if (column && type === 'header') {
|
|
12519
|
+
return h('div', {
|
|
12520
|
+
key: type
|
|
12521
|
+
}, currTooltipSlot({ column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt }))
|
|
12522
|
+
}
|
|
12523
|
+
if (row && column && type === 'body') {
|
|
12524
|
+
return h('div', {
|
|
12525
|
+
key: type
|
|
12526
|
+
}, currTooltipSlot({ row, column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt }))
|
|
12527
|
+
}
|
|
12528
|
+
if (row && column && type === 'footer') {
|
|
12529
|
+
return h('div', {
|
|
12530
|
+
key: type
|
|
12531
|
+
}, currTooltipSlot({ row, column, tooltipContent, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt }))
|
|
12532
|
+
}
|
|
12533
|
+
}
|
|
12534
|
+
return renderEmptyElement($xeTable)
|
|
12535
|
+
}
|
|
12536
|
+
}
|
|
12537
|
+
: {}),
|
|
12497
12538
|
/**
|
|
12498
12539
|
* 校验提示
|
|
12499
12540
|
*/
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|