NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## 时间日期 > 图片示例: ![](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([...]) ->cols(function($state){ $cols=[ 'id'=>['type'=>'checkbox'], // 添加时间 'create_time'=>['title'=>'添加时间','templet'=>'datetime']; return $cols; }) ~~~