Skip to content

Commit 1b5f7a6

Browse files
committed
publish 2.x
1 parent 7339943 commit 1b5f7a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+2102
-1713
lines changed

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
const base = require('@umijs/fabric/dist/eslint');
2+
3+
module.exports = {
4+
...base,
5+
rules: {
6+
...base.rules,
7+
'import/no-extraneous-dependencies': 0,
8+
'import/no-named-as-default': 0,
9+
'no-template-curly-in-string': 0,
10+
'prefer-promise-reject-errors': 0,
11+
'react/no-array-index-key': 0,
12+
'react/require-default-props': 0,
13+
'react/sort-comp': 0,
14+
'react/no-find-dom-node': 1,
15+
'@typescript-eslint/no-explicit-any': 0,
16+
'jsx-a11y/label-has-associated-control': 0,
17+
'jsx-a11y/label-has-for': 0,
18+
'no-param-reassign': 0
19+
},
20+
};

.fatherrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
export default {
3+
cjs: 'babel',
4+
esm: { type: 'babel', importLibToEs: true },
5+
runtimeHelpers: true,
6+
preCommit: {
7+
eslint: true,
8+
prettier: true,
9+
},
10+
};

.gitignore

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
.storybook
12
*.iml
23
*.log
3-
.idea
4+
.idea/
45
.ipr
56
.iws
67
*~
@@ -12,17 +13,34 @@
1213
Thumbs.db
1314
.project
1415
.*proj
15-
.svn
16+
.svn/
1617
*.swp
1718
*.swo
1819
*.pyc
1920
*.pyo
21+
.build
2022
node_modules
2123
.cache
22-
*.css
24+
dist
25+
assets/**/*.css
2326
build
2427
lib
25-
coverage
26-
dist
2728
es
28-
*.lock
29+
coverage
30+
yarn.lock
31+
package-lock.json
32+
.vscode
33+
.doc
34+
# production
35+
/dist
36+
/docs-dist
37+
38+
# misc
39+
.DS_Store
40+
# umi
41+
.umi
42+
.umi-production
43+
.umi-test
44+
.env.local
45+
src/.umi
46+
QueueAnim_1.jsx

.jshintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.jshintrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.npmignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
build/
2+
*.cfg
3+
nohup.out
4+
*.iml
5+
.idea/
6+
.ipr
7+
.iws
8+
*~
9+
~*
10+
*.diff
11+
*.log
12+
*.patch
13+
*.bak
14+
.DS_Store
15+
Thumbs.db
16+
.project
17+
.*proj
18+
.svn/
19+
*.swp
20+
out/
21+
.build
22+
node_modules
23+
.cache
24+
examples
25+
tests
26+
src
27+
/index.js
28+
.*
29+
assets/**/*.less

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/*.svg
2+
**/*.ejs
3+
**/*.html
4+
package.json
5+
.umi
6+
.umi-production
7+
.umi-test

.travis.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.umirc.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// more config: https://d.umijs.org/config
2+
import { defineConfig } from 'dumi';
3+
const path = require('path');
4+
5+
export default defineConfig({
6+
title: 'rc-queue-anim',
7+
favicon:
8+
'https://zos.alipayobjects.com/rmsportal/HzvPfCGNCtvGrdk.png',
9+
logo:
10+
'https://zos.alipayobjects.com/rmsportal/TOXWfHIUGHvZIyb.svg',
11+
outputPath: '.doc',
12+
alias: {
13+
'rc-queue-anim/es': path.join(__dirname, 'src'),
14+
'rc-queue-anim/lib': path.join(__dirname, 'src'),
15+
},
16+
});

README.md

Lines changed: 1 addition & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1 @@
1-
# rc-queue-anim
2-
---
3-
4-
Animate React Component in queue, thanks to [rc-animate](https://github.com/react-component/animate) and [enter-animation](https://github.com/jljsj33/enter-animation).
5-
6-
[![NPM version][npm-image]][npm-url]
7-
[![build status][travis-image]][travis-url]
8-
[![Test coverage][coveralls-image]][coveralls-url]
9-
[![Total alerts][lgtm-alerts-image]][lgtm-alerts-url]
10-
[![Language grade: JavaScript][lgtm-grade-image]][lgtm-grade-url]
11-
[![node version][node-image]][node-url]
12-
[![npm download][download-image]][download-url]
13-
14-
[npm-image]: http://img.shields.io/npm/v/rc-queue-anim.svg?style=flat-square
15-
[npm-url]: http://npmjs.org/package/rc-queue-anim
16-
[travis-image]: https://img.shields.io/travis/react-component/queue-anim.svg?style=flat-square
17-
[travis-url]: https://travis-ci.org/react-component/queue-anim
18-
[coveralls-image]: https://img.shields.io/coveralls/react-component/queue-anim.svg?style=flat-square
19-
[coveralls-url]: https://coveralls.io/r/react-component/queue-anim?branch=master
20-
[lgtm-alerts-image]: https://img.shields.io/lgtm/alerts/g/react-component/queue-anim.svg?logo=lgtm&logoWidth=18&style=flat-square
21-
[lgtm-alerts-url]: https://lgtm.com/projects/g/react-component/queue-anim/alerts/
22-
[lgtm-grade-image]: https://img.shields.io/lgtm/grade/javascript/g/react-component/queue-anim.svg?logo=lgtm&logoWidth=18&style=flat-square
23-
[lgtm-grade-url]: https://lgtm.com/projects/g/react-component/queue-anim/context:javascript
24-
[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square
25-
[node-url]: http://nodejs.org/download/
26-
[download-image]: https://img.shields.io/npm/dm/rc-queue-anim.svg?style=flat-square
27-
[download-url]: https://npmjs.org/package/rc-queue-anim
28-
29-
## Example
30-
31-
http://react-component.github.io/queue-anim/examples/
32-
33-
![](https://t.alipayobjects.com/images/rmsweb/T12PliXjXgXXXXXXXX.gif)
34-
35-
## Usage
36-
37-
```js
38-
import QueueAnim from 'rc-queue-anim';
39-
import React from 'react';
40-
import ReactDom from 'react-dom';
41-
42-
ReactDom.render(
43-
<QueueAnim>
44-
<div key="1">enter in queue</div>
45-
<div key="2">enter in queue</div>
46-
<div key="3">enter in queue</div>
47-
</QueueAnim>
48-
, mountNode);
49-
```
50-
51-
## Install
52-
53-
[![rc-queue-anim](https://nodei.co/npm/rc-queue-anim.png)](https://npmjs.org/package/rc-queue-anim)
54-
55-
## Browser Support
56-
57-
|![IE](https://github.com/alrra/browser-logos/blob/master/src/edge/edge_48x48.png?raw=true) | ![Chrome](https://github.com/alrra/browser-logos/blob/master/src/chrome/chrome_48x48.png?raw=true) | ![Firefox](https://github.com/alrra/browser-logos/blob/master/src/firefox/firefox_48x48.png?raw=true) | ![Opera](https://github.com/alrra/browser-logos/blob/master/src/opera/opera_48x48.png?raw=true) | ![Safari](https://github.com/alrra/browser-logos/blob/master/src/safari/safari_48x48.png?raw=true)|
58-
| --- | --- | --- | --- | --- |
59-
| IE 10+ ✔ | Chrome 31.0+ ✔ | Firefox 31.0+ ✔ | Opera 30.0+ ✔ | Safari 7.0+ ✔ |
60-
61-
### 1.7.x add childRefs and currentRef;
62-
63-
```jsx
64-
<QueueAnim
65-
component={Row}
66-
ref={(c) => {
67-
this.ref = c;
68-
}}
69-
onEnd={() => {
70-
// this..currentRef = <Row />
71-
// this..childRefs.a = <Col key="a">1212</Col>
72-
}}
73-
>
74-
<Col key="a">1212</Col>
75-
</QueueAnim>
76-
```
77-
78-
## API
79-
80-
> You must provide the key attribute for all children of QueueAnim, children would not peform any animation without key.
81-
82-
| props | type | default | description |
83-
|------------|----------------|---------|----------------|
84-
| type | string / array | `right` | Animation Styles <br/>`alpha` `left` `right` `top` `bottom` `scale` `scaleBig` `scaleX` `scaleY`|
85-
| animConfig | object / array | null | Custom config, See below for more details [animConfig](#animConfig) |
86-
| delay | number / array | 0 | delay of animation |
87-
| duration | number / array | 450 | duration of animation |
88-
| interval | number / array | 100 | interval of duration |
89-
| leaveReverse | boolean | false | reverse animation order at leave |
90-
| ease | string / array | `easeOutQuart` | animation easing config like `'ease'`, `['easeIn', 'easeOut']`, `[[.42,0,.58,1]`, [.42,0,.58,1]]: [more](http://easings.net/en) |
91-
| appear | boolean | true | whether support appear anim |
92-
| component | string / React.Element | `div` | component tag |
93-
| componentProps | Object | null | component is React.Element, component tag props |
94-
| animatingClassName | array | `['queue-anim-entering', 'queue-anim-leaving']` | className to every element of animating |
95-
| forcedReplay | boolean | false | `leave` animation moment trigger `enter`, forced replay. |
96-
| onEnd | function | null | animation end callback({ key, type }), type: `enter` or `leave` |
97-
98-
> Above props support array format, like `['left', 'top']`, the secord item is leave config. [Demo](http://react-component.github.io/queue-anim/examples/enter-leave.html)
99-
100-
### animConfig
101-
102-
**Data fall into three categories:**
103-
104-
- Custom set start: `{ opacity:[1, 0] }`
105-
<br/> default;
106-
<br/>type: `{ opacity: Array<end, start> }`
107-
<br/>leave automatic reverse: `{ opacity: Array<start, end> }`
108-
109-
- Custom: `{ opacity: 0 }`
110-
<br/> Start position is not set。
111-
112-
- Array: `[{ opacity:[1, 0] }, { opacity:[1, 0] }]`
113-
<br/> type: `[{ opacity: Array<end, start> }, { opacity: Array<start, end>}]`
114-
115-
## Development
116-
117-
```
118-
npm install
119-
npm start
120-
```
1+
docs/index.md

0 commit comments

Comments
 (0)