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

使用 context 传递 props? #1

Open
dive2Pro opened this issue Apr 23, 2018 · 0 comments
Open

使用 context 传递 props? #1

dive2Pro opened this issue Apr 23, 2018 · 0 comments

Comments

@dive2Pro
Copy link

time-gantt 中是这么使用的:

import { DraggingDecorator, DragComponent } from 'rc-chart-slider';
            data={{
              showPercent,
              showStartPercent,
            }}
            width={CHART_WIDTH}
            clickJumpPercent={CLICK_JUMP_PERCENT}
            callback={this.callBack}
            _dragActions={this.props._dragActions}
          />

props _dragActionsdata 这两个内部 属性, 可以通过 context 来进行传递, 免除一些操作.

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

No branches or pull requests

1 participant