xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

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>


https://run.iviewui.com/

no i-radio

posted @ 2019-04-15 13:59  xgqfrms  阅读(303)  评论(5编辑  收藏  举报