# timePicker

# Schema类静态属性

Schema类静态属性请访问 Schema.js类静态属性值逻辑与事件逻辑关系

{
  widget: 'timePicker',
  title: '时间选择',
  preview: '',
  type: ['string', 'array<string>'],
  validators: [],
  logic: {
    value: ['=', '!='],
    event: []
  }
}
1
2
3
4
5
6
7
8
9
10
11

# schema.default

默认''

# schema.option定义

schema完整定义请访问schema

{
  "range": false,         // 是否为时间区间
  "format": "yyyy-MM-dd"  // 时间格式
}
1
2
3
4

# 时间配置

格式 示例 说明
HH 12 小时
mm 30 分钟
ss 30
  • 可用时间格式
'HH:mm:ss',
'HH:mm',
'mm:ss',
1
2
3

# 时间区间配置

配置同 时间配置,仅需要将 range 配置为true

# 示例展示

# 时间展示

  • schema





 
 


















{
  "key": "ks07wFd1d",
  "widget": "timePicker",
  "hidden": false,
  "option": {
    "range": false,
    "format": "HH:mm:ss"
  },
  "name": "startTime",
  "type": "string",
  "label": "时间",
  "description": "",
  "help": "",
  "disabled": false,
  "rules": [
    {
      "required": false,
      "message": "必填",
      "trigger": "change",
      "type": "string"
    }
  ],
  "placeholder": "请选择"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

# 时间区间展示

  • schema





 
 


 









 





{
  "key": "ku07wFd1d",
  "widget": "timePicker",
  "hidden": false,
  "option": {
    "range": true,
    "format": "HH:mm:ss"
  },
  "name": "timeRange",
  "type": "array<string>",
  "label": "时间",
  "description": "",
  "help": "",
  "disabled": false,
  "rules": [
    {
      "required": false,
      "message": "必填",
      "trigger": "change",
      "type": "array"
    }
  ],
  "placeholder": "请选择"
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
更新: 3/22/2021, 6:03:54 PM