Commit edc30965653831b4572c5d5e067f556f4757ce75

Authored by 无木
1 parent 3a5d1a57

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

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

fixed: #1103
CHANGELOG.zh_CN.md
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 7
8 - **CodeEditor** 修复 JSON 编辑器在格式化无效 JSON 文本时会抛出异常的问题 8 - **CodeEditor** 修复 JSON 编辑器在格式化无效 JSON 文本时会抛出异常的问题
9 - **Tinymce** 修复 inline 模式在一些场景下会出现异常的问题 9 - **Tinymce** 修复 inline 模式在一些场景下会出现异常的问题
  10 +- **BasicTable** 修复可编辑单元格的内容为空时,不会显示编辑图标的问题
10 - **其它** 11 - **其它**
11 - 修复部分封装组件在使用插槽时报错的问题 12 - 修复部分封装组件在使用插槽时报错的问题
12 - 修复`useECharts`的`theme`参数不起作用的问题 13 - 修复`useECharts`的`theme`参数不起作用的问题
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 ?? '&nbsp;' 9 + getValues ? 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>