Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

fix: 在picker组件中使用calendar组件时, calendar的selectValue属性无效问题 #615

Open
Crayonn wants to merge 1 commit into react-component:master
base: master
Choose a base branch
Loading
from Crayonn:master

Conversation

@Crayonn
Copy link

@Crayonn Crayonn commented Aug 14, 2019
edited
Loading

问题描述:
picker组件的会拦截calendar的selectValue, 这个是有什么考虑吗?

const calendar = (
 <Calendar selectValue={moment()}/> // 此时calendar组件中的selectValue 为 undefined
 )
 return (
 <Picker calendar={calendar}>
 {this.renderChild}
 </Picker>
 );

Copy link

codecov bot commented Aug 14, 2019
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.78%. Comparing base (d486704) to head (ced1dfe).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@
## master #615 +/- ##
=======================================
 Coverage 90.78% 90.78% 
=======================================
 Files 10 10 
 Lines 716 716 
 Branches 214 214 
=======================================
 Hits 650 650 
 Misses 57 57 
 Partials 9 9 

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Crayonn Crayonn changed the title (削除) 修复calendar组件在picker组件中使用时,selectValue无效问题 (削除ここまで) (追記) fix: 在picker组件中使用calendar组件时, calendar的selectValue属性无效问题 (追記ここまで) Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /