1.2.1 • Published 3 years ago
@ubrorg/setting-item v1.2.1
setting-item
使用
在页面的 page.json
中配置:
{
"usingComponents": {
"setting-item": "@ubrorg/setting-item/lib/index"
}
}
在页面的 page.axml
中直接使用:
<setting-item
hasLine="{{true}}"
className="menu-item"
title="开关一"
onItemTap="switchSendMsg"
>
<switch
slot="right"
controlled checked="{{sendMsg}}"
/>
</setting-item>
参数
param | type | default value | description |
---|---|---|---|
className | string | class wrapper | |
hasLine | boolean | false | bottom line |
title | string | setting title | |
type | string | if setting arrow, show arrow icon in the end | |
onItemTap | string | ontap callback | |
right slot | slot | slot right before arrow icon(if exists) |
1.2.1
3 years ago
1.2.1-beta.2
3 years ago
1.2.1-beta.1
3 years ago
1.2.1-beta.0
3 years ago
1.2.0
3 years ago
1.2.0-beta.5
3 years ago
1.2.0-beta.3
3 years ago
1.2.0-beta.2
3 years ago
1.2.0-beta.4
3 years ago
1.2.0-beta.1
3 years ago
1.2.0-beta.0
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.2-beta.1
4 years ago
1.1.2-beta.0
4 years ago
1.1.1
4 years ago
1.1.1-beta.0
4 years ago
1.1.0
4 years ago
1.1.0-beta.0
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.2-beta.0
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago