Skip to content

Conversation

@Crayonn
Copy link

@Crayonn Crayonn commented Aug 14, 2019

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

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

@codecov
Copy link

codecov bot commented Aug 14, 2019

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 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.

1 participant