tmagic-editor/docs/form-config/fields/timerange-picker.md
roymondchen 3eb8cc0614 docs: 完善 editor/form/runtime/stage 等 API 文档参数与说明
补全方法的参数类型、返回值类型与详情说明,规范字段编辑器/字段配置/运行时 API 等文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-07 17:33:58 +08:00

2.9 KiB

TimeRangePicker 时间范围选择器

用于选择或输入时间范围

基础用法

<template #source>

type为'timerange'

绑定多个字段

可以通过配置 names 来将时间范围绑定到两个不同的字段上。

<template #source>

配置 names 属性,将开始时间和结束时间分别绑定到 startTime 和 endTime 字段。

Attributes

参数 说明 类型 可选值 默认值
name 绑定值(数组形式) string
names 绑定值(拆分为两个字段) string[]
text 表单标签 string
disabled 是否禁用 boolean / FilterFunction false
format 显示格式 string HH:mm:ss
valueFormat 绑定值的格式 string HH:mm:ss
defaultTime 默认时间 Date[]
onChange 值变化时触发的函数 OnChangeHandler -