Skip to content

Commit

Permalink
fix(cell): resolve the rendering problem of right icon
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Oct 20, 2022
1 parent 867c6a3 commit e6943fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/cell/cell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ export default defineComponent({
const noteContent = computed(() => renderContent(internalInstance, 'default', 'note'));
const titleContent = computed(() => renderTNode(internalInstance, 'title'));
const descriptionContent = computed(() => renderTNode(internalInstance, 'description'));
const chevronRightIcon = h(ChevronRightIcon);
const rightIconContent = computed(() => {
if (props.arrow) {
return h(ChevronRightIcon);
return chevronRightIcon;
}
return renderTNode(internalInstance, 'rightIcon');
});
const imageContent = computed(() => renderTNode(internalInstance, 'image'));
const leftIconContent = computed(() => renderTNode(internalInstance, 'leftIcon'));
Expand Down

0 comments on commit e6943fb

Please sign in to comment.