"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _modal = _interopRequireDefault(require("antd/lib/modal"));
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var Modal = function Modal(props) {
  var innerProps = {};
  if (props.__designMode === 'design') {
    // 低代码编辑态中强制显示，将控制权交给引擎侧
    innerProps.visible = true;
  }
  return /*#__PURE__*/_react["default"].createElement(_modal["default"], (0, _extends2["default"])({}, props, innerProps));
};
Modal.info = _modal["default"].info;
Modal.success = _modal["default"].success;
Modal.error = _modal["default"].error;
Modal.warning = _modal["default"].warning;
Modal.warn = _modal["default"].warn;
Modal.confirm = _modal["default"].confirm;
var _default = Modal;
exports["default"] = _default;