1
0
mirror of https://gitee.com/vant-contrib/vant-weapp.git synced 2025-04-06 03:58:05 +08:00

fix(TreeSelect): support set mainActiveIndex dynamic ()

fix 
This commit is contained in:
rex 2019-12-05 10:11:30 +08:00 committed by GitHub
parent fe87464eba
commit 1ad701db23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@
style="height: {{ innerHeight }}" style="height: {{ innerHeight }}"
> >
<scroll-view scroll-y class="van-tree-select__nav"> <scroll-view scroll-y class="van-tree-select__nav">
<van-sidebar bind:change="onClickNav" custom-class="van-tree-select__nav__inner"> <van-sidebar active-key="{{ mainActiveIndex }}" bind:change="onClickNav" custom-class="van-tree-select__nav__inner">
<van-sidebar-item <van-sidebar-item
wx:for="{{ items }}" wx:for="{{ items }}"
wx:key="index" wx:key="index"