update readme

This commit is contained in:
梁灏 2017-03-28 09:04:57 +08:00
parent 3e3ac4f5ec
commit d270488b82
2 changed files with 18 additions and 8 deletions

View file

@ -1,16 +1,24 @@
<template>
<div>
<Radio-group v-model="sex">
<Radio :label="0"></Radio>
<Radio :label="1"></Radio>
<Radio-group v-model="date.sex">
<Radio label="male form"></Radio>
<Radio label="female"></Radio>
</Radio-group>
<Button @click="handleChange">change</Button>
</div>
</template>
<script>
export default {
data () {
return {
sex: 0
date: {
sex: ''
}
}
},
methods: {
handleChange () {
this.date.sex = 'male form';
}
}
}