Skip to content

Commit

Permalink
fix(table): editable icon not show with empty cell
Browse files Browse the repository at this point in the history
修复可编辑单元格当内容为空时不会显示编辑图标的问题

fixed: #1103
  • Loading branch information
mynetfan committed Aug 20, 2021
1 parent 3a5d1a5 commit edc3096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

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

3 comments on commit edc3096

@iporer
Copy link

@iporer iporer commented on edc3096 Dec 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这是一个错误的修改,改了之后不会显示可编辑表格的 0 值。
可在console测试 0?0:1 => 1; 0??1 => 0.

@iporer
Copy link

@iporer iporer commented on edc3096 Dec 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改动和图标不相关吧?只是显示值的,和编辑图标无关,是否修改错误???

@iporer
Copy link

@iporer iporer commented on edc3096 Dec 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.