: rotating_light: Lint

This commit is contained in:
Liyas Thomas
2019-10-25 13:44:34 +05:30
parent 96adfa0b5a
commit a09d7d76d3
35 changed files with 3133 additions and 2620 deletions

View File

@@ -4,7 +4,7 @@
<span class="handle"></span>
</label>
<label class="caption">
<slot/>
<slot />
</label>
</div>
</template>
@@ -59,8 +59,8 @@
margin: $handleSpacing;
background-color: $inactiveHandleColor;
width: #{ $height - ($handleSpacing * 2) };
height: #{ $height - ($handleSpacing * 2) };
width: #{$height - ($handleSpacing * 2)};
height: #{$height - ($handleSpacing * 2)};
border-radius: 100px;
pointer-events: none;
@@ -77,14 +77,12 @@
}
}
}
</style>
<script>
export default {
props: {
'on': {
on: {
type: Boolean,
default: false
}
@@ -93,10 +91,8 @@
methods: {
toggle() {
const containsOnClass = this.$refs.toggle.classList.toggle("on");
this.$emit('change', containsOnClass);
this.$emit("change", containsOnClass);
}
}
}
};
</script>