Skip to content

Commit

Permalink
fix: native picker style, close #1770
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud committed Aug 30, 2017
1 parent e00cd09 commit 9d2a330
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/picker/AbstractPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default abstract class AbstractPicker extends React.Component<tsPropsType
const { data, pickerPrefixCls } = this.props;
return data.map((col, index) => {
return (
<RMCPicker key={index} prefixCls={pickerPrefixCls}>
<RMCPicker key={index} prefixCls={pickerPrefixCls} style={{ flex: 1 }}>
{col.map(item => {
return (
<RMCPicker.Item key={item.value} value={item.value}>
Expand Down Expand Up @@ -83,6 +83,7 @@ export default abstract class AbstractPicker extends React.Component<tsPropsType
} else {
cascader = (
<RMCMultiPicker
style={{ flexDirection: 'row', alignItems: 'center' }}
prefixCls={prefixCls}
pickerItemStyle={itemStyle}
>
Expand Down

0 comments on commit 9d2a330

Please sign in to comment.