shit iview docs & i-radio bug
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>
no i-radio
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10710289.html
未经授权禁止转载,违者必究!