@steedos-widgets/amis-object 0.0.6 → 0.0.8
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/dist/amis/AmisObjectForm.d.ts +0 -1
- package/dist/amis/AmisObjectTable.d.ts +13 -0
- package/dist/amis/AmisRecordDetailRelatedList.d.ts +49 -55
- package/dist/amis/index.d.ts +1 -0
- package/dist/amis-object.cjs.js +349 -20142
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.js +324 -20143
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.js +236 -52
- package/dist/assets-dev.json +13 -5
- package/dist/assets.json +13 -5
- package/dist/components/buttons/button.d.ts +2 -0
- package/dist/components/buttons/dropdown-button.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/meta.js +433 -90
- package/dist/metas/AmisObjectButton.d.ts +2 -0
- package/dist/metas/AmisObjectTable.d.ts +2 -0
- package/dist/metas/SteedosDropdownButton.d.ts +2 -0
- package/package.json +1 -1
package/dist/meta.js
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* @LastEditTime: 2022-09-02 09:04:33
|
|
38
38
|
* @Description:
|
|
39
39
|
*/
|
|
40
|
-
var config$
|
|
40
|
+
var config$9 = {
|
|
41
41
|
componentType: 'amisSchema',
|
|
42
42
|
group: "华炎魔方",
|
|
43
43
|
componentName: "AmisObjectForm",
|
|
@@ -95,38 +95,38 @@
|
|
|
95
95
|
icon: "fa-fw fa fa-list-alt"
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
var AmisObjectForm = __assign(__assign({}, config$
|
|
98
|
+
var AmisObjectForm = __assign(__assign({}, config$9), { snippets: [
|
|
99
99
|
{
|
|
100
|
-
title: config$
|
|
100
|
+
title: config$9.title,
|
|
101
101
|
screenshot: "",
|
|
102
102
|
schema: {
|
|
103
|
-
componentName: config$
|
|
104
|
-
props: config$
|
|
103
|
+
componentName: config$9.componentName,
|
|
104
|
+
props: config$9.preview
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
], amis: {
|
|
108
108
|
render: {
|
|
109
|
-
type: config$
|
|
109
|
+
type: config$9.amis.name,
|
|
110
110
|
usage: "renderer",
|
|
111
111
|
weight: 1,
|
|
112
112
|
framework: "react"
|
|
113
113
|
},
|
|
114
114
|
plugin: {
|
|
115
|
-
rendererName: config$
|
|
115
|
+
rendererName: config$9.amis.name,
|
|
116
116
|
$schema: '/schemas/UnkownSchema.json',
|
|
117
|
-
name: config$
|
|
118
|
-
description: config$
|
|
119
|
-
tags: [config$
|
|
117
|
+
name: config$9.title,
|
|
118
|
+
description: config$9.title,
|
|
119
|
+
tags: [config$9.group],
|
|
120
120
|
order: -9999,
|
|
121
|
-
icon: config$
|
|
121
|
+
icon: config$9.amis.icon,
|
|
122
122
|
scaffold: {
|
|
123
|
-
type: config$
|
|
124
|
-
label: config$
|
|
123
|
+
type: config$9.amis.name,
|
|
124
|
+
label: config$9.title,
|
|
125
125
|
objectApiName: "${objectName}",
|
|
126
126
|
recordId: "${recordId}"
|
|
127
127
|
},
|
|
128
128
|
previewSchema: {
|
|
129
|
-
type: config$
|
|
129
|
+
type: config$9.amis.name,
|
|
130
130
|
objectApiName: 'space_users'
|
|
131
131
|
},
|
|
132
132
|
panelTitle: "设置",
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
* @LastEditTime: 2022-09-15 10:40:37
|
|
222
222
|
* @Description:
|
|
223
223
|
*/
|
|
224
|
-
var config$
|
|
224
|
+
var config$8 = {
|
|
225
225
|
componentType: 'amisSchema',
|
|
226
226
|
group: "华炎魔方",
|
|
227
227
|
componentName: "AmisObjectListView",
|
|
@@ -257,38 +257,38 @@
|
|
|
257
257
|
icon: "fa-fw fa fa-list-alt"
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
|
-
var AmisObjectListview = __assign(__assign({}, config$
|
|
260
|
+
var AmisObjectListview = __assign(__assign({}, config$8), { snippets: [
|
|
261
261
|
{
|
|
262
|
-
title: config$
|
|
262
|
+
title: config$8.title,
|
|
263
263
|
screenshot: "",
|
|
264
264
|
schema: {
|
|
265
|
-
componentName: config$
|
|
266
|
-
props: config$
|
|
265
|
+
componentName: config$8.componentName,
|
|
266
|
+
props: config$8.preview
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
], amis: {
|
|
270
270
|
render: {
|
|
271
|
-
type: config$
|
|
271
|
+
type: config$8.amis.name,
|
|
272
272
|
usage: "renderer",
|
|
273
273
|
weight: 1,
|
|
274
274
|
framework: "react"
|
|
275
275
|
},
|
|
276
276
|
plugin: {
|
|
277
|
-
rendererName: config$
|
|
277
|
+
rendererName: config$8.amis.name,
|
|
278
278
|
$schema: '/schemas/UnkownSchema.json',
|
|
279
|
-
name: config$
|
|
280
|
-
description: config$
|
|
281
|
-
tags: [config$
|
|
279
|
+
name: config$8.title,
|
|
280
|
+
description: config$8.title,
|
|
281
|
+
tags: [config$8.group],
|
|
282
282
|
order: -9999,
|
|
283
|
-
icon: config$
|
|
283
|
+
icon: config$8.amis.icon,
|
|
284
284
|
scaffold: {
|
|
285
|
-
type: config$
|
|
286
|
-
label: config$
|
|
285
|
+
type: config$8.amis.name,
|
|
286
|
+
label: config$8.title,
|
|
287
287
|
objectApiName: "${objectName}",
|
|
288
288
|
listName: "all"
|
|
289
289
|
},
|
|
290
290
|
previewSchema: {
|
|
291
|
-
type: config$
|
|
291
|
+
type: config$8.amis.name,
|
|
292
292
|
objectApiName: 'space_users',
|
|
293
293
|
listName: "all"
|
|
294
294
|
},
|
|
@@ -355,7 +355,188 @@
|
|
|
355
355
|
* @LastEditTime: 2022-09-15 10:40:37
|
|
356
356
|
* @Description:
|
|
357
357
|
*/
|
|
358
|
-
var config$
|
|
358
|
+
var config$7 = {
|
|
359
|
+
componentType: 'amisSchema',
|
|
360
|
+
group: "华炎魔方",
|
|
361
|
+
componentName: "AmisObjectTable",
|
|
362
|
+
title: "对象表格",
|
|
363
|
+
docUrl: "",
|
|
364
|
+
screenshot: "",
|
|
365
|
+
npm: {
|
|
366
|
+
package: "@steedos-widgets/amis-object",
|
|
367
|
+
version: "{{version}}",
|
|
368
|
+
exportName: "AmisObjectTable",
|
|
369
|
+
main: "",
|
|
370
|
+
destructuring: true,
|
|
371
|
+
subName: ""
|
|
372
|
+
},
|
|
373
|
+
props: [
|
|
374
|
+
{
|
|
375
|
+
name: "objectApiName",
|
|
376
|
+
propType: "string",
|
|
377
|
+
description: '对象名称',
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: "columns",
|
|
381
|
+
propType: "array",
|
|
382
|
+
description: '显示列',
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
name: "amisCondition",
|
|
386
|
+
propType: "object",
|
|
387
|
+
description: '过滤条件',
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
name: "sortField",
|
|
391
|
+
propType: "string",
|
|
392
|
+
description: '排序字段',
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: "sortOrder",
|
|
396
|
+
propType: "string",
|
|
397
|
+
description: '排序顺序',
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
name: "top",
|
|
401
|
+
propType: "number",
|
|
402
|
+
description: '显示的记录数量',
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
preview: {},
|
|
406
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
407
|
+
engines: ["amis"],
|
|
408
|
+
// settings for amis.
|
|
409
|
+
amis: {
|
|
410
|
+
name: 'steedos-object-table',
|
|
411
|
+
icon: "fa-fw fa fa-list-alt"
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
var AmisObjectTable = __assign(__assign({}, config$7), { snippets: [
|
|
415
|
+
{
|
|
416
|
+
title: config$7.title,
|
|
417
|
+
screenshot: "",
|
|
418
|
+
schema: {
|
|
419
|
+
componentName: config$7.componentName,
|
|
420
|
+
props: config$7.preview
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
], amis: {
|
|
424
|
+
render: {
|
|
425
|
+
type: config$7.amis.name,
|
|
426
|
+
usage: "renderer",
|
|
427
|
+
weight: 1,
|
|
428
|
+
framework: "react"
|
|
429
|
+
},
|
|
430
|
+
plugin: {
|
|
431
|
+
rendererName: config$7.amis.name,
|
|
432
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
433
|
+
name: config$7.title,
|
|
434
|
+
description: config$7.title,
|
|
435
|
+
tags: [config$7.group],
|
|
436
|
+
order: -9999,
|
|
437
|
+
icon: config$7.amis.icon,
|
|
438
|
+
scaffold: {
|
|
439
|
+
type: config$7.amis.name,
|
|
440
|
+
label: config$7.title,
|
|
441
|
+
objectApiName: "${objectName}",
|
|
442
|
+
columns: [{ "field": "name" }]
|
|
443
|
+
},
|
|
444
|
+
previewSchema: {
|
|
445
|
+
type: config$7.amis.name,
|
|
446
|
+
objectApiName: 'space_users',
|
|
447
|
+
columns: [{ "field": "name" }]
|
|
448
|
+
},
|
|
449
|
+
panelTitle: "设置",
|
|
450
|
+
panelControls: [
|
|
451
|
+
{
|
|
452
|
+
"type": "select",
|
|
453
|
+
"label": "对象",
|
|
454
|
+
"name": "objectApiName",
|
|
455
|
+
"searchable": true,
|
|
456
|
+
"multiple": false,
|
|
457
|
+
"source": {
|
|
458
|
+
"method": "get",
|
|
459
|
+
"url": "/service/api/amis-design/objects",
|
|
460
|
+
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
461
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"${objectName}\",\n name: \"${objectName}\"\n });\n return payload;\n "
|
|
462
|
+
},
|
|
463
|
+
"labelField": "label",
|
|
464
|
+
"valueField": "name",
|
|
465
|
+
"menuTpl": ""
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"type": "combo",
|
|
469
|
+
"name": "columns",
|
|
470
|
+
"label": "显示列",
|
|
471
|
+
"multiLine": true,
|
|
472
|
+
"multiple": true,
|
|
473
|
+
"draggable": true,
|
|
474
|
+
"items": [
|
|
475
|
+
{
|
|
476
|
+
"name": "field",
|
|
477
|
+
"type": "input-text",
|
|
478
|
+
"placeholder": "字段"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "width",
|
|
482
|
+
"type": "input-text",
|
|
483
|
+
"placeholder": "宽度"
|
|
484
|
+
},
|
|
485
|
+
// {
|
|
486
|
+
// "name": "wrap",
|
|
487
|
+
// "type": "checkbox",
|
|
488
|
+
// "option": "换行"
|
|
489
|
+
// }
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"type": "condition-builder",
|
|
494
|
+
"name": "amisCondition",
|
|
495
|
+
"label": "过滤条件",
|
|
496
|
+
"source": {
|
|
497
|
+
"method": "get",
|
|
498
|
+
"url": "/service/api/amis-metadata-listviews/getFilterFields?objectName=${objectApiName === '${objectName}' ? 'space_users' : objectApiName}",
|
|
499
|
+
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
500
|
+
"dataType": "json"
|
|
501
|
+
},
|
|
502
|
+
"en-US": {
|
|
503
|
+
"label": "Filters Conditions"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"type": "input-text",
|
|
508
|
+
"name": "sortField",
|
|
509
|
+
"label": "排序字段"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"type": "select",
|
|
513
|
+
"name": "sortOrder",
|
|
514
|
+
"label": "排序顺序",
|
|
515
|
+
"options": [{
|
|
516
|
+
"label": "升级",
|
|
517
|
+
"value": "asc"
|
|
518
|
+
}, {
|
|
519
|
+
"label": "倒序",
|
|
520
|
+
"value": "desc"
|
|
521
|
+
}]
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"type": "number",
|
|
525
|
+
"name": "top",
|
|
526
|
+
"label": "显示的记录数量",
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
}
|
|
530
|
+
} });
|
|
531
|
+
|
|
532
|
+
/*
|
|
533
|
+
* @Author: baozhoutao@steedos.com
|
|
534
|
+
* @Date: 2022-08-31 16:32:35
|
|
535
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
536
|
+
* @LastEditTime: 2022-09-15 10:40:37
|
|
537
|
+
* @Description:
|
|
538
|
+
*/
|
|
539
|
+
var config$6 = {
|
|
359
540
|
componentType: 'amisSchema',
|
|
360
541
|
group: "华炎魔方",
|
|
361
542
|
componentName: "AmisRecordDetailHeader",
|
|
@@ -391,38 +572,38 @@
|
|
|
391
572
|
icon: "fa-fw fa fa-list-alt"
|
|
392
573
|
}
|
|
393
574
|
};
|
|
394
|
-
var AmisRecordDetailHeader = __assign(__assign({}, config$
|
|
575
|
+
var AmisRecordDetailHeader = __assign(__assign({}, config$6), { snippets: [
|
|
395
576
|
{
|
|
396
|
-
title: config$
|
|
577
|
+
title: config$6.title,
|
|
397
578
|
screenshot: "",
|
|
398
579
|
schema: {
|
|
399
|
-
componentName: config$
|
|
400
|
-
props: config$
|
|
580
|
+
componentName: config$6.componentName,
|
|
581
|
+
props: config$6.preview
|
|
401
582
|
}
|
|
402
583
|
}
|
|
403
584
|
], amis: {
|
|
404
585
|
render: {
|
|
405
|
-
type: config$
|
|
586
|
+
type: config$6.amis.name,
|
|
406
587
|
usage: "renderer",
|
|
407
588
|
weight: 1,
|
|
408
589
|
framework: "react"
|
|
409
590
|
},
|
|
410
591
|
plugin: {
|
|
411
|
-
rendererName: config$
|
|
592
|
+
rendererName: config$6.amis.name,
|
|
412
593
|
$schema: '/schemas/UnkownSchema.json',
|
|
413
|
-
name: config$
|
|
414
|
-
description: config$
|
|
415
|
-
tags: [config$
|
|
594
|
+
name: config$6.title,
|
|
595
|
+
description: config$6.title,
|
|
596
|
+
tags: [config$6.group],
|
|
416
597
|
order: -9999,
|
|
417
|
-
icon: config$
|
|
598
|
+
icon: config$6.amis.icon,
|
|
418
599
|
scaffold: {
|
|
419
|
-
type: config$
|
|
420
|
-
label: config$
|
|
600
|
+
type: config$6.amis.name,
|
|
601
|
+
label: config$6.title,
|
|
421
602
|
objectApiName: "${objectName}",
|
|
422
603
|
recordId: "${recordId}"
|
|
423
604
|
},
|
|
424
605
|
previewSchema: {
|
|
425
|
-
type: config$
|
|
606
|
+
type: config$6.amis.name,
|
|
426
607
|
objectApiName: 'space_users'
|
|
427
608
|
},
|
|
428
609
|
panelTitle: "设置",
|
|
@@ -452,7 +633,7 @@
|
|
|
452
633
|
}
|
|
453
634
|
} });
|
|
454
635
|
|
|
455
|
-
var config$
|
|
636
|
+
var config$5 = {
|
|
456
637
|
componentType: 'amisSchema',
|
|
457
638
|
group: "华炎魔方",
|
|
458
639
|
componentName: "AmisSelectUser",
|
|
@@ -498,37 +679,37 @@
|
|
|
498
679
|
icon: "fa-fw fa fa-list-alt"
|
|
499
680
|
}
|
|
500
681
|
};
|
|
501
|
-
var AmisSelectUser = __assign(__assign({}, config$
|
|
682
|
+
var AmisSelectUser = __assign(__assign({}, config$5), { snippets: [
|
|
502
683
|
{
|
|
503
|
-
title: config$
|
|
684
|
+
title: config$5.title,
|
|
504
685
|
screenshot: "",
|
|
505
686
|
schema: {
|
|
506
|
-
componentName: config$
|
|
507
|
-
props: config$
|
|
687
|
+
componentName: config$5.componentName,
|
|
688
|
+
props: config$5.preview
|
|
508
689
|
}
|
|
509
690
|
}
|
|
510
691
|
], amis: {
|
|
511
692
|
render: {
|
|
512
|
-
type: config$
|
|
693
|
+
type: config$5.amis.name,
|
|
513
694
|
usage: "formitem",
|
|
514
695
|
weight: 1,
|
|
515
696
|
framework: "react"
|
|
516
697
|
},
|
|
517
698
|
plugin: {
|
|
518
|
-
rendererName: config$
|
|
699
|
+
rendererName: config$5.amis.name,
|
|
519
700
|
$schema: '/schemas/UnkownSchema.json',
|
|
520
|
-
name: config$
|
|
521
|
-
description: config$
|
|
522
|
-
tags: [config$
|
|
701
|
+
name: config$5.title,
|
|
702
|
+
description: config$5.title,
|
|
703
|
+
tags: [config$5.group],
|
|
523
704
|
order: -9999,
|
|
524
|
-
icon: config$
|
|
705
|
+
icon: config$5.amis.icon,
|
|
525
706
|
scaffold: {
|
|
526
|
-
type: config$
|
|
527
|
-
label: config$
|
|
707
|
+
type: config$5.amis.name,
|
|
708
|
+
label: config$5.title,
|
|
528
709
|
name: ""
|
|
529
710
|
},
|
|
530
711
|
previewSchema: {
|
|
531
|
-
type: config$
|
|
712
|
+
type: config$5.amis.name,
|
|
532
713
|
},
|
|
533
714
|
panelTitle: "设置",
|
|
534
715
|
panelControls: [
|
|
@@ -559,7 +740,7 @@
|
|
|
559
740
|
* @LastEditTime: 2022-09-15 10:40:37
|
|
560
741
|
* @Description:
|
|
561
742
|
*/
|
|
562
|
-
var config$
|
|
743
|
+
var config$4 = {
|
|
563
744
|
componentType: 'amisSchema',
|
|
564
745
|
group: "华炎魔方",
|
|
565
746
|
componentName: "AmisRecordDetailRelatedList",
|
|
@@ -600,39 +781,39 @@
|
|
|
600
781
|
icon: "fa-fw fa fa-list-alt"
|
|
601
782
|
}
|
|
602
783
|
};
|
|
603
|
-
var AmisRecordDetailRelatedList = __assign(__assign({}, config$
|
|
784
|
+
var AmisRecordDetailRelatedList = __assign(__assign({}, config$4), { snippets: [
|
|
604
785
|
{
|
|
605
|
-
title: config$
|
|
786
|
+
title: config$4.title,
|
|
606
787
|
screenshot: "",
|
|
607
788
|
schema: {
|
|
608
|
-
componentName: config$
|
|
609
|
-
props: config$
|
|
789
|
+
componentName: config$4.componentName,
|
|
790
|
+
props: config$4.preview
|
|
610
791
|
}
|
|
611
792
|
}
|
|
612
793
|
], amis: {
|
|
613
794
|
render: {
|
|
614
|
-
type: config$
|
|
795
|
+
type: config$4.amis.name,
|
|
615
796
|
usage: "renderer",
|
|
616
797
|
weight: 1,
|
|
617
798
|
framework: "react"
|
|
618
799
|
},
|
|
619
800
|
plugin: {
|
|
620
|
-
rendererName: config$
|
|
801
|
+
rendererName: config$4.amis.name,
|
|
621
802
|
$schema: '/schemas/UnkownSchema.json',
|
|
622
|
-
name: config$
|
|
623
|
-
description: config$
|
|
624
|
-
tags: [config$
|
|
803
|
+
name: config$4.title,
|
|
804
|
+
description: config$4.title,
|
|
805
|
+
tags: [config$4.group],
|
|
625
806
|
order: -9999,
|
|
626
|
-
icon: config$
|
|
807
|
+
icon: config$4.amis.icon,
|
|
627
808
|
scaffold: {
|
|
628
|
-
type: config$
|
|
629
|
-
label: config$
|
|
809
|
+
type: config$4.amis.name,
|
|
810
|
+
label: config$4.title,
|
|
630
811
|
objectApiName: "${objectName}",
|
|
631
812
|
recordId: "${recordId}",
|
|
632
813
|
// relatedObjectApiName: "contacts"
|
|
633
814
|
},
|
|
634
815
|
previewSchema: {
|
|
635
|
-
type: config$
|
|
816
|
+
type: config$4.amis.name,
|
|
636
817
|
objectApiName: "accounts",
|
|
637
818
|
// relatedObjectApiName: "contacts"
|
|
638
819
|
},
|
|
@@ -686,7 +867,7 @@
|
|
|
686
867
|
* @LastEditTime: 2022-09-02 09:04:33
|
|
687
868
|
* @Description:
|
|
688
869
|
*/
|
|
689
|
-
var config$
|
|
870
|
+
var config$3 = {
|
|
690
871
|
componentType: 'amisSchema',
|
|
691
872
|
group: "华炎魔方",
|
|
692
873
|
componentName: "AmisProvider",
|
|
@@ -711,33 +892,33 @@
|
|
|
711
892
|
icon: "fa-fw fa fa-list-alt"
|
|
712
893
|
}
|
|
713
894
|
};
|
|
714
|
-
var AmisProvider = __assign(__assign({}, config$
|
|
895
|
+
var AmisProvider = __assign(__assign({}, config$3), { snippets: [
|
|
715
896
|
{
|
|
716
|
-
title: config$
|
|
897
|
+
title: config$3.title,
|
|
717
898
|
screenshot: "",
|
|
718
899
|
schema: {
|
|
719
|
-
componentName: config$
|
|
720
|
-
props: config$
|
|
900
|
+
componentName: config$3.componentName,
|
|
901
|
+
props: config$3.preview
|
|
721
902
|
}
|
|
722
903
|
}
|
|
723
904
|
], amis: {
|
|
724
905
|
render: {
|
|
725
|
-
type: config$
|
|
906
|
+
type: config$3.amis.name,
|
|
726
907
|
usage: "renderer",
|
|
727
908
|
weight: 1,
|
|
728
909
|
framework: "react"
|
|
729
910
|
},
|
|
730
911
|
plugin: {
|
|
731
|
-
rendererName: config$
|
|
912
|
+
rendererName: config$3.amis.name,
|
|
732
913
|
$schema: '/schemas/UnkownSchema.json',
|
|
733
|
-
name: config$
|
|
734
|
-
description: config$
|
|
735
|
-
tags: [config$
|
|
914
|
+
name: config$3.title,
|
|
915
|
+
description: config$3.title,
|
|
916
|
+
tags: [config$3.group],
|
|
736
917
|
order: -9999,
|
|
737
|
-
icon: config$
|
|
918
|
+
icon: config$3.amis.icon,
|
|
738
919
|
scaffold: {
|
|
739
|
-
type: config$
|
|
740
|
-
label: config$
|
|
920
|
+
type: config$3.amis.name,
|
|
921
|
+
label: config$3.title,
|
|
741
922
|
body: [], // 容器类字段
|
|
742
923
|
},
|
|
743
924
|
// 容器类组件必需字段
|
|
@@ -748,7 +929,7 @@
|
|
|
748
929
|
},
|
|
749
930
|
],
|
|
750
931
|
previewSchema: {
|
|
751
|
-
type: config$
|
|
932
|
+
type: config$3.amis.name,
|
|
752
933
|
},
|
|
753
934
|
panelTitle: "设置",
|
|
754
935
|
panelControls: []
|
|
@@ -762,7 +943,7 @@
|
|
|
762
943
|
* @LastEditTime: 2022-10-12 13:23:05
|
|
763
944
|
* @Description:
|
|
764
945
|
*/
|
|
765
|
-
var config = {
|
|
946
|
+
var config$2 = {
|
|
766
947
|
// componentType: 'amisSchema',
|
|
767
948
|
group: "华炎魔方",
|
|
768
949
|
componentName: "AmisObjectFieldLookup",
|
|
@@ -786,7 +967,147 @@
|
|
|
786
967
|
icon: "fa-fw fa fa-list-alt"
|
|
787
968
|
}
|
|
788
969
|
};
|
|
789
|
-
var AmisObjectFieldLookup = __assign(__assign({}, config), { snippets: [
|
|
970
|
+
var AmisObjectFieldLookup = __assign(__assign({}, config$2), { snippets: [
|
|
971
|
+
{
|
|
972
|
+
title: config$2.title,
|
|
973
|
+
screenshot: "",
|
|
974
|
+
schema: {
|
|
975
|
+
componentName: config$2.componentName,
|
|
976
|
+
props: config$2.preview
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
], amis: {
|
|
980
|
+
render: {
|
|
981
|
+
type: config$2.amis.name,
|
|
982
|
+
usage: "formitem",
|
|
983
|
+
weight: 1,
|
|
984
|
+
framework: "react"
|
|
985
|
+
},
|
|
986
|
+
plugin: {
|
|
987
|
+
rendererName: config$2.amis.name,
|
|
988
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
989
|
+
name: config$2.title,
|
|
990
|
+
description: config$2.title,
|
|
991
|
+
tags: [config$2.group],
|
|
992
|
+
order: -9999,
|
|
993
|
+
icon: config$2.amis.icon,
|
|
994
|
+
scaffold: {
|
|
995
|
+
type: config$2.amis.name,
|
|
996
|
+
label: config$2.title,
|
|
997
|
+
name: 'board',
|
|
998
|
+
columns: 1,
|
|
999
|
+
vertical: false
|
|
1000
|
+
},
|
|
1001
|
+
previewSchema: {
|
|
1002
|
+
type: config$2.amis.name,
|
|
1003
|
+
},
|
|
1004
|
+
panelTitle: "设置",
|
|
1005
|
+
panelControls: []
|
|
1006
|
+
}
|
|
1007
|
+
} });
|
|
1008
|
+
|
|
1009
|
+
/*
|
|
1010
|
+
* @Author: baozhoutao@steedos.com
|
|
1011
|
+
* @Date: 2022-10-11 09:39:38
|
|
1012
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
1013
|
+
* @LastEditTime: 2022-10-21 11:04:58
|
|
1014
|
+
* @Description:
|
|
1015
|
+
*/
|
|
1016
|
+
var config$1 = {
|
|
1017
|
+
// componentType: 'amisSchema',
|
|
1018
|
+
group: "华炎魔方",
|
|
1019
|
+
componentName: "AmisObjectButton",
|
|
1020
|
+
title: "Steedos Button",
|
|
1021
|
+
docUrl: "",
|
|
1022
|
+
screenshot: "",
|
|
1023
|
+
npm: {
|
|
1024
|
+
package: "@steedos-widgets/amis-object",
|
|
1025
|
+
version: "{{version}}",
|
|
1026
|
+
exportName: "AmisObjectButton",
|
|
1027
|
+
main: "",
|
|
1028
|
+
destructuring: true,
|
|
1029
|
+
subName: ""
|
|
1030
|
+
},
|
|
1031
|
+
preview: {},
|
|
1032
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
1033
|
+
engines: ["amis"],
|
|
1034
|
+
// settings for amis.
|
|
1035
|
+
amis: {
|
|
1036
|
+
name: 'steedos-object-button',
|
|
1037
|
+
icon: "fa-fw fa fa-list-alt"
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
var AmisObjectButton = __assign(__assign({}, config$1), { snippets: [
|
|
1041
|
+
{
|
|
1042
|
+
title: config$1.title,
|
|
1043
|
+
screenshot: "",
|
|
1044
|
+
schema: {
|
|
1045
|
+
componentName: config$1.componentName,
|
|
1046
|
+
props: config$1.preview
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
], amis: {
|
|
1050
|
+
render: {
|
|
1051
|
+
type: config$1.amis.name,
|
|
1052
|
+
usage: "renderer",
|
|
1053
|
+
weight: 1,
|
|
1054
|
+
framework: "react"
|
|
1055
|
+
},
|
|
1056
|
+
plugin: {
|
|
1057
|
+
rendererName: config$1.amis.name,
|
|
1058
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
1059
|
+
name: config$1.title,
|
|
1060
|
+
description: config$1.title,
|
|
1061
|
+
tags: [config$1.group],
|
|
1062
|
+
order: -9999,
|
|
1063
|
+
icon: config$1.amis.icon,
|
|
1064
|
+
scaffold: {
|
|
1065
|
+
type: config$1.amis.name,
|
|
1066
|
+
label: config$1.title,
|
|
1067
|
+
name: 'board',
|
|
1068
|
+
columns: 1,
|
|
1069
|
+
vertical: false
|
|
1070
|
+
},
|
|
1071
|
+
previewSchema: {
|
|
1072
|
+
type: config$1.amis.name,
|
|
1073
|
+
},
|
|
1074
|
+
panelTitle: "设置",
|
|
1075
|
+
panelControls: []
|
|
1076
|
+
}
|
|
1077
|
+
} });
|
|
1078
|
+
|
|
1079
|
+
/*
|
|
1080
|
+
* @Author: baozhoutao@steedos.com
|
|
1081
|
+
* @Date: 2022-10-11 09:39:38
|
|
1082
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
1083
|
+
* @LastEditTime: 2022-10-24 11:34:55
|
|
1084
|
+
* @Description:
|
|
1085
|
+
*/
|
|
1086
|
+
var config = {
|
|
1087
|
+
// componentType: 'amisSchema',
|
|
1088
|
+
group: "华炎魔方",
|
|
1089
|
+
componentName: "SteedosDropdownButton",
|
|
1090
|
+
title: "Steedos Button",
|
|
1091
|
+
docUrl: "",
|
|
1092
|
+
screenshot: "",
|
|
1093
|
+
npm: {
|
|
1094
|
+
package: "@steedos-widgets/amis-object",
|
|
1095
|
+
version: "{{version}}",
|
|
1096
|
+
exportName: "SteedosDropdownButton",
|
|
1097
|
+
main: "",
|
|
1098
|
+
destructuring: true,
|
|
1099
|
+
subName: ""
|
|
1100
|
+
},
|
|
1101
|
+
preview: {},
|
|
1102
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
1103
|
+
engines: ["amis"],
|
|
1104
|
+
// settings for amis.
|
|
1105
|
+
amis: {
|
|
1106
|
+
name: 'steedos-dropdown-button',
|
|
1107
|
+
icon: "fa-fw fa fa-list-alt"
|
|
1108
|
+
}
|
|
1109
|
+
};
|
|
1110
|
+
var SteedosDropdownButton = __assign(__assign({}, config), { snippets: [
|
|
790
1111
|
{
|
|
791
1112
|
title: config.title,
|
|
792
1113
|
screenshot: "",
|
|
@@ -798,7 +1119,7 @@
|
|
|
798
1119
|
], amis: {
|
|
799
1120
|
render: {
|
|
800
1121
|
type: config.amis.name,
|
|
801
|
-
usage: "
|
|
1122
|
+
usage: "renderer",
|
|
802
1123
|
weight: 1,
|
|
803
1124
|
framework: "react"
|
|
804
1125
|
},
|
|
@@ -829,16 +1150,38 @@
|
|
|
829
1150
|
* @Author: baozhoutao@steedos.com
|
|
830
1151
|
* @Date: 2022-08-31 16:32:35
|
|
831
1152
|
* @LastEditors: baozhoutao@steedos.com
|
|
832
|
-
* @LastEditTime: 2022-10-
|
|
1153
|
+
* @LastEditTime: 2022-10-26 15:58:26
|
|
833
1154
|
* @Description:
|
|
834
1155
|
*/
|
|
835
1156
|
// import Hello from './metas/Hello';
|
|
836
|
-
var components = [
|
|
1157
|
+
var components = [
|
|
1158
|
+
AmisObjectForm,
|
|
1159
|
+
AmisObjectListview,
|
|
1160
|
+
AmisRecordDetailHeader,
|
|
1161
|
+
AmisSelectUser,
|
|
1162
|
+
AmisRecordDetailRelatedList,
|
|
1163
|
+
AmisProvider,
|
|
1164
|
+
AmisObjectFieldLookup,
|
|
1165
|
+
AmisObjectTable,
|
|
1166
|
+
AmisObjectButton,
|
|
1167
|
+
SteedosDropdownButton
|
|
1168
|
+
];
|
|
837
1169
|
var componentList = [
|
|
838
1170
|
{
|
|
839
1171
|
title: "华炎魔方",
|
|
840
1172
|
icon: "",
|
|
841
|
-
children: [
|
|
1173
|
+
children: [
|
|
1174
|
+
AmisObjectForm,
|
|
1175
|
+
AmisObjectListview,
|
|
1176
|
+
AmisRecordDetailHeader,
|
|
1177
|
+
AmisSelectUser,
|
|
1178
|
+
AmisRecordDetailRelatedList,
|
|
1179
|
+
AmisProvider,
|
|
1180
|
+
AmisObjectFieldLookup,
|
|
1181
|
+
AmisObjectTable,
|
|
1182
|
+
AmisObjectButton,
|
|
1183
|
+
SteedosDropdownButton
|
|
1184
|
+
]
|
|
842
1185
|
}
|
|
843
1186
|
];
|
|
844
1187
|
var meta = {
|