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

fix(picker): picker prompt also need the value prop #1172

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

aiyogg
Copy link
Contributor

@aiyogg aiyogg commented Aug 16, 2024

No description provided.

Copy link

vercel bot commented Aug 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zarm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 16, 2024 11:41am

Copy link

github-actions bot commented Aug 16, 2024

🎊 PR Preview has been successfully built and deployed to https://zarm-preview-pr-1172.surge.sh

Copy link

codecov bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.40%. Comparing base (740b45c) to head (f22c89c).
Report is 14 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1172   +/-   ##
=======================================
  Coverage   90.40%   90.40%           
=======================================
  Files         220      220           
  Lines        5125     5127    +2     
  Branches     1219     1218    -1     
=======================================
+ Hits         4633     4635    +2     
  Misses        482      482           
  Partials       10       10           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -494,7 +494,7 @@ ReactDOM.render(<Demo />, mountNode);
Picker 支持指令式调用,提供了 `prompt` 方法

```tsx
prompt: (props: Omit<PickerProps, 'visible' | 'visible' | 'children'>) =>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value 属性还是需要的吧,只是这里的文档有错误,应该是 'value' | 'visible' | 'children'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prompt 如果不支持 value ,已选项没法正确回填

@JeromeLin JeromeLin merged commit 6194d09 into ZhongAnTech:master Aug 19, 2024
23 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants