mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-06 20:38:42 +00:00
26 lines
550 B
Vue
26 lines
550 B
Vue
<template>
|
|
<div>
|
|
<label class="switch">
|
|
<input type="checkbox" v-bind:checked="isChecked" @change="$emit('update:isChecked', $event.target.checked)">
|
|
<span class="slider round"></span>
|
|
</label>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'SafeSwitch',
|
|
props: ['isChecked'],
|
|
data() {
|
|
return {
|
|
}
|
|
},
|
|
methods: {
|
|
toggleSwitch() {
|
|
// Handle the switch toggle logic here
|
|
console.log('Switch toggled:', this.isChecked);
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|