<template>
<div class="line-list line-list--indent">
		<div class="line-item">
			<Switch @changed="onChanged" ></Switch>
		</div>
		<div class="line-item">
			<Switch @changed="onChanged" checked-text="开" un-checked-text="关"></Switch>
		</div>
		<div class="line-item">
			checked:{{checkedValue}}
		</div>
</div>

</template>

<script>
import Switch from "components/switch/"

export default{
	data(){
		return{
			checkedValue:""
		}
 	},
 	components:{
 		Switch
 	},
 	methods:{
 		onChanged:function(value){
 			this.checkedValue=value;
 		}
 	}
}
</script>