# 开关
# 效果
# 开关颜色可以自调,active-color为开启时颜色,inactive-color为关闭时颜色,可以绑定name属性,双向绑定值为true或false
# 代码预览
<template>
<div>
<jul-switch v-model="active"></jul-switch>
<jul-switch v-model="active" active-color="green" inactive-color="red" name="username">
</jul-switch>
</div>
</template>
<script>
export default {
data() {
return {
active: false
}
}
}
</script>
<style>
</style>