Explorar o código

修改单元格第一次渲染显示[object Object]

Renxy %!s(int64=2) %!d(string=hai) anos
pai
achega
230fc5db21
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/global/getRowlen.js

+ 1 - 1
src/global/getRowlen.js

@@ -490,7 +490,7 @@ function getCellTextInfo(cell , ctx, option){
         underLine = checkstatusByCell(cell ,"un");//underLine
         fontSize = checkstatusByCell(cell ,"fs");
 
-        if(cell instanceof Object){
+        if(typeof cell == 'object'){
             value = cell.m;
             if(value == null){
                 value = cell.v;