فهرست منبع

渲染后增加刷新

Renxy 2 سال پیش
والد
کامیت
99f98118f0
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/pages/Temp/index.js

+ 4 - 0
src/pages/Temp/index.js

@@ -1,5 +1,6 @@
 import react, { useRef } from 'react';
 import LuckyExcel from 'luckyexcel';
+import { message } from 'antd';
 
 function Index() {
   const sheetRef = useRef();
@@ -70,6 +71,9 @@ function Index() {
         cellMousedown: (cell, position, sheet) => {
           console.log(cell, position, sheet);
         },
+        cellUpdated: () => {
+          luckysheetRef.current.refreshFormula();
+        },
       },
     };