@oceanbase/ui 0.2.12 → 0.2.13
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/ui.min.js +1 -1
- package/es/Action/index.d.ts +1 -0
- package/es/Boundary/index.d.ts +1 -0
- package/es/Highlight/JsonView.d.ts +1 -0
- package/es/Highlight/index.d.ts +1 -0
- package/es/PageContainer/ItemRender.d.ts +2 -1
- package/es/PageContainer/ItemRender.js +1 -0
- package/es/TreeSearch/util.d.ts +1 -0
- package/es/_util/useHistory.js +6 -2
- package/lib/Action/index.d.ts +1 -0
- package/lib/Boundary/index.d.ts +1 -0
- package/lib/Highlight/JsonView.d.ts +1 -0
- package/lib/Highlight/index.d.ts +1 -0
- package/lib/PageContainer/ItemRender.d.ts +2 -1
- package/lib/PageContainer/ItemRender.js +2 -1
- package/lib/TreeSearch/util.d.ts +1 -0
- package/lib/_util/useHistory.js +2 -1
- package/package.json +5 -5
package/es/Action/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ActionButton, ActionLink } from './Item';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
Group: ({ size, children, dropDownPlacement, shouldVisible, shouldDisabled, enableLoading, moreText, }: import("./Group").GroupProps) => import("react").JSX.Element;
|
package/es/Boundary/index.d.ts
CHANGED
package/es/Highlight/index.d.ts
CHANGED
package/es/TreeSearch/util.d.ts
CHANGED
package/es/_util/useHistory.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
// react-router-dom v5
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
|
|
2
5
|
// react-router-dom v6
|
|
3
6
|
// @ts-ignore
|
|
4
7
|
useNavigate } from 'react-router-dom';
|
|
5
8
|
export default (function () {
|
|
6
9
|
return {
|
|
7
|
-
push: useHistory ? useHistory().push : useNavigate ? useNavigate() : null
|
|
10
|
+
// push: useHistory ? useHistory().push : useNavigate ? useNavigate() : null,
|
|
11
|
+
push: useNavigate ? useNavigate() : null
|
|
8
12
|
};
|
|
9
13
|
});
|
package/lib/Action/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ActionButton, ActionLink } from './Item';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
Group: ({ size, children, dropDownPlacement, shouldVisible, shouldDisabled, enableLoading, moreText, }: import("./Group").GroupProps) => import("react").JSX.Element;
|
package/lib/Boundary/index.d.ts
CHANGED
package/lib/Highlight/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ __export(ItemRender_exports, {
|
|
|
32
32
|
default: () => ItemRender_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(ItemRender_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
35
36
|
var import_useHistory = __toESM(require("../_util/useHistory"));
|
|
36
37
|
var ItemRender_default = ({ route, params, routes, paths }) => {
|
|
37
38
|
const routeIndex = routes.indexOf(route);
|
|
@@ -39,7 +40,7 @@ var ItemRender_default = ({ route, params, routes, paths }) => {
|
|
|
39
40
|
const title = route.title || route.breadcrumbName;
|
|
40
41
|
const path = route.href || routes.slice(0, routeIndex + 1).map((item) => item.path).join("/");
|
|
41
42
|
const history = (0, import_useHistory.default)();
|
|
42
|
-
return last ? /* @__PURE__ */
|
|
43
|
+
return last ? /* @__PURE__ */ import_react.default.createElement("span", null, title) : /* @__PURE__ */ import_react.default.createElement(
|
|
43
44
|
"a",
|
|
44
45
|
{
|
|
45
46
|
onClick: () => {
|
package/lib/TreeSearch/util.d.ts
CHANGED
package/lib/_util/useHistory.js
CHANGED
|
@@ -25,6 +25,7 @@ module.exports = __toCommonJS(useHistory_exports);
|
|
|
25
25
|
var import_react_router_dom = require("react-router-dom");
|
|
26
26
|
var useHistory_default = () => {
|
|
27
27
|
return {
|
|
28
|
-
push:
|
|
28
|
+
// push: useHistory ? useHistory().push : useNavigate ? useNavigate() : null,
|
|
29
|
+
push: import_react_router_dom.useNavigate ? (0, import_react_router_dom.useNavigate)() : null
|
|
29
30
|
};
|
|
30
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"OceanBase",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@ant-design/cssinjs": "^1.11.1",
|
|
39
39
|
"@ant-design/pro-components": "^2.6.4",
|
|
40
|
-
"@oceanbase/design": "^0.2.
|
|
41
|
-
"@oceanbase/icons": "^0.2.
|
|
42
|
-
"@oceanbase/util": "^0.2.
|
|
40
|
+
"@oceanbase/design": "^0.2.12",
|
|
41
|
+
"@oceanbase/icons": "^0.2.3",
|
|
42
|
+
"@oceanbase/util": "^0.2.4",
|
|
43
43
|
"ahooks": "^2.10.14",
|
|
44
44
|
"classnames": "^2.3.2",
|
|
45
45
|
"dayjs": "^1.11.9",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"react-dom": "^16.9.0",
|
|
68
68
|
"react-router-dom": ">=5.2.0"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "7d81ac30dec1b962fc77a037023fef0ab0a3db24"
|
|
71
71
|
}
|