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

fix Select component notFoundContent locale. #5661

Merged
merged 2 commits into from
Apr 7, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix Select component notFoundContent locale.
  • Loading branch information
下一个雨季~ committed Apr 7, 2017
commit 4a49e1b995c49ad2c7854c87e0f2b6fa15d53696
6 changes: 5 additions & 1 deletion components/select/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export default class Select extends React.Component<SelectProps, any> {
choiceTransitionName: PropTypes.string,
};

static contextTypes = {
antLocale: React.PropTypes.object,
};

context: SelectContext;

getLocale() {
Expand All @@ -97,7 +101,7 @@ export default class Select extends React.Component<SelectProps, any> {
return antLocale.Select;
}
return {
notFoundContent: 'Not Found',
notFoundContent: '暂无数据',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

用“无匹配结果”更好点。

};
}

Expand Down