mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] Tab: color prop (#570)
This commit is contained in:
parent
3202c2ec6e
commit
1a3d6ff404
2
dist/tabs/index.wxml
vendored
2
dist/tabs/index.wxml
vendored
@ -12,7 +12,7 @@
|
||||
wx:key="index"
|
||||
data-index="{{ index }}"
|
||||
class="van-tab {{ index === active ? 'van-tab--active' : '' }} {{ item.data.disabled ? 'van-tab--disabled' : '' }}"
|
||||
style="{{ color && !(index === active && type === 'card') && !item.data.disabled ? 'color: ' + color : '' }} {{ color && index === active && type === 'card' ? ';background-color:' + color : '' }} {{ color ? ';border-color: ' + color : '' }}"
|
||||
style="{{ color && (index === active) !== (type === 'card') && !item.data.disabled ? 'color: ' + color : '' }} {{ color && index === active && type === 'card' ? ';background-color:' + color : '' }} {{ color ? ';border-color: ' + color : '' }}"
|
||||
bind:tap="onTap"
|
||||
>
|
||||
<view class="van-ellipsis">{{ item.data.title }}</view>
|
||||
|
@ -12,7 +12,7 @@
|
||||
wx:key="index"
|
||||
data-index="{{ index }}"
|
||||
class="van-tab {{ index === active ? 'van-tab--active' : '' }} {{ item.data.disabled ? 'van-tab--disabled' : '' }}"
|
||||
style="{{ color && !(index === active && type === 'card') && !item.data.disabled ? 'color: ' + color : '' }} {{ color && index === active && type === 'card' ? ';background-color:' + color : '' }} {{ color ? ';border-color: ' + color : '' }}"
|
||||
style="{{ color && (index === active) !== (type === 'card') && !item.data.disabled ? 'color: ' + color : '' }} {{ color && index === active && type === 'card' ? ';background-color:' + color : '' }} {{ color ? ';border-color: ' + color : '' }}"
|
||||
bind:tap="onTap"
|
||||
>
|
||||
<view class="van-ellipsis">{{ item.data.title }}</view>
|
||||
|
Loading…
x
Reference in New Issue
Block a user