|
|
||
|---|---|---|
| .. | ||
| demo | ||
| test | ||
| README.en-US.md | ||
| README.md | ||
| component.js | ||
| index.vue | ||
README.en-US.md
| title | preview |
|---|---|
| Agree | https://didi.github.io/mand-mobile/examples/#/agree |
For toggling states
Import
import { Agree } from 'mand-mobile'
Vue.component(Agree.name, Agree)
Code Examples
API
Agree Props
| Props | Description | Type | Default | |
|---|---|---|---|---|
| v-model | checked | Boolean | false |
- |
| disabled | - | Boolean | false |
- |
| size | size of icon | String | md |
refer to Icon for optional values |
| icon-type 2.6.0+ | select Icon | String | circle |
optional value circle or square |
Agree Instance Events
@change(name, checked)
Invoked when checked state is changed
| Props | Description | Type |
|---|---|---|
| name | unique name of radio button | Number/String |
| checked | - | Boolean |