Skip to content

Commit

Permalink
Merge pull request #205 from ant-design/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
jljsj33 authored Feb 21, 2019
2 parents e6ddf9f + f1bae74 commit a416aed
Show file tree
Hide file tree
Showing 207 changed files with 3,261 additions and 13,090 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
_site
34 changes: 0 additions & 34 deletions .eslintrc

This file was deleted.

83 changes: 83 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
const eslintrc = {
extends: ['eslint-config-airbnb'],
env: {
browser: true,
node: true,
jasmine: true,
jest: true,
es6: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
},
},
plugins: [
'markdown',
'react',
'babel',
],
rules: {
'func-names': 0,
'arrow-body-style': 0,
'react/sort-comp': 0,
'react/prop-types': 0,
'react/jsx-first-prop-new-line': 0,
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx', '.md'] }],
'import/extensions': 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'prefer-destructuring': 0,
'no-param-reassign': 0,
'no-return-assign': 0,
'max-len': 0,
'consistent-return': 0,
'no-redeclare': 0,
'react/require-extension': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/anchor-has-content': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/anchor-is-valid': 0,
'react/no-danger': 0,
'comma-dangle': ['error', 'always-multiline'],
'function-paren-newline': 0,
'object-curly-newline': 0,
'no-restricted-globals': 0,
'jsx-a11y/mouse-events-have-key-events': 0,
'react/jsx-no-target-blank': 0,
'react/no-find-dom-node': 0,
'react/no-unescaped-entities': 0,
'react/prefer-stateless-function': 0,
'import/no-webpack-loader-syntax': 0,
'react/forbid-prop-types': 0,
'react/destructuring-assignment': 0,
'react/no-access-state-in-setstate': 0,
'react/require-default-props': 0,
'jsx-a11y/accessible-emoji': 0
},
};

if (process.env.RUN_ENV === 'DEMO') {
eslintrc.globals = {
React: true,
ReactDOM: true,
mountNode: true,
};

Object.assign(eslintrc.rules, {
indent: 0,
'no-console': 0,
'no-plusplus': 0,
'eol-last': 0,
'prefer-rest-params': 0,
'react/no-multi-comp': 0,
'jsx-a11y/href-no-hash': 0,
'import/newline-after-import': 0,
});
}

module.exports = eslintrc;
22 changes: 22 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": "stylelint-config-standard",
"rules": {
"comment-empty-line-before": null,
"declaration-empty-line-before": null,
"function-comma-newline-after": null,
"function-name-case": null,
"function-parentheses-newline-inside": null,
"function-max-empty-lines": null,
"function-whitespace-after": null,
"indentation": null,
"number-leading-zero": null,
"number-no-trailing-zeros": null,
"rule-empty-line-before": null,
"selector-combinator-space-after": null,
"selector-list-comma-newline-after": null,
"selector-pseudo-element-colon-notation": null,
"unit-no-unknown": null,
"value-list-max-empty-lines": null,
"no-descending-specificity": null
}
}
10 changes: 8 additions & 2 deletions components/animate/demo/appear.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
---
order: 2
title: 开始的进场
title:
zh-CN: 开始的进场
en-US: Appear
---

开始的进场动画, css样式查看第一个demo。
## zh-CN
开始的进场动画, css 样式查看第一个 demo。

## en-US
Appear the opening animation, css style to view the first demo.

```jsx
import Animate from 'rc-animate';
Expand Down
10 changes: 9 additions & 1 deletion components/animate/demo/remove.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
---
order: 1
title: 删除子级
title:
zh-CN: 删除子级
en-US: Remove Child
---

## zh-CN

动画出场后将子级删除掉。

## en-US
The child is deleted after the animation leave.


```jsx
import Animate from 'rc-animate';
import Button from 'antd/lib/button';
Expand Down
9 changes: 7 additions & 2 deletions components/animate/demo/simple.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
order: 0
title: 简单的例子
title:
zh-CN: 简单的例子
en-US: Simple
---

## zh-CN
同时支持进场和离场动画。

## en-US
Both enter and leave animations are supported.

