浏览代码

FixEditcell: 修复可编辑单元格不显示0的bug (#1486)

* fix: 修复可编辑表格不显示 0 的bug

* fix: 修复编辑单元格为空时不能触发编辑的bug
Henry Rao 3 年之前
父节点
当前提交
46e28f0203
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/Table/src/components/editable/EditableCell.vue

+ 1 - 1
src/components/Table/src/components/editable/EditableCell.vue

@@ -6,7 +6,7 @@
       @click="handleEdit"
     >
       <div class="cell-content" :title="column.ellipsis ? getValues ?? '' : ''">
-        {{ getValues ? getValues : '&nbsp;' }}
+        {{ getValues || getValues === 0 ? getValues : '&nbsp;' }}
       </div>
       <FormOutlined :class="`${prefixCls}__normal-icon`" v-if="!column.editRow" />
     </div>