@deepinnet-components/pc 0.0.10 → 0.0.11

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.
@@ -12,6 +12,8 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import React, { useEffect, useState } from 'react';
14
14
  import ValueContext from "../context";
15
+ import locale from 'antd/locale/zh_CN';
16
+ import { ConfigProvider } from 'antd';
15
17
  var Index = function Index(props) {
16
18
  var request = props.request,
17
19
  _props$api = props.api,
@@ -169,9 +171,11 @@ var Index = function Index(props) {
169
171
  });
170
172
  }, []);
171
173
  if (!value) return null;
172
- return /*#__PURE__*/React.createElement(ValueContext.Provider, {
174
+ return /*#__PURE__*/React.createElement(ConfigProvider, {
175
+ locale: locale
176
+ }, /*#__PURE__*/React.createElement(ValueContext.Provider, {
173
177
  // @ts-ignore
174
178
  value: value
175
- }, props.children);
179
+ }, props.children));
176
180
  };
177
181
  export default Index;
@@ -211,7 +211,7 @@ var CreateRole = function CreateRole(props) {
211
211
  _yield$ApiService$sav2 = _context2.sent;
212
212
  _success = _yield$ApiService$sav2.success;
213
213
  if (_success) {
214
- message.success('新增成功');
214
+ message.success('保存成功');
215
215
  onClose === null || onClose === void 0 || onClose();
216
216
  onSuccess === null || onSuccess === void 0 || onSuccess();
217
217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepinnet-components/pc",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",