"use strict";

require("./demo4.css");

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 tabs = [{
  tab: 'Home',
  key: 0,
  content: 'This is home page'
}, {
  tab: 'Document',
  key: 1,
  content: 'This is document page'
}, {
  tab: 'API',
  key: 2,
  content: 'This is api page'
}];

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", null, "use lazyLoad=false to render all tab items"), /*#__PURE__*/_react["default"].createElement(_["default"], {
  lazyLoad: false
}, tabs.map(function (item) {
  return /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    key: item.key,
    title: item.tab
  }, item.content);
})), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("div", null, "Unmount other items while switch tab"), /*#__PURE__*/_react["default"].createElement(_["default"], {
  unmountInactiveTabs: true
}, tabs.map(function (item) {
  return /*#__PURE__*/_react["default"].createElement(_["default"].Item, {
    key: item.key,
    title: item.tab
  }, item.content);
}))), document.getElementById('tab-demo-4'));