Browse Source

Remoove arguments, fix lint

2.x-stable
Wei Zhu 7 years ago
parent
commit
125085398c
  1. 1
      components/tree-select/demo/basic.md
  2. 1
      components/tree-select/demo/checkable.md
  3. 1
      components/tree-select/demo/multiple.md
  4. 1
      components/tree-select/demo/treeData.md
  5. 1
      components/tree/demo/basic-controlled.md

1
components/tree-select/demo/basic.md

@ -22,7 +22,6 @@ class Demo extends React.Component {
value: undefined, value: undefined,
} }
onChange = (value) => { onChange = (value) => {
console.log(arguments);
this.setState({ value }); this.setState({ value });
} }
render() { render() {

1
components/tree-select/demo/checkable.md

@ -50,7 +50,6 @@ class Demo extends React.Component {
value: ['0-0-0'], value: ['0-0-0'],
} }
onChange = (value) => { onChange = (value) => {
console.log('onChange ', value, arguments);
this.setState({ value }); this.setState({ value });
} }
render() { render() {

1
components/tree-select/demo/multiple.md

@ -22,7 +22,6 @@ class Demo extends React.Component {
value: undefined, value: undefined,
} }
onChange = (value) => { onChange = (value) => {
console.log(arguments);
this.setState({ value }); this.setState({ value });
} }
render() { render() {

1
components/tree-select/demo/treeData.md

@ -41,7 +41,6 @@ class Demo extends React.Component {
value: undefined, value: undefined,
} }
onChange = (value) => { onChange = (value) => {
console.log(arguments);
this.setState({ value }); this.setState({ value });
} }
render() { render() {

1
components/tree/demo/basic-controlled.md

@ -61,7 +61,6 @@ class Demo extends React.Component {
selectedKeys: [], selectedKeys: [],
} }
onExpand = (expandedKeys) => { onExpand = (expandedKeys) => {
console.log('onExpand', arguments);
// if not set autoExpandParent to false, if children expanded, parent can not collapse. // if not set autoExpandParent to false, if children expanded, parent can not collapse.
// or, you can remove all expanded children keys. // or, you can remove all expanded children keys.
this.setState({ this.setState({

Loading…
Cancel
Save