mirror of
https://gitee.com/blackfox/geekai.git
synced 2025-12-07 01:08:24 +08:00
26 lines
418 B
Vue
26 lines
418 B
Vue
<template>
|
|
|
|
<el-switch v-model="model" :size="size"
|
|
@change="$emit('update:value', $event)"
|
|
style="--el-switch-on-color:#555555;--el-color-white:#0E0808"/>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'BlackSwitch',
|
|
props: {
|
|
value : Boolean,
|
|
size: {
|
|
type: String,
|
|
default: 'default',
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
model: this.value
|
|
}
|
|
}
|
|
}
|
|
</script>
|