@doreamonjs/page-detail 1.10.53 → 1.10.55

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.10.55](https://github.com/doreamonjs/doreamon/compare/v1.10.54...v1.10.55) (2024-01-09)
7
+
8
+ **Note:** Version bump only for package @doreamonjs/page-detail
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.10.54](https://github.com/doreamonjs/doreamon/compare/v1.10.53...v1.10.54) (2023-12-12)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * page detail basis column ([30fcbf3](https://github.com/doreamonjs/doreamon/commit/30fcbf317516724fe7c9889c78da25170707fe7d))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.10.53](https://github.com/doreamonjs/doreamon/compare/v1.10.52...v1.10.53) (2023-12-11)
7
26
 
8
27
  **Note:** Version bump only for package @doreamonjs/page-detail
package/lib/index.js CHANGED
@@ -11,7 +11,7 @@ const antd_1 = require("antd");
11
11
  require("./index.less");
12
12
  const componentName = 'doreamonjs-design-page-detail';
13
13
  const DetailPage = (props) => {
14
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
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
  let 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
  if (!!((_f = (_e = props.attributes.detail) === null || _e === void 0 ? void 0 : _e.basis) === null || _f === void 0 ? void 0 : _f.title)) {
@@ -49,7 +49,7 @@ const DetailPage = (props) => {
49
49
  react_1.default.createElement(antd_1.Skeleton, { paragraph: { rows: 10 } })));
50
50
  }
51
51
  return (react_1.default.createElement("div", { className: doreamon_1.default.classnames('page', componentName, props.className) },
52
- react_1.default.createElement(components_1.Card.Information, { title: title, actions: props.attributes.actions, allowActionTypes: ['custom'], column: 2, items: details, data: values, onActionClick: (action, values) => {
52
+ react_1.default.createElement(components_1.Card.Information, { title: title, actions: props.attributes.actions, allowActionTypes: ['custom'], column: (_p = (_o = (_m = props.attributes.detail) === null || _m === void 0 ? void 0 : _m.basis) === null || _o === void 0 ? void 0 : _o.column) !== null && _p !== void 0 ? _p : 2, items: details, data: values, onActionClick: (action, values) => {
53
53
  props.onActionTrigger(action, {
54
54
  values,
55
55
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doreamonjs/page-detail",
3
- "version": "1.10.53",
3
+ "version": "1.10.55",
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.53",
74
+ "@doreamonjs/components": "^1.10.55",
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": "a71ace1cbda3aa1f67e425f0c39f28514f53b349"
83
+ "gitHead": "9ad13299b9a348e77ef1ef2626b7fb3ef5db86fb"
84
84
  }