✨ feat(core): 实现管理端后台界面及核心功能模块

* 初始化后台管理布局与路由框架
* 新增文件管理、仪表盘、系统设置及日志视图
* 实现文件上传预签名、提取流程及发送记录管理
* 构建常用组件库如模态框、表格、分页及进度条
* 引入多语言支持(中英文)及主题切换功能
* 封装后台业务逻辑 Hooks 和数据持久化存储功能
This commit is contained in:
orion committed 2026-09-11 16:51:50 +08:00
1 parent 925c6450ac
commit 8badb80600
114 files changed
+18812

No files matched your search

+75
View File
@@ -0,0 +1,75 @@
<template>
<div class="space-y-2 group">
<label
class="text-sm font-medium flex items-center space-x-2 transition-colors duration-200"
:class="[
isDarkMode
? 'text-gray-300 group-focus-within:text-indigo-400'
: 'text-gray-700 group-focus-within:text-indigo-600'
]"
>
<span>{{ label }}</span>
<div
class="h-px flex-1 transition-colors duration-200"
:class="[
isDarkMode
? 'bg-gray-700 group-focus-within:bg-indigo-500/50'
: 'bg-gray-200 group-focus-within:bg-indigo-500/30'
]"
></div>
</label>
<div class="relative rounded-lg shadow-sm">
<input
:type="type"
:value="modelValue ?? ''"
class="block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm"
:class="[
isDarkMode
? 'bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50'
: 'bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500'
]"
:placeholder="placeholder"
@input="handleInput"
/>
<div
class="absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"
>
<CheckIcon class="w-5 h-5" :class="[isDarkMode ? 'text-indigo-400' : 'text-indigo-600']" />
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { inject } from 'vue'
import { CheckIcon } from 'lucide-vue-next'
const props = withDefaults(
defineProps<{
label: string
modelValue: string | number | null
placeholder?: string
type?: 'text' | 'number'
}>(),
{
placeholder: '',
type: 'text'
}
)
const emit = defineEmits<{
'update:modelValue': [value: string | number | null]
}>()
const isDarkMode = inject('isDarkMode')
const handleInput = (event: Event) => {
const target = event.target as HTMLInputElement
if (props.type === 'number') {
emit('update:modelValue', target.value === '' ? null : target.valueAsNumber)
return
}
emit('update:modelValue', target.value)
}
</script>