@lingxiteam/assets 1.0.12 → 1.0.13-alpha.2

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.
Files changed (133) hide show
  1. package/es/dealDsl/index.d.ts +1 -2
  2. package/es/dealDsl/index.js +1 -2
  3. package/es/dealDsl/preprocess/common.js +179 -37
  4. package/es/dealDsl/preprocessDSL.d.ts +2 -14
  5. package/es/dealDsl/preprocessDSL.js +2 -42
  6. package/es/error/errorDisplay/Web/Drawer/Drawer.js +6 -2
  7. package/es/error/errorDisplay/Web/Drawer/Drawer.less +25 -0
  8. package/es/error/errorDisplay/Web/ErrorMsg/index.js +187 -43
  9. package/es/error/errorDisplay/Web/Notification/Notice.js +5 -1
  10. package/es/error/errorDisplay/Web/Notification/Notification.js +10 -3
  11. package/es/error/errorDisplay/Web/Notification/Notification.less +13 -1
  12. package/es/error/errorDisplay/Web/Notification/index.js +8 -9
  13. package/es/error/errorDisplay/Web/defaultGlobalConfig.js +3 -1
  14. package/es/error/errorDisplay/compUtils.js +17 -1
  15. package/es/error/errorDisplay/const.js +1 -1
  16. package/es/error/errorDisplay/http.js +1 -1
  17. package/es/error/index.js +3 -1
  18. package/es/index.d.ts +2 -2
  19. package/es/index.js +2 -2
  20. package/es/rootConfig/mobile/BusiComp.d.ts +5 -0
  21. package/es/rootConfig/mobile/BusiComp.js +32 -3
  22. package/es/rootConfig/mobile/MobileModal.d.ts +13 -5
  23. package/es/rootConfig/mobile/MobileModal.js +38 -9
  24. package/es/rootConfig/mobile/MobilePopover.d.ts +5 -0
  25. package/es/rootConfig/mobile/MobilePopover.js +31 -2
  26. package/es/rootConfig/mobile/page.d.ts +25 -5
  27. package/es/rootConfig/mobile/page.js +70 -10
  28. package/es/rootConfig/pc/BusiComp.d.ts +4 -0
  29. package/es/rootConfig/pc/BusiComp.js +64 -3
  30. package/es/rootConfig/pc/Drawer.d.ts +12 -0
  31. package/es/rootConfig/pc/Drawer.js +68 -2
  32. package/es/rootConfig/pc/Modal.d.ts +6 -0
  33. package/es/rootConfig/pc/Modal.js +62 -2
  34. package/es/rootConfig/pc/Popover.d.ts +5 -0
  35. package/es/rootConfig/pc/Popover.js +58 -2
  36. package/es/rootConfig/pc/page.d.ts +25 -10
  37. package/es/rootConfig/pc/page.js +103 -15
  38. package/es/rootConfig/todoActionList.d.ts +170 -50
  39. package/es/rootConfig/todoActionList.js +221 -70
  40. package/es/rootConfig/todoOptionList.d.ts +38 -6
  41. package/es/rootConfig/todoOptionList.js +44 -6
  42. package/es/security/encipher/sign.js +8 -1
  43. package/es/security/encipher/token.d.ts +3 -0
  44. package/es/security/encipher/token.js +30 -0
  45. package/es/security/index.d.ts +2 -0
  46. package/es/security/index.js +4 -1
  47. package/es/theme/bin/default/modalWidth.js +8 -0
  48. package/es/theme/bin/default/theme.js +282 -207
  49. package/es/theme/bin/default/theme.less +282 -207
  50. package/es/theme/bin/default/theme.scss +282 -207
  51. package/es/theme/build.js +9 -0
  52. package/es/theme/src/default/index.js +169 -61
  53. package/es/theme/utils/renderColors.js +13 -2
  54. package/es/utils/cookieUtil.js +36 -0
  55. package/lib/dealDsl/index.d.ts +1 -2
  56. package/lib/dealDsl/index.js +1 -20
  57. package/lib/dealDsl/preprocess/common.js +179 -37
  58. package/lib/dealDsl/preprocessDSL.d.ts +2 -14
  59. package/lib/dealDsl/preprocessDSL.js +4 -46
  60. package/lib/error/errorDisplay/Web/Drawer/Drawer.js +6 -2
  61. package/lib/error/errorDisplay/Web/Drawer/Drawer.less +25 -0
  62. package/lib/error/errorDisplay/Web/ErrorMsg/index.js +186 -43
  63. package/lib/error/errorDisplay/Web/Notification/Notice.js +5 -1
  64. package/lib/error/errorDisplay/Web/Notification/Notification.js +10 -3
  65. package/lib/error/errorDisplay/Web/Notification/Notification.less +13 -1
  66. package/lib/error/errorDisplay/Web/Notification/index.js +8 -9
  67. package/lib/error/errorDisplay/Web/defaultGlobalConfig.js +2 -1
  68. package/lib/error/errorDisplay/compUtils.js +19 -1
  69. package/lib/error/errorDisplay/const.js +1 -1
  70. package/lib/error/errorDisplay/http.js +1 -1
  71. package/lib/error/index.js +14 -0
  72. package/lib/index.d.ts +2 -2
  73. package/lib/index.js +14 -0
  74. package/lib/rootConfig/mobile/BusiComp.d.ts +5 -0
  75. package/lib/rootConfig/mobile/BusiComp.js +32 -3
  76. package/lib/rootConfig/mobile/MobileModal.d.ts +13 -5
  77. package/lib/rootConfig/mobile/MobileModal.js +38 -9
  78. package/lib/rootConfig/mobile/MobilePopover.d.ts +5 -0
  79. package/lib/rootConfig/mobile/MobilePopover.js +31 -2
  80. package/lib/rootConfig/mobile/page.d.ts +25 -5
  81. package/lib/rootConfig/mobile/page.js +70 -10
  82. package/lib/rootConfig/pc/BusiComp.d.ts +4 -0
  83. package/lib/rootConfig/pc/BusiComp.js +64 -3
  84. package/lib/rootConfig/pc/Drawer.d.ts +12 -0
  85. package/lib/rootConfig/pc/Drawer.js +68 -2
  86. package/lib/rootConfig/pc/Modal.d.ts +6 -0
  87. package/lib/rootConfig/pc/Modal.js +62 -2
  88. package/lib/rootConfig/pc/Popover.d.ts +5 -0
  89. package/lib/rootConfig/pc/Popover.js +58 -2
  90. package/lib/rootConfig/pc/page.d.ts +25 -10
  91. package/lib/rootConfig/pc/page.js +103 -15
  92. package/lib/rootConfig/todoActionList.d.ts +170 -50
  93. package/lib/rootConfig/todoActionList.js +221 -70
  94. package/lib/rootConfig/todoOptionList.d.ts +38 -6
  95. package/lib/rootConfig/todoOptionList.js +44 -6
  96. package/lib/security/encipher/sign.js +9 -1
  97. package/lib/security/encipher/token.d.ts +3 -0
  98. package/lib/security/encipher/token.js +38 -0
  99. package/lib/security/index.d.ts +2 -0
  100. package/lib/security/index.js +4 -1
  101. package/lib/theme/bin/default/modalWidth.js +15 -0
  102. package/lib/theme/bin/default/theme.js +282 -207
  103. package/lib/theme/bin/default/theme.less +282 -207
  104. package/lib/theme/bin/default/theme.scss +282 -207
  105. package/lib/theme/build.js +9 -0
  106. package/lib/theme/src/default/index.js +169 -61
  107. package/lib/theme/utils/renderColors.js +13 -2
  108. package/lib/utils/cookieUtil.js +43 -0
  109. package/package.json +1 -1
  110. package/es/dealDsl/events/actionObj.d.ts +0 -3
  111. package/es/dealDsl/events/actionObj.js +0 -6
  112. package/es/dealDsl/events/index.d.ts +0 -6
  113. package/es/dealDsl/events/index.js +0 -14
  114. package/es/dealDsl/preprocess/editor.d.ts +0 -9
  115. package/es/dealDsl/preprocess/editor.js +0 -21
  116. package/es/dealDsl/preprocess/engine.d.ts +0 -9
  117. package/es/dealDsl/preprocess/engine.js +0 -19
  118. package/es/theme/bin/cucc/theme.js +0 -275
  119. package/es/theme/bin/cucc/theme.less +0 -272
  120. package/es/theme/bin/cucc/theme.scss +0 -272
  121. package/es/theme/src/cucc/index.js +0 -131
  122. package/lib/dealDsl/events/actionObj.d.ts +0 -3
  123. package/lib/dealDsl/events/actionObj.js +0 -13
  124. package/lib/dealDsl/events/index.d.ts +0 -6
  125. package/lib/dealDsl/events/index.js +0 -21
  126. package/lib/dealDsl/preprocess/editor.d.ts +0 -9
  127. package/lib/dealDsl/preprocess/editor.js +0 -28
  128. package/lib/dealDsl/preprocess/engine.d.ts +0 -9
  129. package/lib/dealDsl/preprocess/engine.js +0 -26
  130. package/lib/theme/bin/cucc/theme.js +0 -277
  131. package/lib/theme/bin/cucc/theme.less +0 -272
  132. package/lib/theme/bin/cucc/theme.scss +0 -272
  133. package/lib/theme/src/cucc/index.js +0 -133
