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

@ -6,7 +6,7 @@
# iView [![](https://img.shields.io/travis/iview/iview.svg?style=flat-square)](https://travis-ci.org/iview/iview) [![iView](https://img.shields.io/npm/v/iview.svg?style=flat-square)](https://www.npmjs.org/package/iview) [![NPM downloads](http://img.shields.io/npm/dm/iview.svg?style=flat-square)](https://npmjs.org/package/iview) [![Join the chat at https://gitter.im/iview/iview](https://badges.gitter.im/iview/iview.svg)](https://gitter.im/iview/iview?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
### A high quality UI Toolkit with both Vue.js 2.0 and 1.0
### A high quality UI Toolkit built on Vue.js.
> This branch is for Vue.js 2.x
>
@ -14,8 +14,9 @@
## Docs
### [中文文档(1.0版)](https://www.iviewui.com)
### English (Coming soon)
### [中文文档 (2.0)](https://www.iviewui.com)
### [中文文档 (1.0)](http://v1.iviewui.com)
### [English (2.0)](https://www.iviewui.com)(Working)
## Overview
@ -46,7 +47,7 @@ using npm
npm install iview --save
```
Or using script tag for global use
```
```html
<script type="text/javascript" src="iview.min.js"></script>
```
@ -84,6 +85,7 @@ Normal browsers and Internet Explorer 9+.
| [GITleonine1989](https://github.com/GITleonine1989) | ![](https://avatars1.githubusercontent.com/u/7582490?v=3&s=60) |
| [huixisheng](https://github.com/huixisheng) | ![](https://avatars1.githubusercontent.com/u/1518967?v=3&s=60) |
## Links
- [TalkingData](https://github.com/TalkingData)

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';
}
}
}