@dckj-npm/dc-material 0.1.190 → 0.1.192
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/lowcode/assets-daily.json +13 -13
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +13 -13
- package/build/lowcode/meta.design.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/lowcode/teletext-list/meta.ts +33 -83
- package/lowcode_es/meta.js +1 -1
- package/lowcode_es/teletext-list/meta.d.ts +2 -2
- package/lowcode_es/teletext-list/meta.js +63 -113
- package/lowcode_lib/meta.js +1 -1
- package/lowcode_lib/teletext-list/meta.d.ts +2 -2
- package/lowcode_lib/teletext-list/meta.js +63 -113
- package/package.json +2 -2
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IPublicTypeComponentMetadata,
|
|
3
|
+
IPublicTypeSnippet,
|
|
4
|
+
IPublicTypeConfigure,
|
|
5
|
+
} from '@alilc/lowcode-types'
|
|
2
6
|
|
|
3
7
|
const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
4
8
|
group: '低代码组件',
|
|
@@ -141,16 +145,15 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
141
145
|
{ label: '图片链接', value: 'image' },
|
|
142
146
|
{ label: '标题', value: 'title' },
|
|
143
147
|
{ label: '说明', value: 'description' },
|
|
144
|
-
{ label: '标签', value: 'tags' },
|
|
145
148
|
],
|
|
146
149
|
},
|
|
147
150
|
],
|
|
148
151
|
},
|
|
149
152
|
},
|
|
150
153
|
extraProps: {
|
|
151
|
-
getValue(target,
|
|
154
|
+
getValue(target, value) {
|
|
152
155
|
const textLines = target.getProps().getPropValue('textLines')
|
|
153
|
-
console.log(target,
|
|
156
|
+
console.log(target, value)
|
|
154
157
|
return [
|
|
155
158
|
{ label: '图片链接', value: 'image' },
|
|
156
159
|
// 根据实际的 textLines 动态生成文本字段
|
|
@@ -158,7 +161,6 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
158
161
|
label: `文本${index + 1}`,
|
|
159
162
|
value: `text${index + 1}`,
|
|
160
163
|
})),
|
|
161
|
-
{ label: '标签', value: 'tags' },
|
|
162
164
|
]
|
|
163
165
|
},
|
|
164
166
|
setValue: (target, value) => {
|
|
@@ -233,69 +235,6 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
233
235
|
initialValue: '',
|
|
234
236
|
},
|
|
235
237
|
},
|
|
236
|
-
{
|
|
237
|
-
title: {
|
|
238
|
-
label: {
|
|
239
|
-
type: 'i18n',
|
|
240
|
-
'en-US': 'tags',
|
|
241
|
-
'zh-CN': '标签列表',
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
name: 'tags',
|
|
245
|
-
description: '标签列表',
|
|
246
|
-
setter: {
|
|
247
|
-
componentName: 'ArraySetter',
|
|
248
|
-
props: {
|
|
249
|
-
itemSetter: {
|
|
250
|
-
componentName: 'ObjectSetter',
|
|
251
|
-
props: {
|
|
252
|
-
config: {
|
|
253
|
-
items: [
|
|
254
|
-
{
|
|
255
|
-
title: {
|
|
256
|
-
label: {
|
|
257
|
-
type: 'i18n',
|
|
258
|
-
'en-US': 'name',
|
|
259
|
-
'zh-CN': '标签名称',
|
|
260
|
-
},
|
|
261
|
-
},
|
|
262
|
-
name: 'name',
|
|
263
|
-
description: '标签名称',
|
|
264
|
-
setter: {
|
|
265
|
-
componentName: 'StringSetter',
|
|
266
|
-
isRequired: true,
|
|
267
|
-
initialValue: '',
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
title: {
|
|
272
|
-
label: {
|
|
273
|
-
type: 'i18n',
|
|
274
|
-
'en-US': 'color',
|
|
275
|
-
'zh-CN': '标签颜色',
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
name: 'color',
|
|
279
|
-
description: '标签颜色',
|
|
280
|
-
setter: {
|
|
281
|
-
componentName: 'StringSetter',
|
|
282
|
-
isRequired: true,
|
|
283
|
-
initialValue: '',
|
|
284
|
-
},
|
|
285
|
-
},
|
|
286
|
-
],
|
|
287
|
-
extraSetter: {
|
|
288
|
-
componentName: 'MixedSetter',
|
|
289
|
-
isRequired: false,
|
|
290
|
-
props: {},
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
initialValue: [],
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
238
|
],
|
|
300
239
|
extraSetter: {
|
|
301
240
|
componentName: 'MixedSetter',
|
|
@@ -386,7 +325,9 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
386
325
|
extraProps: {
|
|
387
326
|
setValue(target, value) {
|
|
388
327
|
target.getProps().setPropValue('textLines', value)
|
|
389
|
-
|
|
328
|
+
const schema = target?.node?.schema
|
|
329
|
+
|
|
330
|
+
console.log('文字行数', target, value, schema)
|
|
390
331
|
},
|
|
391
332
|
},
|
|
392
333
|
},
|
|
@@ -560,11 +501,23 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
560
501
|
title: '列表项间距',
|
|
561
502
|
name: 'itemGap',
|
|
562
503
|
description: '列表项间距',
|
|
504
|
+
setter: {
|
|
505
|
+
componentName: 'NumberSetter',
|
|
506
|
+
isRequired: false,
|
|
507
|
+
initialValue: 10,
|
|
508
|
+
defaultValue: 10,
|
|
509
|
+
},
|
|
563
510
|
},
|
|
564
511
|
{
|
|
565
512
|
title: '列表项内边距',
|
|
566
513
|
name: 'itemPadding',
|
|
567
514
|
description: '列表项内边距',
|
|
515
|
+
setter: {
|
|
516
|
+
componentName: 'NumberSetter',
|
|
517
|
+
isRequired: false,
|
|
518
|
+
initialValue: 0,
|
|
519
|
+
defaultValue: 0,
|
|
520
|
+
},
|
|
568
521
|
},
|
|
569
522
|
],
|
|
570
523
|
supports: {
|
|
@@ -585,7 +538,8 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
|
|
|
585
538
|
},
|
|
586
539
|
},
|
|
587
540
|
}
|
|
588
|
-
|
|
541
|
+
|
|
542
|
+
const getSnippets = (textLines = 2): IPublicTypeSnippet[] => [
|
|
589
543
|
{
|
|
590
544
|
title: '图文列表',
|
|
591
545
|
screenshot: '',
|
|
@@ -612,26 +566,18 @@ const snippets: IPublicTypeSnippet[] = [
|
|
|
612
566
|
key: 'image',
|
|
613
567
|
},
|
|
614
568
|
},
|
|
615
|
-
//
|
|
616
|
-
...Array.from({ length:
|
|
569
|
+
// 动态生成文本组件
|
|
570
|
+
...Array.from({ length: textLines }).map((_, index) => ({
|
|
617
571
|
componentName: 'NextText',
|
|
618
572
|
props: {
|
|
619
573
|
type: index === 0 ? 'h5' : 'inherit',
|
|
620
574
|
children:
|
|
621
575
|
index === 0
|
|
622
576
|
? '标题标题'
|
|
623
|
-
: '基于 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
|
|
624
|
-
key: index
|
|
577
|
+
: '基于1 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
|
|
578
|
+
key: `text-${index + 1}`,
|
|
625
579
|
},
|
|
626
580
|
})),
|
|
627
|
-
{
|
|
628
|
-
componentName: 'TagC',
|
|
629
|
-
props: {
|
|
630
|
-
name: '报名火热',
|
|
631
|
-
color: 'orange',
|
|
632
|
-
key: 'teletext-tag-c',
|
|
633
|
-
},
|
|
634
|
-
},
|
|
635
581
|
],
|
|
636
582
|
},
|
|
637
583
|
},
|
|
@@ -639,5 +585,9 @@ const snippets: IPublicTypeSnippet[] = [
|
|
|
639
585
|
|
|
640
586
|
export default {
|
|
641
587
|
...TeletextListMeta,
|
|
642
|
-
snippets
|
|
588
|
+
snippets: getSnippets(
|
|
589
|
+
(TeletextListMeta.configure as IPublicTypeConfigure).props
|
|
590
|
+
?.find((prop) => prop.name === 'textLines')
|
|
591
|
+
?.setter?.getValue?.() || 2,
|
|
592
|
+
),
|
|
643
593
|
}
|
package/lowcode_es/meta.js
CHANGED
|
@@ -99,7 +99,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
99
99
|
packageName = '@dckj-npm/dc-material';
|
|
100
100
|
}
|
|
101
101
|
if (version === void 0) {
|
|
102
|
-
version = '0.1.
|
|
102
|
+
version = '0.1.192';
|
|
103
103
|
}
|
|
104
104
|
if (basicLibraryVersion === void 0) {
|
|
105
105
|
basicLibraryVersion = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
1
|
+
import { IPublicTypeSnippet, IPublicTypeConfigure } from '@alilc/lowcode-types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
snippets: IPublicTypeSnippet[];
|
|
4
4
|
componentName: string;
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
devMode?: "proCode" | "lowCode";
|
|
13
13
|
npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
|
|
14
14
|
props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
|
|
15
|
-
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] |
|
|
15
|
+
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | IPublicTypeConfigure;
|
|
16
16
|
experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
|
|
17
17
|
schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
|
|
18
18
|
group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
var _props, _props$find, _props$find$setter, _props$find$setter$ge;
|
|
2
3
|
var TeletextListMeta = {
|
|
3
4
|
group: '低代码组件',
|
|
4
5
|
componentName: 'TeletextList',
|
|
@@ -121,17 +122,14 @@ var TeletextListMeta = {
|
|
|
121
122
|
}, {
|
|
122
123
|
label: '说明',
|
|
123
124
|
value: 'description'
|
|
124
|
-
}, {
|
|
125
|
-
label: '标签',
|
|
126
|
-
value: 'tags'
|
|
127
125
|
}]
|
|
128
126
|
}]
|
|
129
127
|
}
|
|
130
128
|
},
|
|
131
129
|
extraProps: {
|
|
132
|
-
getValue: function getValue(target,
|
|
130
|
+
getValue: function getValue(target, value) {
|
|
133
131
|
var textLines = target.getProps().getPropValue('textLines');
|
|
134
|
-
console.log(target,
|
|
132
|
+
console.log(target, value);
|
|
135
133
|
return [{
|
|
136
134
|
label: '图片链接',
|
|
137
135
|
value: 'image'
|
|
@@ -142,10 +140,7 @@ var TeletextListMeta = {
|
|
|
142
140
|
label: "\u6587\u672C" + (index + 1),
|
|
143
141
|
value: "text" + (index + 1)
|
|
144
142
|
};
|
|
145
|
-
})
|
|
146
|
-
label: '标签',
|
|
147
|
-
value: 'tags'
|
|
148
|
-
}]);
|
|
143
|
+
}));
|
|
149
144
|
},
|
|
150
145
|
setValue: function setValue(target, value) {
|
|
151
146
|
console.log('dataList', target, value);
|
|
@@ -214,65 +209,6 @@ var TeletextListMeta = {
|
|
|
214
209
|
isRequired: false,
|
|
215
210
|
initialValue: ''
|
|
216
211
|
}
|
|
217
|
-
}, {
|
|
218
|
-
title: {
|
|
219
|
-
label: {
|
|
220
|
-
type: 'i18n',
|
|
221
|
-
'en-US': 'tags',
|
|
222
|
-
'zh-CN': '标签列表'
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
name: 'tags',
|
|
226
|
-
description: '标签列表',
|
|
227
|
-
setter: {
|
|
228
|
-
componentName: 'ArraySetter',
|
|
229
|
-
props: {
|
|
230
|
-
itemSetter: {
|
|
231
|
-
componentName: 'ObjectSetter',
|
|
232
|
-
props: {
|
|
233
|
-
config: {
|
|
234
|
-
items: [{
|
|
235
|
-
title: {
|
|
236
|
-
label: {
|
|
237
|
-
type: 'i18n',
|
|
238
|
-
'en-US': 'name',
|
|
239
|
-
'zh-CN': '标签名称'
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
name: 'name',
|
|
243
|
-
description: '标签名称',
|
|
244
|
-
setter: {
|
|
245
|
-
componentName: 'StringSetter',
|
|
246
|
-
isRequired: true,
|
|
247
|
-
initialValue: ''
|
|
248
|
-
}
|
|
249
|
-
}, {
|
|
250
|
-
title: {
|
|
251
|
-
label: {
|
|
252
|
-
type: 'i18n',
|
|
253
|
-
'en-US': 'color',
|
|
254
|
-
'zh-CN': '标签颜色'
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
name: 'color',
|
|
258
|
-
description: '标签颜色',
|
|
259
|
-
setter: {
|
|
260
|
-
componentName: 'StringSetter',
|
|
261
|
-
isRequired: true,
|
|
262
|
-
initialValue: ''
|
|
263
|
-
}
|
|
264
|
-
}],
|
|
265
|
-
extraSetter: {
|
|
266
|
-
componentName: 'MixedSetter',
|
|
267
|
-
isRequired: false,
|
|
268
|
-
props: {}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
initialValue: []
|
|
275
|
-
}
|
|
276
212
|
}],
|
|
277
213
|
extraSetter: {
|
|
278
214
|
componentName: 'MixedSetter',
|
|
@@ -348,8 +284,10 @@ var TeletextListMeta = {
|
|
|
348
284
|
},
|
|
349
285
|
extraProps: {
|
|
350
286
|
setValue: function setValue(target, value) {
|
|
287
|
+
var _target$node;
|
|
351
288
|
target.getProps().setPropValue('textLines', value);
|
|
352
|
-
|
|
289
|
+
var schema = target === null || target === void 0 ? void 0 : (_target$node = target.node) === null || _target$node === void 0 ? void 0 : _target$node.schema;
|
|
290
|
+
console.log('文字行数', target, value, schema);
|
|
353
291
|
}
|
|
354
292
|
}
|
|
355
293
|
}, {
|
|
@@ -493,11 +431,23 @@ var TeletextListMeta = {
|
|
|
493
431
|
}, {
|
|
494
432
|
title: '列表项间距',
|
|
495
433
|
name: 'itemGap',
|
|
496
|
-
description: '列表项间距'
|
|
434
|
+
description: '列表项间距',
|
|
435
|
+
setter: {
|
|
436
|
+
componentName: 'NumberSetter',
|
|
437
|
+
isRequired: false,
|
|
438
|
+
initialValue: 10,
|
|
439
|
+
defaultValue: 10
|
|
440
|
+
}
|
|
497
441
|
}, {
|
|
498
442
|
title: '列表项内边距',
|
|
499
443
|
name: 'itemPadding',
|
|
500
|
-
description: '列表项内边距'
|
|
444
|
+
description: '列表项内边距',
|
|
445
|
+
setter: {
|
|
446
|
+
componentName: 'NumberSetter',
|
|
447
|
+
isRequired: false,
|
|
448
|
+
initialValue: 0,
|
|
449
|
+
defaultValue: 0
|
|
450
|
+
}
|
|
501
451
|
}],
|
|
502
452
|
supports: {
|
|
503
453
|
style: true,
|
|
@@ -514,50 +464,50 @@ var TeletextListMeta = {
|
|
|
514
464
|
}
|
|
515
465
|
}
|
|
516
466
|
};
|
|
517
|
-
var
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
key: 'box-title',
|
|
529
|
-
style: {
|
|
530
|
-
fontSize: '16px',
|
|
531
|
-
fontWeight: 'bold'
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}, {
|
|
535
|
-
componentName: 'Image',
|
|
536
|
-
props: {
|
|
537
|
-
src: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
|
|
538
|
-
key: 'image'
|
|
539
|
-
}
|
|
540
|
-
}].concat(Array.from({
|
|
541
|
-
length: 2
|
|
542
|
-
}).map(function (_, index) {
|
|
543
|
-
return {
|
|
467
|
+
var getSnippets = function getSnippets(textLines) {
|
|
468
|
+
if (textLines === void 0) {
|
|
469
|
+
textLines = 2;
|
|
470
|
+
}
|
|
471
|
+
return [{
|
|
472
|
+
title: '图文列表',
|
|
473
|
+
screenshot: '',
|
|
474
|
+
schema: {
|
|
475
|
+
componentName: 'TeletextList',
|
|
476
|
+
props: {},
|
|
477
|
+
children: [{
|
|
544
478
|
componentName: 'NextText',
|
|
545
479
|
props: {
|
|
546
|
-
type:
|
|
547
|
-
children:
|
|
548
|
-
key:
|
|
480
|
+
type: 'h5',
|
|
481
|
+
children: '列表标题',
|
|
482
|
+
key: 'box-title',
|
|
483
|
+
style: {
|
|
484
|
+
fontSize: '16px',
|
|
485
|
+
fontWeight: 'bold'
|
|
486
|
+
}
|
|
549
487
|
}
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
488
|
+
}, {
|
|
489
|
+
componentName: 'Image',
|
|
490
|
+
props: {
|
|
491
|
+
src: 'https://img.alicdn.com/tps/TB16TQvOXXXXXbiaFXXXXXXXXXX-120-120.svg',
|
|
492
|
+
key: 'image'
|
|
493
|
+
}
|
|
494
|
+
}].concat(Array.from({
|
|
495
|
+
length: textLines
|
|
496
|
+
}).map(function (_, index) {
|
|
497
|
+
return {
|
|
498
|
+
componentName: 'NextText',
|
|
499
|
+
props: {
|
|
500
|
+
type: index === 0 ? 'h5' : 'inherit',
|
|
501
|
+
children: index === 0 ? '标题标题' : '基于1 Ali-Lowcode-Engine 快速打造高生产力的低代码研发平台, 基于自然布局体系快速搭建页面',
|
|
502
|
+
key: "text-" + (index + 1)
|
|
503
|
+
}
|
|
504
|
+
};
|
|
505
|
+
}))
|
|
506
|
+
}
|
|
507
|
+
}];
|
|
508
|
+
};
|
|
561
509
|
export default _extends({}, TeletextListMeta, {
|
|
562
|
-
snippets:
|
|
510
|
+
snippets: getSnippets(((_props = TeletextListMeta.configure.props) === null || _props === void 0 ? void 0 : (_props$find = _props.find(function (prop) {
|
|
511
|
+
return prop.name === 'textLines';
|
|
512
|
+
})) === null || _props$find === void 0 ? void 0 : (_props$find$setter = _props$find.setter) === null || _props$find$setter === void 0 ? void 0 : (_props$find$setter$ge = _props$find$setter.getValue) === null || _props$find$setter$ge === void 0 ? void 0 : _props$find$setter$ge.call(_props$find$setter)) || 2)
|
|
563
513
|
});
|
package/lowcode_lib/meta.js
CHANGED
|
@@ -104,7 +104,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
|
104
104
|
packageName = '@dckj-npm/dc-material';
|
|
105
105
|
}
|
|
106
106
|
if (version === void 0) {
|
|
107
|
-
version = '0.1.
|
|
107
|
+
version = '0.1.192';
|
|
108
108
|
}
|
|
109
109
|
if (basicLibraryVersion === void 0) {
|
|
110
110
|
basicLibraryVersion = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
1
|
+
import { IPublicTypeSnippet, IPublicTypeConfigure } from '@alilc/lowcode-types';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
snippets: IPublicTypeSnippet[];
|
|
4
4
|
componentName: string;
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
devMode?: "proCode" | "lowCode";
|
|
13
13
|
npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
|
|
14
14
|
props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
|
|
15
|
-
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] |
|
|
15
|
+
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | IPublicTypeConfigure;
|
|
16
16
|
experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
|
|
17
17
|
schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
|
|
18
18
|
group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|