mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
perf(Cell): 优化左右图标对齐 @rex-zsd (#763)
This commit is contained in:
parent
8e7a9790aa
commit
c7d6ed66f6
@ -45,6 +45,13 @@
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
&__left-icon-wrap,
|
||||
&__right-icon-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
&__left-icon {
|
||||
font-size: 16px !important;
|
||||
line-height: 24px;
|
||||
|
@ -1,11 +1,12 @@
|
||||
<view
|
||||
class="{{ cellClass }}"
|
||||
class="{{ cellClass }}"
|
||||
style="{{ customStyle }}"
|
||||
bind:tap="onClick"
|
||||
>
|
||||
<van-icon
|
||||
wx:if="{{ icon }}"
|
||||
name="{{ icon }}"
|
||||
class="van-cell__left-icon-wrap"
|
||||
custom-class="van-cell__left-icon"
|
||||
/>
|
||||
<slot wx:else name="icon" />
|
||||
@ -29,6 +30,7 @@
|
||||
<van-icon
|
||||
wx:if="{{ isLink }}"
|
||||
name="arrow"
|
||||
class="van-cell__right-icon-wrap"
|
||||
custom-class="van-cell__right-icon"
|
||||
/>
|
||||
<slot wx:else name="right-icon" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user