mirror of https://gitee.com/karson/fastadmin.git
优化Form表单生成类
parent
1909bb4e6f
commit
c6a3251840
|
|
@ -579,7 +579,9 @@ EOD;
|
|||
{
|
||||
$defaults = [
|
||||
'data-date-format' => "YYYY-MM-DD HH:mm:ss",
|
||||
// 兼容旧的用法
|
||||
'data-use-current' => "true",
|
||||
'data-date-use-current' => "true",
|
||||
];
|
||||
$value = is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
|
||||
$options = array_merge($defaults, $options);
|
||||
|
|
|
|||
Loading…
Reference in New Issue