taro-ui
taro-ui copied to clipboard
自定义事件应当传入原参数而不应该是arguments
自定义事件应当传入原参数而不应该是arguments
那应该传 ...arguments 吧
export default class AtForm extends React.Component<AtFormProps> {
public static defaultProps: AtFormProps
public static propTypes: InferProps<AtFormProps>
public render (): JSX.Element {
const {customStyle, className, ...others} = this.props
return (
<Form {...others}
style={customStyle}
className={classNames('at-form', className)}>
{this.props.children}
</Form>
)
}
}
这样不就好了嘛