@dckj-npm/dc-material 0.1.376 → 0.1.377

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 (42) hide show
  1. package/build/docs/colorful-button.html +3 -3
  2. package/build/docs/colorful-input.html +3 -3
  3. package/build/docs/index.html +3 -3
  4. package/build/docs/teletext-list.html +3 -3
  5. package/build/docs/umi.6f6bf535.js +1 -0
  6. package/build/docs/{umi.6743fcd4.css → umi.9770df27.css} +1 -1
  7. package/build/docs/~demos/colorful-button-demo.html +3 -3
  8. package/build/docs/~demos/colorful-input-demo.html +3 -3
  9. package/build/docs/~demos/teletext-list-demo-1.html +3 -3
  10. package/build/docs/~demos/teletext-list-demo.html +3 -3
  11. package/build/lowcode/assets-daily.json +13 -13
  12. package/build/lowcode/assets-dev.json +2 -2
  13. package/build/lowcode/assets-prod.json +13 -13
  14. package/build/lowcode/meta.design.js +1 -1
  15. package/build/lowcode/meta.js +1 -1
  16. package/build/lowcode/render/default/view.css +1 -1
  17. package/build/lowcode/render/default/view.js +1 -1
  18. package/build/lowcode/view.css +1 -1
  19. package/build/lowcode/view.js +1 -1
  20. package/dist/BizComps.css +1 -1
  21. package/dist/BizComps.js +2 -2
  22. package/dist/BizComps.js.map +1 -1
  23. package/es/components/teletext-list/teletext-list-item.d.ts +14 -77
  24. package/es/components/teletext-list/teletext-list-item.js +153 -165
  25. package/es/components/teletext-list/teletext-list-item.scss +53 -4
  26. package/es/components/teletext-list/teletext-list.d.ts +60 -4
  27. package/es/components/teletext-list/teletext-list.js +55 -37
  28. package/lib/components/teletext-list/teletext-list-item.d.ts +14 -77
  29. package/lib/components/teletext-list/teletext-list-item.js +153 -164
  30. package/lib/components/teletext-list/teletext-list-item.scss +53 -4
  31. package/lib/components/teletext-list/teletext-list.d.ts +60 -4
  32. package/lib/components/teletext-list/teletext-list.js +55 -37
  33. package/lowcode/teletext-list/meta.ts +457 -703
  34. package/lowcode/teletext-list/meta.ts.bak +821 -0
  35. package/lowcode_es/meta.js +1 -1
  36. package/lowcode_es/teletext-list/meta.js +689 -598
  37. package/lowcode_es/teletext-list/meta.ts.bak +821 -0
  38. package/lowcode_lib/meta.js +1 -1
  39. package/lowcode_lib/teletext-list/meta.js +689 -598
  40. package/lowcode_lib/teletext-list/meta.ts.bak +821 -0
  41. package/package.json +3 -3
  42. package/build/docs/umi.d20b1d99.js +0 -1
@@ -32,397 +32,717 @@ var TeletextListMeta = {
32
32
  subName: ''
33
33
  },
