Commit d2abe5e5f129b0f4ec5c576a96d514615c069ac4
1 parent
da3117ef
Exists in
master
fix: 修复Cell组件右侧图标显示
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
examples/views/docs/component/cell.md
| @@ -64,7 +64,7 @@ | @@ -64,7 +64,7 @@ | ||
| 64 | <template> | 64 | <template> |
| 65 | <div class="demo-cell"> | 65 | <div class="demo-cell"> |
| 66 | <zui-cell title="默认点击" value="内容" is-link></zui-cell> | 66 | <zui-cell title="默认点击" value="内容" is-link></zui-cell> |
| 67 | - <zui-cell title="右侧图标" value="内容" right-icon="expandmore" is-link></zui-cell> | 67 | + <zui-cell title="右侧图标" value="内容" right-icon="search"></zui-cell> |
| 68 | <zui-cell title="自定义右侧内容" value="内容" is-link> | 68 | <zui-cell title="自定义右侧内容" value="内容" is-link> |
| 69 | <div slot="right">Right</div> | 69 | <div slot="right">Right</div> |
| 70 | </zui-cell> | 70 | </zui-cell> |
packages/cell/index.vue
| @@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
| 25 | <span v-else>{{ value }}</span> | 25 | <span v-else>{{ value }}</span> |
| 26 | </div> | 26 | </div> |
| 27 | <!-- 右侧图标 --> | 27 | <!-- 右侧图标 --> |
| 28 | - <template v-if="$slots['right-icon'] || isLink"> | 28 | + <template v-if="$slots['right-icon'] || isLink || rightIcon"> |
| 29 | <div class="zui-cell__right-icon"> | 29 | <div class="zui-cell__right-icon"> |
| 30 | <slot v-if="$slots['right-icon']" name="right-icon"></slot> | 30 | <slot v-if="$slots['right-icon']" name="right-icon"></slot> |
| 31 | <zui-icon v-else :name="rightIcon || 'enter'"></zui-icon> | 31 | <zui-icon v-else :name="rightIcon || 'enter'"></zui-icon> |