feat: setting页面

This commit is contained in:
2026-04-22 16:11:16 +08:00
parent 38094c4b2c
commit 5d240edb84
4 changed files with 479 additions and 642 deletions

5
src/assets/icons/eye.svg Normal file
View File

@@ -0,0 +1,5 @@
<svg width="19" height="13" viewBox="0 0 19 13" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M0.5 6.49998C3.33333 1.97224 10.9 -4.36659 18.5 6.49998" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M18.5 6.49998C15.6667 11.0277 8.1 17.3666 0.5 6.49998" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<circle cx="9.5" cy="6.49998" r="2.5" stroke="#232323"/>
</svg>

After

Width:  |  Height:  |  Size: 432 B

View File

@@ -124,7 +124,7 @@
}
const onSettings = () => {
hideProfilePopover()
console.log('settings')
router.push('/settings')
}
const onLogout = () => {
hideProfilePopover()

View File

@@ -29,6 +29,7 @@ const props = defineProps<{
modelValue: string | number | boolean | Array<string | number | boolean> | null
options: Option[] // 按钮选项数组
multiple?: boolean // 是否支持多选,默认为 false
max?: number // 多选时最多可选数量,不传则不限制
}>()
const emit = defineEmits<{
@@ -54,6 +55,9 @@ const selectOption = (value: any) => {
if (index >= 0) {
current.splice(index, 1)
} else {
if (typeof props.max === 'number' && props.max > 0 && current.length >= props.max) {
current.shift()
}
current.push(value)
}
emit('update:modelValue', current)

File diff suppressed because it is too large Load Diff