From 00bd3979865bdf2eafe9912c691a305cad0dab3c Mon Sep 17 00:00:00 2001
From: R2m1liA <15258427350@163.com>
Date: Tue, 23 Dec 2025 14:39:03 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BASelect=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=E5=AE=9E=E7=8E=B0DaisyUI=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/ui/select/Select.variants.ts | 21 ++++++++++++
.../components/ui/select/SelectContent.svelte | 10 ++----
.../components/ui/select/SelectTrigger.svelte | 32 ++++++++++++++++---
3 files changed, 52 insertions(+), 11 deletions(-)
create mode 100644 src/lib/components/ui/select/Select.variants.ts
diff --git a/src/lib/components/ui/select/Select.variants.ts b/src/lib/components/ui/select/Select.variants.ts
new file mode 100644
index 0000000..c04f802
--- /dev/null
+++ b/src/lib/components/ui/select/Select.variants.ts
@@ -0,0 +1,21 @@
+export const COLOR_MAP = {
+ neutral: 'select-neutral',
+ primary: 'select-primary',
+ secondary: 'select-secondary',
+ accent: 'select-accent',
+ info: 'select-info',
+ success: 'select-success',
+ warning: 'select-warning',
+ error: 'select-error',
+} as const;
+
+export const SIZE_MAP = {
+ xs: 'select-xs',
+ sm: 'select-sm',
+ md: 'select-md',
+ lg: 'select-lg',
+ xl: 'select-xl',
+} as const;
+
+export type Color = keyof typeof COLOR_MAP;
+export type Size = keyof typeof SIZE_MAP;
diff --git a/src/lib/components/ui/select/SelectContent.svelte b/src/lib/components/ui/select/SelectContent.svelte
index 544fac4..d8a6cca 100644
--- a/src/lib/components/ui/select/SelectContent.svelte
+++ b/src/lib/components/ui/select/SelectContent.svelte
@@ -1,6 +1,6 @@
-
+
{@render children?.()}