mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bugfix] TreeSelect: missing class prefix (#859)
This commit is contained in:
parent
a234c97852
commit
fbefab3972
@ -1,6 +1,6 @@
|
||||
@import '../common/style/var.less';
|
||||
|
||||
.tree-select {
|
||||
.van-tree-select {
|
||||
user-select: none;
|
||||
position: relative;
|
||||
font-size: 16px;
|
||||
|
@ -1,12 +1,12 @@
|
||||
<view
|
||||
class="tree-select"
|
||||
class="van-tree-select"
|
||||
style="height: {{ mainHeight }}px"
|
||||
>
|
||||
<view class="tree-select__nav">
|
||||
<view class="van-tree-select__nav">
|
||||
<view
|
||||
wx:for="{{ items }}"
|
||||
wx:key="index"
|
||||
class="tree-select__nitem van-ellipsis {{ mainActiveIndex === index ? 'tree-select__nitem--active' : '' }}"
|
||||
class="van-tree-select__nitem van-ellipsis {{ mainActiveIndex === index ? 'van-tree-select__nitem--active' : '' }}"
|
||||
data-index="{{ index }}"
|
||||
bind:tap="onClickNav"
|
||||
>
|
||||
@ -14,13 +14,13 @@
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="tree-select__content"
|
||||
class="van-tree-select__content"
|
||||
style="height: {{ itemHeight }}px"
|
||||
>
|
||||
<view
|
||||
wx:for="{{ subItems }}"
|
||||
wx:key="item.id"
|
||||
class="tree-select__item van-ellipsis {{ activeId === item.id ? 'tree-select__item--active' : '' }}"
|
||||
class="van-tree-select__item van-ellipsis {{ activeId === item.id ? 'van-tree-select__item--active' : '' }}"
|
||||
data-item="{{ item }}"
|
||||
bind:tap="onSelectItem"
|
||||
>
|
||||
@ -28,7 +28,7 @@
|
||||
<van-icon
|
||||
wx:if="{{ activeId === item.id }}"
|
||||
name="success"
|
||||
class="tree-select__selected"
|
||||
class="van-tree-select__selected"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
Loading…
x
Reference in New Issue
Block a user