Skip to content

Conversation

@flowfire
Copy link

自定义事件应当传入原参数而不应该是arguments

@luckyadam
Copy link
Collaborator

那应该传 ...arguments 吧

@UphkcRNqmafQWcSSSSSS
Copy link

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>
    )
  }
}

这样不就好了嘛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants