feat: config manager modal

This commit is contained in:
AnotiaWang
2025-02-12 00:05:27 +08:00
parent d027965013
commit 4b75c254a5
9 changed files with 251 additions and 49 deletions

View File

@ -0,0 +1,25 @@
<script setup lang="ts">
const show = ref(false)
const password = defineModel<string>()
</script>
<template>
<UInput
v-model="password"
:type="show ? 'text' : 'password'"
:ui="{ trailing: 'pe-1' }"
>
<template #trailing>
<UButton
color="neutral"
variant="link"
size="sm"
:icon="show ? 'i-lucide-eye-off' : 'i-lucide-eye'"
:aria-label="show ? 'Hide' : 'Show'"
:aria-pressed="show"
aria-controls="password"
@click="show = !show"
/>
</template>
</UInput>
</template>