init
This commit is contained in:
梁灏 2016-09-09 14:29:19 +08:00
parent 5762337416
commit 7fa943eb39
128 changed files with 51042 additions and 1 deletions

44
local/routers/radio.vue Normal file
View file

@ -0,0 +1,44 @@
<template>
<div>
<Radio :checked.sync="radio">梁灏</Radio>
{{ radio | json }}
<div @click="radio = false">单项切换</div>
<br><br><br>
<Radio-group :model.sync="radioGroup" size="large" type="button" @on-change="changeGroup">
<Radio value="梁灏"></Radio>
<Radio value="段模"></Radio>
<Radio value="倪斌"></Radio>
</Radio-group>
{{ radioGroup | json }}
<div @click="radioGroup = '梁灏'">多项切换</div>
</div>
</template>
<script>
import { Radio } from 'iview';
const RadioGroup = Radio.Group;
export default {
components: {
Radio,
RadioGroup
},
props: {
},
data () {
return {
radio: true,
radioGroup: '段模'
}
},
computed: {
},
methods: {
changeGroup (data) {
console.log(data);
}
}
}
</script>