Skip to content

Commit

Permalink
refactor: Use step status (#197)
Browse files Browse the repository at this point in the history
* chore: bump rc-motion version

* Add PopupInner with motion check & fix index ref

* align to trigger next action

* support stretch

* support mask motion

* add polyfill

* fix test case

* test case

* fix test case

* fix test

* rm uesless test case

* coverage

* coverage
  • Loading branch information
zombieJ committed Sep 7, 2020
1 parent 5ac301f commit d50b065
Show file tree
Hide file tree
Showing 15 changed files with 608 additions and 651 deletions.
8 changes: 4 additions & 4 deletions examples/simple.js
Expand Up @@ -60,11 +60,11 @@ const RefTarget = React.forwardRef((props, ref) => {

class Test extends React.Component {
state = {
mask: false,
maskClosable: false,
mask: true,
maskClosable: true,
placement: 'right',
trigger: {
hover: 1,
click: 1,
},
offsetX: undefined,
offsetY: undefined,
Expand Down Expand Up @@ -315,7 +315,7 @@ class Test extends React.Component {
mask={this.state.mask}
maskClosable={this.state.maskClosable}
stretch={this.state.stretch}
// maskAnimation="fade"
maskAnimation="fade"
// mouseEnterDelay={0.1}
// mouseLeaveDelay={0.1}
action={Object.keys(state.trigger)}
Expand Down
9 changes: 5 additions & 4 deletions package.json
Expand Up @@ -40,7 +40,8 @@
"now-build": "npm run build"
},
"devDependencies": {
"@types/jest": "^26.0.7",
"@types/classnames": "^2.2.10",
"@types/jest": "^26.0.13",
"@types/react": "^16.8.19",
"@types/react-dom": "^16.8.4",
"cross-env": "^7.0.1",
Expand All @@ -52,14 +53,14 @@
"np": "^6.2.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"regenerator-runtime": "^0.13.7",
"typescript": "^3.5.2"
},
"dependencies": {
"@babel/runtime": "^7.10.1",
"classnames": "^2.2.6",
"raf": "^3.4.1",
"rc-align": "^4.0.0",
"rc-motion": "^1.0.0",
"rc-util": "^5.0.1"
"rc-motion": "^2.0.0",
"rc-util": "^5.2.1"
}
}

0 comments on commit d50b065

Please sign in to comment.