Skip to content

Commit

Permalink
Merge branch 'master' into refactor-ts
Browse files Browse the repository at this point in the history
* master:
  fix(Carousel): ant-design#2369
  chore: delete upgrade tip
  fix: Fix all failed test (ant-design#2337)
  fix: modal.alert content align=center (ant-design#2347)
  bugfix: fixed bug in image-picker, Uncaught TypeError: Cannot set property 'value' of null (ant-design#2302)

# Conflicts:
#	components/_util/upgradeTip.tsx
#	components/image-picker/index.tsx
  • Loading branch information
BANG88 committed Mar 13, 2018
2 parents 916cf89 + 5b5ba8c commit 611df87
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 115 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 3
order: 2
title: Change Log
timeline: true
toc: false
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 3
order: 2
title: 更新日志
timeline: true
toc: false
Expand Down
2 changes: 1 addition & 1 deletion components/carousel/demo/basic.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class BasicCarouselExample extends React.Component<any, any> {
<View style={{ paddingHorizontal: 15 }}>
<Carousel
style={styles.wrapper}
autoplayTimeout={2}
autoplayInterval={2}
selectedIndex={2}
autoplay
infinite
Expand Down
5 changes: 1 addition & 4 deletions components/image-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ export default class ImagePicker extends React.Component<
aria-label="Choose and add image"
>
<input
// tslint:disable-next-line:jsx-no-multiline-js
ref={input => {
this.fileSelectorInput = input;
}}
ref={(input) => { if (input) { this.fileSelectorInput = input; } }}
type="file"
accept={accept}
// tslint:disable-next-line:jsx-no-multiline-js
Expand Down
5 changes: 5 additions & 0 deletions components/modal/AlertContainer.native.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* tslint:disable:jsx-no-multiline-js */
import React from 'react';
import { ScrollView, StyleProp, Text, TextStyle } from 'react-native';
import Modal from './Modal.native';
Expand Down Expand Up @@ -57,6 +58,10 @@ export default class AlertContainer extends React.Component<
visible={this.state.visible}
footer={footer}
onAnimationEnd={onAnimationEnd}
bodyStyle={{
marginTop: 8,
alignItems: 'center',
}}
>
<ScrollView>
<Text>{content}</Text>
Expand Down
2 changes: 1 addition & 1 deletion docs/react/customize-theme.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 6
order: 3
title: Customize Theme
---

Expand Down
2 changes: 1 addition & 1 deletion docs/react/customize-theme.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 6
order: 3
title: 定制主题
---

Expand Down
14 changes: 0 additions & 14 deletions docs/react/upgrade-tip.en-US.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/react/upgrade-tip.zh-CN.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/react/use-with-create-react-app.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 3
order: 1
title: Use in create-react(-native)-app
---

Expand Down
2 changes: 1 addition & 1 deletion docs/react/use-with-create-react-app.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
order: 3
order: 1
title: 在 create-react(-native)-app 中使用
---

Expand Down
74 changes: 0 additions & 74 deletions scripts/update-tip.js

This file was deleted.

0 comments on commit 611df87

Please sign in to comment.