mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
parent
3402313eb7
commit
438cf85dcd
@ -35,7 +35,7 @@
|
|||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
<demo-block title="自定义图标" padding>
|
<demo-block title="自定义图标" padding>
|
||||||
<van-checkbox use-icon-slot value="1" name="1">
|
<van-radio use-icon-slot value="1" name="1">
|
||||||
自定义图标
|
自定义图标
|
||||||
<image
|
<image
|
||||||
slot="icon"
|
slot="icon"
|
||||||
@ -43,7 +43,7 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
/>
|
/>
|
||||||
</van-checkbox>
|
</van-radio>
|
||||||
</demo-block>
|
</demo-block>
|
||||||
|
|
||||||
<demo-block title="与 Cell 组件一起使用">
|
<demo-block title="与 Cell 组件一起使用">
|
||||||
|
@ -60,13 +60,13 @@ Page({
|
|||||||
通过 icon 插槽自定义图标
|
通过 icon 插槽自定义图标
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-checkbox use-icon-slot value="{{ radio }}" name="1" bind:change="onChange">
|
<van-radio use-icon-slot value="{{ radio }}" name="1" bind:change="onChange">
|
||||||
自定义图标
|
自定义图标
|
||||||
<image
|
<image
|
||||||
slot="icon"
|
slot="icon"
|
||||||
src="{{ radio === '1' ? icon.active : icon.normal }}"
|
src="{{ radio === '1' ? icon.active : icon.normal }}"
|
||||||
/>
|
/>
|
||||||
</van-checkbox>
|
</van-radio>
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user