react-admin-kit
Version:
A react based UI components for admin system
57 lines (53 loc) • 2.25 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.SchemaFormSettingPropsType = exports.ProTableSettingPropsType = exports.ModalFormSettingPropsType = exports.FormUploadSettingPropsType = void 0;
var _context = require("./context");
var _zh_CN = _interopRequireDefault(require("../locale/zh_CN"));
var _jsxRuntime = require("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__*/(0, _jsxRuntime.jsx)(_context.LocaleContext.Provider, {
value: locale || _zh_CN.default,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.ProTableContext.Provider, {
value: proTableSetting,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.ModalFormContext.Provider, {
value: modalFormSetting,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.SchemaFormContext.Provider, {
value: schemaFormSetting,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.FormUploadContext.Provider, {
value: formUploadSetting,
children: children
})
})
})
})
});
};
var _default = exports.default = SettingProvider; // 用于生成api文档
/* istanbul ignore next */
var SchemaFormSettingPropsType = exports.SchemaFormSettingPropsType = function SchemaFormSettingPropsType() {
return null;
};
// 用于生成api文档
/* istanbul ignore next */
var ModalFormSettingPropsType = exports.ModalFormSettingPropsType = function ModalFormSettingPropsType() {
return null;
};
// 用于生成api文档
/* istanbul ignore next */
var ProTableSettingPropsType = exports.ProTableSettingPropsType = function ProTableSettingPropsType() {
return null;
};
// 用于生成api文档
/* istanbul ignore next */
var FormUploadSettingPropsType = exports.FormUploadSettingPropsType = function FormUploadSettingPropsType() {
return null;
};