diff --git a/docs/asset-manifest.json b/docs/asset-manifest.json index db3117d..85d6c80 100644 --- a/docs/asset-manifest.json +++ b/docs/asset-manifest.json @@ -1,6 +1,6 @@ { - "index.css": "static/css/index.45e9b4e2.chunk.css", - "index.js": "static/js/index.45e9b4e2.chunk.js", + "index.css": "static/css/index.28412c68.chunk.css", + "index.js": "static/js/index.28412c68.chunk.js", "runtime-index.js": "static/js/runtime-index.70097ef2.js", "static/js/2.fa911bdb.chunk.js": "static/js/2.fa911bdb.chunk.js", "index.html": "index.html" diff --git a/docs/index.html b/docs/index.html index 2633dc8..a74e567 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -popup
\ No newline at end of file +popup
\ No newline at end of file diff --git a/docs/static/css/index.45e9b4e2.chunk.css b/docs/static/css/index.28412c68.chunk.css similarity index 100% rename from docs/static/css/index.45e9b4e2.chunk.css rename to docs/static/css/index.28412c68.chunk.css diff --git a/docs/static/js/index.45e9b4e2.chunk.js b/docs/static/js/index.28412c68.chunk.js similarity index 91% rename from docs/static/js/index.45e9b4e2.chunk.js rename to docs/static/js/index.28412c68.chunk.js index d88673e..248a17e 100644 --- a/docs/static/js/index.45e9b4e2.chunk.js +++ b/docs/static/js/index.28412c68.chunk.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{123:function(e,t,n){},124:function(e,t,n){},125:function(e,t,n){},139:function(e,t,n){"use strict";n.r(t);var a=n(0),i=n.n(a),o=n(4),s=n.n(o),r=(n(123),n(124),n(125),n(20),n(127),n(21),n(22),n(23),n(1)),l=n.n(r),c=(n(8),n(3),n(9)),d=n.n(c),p=n(2),u=n.n(p),m=(n(77),n(82),n(84)),f=n.n(m),v=n(28),k=n.n(v),h=n(37),b=n.n(h),E=n(27),y=n(16),g=n(54);var C=function(e){d()(n,e);var t;t=n;function n(){for(var t,n=arguments.length,a=new Array(n),i=0;i { + toggleClick = (e) => { const { visible } = this.state; this.setState({ visible: !visible, @@ -37,15 +37,15 @@ export default class DEMO extends Component { visible={visible} transition={{ timeout: 500, - onEnter: node => { + onEnter: (node) => { $(node).hide(); $(node).stop().fadeIn(500); }, - onExit: node => { + onExit: (node) => { $(node).stop().fadeOut(500); }, }} - getPosition={dom => { + getPosition={(dom) => { console.log(dom); return { left: "50%", diff --git a/package-lock.json b/package-lock.json index bb5cf1a..63e3915 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-widget-popup", - "version": "3.4.6", + "version": "3.4.7", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -19896,8 +19896,7 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "aproba": { "version": "1.2.0", @@ -19940,8 +19939,7 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", @@ -19952,8 +19950,7 @@ "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -20070,8 +20067,7 @@ "inherits": { "version": "2.0.4", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -20083,7 +20079,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -20113,7 +20108,6 @@ "version": "2.9.0", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -20132,7 +20126,6 @@ "version": "0.5.3", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "^1.2.5" } @@ -20236,7 +20229,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -20314,8 +20306,7 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -20351,7 +20342,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -20371,7 +20361,6 @@ "version": "3.0.1", "bundled": true, "dev": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -20415,14 +20404,12 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "yallist": { "version": "3.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true } } }, @@ -20839,8 +20826,7 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "aproba": { "version": "1.2.0", @@ -20883,8 +20869,7 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", @@ -20895,8 +20880,7 @@ "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -21013,8 +20997,7 @@ "inherits": { "version": "2.0.4", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -21026,7 +21009,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -21056,7 +21038,6 @@ "version": "2.9.0", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -21075,7 +21056,6 @@ "version": "0.5.3", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "^1.2.5" } @@ -21179,7 +21159,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -21257,8 +21236,7 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -21294,7 +21272,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -21314,7 +21291,6 @@ "version": "3.0.1", "bundled": true, "dev": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -21358,14 +21334,12 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "yallist": { "version": "3.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true } } }, diff --git a/package.json b/package.json index 1475dce..195e053 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-widget-popup", - "version": "3.4.6", + "version": "3.4.7", "description": "", "main": "cjs/index.js", "module": "esm/index.js", diff --git a/src/index.tsx b/src/index.tsx index cdb7758..43a2dcb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -365,7 +365,7 @@ export class Popup extends React.Component { } = this.props; const RootComponent = rootComponent!; - const Component = rootComponent!; + const Component = component!; delete childProps.mask; delete childProps.maskProps;