shit iview docs & i-radio bug
https://github.com/iview/iview/issues/5627
<i-row>
<i-col span="23" push="1" style="margin: 5px;">
<span class="audit-common-lable">POST 参数方式</span>
<!-- <i-radioGroup v-model="postType">
<i-radio label="form">form data</i-radio>
<i-radio label="json">JSON</i-radio>
</i-radioGroup> -->
<RadioGroup v-model="postType">
<Radio label="form">form data</Radio>
<Radio label="json">JSON</Radio>
</RadioGroup>
</i-col>
</i-row>
shit docs
https://www.iviewui.com/components/radio
https://github.com/iview/iview/tree/2.0/src/components
<template>
<div>
<RadioGroup v-model="postType">
<Radio label="form">form data</Radio>
<Radio label="json">JSON</Radio>
</RadioGroup>
<i-radiogroup v-model="postType">
<i-radio label="form">form data</i-radio>
<i-radio label="json">JSON</i-radio>
</i-radiogroup>
</div>
</template>
<script>
export default {
data () {
return {
buttonSize: 'large',
postType: "form",
}
},
}
</script>
solutons
holy shit docs
https://github.com/iview/iview/issues/365#issuecomment-287691548
<template>
<div>
<RadioGroup v-model="postType">
<Radio label="form">form data</Radio>
<Radio label="json">JSON</Radio>
</RadioGroup>
<i-radiogroup v-model="postType">
<i-radio label="form">form data</i-radio>
<i-radio label="json">JSON</i-radio>
</i-radiogroup>
</div>
</template>
<script>
export default {
data () {
return {
buttonSize: 'large',
postType: "form",
}
},
}
</script>