Jelajahi Sumber

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

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

* fix: 修复编辑单元格为空时不能触发编辑的bug
Henry Rao 3 tahun lalu
induk
melakukan
46e28f0203

+ 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>