"use strict";

require("./demo2.css");

var _button = _interopRequireDefault(require("../../button"));

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

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

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

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

var notice = function notice() {
  _["default"].show({
    type: 'warning',
    title: '提示信息',
    content: '请联系相关人员反馈！',
    closeable: true,
    duration: 0,
    afterClose: function afterClose() {
      console.log('123');
    }
  });
};

var hide = function hide() {
  _["default"].hide();
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: notice
}, "\u663E\u793Amessage\u5168\u5C40\u63D0\u793A"), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: hide
}, "\u9690\u85CFmessage\u5168\u5C40\u63D0\u793A")), document.getElementById('message-demo-2'));