mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
docs(Checkbox): 修改checkbox文档
This commit is contained in:
parent
c9e89ec594
commit
15f7a81773
@ -32,5 +32,7 @@ Page({
|
||||
const { name } = event.currentTarget.dataset;
|
||||
const checkbox = this.selectComponent(`.checkboxes-${name}`);
|
||||
checkbox.toggle();
|
||||
}
|
||||
},
|
||||
|
||||
noop() {}
|
||||
});
|
||||
|
@ -51,7 +51,7 @@
|
||||
data-name="{{ item }}"
|
||||
bind:click="toggle"
|
||||
>
|
||||
<van-checkbox class="checkboxes-{{ item }}" name="{{ item }}" />
|
||||
<van-checkbox catch:tap="noop" class="checkboxes-{{ item }}" name="{{ item }}" />
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
</van-checkbox-group>
|
||||
|
@ -115,7 +115,7 @@ Page({
|
||||
data-name="{{ item }}"
|
||||
bind:click="toggle"
|
||||
>
|
||||
<van-checkbox class="checkboxes-{{ item }}" name="{{ item }}" />
|
||||
<van-checkbox catch:tap="noop" class="checkboxes-{{ item }}" name="{{ item }}" />
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
</van-checkbox-group>
|
||||
@ -138,7 +138,9 @@ Page({
|
||||
const { name } = event.currentTarget.dataset;
|
||||
const checkbox = this.selectComponent(`.checkboxes-${name}`);
|
||||
checkbox.toggle();
|
||||
}
|
||||
},
|
||||
|
||||
noop() {}
|
||||
});
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user