Skip to content

Commit 15b810f

Browse files
committed
fix(bug): setCellValue 初次设置时显示值不生效
1 parent 08c4a22 commit 15b810f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/global/api.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ export function setCellValue(row, column, value, options = {}) {
164164
}
165165
else if(value instanceof Object){
166166
let curv = {};
167-
let cell = data[row][column];
168-
if(isRealNull(cell)){
169-
cell = {};
167+
if(isRealNull(data[row][column])){
168+
data[row][column] = {};
170169
}
170+
let cell = data[row][column];
171171
if(value.f!=null && value.v==null){
172172
curv.f = value.f;
173173
if(value.ct!=null){

0 commit comments

Comments
 (0)