@dckj-npm/dc-material 0.1.174 → 0.1.176
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/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +4 -4
- package/lowcode/teletext-list/meta.ts +133 -99
- package/lowcode_es/meta.js +1 -1
- package/lowcode_es/teletext-list/meta.js +111 -79
- package/lowcode_lib/meta.js +1 -1
- package/lowcode_lib/teletext-list/meta.js +111 -79
- package/package.json +2 -2
|
@@ -103,6 +103,11 @@ var TeletextListMeta = {
|
|
|
103
103
|
}]
|
|
104
104
|
},
|
|
105
105
|
initialValue: 'left'
|
|
106
|
+
},
|
|
107
|
+
extraProps: {
|
|
108
|
+
setValue: function setValue(target, value) {
|
|
109
|
+
target.getProps().setPropValue('imagePlacement', value);
|
|
110
|
+
}
|
|
106
111
|
}
|
|
107
112
|
}, {
|
|
108
113
|
name: '数据源绑定',
|
|
@@ -316,7 +321,7 @@ var TeletextListMeta = {
|
|
|
316
321
|
setter: {
|
|
317
322
|
componentName: 'NumberSetter',
|
|
318
323
|
isRequired: false,
|
|
319
|
-
initialValue:
|
|
324
|
+
initialValue: 2,
|
|
320
325
|
defaultValue: 2,
|
|
321
326
|
props: {
|
|
322
327
|
min: 2,
|
|
@@ -330,7 +335,10 @@ var TeletextListMeta = {
|
|
|
330
335
|
setter: {
|
|
331
336
|
componentName: 'NumberSetter',
|
|
332
337
|
isRequired: false,
|
|
333
|
-
initialValue:
|
|
338
|
+
initialValue: function initialValue(target) {
|
|
339
|
+
var isTwoColumns = target.getProps().getPropValue('imagePlacement') === 'top' || target.getProps().getPropValue('imagePlacement') === 'bottom';
|
|
340
|
+
return isTwoColumns ? 2 : 1;
|
|
341
|
+
},
|
|
334
342
|
defaultValue: function defaultValue(target) {
|
|
335
343
|
var isTwoColumns = target.getProps().getPropValue('imagePlacement') === 'top' || target.getProps().getPropValue('imagePlacement') === 'bottom';
|
|
336
344
|
return isTwoColumns ? 2 : 1;
|
|
@@ -350,86 +358,110 @@ var TeletextListMeta = {
|
|
|
350
358
|
setter: {
|
|
351
359
|
componentName: 'ArraySetter',
|
|
352
360
|
props: {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
name: 'size',
|
|
365
|
-
title: '图标尺寸',
|
|
366
|
-
setter: {
|
|
367
|
-
componentName: 'SelectSetter',
|
|
361
|
+
itemSetter: {
|
|
362
|
+
componentName: 'ObjectSetter',
|
|
363
|
+
props: {
|
|
364
|
+
config: {
|
|
365
|
+
items: [{
|
|
366
|
+
name: 'icon',
|
|
367
|
+
title: '图标',
|
|
368
|
+
setter: 'IconSetter',
|
|
369
|
+
isRequired: true,
|
|
368
370
|
props: {
|
|
369
|
-
|
|
370
|
-
label: 'xxs',
|
|
371
|
-
value: 'xxs'
|
|
372
|
-
}, {
|
|
373
|
-
label: 'xs',
|
|
374
|
-
value: 'xs'
|
|
375
|
-
}, {
|
|
376
|
-
label: 'small',
|
|
377
|
-
value: 'small'
|
|
378
|
-
}, {
|
|
379
|
-
label: 'medium',
|
|
380
|
-
value: 'medium'
|
|
381
|
-
}, {
|
|
382
|
-
label: 'large',
|
|
383
|
-
value: 'large'
|
|
384
|
-
}, {
|
|
385
|
-
label: 'xl',
|
|
386
|
-
value: 'xl'
|
|
387
|
-
}, {
|
|
388
|
-
label: 'xxl',
|
|
389
|
-
value: 'xxl'
|
|
390
|
-
}, {
|
|
391
|
-
label: 'xxxl',
|
|
392
|
-
value: 'xxxl'
|
|
393
|
-
}, {
|
|
394
|
-
label: 'inherit',
|
|
395
|
-
value: 'inherit'
|
|
396
|
-
}]
|
|
371
|
+
hasClear: false
|
|
397
372
|
}
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
373
|
+
}, {
|
|
374
|
+
name: 'size',
|
|
375
|
+
title: '图标尺寸',
|
|
376
|
+
setter: {
|
|
377
|
+
componentName: 'SelectSetter',
|
|
378
|
+
props: {
|
|
379
|
+
options: [{
|
|
380
|
+
label: 'xxs',
|
|
381
|
+
value: 'xxs'
|
|
382
|
+
}, {
|
|
383
|
+
label: 'xs',
|
|
384
|
+
value: 'xs'
|
|
385
|
+
}, {
|
|
386
|
+
label: 'small',
|
|
387
|
+
value: 'small'
|
|
388
|
+
}, {
|
|
389
|
+
label: 'medium',
|
|
390
|
+
value: 'medium'
|
|
391
|
+
}, {
|
|
392
|
+
label: 'large',
|
|
393
|
+
value: 'large'
|
|
394
|
+
}, {
|
|
395
|
+
label: 'xl',
|
|
396
|
+
value: 'xl'
|
|
397
|
+
}, {
|
|
398
|
+
label: 'xxl',
|
|
399
|
+
value: 'xxl'
|
|
400
|
+
}, {
|
|
401
|
+
label: 'xxxl',
|
|
402
|
+
value: 'xxxl'
|
|
403
|
+
}, {
|
|
404
|
+
label: 'inherit',
|
|
405
|
+
value: 'inherit'
|
|
406
|
+
}]
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
defaultValue: 'medium'
|
|
410
|
+
}, {
|
|
411
|
+
name: 'position',
|
|
412
|
+
title: '图标位置',
|
|
413
|
+
defaultValue: 'rightTop',
|
|
414
|
+
isRequired: true,
|
|
415
|
+
setter: {
|
|
416
|
+
componentName: 'SelectSetter',
|
|
417
|
+
props: {
|
|
418
|
+
options: [{
|
|
419
|
+
label: '左上角',
|
|
420
|
+
value: 'leftTop'
|
|
421
|
+
}, {
|
|
422
|
+
label: '左下角',
|
|
423
|
+
value: 'leftBottom'
|
|
424
|
+
}, {
|
|
425
|
+
label: '右上角',
|
|
426
|
+
value: 'rightTop'
|
|
427
|
+
}, {
|
|
428
|
+
label: '右下角',
|
|
429
|
+
value: 'rightBottom'
|
|
430
|
+
}, {
|
|
431
|
+
label: '自定义',
|
|
432
|
+
value: 'customize'
|
|
433
|
+
}]
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
extraProps: {
|
|
437
|
+
setValue: function setValue(target, value) {
|
|
438
|
+
target.getProps().setPropValue('position', value);
|
|
439
|
+
}
|
|
422
440
|
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
441
|
+
}, {
|
|
442
|
+
name: 'rightOffset',
|
|
443
|
+
title: '右偏移',
|
|
444
|
+
setter: 'NumberSetter',
|
|
445
|
+
defaultValue: 0,
|
|
446
|
+
condition: function condition(target) {
|
|
447
|
+
return target.getProps().getPropValue('position') === 'customize';
|
|
448
|
+
}
|
|
449
|
+
}, {
|
|
450
|
+
name: 'bottomOffset',
|
|
451
|
+
title: '下偏移',
|
|
452
|
+
setter: 'NumberSetter',
|
|
453
|
+
defaultValue: 0,
|
|
454
|
+
condition: function condition(target) {
|
|
455
|
+
return target.getProps().getPropValue('position') === 'customize';
|
|
456
|
+
}
|
|
457
|
+
}]
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
initialValue: {
|
|
461
|
+
size: 'medium',
|
|
462
|
+
position: 'rightTop',
|
|
463
|
+
rightOffset: 0,
|
|
464
|
+
bottomOffset: 0
|
|
433
465
|
}
|
|
434
466
|
}
|
|
435
467
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dckj-npm/dc-material",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.176",
|
|
4
4
|
"description": "dc低代码物料",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"componentConfig": {
|
|
108
108
|
"isComponentLibrary": true,
|
|
109
|
-
"materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.
|
|
109
|
+
"materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.176/build/lowcode/assets-prod.json"
|
|
110
110
|
},
|
|
111
111
|
"lcMeta": {
|
|
112
112
|
"type": "component"
|