瀏覽代碼

fix: table cell edit bug. (#2465)

sevth 2 年之前
父節點
當前提交
582d7e7351
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/components/Table/src/components/editable/EditableCell.vue

+ 2 - 3
src/components/Table/src/components/editable/EditableCell.vue

@@ -404,9 +404,8 @@
                     column: this.column,
                     index: this.index,
                   })
-                : this.getValues
-                ? this.getValues
-                : '\u00A0'}
+                : (this.getValues ?? "\u00A0")
+                }
             </div>
             {!this.column.editRow && <FormOutlined class={`${this.prefixCls}__normal-icon`} />}
           </div>