Commit 46e28f0203923949803c6d70ea8dba7ec3ac42d8

Authored by Henry Rao
Committed by GitHub
1 parent aab6b4f3

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

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

* fix: 修复编辑单元格为空时不能触发编辑的bug
src/components/Table/src/components/editable/EditableCell.vue
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 @click="handleEdit" 6 @click="handleEdit"
7 > 7 >
8 <div class="cell-content" :title="column.ellipsis ? getValues ?? '' : ''"> 8 <div class="cell-content" :title="column.ellipsis ? getValues ?? '' : ''">
9 - {{ getValues ? getValues : '&nbsp;' }} 9 + {{ getValues || getValues === 0 ? getValues : '&nbsp;' }}
10 </div> 10 </div>
11 <FormOutlined :class="`${prefixCls}__normal-icon`" v-if="!column.editRow" /> 11 <FormOutlined :class="`${prefixCls}__normal-icon`" v-if="!column.editRow" />
12 </div> 12 </div>