@steedos-widgets/amis-object 6.10.1-beta.51 → 6.10.1-beta.53
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/AmisInstanceDetail.d.ts +3 -4
- package/dist/amis-object.cjs.css +6 -0
- package/dist/amis-object.cjs.js +961 -222
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +6 -0
- package/dist/amis-object.esm.js +961 -222
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +6 -0
- package/dist/amis-object.umd.js +54 -52
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +19 -19
- package/dist/index.d.ts +3 -3
- package/dist/meta.js +326 -822
- package/package.json +3 -3
package/dist/meta.js
CHANGED
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
* @LastEditTime: 2025-08-26 10:25:59
|
|
82
82
|
* @Description:
|
|
83
83
|
*/
|
|
84
|
-
var t = window.steedosI18next.t;
|
|
84
|
+
var t$3 = window.steedosI18next.t;
|
|
85
85
|
var config$B = {
|
|
86
86
|
componentType: 'amisSchema',
|
|
87
87
|
group: "华炎魔方",
|
|
88
88
|
componentName: "AmisObjectForm",
|
|
89
|
-
title: t('metas-amis-object:object_form_title'),
|
|
89
|
+
title: t$3('metas-amis-object:object_form_title'),
|
|
90
90
|
docUrl: "",
|
|
91
91
|
screenshot: "",
|
|
92
92
|
npm: {
|
|
@@ -5413,13 +5413,13 @@
|
|
|
5413
5413
|
}
|
|
5414
5414
|
} });
|
|
5415
5415
|
|
|
5416
|
-
|
|
5416
|
+
var t$2 = window.steedosI18next.t;
|
|
5417
5417
|
var createMetaConfig = function (name, type, title, icon) {
|
|
5418
5418
|
var e_1, _a;
|
|
5419
5419
|
var _b;
|
|
5420
5420
|
var metaConfig = {
|
|
5421
5421
|
componentType: 'amisSchema',
|
|
5422
|
-
group:
|
|
5422
|
+
group: t$2('widgets-meta:sfield_tab_group', '字段'),
|
|
5423
5423
|
componentName: "SteedosField".concat(name),
|
|
5424
5424
|
title: title,
|
|
5425
5425
|
docUrl: "",
|
|
@@ -5433,122 +5433,41 @@
|
|
|
5433
5433
|
subName: ""
|
|
5434
5434
|
},
|
|
5435
5435
|
preview: {},
|
|
5436
|
-
targets: [
|
|
5437
|
-
engines: [
|
|
5436
|
+
targets: ['steedos__RecordPage', 'steedos__AppPage', 'steedos__HomePage'],
|
|
5437
|
+
engines: ['amis'],
|
|
5438
5438
|
amis: {
|
|
5439
5439
|
name: "sfield-".concat(name.toLowerCase()),
|
|
5440
5440
|
icon: icon
|
|
5441
5441
|
}
|
|
5442
5442
|
};
|
|
5443
5443
|
var fieldTypes = [
|
|
5444
|
-
{
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
},
|
|
5448
|
-
{
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
},
|
|
5452
|
-
{
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
},
|
|
5456
|
-
{
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
},
|
|
5460
|
-
{
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
},
|
|
5464
|
-
{
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
},
|
|
5468
|
-
{
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
},
|
|
5472
|
-
{
|
|
5473
|
-
"label": "复选框",
|
|
5474
|
-
"value": "boolean"
|
|
5475
|
-
},
|
|
5476
|
-
{
|
|
5477
|
-
"label": "开关",
|
|
5478
|
-
"value": "toggle"
|
|
5479
|
-
},
|
|
5480
|
-
{
|
|
5481
|
-
"label": "日期",
|
|
5482
|
-
"value": "date"
|
|
5483
|
-
},
|
|
5484
|
-
{
|
|
5485
|
-
"label": "日期时间",
|
|
5486
|
-
"value": "datetime"
|
|
5487
|
-
},
|
|
5488
|
-
{
|
|
5489
|
-
"label": "时间",
|
|
5490
|
-
"value": "time"
|
|
5491
|
-
},
|
|
5492
|
-
{
|
|
5493
|
-
"label": "数值",
|
|
5494
|
-
"value": "number"
|
|
5495
|
-
},
|
|
5496
|
-
{
|
|
5497
|
-
"label": "金额",
|
|
5498
|
-
"value": "currency"
|
|
5499
|
-
},
|
|
5500
|
-
{
|
|
5501
|
-
"label": "百分比",
|
|
5502
|
-
"value": "percent"
|
|
5503
|
-
},
|
|
5504
|
-
{
|
|
5505
|
-
"label": "密码",
|
|
5506
|
-
"value": "password"
|
|
5507
|
-
},
|
|
5508
|
-
{
|
|
5509
|
-
"label": "相关表关系",
|
|
5510
|
-
"value": "lookup"
|
|
5511
|
-
},
|
|
5512
|
-
{
|
|
5513
|
-
"label": "主/子表关系",
|
|
5514
|
-
"value": "master_detail"
|
|
5515
|
-
},
|
|
5516
|
-
{
|
|
5517
|
-
"label": "自动编号",
|
|
5518
|
-
"value": "autonumber"
|
|
5519
|
-
},
|
|
5520
|
-
{
|
|
5521
|
-
"label": "网址",
|
|
5522
|
-
"value": "url"
|
|
5523
|
-
},
|
|
5524
|
-
{
|
|
5525
|
-
"label": "邮件地址",
|
|
5526
|
-
"value": "email"
|
|
5527
|
-
},
|
|
5528
|
-
{
|
|
5529
|
-
"label": "地理位置",
|
|
5530
|
-
"value": "location"
|
|
5531
|
-
},
|
|
5532
|
-
{
|
|
5533
|
-
"label": "图片",
|
|
5534
|
-
"value": "image"
|
|
5535
|
-
},
|
|
5536
|
-
{
|
|
5537
|
-
"label": "附件",
|
|
5538
|
-
"value": "file"
|
|
5539
|
-
},
|
|
5540
|
-
{
|
|
5541
|
-
"label": "公式",
|
|
5542
|
-
"value": "formula"
|
|
5543
|
-
},
|
|
5544
|
-
{
|
|
5545
|
-
"label": "累计汇总",
|
|
5546
|
-
"value": "summary"
|
|
5547
|
-
},
|
|
5548
|
-
{
|
|
5549
|
-
"label": "表格",
|
|
5550
|
-
"value": "table"
|
|
5551
|
-
}
|
|
5444
|
+
{ "label": t$2('widgets-meta:sfield_text', "文本"), "value": "text" },
|
|
5445
|
+
{ "label": t$2('widgets-meta:sfield_textarea', "长文本"), "value": "textarea" },
|
|
5446
|
+
{ "label": t$2('widgets-meta:sfield_html', "富文本"), "value": "html" },
|
|
5447
|
+
{ "label": t$2('widgets-meta:sfield_code', "代码"), "value": "code" },
|
|
5448
|
+
{ "label": t$2('widgets-meta:sfield_markdown', "Markdown"), "value": "markdown" },
|
|
5449
|
+
{ "label": t$2('widgets-meta:sfield_select', "选择框"), "value": "select" },
|
|
5450
|
+
{ "label": t$2('widgets-meta:sfield_color', "颜色"), "value": "color" },
|
|
5451
|
+
{ "label": t$2('widgets-meta:sfield_boolean', "复选框"), "value": "boolean" },
|
|
5452
|
+
{ "label": t$2('widgets-meta:sfield_toggle', "开关"), "value": "toggle" },
|
|
5453
|
+
{ "label": t$2('widgets-meta:sfield_date', "日期"), "value": "date" },
|
|
5454
|
+
{ "label": t$2('widgets-meta:sfield_datetime', "日期时间"), "value": "datetime" },
|
|
5455
|
+
{ "label": t$2('widgets-meta:sfield_time', "时间"), "value": "time" },
|
|
5456
|
+
{ "label": t$2('widgets-meta:sfield_number', "数值"), "value": "number" },
|
|
5457
|
+
{ "label": t$2('widgets-meta:sfield_currency', "金额"), "value": "currency" },
|
|
5458
|
+
{ "label": t$2('widgets-meta:sfield_percent', "百分比"), "value": "percent" },
|
|
5459
|
+
{ "label": t$2('widgets-meta:sfield_password', "密码"), "value": "password" },
|
|
5460
|
+
{ "label": t$2('widgets-meta:sfield_lookup', "相关表关系"), "value": "lookup" },
|
|
5461
|
+
{ "label": t$2('widgets-meta:sfield_master_detail', "主/子表关系"), "value": "master_detail" },
|
|
5462
|
+
{ "label": t$2('widgets-meta:sfield_autonumber', "自动编号"), "value": "autonumber" },
|
|
5463
|
+
{ "label": t$2('widgets-meta:sfield_url', "网址"), "value": "url" },
|
|
5464
|
+
{ "label": t$2('widgets-meta:sfield_email', "邮件地址"), "value": "email" },
|
|
5465
|
+
{ "label": t$2('widgets-meta:sfield_location', "地理位置"), "value": "location" },
|
|
5466
|
+
{ "label": t$2('widgets-meta:sfield_image', "图片"), "value": "image" },
|
|
5467
|
+
{ "label": t$2('widgets-meta:sfield_file', "附件"), "value": "file" },
|
|
5468
|
+
{ "label": t$2('widgets-meta:sfield_formula', "公式"), "value": "formula" },
|
|
5469
|
+
{ "label": t$2('widgets-meta:sfield_summary', "累计汇总"), "value": "summary" },
|
|
5470
|
+
{ "label": t$2('widgets-meta:sfield_table', "表格"), "value": "table" }
|
|
5552
5471
|
];
|
|
5553
5472
|
var disabledFields = ((_b = window.parent) === null || _b === void 0 ? void 0 : _b._disabledFields) || [];
|
|
5554
5473
|
var fieldTypeOptions = [];
|
|
@@ -5567,6 +5486,49 @@
|
|
|
5567
5486
|
}
|
|
5568
5487
|
finally { if (e_1) throw e_1.error; }
|
|
5569
5488
|
}
|
|
5489
|
+
var _config = {
|
|
5490
|
+
"type": type,
|
|
5491
|
+
"label": title,
|
|
5492
|
+
"amis": {}
|
|
5493
|
+
};
|
|
5494
|
+
if (type == 'table') {
|
|
5495
|
+
_config.columns = [
|
|
5496
|
+
{
|
|
5497
|
+
"type": "sfield-text",
|
|
5498
|
+
"config": {
|
|
5499
|
+
"type": "text",
|
|
5500
|
+
"label": t$2('widgets-meta:sfield_control_column_1_label', "column 1"),
|
|
5501
|
+
"amis": {
|
|
5502
|
+
"mode": "horizontal",
|
|
5503
|
+
"name": "fuwrx6",
|
|
5504
|
+
"id": "u:3a883adb07a5"
|
|
5505
|
+
},
|
|
5506
|
+
"object": "",
|
|
5507
|
+
"name": "fuwrx6"
|
|
5508
|
+
},
|
|
5509
|
+
"label": t$2('widgets-meta:sfield_control_column_1_label', "column 1"),
|
|
5510
|
+
"id": "u:fc066ce3ce29",
|
|
5511
|
+
"placeholder": "-"
|
|
5512
|
+
},
|
|
5513
|
+
{
|
|
5514
|
+
"type": "sfield-text",
|
|
5515
|
+
"config": {
|
|
5516
|
+
"type": "text",
|
|
5517
|
+
"label": t$2('widgets-meta:sfield_control_column_2_label', "column 2"),
|
|
5518
|
+
"amis": {
|
|
5519
|
+
"mode": "horizontal",
|
|
5520
|
+
"name": "fuwrx6",
|
|
5521
|
+
"id": "u:3a883adb07a52"
|
|
5522
|
+
},
|
|
5523
|
+
"object": "",
|
|
5524
|
+
"name": "fuwrx6"
|
|
5525
|
+
},
|
|
5526
|
+
"label": t$2('widgets-meta:sfield_control_column_2_label', "column 2"),
|
|
5527
|
+
"id": "u:fc066ce3ce292",
|
|
5528
|
+
"placeholder": "-"
|
|
5529
|
+
}
|
|
5530
|
+
];
|
|
5531
|
+
}
|
|
5570
5532
|
return __assign(__assign({}, metaConfig), { snippets: [
|
|
5571
5533
|
{
|
|
5572
5534
|
title: metaConfig.title,
|
|
@@ -5590,95 +5552,17 @@
|
|
|
5590
5552
|
isBaseComponent: true,
|
|
5591
5553
|
description: metaConfig.title,
|
|
5592
5554
|
tags: [metaConfig.group],
|
|
5593
|
-
order: -
|
|
5555
|
+
order: -99999,
|
|
5594
5556
|
icon: metaConfig.amis.icon,
|
|
5595
5557
|
scaffold: {
|
|
5596
5558
|
type: metaConfig.amis.name,
|
|
5597
|
-
config:
|
|
5598
|
-
"type": type,
|
|
5599
|
-
"label": title,
|
|
5600
|
-
"amis": {},
|
|
5601
|
-
"columns": type == 'table' ? [
|
|
5602
|
-
{
|
|
5603
|
-
"type": "sfield-text",
|
|
5604
|
-
"config": {
|
|
5605
|
-
"type": "text",
|
|
5606
|
-
"label": "column 1",
|
|
5607
|
-
"amis": {
|
|
5608
|
-
"mode": "horizontal",
|
|
5609
|
-
"name": "fuwrx6",
|
|
5610
|
-
"id": "u:3a883adb07a5"
|
|
5611
|
-
},
|
|
5612
|
-
"object": "",
|
|
5613
|
-
"name": "fuwrx6"
|
|
5614
|
-
},
|
|
5615
|
-
"label": "column 1",
|
|
5616
|
-
"id": "u:fc066ce3ce29",
|
|
5617
|
-
"placeholder": "-"
|
|
5618
|
-
}, {
|
|
5619
|
-
"type": "sfield-text",
|
|
5620
|
-
"config": {
|
|
5621
|
-
"type": "text",
|
|
5622
|
-
"label": "column 2",
|
|
5623
|
-
"amis": {
|
|
5624
|
-
"mode": "horizontal",
|
|
5625
|
-
"name": "fuwrx6",
|
|
5626
|
-
"id": "u:3a883adb07a52"
|
|
5627
|
-
},
|
|
5628
|
-
"object": "",
|
|
5629
|
-
"name": "fuwrx6"
|
|
5630
|
-
},
|
|
5631
|
-
"label": "column 2",
|
|
5632
|
-
"id": "u:fc066ce3ce292",
|
|
5633
|
-
"placeholder": "-"
|
|
5634
|
-
}
|
|
5635
|
-
] : null
|
|
5636
|
-
}
|
|
5559
|
+
config: _config
|
|
5637
5560
|
},
|
|
5638
5561
|
previewSchema: {
|
|
5639
5562
|
type: metaConfig.amis.name,
|
|
5640
|
-
config:
|
|
5641
|
-
"type": type,
|
|
5642
|
-
"label": title,
|
|
5643
|
-
"amis": {},
|
|
5644
|
-
"columns": type == 'table' ? [
|
|
5645
|
-
{
|
|
5646
|
-
"type": "sfield-text",
|
|
5647
|
-
"config": {
|
|
5648
|
-
"type": "text",
|
|
5649
|
-
"label": "column 1",
|
|
5650
|
-
"amis": {
|
|
5651
|
-
"mode": "horizontal",
|
|
5652
|
-
"name": "fuwrx6",
|
|
5653
|
-
"id": "u:3a883adb07a5"
|
|
5654
|
-
},
|
|
5655
|
-
"object": "",
|
|
5656
|
-
"name": "fuwrx6"
|
|
5657
|
-
},
|
|
5658
|
-
"label": "column 1",
|
|
5659
|
-
"id": "u:fc066ce3ce29",
|
|
5660
|
-
"placeholder": "-"
|
|
5661
|
-
}, {
|
|
5662
|
-
"type": "sfield-text",
|
|
5663
|
-
"config": {
|
|
5664
|
-
"type": "text",
|
|
5665
|
-
"label": "column 2",
|
|
5666
|
-
"amis": {
|
|
5667
|
-
"mode": "horizontal",
|
|
5668
|
-
"name": "fuwrx6",
|
|
5669
|
-
"id": "u:3a883adb07a52"
|
|
5670
|
-
},
|
|
5671
|
-
"object": "",
|
|
5672
|
-
"name": "fuwrx6"
|
|
5673
|
-
},
|
|
5674
|
-
"label": "column 2",
|
|
5675
|
-
"id": "u:fc066ce3ce292",
|
|
5676
|
-
"placeholder": "-"
|
|
5677
|
-
}
|
|
5678
|
-
] : null
|
|
5679
|
-
}
|
|
5563
|
+
config: _config
|
|
5680
5564
|
},
|
|
5681
|
-
panelTitle: "设置",
|
|
5565
|
+
panelTitle: t$2('widgets-meta:sfield_settings_panel_title', "设置"),
|
|
5682
5566
|
panelControls: [
|
|
5683
5567
|
{
|
|
5684
5568
|
"type": "tabs",
|
|
@@ -5688,17 +5572,9 @@
|
|
|
5688
5572
|
contentClassName: 'no-border editor-prop-config-tabs-cont',
|
|
5689
5573
|
"tabs": [
|
|
5690
5574
|
{
|
|
5691
|
-
"title": "通用",
|
|
5575
|
+
"title": t$2('widgets-meta:sfield_control_general', "通用"),
|
|
5692
5576
|
"className": 'ae-formItemControl-body',
|
|
5693
5577
|
"body": [
|
|
5694
|
-
// {
|
|
5695
|
-
// "type": "input-text",
|
|
5696
|
-
// "name": "config.object",
|
|
5697
|
-
// "value": "${objectName}",
|
|
5698
|
-
// "disabled": true,
|
|
5699
|
-
// "label": "对象",
|
|
5700
|
-
// "required": true
|
|
5701
|
-
// },
|
|
5702
5578
|
{
|
|
5703
5579
|
"type": "formula",
|
|
5704
5580
|
"name": "visibleOn",
|
|
@@ -5706,7 +5582,7 @@
|
|
|
5706
5582
|
},
|
|
5707
5583
|
{
|
|
5708
5584
|
"name": "config.type",
|
|
5709
|
-
"label": "字段类型",
|
|
5585
|
+
"label": t$2('widgets-meta:sfield_control_field_type', "字段类型"),
|
|
5710
5586
|
"required": true,
|
|
5711
5587
|
"type": "select",
|
|
5712
5588
|
"joinValues": false,
|
|
@@ -5722,7 +5598,7 @@
|
|
|
5722
5598
|
},
|
|
5723
5599
|
{
|
|
5724
5600
|
"name": "config.label",
|
|
5725
|
-
"label": "显示名称",
|
|
5601
|
+
"label": t$2('widgets-meta:sfield_control_display_name', "显示名称"),
|
|
5726
5602
|
"labelRemark": "",
|
|
5727
5603
|
"description": "",
|
|
5728
5604
|
"required": true,
|
|
@@ -5732,8 +5608,8 @@
|
|
|
5732
5608
|
},
|
|
5733
5609
|
{
|
|
5734
5610
|
"name": "config.name",
|
|
5735
|
-
"label": "API 名称",
|
|
5736
|
-
"labelRemark": "API 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符",
|
|
5611
|
+
"label": t$2('widgets-meta:sfield_control_api_name', "API 名称"),
|
|
5612
|
+
"labelRemark": t$2('widgets-meta:sfield_control_api_name_description', "API 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符"),
|
|
5737
5613
|
"description": "",
|
|
5738
5614
|
"required": true,
|
|
5739
5615
|
"type": "input-text",
|
|
@@ -5746,7 +5622,7 @@
|
|
|
5746
5622
|
},
|
|
5747
5623
|
{
|
|
5748
5624
|
"name": "config.required",
|
|
5749
|
-
"label": "必填",
|
|
5625
|
+
"label": t$2('widgets-meta:sfield_control_required', "必填"),
|
|
5750
5626
|
"required": false,
|
|
5751
5627
|
"type": "checkbox",
|
|
5752
5628
|
"tpl": null,
|
|
@@ -5756,7 +5632,7 @@
|
|
|
5756
5632
|
},
|
|
5757
5633
|
{
|
|
5758
5634
|
"name": "config.is_wide",
|
|
5759
|
-
"label": "宽字段",
|
|
5635
|
+
"label": t$2('widgets-meta:sfield_control_wide_field', "宽字段"),
|
|
5760
5636
|
"required": false,
|
|
5761
5637
|
"type": "checkbox",
|
|
5762
5638
|
"tpl": null,
|
|
@@ -5766,7 +5642,7 @@
|
|
|
5766
5642
|
},
|
|
5767
5643
|
{
|
|
5768
5644
|
"name": "config.autonumber_enable_modify",
|
|
5769
|
-
"label": "允许修改编号",
|
|
5645
|
+
"label": t$2('widgets-meta:sfield_control_allow_modify_number', "允许修改编号"),
|
|
5770
5646
|
"required": false,
|
|
5771
5647
|
"type": "checkbox",
|
|
5772
5648
|
"tpl": null,
|
|
@@ -5775,7 +5651,7 @@
|
|
|
5775
5651
|
},
|
|
5776
5652
|
{
|
|
5777
5653
|
"name": "config.rows",
|
|
5778
|
-
"label": "多行文本行数",
|
|
5654
|
+
"label": t$2('widgets-meta:sfield_control_textarea_rows', "多行文本行数"),
|
|
5779
5655
|
"labelRemark": "",
|
|
5780
5656
|
"description": "",
|
|
5781
5657
|
"requiredOn": "config.type === 'textarea' ? true: false",
|
|
@@ -5786,167 +5662,50 @@
|
|
|
5786
5662
|
},
|
|
5787
5663
|
{
|
|
5788
5664
|
"name": "config.language",
|
|
5789
|
-
"label": "语言",
|
|
5665
|
+
"label": t$2('widgets-meta:sfield_control_language', "语言"),
|
|
5790
5666
|
"requiredOn": "['code'].indexOf(config.type) > -1 ? true: false",
|
|
5791
5667
|
"type": "select",
|
|
5792
5668
|
"joinValues": false,
|
|
5793
5669
|
"options": [
|
|
5794
|
-
{
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
},
|
|
5798
|
-
{
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
},
|
|
5802
|
-
{
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
},
|
|
5806
|
-
{
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
},
|
|
5810
|
-
{
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
},
|
|
5814
|
-
{
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
},
|
|
5818
|
-
{
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
},
|
|
5822
|
-
{
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
},
|
|
5826
|
-
{
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
},
|
|
5830
|
-
{
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
},
|
|
5834
|
-
{
|
|
5835
|
-
"label": "html",
|
|
5836
|
-
"value": "html"
|
|
5837
|
-
},
|
|
5838
|
-
{
|
|
5839
|
-
"label": "ini",
|
|
5840
|
-
"value": "ini"
|
|
5841
|
-
},
|
|
5842
|
-
{
|
|
5843
|
-
"label": "java",
|
|
5844
|
-
"value": "java"
|
|
5845
|
-
},
|
|
5846
|
-
{
|
|
5847
|
-
"label": "javascript",
|
|
5848
|
-
"value": "javascript"
|
|
5849
|
-
},
|
|
5850
|
-
{
|
|
5851
|
-
"label": "json",
|
|
5852
|
-
"value": "json"
|
|
5853
|
-
},
|
|
5854
|
-
{
|
|
5855
|
-
"label": "less",
|
|
5856
|
-
"value": "less"
|
|
5857
|
-
},
|
|
5858
|
-
{
|
|
5859
|
-
"label": "lua",
|
|
5860
|
-
"value": "lua"
|
|
5861
|
-
},
|
|
5862
|
-
{
|
|
5863
|
-
"label": "markdown",
|
|
5864
|
-
"value": "markdown"
|
|
5865
|
-
},
|
|
5866
|
-
{
|
|
5867
|
-
"label": "msdax",
|
|
5868
|
-
"value": "msdax"
|
|
5869
|
-
},
|
|
5870
|
-
{
|
|
5871
|
-
"label": "objective-c",
|
|
5872
|
-
"value": "objective-c"
|
|
5873
|
-
},
|
|
5874
|
-
{
|
|
5875
|
-
"label": "php",
|
|
5876
|
-
"value": "php"
|
|
5877
|
-
},
|
|
5878
|
-
{
|
|
5879
|
-
"label": "plaintext",
|
|
5880
|
-
"value": "plaintext"
|
|
5881
|
-
},
|
|
5882
|
-
{
|
|
5883
|
-
"label": "postiats",
|
|
5884
|
-
"value": "postiats"
|
|
5885
|
-
},
|
|
5886
|
-
{
|
|
5887
|
-
"label": "powershell",
|
|
5888
|
-
"value": "powershell"
|
|
5889
|
-
},
|
|
5890
|
-
{
|
|
5891
|
-
"label": "pug",
|
|
5892
|
-
"value": "pug"
|
|
5893
|
-
},
|
|
5894
|
-
{
|
|
5895
|
-
"label": "python",
|
|
5896
|
-
"value": "python"
|
|
5897
|
-
},
|
|
5898
|
-
{
|
|
5899
|
-
"label": "r",
|
|
5900
|
-
"value": "r"
|
|
5901
|
-
},
|
|
5902
|
-
{
|
|
5903
|
-
"label": "razor",
|
|
5904
|
-
"value": "razor"
|
|
5905
|
-
},
|
|
5906
|
-
{
|
|
5907
|
-
"label": "ruby",
|
|
5908
|
-
"value": "ruby"
|
|
5909
|
-
},
|
|
5910
|
-
{
|
|
5911
|
-
"label": "sb",
|
|
5912
|
-
"value": "sb"
|
|
5913
|
-
},
|
|
5914
|
-
{
|
|
5915
|
-
"label": "scss",
|
|
5916
|
-
"value": "scss"
|
|
5917
|
-
},
|
|
5918
|
-
{
|
|
5919
|
-
"label": "shell",
|
|
5920
|
-
"value": "shell"
|
|
5921
|
-
},
|
|
5922
|
-
{
|
|
5923
|
-
"label": "sol",
|
|
5924
|
-
"value": "sol"
|
|
5925
|
-
},
|
|
5926
|
-
{
|
|
5927
|
-
"label": "sql",
|
|
5928
|
-
"value": "sql"
|
|
5929
|
-
},
|
|
5930
|
-
{
|
|
5931
|
-
"label": "swift",
|
|
5932
|
-
"value": "swift"
|
|
5933
|
-
},
|
|
5934
|
-
{
|
|
5935
|
-
"label": "typescript",
|
|
5936
|
-
"value": "typescript"
|
|
5937
|
-
},
|
|
5938
|
-
{
|
|
5939
|
-
"label": "vb",
|
|
5940
|
-
"value": "vb"
|
|
5941
|
-
},
|
|
5942
|
-
{
|
|
5943
|
-
"label": "xml",
|
|
5944
|
-
"value": "xml"
|
|
5945
|
-
},
|
|
5946
|
-
{
|
|
5947
|
-
"label": "yaml",
|
|
5948
|
-
"value": "yaml"
|
|
5949
|
-
}
|
|
5670
|
+
{ "label": "bat", "value": "bat" },
|
|
5671
|
+
{ "label": "c", "value": "c" },
|
|
5672
|
+
{ "label": "coffeescript", "value": "coffeescript" },
|
|
5673
|
+
{ "label": "cpp", "value": "cpp" },
|
|
5674
|
+
{ "label": "csharp", "value": "csharp" },
|
|
5675
|
+
{ "label": "css", "value": "css" },
|
|
5676
|
+
{ "label": "dockerfile", "value": "dockerfile" },
|
|
5677
|
+
{ "label": "fsharp", "value": "fsharp" },
|
|
5678
|
+
{ "label": "go", "value": "go" },
|
|
5679
|
+
{ "label": "handlebars", "value": "handlebars" },
|
|
5680
|
+
{ "label": "html", "value": "html" },
|
|
5681
|
+
{ "label": "ini", "value": "ini" },
|
|
5682
|
+
{ "label": "java", "value": "java" },
|
|
5683
|
+
{ "label": "javascript", "value": "javascript" },
|
|
5684
|
+
{ "label": "json", "value": "json" },
|
|
5685
|
+
{ "label": "less", "value": "less" },
|
|
5686
|
+
{ "label": "lua", "value": "lua" },
|
|
5687
|
+
{ "label": "markdown", "value": "markdown" },
|
|
5688
|
+
{ "label": "msdax", "value": "msdax" },
|
|
5689
|
+
{ "label": "objective-c", "value": "objective-c" },
|
|
5690
|
+
{ "label": "php", "value": "php" },
|
|
5691
|
+
{ "label": "plaintext", "value": "plaintext" },
|
|
5692
|
+
{ "label": "postiats", "value": "postiats" },
|
|
5693
|
+
{ "label": "powershell", "value": "powershell" },
|
|
5694
|
+
{ "label": "pug", "value": "pug" },
|
|
5695
|
+
{ "label": "python", "value": "python" },
|
|
5696
|
+
{ "label": "r", "value": "r" },
|
|
5697
|
+
{ "label": "razor", "value": "razor" },
|
|
5698
|
+
{ "label": "ruby", "value": "ruby" },
|
|
5699
|
+
{ "label": "sb", "value": "sb" },
|
|
5700
|
+
{ "label": "scss", "value": "scss" },
|
|
5701
|
+
{ "label": "shell", "value": "shell" },
|
|
5702
|
+
{ "label": "sol", "value": "sol" },
|
|
5703
|
+
{ "label": "sql", "value": "sql" },
|
|
5704
|
+
{ "label": "swift", "value": "swift" },
|
|
5705
|
+
{ "label": "typescript", "value": "typescript" },
|
|
5706
|
+
{ "label": "vb", "value": "vb" },
|
|
5707
|
+
{ "label": "xml", "value": "xml" },
|
|
5708
|
+
{ "label": "yaml", "value": "yaml" }
|
|
5950
5709
|
],
|
|
5951
5710
|
"extractValue": true,
|
|
5952
5711
|
"clearable": true,
|
|
@@ -5959,8 +5718,8 @@
|
|
|
5959
5718
|
},
|
|
5960
5719
|
{
|
|
5961
5720
|
"name": "config.multiple",
|
|
5962
|
-
"label": "多选",
|
|
5963
|
-
"labelRemark": "单选<==>多选 相互切换,请自行重新提交已有记录或在数据库中统一修改此字段的保存格式。",
|
|
5721
|
+
"label": t$2('widgets-meta:sfield_control_multiple_select', "多选"),
|
|
5722
|
+
"labelRemark": t$2('widgets-meta:sfield_control_multiple_select_remark', "单选<==>多选 相互切换,请自行重新提交已有记录或在数据库中统一修改此字段的保存格式。"),
|
|
5964
5723
|
"type": "checkbox",
|
|
5965
5724
|
"visibleOn": "['select', 'lookup', 'image','file'].indexOf(config.type) > -1 ? true: false",
|
|
5966
5725
|
"clearValueOnHidden": true,
|
|
@@ -5968,8 +5727,8 @@
|
|
|
5968
5727
|
},
|
|
5969
5728
|
{
|
|
5970
5729
|
"name": "config.data_type",
|
|
5971
|
-
"label": "数据类型",
|
|
5972
|
-
"labelRemark": "字段类型为公式时,必须填写此字段。",
|
|
5730
|
+
"label": t$2('widgets-meta:sfield_control_data_type', "数据类型"),
|
|
5731
|
+
"labelRemark": t$2('widgets-meta:sfield_control_data_type_remark', "字段类型为公式时,必须填写此字段。"),
|
|
5973
5732
|
"requiredOn": "['formula'].indexOf(config.type) > -1 ? true: false",
|
|
5974
5733
|
"type": "select",
|
|
5975
5734
|
"joinValues": false,
|
|
@@ -5987,7 +5746,7 @@
|
|
|
5987
5746
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
5988
5747
|
},
|
|
5989
5748
|
"sendOn": "this.config.type",
|
|
5990
|
-
"adaptor": "\n
|
|
5749
|
+
"adaptor": "\n if (context.config.type === \"select\") {\n payload.data.options = [\n { \"label\": \"\u5E03\u5C14\", \"value\": \"boolean\" },\n { \"label\": \"\u6570\u503C\", \"value\": \"number\" },\n { \"label\": \"\u6587\u672C\", \"value\": \"text\" }\n ]\n } else {\n payload.data.options = [\n { \"label\": \"\u5E03\u5C14\", \"value\": \"boolean\" },\n { \"label\": \"\u6570\u503C\", \"value\": \"number\" },\n { \"label\": \"\u91D1\u989D\", \"value\": \"currency\" },\n { \"label\": \"\u767E\u5206\u6BD4\", \"value\": \"percent\" },\n { \"label\": \"\u6587\u672C\", \"value\": \"text\" },\n { \"label\": \"\u65E5\u671F\", \"value\": \"date\" },\n { \"label\": \"\u65E5\u671F\u65F6\u95F4\", \"value\": \"datetime\" }\n ]\n }\n return payload;\n "
|
|
5991
5750
|
},
|
|
5992
5751
|
"visibleOn": "['formula','select'].indexOf(config.type) > -1 ? true: false",
|
|
5993
5752
|
"clearValueOnHidden": true
|
|
@@ -5995,8 +5754,8 @@
|
|
|
5995
5754
|
{
|
|
5996
5755
|
"type": "input-table",
|
|
5997
5756
|
"name": "config.options",
|
|
5998
|
-
"label": "选择项",
|
|
5999
|
-
"labelRemark": "选择项的每个选项显示名及选项值不能为空,背景颜色请设置为ffffff这种格式的16进制数值。",
|
|
5757
|
+
"label": t$2('widgets-meta:sfield_control_select_options', "选择项"),
|
|
5758
|
+
"labelRemark": t$2('widgets-meta:sfield_control_select_options_remark', "选择项的每个选项显示名及选项值不能为空,背景颜色请设置为ffffff这种格式的16进制数值。"),
|
|
6000
5759
|
"requiredOn": "config.type === 'select' ? true: false",
|
|
6001
5760
|
"visibleOn": "config.type === 'select' ? true: false",
|
|
6002
5761
|
"clearValueOnHidden": true,
|
|
@@ -6010,49 +5769,17 @@
|
|
|
6010
5769
|
"visibleOn": "${!config.is_system}"
|
|
6011
5770
|
},
|
|
6012
5771
|
"columns": [
|
|
6013
|
-
{
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
"disabledOn": "${config.is_system == true}",
|
|
6019
|
-
"width": 100
|
|
6020
|
-
},
|
|
6021
|
-
{
|
|
6022
|
-
"type": "input-text",
|
|
6023
|
-
"name": "value",
|
|
6024
|
-
"label": "选项值",
|
|
6025
|
-
"required": true,
|
|
6026
|
-
"disabledOn": "${config.is_system == true}",
|
|
6027
|
-
"width": 100
|
|
6028
|
-
},
|
|
6029
|
-
{
|
|
6030
|
-
"type": "input-color",
|
|
6031
|
-
"name": "color",
|
|
6032
|
-
"label": "背景颜色",
|
|
6033
|
-
"disabledOn": "${config.is_system == true}",
|
|
6034
|
-
"width": 70
|
|
6035
|
-
},
|
|
6036
|
-
{
|
|
6037
|
-
"type": "textarea",
|
|
6038
|
-
"name": "description",
|
|
6039
|
-
"label": "描述",
|
|
6040
|
-
"disabledOn": "${config.is_system == true}",
|
|
6041
|
-
"width": 100
|
|
6042
|
-
},
|
|
6043
|
-
{
|
|
6044
|
-
"type": "operation",
|
|
6045
|
-
"label": "操作",
|
|
6046
|
-
"visibleOn": "${!config.is_system}",
|
|
6047
|
-
"width": 70,
|
|
6048
|
-
"fixed": "right"
|
|
6049
|
-
}
|
|
5772
|
+
{ "type": "input-text", "name": "label", "label": t$2('widgets-meta:sfield_control_option_label', "显示名"), "required": true, "disabledOn": "${config.is_system == true}", "width": 100 },
|
|
5773
|
+
{ "type": "input-text", "name": "value", "label": t$2('widgets-meta:sfield_control_option_value', "选项值"), "required": true, "disabledOn": "${config.is_system == true}", "width": 100 },
|
|
5774
|
+
{ "type": "input-color", "name": "color", "label": t$2('widgets-meta:sfield_control_option_color', "背景颜色"), "disabledOn": "${config.is_system == true}", "width": 70 },
|
|
5775
|
+
{ "type": "textarea", "name": "description", "label": t$2('widgets-meta:sfield_control_option_description', "描述"), "disabledOn": "${config.is_system == true}", "width": 100 },
|
|
5776
|
+
{ "type": "operation", "label": t$2('widgets-meta:sfield_control_option_operation', "操作"), "visibleOn": "${!config.is_system}", "width": 70, "fixed": "right" }
|
|
6050
5777
|
]
|
|
6051
5778
|
},
|
|
6052
5779
|
{
|
|
6053
5780
|
"name": "config.precision",
|
|
6054
|
-
"label": "数字位数",
|
|
6055
|
-
"labelRemark": "小数点左边的数字位数",
|
|
5781
|
+
"label": t$2('widgets-meta:sfield_control_precision', "数字位数"),
|
|
5782
|
+
"labelRemark": t$2('widgets-meta:sfield_control_precision_remark', "小数点左边的数字位数"),
|
|
6056
5783
|
"requiredOn": " (function(){ if(['number', 'currency', 'percent', 'summary'].indexOf(config.type) > -1){ return true; } else{ if(['formula'].indexOf(config.type) > -1 && ['number', 'currency', 'percent'].indexOf(config.data_type) > -1){ return true; } else{ return false; } } })() ",
|
|
6057
5784
|
"type": "input-number",
|
|
6058
5785
|
"precision": 0,
|
|
@@ -6063,8 +5790,8 @@
|
|
|
6063
5790
|
},
|
|
6064
5791
|
{
|
|
6065
5792
|
"name": "config.scale",
|
|
6066
|
-
"label": "小数位数",
|
|
6067
|
-
"labelRemark":
|
|
5793
|
+
"label": t$2('widgets-meta:sfield_control_scale', "小数位数"),
|
|
5794
|
+
"labelRemark": t$2('widgets-meta:sfield_control_scale_remark', "如果字段类型是百分比,则表示字段将显示的小数位数,例如,显示两位小数将显示为10.20%。"),
|
|
6068
5795
|
"requiredOn": " (function(){ if(['number', 'currency', 'percent', 'summary'].indexOf(config.type) > -1){ return true; } else{ if(['formula'].indexOf(config.type) > -1 && ['number', 'currency', 'percent'].indexOf(config.data_type) > -1){ return true; } else{ return false; } } })() ",
|
|
6069
5796
|
"type": "input-number",
|
|
6070
5797
|
"min": 0,
|
|
@@ -6077,8 +5804,8 @@
|
|
|
6077
5804
|
},
|
|
6078
5805
|
{
|
|
6079
5806
|
"name": "config.formula",
|
|
6080
|
-
"label": "公式",
|
|
6081
|
-
"labelRemark": "字段类型为自动编号或公式时,必须填写此字段。",
|
|
5807
|
+
"label": t$2('widgets-meta:sfield_control_formula', "公式"),
|
|
5808
|
+
"labelRemark": t$2('widgets-meta:sfield_control_formula_remark', "字段类型为自动编号或公式时,必须填写此字段。"),
|
|
6082
5809
|
"description": "",
|
|
6083
5810
|
"requiredOn": "['autonumber', 'formula'].indexOf(config.type) > -1 ? true: false",
|
|
6084
5811
|
"type": "input-formula",
|
|
@@ -6090,7 +5817,7 @@
|
|
|
6090
5817
|
},
|
|
6091
5818
|
{
|
|
6092
5819
|
"name": "config.show_as_qr",
|
|
6093
|
-
"label": "显示为二维码",
|
|
5820
|
+
"label": t$2('widgets-meta:sfield_control_show_as_qr', "显示为二维码"),
|
|
6094
5821
|
"required": false,
|
|
6095
5822
|
"type": "checkbox",
|
|
6096
5823
|
"tpl": null,
|
|
@@ -6100,7 +5827,7 @@
|
|
|
6100
5827
|
},
|
|
6101
5828
|
{
|
|
6102
5829
|
"name": "config.coordinatesType",
|
|
6103
|
-
"label": "坐标类型",
|
|
5830
|
+
"label": t$2('widgets-meta:sfield_control_coordinates_type', "坐标类型"),
|
|
6104
5831
|
"required": false,
|
|
6105
5832
|
"type": "input-text",
|
|
6106
5833
|
"visibleOn": "['location'].indexOf(config.type) > -1 ? true: false",
|
|
@@ -6110,21 +5837,15 @@
|
|
|
6110
5837
|
},
|
|
6111
5838
|
{
|
|
6112
5839
|
"name": "config.formula_blank_value",
|
|
6113
|
-
"label": "空白字段处理",
|
|
6114
|
-
"labelRemark": "如果您的公式引用了任何数字和货币字段,请指定当这些字段值为空时如何处理公式输出。",
|
|
5840
|
+
"label": t$2('widgets-meta:sfield_control_formula_blank_value', "空白字段处理"),
|
|
5841
|
+
"labelRemark": t$2('widgets-meta:sfield_control_formula_blank_value_remark', "如果您的公式引用了任何数字和货币字段,请指定当这些字段值为空时如何处理公式输出。"),
|
|
6115
5842
|
"description": "",
|
|
6116
5843
|
"requiredOn": "['formula'].indexOf(config.type) > -1 ? true: false",
|
|
6117
5844
|
"type": "select",
|
|
6118
5845
|
"joinValues": false,
|
|
6119
5846
|
"options": [
|
|
6120
|
-
{
|
|
6121
|
-
|
|
6122
|
-
"value": "zeroes"
|
|
6123
|
-
},
|
|
6124
|
-
{
|
|
6125
|
-
"label": "将空白字段视为空白",
|
|
6126
|
-
"value": "blanks"
|
|
6127
|
-
}
|
|
5847
|
+
{ "label": t$2('widgets-meta:sfield_control_zero_as_blank', "将空白字段视为零"), "value": "zeroes" },
|
|
5848
|
+
{ "label": t$2('widgets-meta:sfield_control_blanks_as_blank', "将空白字段视为空白"), "value": "blanks" }
|
|
6128
5849
|
],
|
|
6129
5850
|
"extractValue": true,
|
|
6130
5851
|
"clearable": true,
|
|
@@ -6138,7 +5859,7 @@
|
|
|
6138
5859
|
},
|
|
6139
5860
|
{
|
|
6140
5861
|
"name": "config.reference_to",
|
|
6141
|
-
"label": "引用对象",
|
|
5862
|
+
"label": t$2('widgets-meta:sfield_control_reference_object', "引用对象"),
|
|
6142
5863
|
"requiredOn": "['lookup','master_detail'].indexOf(config.type) > -1 ? true: false",
|
|
6143
5864
|
"type": "select",
|
|
6144
5865
|
"joinValues": false,
|
|
@@ -6172,8 +5893,8 @@
|
|
|
6172
5893
|
},
|
|
6173
5894
|
{
|
|
6174
5895
|
"name": "config.summary_object",
|
|
6175
|
-
"label": "要汇总的对象",
|
|
6176
|
-
"labelRemark": "字段类型为累计汇总时,必须填写此字段。",
|
|
5896
|
+
"label": t$2('widgets-meta:sfield_control_summary_object', "要汇总的对象"),
|
|
5897
|
+
"labelRemark": t$2('widgets-meta:sfield_control_summary_object_remark', "字段类型为累计汇总时,必须填写此字段。"),
|
|
6177
5898
|
"description": "",
|
|
6178
5899
|
"requiredOn": "config.type === 'summary' ? true: false",
|
|
6179
5900
|
"type": "select",
|
|
@@ -6207,32 +5928,17 @@
|
|
|
6207
5928
|
},
|
|
6208
5929
|
{
|
|
6209
5930
|
"name": "config.summary_type",
|
|
6210
|
-
"label": "汇总类型",
|
|
6211
|
-
"labelRemark": "字段类型为累计汇总时,必须填写此字段。",
|
|
5931
|
+
"label": t$2('widgets-meta:sfield_control_summary_type', "汇总类型"),
|
|
5932
|
+
"labelRemark": t$2('widgets-meta:sfield_control_summary_type_remark', "字段类型为累计汇总时,必须填写此字段。"),
|
|
6212
5933
|
"requiredOn": "config.type === 'summary' ? true: false",
|
|
6213
5934
|
"type": "select",
|
|
6214
5935
|
"joinValues": false,
|
|
6215
5936
|
"options": [
|
|
6216
|
-
{
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
},
|
|
6220
|
-
{
|
|
6221
|
-
"label": "SUM",
|
|
6222
|
-
"value": "sum"
|
|
6223
|
-
},
|
|
6224
|
-
{
|
|
6225
|
-
"label": "MIN",
|
|
6226
|
-
"value": "min"
|
|
6227
|
-
},
|
|
6228
|
-
{
|
|
6229
|
-
"label": "MAX",
|
|
6230
|
-
"value": "max"
|
|
6231
|
-
},
|
|
6232
|
-
{
|
|
6233
|
-
"label": "AVG",
|
|
6234
|
-
"value": "avg"
|
|
6235
|
-
}
|
|
5937
|
+
{ "label": "COUNT", "value": "count" },
|
|
5938
|
+
{ "label": "SUM", "value": "sum" },
|
|
5939
|
+
{ "label": "MIN", "value": "min" },
|
|
5940
|
+
{ "label": "MAX", "value": "max" },
|
|
5941
|
+
{ "label": "AVG", "value": "avg" }
|
|
6236
5942
|
],
|
|
6237
5943
|
"extractValue": true,
|
|
6238
5944
|
"clearable": true,
|
|
@@ -6244,8 +5950,8 @@
|
|
|
6244
5950
|
},
|
|
6245
5951
|
{
|
|
6246
5952
|
"name": "config.summary_field",
|
|
6247
|
-
"label": "汇总字段",
|
|
6248
|
-
"labelRemark": "字段类型为累计汇总且汇总类型不是COUNT时,必须填写此字段,只支持聚合数值、金额、日期、日期时间类型的字段。",
|
|
5953
|
+
"label": t$2('widgets-meta:sfield_control_summary_field', "汇总字段"),
|
|
5954
|
+
"labelRemark": t$2('widgets-meta:sfield_control_summary_field_remark', "字段类型为累计汇总且汇总类型不是COUNT时,必须填写此字段,只支持聚合数值、金额、日期、日期时间类型的字段。"),
|
|
6249
5955
|
"description": "",
|
|
6250
5956
|
"requiredOn": "config.type === 'summary' && config.summary_type !== 'count' ? true: false",
|
|
6251
5957
|
"type": "select",
|
|
@@ -6292,10 +5998,9 @@
|
|
|
6292
5998
|
"adaptor": "const summary_type = api.body.summary_type;\nconst term = api.query.term;\nlet fields = payload.fields;\nlet options = [];\nif (fields) {\n if (summary_type && summary_type !== \"count\") {\n if (summary_type === \"sum\" || summary_type === \"avg\") {\n /*sum/avg类型可以汇总数值、金额、百分比字段*/\n _.forEach(fields, (value, key) => {\n let fieldType = value.type;\n if ([\"formula\", \"summary\"].indexOf(fieldType) > -1) {\n /*要聚合的字段为公式或汇总字段时,按其字段数据类型判断是否支持聚合*/\n fieldType = value.data_type;\n }\n if ([\"number\", \"currency\", \"percent\"].indexOf(fieldType) > -1) {\n options.push({ label: value.label, value: value.name });\n }\n })\n }\n else {\n /*min、max类型可以汇总数值、金额、百分比、日期、日期时间字段*/\n _.forEach(fields, (value, key) => {\n let fieldType = value.type;\n if ([\"formula\", \"summary\"].indexOf(fieldType) > -1) {\n /*要聚合的字段为公式或汇总字段时,按其字段数据类型判断是否支持聚合*/\n fieldType = value.data_type;\n }\n if ([\"number\", \"currency\", \"percent\", \"date\", \"datetime\"].indexOf(fieldType) > -1) {\n options.push({ label: value.label, value: value.name });\n }\n })\n }\n }\n if (term) {\n options = _.filter(options, (item) => {\n return item.label.toLowerCase().indexOf(term.toLowerCase()) > -1;\n })\n }\n}\npayload = {\n data: { options: options },\n msg: \"\",\n status: 0\n}\nreturn payload;"
|
|
6293
5999
|
}
|
|
6294
6000
|
},
|
|
6295
|
-
//汇总过滤条件暂时无法直接使用组件,因为数据格式不一致
|
|
6296
6001
|
{
|
|
6297
6002
|
"name": "config.description",
|
|
6298
|
-
"label": "描述",
|
|
6003
|
+
"label": t$2('widgets-meta:sfield_control_description', "描述"),
|
|
6299
6004
|
"required": false,
|
|
6300
6005
|
"type": "textarea",
|
|
6301
6006
|
"tpl": "<%=(data.config.description || \"\").split(\"\\n\").join('<br>')%>",
|
|
@@ -6303,19 +6008,13 @@
|
|
|
6303
6008
|
},
|
|
6304
6009
|
{
|
|
6305
6010
|
"name": "config.deleted_lookup_record_behavior",
|
|
6306
|
-
"label": "如果相关表记录被删除怎么办?",
|
|
6011
|
+
"label": t$2('widgets-meta:sfield_control_deleted_lookup_record_behavior', "如果相关表记录被删除怎么办?"),
|
|
6307
6012
|
"required": true,
|
|
6308
6013
|
"type": "select",
|
|
6309
6014
|
"joinValues": false,
|
|
6310
6015
|
"options": [
|
|
6311
|
-
{
|
|
6312
|
-
|
|
6313
|
-
"value": "clear"
|
|
6314
|
-
},
|
|
6315
|
-
{
|
|
6316
|
-
"label": "不允许删除"作为相关表关系的一部分的相关表记录"。",
|
|
6317
|
-
"value": "retain"
|
|
6318
|
-
}
|
|
6016
|
+
{ "label": t$2('widgets-meta:sfield_control_clear_value', "清除此字段的值。 如果您将此字段设为必填,您不能选择此选项。"), "value": "clear" },
|
|
6017
|
+
{ "label": t$2('widgets-meta:sfield_control_retain_related_record', "不允许删除"作为相关表关系的一部分的相关表记录"。"), "value": "retain" }
|
|
6319
6018
|
],
|
|
6320
6019
|
"extractValue": true,
|
|
6321
6020
|
"clearable": true,
|
|
@@ -6328,8 +6027,8 @@
|
|
|
6328
6027
|
},
|
|
6329
6028
|
{
|
|
6330
6029
|
"name": "config.write_requires_master_read",
|
|
6331
|
-
"label": "当用户对主表记录有读取权限时对子表记录可以增删改",
|
|
6332
|
-
"labelRemark": "设置主记录上创建、编辑或删除子记录所需的最低访问级别。此字段仅适用于·主表/子表·字段类型。勾选表示允许具有'读取'访问权限的用户创建、编辑或删除子记录。反之表示允许具有'读取/写入'访问权限的用户创建、编辑或删除子记录的权限。",
|
|
6030
|
+
"label": t$2('widgets-meta:sfield_control_write_requires_master_read', "当用户对主表记录有读取权限时对子表记录可以增删改"),
|
|
6031
|
+
"labelRemark": t$2('widgets-meta:sfield_control_write_requires_master_read_remark', "设置主记录上创建、编辑或删除子记录所需的最低访问级别。此字段仅适用于·主表/子表·字段类型。勾选表示允许具有'读取'访问权限的用户创建、编辑或删除子记录。反之表示允许具有'读取/写入'访问权限的用户创建、编辑或删除子记录的权限。"),
|
|
6333
6032
|
"type": "checkbox",
|
|
6334
6033
|
"visibleOn": "config.type === 'master_detail' ? true: false",
|
|
6335
6034
|
"clearValueOnHidden": true,
|
|
@@ -6338,301 +6037,102 @@
|
|
|
6338
6037
|
]
|
|
6339
6038
|
},
|
|
6340
6039
|
{
|
|
6341
|
-
"title": "表单",
|
|
6040
|
+
"title": t$2('widgets-meta:sfield_control_form', "表单"),
|
|
6342
6041
|
"className": 'ae-formItemControl-body',
|
|
6343
6042
|
"body": [
|
|
6344
6043
|
{
|
|
6345
6044
|
"name": "config.amis.type",
|
|
6346
|
-
"label": "输入类型",
|
|
6045
|
+
"label": t$2('widgets-meta:sfield_control_input_type', "输入类型"),
|
|
6347
6046
|
"required": false,
|
|
6348
6047
|
"type": "select",
|
|
6349
6048
|
"searchable": true,
|
|
6350
6049
|
"fieldName": "config.amis.type",
|
|
6351
6050
|
"options": [
|
|
6352
|
-
{
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
},
|
|
6356
|
-
{
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
},
|
|
6360
|
-
{
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
},
|
|
6364
|
-
{
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
},
|
|
6368
|
-
{
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
},
|
|
6372
|
-
{
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
},
|
|
6376
|
-
{
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
},
|
|
6380
|
-
{
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
},
|
|
6384
|
-
{
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
},
|
|
6388
|
-
{
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
},
|
|
6392
|
-
{
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
},
|
|
6396
|
-
{
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
},
|
|
6400
|
-
{
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
},
|
|
6404
|
-
{
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
},
|
|
6408
|
-
{
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
},
|
|
6412
|
-
{
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
},
|
|
6416
|
-
{
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
}
|
|
6420
|
-
{
|
|
6421
|
-
"label": "键值对象 (input-kvs)",
|
|
6422
|
-
"value": "input-kvs"
|
|
6423
|
-
},
|
|
6424
|
-
{
|
|
6425
|
-
"label": "公式编辑器 (input-formula)",
|
|
6426
|
-
"value": "input-formula"
|
|
6427
|
-
},
|
|
6428
|
-
{
|
|
6429
|
-
"label": "对比编辑器 (diff-editor)",
|
|
6430
|
-
"value": "diff-editor"
|
|
6431
|
-
},
|
|
6432
|
-
{
|
|
6433
|
-
"label": "编辑器 (editor)",
|
|
6434
|
-
"value": "editor"
|
|
6435
|
-
},
|
|
6436
|
-
{
|
|
6437
|
-
"label": "解析 Excel (input-excel)",
|
|
6438
|
-
"value": "input-excel"
|
|
6439
|
-
},
|
|
6440
|
-
{
|
|
6441
|
-
"label": "文件上传 (input-file)",
|
|
6442
|
-
"value": "input-file"
|
|
6443
|
-
},
|
|
6444
|
-
{
|
|
6445
|
-
"label": "公式 (formula)",
|
|
6446
|
-
"value": "formula"
|
|
6447
|
-
},
|
|
6448
|
-
{
|
|
6449
|
-
"label": "表单项组 (group)",
|
|
6450
|
-
"value": "group"
|
|
6451
|
-
},
|
|
6452
|
-
{
|
|
6453
|
-
"label": "隐藏字段 (hidden)",
|
|
6454
|
-
"value": "hidden"
|
|
6455
|
-
},
|
|
6456
|
-
{
|
|
6457
|
-
"label": "图片 (input-image)",
|
|
6458
|
-
"value": "input-image"
|
|
6459
|
-
},
|
|
6460
|
-
{
|
|
6461
|
-
"label": "输入框组合 (input-group)",
|
|
6462
|
-
"value": "input-group"
|
|
6463
|
-
},
|
|
6464
|
-
{
|
|
6465
|
-
"label": "列表选择 (list-select)",
|
|
6466
|
-
"value": "list-select"
|
|
6467
|
-
},
|
|
6468
|
-
{
|
|
6469
|
-
"label": "地理位置 (location-picker)",
|
|
6470
|
-
"value": "location-picker"
|
|
6471
|
-
},
|
|
6472
|
-
{
|
|
6473
|
-
"label": "UUID",
|
|
6474
|
-
"value": "uuid"
|
|
6475
|
-
},
|
|
6476
|
-
{
|
|
6477
|
-
"label": "矩阵选择 (matrix-checkboxes)",
|
|
6478
|
-
"value": "matrix-checkboxes"
|
|
6479
|
-
},
|
|
6480
|
-
{
|
|
6481
|
-
"label": "级联选择器 (nested-select)",
|
|
6482
|
-
"value": "nested-select"
|
|
6483
|
-
},
|
|
6484
|
-
{
|
|
6485
|
-
"label": "数字输入框 (input-number)",
|
|
6486
|
-
"value": "input-number"
|
|
6487
|
-
},
|
|
6488
|
-
{
|
|
6489
|
-
"label": "密码输入框 (input-password)",
|
|
6490
|
-
"value": "input-password"
|
|
6491
|
-
},
|
|
6492
|
-
{
|
|
6493
|
-
"label": "列表选择器 (picker)",
|
|
6494
|
-
"value": "picker"
|
|
6495
|
-
},
|
|
6496
|
-
{
|
|
6497
|
-
"label": "季度 (input-quarter)",
|
|
6498
|
-
"value": "input-quarter"
|
|
6499
|
-
},
|
|
6500
|
-
{
|
|
6501
|
-
"label": "季度范围 (input-quarter-range)",
|
|
6502
|
-
"value": "input-quarter-range"
|
|
6503
|
-
},
|
|
6504
|
-
{
|
|
6505
|
-
"label": "单选框 (radio)",
|
|
6506
|
-
"value": "radio"
|
|
6507
|
-
},
|
|
6508
|
-
{
|
|
6509
|
-
"label": "单选框 (radios)",
|
|
6510
|
-
"value": "radios"
|
|
6511
|
-
},
|
|
6512
|
-
{
|
|
6513
|
-
"label": "图表单选框 (chart-radios)",
|
|
6514
|
-
"value": "chart-radios"
|
|
6515
|
-
},
|
|
6516
|
-
{
|
|
6517
|
-
"label": "评分 (input-rating)",
|
|
6518
|
-
"value": "input-rating"
|
|
6519
|
-
},
|
|
6520
|
-
{
|
|
6521
|
-
"label": "滑块 (input-range)",
|
|
6522
|
-
"value": "input-range"
|
|
6523
|
-
},
|
|
6524
|
-
{
|
|
6525
|
-
"label": "重复频率选择器 (input-repeat)",
|
|
6526
|
-
"value": "input-repeat"
|
|
6527
|
-
},
|
|
6528
|
-
{
|
|
6529
|
-
"label": "富文本编辑器 (input-rich-text)",
|
|
6530
|
-
"value": "input-rich-text"
|
|
6531
|
-
},
|
|
6532
|
-
{
|
|
6533
|
-
"label": "选择器 (select)",
|
|
6534
|
-
"value": "select"
|
|
6535
|
-
},
|
|
6536
|
-
{
|
|
6537
|
-
"label": "子表单 (input-sub-form)",
|
|
6538
|
-
"value": "input-sub-form"
|
|
6539
|
-
},
|
|
6540
|
-
{
|
|
6541
|
-
"label": "开关 (switch)",
|
|
6542
|
-
"value": "switch"
|
|
6543
|
-
},
|
|
6544
|
-
{
|
|
6545
|
-
"label": "静态展示 (static)",
|
|
6546
|
-
"value": "static"
|
|
6547
|
-
},
|
|
6548
|
-
{
|
|
6549
|
-
"label": "文件上传 (input-file)",
|
|
6550
|
-
"value": "input-file"
|
|
6551
|
-
},
|
|
6552
|
-
{
|
|
6553
|
-
"label": "表格 (input-table)",
|
|
6554
|
-
"value": "input-table"
|
|
6555
|
-
},
|
|
6556
|
-
{
|
|
6557
|
-
"label": "标签选择器 (input-tag)",
|
|
6558
|
-
"value": "input-tag"
|
|
6559
|
-
},
|
|
6560
|
-
{
|
|
6561
|
-
"label": "输入框 (input-text)",
|
|
6562
|
-
"value": "input-text"
|
|
6563
|
-
},
|
|
6564
|
-
{
|
|
6565
|
-
"label": "多行文本输入框 (textarea)",
|
|
6566
|
-
"value": "textarea"
|
|
6567
|
-
},
|
|
6568
|
-
{
|
|
6569
|
-
"label": "时间 (input-time)",
|
|
6570
|
-
"value": "input-time"
|
|
6571
|
-
},
|
|
6572
|
-
{
|
|
6573
|
-
"label": "时间范围 (input-time-range)",
|
|
6574
|
-
"value": "input-time-range"
|
|
6575
|
-
},
|
|
6576
|
-
{
|
|
6577
|
-
"label": "穿梭器 (transfer)",
|
|
6578
|
-
"value": "transfer"
|
|
6579
|
-
},
|
|
6580
|
-
{
|
|
6581
|
-
"label": "穿梭选择器 (transfer-picker)",
|
|
6582
|
-
"value": "transfer-picker"
|
|
6583
|
-
},
|
|
6584
|
-
{
|
|
6585
|
-
"label": "组合穿梭器 (tabs-transfer)",
|
|
6586
|
-
"value": "tabs-transfer"
|
|
6587
|
-
},
|
|
6588
|
-
{
|
|
6589
|
-
"label": "组合穿梭选择器 (tabs-transfer-picker)",
|
|
6590
|
-
"value": "tabs-transfer-picker"
|
|
6591
|
-
},
|
|
6592
|
-
{
|
|
6593
|
-
"label": "树形选择框 (input-tree)",
|
|
6594
|
-
"value": "input-tree"
|
|
6595
|
-
},
|
|
6596
|
-
{
|
|
6597
|
-
"label": "树形选择器 (tree-select)",
|
|
6598
|
-
"value": "tree-select"
|
|
6599
|
-
},
|
|
6600
|
-
{
|
|
6601
|
-
"label": "年份选择 (input-year)",
|
|
6602
|
-
"value": "input-year"
|
|
6603
|
-
},
|
|
6604
|
-
{
|
|
6605
|
-
"label": "年份范围 (input-year-range)",
|
|
6606
|
-
"value": "input-year-range"
|
|
6607
|
-
},
|
|
6608
|
-
{
|
|
6609
|
-
"label": "JSON Schema (json-schema)",
|
|
6610
|
-
"value": "json-schema"
|
|
6611
|
-
},
|
|
6612
|
-
{
|
|
6613
|
-
"label": "JSON Schema Editor (json-schema-editor)",
|
|
6614
|
-
"value": "json-schema-editor"
|
|
6615
|
-
},
|
|
6616
|
-
{
|
|
6617
|
-
"label": "签名面板 (input-signature)",
|
|
6618
|
-
"value": "input-signature"
|
|
6619
|
-
},
|
|
6620
|
-
{
|
|
6621
|
-
"label": "验证码输入 (input-verification-code)",
|
|
6622
|
-
"value": "input-verification-code"
|
|
6623
|
-
}
|
|
6051
|
+
{ "label": t$2('widgets-meta:sfield_control_input_array', "数组输入框 (input-array)"), "value": "input-array" },
|
|
6052
|
+
{ "label": t$2('widgets-meta:sfield_control_button_toolbar', "按钮工具栏 (button-toolbar)"), "value": "button-toolbar" },
|
|
6053
|
+
{ "label": t$2('widgets-meta:sfield_control_button_group_select', "按钮点选 (button-group-select)"), "value": "button-group-select" },
|
|
6054
|
+
{ "label": t$2('widgets-meta:sfield_control_chained_select', "链式下拉框 (chained-select)"), "value": "chained-select" },
|
|
6055
|
+
{ "label": t$2('widgets-meta:sfield_control_checkbox', "勾选框 (checkbox)"), "value": "checkbox" },
|
|
6056
|
+
{ "label": t$2('widgets-meta:sfield_control_checkboxes', "复选框 (checkboxes)"), "value": "checkboxes" },
|
|
6057
|
+
{ "label": t$2('widgets-meta:sfield_control_input_city', "城市选择器 (input-city)"), "value": "input-city" },
|
|
6058
|
+
{ "label": t$2('widgets-meta:sfield_control_input_color', "颜色选择器 (input-color)"), "value": "input-color" },
|
|
6059
|
+
{ "label": t$2('widgets-meta:sfield_control_combo', "组合 (combo)"), "value": "combo" },
|
|
6060
|
+
{ "label": t$2('widgets-meta:sfield_control_condition_builder', "组合条件 (condition-builder)"), "value": "condition-builder" },
|
|
6061
|
+
{ "label": t$2('widgets-meta:sfield_control_input_date', "日期 (input-date)"), "value": "input-date" },
|
|
6062
|
+
{ "label": t$2('widgets-meta:sfield_control_input_datetime', "日期时间 (input-datetime)"), "value": "input-datetime" },
|
|
6063
|
+
{ "label": t$2('widgets-meta:sfield_control_input_month', "月份 (input-month)"), "value": "input-month" },
|
|
6064
|
+
{ "label": t$2('widgets-meta:sfield_control_input_date_range', "日期范围 (input-date-range)"), "value": "input-date-range" },
|
|
6065
|
+
{ "label": t$2('widgets-meta:sfield_control_input_datetime_range', "日期时间范围 (input-datetime-range)"), "value": "input-datetime-range" },
|
|
6066
|
+
{ "label": t$2('widgets-meta:sfield_control_input_month_range', "月份范围 (input-month-range)"), "value": "input-month-range" },
|
|
6067
|
+
{ "label": t$2('widgets-meta:sfield_control_input_kv', "键值对 (input-kv)"), "value": "input-kv" },
|
|
6068
|
+
{ "label": t$2('widgets-meta:sfield_control_input_kvs', "键值对象 (input-kvs)"), "value": "input-kvs" },
|
|
6069
|
+
{ "label": t$2('widgets-meta:sfield_control_input_formula', "公式编辑器 (input-formula)"), "value": "input-formula" },
|
|
6070
|
+
{ "label": t$2('widgets-meta:sfield_control_diff_editor', "对比编辑器 (diff-editor)"), "value": "diff-editor" },
|
|
6071
|
+
{ "label": t$2('widgets-meta:sfield_control_editor', "编辑器 (editor)"), "value": "editor" },
|
|
6072
|
+
{ "label": t$2('widgets-meta:sfield_control_input_excel', "解析 Excel (input-excel)"), "value": "input-excel" },
|
|
6073
|
+
{ "label": t$2('widgets-meta:sfield_control_input_file', "文件上传 (input-file)"), "value": "input-file" },
|
|
6074
|
+
{ "label": t$2('widgets-meta:sfield_control_formula', "公式 (formula)"), "value": "formula" },
|
|
6075
|
+
{ "label": t$2('widgets-meta:sfield_control_group', "表单项组 (group)"), "value": "group" },
|
|
6076
|
+
{ "label": t$2('widgets-meta:sfield_control_hidden', "隐藏字段 (hidden)"), "value": "hidden" },
|
|
6077
|
+
{ "label": t$2('widgets-meta:sfield_control_input_image', "图片 (input-image)"), "value": "input-image" },
|
|
6078
|
+
{ "label": t$2('widgets-meta:sfield_control_input_group', "输入框组合 (input-group)"), "value": "input-group" },
|
|
6079
|
+
{ "label": t$2('widgets-meta:sfield_control_list_select', "列表选择 (list-select)"), "value": "list-select" },
|
|
6080
|
+
{ "label": t$2('widgets-meta:sfield_control_location_picker', "地理位置 (location-picker)"), "value": "location-picker" },
|
|
6081
|
+
{ "label": t$2('widgets-meta:sfield_control_uuid', "UUID"), "value": "uuid" },
|
|
6082
|
+
{ "label": t$2('widgets-meta:sfield_control_matrix_checkboxes', "矩阵选择 (matrix-checkboxes)"), "value": "matrix-checkboxes" },
|
|
6083
|
+
{ "label": t$2('widgets-meta:sfield_control_nested_select', "级联选择器 (nested-select)"), "value": "nested-select" },
|
|
6084
|
+
{ "label": t$2('widgets-meta:sfield_control_input_number', "数字输入框 (input-number)"), "value": "input-number" },
|
|
6085
|
+
{ "label": t$2('widgets-meta:sfield_control_input_password', "密码输入框 (input-password)"), "value": "input-password" },
|
|
6086
|
+
{ "label": t$2('widgets-meta:sfield_control_picker', "列表选择器 (picker)"), "value": "picker" },
|
|
6087
|
+
{ "label": t$2('widgets-meta:sfield_control_input_quarter', "季度 (input-quarter)"), "value": "input-quarter" },
|
|
6088
|
+
{ "label": t$2('widgets-meta:sfield_control_input_quarter_range', "季度范围 (input-quarter-range)"), "value": "input-quarter-range" },
|
|
6089
|
+
{ "label": t$2('widgets-meta:sfield_control_radio', "单选框 (radio)"), "value": "radio" },
|
|
6090
|
+
{ "label": t$2('widgets-meta:sfield_control_radios', "单选框 (radios)"), "value": "radios" },
|
|
6091
|
+
{ "label": t$2('widgets-meta:sfield_control_chart_radios', "图表单选框 (chart-radios)"), "value": "chart-radios" },
|
|
6092
|
+
{ "label": t$2('widgets-meta:sfield_control_input_rating', "评分 (input-rating)"), "value": "input-rating" },
|
|
6093
|
+
{ "label": t$2('widgets-meta:sfield_control_input_range', "滑块 (input-range)"), "value": "input-range" },
|
|
6094
|
+
{ "label": t$2('widgets-meta:sfield_control_input_repeat', "重复频率选择器 (input-repeat)"), "value": "input-repeat" },
|
|
6095
|
+
{ "label": t$2('widgets-meta:sfield_control_input_rich_text', "富文本编辑器 (input-rich-text)"), "value": "input-rich-text" },
|
|
6096
|
+
{ "label": t$2('widgets-meta:sfield_control_select', "选择器 (select)"), "value": "select" },
|
|
6097
|
+
{ "label": t$2('widgets-meta:sfield_control_input_sub_form', "子表单 (input-sub-form)"), "value": "input-sub-form" },
|
|
6098
|
+
{ "label": t$2('widgets-meta:sfield_control_switch', "开关 (switch)"), "value": "switch" },
|
|
6099
|
+
{ "label": t$2('widgets-meta:sfield_control_static', "静态展示 (static)"), "value": "static" },
|
|
6100
|
+
{ "label": t$2('widgets-meta:sfield_control_input_file', "文件上传 (input-file)"), "value": "input-file" },
|
|
6101
|
+
{ "label": t$2('widgets-meta:sfield_control_input_table', "表格 (input-table)"), "value": "input-table" },
|
|
6102
|
+
{ "label": t$2('widgets-meta:sfield_control_input_tag', "标签选择器 (input-tag)"), "value": "input-tag" },
|
|
6103
|
+
{ "label": t$2('widgets-meta:sfield_control_input_text', "输入框 (input-text)"), "value": "input-text" },
|
|
6104
|
+
{ "label": t$2('widgets-meta:sfield_control_textarea', "多行文本输入框 (textarea)"), "value": "textarea" },
|
|
6105
|
+
{ "label": t$2('widgets-meta:sfield_control_input_time', "时间 (input-time)"), "value": "input-time" },
|
|
6106
|
+
{ "label": t$2('widgets-meta:sfield_control_input_time_range', "时间范围 (input-time-range)"), "value": "input-time-range" },
|
|
6107
|
+
{ "label": t$2('widgets-meta:sfield_control_transfer', "穿梭器 (transfer)"), "value": "transfer" },
|
|
6108
|
+
{ "label": t$2('widgets-meta:sfield_control_transfer_picker', "穿梭选择器 (transfer-picker)"), "value": "transfer-picker" },
|
|
6109
|
+
{ "label": t$2('widgets-meta:sfield_control_tabs_transfer', "组合穿梭器 (tabs-transfer)"), "value": "tabs-transfer" },
|
|
6110
|
+
{ "label": t$2('widgets-meta:sfield_control_tabs_transfer_picker', "组合穿梭选择器 (tabs-transfer-picker)"), "value": "tabs-transfer-picker" },
|
|
6111
|
+
{ "label": t$2('widgets-meta:sfield_control_input_tree', "树形选择框 (input-tree)"), "value": "input-tree" },
|
|
6112
|
+
{ "label": t$2('widgets-meta:sfield_control_tree_select', "树形选择器 (tree-select)"), "value": "tree-select" },
|
|
6113
|
+
{ "label": t$2('widgets-meta:sfield_control_input_year', "年份选择 (input-year)"), "value": "input-year" },
|
|
6114
|
+
{ "label": t$2('widgets-meta:sfield_control_input_year_range', "年份范围 (input-year-range)"), "value": "input-year-range" },
|
|
6115
|
+
{ "label": t$2('widgets-meta:sfield_control_json_schema', "JSON Schema (json-schema)"), "value": "json-schema" },
|
|
6116
|
+
{ "label": t$2('widgets-meta:sfield_control_json_schema_editor', "JSON Schema Editor (json-schema-editor)"), "value": "json-schema-editor" },
|
|
6117
|
+
{ "label": t$2('widgets-meta:sfield_control_input_signature', "签名面板 (input-signature)"), "value": "input-signature" },
|
|
6118
|
+
{ "label": t$2('widgets-meta:sfield_control_input_verification_code', "验证码输入 (input-verification-code)"), "value": "input-verification-code" }
|
|
6624
6119
|
],
|
|
6120
|
+
"extractValue": true,
|
|
6121
|
+
"clearable": true,
|
|
6122
|
+
"fieldName": "config.amis.type",
|
|
6123
|
+
"labelClassName": "text-left",
|
|
6124
|
+
"clearValueOnHidden": true
|
|
6625
6125
|
},
|
|
6626
6126
|
{
|
|
6627
6127
|
"name": "config.visible_on",
|
|
6628
|
-
"label": "显示公式",
|
|
6128
|
+
"label": t$2('widgets-meta:sfield_control_visible_on', "显示公式"),
|
|
6629
6129
|
"type": 'input-formula',
|
|
6630
6130
|
"mixedMode": true
|
|
6631
6131
|
},
|
|
6632
6132
|
{
|
|
6633
6133
|
"name": "config.readonly",
|
|
6634
|
-
"label": "只读",
|
|
6635
|
-
"labelRemark": "只读字段不显示在表单上,数据不会提交到服务端。",
|
|
6134
|
+
"label": t$2('widgets-meta:sfield_control_readonly', "只读"),
|
|
6135
|
+
"labelRemark": t$2('widgets-meta:sfield_control_readonly_remark', "只读字段不显示在表单上,数据不会提交到服务端。"),
|
|
6636
6136
|
"required": false,
|
|
6637
6137
|
"type": "checkbox",
|
|
6638
6138
|
"tpl": null,
|
|
@@ -6641,8 +6141,8 @@
|
|
|
6641
6141
|
},
|
|
6642
6142
|
{
|
|
6643
6143
|
"name": "config.static",
|
|
6644
|
-
"label": "静态",
|
|
6645
|
-
"labelRemark": "静态字段在表单上显示,用户不可编辑,可动态赋值。",
|
|
6144
|
+
"label": t$2('widgets-meta:sfield_control_static', "静态"),
|
|
6145
|
+
"labelRemark": t$2('widgets-meta:sfield_control_static_remark', "静态字段在表单上显示,用户不可编辑,可动态赋值。"),
|
|
6646
6146
|
"required": false,
|
|
6647
6147
|
"type": "checkbox",
|
|
6648
6148
|
"tpl": null,
|
|
@@ -6651,7 +6151,7 @@
|
|
|
6651
6151
|
},
|
|
6652
6152
|
{
|
|
6653
6153
|
"name": "config.inlineHelpText",
|
|
6654
|
-
"label": "提示文本",
|
|
6154
|
+
"label": t$2('widgets-meta:sfield_control_inline_help_text', "提示文本"),
|
|
6655
6155
|
"required": false,
|
|
6656
6156
|
"type": "textarea",
|
|
6657
6157
|
"tpl": "<%=(data.config.inlineHelpText || \"\").split(\"\\n\").join('<br>')%>",
|
|
@@ -6662,8 +6162,8 @@
|
|
|
6662
6162
|
},
|
|
6663
6163
|
{
|
|
6664
6164
|
"name": "config.enable_enhanced_lookup",
|
|
6665
|
-
"label": "弹出选择",
|
|
6666
|
-
"labelRemark": "被其他字段引用时,使用弹出框选择记录。",
|
|
6165
|
+
"label": t$2('widgets-meta:sfield_control_enable_enhanced_lookup', "弹出选择"),
|
|
6166
|
+
"labelRemark": t$2('widgets-meta:sfield_control_enable_enhanced_lookup_remark', "被其他字段引用时,使用弹出框选择记录。"),
|
|
6667
6167
|
"required": false,
|
|
6668
6168
|
"type": "checkbox",
|
|
6669
6169
|
"tpl": null,
|
|
@@ -6672,7 +6172,7 @@
|
|
|
6672
6172
|
},
|
|
6673
6173
|
{
|
|
6674
6174
|
"name": "config.create",
|
|
6675
|
-
"label": "弹出选择时允许新建",
|
|
6175
|
+
"label": t$2('widgets-meta:sfield_control_create_allowance', "弹出选择时允许新建"),
|
|
6676
6176
|
"required": false,
|
|
6677
6177
|
"type": "checkbox",
|
|
6678
6178
|
"tpl": null,
|
|
@@ -6683,8 +6183,8 @@
|
|
|
6683
6183
|
},
|
|
6684
6184
|
{
|
|
6685
6185
|
"name": "config.depend_on",
|
|
6686
|
-
"label": "依赖字段",
|
|
6687
|
-
"labelRemark": "依赖字段的变化会触发当前字段重算",
|
|
6186
|
+
"label": t$2('widgets-meta:sfield_control_depend_on', "依赖字段"),
|
|
6187
|
+
"labelRemark": t$2('widgets-meta:sfield_control_depend_on_remark', "依赖字段的变化会触发当前字段重算"),
|
|
6688
6188
|
"description": "",
|
|
6689
6189
|
"required": false,
|
|
6690
6190
|
"type": "select",
|
|
@@ -6714,7 +6214,7 @@
|
|
|
6714
6214
|
},
|
|
6715
6215
|
{
|
|
6716
6216
|
"name": "config.enable_thousands",
|
|
6717
|
-
"label": "显示千分符",
|
|
6217
|
+
"label": t$2('widgets-meta:sfield_control_enable_thousands', "显示千分符"),
|
|
6718
6218
|
"required": false,
|
|
6719
6219
|
"type": "checkbox",
|
|
6720
6220
|
"tpl": null,
|
|
@@ -6722,18 +6222,16 @@
|
|
|
6722
6222
|
"clearValueOnHidden": true,
|
|
6723
6223
|
"fieldName": "config.enable_thousands"
|
|
6724
6224
|
}
|
|
6725
|
-
//filters
|
|
6726
|
-
//自动填充
|
|
6727
6225
|
]
|
|
6728
6226
|
},
|
|
6729
6227
|
{
|
|
6730
|
-
"title": "高级",
|
|
6228
|
+
"title": t$2('widgets-meta:sfield_control_advanced', "高级"),
|
|
6731
6229
|
"className": 'ae-formItemControl-body',
|
|
6732
6230
|
"body": [
|
|
6733
6231
|
{
|
|
6734
6232
|
"name": "config.unique",
|
|
6735
|
-
"label": "创建唯一索引",
|
|
6736
|
-
"labelRemark": "默认每天凌晨执行一次创建,已有的索引不重复创建。",
|
|
6233
|
+
"label": t$2('widgets-meta:sfield_control_create_unique_index', "创建唯一索引"),
|
|
6234
|
+
"labelRemark": t$2('widgets-meta:sfield_control_create_unique_index_remark', "默认每天凌晨执行一次创建,已有的索引不重复创建。"),
|
|
6737
6235
|
"required": false,
|
|
6738
6236
|
"type": "checkbox",
|
|
6739
6237
|
"tpl": null,
|
|
@@ -6741,7 +6239,7 @@
|
|
|
6741
6239
|
},
|
|
6742
6240
|
{
|
|
6743
6241
|
"name": "config.filterable",
|
|
6744
|
-
"label": "列表页过滤器默认字段",
|
|
6242
|
+
"label": t$2('widgets-meta:sfield_control_default_filter_field', "列表页过滤器默认字段"),
|
|
6745
6243
|
"required": false,
|
|
6746
6244
|
"type": "checkbox",
|
|
6747
6245
|
"tpl": null,
|
|
@@ -6749,8 +6247,8 @@
|
|
|
6749
6247
|
},
|
|
6750
6248
|
{
|
|
6751
6249
|
"name": "config.index",
|
|
6752
|
-
"label": "创建索引",
|
|
6753
|
-
"labelRemark": "默认每天凌晨执行一次创建,已有的索引不重复创建。",
|
|
6250
|
+
"label": t$2('widgets-meta:sfield_control_create_index', "创建索引"),
|
|
6251
|
+
"labelRemark": t$2('widgets-meta:sfield_control_create_index_remark', "默认每天凌晨执行一次创建,已有的索引不重复创建。"),
|
|
6754
6252
|
"required": false,
|
|
6755
6253
|
"type": "checkbox",
|
|
6756
6254
|
"tpl": null,
|
|
@@ -6758,7 +6256,7 @@
|
|
|
6758
6256
|
},
|
|
6759
6257
|
{
|
|
6760
6258
|
"name": "config.is_name",
|
|
6761
|
-
"label": "名称字段",
|
|
6259
|
+
"label": t$2('widgets-meta:sfield_control_name_field', "名称字段"),
|
|
6762
6260
|
"required": false,
|
|
6763
6261
|
"type": "checkbox",
|
|
6764
6262
|
"tpl": null,
|
|
@@ -6768,9 +6266,9 @@
|
|
|
6768
6266
|
},
|
|
6769
6267
|
{
|
|
6770
6268
|
"name": "config.reference_to_field",
|
|
6771
|
-
"label": "外键字段",
|
|
6772
|
-
"labelRemark": "关联的对象保存到当前对象字段的值;例如:A对象关联B对象后,当A1记录关联了B1记录,默认会存B1记录的_id存到A1记录中。如果修改了外键字段后,会将“外键字段”替换_id存储到A1记录中。",
|
|
6773
|
-
"description": "默认为主键,默认值是_id",
|
|
6269
|
+
"label": t$2('widgets-meta:sfield_control_foreign_key_field', "外键字段"),
|
|
6270
|
+
"labelRemark": t$2('widgets-meta:sfield_control_foreign_key_field_remark', "关联的对象保存到当前对象字段的值;例如:A对象关联B对象后,当A1记录关联了B1记录,默认会存B1记录的_id存到A1记录中。如果修改了外键字段后,会将“外键字段”替换_id存储到A1记录中。"),
|
|
6271
|
+
"description": t$2('widgets-meta:sfield_control_foreign_key_field_default', "默认为主键,默认值是_id"),
|
|
6774
6272
|
"required": false,
|
|
6775
6273
|
"type": "select",
|
|
6776
6274
|
"joinValues": false,
|
|
@@ -6807,33 +6305,33 @@
|
|
|
6807
6305
|
};
|
|
6808
6306
|
// 针对每个字段类型生成函数和元数据
|
|
6809
6307
|
var fieldTypes = [
|
|
6810
|
-
{ name: "Text", type: "text", title: "
|
|
6811
|
-
{ name: "Textarea", type: "textarea", title: "长文本", icon: "fa-fw fa fa-list-alt" },
|
|
6812
|
-
{ name: "Html", type: "html", title: "富文本", icon: "fa-fw fa fa-code" },
|
|
6813
|
-
{ name: "Lookup", type: "lookup", title: "相关表关系", icon: "fa-fw fa fa-search" },
|
|
6814
|
-
{ name: "MasterDetail", type: "master_detail", title: "主/子表关系", icon: "fa-fw fa fa-link" },
|
|
6815
|
-
{ name: "Select", type: "select", title: "选择", icon: "fa-fw fa fa-list" },
|
|
6816
|
-
{ name: "Boolean", type: "boolean", title: "布尔", icon: "fa-fw fa fa-check" },
|
|
6817
|
-
{ name: "Date", type: "date", title: "日期", icon: "fa-fw fa fa-calendar" },
|
|
6818
|
-
{ name: "Datetime", type: "datetime", title: "日期时间", icon: "fa-fw fa fa-clock" },
|
|
6819
|
-
{ name: "Time", type: "time", title: "时间", icon: "fa-fw fa fa-clock" },
|
|
6820
|
-
{ name: "Number", type: "number", title: "数字", icon: "fa-fw fa fa-calculator" },
|
|
6821
|
-
{ name: "Currency", type: "currency", title: "货币", icon: "fa-fw fa fa-jpy" },
|
|
6822
|
-
{ name: "Percent", type: "percent", title: "百分比", icon: "fa-fw fa fa-percent" },
|
|
6823
|
-
{ name: "Image", type: "image", title: "图片", icon: "fa-fw fa fa-image" },
|
|
6824
|
-
{ name: "File", type: "file", title: "文件", icon: "fa-fw fa fa-file" },
|
|
6825
|
-
{ name: "Code", type: "code", title: "代码", icon: "fa-fw fa fa-code" },
|
|
6826
|
-
{ name: "Markdown", type: "markdown", title: "Markdown", icon: "fa-fw fa fa-markdown" },
|
|
6827
|
-
{ name: "Color", type: "color", title: "颜色", icon: "fa-fw fa fa-palette" },
|
|
6828
|
-
{ name: "Toggle", type: "toggle", title: "切换", icon: "fa-fw fa fa-toggle-on" },
|
|
6829
|
-
{ name: "Password", type: "password", title: "密码", icon: "fa-fw fa fa-key" },
|
|
6830
|
-
{ name: "Autonumber", type: "autonumber", title: "自动编号", icon: "fa-fw fa fa-hashtag" },
|
|
6831
|
-
{ name: "Url", type: "url", title: "URL", icon: "fa-fw fa fa-link" },
|
|
6832
|
-
{ name: "Email", type: "email", title: "电子邮件", icon: "fa-fw fa fa-envelope" },
|
|
6833
|
-
{ name: "Location", type: "location", title: "位置", icon: "fa-fw fa fa-map-marker" },
|
|
6834
|
-
{ name: "Formula", type: "formula", title: "公式", icon: "fa-fw fa fa-subscript" },
|
|
6835
|
-
{ name: "Summary", type: "summary", title: "累计汇总", icon: "fa-fw fa fa-superscript" },
|
|
6836
|
-
{ name: "Table", type: "table", title: "表格", icon: "fa-fw fa fa-table" }
|
|
6308
|
+
{ name: "Text", type: "text", title: t$2("widgets-meta:sfield_text"), icon: "fa-fw fa fa-list-alt" },
|
|
6309
|
+
{ name: "Textarea", type: "textarea", title: t$2('widgets-meta:sfield_textarea', "长文本"), icon: "fa-fw fa fa-list-alt" },
|
|
6310
|
+
{ name: "Html", type: "html", title: t$2('widgets-meta:sfield_html', "富文本"), icon: "fa-fw fa fa-code" },
|
|
6311
|
+
{ name: "Lookup", type: "lookup", title: t$2('widgets-meta:sfield_lookup', "相关表关系"), icon: "fa-fw fa fa-search" },
|
|
6312
|
+
{ name: "MasterDetail", type: "master_detail", title: t$2('widgets-meta:sfield_master_detail', "主/子表关系"), icon: "fa-fw fa fa-link" },
|
|
6313
|
+
{ name: "Select", type: "select", title: t$2('widgets-meta:sfield_select', "选择"), icon: "fa-fw fa fa-list" },
|
|
6314
|
+
{ name: "Boolean", type: "boolean", title: t$2('widgets-meta:sfield_boolean', "布尔"), icon: "fa-fw fa fa-check" },
|
|
6315
|
+
{ name: "Date", type: "date", title: t$2('widgets-meta:sfield_date', "日期"), icon: "fa-fw fa fa-calendar" },
|
|
6316
|
+
{ name: "Datetime", type: "datetime", title: t$2('widgets-meta:sfield_datetime', "日期时间"), icon: "fa-fw fa fa-clock" },
|
|
6317
|
+
{ name: "Time", type: "time", title: t$2('widgets-meta:sfield_time', "时间"), icon: "fa-fw fa fa-clock" },
|
|
6318
|
+
{ name: "Number", type: "number", title: t$2('widgets-meta:sfield_number', "数字"), icon: "fa-fw fa fa-calculator" },
|
|
6319
|
+
{ name: "Currency", type: "currency", title: t$2('widgets-meta:sfield_currency', "货币"), icon: "fa-fw fa fa-jpy" },
|
|
6320
|
+
{ name: "Percent", type: "percent", title: t$2('widgets-meta:sfield_percent', "百分比"), icon: "fa-fw fa fa-percent" },
|
|
6321
|
+
{ name: "Image", type: "image", title: t$2('widgets-meta:sfield_image', "图片"), icon: "fa-fw fa fa-image" },
|
|
6322
|
+
{ name: "File", type: "file", title: t$2('widgets-meta:sfield_file', "文件"), icon: "fa-fw fa fa-file" },
|
|
6323
|
+
{ name: "Code", type: "code", title: t$2('widgets-meta:sfield_code', "代码"), icon: "fa-fw fa fa-code" },
|
|
6324
|
+
{ name: "Markdown", type: "markdown", title: t$2('widgets-meta:sfield_markdown', "Markdown"), icon: "fa-fw fa fa-markdown" },
|
|
6325
|
+
{ name: "Color", type: "color", title: t$2('widgets-meta:sfield_color', "颜色"), icon: "fa-fw fa fa-palette" },
|
|
6326
|
+
{ name: "Toggle", type: "toggle", title: t$2('widgets-meta:sfield_toggle', "切换"), icon: "fa-fw fa fa-toggle-on" },
|
|
6327
|
+
{ name: "Password", type: "password", title: t$2('widgets-meta:sfield_password', "密码"), icon: "fa-fw fa fa-key" },
|
|
6328
|
+
{ name: "Autonumber", type: "autonumber", title: t$2('widgets-meta:sfield_autonumber', "自动编号"), icon: "fa-fw fa fa-hashtag" },
|
|
6329
|
+
{ name: "Url", type: "url", title: t$2('widgets-meta:sfield_url', "URL"), icon: "fa-fw fa fa-link" },
|
|
6330
|
+
{ name: "Email", type: "email", title: t$2('widgets-meta:sfield_email', "电子邮件"), icon: "fa-fw fa fa-envelope" },
|
|
6331
|
+
{ name: "Location", type: "location", title: t$2('widgets-meta:sfield_location', "位置"), icon: "fa-fw fa fa-map-marker" },
|
|
6332
|
+
{ name: "Formula", type: "formula", title: t$2('widgets-meta:sfield_formula', "公式"), icon: "fa-fw fa fa-subscript" },
|
|
6333
|
+
{ name: "Summary", type: "summary", title: t$2('widgets-meta:sfield_summary', "累计汇总"), icon: "fa-fw fa fa-superscript" },
|
|
6334
|
+
{ name: "Table", type: "table", title: t$2('widgets-meta:sfield_table', "表格"), icon: "fa-fw fa fa-table" }
|
|
6837
6335
|
];
|
|
6838
6336
|
var fieldMetas = [];
|
|
6839
6337
|
fieldTypes.forEach(function (_a) {
|
|
@@ -6852,11 +6350,12 @@
|
|
|
6852
6350
|
* @LastEditTime: 2024-10-08 15:04:40
|
|
6853
6351
|
* @Description:
|
|
6854
6352
|
*/
|
|
6353
|
+
var t$1 = window.steedosI18next.t; // 确保国际化函数能被使用
|
|
6855
6354
|
var config$2 = {
|
|
6856
6355
|
// componentType: 'amisSchema',
|
|
6857
|
-
group:
|
|
6356
|
+
group: t$1('widgets-meta:steedos-field-group_sfield_tab_group', '字段'),
|
|
6858
6357
|
componentName: "SteedosFieldSet",
|
|
6859
|
-
title:
|
|
6358
|
+
title: t$1('widgets-meta:steedos-field-group_title', '分组'),
|
|
6860
6359
|
docUrl: "",
|
|
6861
6360
|
screenshot: "",
|
|
6862
6361
|
npm: {
|
|
@@ -6899,14 +6398,14 @@
|
|
|
6899
6398
|
description: config$2.title,
|
|
6900
6399
|
tags: [config$2.group],
|
|
6901
6400
|
isBaseComponent: true,
|
|
6902
|
-
order: -
|
|
6401
|
+
order: -100000,
|
|
6903
6402
|
icon: config$2.amis.icon,
|
|
6904
6403
|
filterProps: function (props, node) {
|
|
6905
6404
|
props.collapsed = false;
|
|
6906
6405
|
return props;
|
|
6907
6406
|
}.toString(),
|
|
6908
6407
|
scaffold: {
|
|
6909
|
-
title: '分组',
|
|
6408
|
+
title: t$1('widgets-meta:steedos-field-group_scaffold_title', '分组'),
|
|
6910
6409
|
collapsable: true,
|
|
6911
6410
|
type: 'steedos-field-group',
|
|
6912
6411
|
body: [], // 容器类字段
|
|
@@ -6915,7 +6414,7 @@
|
|
|
6915
6414
|
regions: [
|
|
6916
6415
|
{
|
|
6917
6416
|
key: 'body',
|
|
6918
|
-
label: '字段项',
|
|
6417
|
+
label: t$1('widgets-meta:steedos-field-group_regions_body_label', '字段项'),
|
|
6919
6418
|
renderMethod: 'renderBody',
|
|
6920
6419
|
insertPosition: 'inner',
|
|
6921
6420
|
accept: function (json) {
|
|
@@ -6929,39 +6428,33 @@
|
|
|
6929
6428
|
previewSchema: {
|
|
6930
6429
|
type: config$2.amis.name,
|
|
6931
6430
|
},
|
|
6932
|
-
panelTitle: "设置",
|
|
6431
|
+
panelTitle: t$1('widgets-meta:steedos-field-group_panel_title', "设置"),
|
|
6933
6432
|
panelControls: [
|
|
6934
6433
|
{
|
|
6935
6434
|
type: 'text',
|
|
6936
6435
|
name: 'title',
|
|
6937
|
-
label: '标题'
|
|
6436
|
+
label: t$1('widgets-meta:steedos-field-group_panel_controls_title_label', '标题')
|
|
6938
6437
|
},
|
|
6939
6438
|
{
|
|
6940
6439
|
type: 'switch',
|
|
6941
6440
|
name: 'collapsed',
|
|
6942
|
-
label: '默认是否折叠'
|
|
6441
|
+
label: t$1('widgets-meta:steedos-field-group_panel_controls_collapsed_label', '默认是否折叠')
|
|
6943
6442
|
},
|
|
6944
6443
|
{
|
|
6945
6444
|
type: 'input-formula',
|
|
6946
6445
|
name: 'visible_on',
|
|
6947
|
-
label: '显示条件'
|
|
6446
|
+
label: t$1('widgets-meta:steedos-field-group_panel_controls_visible_on_label', '显示条件')
|
|
6948
6447
|
}
|
|
6949
6448
|
]
|
|
6950
6449
|
}
|
|
6951
6450
|
} });
|
|
6952
6451
|
|
|
6953
|
-
|
|
6954
|
-
* @Author: baozhoutao@steedos.com
|
|
6955
|
-
* @Date: 2022-10-11 09:39:38
|
|
6956
|
-
* @LastEditors: baozhoutao@steedos.com
|
|
6957
|
-
* @LastEditTime: 2024-10-09 21:02:08
|
|
6958
|
-
* @Description:
|
|
6959
|
-
*/
|
|
6452
|
+
var t = window.steedosI18next.t;
|
|
6960
6453
|
var config$1 = {
|
|
6961
6454
|
// componentType: 'amisSchema',
|
|
6962
|
-
group:
|
|
6455
|
+
group: t('widgets-meta:steedos-object_group', '华炎魔方-对象'),
|
|
6963
6456
|
componentName: "SteedosObject",
|
|
6964
|
-
title:
|
|
6457
|
+
title: t('widgets-meta:steedos-object_title', '对象'),
|
|
6965
6458
|
docUrl: "",
|
|
6966
6459
|
screenshot: "",
|
|
6967
6460
|
npm: {
|
|
@@ -6993,7 +6486,7 @@
|
|
|
6993
6486
|
], amis: {
|
|
6994
6487
|
render: {
|
|
6995
6488
|
type: config$1.amis.name,
|
|
6996
|
-
usage:
|
|
6489
|
+
usage: t('widgets-meta:steedos-object_usage', 'renderer'),
|
|
6997
6490
|
weight: 1,
|
|
6998
6491
|
framework: "react"
|
|
6999
6492
|
},
|
|
@@ -7014,18 +6507,18 @@
|
|
|
7014
6507
|
regions: [
|
|
7015
6508
|
{
|
|
7016
6509
|
key: 'body',
|
|
7017
|
-
label: '内容区'
|
|
6510
|
+
label: t('widgets-meta:steedos-object_body_label', '内容区')
|
|
7018
6511
|
},
|
|
7019
6512
|
],
|
|
7020
6513
|
previewSchema: {
|
|
7021
6514
|
type: config$1.amis.name,
|
|
7022
6515
|
},
|
|
7023
|
-
panelTitle:
|
|
6516
|
+
panelTitle: t('widgets-meta:steedos-object_panel_title', '设置'),
|
|
7024
6517
|
panelControls: [
|
|
7025
6518
|
{
|
|
7026
6519
|
type: 'text',
|
|
7027
6520
|
name: 'name',
|
|
7028
|
-
label: '对象名',
|
|
6521
|
+
label: t('widgets-meta:steedos-object_name_label', '对象名'),
|
|
7029
6522
|
"validateOnChange": true,
|
|
7030
6523
|
"validations": {
|
|
7031
6524
|
"isVariableName": /^[a-zA-Z]([A-Za-z0-9]|_(?!_))*[A-Za-z0-9]$/
|
|
@@ -7034,12 +6527,12 @@
|
|
|
7034
6527
|
{
|
|
7035
6528
|
type: 'text',
|
|
7036
6529
|
name: 'label',
|
|
7037
|
-
label: '显示名称'
|
|
6530
|
+
label: t('widgets-meta:steedos-object_label_label', '显示名称')
|
|
7038
6531
|
},
|
|
7039
6532
|
{
|
|
7040
6533
|
type: 'textarea',
|
|
7041
6534
|
name: 'description',
|
|
7042
|
-
label: '描述'
|
|
6535
|
+
label: t('widgets-meta:steedos-object_description_label', '描述')
|
|
7043
6536
|
}
|
|
7044
6537
|
]
|
|
7045
6538
|
}
|
|
@@ -7049,7 +6542,7 @@
|
|
|
7049
6542
|
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
7050
6543
|
* @Date: 2025-08-19 15:02:47
|
|
7051
6544
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
7052
|
-
* @LastEditTime: 2025-08-
|
|
6545
|
+
* @LastEditTime: 2025-08-29 20:48:20
|
|
7053
6546
|
*/
|
|
7054
6547
|
var config = {
|
|
7055
6548
|
componentType: 'amisSchema',
|
|
@@ -7136,6 +6629,17 @@
|
|
|
7136
6629
|
{ label: '向导', value: 'wizard' }
|
|
7137
6630
|
]
|
|
7138
6631
|
},
|
|
6632
|
+
{
|
|
6633
|
+
type: 'radios',
|
|
6634
|
+
name: 'mode',
|
|
6635
|
+
label: '模式',
|
|
6636
|
+
visibleOn: "${style === 'wizard'}",
|
|
6637
|
+
options: [
|
|
6638
|
+
{ label: '默认', value: 'normal' },
|
|
6639
|
+
{ label: '水平模式', value: 'horizontal' },
|
|
6640
|
+
{ label: '内联模式', value: 'inline' }
|
|
6641
|
+
]
|
|
6642
|
+
},
|
|
7139
6643
|
{
|
|
7140
6644
|
type: 'textarea',
|
|
7141
6645
|
name: 'description',
|