feat(DropdownMenu): add custom-class (#4583)

This commit is contained in:
nemo-shen 2021-10-28 09:43:01 +08:00 committed by GitHub
parent 47c66d38e3
commit b5ca0bdd44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -185,3 +185,9 @@ Page({
| text | 文字 | _string_ |
| value | 标识符 | _number \| string_ |
| icon | 左侧[图标名称](#/icon)或图片链接 | _string_ |
### 外部样式类
| 类名 | 说明 |
| ------------ | ------------ |
| custom-class | 根节点样式类 |

View File

@ -1,7 +1,7 @@
<wxs src="../wxs/utils.wxs" module="utils" />
<wxs src="./index.wxs" module="computed" />
<view class="van-dropdown-menu van-dropdown-menu--top-bottom">
<view class="van-dropdown-menu van-dropdown-menu--top-bottom custom-class">
<view
wx:for="{{ itemListData }}"
wx:key="index"