const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_index = require("../../form/index.js");
const require_DataSourceProvider = require("../provider/dataSource/DataSourceProvider.js");
const require_BaseForm = require("./BaseForm.js");
let react = require("react");
react = require_runtime.__toESM(react);
require("./index.less");
//#region src/components/dataSourceComponents/dataSourceForm/index.tsx
/**
* @title: 数据源表单组件
* @description: 基于数据源动态生成表单，支持编辑、查看、禁用三种模式
*/
const DataSourceForm = (0, react.forwardRef)((props, ref) => {
	const { dataSource, currentValue, __designMode, extraParams } = props;
	return /* @__PURE__ */ react.default.createElement(require_DataSourceProvider.default, {
		dataSource,
		currentValue,
		__designMode,
		extraParams
	}, /* @__PURE__ */ react.default.createElement(require_BaseForm.default, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, { ref })));
});
DataSourceForm.List = require_index.default.List;
//#endregion
exports.default = DataSourceForm;
