@doreamonjs/page-detail 1.10.26 → 1.10.28

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,17 @@
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.10.28](https://github.com/doreamonjs/doreamon/compare/v1.10.27...v1.10.28) (2023-11-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * components.Card.Information type link ([f92584e](https://github.com/doreamonjs/doreamon/commit/f92584e78afcbcec87357628a5be18618a73dea5))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.10.26](https://github.com/doreamonjs/doreamon/compare/v1.10.25...v1.10.26) (2023-11-29)
7
18
 
8
19
  **Note:** Version bump only for package @doreamonjs/page-detail
package/lib/index.d.ts CHANGED
@@ -44,8 +44,8 @@ export interface InfoItem {
44
44
  rollout?: string;
45
45
  }
46
46
  export interface DetailModules {
47
- tabs: TabItem[];
48
- defaultTab?: string;
47
+ items: TabItem[];
48
+ default?: string;
49
49
  }
50
50
  export interface TabItem {
51
51
  key: string;
package/lib/index.js CHANGED
@@ -15,8 +15,8 @@ const DetailPage = (props) => {
15
15
  const values = (_b = (_a = props === null || props === void 0 ? void 0 : props.datasets) === null || _a === void 0 ? void 0 : _a.values) !== null && _b !== void 0 ? _b : {};
16
16
  const title = (_d = (_c = values === null || values === void 0 ? void 0 : values.title) !== null && _c !== void 0 ? _c : values === null || values === void 0 ? void 0 : values.name) !== null && _d !== void 0 ? _d : '-';
17
17
  const details = (_e = props.attributes.detail.basis) === null || _e === void 0 ? void 0 : _e.items;
18
- const defaultTab = (_f = props.attributes.detail.modules) === null || _f === void 0 ? void 0 : _f.defaultTab;
19
- const tabs = (_h = (_g = props.attributes.detail.modules) === null || _g === void 0 ? void 0 : _g.tabs) === null || _h === void 0 ? void 0 : _h.map((tab, index) => {
18
+ const defaultTab = (_f = props.attributes.detail.modules) === null || _f === void 0 ? void 0 : _f.default;
19
+ const tabs = (_h = (_g = props.attributes.detail.modules) === null || _g === void 0 ? void 0 : _g.items) === null || _h === void 0 ? void 0 : _h.map((tab, index) => {
20
20
  return {
21
21
  ...tab,
22
22
  render: !tab.render ? undefined : () => {
@@ -24,7 +24,6 @@ const DetailPage = (props) => {
24
24
  },
25
25
  };
26
26
  });
27
- console.log('tabs:', tabs, props.attributes.detail);
28
27
  if (+((_j = doreamon_1.default.dom.router.getQuery()) === null || _j === void 0 ? void 0 : _j.id) !== (values === null || values === void 0 ? void 0 : values.id)) {
29
28
  return (react_1.default.createElement("div", { style: {
30
29
  width: '100%',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doreamonjs/page-detail",
3
- "version": "1.10.26",
3
+ "version": "1.10.28",
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.10.26",
74
+ "@doreamonjs/components": "^1.10.28",
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": "fcc1816234645cd4025d6f0eec98383e3f57537a"
83
+ "gitHead": "7f85c098ccddd01ec677bc46f44e8c5e0022baaa"
84
84
  }