添加文章管理和文章分组页面
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user