🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
## 时间日期 > 图片示例: ![](https://img.kancloud.cn/c8/d4/c8d428ad22fc8210b1126fa7abdfe9b2_1920x903.png) > 配置项 | key | 类型 | 是否必须 | 说明 | | --- | --- | --- | --- | | templet | string | 是 | 固定值:`datetime` | | 通用配置... | | align | string | 否 | 排列方式,可选值`left`、`center`、`right`,默认`center` | > 模板值 10位有效时间戳。 > 代码示例: ~~~ $builder=YT('general_example')->state(DbRowState::state()) ->cols(function($state){ $cols=[ 'id'=>['type'=>'checkbox'], // 添加时间 'create_time'=>['title'=>'添加时间','templet'=>'datetime']; return $cols; }) ~~~