@deepinnet-components/pc 0.0.9 → 0.0.10

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.
@@ -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
- var navigate = useNavigate();
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
- declare const Index: React.FC;
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;
@@ -39,7 +39,8 @@ var Index = function Index(props) {
39
39
  accountPage: '/account',
40
40
  rolePage: '/role',
41
41
  orgPage: '/org'
42
- } : _props$pageUrl;
42
+ } : _props$pageUrl,
43
+ navigate = props.navigate;
43
44
  var _useState = useState(),
44
45
  _useState2 = _slicedToArray(_useState, 2),
45
46
  value = _useState2[0],
@@ -163,7 +164,8 @@ var Index = function Index(props) {
163
164
  api: api,
164
165
  Components: components,
165
166
  pageUrl: pageUrl,
166
- ApiService: Service
167
+ ApiService: Service,
168
+ navigate: navigate
167
169
  });
168
170
  }, []);
169
171
  if (!value) return null;
@@ -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;
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepinnet-components/pc",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",