bug修复

This commit is contained in:
2025-12-22 23:40:47 +08:00
parent 7d53a059d7
commit 1fefd98d74
19 changed files with 1339 additions and 534 deletions
+16 -9
View File
@@ -21,6 +21,11 @@ const GlassInput = ({
className = '',
id
}) => {
// 日期类型输入框的特殊样式
const dateInputClass = type === 'date'
? 'cursor-pointer [&::-webkit-calendar-picker-indicator]:cursor-pointer [&::-webkit-calendar-picker-indicator]:opacity-100 [&::-webkit-calendar-picker-indicator]:w-full [&::-webkit-calendar-picker-indicator]:h-full [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:top-0 [&::-webkit-calendar-picker-indicator]:left-0 [&::-webkit-calendar-picker-indicator]:bg-transparent'
: '';
return (
<div className={`flex flex-col gap-2 ${className}`}>
{label && (
@@ -31,15 +36,17 @@ const GlassInput = ({
{label}
</label>
)}
<input
id={id}
type={type}
placeholder={placeholder}
value={value}
onChange={(e) => onChange(e.target.value)}
maxLength={maxLength}
className="glass-input w-full focus:ring-2 focus:ring-orange-200/50"
/>
<div className={type === 'date' ? 'relative' : ''}>
<input
id={id}
type={type}
placeholder={placeholder}
value={value}
onChange={(e) => onChange(e.target.value)}
maxLength={maxLength}
className={`glass-input w-full focus:ring-2 focus:ring-orange-200/50 ${dateInputClass}`}
/>
</div>
</div>
);
};