baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
16.49k stars 2.41k forks source link

input-date-range 清空bug #10400

Open Ladtor opened 4 weeks ago

Ladtor commented 4 weeks ago

描述问题:

如图,日期清空之后仍然存在

截图或视频:

20240606095524_rec_

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

  1. 你是如何使用 amis 的? sdk

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在 6.5.0

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

    {
    "primaryField": "id",
    "api": {
    "method": "post",
    "url": "/api/query",
    "cache": 500
    },
    "initFetch":false,
    "columns": [
    {
      "name": "id",
      "type": "text",
      "static": true,
      "label": "用户ID"
    },
    {
      "name": "updateTime",
      "format": "YYYY-MM-DD HH:mm:ss",
      "inputFormat": "YYYY-MM-DD HH:mm:ss",
      "type": "input-datetime",
      "label": "更新时间"
    }
    ],
    "filter": {
    "debug": true,
    "body": [
      {
        "id": "xURRGSBO",
        "name": "updateTimeStart",
        "format": "YYYY-MM-DD",
        "inputFormat": "YYYY-MM-DD",
        "clearable": true,
        "extraName": "updateTimeEnd",
        "type": "input-date-range",
        "label": "更新时间"
      }
    ],
    "mode": "horizontal",
    "actions": [
      {
        "label": "查询",
        "actionType": "submit",
        "level": "primary",
        "type": "button"
      }
    ],
    "type": "form"
    },
    "syncLocation": false,
    "type": "crud"
    }
  4. 操作步骤

    • 选择日期范围
    • 触发查询
    • 清空日期范围
    • 触发查询
    • 已清空的日期又莫名其妙出现了
github-actions[bot] commented 4 weeks ago

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.