mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
feat(DropdownMenu): add custom-class (#4583)
This commit is contained in:
parent
47c66d38e3
commit
b5ca0bdd44
@ -185,3 +185,9 @@ Page({
|
|||||||
| text | 文字 | _string_ |
|
| text | 文字 | _string_ |
|
||||||
| value | 标识符 | _number \| string_ |
|
| value | 标识符 | _number \| string_ |
|
||||||
| icon | 左侧[图标名称](#/icon)或图片链接 | _string_ |
|
| icon | 左侧[图标名称](#/icon)或图片链接 | _string_ |
|
||||||
|
|
||||||
|
### 外部样式类
|
||||||
|
|
||||||
|
| 类名 | 说明 |
|
||||||
|
| ------------ | ------------ |
|
||||||
|
| custom-class | 根节点样式类 |
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||||
<wxs src="./index.wxs" module="computed" />
|
<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
|
<view
|
||||||
wx:for="{{ itemListData }}"
|
wx:for="{{ itemListData }}"
|
||||||
wx:key="index"
|
wx:key="index"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user