Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

flowfire
Copy link

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

@luckyadam
Copy link
Member

那应该传 ...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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants