Files
O96u 737235acff release: v1.4.0 — 标签系统、操作日志扩展与文档截图更新
- 每用户标签与彩色打标,图库 OR/AND 筛选与批量打标
- 操作日志记录登录、删除、设置与标签操作
- API 标签/打标接口;README 与文档站截图同步
2026-09-09 14:46:52 +08:00

50 lines
991 B
Vue

<script setup lang="ts">
import type { ImageTag } from '~/types/image'
const props = defineProps<{
open: boolean
tags: ImageTag[]
}>()
const emit = defineEmits<{
'update:open': [value: boolean]
'changed': []
}>()
const { t } = useI18n()
const { fetchTags } = useTags()
watch(() => props.open, (open) => {
if (open) void fetchTags(true)
})
</script>
<template>
<UModal
:open="open"
:title="t('tags.manageTitle')"
:description="t('tags.manageSubtitle')"
:ui="{ content: 'max-w-5xl' }"
@update:open="emit('update:open', $event)"
>
<template #body>
<TagManagePanel
:tags="tags"
@changed="emit('changed')"
/>
</template>
<template #footer>
<div class="flex w-full justify-end">
<UButton
variant="ghost"
color="neutral"
@click="emit('update:open', false)"
>
{{ t('common.cancel') }}
</UButton>
</div>
</template>
</UModal>
</template>