"use strict";

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