label必填 | string | Accessible field name, visible unless hideLabel is set. |
|---|
modelValue | QuireKitDateTimeRangeValue | undefinedundefined | {
/** Complete start date-time, or an empty/incomplete endpoint. */
start: null | string;
/** Complete end date-time, or an empty/incomplete endpoint. */
end: string | null;
}
| Controlled independent endpoints; defaults to second precision. |
|---|
defaultValue | QuireKitDateTimeRangeValue | undefined默认:{ start: null, end: null } undefined | {
/** Complete start date-time, or an empty/incomplete endpoint. */
start: null | string;
/** Complete end date-time, or an empty/incomplete endpoint. */
end: string | null;
}
| Initial uncontrolled range and native form-reset target. |
|---|
startLabel | string | undefined | Start-field accessible name, otherwise derived from label and the active language. |
|---|
endLabel | string | undefined | End-field accessible name, otherwise derived from label and the active language. |
|---|
rangeLayout | "single" | "dual" | undefined默认:"single" | Sequential editing by default; dual shows both desktop editors, while mobile stays single. |
|---|
isDateUnavailable | ((date: string, endpoint: DateTimeRangeEndpoint) => boolean) | undefined | Pure endpoint-day restriction; does not enumerate dates inside the range. |
|---|
isDateTimeUnavailable | ((value: string, endpoint: DateTimeRangeEndpoint) => boolean) | undefined | Pure endpoint-instant restriction on civil fields, without timezone inference. |
|---|
isRangeUnavailable | ((range: CompleteDateTimeRange) => boolean) | undefined | Whole-range restriction, called only with complete individually valid ordered endpoints. |
|---|
presentation | PickerPresentation | undefined默认:"auto" undefined | "auto" | "desktop" | "bottom"
| Auto uses a bottom sheet below 768px; a session keeps its opening presentation. |
|---|
openOnFocus | boolean | undefined默认:true | Open when the editable field receives focus or a click; defaults to true. |
|---|
open | boolean | undefined默认:undefined | Controlled panel visibility. |
|---|
defaultOpen | boolean | undefined默认:false | Initial uncontrolled panel visibility. |
|---|
hourStep | number | undefined默认:1 | Hour candidates advance from zero by this positive integer, at most 23. |
|---|
minuteStep | number | undefined默认:1 | Minute candidates advance from zero by this positive integer, at most 59. |
|---|
secondStep | number | undefined默认:1 | Second candidates advance from zero by this positive integer, at most 59. |
|---|
size | QuireKitControlSize | undefined默认:"sm" undefined | "xs" | "sm" | "md" | "lg" | "xl"
| Shared single-line control size. |
|---|
width | string | undefined默认:"640px" | CSS width; the field never exceeds its containing block. |
|---|
hideLabel | boolean | undefined默认:false | Keep the accessible name while letting an external layout present the label. |
|---|
min | string | undefined | Inclusive complete date-time lower boundary, without a time-zone conversion. |
|---|
max | string | undefined | Inclusive complete date-time upper boundary, without a time-zone conversion. |
|---|
placeholderValue | string | undefined | Stable complete reference date-time for editing empty segments. |
|---|
granularity | "minute" | "second" | undefined默认:"second" | Smallest displayed unit; defaults to second. Non-zero seconds cannot be hidden. |
|---|
hourCycle | 12 | 24 | undefined默认:24 | Display cycle, independent of the 24-hour public value; defaults to 24. |
|---|
name | string | undefined | Native form field name. |
|---|
form | string | undefined | Associated native form ID, including forms outside the DOM ancestry. |
|---|
disabled | boolean | undefined默认:false | Prevent interaction and omit the field from native form data. |
|---|
readOnly | boolean | undefined默认:false | Allow reading and focus, without changing the value. |
|---|
required | boolean | undefined默认:false | Required-field semantics; validation is owned by the host Form. |
|---|
invalid | boolean | undefined默认:false | Host-owned validation state, in addition to time-bound validation. |
|---|
description | string | undefined | Supporting text associated with each editable segment. |
|---|
errorText | string | undefined | Recovery guidance presented when the host marks the field invalid. |
|---|
clearable | boolean | undefined默认:true | Offer a clear action, including while time segments are incomplete. |
|---|
calendarDensity | QuireKitCalendarDensity | undefined默认:"comfortable" undefined | "comfortable" | "compact"
| Calendar geometry independent of the input's five shared sizes. |
|---|
startOfWeek | 0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined | First weekday: Sunday is 0 and Monday is 1; otherwise follows the active language. |
|---|