rc-chart-slider icon indicating copy to clipboard operation
rc-chart-slider copied to clipboard

使用 context 传递 props?

Open dive2Pro opened this issue 8 years ago • 0 comments

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 来进行传递, 免除一些操作.

dive2Pro avatar Apr 23 '18 16:04 dive2Pro