- 添加 Vant WeApp 组件库的多个组件和工具文件 - 新增的组件包括 calendar、circle、collapse、dialog 等- 添加了常用的工具函数和样式文件 - 在 app.js 中集成了 Vant WeApp 组件库
24 lines
743 B
Plaintext
24 lines
743 B
Plaintext
<wxs src="../wxs/utils.wxs" module="utils" />
|
|
<wxs src="./index.wxs" module="computed" />
|
|
|
|
<view class="van-dropdown-menu van-dropdown-menu--top-bottom custom-class">
|
|
<view
|
|
wx:for="{{ itemListData }}"
|
|
wx:key="index"
|
|
data-index="{{ index }}"
|
|
class="{{ utils.bem('dropdown-menu__item', { disabled: item.disabled }) }}"
|
|
bind:tap="onTitleTap"
|
|
>
|
|
<view
|
|
class="{{ item.titleClass }} {{ utils.bem('dropdown-menu__title', { active: item.showPopup, down: item.showPopup === (direction === 'down') }) }} title-class"
|
|
style="{{ item.showPopup ? 'color:' + activeColor : '' }}"
|
|
>
|
|
<view class="van-ellipsis">
|
|
{{ computed.displayTitle(item) }}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<slot />
|
|
</view>
|