amis icon indicating copy to clipboard operation
amis copied to clipboard

时间组件的format 设置无法生效,且和之前的值格式默认为时间戳有了冲突,盼修复。

Open hellozqy opened this issue 5 years ago • 1 comments

描述问题:

时间组件的format 设置无法生效,且和之前的值格式默认为时间戳有了冲突,盼修复。

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题... image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的? sdk、npm 或其他...

  2. 粘贴有问题的完整 amis schema 代码:

{
  "type": "page",
  "body": [
    {
      "type": "form",
      "debug": true,
      "controls": [
        {
          "type": "time",
          "label": "创建时间",
          "name": "time",
          "format": "X"
        },
        {
          "type": "tpl",
          "tpl": "${time|date:X:HH\\:mm}"
        }
      ]
    }
  ]
}code here...
  1. 操作步骤 请简单描述一下复现的操作步骤...

hellozqy avatar Jun 08 '21 05:06 hellozqy

1.2.0 中应该已经修复了,没复现

2betop avatar Jul 01 '21 01:07 2betop