diff --git a/.travis.yml b/.travis.yml index 1d853fc2..313a4cbc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ notifications: - hust2012jiangkai@gmail.com node_js: -- 6.9.1 +- 10 before_install: - | diff --git a/examples/ant-design.tsx b/examples/ant-design.tsx index 466a9f39..c74dd3a7 100644 --- a/examples/ant-design.tsx +++ b/examples/ant-design.tsx @@ -31,6 +31,7 @@ class MyControl extends React.Component { state = { visible: false, visible2: false, + visible3: true, width: 600, destroyOnClose: false, center: false, @@ -62,6 +63,10 @@ class MyControl extends React.Component { }); } + onClose3 = (e: React.SyntheticEvent) => { + this.setState({ visible3: false }); + } + onDestroyOnCloseChange = (e: React.ChangeEvent) => { this.setState({ destroyOnClose: e.target.checked, @@ -143,6 +148,13 @@ class MyControl extends React.Component { >

basic modal

+ + + + +
+ + ); + return (