Skip to content

Commit

Permalink
chore: update dep
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud committed Sep 21, 2017
1 parent f69dda3 commit 7bb4537
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rmc-trigger",
"version": "1.0.1",
"version": "1.0.2",
"description": "base abstract trigger component for react mobile",
"keywords": [
"react",
Expand Down Expand Up @@ -36,6 +36,7 @@
}
},
"scripts": {
"dist": "rc-tools run dist",
"watch-tsc": "rc-tools run watch-tsc",
"build": "rc-tools run build",
"gh-pages": "rc-tools run gh-pages",
Expand All @@ -55,7 +56,6 @@
"async": "~1.5.0",
"expect.js": "0.3.x",
"jquery": "~1.11.3",
"object-assign": "~4.0.1",
"pre-commit": "1.x",
"rc-test": "6.x",
"rc-tools": "6.x",
Expand All @@ -68,7 +68,7 @@
"typings": "./lib/index.d.ts",
"dependencies": {
"babel-runtime": "6.x",
"rc-align": "2.x",
"rmc-align": "~1.0.0",
"rc-animate": "2.x",
"rc-util": "4.x"
}
Expand Down
9 changes: 7 additions & 2 deletions src/Popup.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Align from 'rc-align';
import Align from 'rmc-align';
import Animate from 'rc-animate';
import PopupInner from './PopupInner';
import LazyRenderBox from './LazyRenderBox';
Expand Down Expand Up @@ -128,6 +128,11 @@ class Popup extends Component<IPopupProps, any> {
</Align>) : null}
</Animate>);
}

const alignOtherProps = {
xVisible: visible,
};

return (<Animate
component=""
exclusive
Expand All @@ -141,7 +146,7 @@ class Popup extends Component<IPopupProps, any> {
key="popup"
ref={this.saveAlignRef}
monitorWindowResize
xVisible={visible}
{...alignOtherProps}
childrenProps={{ visible: 'xVisible' }}
disabled={!visible}
align={align}
Expand Down

0 comments on commit 7bb4537

Please sign in to comment.