>**二级选择穿梭框**

## dataSource数据结构
```
[{
	"key": "0",
	"title": "content0",
	"children": [{
		"id": "2301",
		"description": "title0+0"
	}, {
		"id": "4461",
		"description": "title0+1"
	}]
}, {
	"key": "1",
	"title": "content1",
	"children": [{
		"id": "1576",
		"description": "title1+0"
	}, {
		"id": "7784",
		"description": "title1+1"
	}]
}]
```

## targetKey数据结构
```
[{
	"pid": "0",
	"children": [11,22]
}, {
	"pid": "1",
	"children": [123, 456]
}]
```


## 示例
```js
import React, { Component } from 'react';
import { TransferScope } from '../../ui';

class Test extends Component {
  state= {
    targetKeys: [],
    mockData: [],
  }
  componentDidMount() {
    this.getMock();
  }

  // mock数据测试
  getMock = () => {
    const targetKeys = [];
    const mockData = [];
    for (let i = 0; i < 4; i++) {
      const data = {
        key: i.toString(),
        title: `content${i}`,
      };
      const childWrap = [];
      for (let k = 0; k < 4; k++) {
        const children = {
          id: Math.random().toString().slice(5, 9),
          description: `title${i}+${k}`,
        };
        childWrap.push(children);
      }
      data.children = childWrap;
      mockData.push(data);
    }
    this.setState({ mockData, targetKeys });
  }

  // 这个必须写
  handleChange = (targetKeys) => {
    this.setState({ targetKeys });
  }

  render() {
    return (
      <TransferScope
        targetKeys={this.state.targetKeys}
        onChange={this.handleChange}
        dataSource={this.state.mockData}
        render={this.renderText}
        notFoundContent="emmmm"
        renderHeader={data => data.title}
        renderContent={data => data.description}
        rowKey={data => data.key}
      />
    );
  }
}

export default Test;
```
