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

/**
 * @title: RecordListWrapper 字段封装
 * @description: 复用 DataSourceForm 的 FormItem/DataSource/Options 三层能力，保持与 Select 一致的数据源接入方式。
 */
var RecordListWrapperWithFormItem = withFormItem(RecordListWrapperWithMode);
var RecordListWrapperWithOptions = withOptions(RecordListWrapperWithFormItem);
var RecordListWrapperWithDataSource = withDataSource(RecordListWrapperWithOptions);
export default RecordListWrapperWithDataSource;