@teamias/rex-pro 0.1.0 → 0.1.1

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.
@@ -19,7 +19,6 @@ import { BaseListTable, BaseTable, useRequestFieldsConfig, useRexProConfigProvid
19
19
  import { Card, Pagination, Skeleton, Space } from 'antd';
20
20
  import { cloneDeep } from 'lodash';
21
21
  import React, { useImperativeHandle, useRef } from 'react';
22
- import { Navigate } from 'react-router';
23
22
  import { ActionButtons } from "./components/ActionButtons";
24
23
  import { TableActionButtonGroup, ToolbarBox, Wrapper } from "./style";
25
24
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -359,6 +358,8 @@ var InlineRexProTable = function InlineRexProTable(_ref) {
359
358
  });
360
359
  };
361
360
  export var RexProTable = function RexProTable(props) {
361
+ var _useRexProConfigProvi2 = useRexProConfigProvider(),
362
+ systemHistory = _useRexProConfigProvi2.systemHistory;
362
363
  var _useStateData2 = useStateData(function () {
363
364
  return {
364
365
  /** 用于 reload */
@@ -426,15 +427,10 @@ export var RexProTable = function RexProTable(props) {
426
427
  var handleLink = function handleLink(target, url) {
427
428
  if (target === '_blank') {
428
429
  window.open(url, target);
430
+ } else if (systemHistory) {
431
+ systemHistory.push(url);
429
432
  } else {
430
- try {
431
- Navigate({
432
- to: url,
433
- replace: false
434
- });
435
- } catch (error) {
436
- window.location.href = url;
437
- }
433
+ window.location.href = url;
438
434
  }
439
435
  };
440
436
  if (item.type === 'link' || item.type === 'icon') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-pro",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -51,7 +51,7 @@
51
51
  "dependencies": {
52
52
  "@ant-design/icons": "^6.1.0",
53
53
  "@ant-design/pro-components": "^2.8.10",
54
- "@teamias/rex-design": "^0.1.3",
54
+ "@teamias/rex-design": "^0.1.4",
55
55
  "ahooks": "^3.9.6",
56
56
  "antd": "^5.26.7",
57
57
  "classnames": "^2.5.1",
@@ -61,7 +61,6 @@
61
61
  "react": "^18.3.1",
62
62
  "react-dom": "^18.3.1",
63
63
  "react-intl": "^7.1.11",
64
- "react-router": "6",
65
64
  "styled-components": "^6.1.19"
66
65
  },
67
66
  "devDependencies": {
@@ -91,8 +90,7 @@
91
90
  "antd": ">=5.0.0",
92
91
  "react": ">=16.9.0",
93
92
  "react-dom": ">=16.9.0",
94
- "react-intl": ">=3.0.0",
95
- "react-router": ">=6"
93
+ "react-intl": ">=3.0.0"
96
94
  },
97
95
  "packageManager": "pnpm@9.15.9",
98
96
  "publishConfig": {