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