Browse Source

Merge pull request #323 from renxxing/patch-1

repair
master
mengshukeji 5 years ago
committed by GitHub
parent
commit
77dcfbfe65
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      src/controllers/select.js

11
src/controllers/select.js

@ -6,6 +6,7 @@ import browser from '../global/browser';
import dataVerificationCtrl from './dataVerificationCtrl'; import dataVerificationCtrl from './dataVerificationCtrl';
import { getSheetIndex, getRangetxt } from '../methods/get'; import { getSheetIndex, getRangetxt } from '../methods/get';
import Store from '../store'; import Store from '../store';
import method from '../global/method';
import locale from '../locale/locale'; import locale from '../locale/locale';
//公式函数 选区实体框 //公式函数 选区实体框
@ -182,6 +183,14 @@ function selectHightlightShow(isRestore = false) {
} }
Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].luckysheet_select_save = Store.luckysheet_select_save; Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)].luckysheet_select_save = Store.luckysheet_select_save;
// Hook function, change the range selection box, selectHightlightShowillbe triggered multiple times when mousemove is moused, and thhistoricalvalue is used here to throttle
const luckysheet_select_save_previous = JSON.stringify(Store.luckysheet_select_save);
if(Store.luckysheet_select_save_previous == null |Store.luckysheet_select_save_previous !== luckysheet_select_save_previous){
method.createHookFunction('rangeSelect', Store.luckysheetfile[getSheetIndex(Store.currentSheetIndex)], Store.luckysheet_select_save);
}
Store.luckysheet_select_save_previous = luckysheet_select_save_previous;
} }
//选区标题栏 //选区标题栏
@ -546,4 +555,4 @@ export {
collaborativeEditBox, collaborativeEditBox,
luckysheet_count_show, luckysheet_count_show,
selectHelpboxFill selectHelpboxFill
} }

Loading…
Cancel
Save