style: style adjustment

This commit is contained in:
Hakadao
2023-07-10 02:14:24 +08:00
parent c56ad7c1f8
commit 3ba76f24d6
2 changed files with 38 additions and 15 deletions

View File

@@ -1,12 +1,27 @@
<script lang="ts" setup>
type Size = 'small' | 'medium' | 'large'
interface Props {
value: string
size?: Size
}
const props = withDefaults(defineProps<Props>(), { size: 'medium' })
defineEmits(['update:value'])
const modelValue = ref<string>('')
onMounted(() => {
modelValue.value = props.value
})
</script>
<template>
<input type="text" class="b-input">
<input
v-model="modelValue" type="text" class="b-input"
p="x-4 y-2" border="2px $bew-fill-2 focus:$bew-theme-color" rounded="$bew-radius" outline-none
duration bg="$bew-content-solid-1"
@input="$emit('update:value', $event!.target!.value)"
>
</template>
<style lang="scss" scoped>

View File

@@ -118,10 +118,12 @@ function changeWallpaper(url: string) {
un-border="4 transparent" pointer-cursor
w="xl:1/4 lg:1/3 md:1/2"
>
<img :src="settings.wallpaper" alt="" w-full h-full object-cover>
<img :src="settings.wallpaper" alt="" w-full h-full object-cover onerror="this.style.display='none'; this.onerror=null;">
<!-- <tabler:photo-off text="3xl $bew-text-3" /> -->
</picture>
<input v-model="settings.wallpaper" type="text" flex-1>
<Input v-model:value="settings.wallpaper" flex-1 />
<!-- <input v-model="settings.wallpaper" type="text" flex-1> -->
</div>
</SettingItem>
@@ -133,20 +135,26 @@ function changeWallpaper(url: string) {
</label>
</SettingItem>
<SettingItem v-if="settings.enableWallpaperMasking" title="Wallpaper mask opacity">
<input
v-model="settings.wallpaperMaskOpacity"
type="range" min="0" max="100"
step="1"
>
{{ settings.wallpaperMaskOpacity }}
<div flex gap-4>
<input
v-model="settings.wallpaperMaskOpacity"
type="range" min="0" max="100"
step="1"
flex-1
>
<span w-30px>{{ settings.wallpaperMaskOpacity }}%</span>
</div>
</SettingItem>
<SettingItem v-if="settings.enableWallpaperMasking" title="Blur intensity">
<input
v-model="settings.wallpaperBlurIntensity"
type="range" min="0" max="60"
step="1"
>
{{ settings.wallpaperBlurIntensity }}
<div flex gap-4>
<input
v-model="settings.wallpaperBlurIntensity"
type="range" min="0" max="60"
step="1"
flex-1
>
<span w-30px>{{ settings.wallpaperBlurIntensity }}px</span>
</div>
</SettingItem>
</template>