Commit 84708222 by peii

【OPTIMIZE】多行输入框优化

parent fd8da620
...@@ -66,11 +66,9 @@ ...@@ -66,11 +66,9 @@
&__multi &__multi
text-align left text-align left
width 100% width 100%
border-width 1px
border-color #ddd border-color #ddd
padding 10px padding 0px
border-radius 4px margin-top 15px
margin-top 10px
flex 1 flex 1
&-radio &-radio
......
...@@ -65,6 +65,7 @@ export default class Input extends Component<IProps> { ...@@ -65,6 +65,7 @@ export default class Input extends Component<IProps> {
maxLength={140} maxLength={140}
placeholderTextColor={placehold_text_color} placeholderTextColor={placehold_text_color}
underlineColorAndroid="transparent" underlineColorAndroid="transparent"
textAlignVertical={item.multiline ? 'top' : 'center'}
/> />
</TouchableOpacity> </TouchableOpacity>
) )
......
...@@ -205,12 +205,6 @@ class ConsumeForm extends Component<IProps, IState> { ...@@ -205,12 +205,6 @@ class ConsumeForm extends Component<IProps, IState> {
}, 0) }, 0)
} }
componentWillUnmount() {
// this.props.consumeStore.resetOrderLines()
// this.props.consumeStore.setSelectedLines([])
console.log('Consume page will unmount')
}
/** /**
* @description: 设置配置性的表单字段 * @description: 设置配置性的表单字段
* @param {*} * @param {*}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment