添加文章管理和文章分组页面

This commit is contained in:
Eamon
2026-06-09 16:37:40 +08:00
parent 9f74483345
commit d2c7846a91
24 changed files with 1908 additions and 32 deletions

View File

@@ -112,7 +112,7 @@ export default function DashboardPage() {
// 处理取消
const handleCancel = () => {
setShowCustomPicker(false)
setTimeRange("7d")
setTimeRange("7d")
}
return (
@@ -232,18 +232,18 @@ export default function DashboardPage() {
{/* 点击自定义时显示 */}
{showCustomPicker && (
<div className="flex gap-2 items-center p-1 rounded-md">
<input
type="date"
<input
type="date"
className="px-2 py-1 border rounded text-sm bg-background"
value={startDate}
onChange={(e) => setStartDate(e.target.value)}
onChange={e => setStartDate(e.target.value)}
/>
<span className="text-muted-foreground">~</span>
<input
type="date"
<input
type="date"
className="px-2 py-1 border rounded text-sm bg-background"
value={endDate}
onChange={(e) => setEndDate(e.target.value)}
onChange={e => setEndDate(e.target.value)}
/>
<button
onClick={handleDateConfirm}
@@ -436,4 +436,4 @@ function ResourceItem({
</div>
</div>
)
}
}