@doreamonjs/page-detail 1.12.74 → 1.12.76

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.12.76](https://github.com/doreamonjs/doreamon/compare/v1.12.75...v1.12.76) (2025-02-16)
7
+
8
+ **Note:** Version bump only for package @doreamonjs/page-detail
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.12.75](https://github.com/doreamonjs/doreamon/compare/v1.12.74...v1.12.75) (2025-02-14)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * page-detail mobile go back not work ([b78233f](https://github.com/doreamonjs/doreamon/commit/b78233f805bc963b2d602ae50a2c356007a40b04))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.12.74](https://github.com/doreamonjs/doreamon/compare/v1.12.73...v1.12.74) (2025-02-14)
7
26
 
8
27
  **Note:** Version bump only for package @doreamonjs/page-detail
package/lib/index.js CHANGED
@@ -61,10 +61,19 @@ const DetailPage = (props) => {
61
61
  subTitle = subTitle_;
62
62
  }
63
63
  }
64
+ const onGoHome = () => {
65
+ // return (window as any)?.__DOREAMONJS_SDK?.shared?.router?.go?.('/');
66
+ return window.location.href = '/';
67
+ };
68
+ const onGoBack = () => {
69
+ var _a, _b, _c, _d, _e;
70
+ return (_e = (_d = (_c = (_b = (_a = window) === null || _a === void 0 ? void 0 : _a.__DOREAMONJS_SDK) === null || _b === void 0 ? void 0 : _b.shared) === null || _c === void 0 ? void 0 : _c.router) === null || _d === void 0 ? void 0 : _d.goBack) === null || _e === void 0 ? void 0 : _e.call(_d);
71
+ };
64
72
  if (((_v = (_u = props.attributes.detail) === null || _u === void 0 ? void 0 : _u.basis) === null || _v === void 0 ? void 0 : _v.hideContentInMobile) && isMobile) {
65
73
  basisNode = (react_1.default.createElement(react_1.default.Fragment, null,
66
74
  react_1.default.createElement(components_1.Card, { title: !isMobile ? title : (react_1.default.createElement("div", null,
67
- react_1.default.createElement(icons_1.ArrowLeftOutlined, { style: { marginRight: 8 }, onClick: () => { var _a, _b, _c, _d, _e; return (_e = (_d = (_c = (_b = (_a = window) === null || _a === void 0 ? void 0 : _a.__DOREAMONJS_SDK) === null || _b === void 0 ? void 0 : _b.shared) === null || _c === void 0 ? void 0 : _c.router) === null || _d === void 0 ? void 0 : _d.goBack) === null || _e === void 0 ? void 0 : _e.call(_d); } }),
75
+ react_1.default.createElement(icons_1.HomeOutlined, { style: { marginRight: 8 }, onClick: onGoHome }),
76
+ react_1.default.createElement(icons_1.ArrowLeftOutlined, { style: { marginRight: 8 }, onClick: onGoBack }),
68
77
  react_1.default.createElement("div", { style: { display: 'inline-block' } }, title))), bodyStyle: {
69
78
  paddingTop: 0,
70
79
  paddingBottom: 0,
@@ -77,7 +86,8 @@ const DetailPage = (props) => {
77
86
  else {
78
87
  basisNode = (react_1.default.createElement(react_1.default.Fragment, null,
79
88
  react_1.default.createElement(components_1.Card.Information, { title: !isMobile ? title : (react_1.default.createElement("div", null,
80
- react_1.default.createElement(icons_1.ArrowLeftOutlined, { style: { marginRight: 8 }, onClick: () => { var _a, _b, _c, _d, _e; return (_e = (_d = (_c = (_b = (_a = window) === null || _a === void 0 ? void 0 : _a.__DOREAMONJS_SDK) === null || _b === void 0 ? void 0 : _b.shared) === null || _c === void 0 ? void 0 : _c.router) === null || _d === void 0 ? void 0 : _d.goBack) === null || _e === void 0 ? void 0 : _e.call(_d); } }),
89
+ react_1.default.createElement(icons_1.HomeOutlined, { style: { marginRight: 8 }, onClick: onGoHome }),
90
+ react_1.default.createElement(icons_1.ArrowLeftOutlined, { style: { marginRight: 8 }, onClick: onGoBack }),
81
91
  react_1.default.createElement("div", { style: { display: 'inline-block' } }, title))), subTitle: subTitle, actions: props.attributes.actions, allowActionTypes: ['custom'], column: (_y = (_x = (_w = props.attributes.detail) === null || _w === void 0 ? void 0 : _w.basis) === null || _x === void 0 ? void 0 : _x.column) !== null && _y !== void 0 ? _y : 2, items: details, data: values, onActionClick: (action, values) => {
82
92
  props.onActionTrigger(action, {
83
93
  values,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doreamonjs/page-detail",
3
- "version": "1.12.74",
3
+ "version": "1.12.76",
4
4
  "description": "detail page",
5
5
  "keywords": [
6
6
  "doreamonjs",
@@ -71,7 +71,7 @@
71
71
  "@znode/fs": "^1.0.2"
72
72
  },
73
73
  "dependencies": {
74
- "@doreamonjs/components": "^1.12.74",
74
+ "@doreamonjs/components": "^1.12.76",
75
75
  "@zodash/doreamon": "^1.1.5",
76
76
  "antd": "4.18.9",
77
77
  "react-monaco-editor": "^0.50.1",
@@ -80,5 +80,5 @@
80
80
  "xterm-addon-attach": "^0.6.0",
81
81
  "xterm-addon-fit": "^0.5.0"
82
82
  },
83
- "gitHead": "07186d55fdd6ffb81e73d75c0ef781a13722ab95"
83
+ "gitHead": "8ff1a2ef55a4fb7dc7df6b7a6199b61328482e3b"
84
84
  }