mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
update demos
This commit is contained in:
parent
66b7ee81ad
commit
96d99e6c0a
@ -17,7 +17,7 @@ const Demo = React.createClass({
|
||||
};
|
||||
},
|
||||
onChange(value) {
|
||||
this.setState({value});
|
||||
this.setState({ value });
|
||||
},
|
||||
render() {
|
||||
return (
|
||||
@ -32,7 +32,7 @@ const Demo = React.createClass({
|
||||
<TreeNode value="leaf2" title="your leaf" key="random1" />
|
||||
</TreeNode>
|
||||
<TreeNode value="parent 1-1" title="parent 1-1" key="random2">
|
||||
<TreeNode value="sss" title={<span style={{color: 'red'}}>sss</span>} key="random3" />
|
||||
<TreeNode value="sss" title="sss" key="random3" />
|
||||
</TreeNode>
|
||||
</TreeNode>
|
||||
</TreeSelect>
|
||||
|
@ -45,9 +45,7 @@ const Demo = React.createClass({
|
||||
},
|
||||
onChange(value) {
|
||||
console.log('onChange ' + value);
|
||||
this.setState({
|
||||
value: value,
|
||||
});
|
||||
this.setState({ value });
|
||||
},
|
||||
render() {
|
||||
const loop = data => {
|
||||
|
Loading…
Reference in New Issue
Block a user