[change] optimize the webapack config
[change] rename test to examples
This commit is contained in:
parent
c06e99d09f
commit
c9c5e751ae
47 changed files with 81 additions and 128 deletions
43
examples/routers/radio.vue
Normal file
43
examples/routers/radio.vue
Normal file
|
@ -0,0 +1,43 @@
|
|||
<template>
|
||||
<div>
|
||||
<Radio v-model="single" @on-change="c">Radio</Radio>
|
||||
<Radio-group v-model="phone" type="button" @on-change="c">
|
||||
<Radio label="apple">
|
||||
<Icon type="social-apple"></Icon>
|
||||
<span>Apple</span>
|
||||
</Radio>
|
||||
<Radio label="android">
|
||||
<Icon type="social-android"></Icon>
|
||||
<span>Android</span>
|
||||
</Radio>
|
||||
<Radio label="windows">
|
||||
<Icon type="social-windows"></Icon>
|
||||
<span>Windows</span>
|
||||
</Radio>
|
||||
</Radio-group>
|
||||
<Radio-group v-model="animal">
|
||||
<Radio label="金斑蝶"></Radio>
|
||||
<Radio label="爪哇犀牛"></Radio>
|
||||
<Radio label="印度黑羚"></Radio>
|
||||
</Radio-group>
|
||||
{{ phone }}
|
||||
<div @click="phone = 'apple'">apple</div>
|
||||
<div @click="single = true"> single</div>{{ single }}
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
phone: 'apple',
|
||||
animal: '爪哇犀牛',
|
||||
single: false
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
c (data) {
|
||||
console.log(data)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue