From 3f088b4dcabe64142c0ba7819367f98b192953dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=84=A2=E9=B9=8F=E6=9D=83?= <490523604@qq.com> Date: Mon, 28 Mar 2022 06:46:34 +0000 Subject: [PATCH] =?UTF-8?q?[=E6=B7=BB=E5=8A=A0]=20table=E7=9A=84tr?= =?UTF-8?q?=E4=B8=AD=E7=9A=84contextmenu=E4=BA=8B=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E7=94=A8=E4=BA=8E=E9=9B=86=E6=88=90=E8=A1=8C=E5=8F=8A=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E8=8F=9C=E5=8D=95=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/table/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/component/table/index.vue b/src/component/table/index.vue index 848f76e8..289478fe 100644 --- a/src/component/table/index.vue +++ b/src/component/table/index.vue @@ -101,6 +101,10 @@ const rowDoubleClick = function (data: any,evt:MouseEvent) { emit("row-double", data,evt); }; +const contextmenu = function (data: any,evt:MouseEvent) { + emit("contextmenu", data,evt); +}; + // 打印 table 数据 const print = function () { let subOutputRankPrint = document.getElementById(tableId) as HTMLElement; @@ -290,6 +294,7 @@ onMounted(() => {