shit iview docs & i-radio bug

shit iview docs & i-radio bug

https://github.com/iview/iview/issues/5627vue

<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/radiogit

https://github.com/iview/iview/tree/2.0/src/componentsgithub

<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 docsjson

https://github.com/iview/iview/issues/365#issuecomment-287691548iview

<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/post

no i-radio

相關文章
相關標籤/搜索