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) {