@deepinnet-components/pc 0.0.9 → 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.
- package/dist/UserCenter/AccountPage/index.js +2 -3
- package/dist/UserCenter/ConfigProvider/index.d.ts +9 -1
- package/dist/UserCenter/ConfigProvider/index.js +10 -4
- package/dist/UserCenter/RolePage/components/Create/index.js +1 -1
- package/dist/UserCenter/index.d.ts +1 -1
- package/dist/UserCenter/index.js +0 -5
- package/package.json +1 -1
|
@@ -20,7 +20,6 @@ import { ShenduTable } from "../..";
|
|
|
20
20
|
import { Button, message } from 'antd';
|
|
21
21
|
import dayjs from 'dayjs';
|
|
22
22
|
import React, { useContext, useRef, useState } from 'react';
|
|
23
|
-
import { useNavigate } from 'react-router-dom';
|
|
24
23
|
import CreateAccount from "./components/CreateAccount";
|
|
25
24
|
import ValueContext from "../context";
|
|
26
25
|
|
|
@@ -29,8 +28,8 @@ var AccountList = function AccountList() {
|
|
|
29
28
|
var contextValue = useContext(ValueContext);
|
|
30
29
|
var ApiService = contextValue.ApiService,
|
|
31
30
|
Components = contextValue.Components,
|
|
32
|
-
pageUrl = contextValue.pageUrl
|
|
33
|
-
|
|
31
|
+
pageUrl = contextValue.pageUrl,
|
|
32
|
+
navigate = contextValue.navigate;
|
|
34
33
|
var tableRef = useRef(null);
|
|
35
34
|
var columns = [{
|
|
36
35
|
title: '姓名',
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
export interface MainProps {
|
|
3
|
+
request: any;
|
|
4
|
+
api?: any;
|
|
5
|
+
components: any;
|
|
6
|
+
pageUrl?: any;
|
|
7
|
+
children?: any;
|
|
8
|
+
navigate: any;
|
|
9
|
+
}
|
|
10
|
+
declare const Index: React.FC<MainProps>;
|
|
3
11
|
export default Index;
|
|
@@ -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,
|
|
@@ -39,7 +41,8 @@ var Index = function Index(props) {
|
|
|
39
41
|
accountPage: '/account',
|
|
40
42
|
rolePage: '/role',
|
|
41
43
|
orgPage: '/org'
|
|
42
|
-
} : _props$pageUrl
|
|
44
|
+
} : _props$pageUrl,
|
|
45
|
+
navigate = props.navigate;
|
|
43
46
|
var _useState = useState(),
|
|
44
47
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45
48
|
value = _useState2[0],
|
|
@@ -163,13 +166,16 @@ var Index = function Index(props) {
|
|
|
163
166
|
api: api,
|
|
164
167
|
Components: components,
|
|
165
168
|
pageUrl: pageUrl,
|
|
166
|
-
ApiService: Service
|
|
169
|
+
ApiService: Service,
|
|
170
|
+
navigate: navigate
|
|
167
171
|
});
|
|
168
172
|
}, []);
|
|
169
173
|
if (!value) return null;
|
|
170
|
-
return /*#__PURE__*/React.createElement(
|
|
174
|
+
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
175
|
+
locale: locale
|
|
176
|
+
}, /*#__PURE__*/React.createElement(ValueContext.Provider, {
|
|
171
177
|
// @ts-ignore
|
|
172
178
|
value: value
|
|
173
|
-
}, props.children);
|
|
179
|
+
}, props.children));
|
|
174
180
|
};
|
|
175
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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const UserCenter: {
|
|
3
|
-
ConfigProvider: import("react").FC<
|
|
3
|
+
ConfigProvider: import("react").FC<import("./ConfigProvider").MainProps>;
|
|
4
4
|
AccountPage: import("react").FC;
|
|
5
5
|
RolePage: import("react").FC;
|
|
6
6
|
OrgPage: import("react").FC;
|
package/dist/UserCenter/index.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
// export { default as ConfigProvider } from './ConfigProvider'
|
|
2
|
-
// export { default as AccountPage } from './AccountPage'
|
|
3
|
-
// export { default as RolePage } from './RolePage'
|
|
4
|
-
// export { default as OrgPage } from './OrgPage'
|
|
5
|
-
|
|
6
1
|
import ConfigProvider from "./ConfigProvider";
|
|
7
2
|
import AccountPage from "./AccountPage";
|
|
8
3
|
import RolePage from "./RolePage";
|