Skip to content

Commit

Permalink
修复cell组件右侧图标slot在微信小程序不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Apr 22, 2024
1 parent f1b9a40 commit 25af4e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/componentsA/cell/cell.nvue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
>99</text>
</template>
<template #right-icon>
0
1
</template>
</up-cell>
</up-cell-group>
Expand Down
6 changes: 3 additions & 3 deletions src/uni_modules/uview-plus/components/u-cell/u-cell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
</slot>
<view class="u-cell__right-icon-wrap" v-if="$slots['right-icon'] || isLink"
:class="[`u-cell__right-icon-wrap--${arrowDirection}`]">
<slot name="right-icon">
<u-icon v-if="rightIcon" :name="rightIcon" :custom-style="rightIconStyle" :color="disabled ? '#c8c9cc' : 'info'"
:size="size === 'large' ? 18 : 16"></u-icon>
<u-icon v-if="rightIcon && !$slots['right-icon']" :name="rightIcon" :custom-style="rightIconStyle" :color="disabled ? '#c8c9cc' : 'info'"
:size="size === 'large' ? 18 : 16"></u-icon>
<slot v-else name="right-icon">
</slot>
</view>
<view class="u-cell__right-icon-wrap" v-if="$slots['righticon']"
Expand Down

0 comments on commit 25af4e6

Please sign in to comment.