```js

import React, { Component } from 'react';
import { Transfer } from '../../ui';

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

  // mock数据测试
  getMock = () => {
    const targetKeys = [];
    const mockData = [];
    for (let i = 0; i < 20; i++) {
      const data = {
        key: i.toString(),
        title: `content${i + 1}`,
        description: `description of content${i + 1}`,
        chosen: Math.random() * 2 > 1,
      };
      if (data.chosen) {
        targetKeys.push(data.key);
      }
      mockData.push(data);
    }
    this.setState({ mockData, targetKeys });
  }

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

  // 穿梭框内容是table时， render内容
  renderText = obj => ({
    thead: ['table1', 'table2', 'table3'],
    renderTableBody: ['title', 'description', 'chosen'],
  });

  // render一条数据
  renderObj = obj => obj.description;

  render() {
    return (
      <Transfer
        targetKeys={this.state.targetKeys}
        onChange={this.handleChange}
        dataSource={this.state.mockData}
        render={this.renderObj}
        notFoundContent="emmmm"
      />
    );
  }
}

export default Test;
```