feat(date-picker): RangePicker allowEmpty #2146
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types of changes
Background and context
#2022
Solution
When the
allowEmpty
attribute is passed in, a confirmation button is added to thepanel
, 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 thereferenceInterval
attribute passed in.当传入
allowEmpty
属性时,为panel
增加确认按钮,当确定某一区间时,点击确定按钮,将为空缺的区间自动填充传入的referenceInterval
属性的对应区间的值How is the change tested?
Changelog
RangePicker
组件新增allowEmpty
和referenceInterval
属性,允许在选择范围时传入空值allowEmpty
andreferenceInterval
properties forRangePicker
component, allowing to pass in empty value when selecting a rangeChecklist:
npm run test
)feature
branch and others should be submitted tomain
branch)Other information