diff --git a/src/lib/components/admin/DatePicker.svelte b/src/lib/components/admin/DatePicker.svelte
new file mode 100644
index 0000000..615bc00
--- /dev/null
+++ b/src/lib/components/admin/DatePicker.svelte
@@ -0,0 +1,272 @@
+
+
+
+
(isOpen = !isOpen)}>
+
+
+
+
+
+
+ {#if isOpen}
+
+ {/if}
+
+
+
diff --git a/src/routes/admin/settings/+page.svelte b/src/routes/admin/settings/+page.svelte
index e3e5247..0f674ab 100644
--- a/src/routes/admin/settings/+page.svelte
+++ b/src/routes/admin/settings/+page.svelte
@@ -4,6 +4,7 @@
import { addToast } from '$lib/stores/toast.svelte';
import Tabs from '$lib/components/admin/Tabs.svelte';
import ImagePicker from '$lib/components/admin/FeaturedImagePicker.svelte';
+ import DatePicker from '$lib/components/admin/DatePicker.svelte';
import { untrack } from 'svelte';
let { data, form }: { data: PageData; form: ActionData } = $props();
@@ -87,11 +88,10 @@
-
用于在底栏显示"感谢陪伴 X 天 X 小时"
@@ -389,22 +389,6 @@
box-shadow: 0 0 0 2px rgba(65, 155, 56, 0.1);
}
- /* 抹除浏览器原生日期选择器的特殊样式,保持与项目其他输入框一致 */
- .form-group input[type='date'] {
- appearance: none;
- -webkit-appearance: none;
- width: 100%;
- box-sizing: border-box;
- color-scheme: light;
- }
-
- .form-group input[type='date']::-webkit-calendar-picker-indicator {
- filter: invert(0.4);
- cursor: pointer;
- padding: 0;
- margin-left: 4px;
- }
-
.form-actions {
margin-top: 10px;
display: flex;