```jsx
import Animate from 'rc-animate';
import Button from 'antd/lib/button';
Expand Down
52 changes: 52 additions & 0 deletions components/animate/index.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
order: 1
title: Animate
---

Animate the individual elements according to the state, and use them together with css or other third-party animation classes; specific ref [API](/api/animate)

## When To Use

- When the element state is switched;

---

## How To Use

### Install

```bash
$ npm install rc-animate --save
```

### Usage

```jsx
var Animate = require('rc-animate');
var ReactDOM = require('react-dom');
ReactDOM.render((
<Animate showProp="visible" transitionName="fade">
{show ? <div visible key="1">demo</div> : null}
</Animate>
), container);
```
> [Detailed use](https://github.com/react-component/animate/blob/master/docs/zh-cn/intro.md)
## API

### props

| name | type | default | description |
|-----------|----------|------------|-------------------|
| showProp | String | null | using prop for show and hide. [demo](http://react-component.github.io/animate/examples/hide-todo.html) |
| exclusive | Boolean | false | whether allow only one set of animations(enter and leave) at the same time. |
| transitionName | String | null | specify corresponding css, see ReactCSSTransitionGroup |
| transitionAppear | Boolean | false | whether support transition appear animate |
| transitionEnter | Boolean | true | whether support transition enter animate |
| transitionLeave | Boolean | true | whether support transition leave animate |
| onEnd | Func | true | animation end callback, callBack(key: String, exists: Boolean); |
| animation | Object | {} | to animate with js. see animation format below. |
| component | React.Element/String | `span` | wrap dom node or component for children. set to '' if you do not wrap for only one child |
| componentProps | Object | {} | extra props that will be passed to component |

> `animation` case to see [demo](http://react-component.github.io/animate/)
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
order: 1
chinese: Css样式动画
english: Animate
title:
zh-CN: Css样式动画
en-US: Animate
---

对单个元素根据状态进行动画显示隐藏,需结合 css 或其它第三方动画类一起使用;具体参数请参见 [API](/api/animate)
Expand Down
5 changes: 3 additions & 2 deletions components/banner-anim/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
order: 5
chinese: Banner动画
english: BannerAnim
vertical: true
title:
zh-CN: Banner动画
en-US: BannerAnim
---

通过简单的配置, 就能让你的 banner 动起来。 具体参数请参见 [API](/api/banner-anim)
Expand Down
8 changes: 7 additions & 1 deletion components/queue-anim/demo/simple.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
order: 0
title: 简单的例子
title:
zh-CN: 简单的例子
en-US: Simple example
---

## zh-CN
最简单的进场例子。

## en-US
The simplest example of entry.

````jsx
import QueueAnim from 'rc-queue-anim';

Expand Down
5 changes: 3 additions & 2 deletions components/queue-anim/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
chinese: 进出场动画
cols: 2
order: 2
english: QueueAnim
vertical: true
title:
zh-CN: 进出场动画
en-US: QueueAnim
---

通过简单的配置对一组元素添加串行的进场动画效果。具体参数请参见 [API](/api/queue-anim)
Expand Down
5 changes: 3 additions & 2 deletions components/scroll-anim/index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
chinese: 页面滚动动画
order: 4
english: ScrollAnim
vertical: true
title:
zh-CN: 页面滚动动画
en-US: ScrollAnim
---

通过简单的配置,对页面里的元素添加随滚动条滚动的动画。具体参数请参见 [API](/api/scroll-anim)
Expand Down
5 changes: 3 additions & 2 deletions components/texty/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
order: 3
chinese: 文字动画
english: TextyAnim
title:
zh-CN: 文字动画
en-US: TextyAnim
---

一个针对文字标题的进行进出场动画的组件,提供非富的动画效果,也可以随自已的需求来配置完成不同的效果,具体参数请参见 [API](/api/texty);
Expand Down
7 changes: 6 additions & 1 deletion components/tween-one/demo/bezier.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
---
order: 8
title: 曲线动画
title:
zh-CN: 曲线动画
en-US: Curve Animate
mouseEnter: true
vertical: true
---

## zh-CN
贝赛尔曲线动画。 gsap 的 BezierPlugin 曲线动画;

## en-US
Bezier curve animation. ref Gzap BezierPlugin curve animation;

```jsx
import PropTypes from 'prop-types';
Expand Down
10 changes: 8 additions & 2 deletions components/tween-one/demo/children.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
---
order: 4
title: 数值变化
title:
zh-CN: 数值变化
en-US: Number Change
---

## zh-CN
输入与当前不同的数值,再点开始,不输入将过渡到 10000。

## en-US
Enter a different value from the current one, then click Start. No input will transition to 10000.

```jsx
import PropTypes from 'prop-types';
import { InputNumber, Button, Checkbox } from 'antd';
Expand Down Expand Up @@ -78,7 +84,7 @@ class Demo extends React.Component {
style={{ marginBottom: 32 }}
onClick={this.onClick}
>
开始
Start
</Button>
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion components/tween-one/demo/control.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
---
order: 2
title: 变更动画参数
title:
zh-CN: 变更动画参数
en-US: Change Param
mouseEnter: true
---

## zh-CN
可操作型变更动画。

## en-US
Operational change animation.

```jsx
import PropTypes from 'prop-types';
import TweenOne from 'rc-tween-one';
Expand Down
Loading

0 comments on commit a416aed

Please sign in to comment.