generated from react-component/footer
-
-
Notifications
You must be signed in to change notification settings - Fork 318
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: support prefix prop #884
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ function RangeSelector<DateType extends object = any>( | |
const { | ||
id, | ||
|
||
prefix, | ||
clearIcon, | ||
suffixIcon, | ||
separator = '~', | ||
|
@@ -238,6 +239,7 @@ function RangeSelector<DateType extends object = any>( | |
onMouseDown?.(e); | ||
}} | ||
> | ||
{prefix && <div className={`${prefixCls}-prefix`}>{prefix}</div>} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification **缺少 `prefix` 属性的测试用例**
未发现针对 `prefix` 属性的测试用例。建议为此功能添加相应的测试,以确保其正确性并防止未来的回归。
🔗 Analysis chain
建议为这个新功能添加测试用例,以确保其正确性和防止未来的回归。可以运行以下脚本来检查是否已经添加了相关测试: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# 描述:检查是否已添加 prefix 属性的测试用例
# 测试:在测试文件中搜索 prefix 相关的测试
rg -A 5 'test.*prefix' tests
Length of output: 255 |
||
<Input | ||
ref={inputStartRef} | ||
{...getInputProps(0)} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Picker 组件未正确实现
prefix
属性在执行验证脚本后,未找到
prefix
属性在 Picker 组件中的实现。这意味着prefix
属性可能尚未被正确添加或处理。建议:
Picker
组件的实现文件,确保prefix
属性已正确添加并处理。PickerProps
接口中已包含prefix
属性的声明。🔗 Analysis chain
新增
prefix
属性的实现新增的
prefix
属性为 Picker 组件增加了前缀功能,这可以提高组件的灵活性和可定制性。建议:
prefix
属性在 Picker 组件的类型定义中已正确声明。prefix
属性的使用说明和示例。prefix
属性的正确渲染和功能。请运行以下脚本来验证
prefix
属性的实现:🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 603