forked from youzan/vant-weapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.wxml
More file actions
42 lines (41 loc) · 1.12 KB
/
index.wxml
File metadata and controls
42 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<view class="container">
<view class="title">
<image class="logo" src="https://img.yzcdn.cn/vant/logo.png" />
<view class="title-text">Vant Weapp</view>
</view>
<view class="desc">轻量、可靠的小程序 UI 组件库</view>
<van-collapse
wx:for="{{ list }}"
wx:for-item="group"
wx:key="group.title"
value="{{ activeNames }}"
border="{{ false }}"
bind:change="onChangeCollapse"
>
<van-collapse-item
clickable
is-link="{{ false }}"
custom-class="mobile-nav"
title-class="mobile-nav__title"
content-class="mobile-nav__content"
title="{{ group.groupName }}"
name="{{ group.groupName }}"
>
<van-icon
name="{{ group.icon }}"
slot="right-icon"
custom-class="mobile-nav__icon"
/>
<van-cell
wx:for="{{ group.list }}"
wx:key="item.title"
is-link
url="/pages{{ item.path }}/index"
data-url="/pages{{ item.path }}/index"
data-switch-tab="{{ true }}"
title="{{ item.title }}"
bind:click="onClick"
/>
</van-collapse-item>
</van-collapse>
</view>