OAFRONT4 统一PC日期和状态展示
这个提交包含在:
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户