diff --git a/src/components/Input.vue b/src/components/Input.vue index df22d219..ce8fdbd0 100644 --- a/src/components/Input.vue +++ b/src/components/Input.vue @@ -1,17 +1,17 @@ @@ -22,8 +22,7 @@ onMounted(() => { rounded="$bew-radius" outline-none transition-all duration-300 bg="$bew-fill-1" focus:shadow focus:ring="2px $bew-theme-color" - - @input="$emit('update:value', $event!.target!.value)" + @input="$emit('update:modelValue', $event!.target!.value)" > diff --git a/src/components/Radio.vue b/src/components/Radio.vue index a2d50dec..8feaf255 100644 --- a/src/components/Radio.vue +++ b/src/components/Radio.vue @@ -1,19 +1,19 @@ diff --git a/src/components/Settings/components/Appearance.vue b/src/components/Settings/components/Appearance.vue index 9adb7182..1c7e000b 100644 --- a/src/components/Settings/components/Appearance.vue +++ b/src/components/Settings/components/Appearance.vue @@ -143,7 +143,7 @@ function changeWallpaper(url: string) {
- +

{{ $t('settings.image_url_hint') }}

@@ -156,7 +156,7 @@ function changeWallpaper(url: string) { {{ $t('common.performance_impact_warn') }} - + diff --git a/src/components/Settings/components/General.vue b/src/components/Settings/components/General.vue index 7f06c426..c6c28068 100644 --- a/src/components/Settings/components/General.vue +++ b/src/components/Settings/components/General.vue @@ -57,7 +57,7 @@ watch(() => settings.value.language, (newValue, oldValue) => { - + @@ -69,7 +69,7 @@ watch(() => settings.value.language, (newValue, oldValue) => { - + diff --git a/src/components/Settings/components/SearchPage.vue b/src/components/Settings/components/SearchPage.vue index 34eb4e99..2d86a352 100644 --- a/src/components/Settings/components/SearchPage.vue +++ b/src/components/Settings/components/SearchPage.vue @@ -77,15 +77,15 @@ function changeWallpaper(url: string) { - + - + - + @@ -137,7 +137,7 @@ function changeWallpaper(url: string) { {{ $t('common.performance_impact_warn') }} - + - + diff --git a/src/components/Slider.vue b/src/components/Slider.vue index 4065e0de..cc38fb19 100644 --- a/src/components/Slider.vue +++ b/src/components/Slider.vue @@ -18,7 +18,7 @@ const modelValue = ref(props.value) const rangeRef = ref() as Ref onMounted(() => { - modelValue.value = props.value ?? 0 + modelValue.value = props.value const progress = (modelValue.value / rangeRef.value!.max) * 100 rangeRef.value.style.background = `linear-gradient(to right, var(--bew-theme-color) ${progress}%, var(--bew-fill-1) ${progress}%) no-repeat` @@ -26,7 +26,7 @@ onMounted(() => { if (rangeRef.value) { rangeRef.value.addEventListener('input', (event: Event) => { const tempSliderValue = event.target!.value - emit('update:value', Number(tempSliderValue)) + emit('update:value', tempSliderValue) const progress = (tempSliderValue / rangeRef.value!.max) * 100 @@ -59,7 +59,7 @@ label { input[type="range"] { &::-webkit-slider-thumb { --at-apply: appearance-none w-$b-thumb-height h-$b-thumb-height bg-white rounded-$b-thumb-height - border-2 border-$bew-border-color cursor-pointer duration-300; + border-2 border-$bew-border-color cursor-pointer; } &::-webkit-slider-thumb:hover { @@ -68,7 +68,7 @@ input[type="range"] { &::-moz-range-thumb { --at-apply: appearance-none w-$b-thumb-height h-$b-thumb-height bg-white rounded-$b-thumb-height - border-2 border-$bew-border-color cursor-pointer duration-300; + border-2 border-$bew-border-color cursor-pointer; } &::-moz-range-thumb:hover {