@@ -5,6 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _todoActionList = require("../todoActionList");
8
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
14
  var _default = {
9
15
  compLib: 'root',
10
16
  compType: -1,
@@ -16,7 +22,15 @@ var _default = {
16
22
  height: 300,
17
23
  placement: 'right',
18
24
  footer: 1,
19
- closeOnClickOverlay: false
25
+ layout: 'BlankLayout',
26
+ closeOnClickOverlay: false,
27
+ compState: [{
28
+ name: '业务主键',
29
+ code: 'bizId'
30
+ }, {
31
+ name: '业务场景',
32
+ code: 'sceneCode'
33
+ }]
20
34
  },
21
35
  style: {},
22
36
  setEvents: [],
@@ -25,7 +39,52 @@ var _default = {
25
39
  description: '',
26
40
  image: '',
27
41
  groupsName: 'root',
28
- todoActionList: (0, _todoActionList.getSystemTodoActionList)('pc'),
42
+ todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc', 'Drawer')), [{
43
+ key: 'previewFile',
44
+ label: '文件预览',
45
+ todoOptions: [{
46
+ key: 'fileId',
47
+ label: '文件ID',
48
+ type: 'SetExpression'
49
+ }, {
50
+ key: 'viewMode',
51
+ label: '预览方式',
52
+ type: 'RadioButton',
53
+ defaultValue: 'popUp',
54
+ props: {
55
+ options: [{
56
+ title: '页面弹窗',
57
+ value: 'popUp'
58
+ }, {
59
+ title: '新标签页',
60
+ value: 'newTab'
61
+ }, {
62
+ title: '新窗口',
63
+ value: 'window'
64
+ }]
65
+ }
66
+ }, {
67
+ key: 'modalWidth',
68
+ label: '窗口宽度',
69
+ type: 'SetExpression',
70
+ defaultValue: '960',
71
+ visibleFlag: 'viewMode',
72
+ labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
73
+ visibleFlagValue: ['window']
74
+ }, {
75
+ key: 'modalHeight',
76
+ label: '窗口高度',
77
+ type: 'SetExpression',
78
+ defaultValue: '648',
79
+ visibleFlag: 'viewMode',
80
+ labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
81
+ visibleFlagValue: ['window']
82
+ }],
83
+ classification: [{
84
+ label: '页面类',
85
+ value: 'page'
86
+ }]
87
+ }]),
29
88
  todoEvents: [{
30
89
  value: 'useEffect',
31
90
  label: '推拉门打开后'
@@ -74,6 +133,13 @@ var _default = {
74
133
  options: []
75
134
  }
76
135
  },
136
+ drawerTitle: {
137
+ label: '推拉门标题',
138
+ type: 'Input',
139
+ groupsName: '基础',
140
+ istodoBind: true,
141
+ props: {}
142
+ },
77
143
  width: {
78
144
  label: '推拉门宽度',
79
145
  type: 'Select',
@@ -11,6 +11,11 @@ declare const _default: {
11
11
  customHeight: number;
12
12
  closeOnClickOverlay: boolean;
13
13
  footer: number;
14
+ layout: string;
15
+ compState: {
16
+ name: string;
17
+ code: string;
18
+ }[];
14
19
  };
15
20
  style: {};
16
21
  setEvents: never[];
@@ -59,6 +64,7 @@ declare const _default: {
59
64
  label: string;
60
65
  type: string;
61
66
  groupsName: string;
67
+ istodoBind: boolean;
62
68
  props: {};
63
69
  };
64
70
  width: {
@@ -5,6 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _todoActionList = require("../todoActionList");
8
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
14
  var _default = {
9
15
  compLib: 'root',
10
16
  compType: -1,
@@ -17,7 +23,15 @@ var _default = {
17
23
  customWidth: 624,
18
24
  customHeight: 500,
19
25
  closeOnClickOverlay: false,
20
- footer: 1
26
+ footer: 1,
27
+ layout: 'BlankLayout',
28
+ compState: [{
29
+ name: '业务主键',
30
+ code: 'bizId'
31
+ }, {
32
+ name: '业务场景',
33
+ code: 'sceneCode'
34
+ }]
21
35
  },
22
36
  style: {},
23
37
  setEvents: [],
@@ -26,7 +40,52 @@ var _default = {
26
40
  description: '',
27
41
  image: '',
28
42
  groupsName: 'root',
29
- todoActionList: (0, _todoActionList.getSystemTodoActionList)('pc'),
43
+ todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc', 'Modal')), [{
44
+ key: 'previewFile',
45
+ label: '文件预览',
46
+ todoOptions: [{
47
+ key: 'fileId',
48
+ label: '文件ID',
49
+ type: 'SetExpression'
50
+ }, {
51
+ key: 'viewMode',
52
+ label: '预览方式',
53
+ type: 'RadioButton',
54
+ defaultValue: 'popUp',
55
+ props: {
56
+ options: [{
57
+ title: '页面弹窗',
58
+ value: 'popUp'
59
+ }, {
60
+ title: '新标签页',
61
+ value: 'newTab'
62
+ }, {
63
+ title: '新窗口',
64
+ value: 'window'
65
+ }]
66
+ }
67
+ }, {
68
+ key: 'modalWidth',
69
+ label: '窗口宽度',
70
+ type: 'SetExpression',
71
+ defaultValue: '960',
72
+ visibleFlag: 'viewMode',
73
+ labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
74
+ visibleFlagValue: ['window']
75
+ }, {
76
+ key: 'modalHeight',
77
+ label: '窗口高度',
78
+ type: 'SetExpression',
79
+ defaultValue: '648',
80
+ visibleFlag: 'viewMode',
81
+ labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
82
+ visibleFlagValue: ['window']
83
+ }],
84
+ classification: [{
85
+ label: '页面类',
86
+ value: 'page'
87
+ }]
88
+ }]),
30
89
  todoEvents: [{
31
90
  value: 'useEffect',
32
91
  label: '弹窗打开后'
@@ -79,6 +138,7 @@ var _default = {
79
138
  label: '弹窗标题',
80
139
  type: 'Input',
81
140
  groupsName: '基础',
141
+ istodoBind: true,
82
142
  props: {}
83
143
  },
84
144
  width: {
@@ -11,6 +11,11 @@ declare const _default: {
11
11
  customHeight: number;
12
12
  closeOnClickOverlay: boolean;
13
13
  footer: number;
14
+ layout: string;
15
+ compState: {
16
+ name: string;
17
+ code: string;
18
+ }[];
14
19
  };
15
20
  style: {};
16
21
  setEvents: never[];
@@ -5,6 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _todoActionList = require("../todoActionList");
8
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
14
  var _default = {
9
15
  compLib: 'root',
10
16
  compType: -1,
@@ -17,7 +23,12 @@ var _default = {
17
23
  customWidth: 624,
18
24
  customHeight: 500,
19
25
  closeOnClickOverlay: true,
20
- footer: 1
26
+ footer: 1,
27
+ layout: 'BlankLayout',
28
+ compState: [{
29
+ name: '业务主键',
30
+ code: 'bizId'
31
+ }]
21
32
  },
22
33
  style: {},
23
34
  setEvents: [],
@@ -26,7 +37,52 @@ var _default = {
26
37
  description: '',
27
38
  image: '',
28
39
  groupsName: 'root',
29
- todoActionList: (0, _todoActionList.getSystemTodoActionList)('pc'),
40
+ todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc')), [{
41
+ key: 'previewFile',
42
+ label: '文件预览',
43
+ todoOptions: [{
44
+ key: 'fileId',
45
+ label: '文件ID',
46
+ type: 'SetExpression'
47
+ }, {
48
+ key: 'viewMode',
49
+ label: '预览方式',
50
+ type: 'RadioButton',
51
+ defaultValue: 'popUp',
52
+ props: {
53
+ options: [{
54
+ title: '页面弹窗',
55
+ value: 'popUp'
56
+ }, {
57
+ title: '新标签页',
58
+ value: 'newTab'
59
+ }, {
60
+ title: '新窗口',
61
+ value: 'window'
62
+ }]
63
+ }
64
+ }, {
65
+ key: 'modalWidth',
66
+ label: '窗口宽度',
67
+ type: 'SetExpression',
68
+ defaultValue: '960',
69
+ visibleFlag: 'viewMode',
70
+ labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
71
+ visibleFlagValue: ['window']
72
+ }, {
73
+ key: 'modalHeight',
74
+ label: '窗口高度',
75
+ type: 'SetExpression',
76
+ defaultValue: '648',
77
+ visibleFlag: 'viewMode',
78
+ labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
79
+ visibleFlagValue: ['window']
80
+ }],
81
+ classification: [{
82
+ label: '页面类',
83
+ value: 'page'
84
+ }]
85
+ }]),
30
86
  todoEvents: [{
31
87
  value: 'useEffect',
32
88
  label: '浮窗加载完成'
@@ -9,6 +9,15 @@ declare const _default: {
9
9
  pageDynamicFlag: boolean;
10
10
  catalogItemId: number;
11
11
  ignoreLogin: boolean;
12
+ layout: string;
13
+ searchParams: {
14
+ name: string;
15
+ code: string;
16
+ }[];
17
+ compState: {
18
+ name: string;
19
+ code: string;
20
+ }[];
12
21
  };
13
22
  style: {};
14
23
  setEvents: never[];
@@ -84,6 +93,14 @@ declare const _default: {
84
93
  options: never[];
85
94
  };
86
95
  };
96
+ scenarioList: {
97
+ label: string;
98
+ type: string;
99
+ groupsName: string;
100
+ props: {
101
+ options: never[];
102
+ };
103
+ };
87
104
  remark: {
88
105
  label: string;
89
106
  type: string;
@@ -110,32 +127,30 @@ declare const _default: {
110
127
  required: boolean;
111
128
  };
112
129
  };
113
- labels: {
114
- label: string;
115
- type: string;
116
- groupsName: string;
117
- };
118
- compState: {
130
+ isMenu: {
119
131
  label: string;
120
132
  type: string;
121
133
  groupsName: string;
134
+ props: {
135
+ description: string;
136
+ };
122
137
  };
123
- searchParams: {
138
+ labels: {
124
139
  label: string;
125
140
  type: string;
126
141
  groupsName: string;
127
142
  };
128
- pageParams: {
143
+ compState: {
129
144
  label: string;
130
145
  type: string;
131
146
  groupsName: string;
132
147
  };
133
- publicState: {
148
+ searchParams: {
134
149
  label: string;
135
150
  type: string;
136
151
  groupsName: string;
137
152
  };
138
- hideNavBar: {
153
+ routerData: {
139
154
  label: string;
140
155
  type: string;
141
156
  groupsName: string;
@@ -5,6 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _todoActionList = require("../todoActionList");
8
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
9
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
12
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
14
  var _default = {
9
15
  compLib: 'root',
10
16
  compType: -1,
@@ -15,7 +21,28 @@ var _default = {
15
21
  pageLayout: 'BaseLayout',
16
22
  pageDynamicFlag: false,
17
23
  catalogItemId: -1,
18
- ignoreLogin: false
24
+ ignoreLogin: false,
25
+ layout: 'BaseLayout',
26
+ searchParams: [{
27
+ name: '业务主键',
28
+ code: 'bizId'
29
+ }, {
30
+ name: '业务场景',
31
+ code: 'sceneCode'
32
+ }, {
33
+ name: '业务数据',
34
+ code: 'bizData'
35
+ }],
36
+ compState: [{
37
+ name: '业务主键',
38
+ code: 'bizId'
39
+ }, {
40
+ name: '业务场景',
41
+ code: 'sceneCode'
42
+ }, {
43
+ name: '业务数据',
44
+ code: 'bizData'
45
+ }]
19
46
  },
20
47
  style: {},
21
48
  setEvents: [],
@@ -24,7 +51,52 @@ var _default = {
24
51
  description: '',
25
52
  image: '',
26
53
  groupsName: 'root',
27
- todoActionList: (0, _todoActionList.getSystemTodoActionList)('pc'),
54
+ todoActionList: [].concat(_toConsumableArray((0, _todoActionList.getSystemTodoActionList)('pc')), [{
55
+ key: 'previewFile',
56
+ label: '文件预览',
57
+ todoOptions: [{
58
+ key: 'fileId',
59
+ label: '文件ID',
60
+ type: 'SetExpression'
61
+ }, {
62
+ key: 'viewMode',
63
+ label: '预览方式',
64
+ type: 'RadioButton',
65
+ defaultValue: 'popUp',
66
+ props: {
67
+ options: [{
68
+ title: '页面弹窗',
69
+ value: 'popUp'
70
+ }, {
71
+ title: '新标签页',
72
+ value: 'newTab'
73
+ }, {
74
+ title: '新窗口',
75
+ value: 'window'
76
+ }]
77
+ }
78
+ }, {
79
+ key: 'modalWidth',
80
+ label: '窗口宽度',
81
+ type: 'SetExpression',
82
+ defaultValue: '960',
83
+ visibleFlag: 'viewMode',
84
+ labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
85
+ visibleFlagValue: ['window']
86
+ }, {
87
+ key: 'modalHeight',
88
+ label: '窗口高度',
89
+ type: 'SetExpression',
90
+ defaultValue: '648',
91
+ visibleFlag: 'viewMode',
92
+ labelTip: '不同浏览器有不同的最小限制,请避免设置过小尺寸,当不设置宽高时,默认为全屏',
93
+ visibleFlagValue: ['window']
94
+ }],
95
+ classification: [{
96
+ label: '页面类',
97
+ value: 'page'
98
+ }]
99
+ }]),
28
100
  todoEvents: [{
29
101
  value: 'useEffect',
30
102
  label: '页面加载完成'
@@ -91,6 +163,14 @@ var _default = {
91
163
  options: []
92
164
  }
93
165
  },
166
+ scenarioList: {
167
+ label: '适用场景',
168
+ type: 'SelectScenarioPopover',
169
+ groupsName: '基础',
170
+ props: {
171
+ options: []
172
+ }
173
+ },
94
174
  remark: {
95
175
  label: '描述',
96
176
  type: 'Input',
@@ -117,6 +197,14 @@ var _default = {
117
197
  required: false
118
198
  }
119
199
  },
200
+ isMenu: {
201
+ label: '设置为菜单',
202
+ type: 'MenuSwitch',
203
+ groupsName: '基础',
204
+ props: {
205
+ description: '开启后预览页面将展示该菜单,在同步时也会将该页面当作菜单同步到基础门户'
206
+ }
207
+ },
120
208
  labels: {
121
209
  label: '标签',
122
210
  type: 'ChooseTag',
@@ -132,20 +220,20 @@ var _default = {
132
220
  type: 'ParamsDefine',
133
221
  groupsName: 'URL参数'
134
222
  },
135
- pageParams: {
136
- label: '页面入参',
223
+ // pageParams: {
224
+ // label: '页面入参',
225
+ // type: 'ParamsDefine',
226
+ // groupsName: '页面入参',
227
+ // },
228
+ // publicState: {
229
+ // label: '页面出参',
230
+ // type: 'ParamsDefine',
231
+ // groupsName: '页面出参',
232
+ // },
233
+ routerData: {
234
+ label: '路由数据',
137
235
  type: 'ParamsDefine',
138
- groupsName: '页面入参'
139
- },
140
- publicState: {
141
- label: '页面出参',
142
- type: 'ParamsDefine',
143
- groupsName: '页面出参'
144
- },
145
- hideNavBar: {
146
- label: '隐藏导航条',
147
- type: 'Switch',
148
- groupsName: '其他'
236
+ groupsName: '路由数据'
149
237
  }
150
238
  },
151
239
  todoStyles: {}