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
|
@@ -146,6 +146,8 @@ hooks.add('tableMenuModule', {
|
|
|
146
146
|
* 快捷菜单事件处理
|
|
147
147
|
*/
|
|
148
148
|
handleGlobalContextmenuEvent(evnt) {
|
|
149
|
+
const $xeGrid = $xeTable.xeGrid;
|
|
150
|
+
const $xeGantt = $xeTable.xeGantt;
|
|
149
151
|
const { mouseConfig, menuConfig } = props;
|
|
150
152
|
const { editStore, ctxMenuStore } = reactData;
|
|
151
153
|
const { visibleColumn } = internalData;
|
|
@@ -163,7 +165,7 @@ hooks.add('tableMenuModule', {
|
|
|
163
165
|
}
|
|
164
166
|
if (internalData._keyCtx) {
|
|
165
167
|
const type = 'body';
|
|
166
|
-
const params = { type, $table: $xeTable, keyboard: true, columns: visibleColumn.slice(0), $event: evnt };
|
|
168
|
+
const params = { type, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, keyboard: true, columns: visibleColumn.slice(0), $event: evnt };
|
|
167
169
|
// 如果开启单元格区域
|
|
168
170
|
if (mouseConfig && mouseOpts.area) {
|
|
169
171
|
const activeArea = $xeTable.getActiveCellArea();
|
|
@@ -191,7 +193,7 @@ hooks.add('tableMenuModule', {
|
|
|
191
193
|
// target=td|th,直接向上找 table 去匹配即可
|
|
192
194
|
return target.parentNode.parentNode.parentNode.getAttribute('xid') === xID;
|
|
193
195
|
});
|
|
194
|
-
const params = { type: layout, $table: $xeTable, columns: visibleColumn.slice(0), $event: evnt };
|
|
196
|
+
const params = { type: layout, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt, columns: visibleColumn.slice(0), $event: evnt };
|
|
195
197
|
if (columnTargetNode.flag) {
|
|
196
198
|
const cell = columnTargetNode.targetElem;
|
|
197
199
|
const columnNodeRest = $xeTable.getColumnNode(cell);
|
package/es/table/src/body.js
CHANGED
|
@@ -167,15 +167,14 @@ export default defineVxeComponent({
|
|
|
167
167
|
// hover 进入事件
|
|
168
168
|
if (showTitle || showTooltip || showAllTip || tooltipConfig) {
|
|
169
169
|
tdOns.onMouseenter = (evnt) => {
|
|
170
|
-
if (isVMScrollProcess()) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
$xeTable.triggerBodyTooltipEvent(evnt, cellParams);
|
|
170
|
+
if (!isVMScrollProcess()) {
|
|
171
|
+
if (showTitle) {
|
|
172
|
+
updateCellTitle(evnt.currentTarget, column);
|
|
173
|
+
}
|
|
174
|
+
else if (showTooltip || showAllTip) {
|
|
175
|
+
// 如果配置了显示 tooltip
|
|
176
|
+
$xeTable.triggerBodyTooltipEvent(evnt, cellParams);
|
|
177
|
+
}
|
|
179
178
|
}
|
|
180
179
|
$xeTable.dispatchEvent('cell-mouseenter', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt);
|
|
181
180
|
};
|
|
@@ -183,11 +182,10 @@ export default defineVxeComponent({
|
|
|
183
182
|
// hover 退出事件
|
|
184
183
|
if (showTooltip || showAllTip || tooltipConfig) {
|
|
185
184
|
tdOns.onMouseleave = (evnt) => {
|
|
186
|
-
if (isVMScrollProcess()) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
$xeTable.handleTargetLeaveEvent(evnt);
|
|
185
|
+
if (!isVMScrollProcess()) {
|
|
186
|
+
if (showTooltip || showAllTip) {
|
|
187
|
+
$xeTable.handleTargetLeaveEvent(evnt);
|
|
188
|
+
}
|
|
191
189
|
}
|
|
192
190
|
$xeTable.dispatchEvent('cell-mouseleave', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt);
|
|
193
191
|
};
|
package/es/table/style.css
CHANGED
|
@@ -2394,10 +2394,6 @@
|
|
|
2394
2394
|
.vxe-header--column .vxe-cell-title-suffix-icon {
|
|
2395
2395
|
padding: 0.2em;
|
|
2396
2396
|
}
|
|
2397
|
-
.vxe-header--column .vxe-cell-title-prefix-icon,
|
|
2398
|
-
.vxe-header--column .vxe-cell-title-suffix-icon {
|
|
2399
|
-
cursor: help;
|
|
2400
|
-
}
|
|
2401
2397
|
.vxe-header--column .vxe-cell-title-prefix-icon.theme--primary,
|
|
2402
2398
|
.vxe-header--column .vxe-cell-title-suffix-icon.theme--primary {
|
|
2403
2399
|
color: var(--vxe-ui-font-primary-color);
|