From 5111c5ec3ecd2f49ea27b4795a4e7762c4444430 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Tue, 22 Jun 2021 21:42:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BE=E8=A1=A8=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=B7=BB=E5=8A=A0=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=EF=BC=9A=E5=9B=9E=E8=BD=A6=E8=81=9A=E7=84=A6=E5=88=B0=E4=B8=8B?= =?UTF-8?q?=E4=B8=80=E8=A1=8C(#44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/configs/hotkey.ts | 6 ++++ .../ChartStylePanel/ChartDataEditor.vue | 29 +++++++++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/configs/hotkey.ts b/src/configs/hotkey.ts index cd32fb5c..43fcfff4 100644 --- a/src/configs/hotkey.ts +++ b/src/configs/hotkey.ts @@ -84,6 +84,12 @@ export const HOTKEY_DOC = [ { label: '在右侧插入一列', value: 'Ctrl + →' }, ], }, + { + type: '图表数据编辑', + children: [ + { label: '聚焦到下一行', value: 'Enter' }, + ], + }, { type: '文本编辑', children: [ diff --git a/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue b/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue index 4ae3820e..dd666fc0 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/ChartStylePanel/ChartDataEditor.vue @@ -29,6 +29,7 @@ :class="['item', { 'selected': rowIndex <= selectedRange[1] && colIndex <= selectedRange[0] }]" :id="`cell-${rowIndex - 1}-${colIndex - 1}`" autocomplete="off" + @focus="focusCell = [rowIndex - 1, colIndex - 1]" > @@ -44,8 +45,9 @@