UNPKG

amis

Version:

一种MIS页面生成工具

32 lines (27 loc) 928 B
### Time 时间类型。 - `type` 请设置成 `time` - `format` 默认 `X` 即时间戳格式,用来提交的时间格式。更多格式类型请参考 [moment](http://momentjs.com/). - `inputFormat` 默认 `HH:mm` 用来配置显示的时间格式。 - `timeFormat` 默认 `HH:mm` 用来配置选择的时间格式。 - `placeholder` 默认 `请选择日期` - `timeConstraints` 请参考: [react-datetime](https://github.com/YouCanBookMe/react-datetime) - `value` 这里面 value 需要特殊说明一下,因为支持相对值。如: - `-2mins` 2 分钟前 - `+2days` 2 天后 - `-10week` 十周前 - **还有更多通用配置请参考** [FormItem](./FormItem.md) ```schema:height="250" scope="form" [ { "type": "time", "name": "select", "label": "日期" }, { "type": "static", "name": "select", "label": "当前值" } ] ```