Explorar el Código

公式不刷新的问题

xujunjie hace 1 año
padre
commit
4a75481f16
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/pages/Detail/LuckySheet.js

+ 2 - 0
src/pages/Detail/LuckySheet.js

@@ -270,7 +270,9 @@ class LuckySheet extends React.Component {
     // 所以默认设置第一个单元格的背景色
     setTimeout(() => {
       this.luckysheet.setCellFormat(0, 0, 'bg', '#fff');
+      this.luckysheet.refreshFormula();
     }, 500);
+    
   }
 
   // componentDidUpdate(prevProps) {