[bugfix] TreeSelect: missing class prefix (#859)

This commit is contained in:
neverland 2018-11-06 15:01:26 +08:00 committed by GitHub
parent a234c97852
commit fbefab3972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
@import '../common/style/var.less';
.tree-select {
.van-tree-select {
user-select: none;
position: relative;
font-size: 16px;

View File

@ -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>