@byteluck-fe/model-driven-upgrade 2.7.0-alpha.8 → 2.7.0-alpha.9

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.
@@ -1,5 +1,5 @@
1
- import { decamelizeKeys, loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
2
- import { DataBind } from "@byteluck-fe/model-driven-core";
1
+ import { decamelizeKeys, loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
2
+ import { DataBind } from '@byteluck-fe/model-driven-core';
3
3
  var dataCleaner = function(schemaItems, payload) {
4
4
  var isArray = Array.isArray(schemaItems);
5
5
  var schemaArray = isArray ? schemaItems : [
@@ -1,4 +1,4 @@
1
- import { decamelizeKeys, loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
1
+ import { decamelizeKeys, loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
2
2
  var dataCleaner = function(schemaItems, payload) {
3
3
  var isArray = Array.isArray(schemaItems);
4
4
  var schemaArray = isArray ? schemaItems : [
@@ -20,25 +20,25 @@ function conversion(schema, payload) {
20
20
  CONTROL_TYPE.EXPORT_RECORD_LIST_BUTTON,
21
21
  CONTROL_TYPE.EXPORT_LIST_BUTTON,
22
22
  CONTROL_TYPE.FORM_SELECT_BUTTON,
23
- CONTROL_TYPE.LIST_SELECT_BUTTON
23
+ CONTROL_TYPE.LIST_SELECT_BUTTON,
24
24
  ].includes(schema.type)) {
25
- if (schema.props.button_type === "default") {
26
- schema.props.button_type = "secondary";
25
+ if (schema.props.button_type === 'default') {
26
+ schema.props.button_type = 'secondary';
27
27
  }
28
- if (schema.props.button_type === "danger") {
29
- schema.props.button_type = "secondary";
30
- schema.props.color = "danger";
28
+ if (schema.props.button_type === 'danger') {
29
+ schema.props.button_type = 'secondary';
30
+ schema.props.color = 'danger';
31
31
  }
32
32
  // 没有icon的按钮,给添加一个默认icon @余石伟
33
33
  if (!schema.props.icon) {
34
- schema.props.icon = "iconfenlei2";
34
+ schema.props.icon = 'iconfenlei2';
35
35
  }
36
36
  }
37
37
  if (schema.type === CONTROL_TYPE.IMPORT_RECORD_LIST_BUTTON) {
38
- schema.props.icon = "iconshangchuan3";
38
+ schema.props.icon = 'iconshangchuan3';
39
39
  }
40
40
  if (schema.type === CONTROL_TYPE.EXPORT_LIST_BUTTON) {
41
- schema.props.icon = "iconxiazai1";
41
+ schema.props.icon = 'iconxiazai1';
42
42
  }
43
43
  return schema;
44
44
  }
@@ -1,4 +1,4 @@
1
- import { loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
1
+ import { loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
2
2
  var dataCleaner = function(schemaItems, payload) {
3
3
  var isArray = Array.isArray(schemaItems);
4
4
  var schemaArray = isArray ? schemaItems : [
@@ -21,7 +21,7 @@ function conversion(schema, payload) {
21
21
  CONTROL_TYPE.DEPARTMENT2,
22
22
  CONTROL_TYPE.EMPLOYEE2,
23
23
  CONTROL_TYPE.DEPARTMENT,
24
- CONTROL_TYPE.EMPLOYEE
24
+ CONTROL_TYPE.EMPLOYEE,
25
25
  ].includes(schema.type)) {
26
26
  if (schema.props.open_multistage_filling === undefined) {
27
27
  schema.props.open_multistage_filling = true;
@@ -40,7 +40,7 @@ function conversion(schema, payload) {
40
40
  CONTROL_TYPE.DEPARTMENT2,
41
41
  CONTROL_TYPE.EMPLOYEE2,
42
42
  CONTROL_TYPE.DEPARTMENT,
43
- CONTROL_TYPE.EMPLOYEE
43
+ CONTROL_TYPE.EMPLOYEE,
44
44
  ].includes(item.children[0].type)) {
45
45
  if (item.children[0].props.open_multistage_filling === undefined) {
46
46
  item.children[0].props.open_multistage_filling = true;
@@ -1,4 +1,4 @@
1
- import { decamelizeKeys, loop } from "@byteluck-fe/model-driven-shared";
1
+ import { decamelizeKeys, loop } from '@byteluck-fe/model-driven-shared';
2
2
  var dataCleaner = function(schemaItems, payload) {
3
3
  var isArray = Array.isArray(schemaItems);
4
4
  var schemaArray = isArray ? schemaItems : [
@@ -14,23 +14,23 @@ function conversion(schema, payload) {
14
14
  if (schema.props.icon) {
15
15
  var icon = schema.props.icon;
16
16
  switch(icon){
17
- case "icongeren":
18
- icon = "iconyyzy-renyuan";
17
+ case 'icongeren':
18
+ icon = 'iconyyzy-renyuan';
19
19
  break;
20
- case "iconjine1":
21
- icon = "iconcaiwu";
20
+ case 'iconjine1':
21
+ icon = 'iconcaiwu';
22
22
  break;
23
- case "iconhuibao":
24
- icon = "iconyyzy-tianxie";
23
+ case 'iconhuibao':
24
+ icon = 'iconyyzy-tianxie';
25
25
  break;
26
- case "iconwenjian":
27
- icon = "iconyyzy-wenjianjia1";
26
+ case 'iconwenjian':
27
+ icon = 'iconyyzy-wenjianjia1';
28
28
  break;
29
- case "iconyingpin":
30
- icon = "iconyyzy-gongzuo";
29
+ case 'iconyingpin':
30
+ icon = 'iconyyzy-gongzuo';
31
31
  break;
32
- case "iconpiliangtijiaojilu":
33
- icon = "iconyyzy-renwu";
32
+ case 'iconpiliangtijiaojilu':
33
+ icon = 'iconyyzy-renwu';
34
34
  break;
35
35
  }
36
36
  schema.props.icon = icon;
@@ -1,5 +1,5 @@
1
- import { decamelizeKeys, loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
2
- import { GridRow, Col } from "@byteluck-fe/model-driven-controls";
1
+ import { decamelizeKeys, loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
2
+ import { GridRow, Col } from '@byteluck-fe/model-driven-controls';
3
3
  var dataCleaner = function(schemaItems, payload) {
4
4
  var isArray = Array.isArray(schemaItems);
5
5
  var schemaArray = isArray ? schemaItems : [
@@ -15,7 +15,7 @@ var layoutControls = [
15
15
  CONTROL_TYPE.TAB,
16
16
  CONTROL_TYPE.SUBTABLE,
17
17
  CONTROL_TYPE.GRID_ROW,
18
- CONTROL_TYPE.CARD_GROUP
18
+ CONTROL_TYPE.CARD_GROUP,
19
19
  ];
20
20
  // 标签页中的元素没有添加栅格等分行,导致显隐和布局出现问题,需要升级兼容
21
21
  function conversion(schema, payload) {
@@ -1,4 +1,4 @@
1
- import { decamelizeKeys, loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
1
+ import { decamelizeKeys, loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
2
2
  var dataCleaner = function(schemaItems, payload) {
3
3
  var isArray = Array.isArray(schemaItems);
4
4
  var schemaArray = isArray ? schemaItems : [
@@ -1,4 +1,4 @@
1
- import { loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
1
+ import { loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
2
2
  var dataCleaner = function(schemaItems, payload) {
3
3
  var isArray = Array.isArray(schemaItems);
4
4
  var schemaArray = isArray ? schemaItems : [
@@ -11,7 +11,7 @@ function _defineProperty(obj, key, value) {
11
11
  }
12
12
  return obj;
13
13
  }
14
- import { loop, CONTROL_TYPE, FieldTypes } from "@byteluck-fe/model-driven-shared";
14
+ import { loop, CONTROL_TYPE, FieldTypes } from '@byteluck-fe/model-driven-shared';
15
15
  var dataCleaner = function(schemaItems, payload) {
16
16
  var isArray = Array.isArray(schemaItems);
17
17
  var schemaArray = isArray ? schemaItems : [
@@ -47,8 +47,8 @@ function conversion(schema, payload) {
47
47
  setFieldTypeToDataBind(schema.props.data_bind.max, FieldTypes.TIMESTAMP);
48
48
  }
49
49
  if (schema.type === CONTROL_TYPE.VUE_FORM_ITEM) {
50
- var _schema_field_type;
51
- setFieldTypeToDataBind(schema.props.data_bind, (_schema_field_type = schema.field_type) !== null && _schema_field_type !== void 0 ? _schema_field_type : FieldTypes.ANY);
50
+ var _field_type;
51
+ setFieldTypeToDataBind(schema.props.data_bind, (_field_type = schema.field_type) !== null && _field_type !== void 0 ? _field_type : FieldTypes.ANY);
52
52
  }
53
53
  return schema;
54
54
  }
@@ -1,4 +1,4 @@
1
- import { loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
1
+ import { loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
2
2
  var dataCleaner = function(schemaItems, payload) {
3
3
  var isArray = Array.isArray(schemaItems);
4
4
  var schemaArray = isArray ? schemaItems : [
@@ -12,14 +12,14 @@ var dataCleaner = function(schemaItems, payload) {
12
12
  function conversion(schema, payload) {
13
13
  if (schema.type === CONTROL_TYPE.GRID_TABLE) {
14
14
  schema.props.headers.forEach(function(column) {
15
- if (column.type.endsWith("-column")) {
15
+ if (column.type.endsWith('-column')) {
16
16
  if (column.props.fixed) {
17
- column.props.fixed = "left";
17
+ column.props.fixed = 'left';
18
18
  if (column.type === CONTROL_TYPE.OPERATION_COLUMN) {
19
- column.props.fixed = "right";
19
+ column.props.fixed = 'right';
20
20
  }
21
21
  } else {
22
- column.props.fixed = "none";
22
+ column.props.fixed = 'none';
23
23
  }
24
24
  }
25
25
  });
@@ -1,4 +1,4 @@
1
- import { loop, CONTROL_TYPE, FieldTypes } from "@byteluck-fe/model-driven-shared";
1
+ import { loop, CONTROL_TYPE, FieldTypes } from '@byteluck-fe/model-driven-shared';
2
2
  var dataCleaner = function(schemaItems, payload) {
3
3
  var isArray = Array.isArray(schemaItems);
4
4
  var schemaArray = isArray ? schemaItems : [
@@ -14,14 +14,14 @@ function conversion(schema, payload) {
14
14
  if (schema.type === CONTROL_TYPE.SIMPLE_SEARCH && schema.children.length) {
15
15
  if (!schema.props.query_type_map) schema.props.query_type_map = [];
16
16
  schema.children.forEach(function(item) {
17
- var _item_props, _item_props_data_bind;
17
+ var ref, ref1;
18
18
  if ([
19
19
  FieldTypes.VARCHAR,
20
20
  FieldTypes.TEXT,
21
21
  FieldTypes.AUTO_NUMBER
22
- ].includes((_item_props = item.props) === null || _item_props === void 0 ? void 0 : (_item_props_data_bind = _item_props.data_bind) === null || _item_props_data_bind === void 0 ? void 0 : _item_props_data_bind.field_type)) {
22
+ ].includes((ref = item.props) === null || ref === void 0 ? void 0 : (ref1 = ref.data_bind) === null || ref1 === void 0 ? void 0 : ref1.field_type)) {
23
23
  schema.props.query_type_map.push({
24
- query_type: "LIKE",
24
+ query_type: 'LIKE',
25
25
  field_code: item.props.data_bind.field_code
26
26
  });
27
27
  }
@@ -5,7 +5,7 @@
5
5
  * @LastEditTime: 2023-03-03 13:42:29
6
6
  * @FilePath: /model-driven/packages/upgrade/src/upgrade/v2_9.ts
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */ import { loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
8
+ */ import { loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
9
9
  var dataCleaner = function(schemaItems, payload) {
10
10
  var isArray = Array.isArray(schemaItems);
11
11
  var schemaArray = isArray ? schemaItems : [
@@ -28,7 +28,7 @@ function conversion(schema, payload) {
28
28
  CONTROL_TYPE.DEPARTMENT2,
29
29
  CONTROL_TYPE.EMPLOYEE2,
30
30
  CONTROL_TYPE.DEPARTMENT,
31
- CONTROL_TYPE.EMPLOYEE
31
+ CONTROL_TYPE.EMPLOYEE,
32
32
  ].includes(schema.type)) {
33
33
  if (schema.props.open_multistage_filling === undefined) {
34
34
  schema.props.open_multistage_filling = true;
@@ -47,7 +47,7 @@ function conversion(schema, payload) {
47
47
  CONTROL_TYPE.DEPARTMENT2,
48
48
  CONTROL_TYPE.EMPLOYEE2,
49
49
  CONTROL_TYPE.DEPARTMENT,
50
- CONTROL_TYPE.EMPLOYEE
50
+ CONTROL_TYPE.EMPLOYEE,
51
51
  ].includes(item.children[0].type)) {
52
52
  if (item.children[0].props.open_multistage_filling === undefined) {
53
53
  item.children[0].props.open_multistage_filling = true;
@@ -5,9 +5,9 @@
5
5
  * @LastEditTime: 2023-03-03 13:42:45
6
6
  * @FilePath: /model-driven/packages/upgrade/src/upgrade/v2_10.ts
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
- */ import { loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
9
- import { OperationButton } from "@byteluck-fe/model-driven-controls";
10
- import { TitleConfigEnum } from "@byteluck-fe/model-driven-controls";
8
+ */ import { loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
9
+ import { OperationButton } from '@byteluck-fe/model-driven-controls';
10
+ import { TitleConfigEnum } from '@byteluck-fe/model-driven-controls';
11
11
  var dataCleaner = function(schemaItems, payload) {
12
12
  var isArray = Array.isArray(schemaItems);
13
13
  var schemaArray = isArray ? schemaItems : [
@@ -26,79 +26,79 @@ function conversion(schema, payload) {
26
26
  if (schema.type === CONTROL_TYPE.GRID_TABLE) {
27
27
  schema.props.headers.map(function(item) {
28
28
  if (item.type === CONTROL_TYPE.OPERATION_COLUMN) {
29
- var _item_props, _item_props1, _item_props2;
30
- if (item.props.width_type === "auto") {
29
+ var ref, ref1, ref2;
30
+ if (item.props.width_type === 'auto') {
31
31
  item.props.auto_width = {
32
32
  min_width: 120,
33
33
  max_width: 120,
34
34
  flex: 1
35
35
  };
36
- } else if (item.props.width_type === "px") {
36
+ } else if (item.props.width_type === 'px') {
37
37
  item.props.auto_width = {
38
38
  min_width: item.props.width,
39
39
  max_width: item.props.width,
40
40
  flex: 1
41
41
  };
42
42
  }
43
- item.props.width_type = "auto";
44
- var _item_children;
45
- item.children = (_item_children = item === null || item === void 0 ? void 0 : item.children) !== null && _item_children !== void 0 ? _item_children : [];
43
+ item.props.width_type = 'auto';
44
+ var ref3;
45
+ item.children = (ref3 = item === null || item === void 0 ? void 0 : item.children) !== null && ref3 !== void 0 ? ref3 : [];
46
46
  delete item.props.custom;
47
- if (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.check) !== undefined) {
48
- var _item_props3, _item_props4, _item_props5, _item_props6, _item_props7, _item_props8;
47
+ if (((ref = item.props) === null || ref === void 0 ? void 0 : ref.check) !== undefined) {
48
+ var ref4, ref5, ref6, ref7, ref8, ref9;
49
49
  var optbtn = new OperationButton.Designer();
50
- Object.defineProperty(optbtn, "id", {
51
- value: "listPageCheckBtnId"
50
+ Object.defineProperty(optbtn, 'id', {
51
+ value: 'listPageCheckBtnId'
52
52
  });
53
- optbtn.props.code = "view";
54
- optbtn.props.icon = "iconliulan1";
55
- optbtn.props.command = "view";
56
- optbtn.props.content = (_item_props3 = item.props) === null || _item_props3 === void 0 ? void 0 : _item_props3.check.content;
57
- optbtn.props.priorityProcess = (_item_props4 = item.props) === null || _item_props4 === void 0 ? void 0 : _item_props4.check.priority_process;
58
- optbtn.props.openType = (_item_props5 = item.props) === null || _item_props5 === void 0 ? void 0 : _item_props5.check.open_type;
59
- optbtn.props.formKey = (_item_props6 = item.props) === null || _item_props6 === void 0 ? void 0 : _item_props6.check.form_key;
60
- if ((_item_props7 = item.props) === null || _item_props7 === void 0 ? void 0 : _item_props7.check.is_show) {
53
+ optbtn.props.code = 'view';
54
+ optbtn.props.icon = 'iconliulan1';
55
+ optbtn.props.command = 'view';
56
+ optbtn.props.content = (ref4 = item.props) === null || ref4 === void 0 ? void 0 : ref4.check.content;
57
+ optbtn.props.priorityProcess = (ref5 = item.props) === null || ref5 === void 0 ? void 0 : ref5.check.priority_process;
58
+ optbtn.props.openType = (ref6 = item.props) === null || ref6 === void 0 ? void 0 : ref6.check.open_type;
59
+ optbtn.props.formKey = (ref7 = item.props) === null || ref7 === void 0 ? void 0 : ref7.check.form_key;
60
+ if ((ref8 = item.props) === null || ref8 === void 0 ? void 0 : ref8.check.is_show) {
61
61
  item.children.push(optbtn.toSchema());
62
62
  }
63
- (_item_props8 = item.props) === null || _item_props8 === void 0 ? void 0 : delete _item_props8.check;
63
+ (ref9 = item.props) === null || ref9 === void 0 ? void 0 : delete ref9.check;
64
64
  }
65
- if (((_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.edit) !== undefined) {
66
- var _item_props9, _item_props10, _item_props11, _item_props12, _item_props13, _item_props14;
65
+ if (((ref1 = item.props) === null || ref1 === void 0 ? void 0 : ref1.edit) !== undefined) {
66
+ var ref10, ref11, ref12, ref13, ref14, ref15;
67
67
  var optbtn1 = new OperationButton.Designer();
68
- Object.defineProperty(optbtn1, "id", {
69
- value: "listPageEditBtnId"
68
+ Object.defineProperty(optbtn1, 'id', {
69
+ value: 'listPageEditBtnId'
70
70
  });
71
- optbtn1.props.code = "edit";
72
- optbtn1.props.icon = "iconbianji1";
73
- optbtn1.props.command = "edit";
74
- optbtn1.props.content = (_item_props9 = item.props) === null || _item_props9 === void 0 ? void 0 : _item_props9.edit.content;
75
- optbtn1.props.priorityProcess = (_item_props10 = item.props) === null || _item_props10 === void 0 ? void 0 : _item_props10.edit.priority_process;
76
- optbtn1.props.openType = (_item_props11 = item.props) === null || _item_props11 === void 0 ? void 0 : _item_props11.edit.open_type;
77
- optbtn1.props.formKey = (_item_props12 = item.props) === null || _item_props12 === void 0 ? void 0 : _item_props12.edit.form_key;
78
- if ((_item_props13 = item.props) === null || _item_props13 === void 0 ? void 0 : _item_props13.edit.is_show) {
71
+ optbtn1.props.code = 'edit';
72
+ optbtn1.props.icon = 'iconbianji1';
73
+ optbtn1.props.command = 'edit';
74
+ optbtn1.props.content = (ref10 = item.props) === null || ref10 === void 0 ? void 0 : ref10.edit.content;
75
+ optbtn1.props.priorityProcess = (ref11 = item.props) === null || ref11 === void 0 ? void 0 : ref11.edit.priority_process;
76
+ optbtn1.props.openType = (ref12 = item.props) === null || ref12 === void 0 ? void 0 : ref12.edit.open_type;
77
+ optbtn1.props.formKey = (ref13 = item.props) === null || ref13 === void 0 ? void 0 : ref13.edit.form_key;
78
+ if ((ref14 = item.props) === null || ref14 === void 0 ? void 0 : ref14.edit.is_show) {
79
79
  item.children.push(optbtn1.toSchema());
80
80
  }
81
- (_item_props14 = item.props) === null || _item_props14 === void 0 ? void 0 : delete _item_props14.edit;
81
+ (ref15 = item.props) === null || ref15 === void 0 ? void 0 : delete ref15.edit;
82
82
  }
83
- if (((_item_props2 = item.props) === null || _item_props2 === void 0 ? void 0 : _item_props2.delete) !== undefined) {
84
- var _item_props15, _item_props16, _item_props17, _item_props18, _item_props19, _item_props20;
83
+ if (((ref2 = item.props) === null || ref2 === void 0 ? void 0 : ref2.delete) !== undefined) {
84
+ var ref16, ref17, ref18, ref19, ref20, ref21;
85
85
  var optbtn2 = new OperationButton.Designer();
86
- Object.defineProperty(optbtn2, "id", {
87
- value: "listPageDeleteBtnId"
86
+ Object.defineProperty(optbtn2, 'id', {
87
+ value: 'listPageDeleteBtnId'
88
88
  });
89
- optbtn2.props.code = "delete";
90
- optbtn2.props.icon = "iconlajitong";
91
- optbtn2.props.command = "delete";
92
- optbtn2.props.content = (_item_props15 = item.props) === null || _item_props15 === void 0 ? void 0 : _item_props15.delete.content;
93
- optbtn2.props.priorityProcess = (_item_props16 = item.props) === null || _item_props16 === void 0 ? void 0 : _item_props16.delete.priority_process;
94
- optbtn2.props.openType = (_item_props17 = item.props) === null || _item_props17 === void 0 ? void 0 : _item_props17.delete.open_type;
95
- optbtn2.props.formKey = (_item_props18 = item.props) === null || _item_props18 === void 0 ? void 0 : _item_props18.delete.form_key;
89
+ optbtn2.props.code = 'delete';
90
+ optbtn2.props.icon = 'iconlajitong';
91
+ optbtn2.props.command = 'delete';
92
+ optbtn2.props.content = (ref16 = item.props) === null || ref16 === void 0 ? void 0 : ref16.delete.content;
93
+ optbtn2.props.priorityProcess = (ref17 = item.props) === null || ref17 === void 0 ? void 0 : ref17.delete.priority_process;
94
+ optbtn2.props.openType = (ref18 = item.props) === null || ref18 === void 0 ? void 0 : ref18.delete.open_type;
95
+ optbtn2.props.formKey = (ref19 = item.props) === null || ref19 === void 0 ? void 0 : ref19.delete.form_key;
96
96
  optbtn2.props.needConfirm = true;
97
- optbtn2.props.confirmMessage = "确定要删除此条数据吗?";
98
- if ((_item_props19 = item.props) === null || _item_props19 === void 0 ? void 0 : _item_props19.delete.is_show) {
97
+ optbtn2.props.confirmMessage = '确定要删除此条数据吗?';
98
+ if ((ref20 = item.props) === null || ref20 === void 0 ? void 0 : ref20.delete.is_show) {
99
99
  item.children.push(optbtn2.toSchema());
100
100
  }
101
- (_item_props20 = item.props) === null || _item_props20 === void 0 ? void 0 : delete _item_props20.delete;
101
+ (ref21 = item.props) === null || ref21 === void 0 ? void 0 : delete ref21.delete;
102
102
  }
103
103
  }
104
104
  });
@@ -114,7 +114,7 @@ function conversion(schema, payload) {
114
114
  CONTROL_TYPE.DEPARTMENT2,
115
115
  CONTROL_TYPE.EMPLOYEE2,
116
116
  CONTROL_TYPE.DEPARTMENT,
117
- CONTROL_TYPE.EMPLOYEE
117
+ CONTROL_TYPE.EMPLOYEE,
118
118
  ].includes(schema.type)) {
119
119
  if (schema.props.open_multistage_filling === undefined) {
120
120
  schema.props.open_multistage_filling = true;
@@ -133,7 +133,7 @@ function conversion(schema, payload) {
133
133
  CONTROL_TYPE.DEPARTMENT2,
134
134
  CONTROL_TYPE.EMPLOYEE2,
135
135
  CONTROL_TYPE.DEPARTMENT,
136
- CONTROL_TYPE.EMPLOYEE
136
+ CONTROL_TYPE.EMPLOYEE,
137
137
  ].includes(item.children[0].type)) {
138
138
  if (item.children[0].props.open_multistage_filling === undefined) {
139
139
  item.children[0].props.open_multistage_filling = true;
@@ -4,8 +4,8 @@
4
4
  * @Date: 2023-02-16 14:45:22
5
5
  * @LastEditors: SuperLucky-Q
6
6
  * @LastEditTime: 2023-02-20 15:56:43
7
- */ import { loop, CONTROL_TYPE } from "@byteluck-fe/model-driven-shared";
8
- import { MetaAutoWidth } from "@byteluck-fe/model-driven-core";
7
+ */ import { loop, CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
8
+ import { MetaAutoWidth } from '@byteluck-fe/model-driven-core';
9
9
  var dataCleaner = function(schemaItems, payload) {
10
10
  var isArray = Array.isArray(schemaItems);
11
11
  var schemaArray = isArray ? schemaItems : [
@@ -21,9 +21,9 @@ function conversion(schema, payload) {
21
21
  if (schema.type === CONTROL_TYPE.SUBTABLE) {
22
22
  schema.props.headers.map(function(item) {
23
23
  item.props.meta_auto_width = new MetaAutoWidth();
24
- if (item.props.width_type === "px") {
24
+ if (item.props.width_type === 'px') {
25
25
  item.props.meta_auto_width.pc.width = item.props.width;
26
- item.props.meta_auto_width.pc.width_type = "px";
26
+ item.props.meta_auto_width.pc.width_type = 'px';
27
27
  }
28
28
  delete item.props.width;
29
29
  delete item.props.width_type;