8000 日期范围选择shortcuts中的最近7天不包含今日 · Issue #12101 · baidu/amis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
日期范围选择shortcuts中的最近7天不包含今日 #12101
Open
@blankzust

Description

@blankzust

描述问题:

今日是7月1日,点击最近7天,返回的是6月24日-6月30日

Image

截图或视频:

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

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

  1. 你是如何使用 amis 的?
    官网示例:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/input-date-range#%E5%BF%AB%E6%8D%B7%E9%94%AE

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

官网示例中存在

  1. 粘贴有问题的完整 amis schema 代码:
{
  "type": "page",
  "body": {
    "type": "form",
    "api": "/amis/api/mock2/form/saveForm",
    "body": [
      {
        "type": "input-date-range",
        "name": "select",
        "label": "日期范围",
        "shortcuts": [
          "7daysago",
          "15dayslater",
          "2weeksago",
          "1weekslater",
          "thismonth",
          "2monthsago",
          "3monthslater"
        ]
      }
    ]
  }
}
  1. 操作步骤
    点击快捷键最近7天

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0