fix eslint error

This commit is contained in:
陈帅 2018-07-04 08:29:42 +08:00
parent 01f2dee77b
commit 9ad0114102
5 changed files with 17 additions and 0 deletions

View File

@ -18,16 +18,19 @@ import { Drawer, Button } from 'antd';
class App extends React.Component {
state = { visible: false };
showDrawer = () => {
this.setState({
visible: true,
});
};
onClose = () => {
this.setState({
visible: false,
});
};
render() {
return (
<div>

View File

@ -18,16 +18,19 @@ import { Drawer, Button } from 'antd';
class App extends React.Component {
state = { visible: false };
showDrawer = () => {
this.setState({
visible: true,
});
};
onClose = () => {
this.setState({
visible: false,
});
};
render() {
return (
<div>

View File

@ -20,11 +20,13 @@ const { Option } = Select;
class DrawerForm extends React.Component {
state = { visible: false };
showDrawer = () => {
this.setState({
visible: true,
});
};
onClose = () => {
this.setState(
{
@ -32,6 +34,7 @@ class DrawerForm extends React.Component {
}
);
};
render() {
const { getFieldDecorator } = this.props.form;
return (

View File

@ -29,26 +29,31 @@ const TagList = ({ value, show }) => {
class DrawerForm extends React.Component {
state = { visible: false, childrenDrawer: false };
showDrawer = () => {
this.setState({
visible: true,
});
};
onClose = () => {
this.setState({
visible: false,
});
};
showChildrenDrawer = () => {
this.setState({
childrenDrawer: true,
});
};
onChildrenDrawerClose = () => {
this.setState({
childrenDrawer: false,
});
};
render() {
const { getFieldDecorator } = this.props.form;
return (

View File

@ -50,16 +50,19 @@ const DescriptionItem = ({ title, content }) => {
class App extends React.Component {
state = { visible: false };
showDrawer = () => {
this.setState({
visible: true,
});
};
onClose = () => {
this.setState({
visible: false,
});
};
render() {
return (
<div>