RadioGroup选择错误

帅动的笑脸
  • 17

RadioGroup选择错误
Radio可以同时选择。`<html>

https://jsfiddle.net/ozx2937s/1/

<head>

<link href="https://cdn.bootcss.com/iview/3.1.5/styles/iview.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/vue/2.5.18-beta.0/vue.min.js"></script>
<script src="https://cdn.bootcss.com/iview/3.1.5/iview.min.js"></script>
<script src="https://cdn.bootcss.com/iview/3.1.5/locale/zh-CN.js"></script>

</head>

<body>

<div id="app">
    <RadioGroup v-model="value">
        <Radio v-for="o in items" :label="o">
        </Radio>
    </RadioGroup>
</div>
<script>
    new Vue({
        el: "#app",
        data: {
            value: "",
            items: ['男', '女'],
        }
    });
</script>

</body>

</html>`

评论
阅读 1.7k
2 个回答

RadioGroup 、CheckboxGroup 在cdn 引用下,应该使用kebab-case写法
radio-groupcheckbox-group。类似的还有time-pickerdate-picker等等

宣传栏