"use strict";

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

var _ = _interopRequireDefault(require(".."));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var onChange = function onChange() {
  var _console;

  (_console = console).log.apply(_console, arguments);
},
    dataSource = function dataSource() {
  var result = [];

  for (var i = 0; i < 5; i++) {
    result.push({
      title: {
        name: "Quotation for 1PCS Nano ".concat(3 + i, ".0 controller compatible")
      },
      id: 100306660940 + i,
      time: 2000 + i
    });
  }

  return result;
},
    render = function render(value, index, record) {
  return /*#__PURE__*/_react["default"].createElement("a", null, "Remove(", record.id, ")");
},
    rowSelection = {
  onChange: onChange,
  getProps: function getProps(record) {
    return {
      disabled: record.id === 100306660942
    };
  }
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_["default"], {
  dataSource: dataSource(),
  rowSelection: rowSelection
}, /*#__PURE__*/_react["default"].createElement(_["default"].Column, {
  title: "Id",
  dataIndex: "id"
}), /*#__PURE__*/_react["default"].createElement(_["default"].Column, {
  title: "Title",
  dataIndex: "title.name"
}), /*#__PURE__*/_react["default"].createElement(_["default"].Column, {
  title: "Time",
  dataIndex: "time"
}), /*#__PURE__*/_react["default"].createElement(_["default"].Column, {
  cell: render,
  width: 200
})), document.getElementById('table-demo-6'));