import { withFormItem, withDataSource, withOptions } from "../../dataSourceForm/utils";
import SelectWithMode from "./WithMode";

// 包装formItem层
var SelectWithFormItem = withFormItem(SelectWithMode, {
  innerProps: {
    getPopupContainer: function getPopupContainer(triggerNode) {
      return triggerNode.parentElement;
    },
    virtual: false
  }
});

// 包装Options层
var SelectWithOptions = withOptions(SelectWithFormItem);

// 包装dataSource层
var SelectWithDataSource = withDataSource(SelectWithOptions);
export default SelectWithDataSource;