From 87aafb67cafdd9159beabffaa70f95f8a1020d18 Mon Sep 17 00:00:00 2001 From: flowerField Date: Fri, 15 Jan 2021 19:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8F=8C=E5=87=BBcell?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E9=87=8A=E6=94=BE=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=80=89=E5=8C=BA=E7=AD=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/handler.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/controllers/handler.js b/src/controllers/handler.js index 1e9d152..334e159 100644 --- a/src/controllers/handler.js +++ b/src/controllers/handler.js @@ -1440,8 +1440,17 @@ export default function luckysheetHandler() { menuButton.cancelPaintModel(); } + // 检查当前坐标和焦点坐标是否一致,如果不一致那么进行修正 + let column_focus = Store.luckysheet_select_save[0]["column_focus"]; + let row_focus = Store.luckysheet_select_save[0]["row_focus"]; + if(column_focus !== col_index || row_focus !== row_index){ + row_index = row_focus; + col_index = column_focus; + }; luckysheetupdateCell(row_index, col_index, Store.flowdata); - + + /* 设置选区高亮 */ + selectHightlightShow(); } });