Skip to content

Commit

Permalink
feat:support indicatorStyle for picker-view
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud authored and lixiaoyang1992 committed Apr 26, 2018
1 parent 8ed6227 commit c5ae858
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/picker-view/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface IPickerView {
data?: any;
styles?: any;
onChange?: (value?) => void;
indicatorStyle?: any;
}

export default class Picker extends React.Component<IPickerView, any> {
Expand All @@ -40,6 +41,7 @@ export default class Picker extends React.Component<IPickerView, any> {
value={props.value}
onChange={props.onChange}
cols={props.cols}
indicatorStyle={props.indicatorStyle}
/>
);
} else {
Expand All @@ -49,6 +51,7 @@ export default class Picker extends React.Component<IPickerView, any> {
selectedValue={props.value}
onValueChange={props.onChange}
pickerPrefixCls={props.pickerPrefixCls}
indicatorStyle={props.indicatorStyle}
>
{props.data.map(children => { return { props: { children } }; })}
</MultiPicker>
Expand Down

0 comments on commit c5ae858

Please sign in to comment.