@cniot/mdd-editor 0.2.0-beta.41 → 0.2.0-beta.42

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/build/index.es.js CHANGED
@@ -3469,7 +3469,6 @@ class DetailItemSchema extends JSONWatch {
3469
3469
  columnsDirection = "row",
3470
3470
  columnsBoxes = [],
3471
3471
  height = 100,
3472
- hideCard = true,
3473
3472
  ...more2
3474
3473
  } = props || {};
3475
3474
  super({
@@ -3491,7 +3490,6 @@ class DetailItemSchema extends JSONWatch {
3491
3490
  columnsDirection,
3492
3491
  columnsBoxes,
3493
3492
  height,
3494
- hideCard,
3495
3493
  ...more2
3496
3494
  });
3497
3495
  }
@@ -27648,6 +27646,11 @@ const customTitleRender = (props) => {
27648
27646
  if (key === "type" && val === "detail-static-steps") {
27649
27647
  data.initStepSource();
27650
27648
  }
27649
+ if (key === "type" && val === "detail-columns") {
27650
+ data.set("hideCard", true);
27651
+ } else {
27652
+ data.set("hideCard", false);
27653
+ }
27651
27654
  onChange(data);
27652
27655
  };
27653
27656
  return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(Input$1, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cniot/mdd-editor",
3
- "version": "0.2.0-beta.41",
3
+ "version": "0.2.0-beta.42",
4
4
  "description": "模型驱动编辑器",
5
5
  "scripts": {
6
6
  "build": "vite build"
@@ -21,7 +21,6 @@ export default class DetailItemSchema extends JSONWatch {
21
21
  columnsDirection = 'row', // 分栏组件 方向,默认横向分栏
22
22
  columnsBoxes = [],
23
23
  height = 100,
24
- hideCard = true,
25
24
  ...more
26
25
  } = props || {};
27
26
  super({
@@ -43,7 +42,6 @@ export default class DetailItemSchema extends JSONWatch {
43
42
  columnsDirection,
44
43
  columnsBoxes,
45
44
  height,
46
- hideCard,
47
45
  ...more,
48
46
  });
49
47
  }
@@ -70,6 +70,11 @@ const customTitleRender = (props) => {
70
70
  // 类型是步骤条
71
71
  data.initStepSource();
72
72
  }
73
+ if (key === 'type' && val === 'detail-columns') {
74
+ data.set('hideCard', true);
75
+ } else {
76
+ data.set('hideCard', false);
77
+ }
73
78
  onChange(data);
74
79
  };
75
80
  return (