Browse Source

fix(table): editable icon not show with empty cell

修复可编辑单元格当内容为空时不会显示编辑图标的问题

fixed: #1103
无木 3 năm trước cách đây
mục cha
commit
edc3096565

+ 1 - 0
CHANGELOG.zh_CN.md

@@ -7,6 +7,7 @@
 
 - **CodeEditor** 修复 JSON 编辑器在格式化无效 JSON 文本时会抛出异常的问题
 - **Tinymce** 修复 inline 模式在一些场景下会出现异常的问题
+- **BasicTable** 修复可编辑单元格的内容为空时,不会显示编辑图标的问题
 - **其它**
   - 修复部分封装组件在使用插槽时报错的问题
   - 修复`useECharts`的`theme`参数不起作用的问题

+ 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 ?? '&nbsp;'
+        getValues ? getValues : '&nbsp;'
       }}</div>
       <FormOutlined :class="`${prefixCls}__normal-icon`" v-if="!column.editRow" />
     </div>