34
34
  configure: {
35
- props: [{
36
- title: {
37
- label: {
38
- type: 'i18n',
39
- 'en-US': 'type',
40
- 'zh-CN': '类型'
35
+ props: [
36
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
37
+ // 分组一:数据与内容
38
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
39
+ {
40
+ type: 'group',
41
+ title: '数据与内容',
42
+ display: 'accordion',
43
+ items: [{
44
+ title: '标题',
45
+ name: 'title',
46
+ description: '列表头部标题文本',
47
+ setter: {
48
+ componentName: 'StringSetter',
49
+ isRequired: false,
50
+ initialValue: ''
41
51
  }
42
- },
43
- name: 'type',
44
- description: '类型',
45
- setter: {
46
- componentName: 'RadioGroupSetter',
47
- props: {
48
- dataSource: [{
49
- label: '图文',
50
- value: 'textAndImg'
51
- }, {
52
- label: '仅有图片',
53
- value: 'imgOnly'
54
- }, {
55
- label: '仅有文字',
56
- value: 'textOnly'
57
- }],
58
- options: [{
59
- label: '图文',
60
- value: 'textAndImg'
61
- }, {
62
- label: '仅有图片',
63
- value: 'imgOnly'
64
- }, {
65
- label: '仅有文字',
66
- value: 'textOnly'
67
- }]
52
+ }, {
53
+ title: '更多文字',
54
+ name: 'moreText',
55
+ description: '更多按钮文字,为空时不显示',
56
+ setter: {
57
+ componentName: 'StringSetter',
58
+ isRequired: false,
59
+ initialValue: ''
60
+ }
61
+ }, {
62
+ title: '文本槽位数',
63
+ name: 'textLines',
64
+ description: '每项渲染几个文本字段:2=标题+说明,3=加text3,4=加text3+text4。这是"显示几格",不是"每格显示几行"——行数截断请到"标题/说明文字样式"分组修改"最大行数"。',
65
+ setter: {
66
+ componentName: 'NumberSetter',
67
+ isRequired: false,
68
+ initialValue: 2,
69
+ defaultValue: 2,
70
+ props: {
71
+ min: 2,
72
+ max: 4
73
+ }
68
74
  },
69
- initialValue: 'textAndImg'
70
- }
71
- }, {
72
- title: {
73
- label: {
74
- type: 'i18n',
75
- 'en-US': 'imagePlacement',
76
- 'zh-CN': '图片位置'
75
+ extraProps: {
76
+ setValue: function setValue(target, value) {
77
+ var _target$parent, _target$parent$items;
78
+ target.getProps().setPropValue('textLines', value);
79
+ var dataListBindProp = target === null || target === void 0 ? void 0 : (_target$parent = target.parent) === null || _target$parent === void 0 ? void 0 : (_target$parent$items = _target$parent.items) === null || _target$parent$items === void 0 ? void 0 : _target$parent$items.find(function (item) {
80
+ return item.name === 'dataListBind';
81
+ });
82
+ if (dataListBindProp !== null && dataListBindProp !== void 0 && dataListBindProp.setter) {
83
+ var baseChildren = [{
84
+ label: '图片链接',
85
+ value: 'image'
86
+ }, {
87
+ label: '类型',
88
+ value: 'itemType'
89
+ }, {
90
+ label: '标题',
91
+ value: 'title'
92
+ }, {
93
+ label: '说明',
94
+ value: 'description'
95
+ }];
96
+ var textChildren = value > 2 ? Array.from({
97
+ length: value - 2
98
+ }).map(function (_, i) {
99
+ return {
100
+ label: "\u6587\u672C" + (i + 3),
101
+ value: "text" + (i + 3)
102
+ };
103
+ }) : [];
104
+ dataListBindProp.setter.props.attributes[0].children = [].concat(baseChildren, textChildren);
105
+ }
106
+ }
77
107
  }
78
- },
79
- name: 'imagePlacement',
80
- description: '图片位置',
81
- setter: {
82
- componentName: 'RadioGroupSetter',
83
- props: {
84
- dataSource: [{
85
- label: '',
86
- value: 'left'
87
- }, {
88
- label: '',
89
- value: 'right'
90
- }, {
91
- label: '',
92
- value: 'top'
93
- }, {
94
- label: '',
95
- value: 'bottom'
96
- }, {
97
- label: '',
98
- value: 'none'
99
- }],
100
- options: [{
101
- label: '左',
102
- value: 'left'
103
- }, {
104
- label: '右',
105
- value: 'right'
106
- }, {
107
- label: '上',
108
- value: 'top'
109
- }, {
110
- label: '下',
111
- value: 'bottom'
112
- }, {
113
- label: '无',
114
- value: 'none'
115
- }]
108
+ }, {
109
+ title: '数据源绑定',
110
+ name: 'dataListBind',
111
+ setter: {
112
+ componentName: 'SetterFormVariable',
113
+ props: {
114
+ attributes: [{
115
+ label: '图文数据',
116
+ value: 'dataList',
117
+ children: [{
118
+ label: '图片链接',
119
+ value: 'image'
120
+ }, {
121
+ label: '行类型(值为"开关"时该行显示开关控件)',
122
+ value: 'itemType'
123
+ }, {
124
+ label: '标题',
125
+ value: 'title'
126
+ }, {
127
+ label: '说明',
128
+ value: 'description'
129
+ }]
130
+ }]
131
+ }
116
132
  },
117
- initialValue: 'left'
118
- },
119
- extraProps: {
120
- // 引擎已自动 setPropValue('imagePlacement', value),无需再做任何额外写入
121
- // 之前的快照-还原逻辑反而触发多余的 MobX 响应链,导致 dataList 被覆盖
122
- }
123
- }, {
124
- title: '图片宽度',
125
- name: 'imgWidth',
126
- description: '图片宽度',
127
- setter: {
128
- componentName: 'NumberSetter',
129
- isRequired: false,
130
- initialValue: 100
131
- },
132
- extraProps: {
133
- /**
134
- * ignoreDefaultValue: 防止布局面板修改 Image 子节点 style 后,
135
- * 引擎 remount SettingFieldView 时 initDefaultValue 把 imgWidth 重置为 100。
136
- * 与 dataList 同理:只要 prop 有值就永远不应被 initialValue 覆盖。
137
- */
138
- ignoreDefaultValue: function ignoreDefaultValue() {
139
- return true;
133
+ extraProps: {}
134
+ }, {
135
+ title: {
136
+ label: {
137
+ type: 'i18n',
138
+ 'en-US': 'dataList',
139
+ 'zh-CN': '静态数据'
140
+ },
141
+ tip: 'dataList | 静态数据'
140
142
  },
141
- getValue: function getValue(target, value) {
142
- var _target$node, _target$node$schema, _target$node$schema$p;
143
- // 优先使用引擎传入的当前 prop 值
144
- var parsed = parsePxNumber(value);
145
- if (parsed !== undefined) return parsed;
146
- // 二级兜底:从 schema 快照读取(防止引擎传入 undefined 时丢失已保存的值)
147
- var fromSchema = parsePxNumber(target === null || target === void 0 ? void 0 : (_target$node = target.node) === null || _target$node === void 0 ? void 0 : (_target$node$schema = _target$node.schema) === null || _target$node$schema === void 0 ? void 0 : (_target$node$schema$p = _target$node$schema.props) === null || _target$node$schema$p === void 0 ? void 0 : _target$node$schema$p.imgWidth);
148
- if (fromSchema !== undefined) return fromSchema;
149
- return 100;
150
- }
151
- }
152
- }, {
153
- title: '图片高度',
154
- name: 'imgHeight',
155
- description: '图片高度',
156
- setter: {
157
- componentName: 'NumberSetter',
158
- isRequired: false,
159
- initialValue: 100
160
- },
161
- extraProps: {
162
- ignoreDefaultValue: function ignoreDefaultValue() {
163
- return true;
143
+ name: 'dataList',
144
+ description: '列表静态数据,绑定数据源后此项被覆盖',
145
+ setter: {
146
+ componentName: 'ArraySetter',
147
+ props: {
148
+ itemSetter: {
149
+ componentName: 'ObjectSetter',
150
+ props: {
151
+ config: {
152
+ items: [{
153
+ title: {
154
+ label: {
155
+ type: 'i18n',
156
+ 'en-US': 'title',
157
+ 'zh-CN': '标题'
158
+ }
159
+ },
160
+ name: 'title',
161
+ setter: {
162
+ componentName: 'StringSetter',
163
+ isRequired: false,
164
+ initialValue: ''
165
+ }
166
+ }, {
167
+ title: {
168
+ label: {
169
+ type: 'i18n',
170
+ 'en-US': 'image',
171
+ 'zh-CN': '图片地址'
172
+ }
173
+ },
174
+ name: 'image',
175
+ setter: {
176
+ componentName: 'CustomImageSetter',
177
+ isRequired: false,
178
+ initialValue: ''
179
+ }
180
+ }, {
181
+ title: {
182
+ label: {
183
+ type: 'i18n',
184
+ 'en-US': 'description',
185
+ 'zh-CN': '描述'
186
+ }
187
+ },
188
+ name: 'description',
189
+ setter: {
190
+ componentName: 'StringSetter',
191
+ isRequired: false,
192
+ initialValue: ''
193
+ }
194
+ }, {
195
+ title: {
196
+ label: {
197
+ type: 'i18n',
198
+ 'en-US': 'text3',
199
+ 'zh-CN': '文本3'
200
+ }
201
+ },
202
+ name: 'text3',
203
+ description: '文本槽位数 ≥ 3 时显示',
204
+ setter: {
205
+ componentName: 'StringSetter',
206
+ isRequired: false,
207
+ initialValue: ''
208
+ }
209
+ }, {
210
+ title: {
211
+ label: {
212
+ type: 'i18n',
213
+ 'en-US': 'text4',
214
+ 'zh-CN': '文本4'
215
+ }
216
+ },
217
+ name: 'text4',
218
+ description: '文本槽位数 = 4 时显示',
219
+ setter: {
220
+ componentName: 'StringSetter',
221
+ isRequired: false,
222
+ initialValue: ''
223
+ }
224
+ }, {
225
+ title: {
226
+ label: {
227
+ type: 'i18n',
228
+ 'en-US': 'itemType',
229
+ 'zh-CN': '行类型'
230
+ }
231
+ },
232
+ name: 'itemType',
233
+ description: '值为"开关"时该行显示开关控件,留空为默认文字行',
234
+ setter: {
235
+ componentName: 'SelectSetter',
236
+ props: {
237
+ options: [{
238
+ label: '默认(文字行)',
239
+ value: ''
240
+ }, {
241
+ label: '开关',
242
+ value: '开关'
243
+ }]
244
+ },
245
+ initialValue: ''
246
+ }
247
+ }],
248
+ extraSetter: {
249
+ componentName: 'MixedSetter',
250
+ isRequired: false,
251
+ props: {}
252
+ }
253
+ }
254
+ }
255
+ }
256
+ },
257
+ initialValue: function initialValue(target) {
258
+ var _target$node$schema$p, _target$node, _target$node$schema, _target$node$schema$p2, _target$getProps, _target$getProps$call, _target$getProps$call2;
259
+ var existing = (_target$node$schema$p = target === null || target === void 0 ? void 0 : (_target$node = target.node) === null || _target$node === void 0 ? void 0 : (_target$node$schema = _target$node.schema) === null || _target$node$schema === void 0 ? void 0 : (_target$node$schema$p2 = _target$node$schema.props) === null || _target$node$schema$p2 === void 0 ? void 0 : _target$node$schema$p2.dataList) !== null && _target$node$schema$p !== void 0 ? _target$node$schema$p : target === null || target === void 0 ? void 0 : (_target$getProps = target.getProps) === null || _target$getProps === void 0 ? void 0 : (_target$getProps$call = _target$getProps.call(target)) === null || _target$getProps$call === void 0 ? void 0 : (_target$getProps$call2 = _target$getProps$call.getPropValue) === null || _target$getProps$call2 === void 0 ? void 0 : _target$getProps$call2.call(_target$getProps$call, 'dataList');
260
+ if (existing !== undefined) return existing;
261
+ return DEFAULT_DATA_LIST;
262
+ }
164
263
  },
165
- getValue: function getValue(target, value) {
166
- var _target$node2, _target$node2$schema, _target$node2$schema$;
167
- var parsed = parsePxNumber(value);
168
- if (parsed !== undefined) return parsed;
169
- var fromSchema = parsePxNumber(target === null || target === void 0 ? void 0 : (_target$node2 = target.node) === null || _target$node2 === void 0 ? void 0 : (_target$node2$schema = _target$node2.schema) === null || _target$node2$schema === void 0 ? void 0 : (_target$node2$schema$ = _target$node2$schema.props) === null || _target$node2$schema$ === void 0 ? void 0 : _target$node2$schema$.imgHeight);
170
- if (fromSchema !== undefined) return fromSchema;
171
- return 100;
264
+ extraProps: {
265
+ ignoreDefaultValue: function ignoreDefaultValue() {
266
+ return true;
267
+ },
268
+ getValue: function getValue(target, currentValue) {
269
+ var _target$node2, _target$node2$schema, _target$node2$schema$;
270
+ if (currentValue !== undefined) return currentValue;
271
+ var fromSchema = target === null || target === void 0 ? void 0 : (_target$node2 = target.node) === null || _target$node2 === void 0 ? void 0 : (_target$node2$schema = _target$node2.schema) === null || _target$node2$schema === void 0 ? void 0 : (_target$node2$schema$ = _target$node2$schema.props) === null || _target$node2$schema$ === void 0 ? void 0 : _target$node2$schema$.dataList;
272
+ if (fromSchema !== undefined) return fromSchema;
273
+ return undefined;
274
+ }
172
275
  }
173
- }
174
- }, {
175
- title: '数据源绑定',
176
- name: 'dataListBind',
177
- setter: {
178
- componentName: 'SetterFormVariable',
179
- props: {
180
- attributes: [{
181
- label: '图文数据',
182
- value: 'dataList',
183
- children: [{
184
- label: '图片链接',
185
- value: 'image'
276
+ }, {
277
+ title: '类型',
278
+ name: 'type',
279
+ description: '列表类型',
280
+ setter: {
281
+ componentName: 'RadioGroupSetter',
282
+ props: {
283
+ options: [{
284
+ label: '图文',
285
+ value: 'textAndImg'
186
286
  }, {
187
- label: '类型',
188
- value: 'itemType'
287
+ label: '仅图片',
288
+ value: 'imgOnly'
189
289
  }, {
190
- label: '标题',
191
- value: 'title'
290
+ label: '仅文字',
291
+ value: 'textOnly'
292
+ }]
293
+ },
294
+ initialValue: 'textAndImg'
295
+ }
296
+ }, {
297
+ title: '是否购物车列表',
298
+ name: 'isShoppingCart',
299
+ setter: {
300
+ componentName: 'BoolSetter',
301
+ isRequired: true,
302
+ initialValue: false
303
+ }
304
+ }, {
305
+ title: '是否愿望单列表',
306
+ name: 'isWishList',
307
+ setter: {
308
+ componentName: 'BoolSetter',
309
+ isRequired: true,
310
+ initialValue: false
311
+ }
312
+ }, {
313
+ title: '是否用户菜单列表',
314
+ name: 'isUserMenu',
315
+ setter: {
316
+ componentName: 'BoolSetter',
317
+ isRequired: true,
318
+ initialValue: false
319
+ }
320
+ }]
321
+ },
322
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
323
+ // 分组二:列表布局
324
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
325
+ {
326
+ type: 'group',
327
+ title: '列表布局',
328
+ display: 'accordion',
329
+ items: [{
330
+ title: '子项分布',
331
+ name: 'itemRowAlign',
332
+ description: '列方向或横向一行滚动',
333
+ setter: {
334
+ componentName: 'RadioGroupSetter',
335
+ props: {
336
+ options: [{
337
+ label: '纵向列表',
338
+ value: 'column'
192
339
  }, {
193
- label: '说明',
194
- value: 'description'
340
+ label: '横向滚动',
341
+ value: 'row'
195
342
  }]
196
- }]
343
+ },
344
+ initialValue: 'column'
197
345
  }
198
- },
199
- extraProps: {
200
- // 引擎已自动 node.setPropValue('dataListBind', value),无需重复写入
201
- }
202
- }, {
203
- title: '标题',
204
- name: 'title',
205
- description: '标题',
206
- setter: {
207
- componentName: 'StringSetter',
208
- isRequired: false,
209
- initialValue: ''
210
- }
211
- }, {
212
- title: {
213
- label: {
214
- type: 'i18n',
215
- 'en-US': 'moreText',
216
- 'zh-CN': '更多文字'
217
- },
218
- tip: 'moreText | 更多文字'
219
- },
220
- name: 'moreText',
221
- description: '更多文字',
222
- setter: {
223
- componentName: 'StringSetter',
224
- isRequired: false,
225
- initialValue: ''
226
- }
227
- }, {
228
- title: '文字行数',
229
- name: 'textLines',
230
- description: '文字行数',
231
- setter: {
232
- componentName: 'NumberSetter',
233
- isRequired: false,
234
- initialValue: 2,
235
- defaultValue: 2,
236
- props: {
237
- min: 2,
238
- max: 4
346
+ }, {
347
+ title: '子项列数',
348
+ name: 'itemColumns',
349
+ description: '纵向模式时的列数(1-4)',
350
+ setter: {
351
+ componentName: 'NumberSetter',
352
+ isRequired: false,
353
+ initialValue: function initialValue(target) {
354
+ var p = target.getProps().getPropValue('imagePlacement');
355
+ return p === 'top' || p === 'bottom' ? 2 : 1;
356
+ },
357
+ defaultValue: function defaultValue(target) {
358
+ var p = target.getProps().getPropValue('imagePlacement');
359
+ return p === 'top' || p === 'bottom' ? 2 : 1;
360
+ },
361
+ props: {
362
+ min: 1,
363
+ max: 4
364
+ }
239
365
  }
240
- },
241
- extraProps: {
242
- setValue: function setValue(target, value) {
243
- var _target$node3, _schemaChildren$filte, _target$parent, _target$parent$items;
244
- target.getProps().setPropValue('textLines', value);
245
- var schema = target === null || target === void 0 ? void 0 : (_target$node3 = target.node) === null || _target$node3 === void 0 ? void 0 : _target$node3.schema;
246
- var node = target === null || target === void 0 ? void 0 : target.node;
247
- var schemaChildren = Array.isArray(schema === null || schema === void 0 ? void 0 : schema.children) ? schema.children : [];
248
-
249
- // 获取当前文本组件数量
250
- var currentLength = ((_schemaChildren$filte = schemaChildren.filter(function (child) {
251
- var _child$props, _child$props$key;
252
- return child.componentName === 'NextText' && (child === null || child === void 0 ? void 0 : (_child$props = child.props) === null || _child$props === void 0 ? void 0 : (_child$props$key = _child$props.key) === null || _child$props$key === void 0 ? void 0 : _child$props$key.startsWith('text-'));
253
- })) === null || _schemaChildren$filte === void 0 ? void 0 : _schemaChildren$filte.length) || 0;
254
- if (value > currentLength) {
255
- // 需要添加新的文本组件
256
- for (var i = currentLength + 1; i <= value; i++) {
257
- var _node$children;
258
- var newChild = {
259
- componentName: 'NextText',
260
- props: {
261
- type: 'inherit',
262
- children: '基于 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台',
263
- key: "text-" + i
264
- }
265
- };
266
- node === null || node === void 0 ? void 0 : (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children.push(newChild);
267
- }
268
- } else if (value < currentLength) {
269
- var _node$children2, _node$children2$forEa;
270
- // 收集需要移除的节点,再调用 child.remove() 通过引擎 API 逐个删除
271
- // 避免 node.children = [...] 直接赋值(IPublicModelNodeChildren 不支持重新赋值)
272
- var nodesToRemove = [];
273
- node === null || node === void 0 ? void 0 : (_node$children2 = node.children) === null || _node$children2 === void 0 ? void 0 : (_node$children2$forEa = _node$children2.forEach) === null || _node$children2$forEa === void 0 ? void 0 : _node$children2$forEa.call(_node$children2, function (child) {
274
- var _child$schema, _child$schema$props;
275
- var key = child === null || child === void 0 ? void 0 : (_child$schema = child.schema) === null || _child$schema === void 0 ? void 0 : (_child$schema$props = _child$schema.props) === null || _child$schema$props === void 0 ? void 0 : _child$schema$props.key;
276
- if ((child === null || child === void 0 ? void 0 : child.componentName) === 'NextText' && typeof key === 'string' && key.startsWith('text-')) {
277
- var order = Number(key.split('-')[1]);
278
- if (!Number.isNaN(order) && order > value) {
279
- nodesToRemove.push(child);
280
- }
281
- }
282
- });
283
- nodesToRemove.forEach(function (child) {
284
- var _child$remove;
285
- return child === null || child === void 0 ? void 0 : (_child$remove = child.remove) === null || _child$remove === void 0 ? void 0 : _child$remove.call(child);
286
- });
366
+ }, {
367
+ title: '子项间距',
368
+ name: 'itemGap',
369
+ description: '子项之间的间距(px)',
370
+ setter: {
371
+ componentName: 'NumberSetter',
372
+ isRequired: false,
373
+ initialValue: 10,
374
+ defaultValue: 10,
375
+ props: {
376
+ min: 0
287
377
  }
288
-
289
- // 更新数据源绑定的配置
290
- var dataListBindProp = target === null || target === void 0 ? void 0 : (_target$parent = target.parent) === null || _target$parent === void 0 ? void 0 : (_target$parent$items = _target$parent.items) === null || _target$parent$items === void 0 ? void 0 : _target$parent$items.find(function (item) {
291
- return item.name === 'dataListBind';
292
- });
293
- if (dataListBindProp && dataListBindProp.setter) {
294
- var baseChildren = [{
295
- label: '图片链接',
296
- value: 'image'
378
+ }
379
+ }]
380
+ },
381
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
382
+ // 分组三:列表项样式
383
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
384
+ {
385
+ type: 'group',
386
+ title: '子项样式',
387
+ display: 'accordion',
388
+ items: [{
389
+ title: '内边距',
390
+ name: 'itemPadding',
391
+ description: '列表项内边距(px)',
392
+ setter: {
393
+ componentName: 'NumberSetter',
394
+ isRequired: false,
395
+ initialValue: 0,
396
+ defaultValue: 0,
397
+ props: {
398
+ min: 0
399
+ }
400
+ }
401
+ }, {
402
+ title: '背景颜色',
403
+ name: 'itemBgColor',
404
+ description: '列表项背景颜色',
405
+ setter: {
406
+ componentName: 'ColorSetter',
407
+ isRequired: false,
408
+ initialValue: '#ffffff'
409
+ }
410
+ }, {
411
+ title: '圆角',
412
+ name: 'itemBorderRadius',
413
+ description: '列表项圆角(px)',
414
+ setter: {
415
+ componentName: 'NumberSetter',
416
+ isRequired: false,
417
+ initialValue: 0,
418
+ defaultValue: 0,
419
+ props: {
420
+ min: 0
421
+ }
422
+ }
423
+ }, {
424
+ title: '边框颜色',
425
+ name: 'itemBorderColor',
426
+ description: '列表项边框颜色',
427
+ setter: {
428
+ componentName: 'ColorSetter',
429
+ isRequired: false,
430
+ initialValue: ''
431
+ }
432
+ }, {
433
+ title: '边框宽度',
434
+ name: 'itemBorderWidth',
435
+ description: '列表项边框宽度(px),设置边框颜色后生效',
436
+ setter: {
437
+ componentName: 'NumberSetter',
438
+ isRequired: false,
439
+ initialValue: 0,
440
+ defaultValue: 0,
441
+ props: {
442
+ min: 0,
443
+ max: 10
444
+ }
445
+ }
446
+ }]
447
+ },
448
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
449
+ // 分组四:图片样式
450
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
451
+ {
452
+ type: 'group',
453
+ title: '图片样式',
454
+ display: 'accordion',
455
+ items: [{
456
+ title: '图片位置',
457
+ name: 'imagePlacement',
458
+ setter: {
459
+ componentName: 'RadioGroupSetter',
460
+ props: {
461
+ options: [{
462
+ label: '左',
463
+ value: 'left'
464
+ }, {
465
+ label: '右',
466
+ value: 'right'
467
+ }, {
468
+ label: '上',
469
+ value: 'top'
297
470
  }, {
298
- label: '类型',
299
- value: 'itemType'
471
+ label: '',
472
+ value: 'bottom'
473
+ }, {
474
+ label: '无',
475
+ value: 'none'
476
+ }]
477
+ },
478
+ initialValue: 'left'
479
+ },
480
+ extraProps: {}
481
+ }, {
482
+ title: '图文对齐',
483
+ name: 'textAlign',
484
+ description: '图片与文字的交叉轴对齐方式',
485
+ setter: {
486
+ componentName: 'RadioGroupSetter',
487
+ props: {
488
+ options: [{
489
+ label: '顶对齐',
490
+ value: 'flex-start'
300
491
  }, {
301
- label: '标题',
302
- value: 'title'
492
+ label: '居中',
493
+ value: 'center'
303
494
  }, {
304
- label: '说明',
305
- value: 'description'
306
- }];
307
-
308
- // 只有当value大于2时才添加额外的文本字段
309
- var textChildren = value > 2 ? Array.from({
310
- length: value - 2
311
- }).map(function (_, index) {
312
- return {
313
- label: "\u6587\u672C" + (index + 3),
314
- value: "text" + (index + 3)
315
- };
316
- }) : [];
317
-
318
- // 更新setter的attributes
319
- dataListBindProp.setter.props.attributes[0].children = [].concat(baseChildren, textChildren);
495
+ label: '底对齐',
496
+ value: 'flex-end'
497
+ }]
498
+ },
499
+ initialValue: 'flex-start'
500
+ }
501
+ }, {
502
+ title: '图文间距',
503
+ name: 'textImgGap',
504
+ description: '图片与文字区域之间的间距(px)',
505
+ setter: {
506
+ componentName: 'NumberSetter',
507
+ isRequired: false,
508
+ initialValue: 16,
509
+ defaultValue: 16,
510
+ props: {
511
+ min: 0
320
512
  }
321
513
  }
322
- }
323
- }, {
324
- title: '子项列数',
325
- name: 'itemColumns',
326
- description: '子项列数',
327
- setter: {
328
- componentName: 'NumberSetter',
329
- isRequired: false,
330
- initialValue: function initialValue(target) {
331
- var isTwoColumns = target.getProps().getPropValue('imagePlacement') === 'top' || target.getProps().getPropValue('imagePlacement') === 'bottom';
332
- return isTwoColumns ? 2 : 1;
333
- },
334
- defaultValue: function defaultValue(target) {
335
- var isTwoColumns = target.getProps().getPropValue('imagePlacement') === 'top' || target.getProps().getPropValue('imagePlacement') === 'bottom';
336
- return isTwoColumns ? 2 : 1;
514
+ }, {
515
+ title: '宽度',
516
+ name: 'imgWidth',
517
+ description: '图片宽度(px)',
518
+ setter: {
519
+ componentName: 'NumberSetter',
520
+ isRequired: false,
521
+ initialValue: 100,
522
+ props: {
523
+ min: 10
524
+ }
337
525
  },
338
- props: {
339
- min: 1,
340
- max: 2
526
+ extraProps: {
527
+ ignoreDefaultValue: function ignoreDefaultValue() {
528
+ return true;
529
+ },
530
+ getValue: function getValue(target, value) {
531
+ var _target$node3, _target$node3$schema, _target$node3$schema$;
532
+ var parsed = parsePxNumber(value);
533
+ if (parsed !== undefined) return parsed;
534
+ var fromSchema = parsePxNumber(target === null || target === void 0 ? void 0 : (_target$node3 = target.node) === null || _target$node3 === void 0 ? void 0 : (_target$node3$schema = _target$node3.schema) === null || _target$node3$schema === void 0 ? void 0 : (_target$node3$schema$ = _target$node3$schema.props) === null || _target$node3$schema$ === void 0 ? void 0 : _target$node3$schema$.imgWidth);
535
+ if (fromSchema !== undefined) return fromSchema;
536
+ return 100;
537
+ }
341
538
  }
342
- }
343
- }, {
344
- title: '子项间距',
345
- name: 'itemGap',
346
- description: '子项间距',
347
- setter: {
348
- componentName: 'NumberSetter',
349
- isRequired: false,
350
- initialValue: 10,
351
- defaultValue: 10
352
- }
353
- }, {
354
- title: '子项内边距',
355
- name: 'itemPadding',
356
- description: '子项内边距',
357
- setter: {
358
- componentName: 'NumberSetter',
359
- isRequired: false,
360
- initialValue: 0,
361
- defaultValue: 0
362
- }
363
- }, {
364
- title: '子项背景颜色',
365
- name: 'itemBgColor',
366
- description: '子项背景颜色',
367
- setter: {
368
- componentName: 'ColorSetter',
369
- isRequired: false,
370
- initialValue: '#fff',
371
- defaultValue: '#fff'
372
- }
373
- }, {
374
- title: '子项分布',
375
- name: 'itemRowAlign',
376
- description: '子项分布',
377
- setter: {
378
- componentName: 'SelectSetter',
379
- props: {
380
- options: [{
381
- label: '列分布',
382
- value: 'column'
383
- }, {
384
- label: '一行显示',
385
- value: 'row'
386
- }]
387
- },
388
- initialValue: 'column'
389
- }
390
- }, {
391
- title: '图文对齐方式',
392
- name: 'textAlign',
393
- description: '图文对齐方式',
394
- setter: {
395
- componentName: 'SelectSetter',
396
- props: {
397
- options: [{
398
- label: '左对齐',
399
- value: 'flex-start'
400
- }, {
401
- label: '右对齐',
402
- value: 'flex-end'
403
- }, {
404
- label: '居中对齐',
405
- value: 'center'
406
- }]
539
+ }, {
540
+ title: '高度',
541
+ name: 'imgHeight',
542
+ description: '图片高度(px)',
543
+ setter: {
544
+ componentName: 'NumberSetter',
545
+ isRequired: false,
546
+ initialValue: 100,
547
+ props: {
548
+ min: 10
549
+ }
407
550
  },
408
- initialValue: 'flex-start'
409
- }
410
- }, {
411
- title: '图文间距',
412
- name: 'textImgGap',
413
- description: '图文间距',
414
- setter: {
415
- componentName: 'NumberSetter',
416
- isRequired: false,
417
- initialValue: 0,
418
- defaultValue: 0
419
- }
420
- }, {
421
- title: '图标配置',
551
+ extraProps: {
552
+ ignoreDefaultValue: function ignoreDefaultValue() {
553
+ return true;
554
+ },
555
+ getValue: function getValue(target, value) {
556
+ var _target$node4, _target$node4$schema, _target$node4$schema$;
557
+ var parsed = parsePxNumber(value);
558
+ if (parsed !== undefined) return parsed;
559
+ var fromSchema = parsePxNumber(target === null || target === void 0 ? void 0 : (_target$node4 = target.node) === null || _target$node4 === void 0 ? void 0 : (_target$node4$schema = _target$node4.schema) === null || _target$node4$schema === void 0 ? void 0 : (_target$node4$schema$ = _target$node4$schema.props) === null || _target$node4$schema$ === void 0 ? void 0 : _target$node4$schema$.imgHeight);
560
+ if (fromSchema !== undefined) return fromSchema;
561
+ return 100;
562
+ }
563
+ }
564
+ }, {
565
+ title: '圆角',
566
+ name: 'imgBorderRadius',
567
+ description: '图片圆角(px),设为 999 可得到圆形',
568
+ setter: {
569
+ componentName: 'NumberSetter',
570
+ isRequired: false,
571
+ initialValue: 0,
572
+ defaultValue: 0,
573
+ props: {
574
+ min: 0
575
+ }
576
+ }
577
+ }, {
578
+ title: '填充方式',
579
+ name: 'imgObjectFit',
580
+ description: '图片在容器内的填充方式',
581
+ setter: {
582
+ componentName: 'RadioGroupSetter',
583
+ props: {
584
+ options: [{
585
+ label: '覆盖',
586
+ value: 'cover'
587
+ }, {
588
+ label: '适应',
589
+ value: 'contain'
590
+ }, {
591
+ label: '拉伸',
592
+ value: 'fill'
593
+ }, {
594
+ label: '原始',
595
+ value: 'none'
596
+ }]
597
+ },
598
+ initialValue: 'cover'
599
+ }
600
+ }]
601
+ },
602
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
603
+ // 分组五:标题文字样式
604
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
605
+ {
606
+ type: 'group',
607
+ title: '标题文字样式',
608
+ display: 'accordion',
609
+ items: [{
610
+ title: '颜色',
611
+ name: 'titleColor',
612
+ setter: {
613
+ componentName: 'ColorSetter',
614
+ isRequired: false,
615
+ initialValue: ''
616
+ }
617
+ }, {
618
+ title: '字体大小',
619
+ name: 'titleFontSize',
620
+ description: '标题字体大小(px)',
621
+ setter: {
622
+ componentName: 'NumberSetter',
623
+ isRequired: false,
624
+ initialValue: 14,
625
+ defaultValue: 14,
626
+ props: {
627
+ min: 10,
628
+ max: 60
629
+ }
630
+ }
631
+ }, {
632
+ title: '字重',
633
+ name: 'titleFontWeight',
634
+ setter: {
635
+ componentName: 'RadioGroupSetter',
636
+ props: {
637
+ options: [{
638
+ label: '常规',
639
+ value: 'normal'
640
+ }, {
641
+ label: '中等',
642
+ value: '500'
643
+ }, {
644
+ label: '半粗',
645
+ value: '600'
646
+ }, {
647
+ label: '粗体',
648
+ value: 'bold'
649
+ }]
650
+ },
651
+ initialValue: '600'
652
+ }
653
+ }, {
654
+ title: '最大行数',
655
+ name: 'titleLineClamp',
656
+ description: '超出后显示省略号,0 表示不限制',
657
+ setter: {
658
+ componentName: 'NumberSetter',
659
+ isRequired: false,
660
+ initialValue: 1,
661
+ defaultValue: 1,
662
+ props: {
663
+ min: 0,
664
+ max: 10
665
+ }
666
+ }
667
+ }]
668
+ },
669
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
670
+ // 分组六:说明文字样式
671
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
672
+ {
673
+ type: 'group',
674
+ title: '说明文字样式',
675
+ display: 'accordion',
676
+ items: [{
677
+ title: '颜色',
678
+ name: 'descriptionColor',
679
+ setter: {
680
+ componentName: 'ColorSetter',
681
+ isRequired: false,
682
+ initialValue: ''
683
+ }
684
+ }, {
685
+ title: '字体大小',
686
+ name: 'descriptionFontSize',
687
+ description: '说明字体大小(px)',
688
+ setter: {
689
+ componentName: 'NumberSetter',
690
+ isRequired: false,
691
+ initialValue: 13,
692
+ defaultValue: 13,
693
+ props: {
694
+ min: 10,
695
+ max: 60
696
+ }
697
+ }
698
+ }, {
699
+ title: '字重',
700
+ name: 'descriptionFontWeight',
701
+ setter: {
702
+ componentName: 'RadioGroupSetter',
703
+ props: {
704
+ options: [{
705
+ label: '常规',
706
+ value: 'normal'
707
+ }, {
708
+ label: '中等',
709
+ value: '500'
710
+ }, {
711
+ label: '半粗',
712
+ value: '600'
713
+ }, {
714
+ label: '粗体',
715
+ value: 'bold'
716
+ }]
717
+ },
718
+ initialValue: 'normal'
719
+ }
720
+ }, {
721
+ title: '最大行数',
722
+ name: 'descriptionLineClamp',
723
+ description: '超出后显示省略号,0 表示不限制',
724
+ setter: {
725
+ componentName: 'NumberSetter',
726
+ isRequired: false,
727
+ initialValue: 1,
728
+ defaultValue: 1,
729
+ props: {
730
+ min: 0,
731
+ max: 10
732
+ }
733
+ }
734
+ }]
735
+ },
736
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
737
+ // 浮层图标
738
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
739
+ {
740
+ title: '浮层图标',
422
741
  name: 'iconList',
742
+ description: '在每个列表项上叠加绝对定位图标(如角标、标签等)',
423
743
  extraProps: {
424
744
  display: 'accordion',
425
- defaultCollapsed: false
745
+ defaultCollapsed: true
426
746
  },
427
747
  setter: {
428
748
  componentName: 'ArraySetter',
@@ -535,138 +855,6 @@ var TeletextListMeta = {
535
855
  }
536
856
  }
537
857
  }
538
- }, {
539
- title: '是否为购物车列表',
540
- name: 'isShoppingCart',
541
- description: '是否为购物车列表',
542
- setter: {
543
- componentName: 'BoolSetter',
544
- isRequired: true,
545
- initialValue: false
546
- }
547
- }, {
548
- title: '是否为愿望单列表',
549
- name: 'isWishList',
550
- description: '是否为愿望单列表',
551
- setter: {
552
- componentName: 'BoolSetter',
553
- isRequired: true,
554
- initialValue: false
555
- }
556
- }, {
557
- title: '是否为用户菜单列表',
558
- name: 'isUserMenu',
559
- description: '是否为用户菜单列表',
560
- setter: {
561
- componentName: 'BoolSetter',
562
- isRequired: true,
563
- initialValue: false
564
- }
565
- }, {
566
- title: {
567
- label: {
568
- type: 'i18n',
569
- 'en-US': 'dataList',
570
- 'zh-CN': '数据'
571
- },
572
- tip: 'dataList | 数据'
573
- },
574
- name: 'dataList',
575
- description: '数据',
576
- setter: {
577
- componentName: 'ArraySetter',
578
- props: {
579
- itemSetter: {
580
- componentName: 'ObjectSetter',
581
- props: {
582
- config: {
583
- items: [{
584
- title: {
585
- label: {
586
- type: 'i18n',
587
- 'en-US': 'title',
588
- 'zh-CN': '标题'
589
- }
590
- },
591
- name: 'title',
592
- description: '标题',
593
- setter: {
594
- componentName: 'StringSetter',
595
- isRequired: false,
596
- initialValue: ''
597
- }
598
- }, {
599
- title: {
600
- label: {
601
- type: 'i18n',
602
- 'en-US': 'image',
603
- 'zh-CN': '图片地址'
604
- }
605
- },
606
- name: 'image',
607
- description: '图片地址',
608
- setter: {
609
- componentName: 'CustomImageSetter',
610
- isRequired: false,
611
- initialValue: ''
612
- }
613
- }, {
614
- title: {
615
- label: {
616
- type: 'i18n',
617
- 'en-US': 'description',
618
- 'zh-CN': '描述'
619
- }
620
- },
621
- name: 'description',
622
- description: '描述',
623
- setter: {
624
- componentName: 'StringSetter',
625
- isRequired: false,
626
- initialValue: ''
627
- }
628
- }],
629
- extraSetter: {
630
- componentName: 'MixedSetter',
631
- isRequired: false,
632
- props: {}
633
- }
634
- }
635
- }
636
- }
637
- },
638
- initialValue: function initialValue(target) {
639
- var _target$node$schema$p2, _target$node4, _target$node4$schema, _target$node4$schema$, _target$getProps, _target$getProps$call, _target$getProps$call2;
640
- // ignoreDefaultValue: () => true 保证此函数在 SettingFieldView remount 时
641
- // 永远不会被 initDefaultValue 调用,仅作为安全兜底保留。
642
- // 正常的首次创建数据由 snippet.props.dataList 提供。
643
- var existing = (_target$node$schema$p2 = target === null || target === void 0 ? void 0 : (_target$node4 = target.node) === null || _target$node4 === void 0 ? void 0 : (_target$node4$schema = _target$node4.schema) === null || _target$node4$schema === void 0 ? void 0 : (_target$node4$schema$ = _target$node4$schema.props) === null || _target$node4$schema$ === void 0 ? void 0 : _target$node4$schema$.dataList) !== null && _target$node$schema$p2 !== void 0 ? _target$node$schema$p2 : target === null || target === void 0 ? void 0 : (_target$getProps = target.getProps) === null || _target$getProps === void 0 ? void 0 : (_target$getProps$call = _target$getProps.call(target)) === null || _target$getProps$call === void 0 ? void 0 : (_target$getProps$call2 = _target$getProps$call.getPropValue) === null || _target$getProps$call2 === void 0 ? void 0 : _target$getProps$call2.call(_target$getProps$call, 'dataList');
644
- if (existing !== undefined) return existing;
645
- return DEFAULT_DATA_LIST;
646
- }
647
- },
648
- extraProps: {
649
- /**
650
- * ignoreDefaultValue: 彻底阻止引擎在 SettingFieldView remount 时
651
- * 调用 initDefaultValue → 把 initialValue(默认数据数组)通过 field.setValue
652
- * 写入 dataList prop,覆盖已绑定的 JSExpression。
653
- *
654
- * 这是根本性解决方案:在引擎层面阻断 initDefaultValue 的执行,
655
- * 而不是试图在 initialValue/getValue/setValue 中做缓存和还原来补救。
656
- */
657
- ignoreDefaultValue: function ignoreDefaultValue() {
658
- return true;
659
- },
660
- getValue: function getValue(target, currentValue) {
661
- var _target$node5, _target$node5$schema, _target$node5$schema$;
662
- // currentValue 已有值时直接返回
663
- if (currentValue !== undefined) return currentValue;
664
- // 从 schema 快照兜底读取(最可靠的源头数据,始终反映持久化状态)
665
- var fromSchema = target === null || target === void 0 ? void 0 : (_target$node5 = target.node) === null || _target$node5 === void 0 ? void 0 : (_target$node5$schema = _target$node5.schema) === null || _target$node5$schema === void 0 ? void 0 : (_target$node5$schema$ = _target$node5$schema.props) === null || _target$node5$schema$ === void 0 ? void 0 : _target$node5$schema$.dataList;
666
- if (fromSchema !== undefined) return fromSchema;
667
- return undefined;
668
- }
669
- }
670
858
  }],
671
859
  supports: {
672
860
  style: true,
@@ -706,106 +894,9 @@ var getSnippets = function getSnippets(textLines) {
706
894
  // 因为 dataList 使用了 ignoreDefaultValue:()=>true 来阻止引擎在
707
895
  // SettingFieldView remount 时覆盖已绑定的 JSExpression,
708
896
  // 所以 initDefaultValue 永远不会运行,首次拖入的初始数据必须由 snippet 提供。
709
- dataList: DEFAULT_DATA_LIST
710
- },
711
- children: [{
712
- componentName: 'NextText',
713
- props: {
714
- type: 'h5',
715
- children: '列表标题',
716
- key: 'box-title',
717
- style: {
718
- fontSize: '16px',
719
- fontWeight: 'bold'
720
- }
721
- }
722
- }, {
723
- componentName: 'Image',
724
- props: {
725
- imgSrc: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
726
- key: 'image'
727
- }
728
- },
729
- // 动态生成文本组件
730
- // ...Array.from({ length: textLines }).map((_, index) => ({
731
- // componentName: 'NextText',
732
- // props: {
733
- // type: index === 0 ? 'h5' : 'inherit',
734
- // children:
735
- // index === 0
736
- // ? '标题标题'
737
- // : '基于1 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
738
- // key: `text-${index + 1}`,
739
- // },
740
- // })),
741
- {
742
- componentName: 'NextText',
743
- props: {
744
- type: 'h5',
745
- children: '标题标题',
746
- key: "text-1"
747
- }
748
- }, {
749
- componentName: 'NextText',
750
- props: {
751
- type: 'inherit',
752
- children: '基于1 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
753
- key: "text-2"
754
- }
755
- }, {
756
- componentName: 'NextText',
757
- props: {
758
- type: 'inherit',
759
- children: '基于1 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
760
- key: "text-3"
761
- }
762
- }, {
763
- componentName: 'NextText',
764
- props: {
765
- type: 'inherit',
766
- children: '基于1 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
767
- key: "text-4"
768
- }
769
- }, {
770
- componentName: 'Select',
771
- props: {
772
- popType: 'dialog',
773
- selectType: 'number',
774
- value: 1,
775
- prefix: '数量: ',
776
- dialogTitle: '选择数量',
777
- btnText: '确定',
778
- key: 'select-box-1'
779
- }
780
- }, {
781
- componentName: 'Select',
782
- props: {
783
- popType: 'dialog',
784
- selectType: 'string',
785
- dataList: [{
786
- label: 'M',
787
- value: 'M'
788
- }, {
789
- label: 'X',
790
- value: 'X'
791
- }, {
792
- label: 'XL',
793
- value: 'XL'
794
- }],
795
- value: 'X',
796
- prefix: '尺码: ',
797
- dialogTitle: '选择尺码',
798
- btnText: '确定',
799
- key: 'select-box-2'
800
- }
801
- }, {
802
- componentName: 'Switch',
803
- props: {
804
- size: 'small',
805
- disabled: false,
806
- key: 'switch-1'
807
- }
808
- }]
897
+ dataList: DEFAULT_DATA_LIST,
898
+ title: '列表标题'
899
+ }
809
900
  }
810
901
  }];
811
902
  };