From d35330a7913f34a8429b40e445b00dac3afc9514 Mon Sep 17 00:00:00 2001 From: NMTuan Date: Fri, 14 Jul 2023 15:27:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=8C=E5=87=BB=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=A1=8C=E7=A9=BA=E7=99=BD=E5=8C=BA=E5=9F=9F=EF=BC=8C=E6=89=93?= =?UTF-8?q?=E5=BC=80detail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/manager/[...key].vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/manager/[...key].vue b/pages/manager/[...key].vue index cca8b1c..7f6544b 100644 --- a/pages/manager/[...key].vue +++ b/pages/manager/[...key].vue @@ -28,7 +28,7 @@ :width="width" :height="height"> @@ -113,6 +113,15 @@ const handlerCellClick = ({ rowIndex }) => { currentRowIndex.value = rowIndex } +// 单元格的双击事件 +const handlerCellDblclick = () => { + // 如果未选择内容,则打开详情 + const selected = window.getSelection().toString() + if (selected.trim() === '') { + detailVisible.value = true + } +} + // 处理row的样式 const handlerRowClass = ({ rowIndex }) => { if (currentRowIndex.value === rowIndex) {