Skip to content

Commit

Permalink
Merge pull request #37 from binjie09/master
Browse files Browse the repository at this point in the history
update 0.5.1
  • Loading branch information
devane001 committed Feb 21, 2019
2 parents 40005f7 + c1229ac commit 6dde626
Show file tree
Hide file tree
Showing 16 changed files with 174 additions and 98 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ timeline: true
* Major version release is not included in this schedule for breaking change and new features.

---
## 0.5.1

`2018-02-19`

- 💄 `Form.Item`: The suffix icon is not hidden when Form.Item is verified as error.
- 💄 `Table`: Table filter does not clear after blur.
- 💄 `Table`: Table filter clear icon is displayed when there is content.
- 💄 `Table`: The confirmation button filtered in the Table is fixed at the bottom of the selection box.
- 🌟 `Icon`: Add new icons.

## 0.5.0

Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ timeline: true

---

## 0.5.1

`2018-02-19`

- 💄 `Form.Item`: Form.Item验证为error时不隐藏后缀图标。
- 💄 `Table`: Table过滤失去焦点后不清空。
- 💄 `Table`: Table过滤的清空icon在有内容时就显示。
- 💄 `Table`: Table中过滤的确认按钮固定在选择框底部。
- 🌟 `Icon`: 增加新的图标。

## 0.5.0

`2018-01-10`
Expand Down
2 changes: 1 addition & 1 deletion components/auto-complete/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class AutoComplete extends React.Component<AutoCompleteProps, {}>
const { children } = this.props;
const element = children && React.isValidElement(children) && children.type !== Option ?
React.Children.only(this.props.children) : <Input />;
const elementProps = { ...element.props };
const elementProps = { ...(element as React.ReactElement<any>).props };
// https://github.com/ant-design/ant-design/pull/7742
delete elementProps.children;
return (
Expand Down
4 changes: 2 additions & 2 deletions components/dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export default class Dropdown extends React.Component<DropDownProps, any> {
render() {
const { children, prefixCls, overlay: overlayElements, trigger, disabled } = this.props;

const child = React.Children.only(children);
const overlay = React.Children.only(overlayElements);
const child = React.Children.only(children) as React.ReactElement<any>;
const overlay = React.Children.only(overlayElements) as React.ReactElement<any>;

const dropdownTrigger = React.cloneElement(child, {
className: classNames(child.props.className, `${prefixCls}-trigger`),
Expand Down
2 changes: 1 addition & 1 deletion components/icon/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const icons = {
favorite: ['routeroutline', 'role_tag', 'hdr_strong', 'bar_chart', 'reply', 'class', 'manage_project', 'transfer_within_a_station', 'room_service', 'publish2', 'laptop_mac', 'developer_board', 'CI', 'content_copy', 'book', 'wrench', 'view_day', 'date_range', 'extension', 'filter_vintage', 'hdr_weak', 'dashboard', 'Operation-monitoring', 'application_model', 'folder_shared', 'delete', 'develop_console', 'agile', 'merge_request', 'task_schedule', 'link', 'settings', 'baseline-drag_indicator', 'apps', 'account_box', 'test_planning', 'donut_small', 'agile_fault', 'person', 'view_list', 'directions_run', 'instance_outline', 'password', 'inmail_template', 'error', 'vpn_key', 'classname', 'assignment_ind', 'contact_mail', 'work_log', 'speaker_notes', 'format_list_numbered', 'shuffle', 'API', 'linear_scale', 'device_hub', 'saga_define', 'devops_chart', 'table_chart', 'settings_input_composite', 'event_available', 'flip_to_back', 'kubernetes', 'notifications', 'hearing', 'authority', 'cluster', 'public', 'devops', 'account_balance', 'mail_set', 'person_add', 'record_test', 'folder', 'usermap', 'assignment_late', 'micro', 'secret', 'appmarket', 'brightness_low', 'IAM', 'test', 'message', 'project', 'local_offer', 'domain', 'router', 'settings_applications', 'style', 'polymer', 'manage_organization', 'microservice', 'description', 'jsfiddle', 'manage_person', 'transform', 'subject', 'compare_arrows', 'branch', 'root', 'auto_test', 'strikethrough_s', 'center', 'widgets', 'volume_up', 'link2', 'Development-monitoring', 'whatshot', 'message_notification', 'insert_drive_file', 'accessibility', 'youtube_searched_for', 'test_execution', 'baseline-list_alt', 'cloud_upload', 'APItest', 'build', 'assignment', 'language', 'home', 'favorite', 'filter_drama', 'flare', 'folder_special', 'tag_faces', 'lightbulb_outline', 'loyalty', 'star_border'],

default: [
'token', 'change_size',
'sync_records', 'sync_user', 'test-case', 'test-automation', 'token', 'change_size',
'add_crt', 'add_branch', 'line', 'secret', 'recover', 'table', 'test_execution', 'test_progress',
'test_record', 'execution_schedule', 'cluster', 'kubernetes_cluster', 'disconnect',
'running', 'notification_setting', 'authority', 'develop_console', 'frame', 'record_test',
Expand Down

0 comments on commit 6dde626

Please sign in to comment.