UNPKG

react-admin-kit

Version:

A react based UI components for admin system

52 lines (48 loc) 1.69 kB
import { FormUploadContext, LocaleContext, ModalFormContext, ProTableContext, SchemaFormContext } from "./context"; import zhCN from "../locale/zh_CN"; import { jsx as _jsx } from "react/jsx-runtime"; var SettingProvider = function SettingProvider(props) { var locale = props.locale, proTableSetting = props.proTableSetting, modalFormSetting = props.modalFormSetting, schemaFormSetting = props.schemaFormSetting, formUploadSetting = props.formUploadSetting, children = props.children; return /*#__PURE__*/_jsx(LocaleContext.Provider, { value: locale || zhCN, children: /*#__PURE__*/_jsx(ProTableContext.Provider, { value: proTableSetting, children: /*#__PURE__*/_jsx(ModalFormContext.Provider, { value: modalFormSetting, children: /*#__PURE__*/_jsx(SchemaFormContext.Provider, { value: schemaFormSetting, children: /*#__PURE__*/_jsx(FormUploadContext.Provider, { value: formUploadSetting, children: children }) }) }) }) }); }; export default SettingProvider; // 用于生成api文档 /* istanbul ignore next */ export var SchemaFormSettingPropsType = function SchemaFormSettingPropsType() { return null; }; // 用于生成api文档 /* istanbul ignore next */ export var ModalFormSettingPropsType = function ModalFormSettingPropsType() { return null; }; // 用于生成api文档 /* istanbul ignore next */ export var ProTableSettingPropsType = function ProTableSettingPropsType() { return null; }; // 用于生成api文档 /* istanbul ignore next */ export var FormUploadSettingPropsType = function FormUploadSettingPropsType() { return null; };