Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(date-picker): RangePicker allowEmpty #2146

Open
wants to merge 4 commits into
base: feature
Choose a base branch
from

Conversation

ChuTingzj
Copy link

Types of changes

  • New feature
  • Bug fix
  • Enhancement
  • Documentation change
  • Coding style change
  • Component style change
  • Refactoring
  • Test cases
  • Continuous integration
  • Typescript definition change
  • Breaking change
  • Others

Background and context

#2022

Solution

When the allowEmpty attribute is passed in, a confirmation button is added to the panel, and when a certain interval is determined, click the OK button, and the empty interval will be automatically filled with the value of the corresponding interval of the referenceInterval attribute passed in.

当传入allowEmpty属性时,为panel增加确认按钮,当确定某一区间时,点击确定按钮,将为空缺的区间自动填充传入的referenceInterval属性的对应区间的值

How is the change tested?

Changelog

Component Changelog(CN) Changelog(EN) Related issues
DatePicker RangePicker组件新增allowEmptyreferenceInterval属性,允许在选择范围时传入空值 Add allowEmpty and referenceInterval properties for RangePicker component, allowing to pass in empty value when selecting a range #2022

Checklist:

  • Test suite passes (npm run test)
  • Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
  • Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others should be submitted to main branch)

Other information

@github-actions
Copy link

Prepare preview

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8253c3b:

Sandbox Source
arco-react-pr-template Configuration

@ChuTingzj ChuTingzj changed the title Feat/range picker feat(date-picker): RangePicker allowEmpty Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant