|
|
@@ -43,8 +43,8 @@ export default defineComponent({
|
|
|
});
|
|
|
|
|
|
function onContextMenu(value: MouseEvent) {
|
|
|
- const target = value.target as any;
|
|
|
- if (target.nodeName === 'TD') { // 过滤右键表头
|
|
|
+ if (value.type === 'contextmenu') {
|
|
|
+ // 过滤右键表头
|
|
|
const { clientX, clientY } = value;
|
|
|
Object.assign(menuContext.position, { clientX, clientY });
|
|
|
menuContext.show = true;
|