fixed #1797
This commit is contained in:
parent
6f719603a8
commit
1f41c9ca2c
3 changed files with 40 additions and 53 deletions
|
@ -1,18 +1,18 @@
|
|||
<template>
|
||||
<div>
|
||||
<i-switch v-model="m1" :true-value="1" :false-value="0">
|
||||
<i-switch v-model="m1" true-value="yes" false-value="no">
|
||||
<span slot="open">开</span>
|
||||
<span slot="close">关</span>
|
||||
</i-switch>
|
||||
{{ m1 }}
|
||||
<div @click="m1 = 0">toggle</div>
|
||||
<div @click="m1 = 'no'">toggle</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
m1: 1
|
||||
m1: 'yes'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue