@steedos-widgets/amis-object 6.10.1-beta.52 → 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/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: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
5437
- engines: ["amis"],
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
- "label": "文本",
5446
- "value": "text"
5447
- },
5448
- {
5449
- "label": "长文本",
5450
- "value": "textarea"
5451
- },
5452
- {
5453
- "label": "富文本",
5454
- "value": "html"
5455
- },
5456
- {
5457
- "label": "代码",
5458
- "value": "code"
5459
- },
5460
- {
5461
- "label": "Markdown",
5462
- "value": "markdown"
5463
- },
5464
- {
5465
- "label": "选择框",
5466
- "value": "select"
5467
- },
5468
- {
5469
- "label": "颜色",
5470
- "value": "color"
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 = [];
@@ -5578,7 +5497,7 @@
5578
5497
  "type": "sfield-text",
5579
5498
  "config": {
5580
5499
  "type": "text",
5581
- "label": "column 1",
5500
+ "label": t$2('widgets-meta:sfield_control_column_1_label', "column 1"),
5582
5501
  "amis": {
5583
5502
  "mode": "horizontal",
5584
5503
  "name": "fuwrx6",
@@ -5587,14 +5506,15 @@
5587
5506
  "object": "",
5588
5507
  "name": "fuwrx6"
5589
5508
  },
5590
- "label": "column 1",
5509
+ "label": t$2('widgets-meta:sfield_control_column_1_label', "column 1"),
5591
5510
  "id": "u:fc066ce3ce29",
5592
5511
  "placeholder": "-"
5593
- }, {
5512
+ },
5513
+ {
5594
5514
  "type": "sfield-text",
5595
5515
  "config": {
5596
5516
  "type": "text",
5597
- "label": "column 2",
5517
+ "label": t$2('widgets-meta:sfield_control_column_2_label', "column 2"),
5598
5518
  "amis": {
5599
5519
  "mode": "horizontal",
5600
5520
  "name": "fuwrx6",
@@ -5603,7 +5523,7 @@
5603
5523
  "object": "",
5604
5524
  "name": "fuwrx6"
5605
5525
  },
5606
- "label": "column 2",
5526
+ "label": t$2('widgets-meta:sfield_control_column_2_label', "column 2"),
5607
5527
  "id": "u:fc066ce3ce292",
5608
5528
  "placeholder": "-"
5609
5529
  }
@@ -5632,7 +5552,7 @@
5632
5552
  isBaseComponent: true,
5633
5553
  description: metaConfig.title,
5634
5554
  tags: [metaConfig.group],
5635
- order: -9999,
5555
+ order: -99999,
5636
5556
  icon: metaConfig.amis.icon,
5637
5557
  scaffold: {
5638
5558
  type: metaConfig.amis.name,
@@ -5642,7 +5562,7 @@
5642
5562
  type: metaConfig.amis.name,
5643
5563
  config: _config
5644
5564
  },
5645
- panelTitle: "设置",
5565
+ panelTitle: t$2('widgets-meta:sfield_settings_panel_title', "设置"),
5646
5566
  panelControls: [
5647
5567
  {
5648
5568
  "type": "tabs",
@@ -5652,17 +5572,9 @@
5652
5572
  contentClassName: 'no-border editor-prop-config-tabs-cont',
5653
5573
  "tabs": [
5654
5574
  {
5655
- "title": "通用",
5575
+ "title": t$2('widgets-meta:sfield_control_general', "通用"),
5656
5576
  "className": 'ae-formItemControl-body',
5657
5577
  "body": [
5658
- // {
5659
- // "type": "input-text",
5660
- // "name": "config.object",
5661
- // "value": "${objectName}",
5662
- // "disabled": true,
5663
- // "label": "对象",
5664
- // "required": true
5665
- // },
5666
5578
  {
5667
5579
  "type": "formula",
5668
5580
  "name": "visibleOn",
@@ -5670,7 +5582,7 @@
5670
5582
  },
5671
5583
  {
5672
5584
  "name": "config.type",
5673
- "label": "字段类型",
5585
+ "label": t$2('widgets-meta:sfield_control_field_type', "字段类型"),
5674
5586
  "required": true,
5675
5587
  "type": "select",
5676
5588
  "joinValues": false,
@@ -5686,7 +5598,7 @@
5686
5598
  },
5687
5599
  {
5688
5600
  "name": "config.label",
5689
- "label": "显示名称",
5601
+ "label": t$2('widgets-meta:sfield_control_display_name', "显示名称"),
5690
5602
  "labelRemark": "",
5691
5603
  "description": "",
5692
5604
  "required": true,
@@ -5696,8 +5608,8 @@
5696
5608
  },
5697
5609
  {
5698
5610
  "name": "config.name",
5699
- "label": "API 名称",
5700
- "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 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符"),
5701
5613
  "description": "",
5702
5614
  "required": true,
5703
5615
  "type": "input-text",
@@ -5710,7 +5622,7 @@
5710
5622
  },
5711
5623
  {
5712
5624
  "name": "config.required",
5713
- "label": "必填",
5625
+ "label": t$2('widgets-meta:sfield_control_required', "必填"),
5714
5626
  "required": false,
5715
5627
  "type": "checkbox",
5716
5628
  "tpl": null,
@@ -5720,7 +5632,7 @@
5720
5632
  },
5721
5633
  {
5722
5634
  "name": "config.is_wide",
5723
- "label": "宽字段",
5635
+ "label": t$2('widgets-meta:sfield_control_wide_field', "宽字段"),
5724
5636
  "required": false,
5725
5637
  "type": "checkbox",
5726
5638
  "tpl": null,
@@ -5730,7 +5642,7 @@
5730
5642
  },
5731
5643
  {
5732
5644
  "name": "config.autonumber_enable_modify",
5733
- "label": "允许修改编号",
5645
+ "label": t$2('widgets-meta:sfield_control_allow_modify_number', "允许修改编号"),
5734
5646
  "required": false,
5735
5647
  "type": "checkbox",
5736
5648
  "tpl": null,
@@ -5739,7 +5651,7 @@
5739
5651
  },
5740
5652
  {
5741
5653
  "name": "config.rows",
5742
- "label": "多行文本行数",
5654
+ "label": t$2('widgets-meta:sfield_control_textarea_rows', "多行文本行数"),
5743
5655
  "labelRemark": "",
5744
5656
  "description": "",
5745
5657
  "requiredOn": "config.type === 'textarea' ? true: false",
@@ -5750,167 +5662,50 @@
5750
5662
  },
5751
5663
  {
5752
5664
  "name": "config.language",
5753
- "label": "语言",
5665
+ "label": t$2('widgets-meta:sfield_control_language', "语言"),
5754
5666
  "requiredOn": "['code'].indexOf(config.type) > -1 ? true: false",
5755
5667
  "type": "select",
5756
5668
  "joinValues": false,
5757
5669
  "options": [
5758
- {
5759
- "label": "bat",
5760
- "value": "bat"
5761
- },
5762
- {
5763
- "label": "c",
5764
- "value": "c"
5765
- },
5766
- {
5767
- "label": "coffeescript",
5768
- "value": "coffeescript"
5769
- },
5770
- {
5771
- "label": "cpp",
5772
- "value": "cpp"
5773
- },
5774
- {
5775
- "label": "csharp",
5776
- "value": "csharp"
5777
- },
5778
- {
5779
- "label": "css",
5780
- "value": "css"
5781
- },
5782
- {
5783
- "label": "dockerfile",
5784
- "value": "dockerfile"
5785
- },
5786
- {
5787
- "label": "fsharp",
5788
- "value": "fsharp"
5789
- },
5790
- {
5791
- "label": "go",
5792
- "value": "go"
5793
- },
5794
- {
5795
- "label": "handlebars",
5796
- "value": "handlebars"
5797
- },
5798
- {
5799
- "label": "html",
5800
- "value": "html"
5801
- },
5802
- {
5803
- "label": "ini",
5804
- "value": "ini"
5805
- },
5806
- {
5807
- "label": "java",
5808
- "value": "java"
5809
- },
5810
- {
5811
- "label": "javascript",
5812
- "value": "javascript"
5813
- },
5814
- {
5815
- "label": "json",
5816
- "value": "json"
5817
- },
5818
- {
5819
- "label": "less",
5820
- "value": "less"
5821
- },
5822
- {
5823
- "label": "lua",
5824
- "value": "lua"
5825
- },
5826
- {
5827
- "label": "markdown",
5828
- "value": "markdown"
5829
- },
5830
- {
5831
- "label": "msdax",
5832
- "value": "msdax"
5833
- },
5834
- {
5835
- "label": "objective-c",
5836
- "value": "objective-c"
5837
- },
5838
- {
5839
- "label": "php",
5840
- "value": "php"
5841
- },
5842
- {
5843
- "label": "plaintext",
5844
- "value": "plaintext"
5845
- },
5846
- {
5847
- "label": "postiats",
5848
- "value": "postiats"
5849
- },
5850
- {
5851
- "label": "powershell",
5852
- "value": "powershell"
5853
- },
5854
- {
5855
- "label": "pug",
5856
- "value": "pug"
5857
- },
5858
- {
5859
- "label": "python",
5860
- "value": "python"
5861
- },
5862
- {
5863
- "label": "r",
5864
- "value": "r"
5865
- },
5866
- {
5867
- "label": "razor",
5868
- "value": "razor"
5869
- },
5870
- {
5871
- "label": "ruby",
5872
- "value": "ruby"
5873
- },
5874
- {
5875
- "label": "sb",
5876
- "value": "sb"
5877
- },
5878
- {
5879
- "label": "scss",
5880
- "value": "scss"
5881
- },
5882
- {
5883
- "label": "shell",
5884
- "value": "shell"
5885
- },
5886
- {
5887
- "label": "sol",
5888
- "value": "sol"
5889
- },
5890
- {
5891
- "label": "sql",
5892
- "value": "sql"
5893
- },
5894
- {
5895
- "label": "swift",
5896
- "value": "swift"
5897
- },
5898
- {
5899
- "label": "typescript",
5900
- "value": "typescript"
5901
- },
5902
- {
5903
- "label": "vb",
5904
- "value": "vb"
5905
- },
5906
- {
5907
- "label": "xml",
5908
- "value": "xml"
5909
- },
5910
- {
5911
- "label": "yaml",
5912
- "value": "yaml"
5913
- }
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" }
5914
5709
  ],
5915
5710
  "extractValue": true,
5916
5711
  "clearable": true,
@@ -5923,8 +5718,8 @@
5923
5718
  },
5924
5719
  {
5925
5720
  "name": "config.multiple",
5926
- "label": "多选",
5927
- "labelRemark": "单选<==>多选 相互切换,请自行重新提交已有记录或在数据库中统一修改此字段的保存格式。",
5721
+ "label": t$2('widgets-meta:sfield_control_multiple_select', "多选"),
5722
+ "labelRemark": t$2('widgets-meta:sfield_control_multiple_select_remark', "单选<==>多选 相互切换,请自行重新提交已有记录或在数据库中统一修改此字段的保存格式。"),
5928
5723
  "type": "checkbox",
5929
5724
  "visibleOn": "['select', 'lookup', 'image','file'].indexOf(config.type) > -1 ? true: false",
5930
5725
  "clearValueOnHidden": true,
@@ -5932,8 +5727,8 @@
5932
5727
  },
5933
5728
  {
5934
5729
  "name": "config.data_type",
5935
- "label": "数据类型",
5936
- "labelRemark": "字段类型为公式时,必须填写此字段。",
5730
+ "label": t$2('widgets-meta:sfield_control_data_type', "数据类型"),
5731
+ "labelRemark": t$2('widgets-meta:sfield_control_data_type_remark', "字段类型为公式时,必须填写此字段。"),
5937
5732
  "requiredOn": "['formula'].indexOf(config.type) > -1 ? true: false",
5938
5733
  "type": "select",
5939
5734
  "joinValues": false,
@@ -5951,7 +5746,7 @@
5951
5746
  "Authorization": "Bearer ${context.tenantId},${context.authToken}"
5952
5747
  },
5953
5748
  "sendOn": "this.config.type",
5954
- "adaptor": "\n if (context.config.type === \"select\") {\n payload.data.options = [\n {\n \"label\": \"\u5E03\u5C14\",\n \"value\": \"boolean\"\n },\n {\n \"label\": \"\u6570\u503C\",\n \"value\": \"number\"\n },\n {\n \"label\": \"\u6587\u672C\",\n \"value\": \"text\"\n }\n ]\n }else {\n payload.data.options = [\n {\n \"label\": \"\u5E03\u5C14\",\n \"value\": \"boolean\"\n },\n {\n \"label\": \"\u6570\u503C\",\n \"value\": \"number\"\n },\n {\n \"label\": \"\u91D1\u989D\",\n \"value\": \"currency\"\n },\n {\n \"label\": \"\u767E\u5206\u6BD4\",\n \"value\": \"percent\"\n },\n {\n \"label\": \"\u6587\u672C\",\n \"value\": \"text\"\n },\n {\n \"label\": \"\u65E5\u671F\",\n \"value\": \"date\"\n },\n {\n \"label\": \"\u65E5\u671F\u65F6\u95F4\",\n \"value\": \"datetime\"\n }\n ]\n }\n return payload;\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 "
5955
5750
  },
5956
5751
  "visibleOn": "['formula','select'].indexOf(config.type) > -1 ? true: false",
5957
5752
  "clearValueOnHidden": true
@@ -5959,8 +5754,8 @@
5959
5754
  {
5960
5755
  "type": "input-table",
5961
5756
  "name": "config.options",
5962
- "label": "选择项",
5963
- "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进制数值。"),
5964
5759
  "requiredOn": "config.type === 'select' ? true: false",
5965
5760
  "visibleOn": "config.type === 'select' ? true: false",
5966
5761
  "clearValueOnHidden": true,
@@ -5974,49 +5769,17 @@
5974
5769
  "visibleOn": "${!config.is_system}"
5975
5770
  },
5976
5771
  "columns": [
5977
- {
5978
- "type": "input-text",
5979
- "name": "label",
5980
- "label": "显示名",
5981
- "required": true,
5982
- "disabledOn": "${config.is_system == true}",
5983
- "width": 100
5984
- },
5985
- {
5986
- "type": "input-text",
5987
- "name": "value",
5988
- "label": "选项值",
5989
- "required": true,
5990
- "disabledOn": "${config.is_system == true}",
5991
- "width": 100
5992
- },
5993
- {
5994
- "type": "input-color",
5995
- "name": "color",
5996
- "label": "背景颜色",
5997
- "disabledOn": "${config.is_system == true}",
5998
- "width": 70
5999
- },
6000
- {
6001
- "type": "textarea",
6002
- "name": "description",
6003
- "label": "描述",
6004
- "disabledOn": "${config.is_system == true}",
6005
- "width": 100
6006
- },
6007
- {
6008
- "type": "operation",
6009
- "label": "操作",
6010
- "visibleOn": "${!config.is_system}",
6011
- "width": 70,
6012
- "fixed": "right"
6013
- }
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" }
6014
5777
  ]
6015
5778
  },
6016
5779
  {
6017
5780
  "name": "config.precision",
6018
- "label": "数字位数",
6019
- "labelRemark": "小数点左边的数字位数",
5781
+ "label": t$2('widgets-meta:sfield_control_precision', "数字位数"),
5782
+ "labelRemark": t$2('widgets-meta:sfield_control_precision_remark', "小数点左边的数字位数"),
6020
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; } } })() ",
6021
5784
  "type": "input-number",
6022
5785
  "precision": 0,
@@ -6027,8 +5790,8 @@
6027
5790
  },
6028
5791
  {
6029
5792
  "name": "config.scale",
6030
- "label": "小数位数",
6031
- "labelRemark": "If the field type is a Percent, this indicates the number of decimal places the field will display, for example, two decimal places will display as 10.20%.",
5793
+ "label": t$2('widgets-meta:sfield_control_scale', "小数位数"),
5794
+ "labelRemark": t$2('widgets-meta:sfield_control_scale_remark', "如果字段类型是百分比,则表示字段将显示的小数位数,例如,显示两位小数将显示为10.20%。"),
6032
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; } } })() ",
6033
5796
  "type": "input-number",
6034
5797
  "min": 0,
@@ -6041,8 +5804,8 @@
6041
5804
  },
6042
5805
  {
6043
5806
  "name": "config.formula",
6044
- "label": "公式",
6045
- "labelRemark": "字段类型为自动编号或公式时,必须填写此字段。",
5807
+ "label": t$2('widgets-meta:sfield_control_formula', "公式"),
5808
+ "labelRemark": t$2('widgets-meta:sfield_control_formula_remark', "字段类型为自动编号或公式时,必须填写此字段。"),
6046
5809
  "description": "",
6047
5810
  "requiredOn": "['autonumber', 'formula'].indexOf(config.type) > -1 ? true: false",
6048
5811
  "type": "input-formula",
@@ -6054,7 +5817,7 @@
6054
5817
  },
6055
5818
  {
6056
5819
  "name": "config.show_as_qr",
6057
- "label": "显示为二维码",
5820
+ "label": t$2('widgets-meta:sfield_control_show_as_qr', "显示为二维码"),
6058
5821
  "required": false,
6059
5822
  "type": "checkbox",
6060
5823
  "tpl": null,
@@ -6064,7 +5827,7 @@
6064
5827
  },
6065
5828
  {
6066
5829
  "name": "config.coordinatesType",
6067
- "label": "坐标类型",
5830
+ "label": t$2('widgets-meta:sfield_control_coordinates_type', "坐标类型"),
6068
5831
  "required": false,
6069
5832
  "type": "input-text",
6070
5833
  "visibleOn": "['location'].indexOf(config.type) > -1 ? true: false",
@@ -6074,21 +5837,15 @@
6074
5837
  },
6075
5838
  {
6076
5839
  "name": "config.formula_blank_value",
6077
- "label": "空白字段处理",
6078
- "labelRemark": "如果您的公式引用了任何数字和货币字段,请指定当这些字段值为空时如何处理公式输出。",
5840
+ "label": t$2('widgets-meta:sfield_control_formula_blank_value', "空白字段处理"),
5841
+ "labelRemark": t$2('widgets-meta:sfield_control_formula_blank_value_remark', "如果您的公式引用了任何数字和货币字段,请指定当这些字段值为空时如何处理公式输出。"),
6079
5842
  "description": "",
6080
5843
  "requiredOn": "['formula'].indexOf(config.type) > -1 ? true: false",
6081
5844
  "type": "select",
6082
5845
  "joinValues": false,
6083
5846
  "options": [
6084
- {
6085
- "label": "将空白字段视为零",
6086
- "value": "zeroes"
6087
- },
6088
- {
6089
- "label": "将空白字段视为空白",
6090
- "value": "blanks"
6091
- }
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" }
6092
5849
  ],
6093
5850
  "extractValue": true,
6094
5851
  "clearable": true,
@@ -6102,7 +5859,7 @@
6102
5859
  },
6103
5860
  {
6104
5861
  "name": "config.reference_to",
6105
- "label": "引用对象",
5862
+ "label": t$2('widgets-meta:sfield_control_reference_object', "引用对象"),
6106
5863
  "requiredOn": "['lookup','master_detail'].indexOf(config.type) > -1 ? true: false",
6107
5864
  "type": "select",
6108
5865
  "joinValues": false,
@@ -6136,8 +5893,8 @@
6136
5893
  },
6137
5894
  {
6138
5895
  "name": "config.summary_object",
6139
- "label": "要汇总的对象",
6140
- "labelRemark": "字段类型为累计汇总时,必须填写此字段。",
5896
+ "label": t$2('widgets-meta:sfield_control_summary_object', "要汇总的对象"),
5897
+ "labelRemark": t$2('widgets-meta:sfield_control_summary_object_remark', "字段类型为累计汇总时,必须填写此字段。"),
6141
5898
  "description": "",
6142
5899
  "requiredOn": "config.type === 'summary' ? true: false",
6143
5900
  "type": "select",
@@ -6171,32 +5928,17 @@
6171
5928
  },
6172
5929
  {
6173
5930
  "name": "config.summary_type",
6174
- "label": "汇总类型",
6175
- "labelRemark": "字段类型为累计汇总时,必须填写此字段。",
5931
+ "label": t$2('widgets-meta:sfield_control_summary_type', "汇总类型"),
5932
+ "labelRemark": t$2('widgets-meta:sfield_control_summary_type_remark', "字段类型为累计汇总时,必须填写此字段。"),
6176
5933
  "requiredOn": "config.type === 'summary' ? true: false",
6177
5934
  "type": "select",
6178
5935
  "joinValues": false,
6179
5936
  "options": [
6180
- {
6181
- "label": "COUNT",
6182
- "value": "count"
6183
- },
6184
- {
6185
- "label": "SUM",
6186
- "value": "sum"
6187
- },
6188
- {
6189
- "label": "MIN",
6190
- "value": "min"
6191
- },
6192
- {
6193
- "label": "MAX",
6194
- "value": "max"
6195
- },
6196
- {
6197
- "label": "AVG",
6198
- "value": "avg"
6199
- }
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" }
6200
5942
  ],
6201
5943
  "extractValue": true,
6202
5944
  "clearable": true,
@@ -6208,8 +5950,8 @@
6208
5950
  },
6209
5951
  {
6210
5952
  "name": "config.summary_field",
6211
- "label": "汇总字段",
6212
- "labelRemark": "字段类型为累计汇总且汇总类型不是COUNT时,必须填写此字段,只支持聚合数值、金额、日期、日期时间类型的字段。",
5953
+ "label": t$2('widgets-meta:sfield_control_summary_field', "汇总字段"),
5954
+ "labelRemark": t$2('widgets-meta:sfield_control_summary_field_remark', "字段类型为累计汇总且汇总类型不是COUNT时,必须填写此字段,只支持聚合数值、金额、日期、日期时间类型的字段。"),
6213
5955
  "description": "",
6214
5956
  "requiredOn": "config.type === 'summary' && config.summary_type !== 'count' ? true: false",
6215
5957
  "type": "select",
@@ -6256,10 +5998,9 @@
6256
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;"
6257
5999
  }
6258
6000
  },
6259
- //汇总过滤条件暂时无法直接使用组件,因为数据格式不一致
6260
6001
  {
6261
6002
  "name": "config.description",
6262
- "label": "描述",
6003
+ "label": t$2('widgets-meta:sfield_control_description', "描述"),
6263
6004
  "required": false,
6264
6005
  "type": "textarea",
6265
6006
  "tpl": "<%=(data.config.description || \"\").split(\"\\n\").join('<br>')%>",
@@ -6267,19 +6008,13 @@
6267
6008
  },
6268
6009
  {
6269
6010
  "name": "config.deleted_lookup_record_behavior",
6270
- "label": "如果相关表记录被删除怎么办?",
6011
+ "label": t$2('widgets-meta:sfield_control_deleted_lookup_record_behavior', "如果相关表记录被删除怎么办?"),
6271
6012
  "required": true,
6272
6013
  "type": "select",
6273
6014
  "joinValues": false,
6274
6015
  "options": [
6275
- {
6276
- "label": "清除此字段的值。 如果您将此字段设为必填,您不能选择此选项。",
6277
- "value": "clear"
6278
- },
6279
- {
6280
- "label": "不允许删除"作为相关表关系的一部分的相关表记录"。",
6281
- "value": "retain"
6282
- }
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" }
6283
6018
  ],
6284
6019
  "extractValue": true,
6285
6020
  "clearable": true,
@@ -6292,8 +6027,8 @@
6292
6027
  },
6293
6028
  {
6294
6029
  "name": "config.write_requires_master_read",
6295
- "label": "当用户对主表记录有读取权限时对子表记录可以增删改",
6296
- "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', "设置主记录上创建、编辑或删除子记录所需的最低访问级别。此字段仅适用于·主表/子表·字段类型。勾选表示允许具有'读取'访问权限的用户创建、编辑或删除子记录。反之表示允许具有'读取/写入'访问权限的用户创建、编辑或删除子记录的权限。"),
6297
6032
  "type": "checkbox",
6298
6033
  "visibleOn": "config.type === 'master_detail' ? true: false",
6299
6034
  "clearValueOnHidden": true,
@@ -6302,301 +6037,102 @@
6302
6037
  ]
6303
6038
  },
