OAFRONT4 统一PC日期和状态展示

这个提交包含在:
2026-05-25 08:00:12 +08:00
父节点 fa5ed0337d
当前提交 5519c3d240
共修改 8 个文件,包含 123 行新增和 52 行删除
@@ -0,0 +1,17 @@
import type { ComponentPropsWithoutRef } from "react";
import { Input } from "../ui/input";
export function DateTextInput({
placeholder = "例如 2026-05-25",
...props
}: Omit<ComponentPropsWithoutRef<typeof Input>, "type">) {
return (
<Input
{...props}
type="text"
inputMode="numeric"
pattern="\\d{4}-\\d{2}-\\d{2}"
placeholder={placeholder}
/>
);
}