mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-15 14:08:49 +00:00
This reverts commit dcdc0b8bb3.
This commit is contained in:
@@ -3,13 +3,11 @@
|
||||
import { Switch } from '@headlessui/vue'
|
||||
|
||||
const enabled = ref(false)
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Switch
|
||||
v-model="enabled"
|
||||
:key="enabled"
|
||||
class="switch"
|
||||
:class="{ enabled }"
|
||||
>
|
||||
|
||||
@@ -48,12 +48,10 @@ function resetStyle () {
|
||||
color.value = 'currentColor'
|
||||
strokeWidth.value = 2
|
||||
size.value = 24
|
||||
absoluteStrokeWidth.value = false;
|
||||
}
|
||||
|
||||
watch(absoluteStrokeWidth, (enabled) => {
|
||||
iconContainer.value?.classList.toggle('absolute-stroke-width', enabled)
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -123,9 +121,6 @@ watch(absoluteStrokeWidth, (enabled) => {
|
||||
>
|
||||
<template #display>
|
||||
<Switch
|
||||
:key="absoluteStrokeWidth"
|
||||
class="switch"
|
||||
:class="{ enabled: absoluteStrokeWidth }"
|
||||
id="absolute-stroke-width"
|
||||
name="absolute-stroke-width"
|
||||
v-model="absoluteStrokeWidth"
|
||||
|
||||
@@ -47,7 +47,6 @@ function resetStyle () {
|
||||
color.value = STYLE_DEFAULTS.color
|
||||
strokeWidth.value = STYLE_DEFAULTS.strokeWidth
|
||||
size.value = STYLE_DEFAULTS.size
|
||||
absoluteStrokeWidth.value = STYLE_DEFAULTS.absoluteStrokeWidth
|
||||
}
|
||||
|
||||
watch(absoluteStrokeWidth, (enabled) => {
|
||||
@@ -120,16 +119,11 @@ const customizingActive = computed(() => {
|
||||
id="absolute-stroke-width"
|
||||
label="Absolute Stroke width"
|
||||
>
|
||||
|
||||
<Switch
|
||||
id="absolute-stroke-width"
|
||||
name="absolute-stroke-width"
|
||||
:key="absoluteStrokeWidth"
|
||||
class="switch"
|
||||
:class="{ enabled: absoluteStrokeWidth }"
|
||||
id="size"
|
||||
name="size"
|
||||
v-model="absoluteStrokeWidth"
|
||||
/>
|
||||
|
||||
</InputField>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user