mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-08 11:47:38 +08:00
fix: pass language to calcSelectionInfo
This commit is contained in:
parent
2d3263cdf3
commit
5f570a85d3
@ -100,8 +100,9 @@ const Workbook = React.forwardRef<WorkbookInstance, Settings & AdditionalProps>(
|
||||
// 计算选区的信息
|
||||
useEffect(() => {
|
||||
const selection = context.luckysheet_select_save;
|
||||
const { lang } = props;
|
||||
if (selection) {
|
||||
const re = calcSelectionInfo(context);
|
||||
const re = calcSelectionInfo(context, lang);
|
||||
setCalInfo(re);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
|
Loading…
Reference in New Issue
Block a user