Logo white

other / mew-iview

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • mew-iview
  • test
  • routers
  • switch.vue
  • support Switch ...
    2d5ba278
    support Switch
    梁灏 authored
    2017-03-02 11:19:00 +0800  
    Browse Code »
switch.vue 485 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">
            <span slot="open">开</span>
            <span slot="close">关</span>
        </i-switch>
        {{ m1 }}
        <div @click="m1 = !m1">toggle</div>
    </div>
</template>
<script>
    export default {
        data () {
            return {
                m1: false
            }
        },
        methods: {
            change (status) {
                console.log(status)
            }
        }
    }
</script>