6304
6039
  {
6305
- "title": "表单",
6040
+ "title": t$2('widgets-meta:sfield_control_form', "表单"),
6306
6041
  "className": 'ae-formItemControl-body',
6307
6042
  "body": [
6308
6043
  {
6309
6044
  "name": "config.amis.type",
6310
- "label": "输入类型",
6045
+ "label": t$2('widgets-meta:sfield_control_input_type', "输入类型"),
6311
6046
  "required": false,
6312
6047
  "type": "select",
6313
6048
  "searchable": true,
6314
6049
  "fieldName": "config.amis.type",
6315
6050
  "options": [
6316
- {
6317
- "label": "数组输入框 (input-array)",
6318
- "value": "input-array"
6319
- },
6320
- {
6321
- "label": "按钮工具栏 (button-toolbar)",
6322
- "value": "button-toolbar"
6323
- },
6324
- {
6325
- "label": "按钮点选 (button-group-select)",
6326
- "value": "button-group-select"
6327
- },
6328
- {
6329
- "label": "链式下拉框 (chained-select)",
6330
- "value": "chained-select"
6331
- },
6332
- {
6333
- "label": "勾选框 (checkbox)",
6334
- "value": "checkbox"
6335
- },
6336
- {
6337
- "label": "复选框 (checkboxes)",
6338
- "value": "checkboxes"
6339
- },
6340
- {
6341
- "label": "城市选择器 (input-city)",
6342
- "value": "input-city"
6343
- },
6344
- {
6345
- "label": "颜色选择器 (input-color)",
6346
- "value": "input-color"
6347
- },
6348
- {
6349
- "label": "组合 (combo)",
6350
- "value": "combo"
6351
- },
6352
- {
6353
- "label": "组合条件 (condition-builder)",
6354
- "value": "condition-builder"
6355
- },
6356
- {
6357
- "label": "日期 (input-date)",
6358
- "value": "input-date"
6359
- },
6360
- {
6361
- "label": "日期时间 (input-datetime)",
6362
- "value": "input-datetime"
6363
- },
6364
- {
6365
- "label": "月份 (input-month)",
6366
- "value": "input-month"
6367
- },
6368
- {
6369
- "label": "日期范围 (input-date-range)",
6370
- "value": "input-date-range"
6371
- },
6372
- {
6373
- "label": "日期时间范围 (input-datetime-range)",
6374
- "value": "input-datetime-range"
6375
- },
6376
- {
6377
- "label": "月份范围 (input-month-range)",
6378
- "value": "input-month-range"
6379
- },
6380
- {
6381
- "label": "键值对 (input-kv)",
6382
- "value": "input-kv"
6383
- },
6384
- {
6385
- "label": "键值对象 (input-kvs)",
6386
- "value": "input-kvs"
6387
- },
6388
- {
6389
- "label": "公式编辑器 (input-formula)",
6390
- "value": "input-formula"
6391
- },
6392
- {
6393
- "label": "对比编辑器 (diff-editor)",
6394
- "value": "diff-editor"
6395
- },
6396
- {
6397
- "label": "编辑器 (editor)",
6398
- "value": "editor"
6399
- },
6400
- {
6401
- "label": "解析 Excel (input-excel)",
6402
- "value": "input-excel"
6403
- },
6404
- {
6405
- "label": "文件上传 (input-file)",
6406
- "value": "input-file"
6407
- },
6408
- {
6409
- "label": "公式 (formula)",
6410
- "value": "formula"
6411
- },
6412
- {
6413
- "label": "表单项组 (group)",
6414
- "value": "group"
6415
- },
6416
- {
6417
- "label": "隐藏字段 (hidden)",
6418
- "value": "hidden"
6419
- },
6420
- {
6421
- "label": "图片 (input-image)",
6422
- "value": "input-image"
6423
- },
6424
- {
6425
- "label": "输入框组合 (input-group)",
6426
- "value": "input-group"
6427
- },
6428
- {
6429
- "label": "列表选择 (list-select)",
6430
- "value": "list-select"
6431
- },
6432
- {
6433
- "label": "地理位置 (location-picker)",
6434
- "value": "location-picker"
6435
- },
6436
- {
6437
- "label": "UUID",
6438
- "value": "uuid"
6439
- },
6440
- {
6441
- "label": "矩阵选择 (matrix-checkboxes)",
6442
- "value": "matrix-checkboxes"
6443
- },
6444
- {
6445
- "label": "级联选择器 (nested-select)",
6446
- "value": "nested-select"
6447
- },
6448
- {
6449
- "label": "数字输入框 (input-number)",
6450
- "value": "input-number"
6451
- },
6452
- {
6453
- "label": "密码输入框 (input-password)",
6454
- "value": "input-password"
6455
- },
6456
- {
6457
- "label": "列表选择器 (picker)",
6458
- "value": "picker"
6459
- },
6460
- {
6461
- "label": "季度 (input-quarter)",
6462
- "value": "input-quarter"
6463
- },
6464
- {
6465
- "label": "季度范围 (input-quarter-range)",
6466
- "value": "input-quarter-range"
6467
- },
6468
- {
6469
- "label": "单选框 (radio)",
6470
- "value": "radio"
6471
- },
6472
- {
6473
- "label": "单选框 (radios)",
6474
- "value": "radios"
6475
- },
6476
- {
6477
- "label": "图表单选框 (chart-radios)",
6478
- "value": "chart-radios"
6479
- },
6480
- {
6481
- "label": "评分 (input-rating)",
6482
- "value": "input-rating"
6483
- },
6484
- {
6485
- "label": "滑块 (input-range)",
6486
- "value": "input-range"
6487
- },
6488
- {
6489
- "label": "重复频率选择器 (input-repeat)",
6490
- "value": "input-repeat"
6491
- },
6492
- {
6493
- "label": "富文本编辑器 (input-rich-text)",
6494
- "value": "input-rich-text"
6495
- },
6496
- {
6497
- "label": "选择器 (select)",
6498
- "value": "select"
6499
- },
6500
- {
6501
- "label": "子表单 (input-sub-form)",
6502
- "value": "input-sub-form"
6503
- },
6504
- {
6505
- "label": "开关 (switch)",
6506
- "value": "switch"
6507
- },
6508
- {
6509
- "label": "静态展示 (static)",
6510
- "value": "static"
6511
- },
6512
- {
6513
- "label": "文件上传 (input-file)",
6514
- "value": "input-file"
6515
- },
6516
- {
6517
- "label": "表格 (input-table)",
6518
- "value": "input-table"
6519
- },
6520
- {
6521
- "label": "标签选择器 (input-tag)",
6522
- "value": "input-tag"
6523
- },
6524
- {
6525
- "label": "输入框 (input-text)",
6526
- "value": "input-text"
6527
- },
6528
- {
6529
- "label": "多行文本输入框 (textarea)",
6530
- "value": "textarea"
6531
- },
6532
- {
6533
- "label": "时间 (input-time)",
6534
- "value": "input-time"
6535
- },
6536
- {
6537
- "label": "时间范围 (input-time-range)",
6538
- "value": "input-time-range"
6539
- },
6540
- {
6541
- "label": "穿梭器 (transfer)",
6542
- "value": "transfer"
6543
- },
6544
- {
6545
- "label": "穿梭选择器 (transfer-picker)",
6546
- "value": "transfer-picker"
6547
- },
6548
- {
6549
- "label": "组合穿梭器 (tabs-transfer)",
6550
- "value": "tabs-transfer"
6551
- },
6552
- {
6553
- "label": "组合穿梭选择器 (tabs-transfer-picker)",
6554
- "value": "tabs-transfer-picker"
6555
- },
6556
- {
6557
- "label": "树形选择框 (input-tree)",
6558
- "value": "input-tree"
6559
- },
6560
- {
6561
- "label": "树形选择器 (tree-select)",
6562
- "value": "tree-select"
6563
- },
6564
- {
6565
- "label": "年份选择 (input-year)",
6566
- "value": "input-year"
6567
- },
6568
- {
6569
- "label": "年份范围 (input-year-range)",
6570
- "value": "input-year-range"
6571
- },
6572
- {
6573
- "label": "JSON Schema (json-schema)",
6574
- "value": "json-schema"
6575
- },
6576
- {
6577
- "label": "JSON Schema Editor (json-schema-editor)",
6578
- "value": "json-schema-editor"
6579
- },
6580
- {
6581
- "label": "签名面板 (input-signature)",
6582
- "value": "input-signature"
6583
- },
6584
- {
6585
- "label": "验证码输入 (input-verification-code)",
6586
- "value": "input-verification-code"
6587
- }
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" }
6588
6119
  ],
6120
+ "extractValue": true,
6121
+ "clearable": true,
6122
+ "fieldName": "config.amis.type",
6123
+ "labelClassName": "text-left",
6124
+ "clearValueOnHidden": true
6589
6125
  },
6590
6126
  {
6591
6127
  "name": "config.visible_on",
6592
- "label": "显示公式",
6128
+ "label": t$2('widgets-meta:sfield_control_visible_on', "显示公式"),
6593
6129
  "type": 'input-formula',
6594
6130
  "mixedMode": true
6595
6131
  },
6596
6132
  {
6597
6133
  "name": "config.readonly",
6598
- "label": "只读",
6599
- "labelRemark": "只读字段不显示在表单上,数据不会提交到服务端。",
6134
+ "label": t$2('widgets-meta:sfield_control_readonly', "只读"),
6135
+ "labelRemark": t$2('widgets-meta:sfield_control_readonly_remark', "只读字段不显示在表单上,数据不会提交到服务端。"),
6600
6136
  "required": false,
6601
6137
  "type": "checkbox",
6602
6138
  "tpl": null,
@@ -6605,8 +6141,8 @@
6605
6141
  },
6606
6142
  {
6607
6143
  "name": "config.static",
6608
- "label": "静态",
6609
- "labelRemark": "静态字段在表单上显示,用户不可编辑,可动态赋值。",
6144
+ "label": t$2('widgets-meta:sfield_control_static', "静态"),
6145
+ "labelRemark": t$2('widgets-meta:sfield_control_static_remark', "静态字段在表单上显示,用户不可编辑,可动态赋值。"),
6610
6146
  "required": false,
6611
6147
  "type": "checkbox",
6612
6148
  "tpl": null,
@@ -6615,7 +6151,7 @@
6615
6151
  },
6616
6152
  {
6617
6153
  "name": "config.inlineHelpText",
6618
- "label": "提示文本",
6154
+ "label": t$2('widgets-meta:sfield_control_inline_help_text', "提示文本"),
6619
6155
  "required": false,
6620
6156
  "type": "textarea",
6621
6157
  "tpl": "<%=(data.config.inlineHelpText || \"\").split(\"\\n\").join('<br>')%>",
@@ -6626,8 +6162,8 @@
6626
6162
  },
6627
6163
  {
6628
6164
  "name": "config.enable_enhanced_lookup",
6629
- "label": "弹出选择",
6630
- "labelRemark": "被其他字段引用时,使用弹出框选择记录。",
6165
+ "label": t$2('widgets-meta:sfield_control_enable_enhanced_lookup', "弹出选择"),
6166
+ "labelRemark": t$2('widgets-meta:sfield_control_enable_enhanced_lookup_remark', "被其他字段引用时,使用弹出框选择记录。"),
6631
6167
  "required": false,
6632
6168
  "type": "checkbox",
6633
6169
  "tpl": null,
@@ -6636,7 +6172,7 @@
6636
6172
  },
6637
6173
  {
6638
6174
  "name": "config.create",
6639
- "label": "弹出选择时允许新建",
6175
+ "label": t$2('widgets-meta:sfield_control_create_allowance', "弹出选择时允许新建"),
6640
6176
  "required": false,
6641
6177
  "type": "checkbox",
6642
6178
  "tpl": null,
@@ -6647,8 +6183,8 @@
6647
6183
  },
6648
6184
  {
6649
6185
  "name": "config.depend_on",
6650
- "label": "依赖字段",
6651
- "labelRemark": "依赖字段的变化会触发当前字段重算",
6186
+ "label": t$2('widgets-meta:sfield_control_depend_on', "依赖字段"),
6187
+ "labelRemark": t$2('widgets-meta:sfield_control_depend_on_remark', "依赖字段的变化会触发当前字段重算"),
6652
6188
  "description": "",
6653
6189
  "required": false,
6654
6190
  "type": "select",
@@ -6678,7 +6214,7 @@
6678
6214
  },
6679
6215
  {
6680
6216
  "name": "config.enable_thousands",
6681
- "label": "显示千分符",
6217
+ "label": t$2('widgets-meta:sfield_control_enable_thousands', "显示千分符"),
6682
6218
  "required": false,
6683
6219
  "type": "checkbox",
6684
6220
  "tpl": null,
@@ -6686,18 +6222,16 @@
6686
6222
  "clearValueOnHidden": true,
6687
6223
  "fieldName": "config.enable_thousands"
6688
6224
  }
6689
- //filters
6690
- //自动填充
6691
6225
  ]
6692
6226
  },
