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

怎么设置自定义组件默认值? #364

Closed
super918180 opened this issue Jul 21, 2018 · 1 comment
Closed

怎么设置自定义组件默认值? #364

super918180 opened this issue Jul 21, 2018 · 1 comment

Comments

@super918180
Copy link

super918180 commented Jul 21, 2018

RT

@zacksleo
Copy link
Contributor

在类中添加静态属性,例如:

static defaultProps = {
    title: 'defaultTitle',
  };

@yuche yuche closed this as completed Jul 30, 2018
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

No branches or pull requests

3 participants