Commit d270488b8267193d80a5a2746989716ec69d1394
1 parent
3e3ac4f5
update readme
Showing
2 changed files
with
18 additions
and
8 deletions
Show diff stats
README.md
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | |
| 7 | 7 | # iView [](https://travis-ci.org/iview/iview) [](https://www.npmjs.org/package/iview) [](https://npmjs.org/package/iview) [](https://gitter.im/iview/iview?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
| 8 | 8 | |
| 9 | -### A high quality UI Toolkit with both Vue.js 2.0 and 1.0 | |
| 9 | +### A high quality UI Toolkit built on Vue.js. | |
| 10 | 10 | |
| 11 | 11 | > This branch is for Vue.js 2.x |
| 12 | 12 | > |
| ... | ... | @@ -14,8 +14,9 @@ |
| 14 | 14 | |
| 15 | 15 | ## Docs |
| 16 | 16 | |
| 17 | -### [中文文档(1.0版)](https://www.iviewui.com) | |
| 18 | -### English (Coming soon) | |
| 17 | +### [中文文档 (2.0)](https://www.iviewui.com) | |
| 18 | +### [中文文档 (1.0)](http://v1.iviewui.com) | |
| 19 | +### [English (2.0)](https://www.iviewui.com)(Working) | |
| 19 | 20 | |
| 20 | 21 | ## Overview |
| 21 | 22 | |
| ... | ... | @@ -46,7 +47,7 @@ using npm |
| 46 | 47 | npm install iview --save |
| 47 | 48 | ``` |
| 48 | 49 | Or using script tag for global use |
| 49 | -``` | |
| 50 | +```html | |
| 50 | 51 | <script type="text/javascript" src="iview.min.js"></script> |
| 51 | 52 | ``` |
| 52 | 53 | |
| ... | ... | @@ -84,6 +85,7 @@ Normal browsers and Internet Explorer 9+. |
| 84 | 85 | | [GITleonine1989](https://github.com/GITleonine1989) |  | |
| 85 | 86 | | [huixisheng](https://github.com/huixisheng) |  | |
| 86 | 87 | |
| 88 | + | |
| 87 | 89 | ## Links |
| 88 | 90 | |
| 89 | 91 | - [TalkingData](https://github.com/TalkingData) | ... | ... |
examples/routers/radio.vue
| 1 | 1 | <template> |
| 2 | 2 | <div> |
| 3 | - <Radio-group v-model="sex"> | |
| 4 | - <Radio :label="0">男</Radio> | |
| 5 | - <Radio :label="1">女</Radio> | |
| 3 | + <Radio-group v-model="date.sex"> | |
| 4 | + <Radio label="male form"></Radio> | |
| 5 | + <Radio label="female"></Radio> | |
| 6 | 6 | </Radio-group> |
| 7 | + <Button @click="handleChange">change</Button> | |
| 7 | 8 | </div> |
| 8 | 9 | </template> |
| 9 | 10 | <script> |
| 10 | 11 | export default { |
| 11 | 12 | data () { |
| 12 | 13 | return { |
| 13 | - sex: 0 | |
| 14 | + date: { | |
| 15 | + sex: '' | |
| 16 | + } | |
| 17 | + } | |
| 18 | + }, | |
| 19 | + methods: { | |
| 20 | + handleChange () { | |
| 21 | + this.date.sex = 'male form'; | |
| 14 | 22 | } |
| 15 | 23 | } |
| 16 | 24 | } | ... | ... |