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 3f1e2f5 commit 301ee79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/picker/AbstractPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ export default abstract class AbstractPicker extends React.Component<tsPropsType

getPickerCol = () => {
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 @@ -85,6 +84,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 301ee79

Please sign in to comment.