vxe-table 4.16.2 → 4.16.3
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 +5 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/menu/hook.js +4 -2
- package/es/table/src/body.js +12 -14
- package/es/table/style.css +0 -4
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +0 -4
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +6 -0
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +25 -15
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/menu/hook.js +6 -0
- package/lib/table/module/menu/hook.min.js +1 -1
- package/lib/table/src/body.js +11 -13
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/style/style.css +0 -4
- package/lib/table/style/style.min.css +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/lib/vxe-table/style/style.css +0 -4
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +5 -1
- package/packages/table/module/menu/hook.ts +5 -2
- package/packages/table/src/body.ts +11 -13
- package/styles/components/table.scss +0 -1
- /package/es/{iconfont.1756452373591.ttf → iconfont.1756629730733.ttf} +0 -0
- /package/es/{iconfont.1756452373591.woff → iconfont.1756629730733.woff} +0 -0
- /package/es/{iconfont.1756452373591.woff2 → iconfont.1756629730733.woff2} +0 -0
- /package/lib/{iconfont.1756452373591.ttf → iconfont.1756629730733.ttf} +0 -0
- /package/lib/{iconfont.1756452373591.woff → iconfont.1756629730733.woff} +0 -0
- /package/lib/{iconfont.1756452373591.woff2 → iconfont.1756629730733.woff2} +0 -0
|
@@ -148,6 +148,9 @@ hooks.add('tableMenuModule', {
|
|
|
148
148
|
* 快捷菜单事件处理
|
|
149
149
|
*/
|
|
150
150
|
handleGlobalContextmenuEvent (evnt) {
|
|
151
|
+
const $xeGrid = $xeTable.xeGrid
|
|
152
|
+
const $xeGantt = $xeTable.xeGantt
|
|
153
|
+
|
|
151
154
|
const { mouseConfig, menuConfig } = props
|
|
152
155
|
const { editStore, ctxMenuStore } = reactData
|
|
153
156
|
const { visibleColumn } = internalData
|
|
@@ -165,7 +168,7 @@ hooks.add('tableMenuModule', {
|
|
|
165
168
|
}
|
|
166
169
|
if (internalData._keyCtx) {
|
|
167
170
|
const type = 'body'
|
|
168
|
-
const params: any = { type, $table: $xeTable, keyboard: true, columns: visibleColumn.slice(0), $event: evnt }
|
|
171
|
+
const params: any = { type, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, keyboard: true, columns: visibleColumn.slice(0), $event: evnt }
|
|
169
172
|
// 如果开启单元格区域
|
|
170
173
|
if (mouseConfig && mouseOpts.area) {
|
|
171
174
|
const activeArea = $xeTable.getActiveCellArea()
|
|
@@ -192,7 +195,7 @@ hooks.add('tableMenuModule', {
|
|
|
192
195
|
// target=td|th,直接向上找 table 去匹配即可
|
|
193
196
|
return target.parentNode.parentNode.parentNode.getAttribute('xid') === xID
|
|
194
197
|
})
|
|
195
|
-
const params: any = { type: layout, $table: $xeTable, columns: visibleColumn.slice(0), $event: evnt }
|
|
198
|
+
const params: any = { type: layout, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, columns: visibleColumn.slice(0), $event: evnt }
|
|
196
199
|
if (columnTargetNode.flag) {
|
|
197
200
|
const cell = columnTargetNode.targetElem
|
|
198
201
|
const columnNodeRest = $xeTable.getColumnNode(cell)
|
|
@@ -194,14 +194,13 @@ export default defineVxeComponent({
|
|
|
194
194
|
// hover 进入事件
|
|
195
195
|
if (showTitle || showTooltip || showAllTip || tooltipConfig) {
|
|
196
196
|
tdOns.onMouseenter = (evnt: MouseEvent) => {
|
|
197
|
-
if (isVMScrollProcess()) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
$xeTable.triggerBodyTooltipEvent(evnt, cellParams)
|
|
197
|
+
if (!isVMScrollProcess()) {
|
|
198
|
+
if (showTitle) {
|
|
199
|
+
updateCellTitle(evnt.currentTarget, column)
|
|
200
|
+
} else if (showTooltip || showAllTip) {
|
|
201
|
+
// 如果配置了显示 tooltip
|
|
202
|
+
$xeTable.triggerBodyTooltipEvent(evnt, cellParams)
|
|
203
|
+
}
|
|
205
204
|
}
|
|
206
205
|
$xeTable.dispatchEvent('cell-mouseenter', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt)
|
|
207
206
|
}
|
|
@@ -209,11 +208,10 @@ export default defineVxeComponent({
|
|
|
209
208
|
// hover 退出事件
|
|
210
209
|
if (showTooltip || showAllTip || tooltipConfig) {
|
|
211
210
|
tdOns.onMouseleave = (evnt: MouseEvent) => {
|
|
212
|
-
if (isVMScrollProcess()) {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
$xeTable.handleTargetLeaveEvent(evnt)
|
|
211
|
+
if (!isVMScrollProcess()) {
|
|
212
|
+
if (showTooltip || showAllTip) {
|
|
213
|
+
$xeTable.handleTargetLeaveEvent(evnt)
|
|
214
|
+
}
|
|
217
215
|
}
|
|
218
216
|
$xeTable.dispatchEvent('cell-mouseleave', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt)
|
|
219
217
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|