yootd 0.0.86 → 0.0.87-test

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,9 @@
1
1
  var _excluded = ["request", "baseURL", "assetsURL", "ossURL"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
4
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
4
5
  import { ConfigProvider as AntConfigProvider } from 'antd';
6
+ import zhCN from 'antd/locale/zh_CN';
5
7
  import React, { useEffect } from 'react';
6
8
  import { ConfigContext } from "./context";
7
9
  import 'dayjs/locale/zh-cn';
@@ -37,7 +39,9 @@ export var ConfigProvider = function ConfigProvider(_ref) {
37
39
  ossURL: ossURL,
38
40
  assetsURL: assetsURL
39
41
  }
40
- }, props.children);
42
+ }, /*#__PURE__*/React.createElement(AntConfigProvider, _extends({}, props, {
43
+ locale: zhCN
44
+ })));
41
45
  };
42
46
  ConfigProvider.ConfigContext = AntConfigProvider.ConfigContext;
43
47
  ConfigProvider.SizeContext = AntConfigProvider.SizeContext;