Skip to content

Commit

Permalink
Merge branch 'master' into antd-3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 22, 2017
2 parents 1c7eb39 + 8b2d7e3 commit c23e24b
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -1372,8 +1372,8 @@ The following change will throw some warnings in the console and it will still w

```diff
{
- "plugins": [["antd", { style: "css" }]]
+ "plugins": [["import", { libraryName: "antd", style: "css" }]]
- "plugins": [["antd", { "style": "css" }]]
+ "plugins": [["import", { "libraryName": "antd", "style": "css" }]]
}
```

Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -1438,8 +1438,8 @@ timeline: true

```diff
{
- "plugins": [["antd", { style: "css" }]]
+ "plugins": [["import", { libraryName: "antd", style: "css" }]]
- "plugins": [["antd", { "style": "css" }]]
+ "plugins": [["import", { "libraryName": "antd", "style": "css" }]]
}
```

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
// .babelrc or babel-loader option
{
"plugins": [
["import", { libraryName: "antd", style: "css" }] // `style: true` for less
["import", { "libraryName": "antd", "style": "css" }] // `style: true` for less
]
}
```
Expand Down
1 change: 1 addition & 0 deletions components/spin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface SpinProps {
prefixCls?: string;
className?: string;
spinning?: boolean;
style?: React.CSSProperties;
size?: 'small' | 'default' | 'large';
tip?: string;
delay?: number;
Expand Down
1 change: 1 addition & 0 deletions components/tooltip/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ The following APIs are shared by Tooltip, Popconfirm, Popover.
| overlayStyle | Style of the tooltip card | object | - |
| placement | The position of the tooltip relative to the target, which can be one of `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | `top` |
| trigger | Tooltip trigger mode | `hover` \| `focus` \| `click` | `hover` |
| defaultVisible | Whether the floating tooltip card is visible by default | boolean | `false` |
| visible | Whether the floating tooltip card is visible or not | boolean | `false` |
| onVisibleChange | Callback executed when visibility of the tooltip card is changed | (visible) => void | - |

Expand Down
3 changes: 2 additions & 1 deletion components/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface AbstractTooltipProps {
overlayStyle?: React.CSSProperties;
placement?: TooltipPlacement;
builtinPlacements?: Object;
defaultVisible?: boolean;
visible?: boolean;
onVisibleChange?: (visible: boolean) => void;
mouseEnterDelay?: number;
Expand Down Expand Up @@ -70,7 +71,7 @@ export default class Tooltip extends React.Component<TooltipProps, any> {
super(props);

this.state = {
visible: !!props.visible,
visible: !!props.visible || !!props.defaultVisible,
};
}

Expand Down
1 change: 1 addition & 0 deletions components/tooltip/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ title: Tooltip
| overlayStyle | 卡片样式 | object ||
| placement | 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom` | string | top |
| trigger | 触发行为,可选 `hover/focus/click` | string | hover |
| defaultVisible | 默认是否显隐 | boolean | false |
| visible | 用于手动控制浮层显隐 | boolean | false |
| onVisibleChange | 显示隐藏的回调 | (visible) => void ||

Expand Down
4 changes: 2 additions & 2 deletions docs/react/introduce.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Following the Ant Design specification, we developed a React UI library `antd` t
## Version

- Stable: [![npm package](https://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd)
- Next: [![](https://cnpmjs.org/badge/v/antd.svg?&tag=next&subject=npm)](https://www.npmjs.org/package/antd)
- Next[![npm (next)](https://img.shields.io/npm/v/antd/next.svg?style=flat-square)](https://www.npmjs.org/package/antd)

You can subscribe to this feed for new version notifications: https://github.com/ant-design/ant-design/releases.atom

Expand Down Expand Up @@ -90,7 +90,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
// .babelrc or babel-loader option
{
"plugins": [
["import", { libraryName: "antd", style: "css" }] // `style: true` for less
["import", { "libraryName": "antd", "style": "css" }] // `style: true` for less
]
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/react/introduce.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ title: Ant Design of React
## 版本

- 稳定版:[![npm package](https://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd)
- 预览版:[![](https://cnpmjs.org/badge/v/antd.svg?&tag=next&subject=npm)](https://www.npmjs.org/package/antd)
- 预览版:[![npm (next)](https://img.shields.io/npm/v/antd/next.svg?style=flat-square)](https://www.npmjs.org/package/antd)

你可以订阅:https://github.com/ant-design/ant-design/releases.atom 来获得稳定版发布的通知。

Expand Down Expand Up @@ -93,7 +93,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
// .babelrc or babel-loader option
{
"plugins": [
["import", { libraryName: "antd", style: "css" }] // `style: true` 会加载 less 文件
["import", { "libraryName": "antd", "style": "css" }] // `style: true` 会加载 less 文件
]
}
```
Expand Down

0 comments on commit c23e24b

Please sign in to comment.