6693
6227
  {
6694
- "title": "高级",
6228
+ "title": t$2('widgets-meta:sfield_control_advanced', "高级"),
6695
6229
  "className": 'ae-formItemControl-body',
6696
6230
  "body": [
6697
6231
  {
6698
6232
  "name": "config.unique",
6699
- "label": "创建唯一索引",
6700
- "labelRemark": "默认每天凌晨执行一次创建,已有的索引不重复创建。",
6233
+ "label": t$2('widgets-meta:sfield_control_create_unique_index', "创建唯一索引"),
6234
+ "labelRemark": t$2('widgets-meta:sfield_control_create_unique_index_remark', "默认每天凌晨执行一次创建,已有的索引不重复创建。"),
6701
6235
  "required": false,
6702
6236
  "type": "checkbox",
6703
6237
  "tpl": null,
@@ -6705,7 +6239,7 @@
6705
6239
  },
6706
6240
  {
6707
6241
  "name": "config.filterable",
6708
- "label": "列表页过滤器默认字段",
6242
+ "label": t$2('widgets-meta:sfield_control_default_filter_field', "列表页过滤器默认字段"),
6709
6243
  "required": false,
6710
6244
  "type": "checkbox",
6711
6245
  "tpl": null,
@@ -6713,8 +6247,8 @@
6713
6247
  },
6714
6248
  {
6715
6249
  "name": "config.index",
6716
- "label": "创建索引",
6717
- "labelRemark": "默认每天凌晨执行一次创建,已有的索引不重复创建。",
6250
+ "label": t$2('widgets-meta:sfield_control_create_index', "创建索引"),
6251
+ "labelRemark": t$2('widgets-meta:sfield_control_create_index_remark', "默认每天凌晨执行一次创建,已有的索引不重复创建。"),
6718
6252
  "required": false,
6719
6253
  "type": "checkbox",
6720
6254
  "tpl": null,
@@ -6722,7 +6256,7 @@
6722
6256
  },
6723
6257
  {
6724
6258
  "name": "config.is_name",
6725
- "label": "名称字段",
6259
+ "label": t$2('widgets-meta:sfield_control_name_field', "名称字段"),
6726
6260
  "required": false,
6727
6261
  "type": "checkbox",
6728
6262
  "tpl": null,
@@ -6732,9 +6266,9 @@
6732
6266
  },
6733
6267
  {
6734
6268
  "name": "config.reference_to_field",
6735
- "label": "外键字段",
6736
- "labelRemark": "关联的对象保存到当前对象字段的值;例如:A对象关联B对象后,当A1记录关联了B1记录,默认会存B1记录的_id存到A1记录中。如果修改了外键字段后,会将“外键字段”替换_id存储到A1记录中。",
6737
- "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"),
6738
6272
  "required": false,
6739
6273
  "type": "select",
6740
6274
  "joinValues": false,
@@ -6771,33 +6305,33 @@
6771
6305
  };
6772
6306
  // 针对每个字段类型生成函数和元数据
6773
6307
  var fieldTypes = [
6774
- { name: "Text", type: "text", title: "文本", icon: "fa-fw fa fa-list-alt" },
6775
- { name: "Textarea", type: "textarea", title: "长文本", icon: "fa-fw fa fa-list-alt" },
6776
- { name: "Html", type: "html", title: "富文本", icon: "fa-fw fa fa-code" },
6777
- { name: "Lookup", type: "lookup", title: "相关表关系", icon: "fa-fw fa fa-search" },
6778
- { name: "MasterDetail", type: "master_detail", title: "主/子表关系", icon: "fa-fw fa fa-link" },
6779
- { name: "Select", type: "select", title: "选择", icon: "fa-fw fa fa-list" },
6780
- { name: "Boolean", type: "boolean", title: "布尔", icon: "fa-fw fa fa-check" },
6781
- { name: "Date", type: "date", title: "日期", icon: "fa-fw fa fa-calendar" },
6782
- { name: "Datetime", type: "datetime", title: "日期时间", icon: "fa-fw fa fa-clock" },
6783
- { name: "Time", type: "time", title: "时间", icon: "fa-fw fa fa-clock" },
6784
- { name: "Number", type: "number", title: "数字", icon: "fa-fw fa fa-calculator" },
6785
- { name: "Currency", type: "currency", title: "货币", icon: "fa-fw fa fa-jpy" },
6786
- { name: "Percent", type: "percent", title: "百分比", icon: "fa-fw fa fa-percent" },
6787
- { name: "Image", type: "image", title: "图片", icon: "fa-fw fa fa-image" },
6788
- { name: "File", type: "file", title: "文件", icon: "fa-fw fa fa-file" },
6789
- { name: "Code", type: "code", title: "代码", icon: "fa-fw fa fa-code" },
6790
- { name: "Markdown", type: "markdown", title: "Markdown", icon: "fa-fw fa fa-markdown" },
6791
- { name: "Color", type: "color", title: "颜色", icon: "fa-fw fa fa-palette" },
6792
- { name: "Toggle", type: "toggle", title: "切换", icon: "fa-fw fa fa-toggle-on" },
6793
- { name: "Password", type: "password", title: "密码", icon: "fa-fw fa fa-key" },
6794
- { name: "Autonumber", type: "autonumber", title: "自动编号", icon: "fa-fw fa fa-hashtag" },
6795
- { name: "Url", type: "url", title: "URL", icon: "fa-fw fa fa-link" },
6796
- { name: "Email", type: "email", title: "电子邮件", icon: "fa-fw fa fa-envelope" },
6797
- { name: "Location", type: "location", title: "位置", icon: "fa-fw fa fa-map-marker" },
6798
- { name: "Formula", type: "formula", title: "公式", icon: "fa-fw fa fa-subscript" },
6799
- { name: "Summary", type: "summary", title: "累计汇总", icon: "fa-fw fa fa-superscript" },
6800
- { 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" }
6801
6335
  ];
6802
6336
  var fieldMetas = [];
6803
6337
  fieldTypes.forEach(function (_a) {
@@ -6816,11 +6350,12 @@
6816
6350
  * @LastEditTime: 2024-10-08 15:04:40
6817
6351
  * @Description:
6818
6352
  */
6353
+ var t$1 = window.steedosI18next.t; // 确保国际化函数能被使用
6819
6354
  var config$2 = {
6820
6355
  // componentType: 'amisSchema',
6821
- group: "字段",
6356
+ group: t$1('widgets-meta:steedos-field-group_sfield_tab_group', '字段'),
6822
6357
  componentName: "SteedosFieldSet",
6823
- title: "分组",
6358
+ title: t$1('widgets-meta:steedos-field-group_title', '分组'),
6824
6359
  docUrl: "",
6825
6360
  screenshot: "",
6826
6361
  npm: {
@@ -6863,14 +6398,14 @@
6863
6398
  description: config$2.title,
6864
6399
  tags: [config$2.group],
6865
6400
  isBaseComponent: true,
6866
- order: -10000,
6401
+ order: -100000,
6867
6402
  icon: config$2.amis.icon,
6868
6403
  filterProps: function (props, node) {
6869
6404
  props.collapsed = false;
6870
6405
  return props;
6871
6406
  }.toString(),
6872
6407
  scaffold: {
6873
- title: '分组',
6408
+ title: t$1('widgets-meta:steedos-field-group_scaffold_title', '分组'),
6874
6409
  collapsable: true,
6875
6410
  type: 'steedos-field-group',
6876
6411
  body: [], // 容器类字段
@@ -6879,7 +6414,7 @@
6879
6414
  regions: [
6880
6415
  {
6881
6416
  key: 'body',
6882
- label: '字段项',
6417
+ label: t$1('widgets-meta:steedos-field-group_regions_body_label', '字段项'),
6883
6418
  renderMethod: 'renderBody',
6884
6419
  insertPosition: 'inner',
6885
6420
  accept: function (json) {
@@ -6893,39 +6428,33 @@
6893
6428
  previewSchema: {
6894
6429
  type: config$2.amis.name,
6895
6430
  },
6896
- panelTitle: "设置",
6431
+ panelTitle: t$1('widgets-meta:steedos-field-group_panel_title', "设置"),
6897
6432
  panelControls: [
6898
6433
  {
6899
6434
  type: 'text',
6900
6435
  name: 'title',
6901
- label: '标题'
6436
+ label: t$1('widgets-meta:steedos-field-group_panel_controls_title_label', '标题')
6902
6437
  },
6903
6438
  {
6904
6439
  type: 'switch',
6905
6440
  name: 'collapsed',
6906
- label: '默认是否折叠'
6441
+ label: t$1('widgets-meta:steedos-field-group_panel_controls_collapsed_label', '默认是否折叠')
6907
6442
  },
6908
6443
  {
6909
6444
  type: 'input-formula',
6910
6445
  name: 'visible_on',
6911
- label: '显示条件'
6446
+ label: t$1('widgets-meta:steedos-field-group_panel_controls_visible_on_label', '显示条件')
6912
6447
  }
6913
6448
  ]
6914
6449
  }
6915
6450
  } });
6916
6451
 
6917
- /*
6918
- * @Author: baozhoutao@steedos.com
6919
- * @Date: 2022-10-11 09:39:38
6920
- * @LastEditors: baozhoutao@steedos.com
6921
- * @LastEditTime: 2024-10-09 21:02:08
6922
- * @Description:
6923
- */
6452
+ var t = window.steedosI18next.t;
6924
6453
  var config$1 = {
6925
6454
  // componentType: 'amisSchema',
6926
- group: "华炎魔方-对象",
6455
+ group: t('widgets-meta:steedos-object_group', '华炎魔方-对象'),
6927
6456
  componentName: "SteedosObject",
6928
- title: "对象",
6457
+ title: t('widgets-meta:steedos-object_title', '对象'),
6929
6458
  docUrl: "",
6930
6459
  screenshot: "",
6931
6460
  npm: {
@@ -6957,7 +6486,7 @@
6957
6486
  ], amis: {
6958
6487
  render: {
6959
6488
  type: config$1.amis.name,
6960
- usage: "renderer",
6489
+ usage: t('widgets-meta:steedos-object_usage', 'renderer'),
6961
6490
  weight: 1,
6962
6491
  framework: "react"
6963
6492
  },
@@ -6978,18 +6507,18 @@
6978
6507
  regions: [
6979
6508
  {
6980
6509
  key: 'body',
6981
- label: '内容区'
6510
+ label: t('widgets-meta:steedos-object_body_label', '内容区')
6982
6511
  },
6983
6512
  ],
6984
6513
  previewSchema: {
6985
6514
  type: config$1.amis.name,
6986
6515
  },
6987
- panelTitle: "设置",
6516
+ panelTitle: t('widgets-meta:steedos-object_panel_title', '设置'),
6988
6517
  panelControls: [
6989
6518
  {
6990
6519
  type: 'text',
6991
6520
  name: 'name',
6992
- label: '对象名',
6521
+ label: t('widgets-meta:steedos-object_name_label', '对象名'),
6993
6522
  "validateOnChange": true,
6994
6523
  "validations": {
6995
6524
  "isVariableName": /^[a-zA-Z]([A-Za-z0-9]|_(?!_))*[A-Za-z0-9]$/
@@ -6998,12 +6527,12 @@
6998
6527
  {
6999
6528
  type: 'text',
7000
6529
  name: 'label',
7001
- label: '显示名称'
6530
+ label: t('widgets-meta:steedos-object_label_label', '显示名称')
7002
6531
  },
7003
6532
  {
7004
6533
  type: 'textarea',
7005
6534
  name: 'description',
7006
- label: '描述'
6535
+ label: t('widgets-meta:steedos-object_description_label', '描述')
7007
6536
  }
7008
6537
  ]
7009
6538
  }