@lemon-fe/kits 1.1.0-alpha.2 → 1.1.0-alpha.4
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.
|
@@ -4,13 +4,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { Button, Result } from 'antd';
|
|
7
8
|
import React, { memo, useEffect } from 'react';
|
|
8
9
|
import { useMemo } from 'react';
|
|
9
10
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
10
11
|
import { matchPath, useHistory } from 'react-router-dom';
|
|
11
12
|
import RouteTab from "../components/route-tab";
|
|
12
13
|
import { useLastestRef } from '@lemon-fe/hooks';
|
|
13
|
-
import { Button, Result } from 'antd';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
16
|
function isSubPath(path, subPath) {
|
|
@@ -102,7 +102,7 @@ function MicroLayout(props) {
|
|
|
102
102
|
if (target === undefined || pathname === target.location.pathname) {
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
|
-
if (target.instance.block({
|
|
105
|
+
if (target.instance !== undefined && target.instance.block({
|
|
106
106
|
title: target.title,
|
|
107
107
|
onOk: function onOk() {
|
|
108
108
|
history.push(loc);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemon-fe/kits",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.4",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -22,9 +22,8 @@
|
|
|
22
22
|
"prepublish": "npm run build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ag-grid-community/styles": "29.2.0",
|
|
26
25
|
"@ant-design/icons": "^4.7.0",
|
|
27
|
-
"@lemon-fe/components": "^1.1.0-alpha.
|
|
26
|
+
"@lemon-fe/components": "^1.1.0-alpha.3",
|
|
28
27
|
"@lemon-fe/hooks": "^1.1.0-alpha.2",
|
|
29
28
|
"@lemon-fe/utils": "^1.1.0-alpha.2",
|
|
30
29
|
"antd": "4.24.8",
|
|
@@ -45,5 +44,5 @@
|
|
|
45
44
|
"publishConfig": {
|
|
46
45
|
"registry": "https://registry.npmjs.org"
|
|
47
46
|
},
|
|
48
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "3c322657fc994a4971d443527c54777d0c36c47a"
|
|
49
48
|
}
|