style: eslint

This commit is contained in:
就眠儀式
2022-03-26 10:30:58 +08:00
parent 5fc3cf9731
commit ab6cc17281
7 changed files with 88 additions and 36 deletions

View File

@@ -39,16 +39,18 @@ const handleClick = function () {
}
};
const styles = computed(() => {
return { 'background-color': isActive.value ? props.onswitchColor : props.unswitchColor}
})
return {
"background-color": isActive.value
? props.onswitchColor
: props.unswitchColor,
};
});
</script>
<template>
<span @click.stop="handleClick">
<div
class="layui-unselect layui-form-switch"
:style="styles"
:class="{