Commit 46e28f0203923949803c6d70ea8dba7ec3ac42d8
Committed by
GitHub
1 parent
aab6b4f3
FixEditcell: 修复可编辑单元格不显示0的bug (#1486)
* fix: 修复可编辑表格不显示 0 的bug * fix: 修复编辑单元格为空时不能触发编辑的bug
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Table/src/components/editable/EditableCell.vue
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | @click="handleEdit" |
7 | 7 | > |
8 | 8 | <div class="cell-content" :title="column.ellipsis ? getValues ?? '' : ''"> |
9 | - {{ getValues ? getValues : ' ' }} | |
9 | + {{ getValues || getValues === 0 ? getValues : ' ' }} | |
10 | 10 | </div> |
11 | 11 | <FormOutlined :class="`${prefixCls}__normal-icon`" v-if="!column.editRow" /> |
12 | 12 | </div> | ... | ... |