Skip to content

Commit

Permalink
fix(form): 修复style类型报错
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczj committed Aug 2, 2018
1 parent 2bb73e2 commit f55e170
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import './index.scss'

export default class AtForm extends Taro.Component {
class AtForm extends Taro.Component {
render () {
return <View className='at-form' style={this.props.style}>
{this.props.children}
</View>
}
}
AtForm.defaultProps = {
style: ''
}
export default AtForm

0 comments on commit f55e170

Please sign in to comment.