"use strict";

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