Logo white

other / mew-iview

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • mew-iview
  • examples
  • routers
  • switch.vue
  • fixed #1797
    1f41c9ca
    梁灏 authored
    2017-09-07 11:19:19 +0800  
    Browse Code »
switch.vue 520 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<template>
    <div>
        <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 = 'no'">toggle</div>
    </div>
</template>
<script>
    export default {
        data () {
            return {
                m1: 'yes'
            }
        },
        methods: {
            change (status) {
                console.log(status)
            }
        }
    }
</script>