@steedos-widgets/amis-object 6.10.2-beta.3 → 6.10.4
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 +12 -33
- package/dist/amis-object.umd.css +19 -6
- package/dist/amis-object.umd.js +232 -218
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +19 -19
- package/dist/meta.js +627 -633
- 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$
|
|
84
|
+
var t$f = window.steedosI18next.t;
|
|
85
85
|
var config$B = {
|
|
86
86
|
componentType: 'amisSchema', // amisSchema || react
|
|
87
|
-
group: t$
|
|
87
|
+
group: t$f('widgets-meta:steedos-object-form_group', '华炎魔方'),
|
|
88
88
|
componentName: "AmisObjectForm",
|
|
89
|
-
title: t$
|
|
89
|
+
title: t$f('widgets-meta:steedos-object-form_title', '对象表单'),
|
|
90
90
|
docUrl: "",
|
|
91
91
|
screenshot: "",
|
|
92
92
|
npm: {
|
|
@@ -101,12 +101,12 @@
|
|
|
101
101
|
{
|
|
102
102
|
name: "objectApiName",
|
|
103
103
|
propType: "string",
|
|
104
|
-
description: t$
|
|
104
|
+
description: t$f('widgets-meta:steedos-object-form_props_objectApiName', '对象名'),
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
name: "recordId",
|
|
108
108
|
propType: "string",
|
|
109
|
-
description: t$
|
|
109
|
+
description: t$f('widgets-meta:steedos-object-form_props_recordId', '记录ID'),
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
name: "mode",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"edit",
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
|
-
description: t$
|
|
120
|
+
description: t$f('widgets-meta:steedos-object-form_props_mode', '显示状态'),
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
name: "enableInitApi",
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
false,
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
|
-
description: t$
|
|
131
|
+
description: t$f('widgets-meta:steedos-object-form_props_enableInitApi', '初始化接口'),
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
name: "layout",
|
|
@@ -139,27 +139,27 @@
|
|
|
139
139
|
"horizontal",
|
|
140
140
|
]
|
|
141
141
|
},
|
|
142
|
-
description: t$
|
|
142
|
+
description: t$f('widgets-meta:steedos-object-form_props_layout', '表单布局'),
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
name: "initApiRequestAdaptor",
|
|
146
146
|
propType: "string",
|
|
147
|
-
description: t$
|
|
147
|
+
description: t$f('widgets-meta:steedos-object-form_props_initApiRequestAdaptor', '初始化接口发送适配器'),
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
name: "initApiAdaptor",
|
|
151
151
|
propType: "string",
|
|
152
|
-
description: t$
|
|
152
|
+
description: t$f('widgets-meta:steedos-object-form_props_initApiAdaptor', '初始化接口接收适配器'),
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
name: "apiRequestAdaptor",
|
|
156
156
|
propType: "string",
|
|
157
|
-
description: t$
|
|
157
|
+
description: t$f('widgets-meta:steedos-object-form_props_apiRequestAdaptor', '保存接口发送适配器'),
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
name: "apiAdaptor",
|
|
161
161
|
propType: "string",
|
|
162
|
-
description: t$
|
|
162
|
+
description: t$f('widgets-meta:steedos-object-form_props_apiAdaptor', '保存接口接收适配器'),
|
|
163
163
|
}
|
|
164
164
|
],
|
|
165
165
|
preview: {},
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
type: config$B.amis.name,
|
|
208
208
|
objectApiName: 'space_users'
|
|
209
209
|
},
|
|
210
|
-
panelTitle: t$
|
|
210
|
+
panelTitle: t$f('widgets-meta:steedos-object-form_panelTitle', '设置'),
|
|
211
211
|
panelControls: [
|
|
212
212
|
{
|
|
213
213
|
"type": "tabs",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
contentClassName: 'no-border editor-prop-config-tabs-cont',
|
|
218
218
|
"tabs": [
|
|
219
219
|
{
|
|
220
|
-
"title": t$
|
|
220
|
+
"title": t$f('widgets-meta:steedos-object-form_tab_props', '属性'),
|
|
221
221
|
className: 'p-none',
|
|
222
222
|
"body": [
|
|
223
223
|
{
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
headingClassName: 'ae-formItemControl-header',
|
|
239
239
|
bodyClassName: 'ae-formItemControl-body',
|
|
240
240
|
"key": "1",
|
|
241
|
-
"header": t$
|
|
241
|
+
"header": t$f('widgets-meta:steedos-object-form_section_basic', '基本'),
|
|
242
242
|
"body": [
|
|
243
243
|
{
|
|
244
244
|
"type": "select",
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
right: 8,
|
|
249
249
|
justify: true
|
|
250
250
|
},
|
|
251
|
-
"label": t$
|
|
251
|
+
"label": t$f('widgets-meta:steedos-object-form_field_objectApiName', '对象'),
|
|
252
252
|
"name": "objectApiName",
|
|
253
253
|
"searchable": true,
|
|
254
254
|
"multiple": false,
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
"method": "get",
|
|
257
257
|
"url": "/service/api/amis-design/objects",
|
|
258
258
|
"requestAdaptor": "\n api.url = Builder.settings.rootUrl + api.url; \n if(!api.headers){\n api.headers = {}\n };\n api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;\n return api;\n ",
|
|
259
|
-
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$
|
|
259
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$f('widgets-meta:steedos-object-form_field_currentObject', '当前对象'), "\",\n name: \"${objectName}\"\n });\n return payload;\n ")
|
|
260
260
|
},
|
|
261
261
|
"labelField": "label",
|
|
262
262
|
"valueField": "name",
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
{
|
|
266
266
|
type: "input-text",
|
|
267
267
|
name: "recordId",
|
|
268
|
-
label: t$
|
|
268
|
+
label: t$f('widgets-meta:steedos-object-form_field_recordId', '记录ID'),
|
|
269
269
|
mode: 'horizontal',
|
|
270
270
|
horizontal: {
|
|
271
271
|
left: 4,
|
|
@@ -282,15 +282,15 @@
|
|
|
282
282
|
justify: true
|
|
283
283
|
},
|
|
284
284
|
name: "mode",
|
|
285
|
-
label: t$
|
|
285
|
+
label: t$f('widgets-meta:steedos-object-form_field_mode', '显示状态'),
|
|
286
286
|
value: "edit",
|
|
287
287
|
options: [
|
|
288
288
|
{
|
|
289
|
-
"label": t$
|
|
289
|
+
"label": t$f('widgets-meta:steedos-object-form_field_mode_read', '只读'),
|
|
290
290
|
"value": "read"
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
|
-
"label": t$
|
|
293
|
+
"label": t$f('widgets-meta:steedos-object-form_field_mode_edit', '编辑'),
|
|
294
294
|
"value": "edit"
|
|
295
295
|
}
|
|
296
296
|
]
|
|
@@ -304,16 +304,16 @@
|
|
|
304
304
|
right: 8,
|
|
305
305
|
justify: true
|
|
306
306
|
},
|
|
307
|
-
label: t$
|
|
307
|
+
label: t$f('widgets-meta:steedos-object-form_field_enableInitApi', '初始化接口'),
|
|
308
308
|
value: false,
|
|
309
309
|
visibleOn: "${mode === 'read'}",
|
|
310
310
|
options: [
|
|
311
311
|
{
|
|
312
|
-
"label": t$
|
|
312
|
+
"label": t$f('widgets-meta:steedos-object-form_field_enable', '启用'),
|
|
313
313
|
"value": true
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
|
-
"label": t$
|
|
316
|
+
"label": t$f('widgets-meta:steedos-object-form_field_disable', '禁用'),
|
|
317
317
|
"value": false
|
|
318
318
|
}
|
|
319
319
|
]
|
|
@@ -327,14 +327,14 @@
|
|
|
327
327
|
right: 8,
|
|
328
328
|
justify: true
|
|
329
329
|
},
|
|
330
|
-
label: t$
|
|
330
|
+
label: t$f('widgets-meta:steedos-object-form_field_layout', '表单项布局'),
|
|
331
331
|
options: [
|
|
332
332
|
{
|
|
333
|
-
"label": t$
|
|
333
|
+
"label": t$f('widgets-meta:steedos-object-form_field_layout_vertical', '纵向'),
|
|
334
334
|
"value": "normal"
|
|
335
335
|
},
|
|
336
336
|
{
|
|
337
|
-
"label": t$
|
|
337
|
+
"label": t$f('widgets-meta:steedos-object-form_field_layout_horizontal', '横向'),
|
|
338
338
|
"value": "horizontal"
|
|
339
339
|
}
|
|
340
340
|
]
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
right: 4,
|
|
349
349
|
justify: true
|
|
350
350
|
},
|
|
351
|
-
label: t$
|
|
351
|
+
label: t$f('widgets-meta:steedos-object-form_field_enableTabs', '是否启用选项卡模式')
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
"type": "select",
|
|
@@ -358,21 +358,21 @@
|
|
|
358
358
|
right: 8,
|
|
359
359
|
justify: true
|
|
360
360
|
},
|
|
361
|
-
"label": t$
|
|
361
|
+
"label": t$f('widgets-meta:steedos-object-form_field_tabsMode', '展示模式'),
|
|
362
362
|
"name": "tabsMode",
|
|
363
363
|
"multiple": false,
|
|
364
364
|
value: "",
|
|
365
365
|
"options": [
|
|
366
|
-
{ "label": t$
|
|
367
|
-
{ "label": t$
|
|
368
|
-
{ "label": t$
|
|
369
|
-
{ "label": t$
|
|
370
|
-
{ "label": t$
|
|
371
|
-
{ "label": t$
|
|
372
|
-
{ "label": t$
|
|
373
|
-
{ "label": t$
|
|
374
|
-
{ "label": t$
|
|
375
|
-
{ "label": t$
|
|
366
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_default', '默认'), "value": "" },
|
|
367
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_line', '线型'), "value": "line" },
|
|
368
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_card', '卡片'), "value": "card" },
|
|
369
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_radio', '选择器'), "value": "radio" },
|
|
370
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_vertical', '垂直'), "value": "vertical" },
|
|
371
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_chrome', '仿 Chrome'), "value": "chrome" },
|
|
372
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_simple', '简约'), "value": "simple" },
|
|
373
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_strong', '加强'), "value": "strong" },
|
|
374
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_tiled', '水平铺满'), "value": "tiled" },
|
|
375
|
+
{ "label": t$f('widgets-meta:steedos-object-form_tabsMode_sidebar', '侧边栏'), "value": "sidebar" }
|
|
376
376
|
],
|
|
377
377
|
"labelField": "label",
|
|
378
378
|
"valueField": "value",
|
|
@@ -385,12 +385,12 @@
|
|
|
385
385
|
headingClassName: 'ae-formItemControl-header',
|
|
386
386
|
bodyClassName: 'ae-formItemControl-body',
|
|
387
387
|
"key": "2",
|
|
388
|
-
"header": t$
|
|
388
|
+
"header": t$f('widgets-meta:steedos-object-form_section_fields', '字段'),
|
|
389
389
|
"body": [
|
|
390
390
|
{
|
|
391
391
|
type: "transfer-picker",
|
|
392
392
|
name: "fields",
|
|
393
|
-
label: t$
|
|
393
|
+
label: t$f('widgets-meta:steedos-object-form_field_fields', '显示的字段'),
|
|
394
394
|
"options": [],
|
|
395
395
|
"multiple": true,
|
|
396
396
|
"source": {
|
|
@@ -416,7 +416,7 @@
|
|
|
416
416
|
{
|
|
417
417
|
type: "transfer-picker",
|
|
418
418
|
name: "excludedFields",
|
|
419
|
-
label: t$
|
|
419
|
+
label: t$f('widgets-meta:steedos-object-form_field_excludedFields', '排除的字段'),
|
|
420
420
|
"options": [],
|
|
421
421
|
"multiple": true,
|
|
422
422
|
"source": {
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
{
|
|
443
443
|
type: "editor",
|
|
444
444
|
name: "fieldsExtend",
|
|
445
|
-
label: t$
|
|
445
|
+
label: t$f('widgets-meta:steedos-object-form_field_fieldsExtend', '重写字段配置'),
|
|
446
446
|
"options": {
|
|
447
447
|
"lineNumbers": "off"
|
|
448
448
|
},
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
type: "markdown",
|
|
471
|
-
value: t$
|
|
471
|
+
value: t$f('widgets-meta:steedos-object-form_tip_fieldsExtend', '重写字段配置. 例如\n```\n{\n "name": {\n "is_wide": true, //设置为宽字段\n "required": true, //设置为必填\n "amis": { // 设置渲染属性\n "type": "input-color" //将字段重写为 颜色选择器\n ...\n } \n }, \n "title": {\n "group": "分组1" // 设置分组\n ...\n }\n}\n```')
|
|
472
472
|
}
|
|
473
473
|
]
|
|
474
474
|
},
|
|
@@ -477,12 +477,12 @@
|
|
|
477
477
|
headingClassName: 'ae-formItemControl-header',
|
|
478
478
|
bodyClassName: 'ae-formItemControl-body',
|
|
479
479
|
"key": "4",
|
|
480
|
-
"header": t$
|
|
480
|
+
"header": t$f('widgets-meta:steedos-object-form_section_advanced', '高级'),
|
|
481
481
|
"body": [
|
|
482
482
|
{
|
|
483
483
|
type: "editor",
|
|
484
484
|
name: "defaultData",
|
|
485
|
-
label: t$
|
|
485
|
+
label: t$f('widgets-meta:steedos-object-form_field_defaultData', '初始化静态数据'),
|
|
486
486
|
"options": {
|
|
487
487
|
"lineNumbers": "off"
|
|
488
488
|
},
|
|
@@ -491,12 +491,12 @@
|
|
|
491
491
|
{
|
|
492
492
|
type: "editor",
|
|
493
493
|
name: "formDataFilter",
|
|
494
|
-
label: t$
|
|
494
|
+
label: t$f('widgets-meta:steedos-object-form_field_formDataFilter', 'FORM'),
|
|
495
495
|
description: ""
|
|
496
496
|
},
|
|
497
497
|
{
|
|
498
498
|
"type": "markdown",
|
|
499
|
-
"value": t$
|
|
499
|
+
"value": t$f('widgets-meta:steedos-object-form_tip_formDataFilter', '如果需要对组件原始返回的form进行加工,可以自己写一段函数脚本来实现。\n\n函数签名:(form, env, data) => form\n\n参数说明:\n\nform 组件原始返回的form schema\n\nenv amis env,可以调用env.fetcher函数实现异步请求\n\ndata 数据域中的data\n\n返回值:\n\n最后需要返回加工后的form schema\n\n示例:\n\n```\nconsole.log(\'data===>\', data);\nconst api = ...;\nreturn env.fetcher(api, {}).then((result) => {\n console.log(result);\n form.body[0].tabs[0].title=\'基础信息\';\n return form;\n});\n\n```\n'),
|
|
500
500
|
"className": "text-gray-500"
|
|
501
501
|
}
|
|
502
502
|
]
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
]
|
|
507
507
|
},
|
|
508
508
|
{
|
|
509
|
-
"title": t$
|
|
509
|
+
"title": t$f('widgets-meta:steedos-object-form_tab_appearance', '外观'),
|
|
510
510
|
className: 'p-none',
|
|
511
511
|
"body": [
|
|
512
512
|
{
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
headingClassName: 'ae-formItemControl-header',
|
|
527
527
|
bodyClassName: 'ae-formItemControl-body',
|
|
528
528
|
"key": "5",
|
|
529
|
-
"header": t$
|
|
529
|
+
"header": t$f('widgets-meta:steedos-object-form_section_css', 'CSS 类名'),
|
|
530
530
|
"body": [
|
|
531
531
|
{
|
|
532
532
|
type: "input-text",
|
|
@@ -537,7 +537,7 @@
|
|
|
537
537
|
right: 8,
|
|
538
538
|
justify: true
|
|
539
539
|
},
|
|
540
|
-
label: t$
|
|
540
|
+
label: t$f('widgets-meta:steedos-object-form_field_className', '表单'),
|
|
541
541
|
value: "mb-4"
|
|
542
542
|
}
|
|
543
543
|
]
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
]
|
|
548
548
|
},
|
|
549
549
|
{
|
|
550
|
-
"title": t$
|
|
550
|
+
"title": t$f('widgets-meta:steedos-object-form_tab_api', '接口'),
|
|
551
551
|
className: 'p-none',
|
|
552
552
|
"body": [
|
|
553
553
|
{
|
|
@@ -568,21 +568,21 @@
|
|
|
568
568
|
headingClassName: 'ae-formItemControl-header',
|
|
569
569
|
bodyClassName: 'ae-formItemControl-body',
|
|
570
570
|
"key": "3",
|
|
571
|
-
"header": t$
|
|
571
|
+
"header": t$f('widgets-meta:steedos-object-form_section_initApi', '初始化数据接口'),
|
|
572
572
|
"body": [
|
|
573
573
|
{
|
|
574
574
|
type: "editor",
|
|
575
575
|
name: "initApiRequestAdaptor",
|
|
576
|
-
label: t$
|
|
576
|
+
label: t$f('widgets-meta:steedos-object-form_field_initApiRequestAdaptor', '发送适配器'),
|
|
577
577
|
language: "javascript",
|
|
578
|
-
description: t$
|
|
578
|
+
description: t$f('widgets-meta:steedos-object-form_tip_initApiRequestAdaptor', '函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。')
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
581
|
type: "editor",
|
|
582
582
|
name: "initApiAdaptor",
|
|
583
|
-
label: t$
|
|
583
|
+
label: t$f('widgets-meta:steedos-object-form_field_initApiAdaptor', '接收适配器'),
|
|
584
584
|
language: "javascript",
|
|
585
|
-
description: t$
|
|
585
|
+
description: t$f('widgets-meta:steedos-object-form_tip_initApiAdaptor', '函数签名: (payload, response, api) => payload')
|
|
586
586
|
}
|
|
587
587
|
]
|
|
588
588
|
},
|
|
@@ -591,22 +591,22 @@
|
|
|
591
591
|
headingClassName: 'ae-formItemControl-header',
|
|
592
592
|
bodyClassName: 'ae-formItemControl-body',
|
|
593
593
|
"key": "4",
|
|
594
|
-
"header": t$
|
|
594
|
+
"header": t$f('widgets-meta:steedos-object-form_section_saveApi', '保存数据接口'),
|
|
595
595
|
"visibleOn": "${mode == 'edit'}",
|
|
596
596
|
"body": [
|
|
597
597
|
{
|
|
598
598
|
type: "editor",
|
|
599
599
|
name: "apiRequestAdaptor",
|
|
600
|
-
label: t$
|
|
600
|
+
label: t$f('widgets-meta:steedos-object-form_field_apiRequestAdaptor', '发送适配器'),
|
|
601
601
|
language: "javascript",
|
|
602
|
-
description: t$
|
|
602
|
+
description: t$f('widgets-meta:steedos-object-form_tip_apiRequestAdaptor', '函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。')
|
|
603
603
|
},
|
|
604
604
|
{
|
|
605
605
|
type: "editor",
|
|
606
606
|
name: "apiAdaptor",
|
|
607
|
-
label: t$
|
|
607
|
+
label: t$f('widgets-meta:steedos-object-form_field_apiAdaptor', '接收适配器'),
|
|
608
608
|
language: "javascript",
|
|
609
|
-
description: t$
|
|
609
|
+
description: t$f('widgets-meta:steedos-object-form_tip_apiAdaptor', '函数签名: (payload, response, api) => payload')
|
|
610
610
|
}
|
|
611
611
|
]
|
|
612
612
|
}
|
|
@@ -627,13 +627,13 @@
|
|
|
627
627
|
* @LastEditTime: 2023-10-20 13:24:39
|
|
628
628
|
* @Description:
|
|
629
629
|
*/
|
|
630
|
-
var t$
|
|
630
|
+
var t$e = window.steedosI18next.t;
|
|
631
631
|
var config$A = {
|
|
632
632
|
componentType: 'amisSchema', // amisSchema || react
|
|
633
|
-
group: t$
|
|
633
|
+
group: t$e('widgets-meta:steedos-object-listview_group', '华炎魔方'),
|
|
634
634
|
componentName: "AmisObjectListView",
|
|
635
|
-
title: t$
|
|
636
|
-
description: t$
|
|
635
|
+
title: t$e('widgets-meta:steedos-object-listview_title', '列表视图'),
|
|
636
|
+
description: t$e('widgets-meta:steedos-object-listview_description', '显示指定对象的列表视图。'),
|
|
637
637
|
docUrl: "",
|
|
638
638
|
screenshot: "",
|
|
639
639
|
npm: {
|
|
@@ -648,22 +648,22 @@
|
|
|
648
648
|
{
|
|
649
649
|
name: "objectApiName",
|
|
650
650
|
propType: "string",
|
|
651
|
-
description: t$
|
|
651
|
+
description: t$e('widgets-meta:steedos-object-listview_objectApiName', '对象名称'),
|
|
652
652
|
},
|
|
653
653
|
{
|
|
654
654
|
name: "listName",
|
|
655
655
|
propType: "string",
|
|
656
|
-
description: t$
|
|
656
|
+
description: t$e('widgets-meta:steedos-object-listview_listName', '视图名称'),
|
|
657
657
|
},
|
|
658
658
|
{
|
|
659
659
|
name: "requestAdaptor",
|
|
660
660
|
propType: "string",
|
|
661
|
-
description: t$
|
|
661
|
+
description: t$e('widgets-meta:steedos-object-listview_requestAdaptor', '发送适配器'),
|
|
662
662
|
},
|
|
663
663
|
{
|
|
664
664
|
name: "adaptor",
|
|
665
665
|
propType: "string",
|
|
666
|
-
description: t$
|
|
666
|
+
description: t$e('widgets-meta:steedos-object-listview_adaptor', '接收适配器'),
|
|
667
667
|
}
|
|
668
668
|
],
|
|
669
669
|
preview: {},
|
|
@@ -712,11 +712,11 @@
|
|
|
712
712
|
listName: "all",
|
|
713
713
|
showHeader: true,
|
|
714
714
|
},
|
|
715
|
-
panelTitle: t$
|
|
715
|
+
panelTitle: t$e('widgets-meta:steedos-object-listview_panelTitle', '设置'),
|
|
716
716
|
panelControls: [
|
|
717
717
|
{
|
|
718
718
|
"type": "select",
|
|
719
|
-
"label": t$
|
|
719
|
+
"label": t$e('widgets-meta:steedos-object-listview_object', '对象'),
|
|
720
720
|
"name": "objectApiName",
|
|
721
721
|
"searchable": true,
|
|
722
722
|
"multiple": false,
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
"method": "get",
|
|
725
725
|
"url": "/service/api/amis-design/objects",
|
|
726
726
|
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
727
|
-
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$
|
|
727
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$e('widgets-meta:steedos-object-listview_current_object', '当前对象'), "\",\n name: \"${objectName}\"\n });\n return payload;\n ")
|
|
728
728
|
},
|
|
729
729
|
"labelField": "label",
|
|
730
730
|
"valueField": "name",
|
|
@@ -734,7 +734,7 @@
|
|
|
734
734
|
type: "select",
|
|
735
735
|
name: "listName",
|
|
736
736
|
multiple: false,
|
|
737
|
-
label: t$
|
|
737
|
+
label: t$e('widgets-meta:steedos-object-listview_view', '视图'),
|
|
738
738
|
"source": {
|
|
739
739
|
"url": "/service/api/amis-design/object/${objectApiName || 'space_users'}",
|
|
740
740
|
"method": "get",
|
|
@@ -752,25 +752,25 @@
|
|
|
752
752
|
{
|
|
753
753
|
"type": "number",
|
|
754
754
|
"name": "perPage",
|
|
755
|
-
"label": t$
|
|
755
|
+
"label": t$e('widgets-meta:steedos-object-listview_perPage', '每页显示记录数量'),
|
|
756
756
|
},
|
|
757
757
|
{
|
|
758
758
|
"type": "checkbox",
|
|
759
759
|
"name": "showHeader",
|
|
760
|
-
"label": t$
|
|
760
|
+
"label": t$e('widgets-meta:steedos-object-listview_showHeader', '显示表头'),
|
|
761
761
|
},
|
|
762
762
|
{
|
|
763
763
|
type: "button-group-select",
|
|
764
764
|
name: "crudMode",
|
|
765
|
-
label: t$
|
|
765
|
+
label: t$e('widgets-meta:steedos-object-listview_crudMode', '显示模式'),
|
|
766
766
|
value: "table",
|
|
767
767
|
options: [
|
|
768
768
|
{
|
|
769
|
-
"label": t$
|
|
769
|
+
"label": t$e('widgets-meta:steedos-object-listview_table', '表格'),
|
|
770
770
|
"value": "table"
|
|
771
771
|
},
|
|
772
772
|
{
|
|
773
|
-
"label": t$
|
|
773
|
+
"label": t$e('widgets-meta:steedos-object-listview_cards', '卡片'),
|
|
774
774
|
"value": "cards"
|
|
775
775
|
}
|
|
776
776
|
]
|
|
@@ -778,28 +778,28 @@
|
|
|
778
778
|
{
|
|
779
779
|
type: "text",
|
|
780
780
|
name: "className",
|
|
781
|
-
label: t$
|
|
781
|
+
label: t$e('widgets-meta:steedos-object-listview_className', 'CSS类名')
|
|
782
782
|
},
|
|
783
783
|
{
|
|
784
784
|
"type": "collapse",
|
|
785
785
|
headingClassName: 'pl-0',
|
|
786
786
|
bodyClassName: '',
|
|
787
787
|
"collapsed": true,
|
|
788
|
-
"header": t$
|
|
788
|
+
"header": t$e('widgets-meta:steedos-object-listview_data_api', '数据接口'),
|
|
789
789
|
"body": [
|
|
790
790
|
{
|
|
791
791
|
type: "editor",
|
|
792
792
|
name: "requestAdaptor",
|
|
793
|
-
label: t$
|
|
793
|
+
label: t$e('widgets-meta:steedos-object-listview_requestAdaptor', '发送适配器'),
|
|
794
794
|
language: "javascript",
|
|
795
|
-
description: t$
|
|
795
|
+
description: t$e('widgets-meta:steedos-object-listview_requestAdaptor_desc', '函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。')
|
|
796
796
|
},
|
|
797
797
|
{
|
|
798
798
|
type: "editor",
|
|
799
799
|
name: "adaptor",
|
|
800
|
-
label: t$
|
|
800
|
+
label: t$e('widgets-meta:steedos-object-listview_adaptor', '接收适配器'),
|
|
801
801
|
language: "javascript",
|
|
802
|
-
description: t$
|
|
802
|
+
description: t$e('widgets-meta:steedos-object-listview_adaptor_desc', '函数签名: (payload, response, api) => payload')
|
|
803
803
|
}
|
|
804
804
|
]
|
|
805
805
|
},
|
|
@@ -808,17 +808,17 @@
|
|
|
808
808
|
headingClassName: 'pl-0',
|
|
809
809
|
bodyClassName: '',
|
|
810
810
|
"collapsed": true,
|
|
811
|
-
"header": t$
|
|
811
|
+
"header": t$e('widgets-meta:steedos-object-listview_advanced', '高级'),
|
|
812
812
|
"body": [
|
|
813
813
|
{
|
|
814
814
|
type: "editor",
|
|
815
815
|
name: "crudDataFilter",
|
|
816
|
-
label: t$
|
|
816
|
+
label: t$e('widgets-meta:steedos-object-listview_crud', 'CRUD'),
|
|
817
817
|
description: ""
|
|
818
818
|
},
|
|
819
819
|
{
|
|
820
820
|
"type": "markdown",
|
|
821
|
-
"value": t$
|
|
821
|
+
"value": t$e('widgets-meta:steedos-object-listview_crud_doc', '如果需要对组件原始返回的crud进行加工,可以自己写一段函数脚本来实现。\n\n函数签名:(crud, env, data) => crud\n\n参数说明:\n\ncrud 组件原始返回的crud schema\n\nenv amis env,可以调用env.fetcher函数实现异步请求\n\ndata 数据域中的data\n\n返回值:\n\n最后需要返回加工后的crud schema\n\n示例:\n\n```\nconsole.log(\'data===>\', data);\nconst api = ...;\nreturn env.fetcher(api, {}).then((result) => {\n console.log(result);\n crud.columns.push({\'label\': \'xxx\', name: \'xxx\'});\n return crud;\n});\n\n```'),
|
|
822
822
|
"className": "text-gray-500"
|
|
823
823
|
}
|
|
824
824
|
]
|
|
@@ -834,12 +834,12 @@
|
|
|
834
834
|
* @LastEditTime: 2022-12-01 16:08:49
|
|
835
835
|
* @Description:
|
|
836
836
|
*/
|
|
837
|
-
var t$
|
|
837
|
+
var t$d = window.steedosI18next.t;
|
|
838
838
|
var config$z = {
|
|
839
839
|
componentType: 'amisSchema', // amisSchema || react
|
|
840
|
-
group: t$
|
|
840
|
+
group: t$d('widgets-meta:steedos-object-calendar_group', '华炎魔方'),
|
|
841
841
|
componentName: "AmisObjectCalendar",
|
|
842
|
-
title: t$
|
|
842
|
+
title: t$d('widgets-meta:steedos-object-calendar_title', '对象日历'),
|
|
843
843
|
docUrl: "",
|
|
844
844
|
screenshot: "",
|
|
845
845
|
npm: {
|
|
@@ -854,32 +854,32 @@
|
|
|
854
854
|
{
|
|
855
855
|
name: "objectApiName",
|
|
856
856
|
propType: "string",
|
|
857
|
-
description: t$
|
|
857
|
+
description: t$d('widgets-meta:steedos-object-calendar_props_objectApiName', '对象名称'),
|
|
858
858
|
},
|
|
859
859
|
{
|
|
860
860
|
name: "startDateExpr",
|
|
861
861
|
propType: "string",
|
|
862
|
-
description: t$
|
|
862
|
+
description: t$d('widgets-meta:steedos-object-calendar_props_startDateExpr', '开始时间字段'),
|
|
863
863
|
},
|
|
864
864
|
{
|
|
865
865
|
name: "endDateExpr",
|
|
866
866
|
propType: "string",
|
|
867
|
-
description: t$
|
|
867
|
+
description: t$d('widgets-meta:steedos-object-calendar_props_endDateExpr', '结束时间字段'),
|
|
868
868
|
},
|
|
869
869
|
{
|
|
870
870
|
name: "allDayExpr",
|
|
871
871
|
propType: "string",
|
|
872
|
-
description: t$
|
|
872
|
+
description: t$d('widgets-meta:steedos-object-calendar_props_allDayExpr', '全天字段'),
|
|
873
873
|
},
|
|
874
874
|
{
|
|
875
875
|
name: "textExpr",
|
|
876
876
|
propType: "string",
|
|
877
|
-
description: t$
|
|
877
|
+
description: t$d('widgets-meta:steedos-object-calendar_props_textExpr', '标题字段'),
|
|
878
878
|
},
|
|
879
879
|
{
|
|
880
880
|
name: "currentView",
|
|
881
881
|
propType: "string",
|
|
882
|
-
description: t$
|
|
882
|
+
description: t$d('widgets-meta:steedos-object-calendar_props_currentView', '默认视图'),
|
|
883
883
|
}
|
|
884
884
|
],
|
|
885
885
|
preview: {},
|
|
@@ -925,11 +925,11 @@
|
|
|
925
925
|
objectApiName: 'events',
|
|
926
926
|
currentView: "timeGridWeek"
|
|
927
927
|
},
|
|
928
|
-
panelTitle: t$
|
|
928
|
+
panelTitle: t$d('widgets-meta:steedos-object-calendar_panelTitle', '设置'),
|
|
929
929
|
panelControls: [
|
|
930
930
|
{
|
|
931
931
|
"type": "select",
|
|
932
|
-
"label": t$
|
|
932
|
+
"label": t$d('widgets-meta:steedos-object-calendar_panelControls_objectApiName', '对象'),
|
|
933
933
|
"name": "objectApiName",
|
|
934
934
|
"searchable": true,
|
|
935
935
|
"multiple": false,
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
"method": "get",
|
|
938
938
|
"url": "/service/api/amis-design/objects",
|
|
939
939
|
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
940
|
-
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$
|
|
940
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$d('widgets-meta:steedos-object-calendar_panelControls_currentObject', '当前对象'), "\",\n name: \"${objectName}\"\n });\n return payload;\n ")
|
|
941
941
|
},
|
|
942
942
|
"labelField": "label",
|
|
943
943
|
"valueField": "name",
|
|
@@ -946,33 +946,33 @@
|
|
|
946
946
|
{
|
|
947
947
|
"type": "input-text",
|
|
948
948
|
"name": "startDateExpr",
|
|
949
|
-
"label": t$
|
|
949
|
+
"label": t$d('widgets-meta:steedos-object-calendar_panelControls_startDateExpr', '开始时间字段')
|
|
950
950
|
},
|
|
951
951
|
{
|
|
952
952
|
"type": "input-text",
|
|
953
953
|
"name": "endDateExpr",
|
|
954
|
-
"label": t$
|
|
954
|
+
"label": t$d('widgets-meta:steedos-object-calendar_panelControls_endDateExpr', '结束时间字段')
|
|
955
955
|
},
|
|
956
956
|
{
|
|
957
957
|
"type": "input-text",
|
|
958
958
|
"name": "allDayExpr",
|
|
959
|
-
"label": t$
|
|
959
|
+
"label": t$d('widgets-meta:steedos-object-calendar_panelControls_allDayExpr', '全天字段')
|
|
960
960
|
},
|
|
961
961
|
{
|
|
962
962
|
"type": "input-text",
|
|
963
963
|
"name": "textExpr",
|
|
964
|
-
"label": t$
|
|
964
|
+
"label": t$d('widgets-meta:steedos-object-calendar_panelControls_textExpr', '标题字段')
|
|
965
965
|
},
|
|
966
966
|
{
|
|
967
967
|
"type": "select",
|
|
968
968
|
"name": "currentView",
|
|
969
|
-
"label": t$
|
|
969
|
+
"label": t$d('widgets-meta:steedos-object-calendar_panelControls_currentView', '默认视图'),
|
|
970
970
|
"value": "timeGridWeek",
|
|
971
971
|
"options": [
|
|
972
|
-
{ "label": t$
|
|
973
|
-
{ "label": t$
|
|
974
|
-
{ "label": t$
|
|
975
|
-
{ "label": t$
|
|
972
|
+
{ "label": t$d('widgets-meta:steedos-object-calendar_options_month', '月'), "value": "dayGridMonth" },
|
|
973
|
+
{ "label": t$d('widgets-meta:steedos-object-calendar_options_week', '周'), "value": "timeGridWeek" },
|
|
974
|
+
{ "label": t$d('widgets-meta:steedos-object-calendar_options_day', '日'), "value": "timeGridDay" },
|
|
975
|
+
{ "label": t$d('widgets-meta:steedos-object-calendar_options_list', '列表'), "value": "listWeek" }
|
|
976
976
|
]
|
|
977
977
|
}
|
|
978
978
|
]
|
|
@@ -986,12 +986,12 @@
|
|
|
986
986
|
* @LastEditTime: 2023-11-27 15:19:03
|
|
987
987
|
* @Description:
|
|
988
988
|
*/
|
|
989
|
-
var t$
|
|
989
|
+
var t$c = window.steedosI18next.t;
|
|
990
990
|
var config$y = {
|
|
991
991
|
componentType: 'amisSchema', // amisSchema || react
|
|
992
|
-
group: t$
|
|
992
|
+
group: t$c('widgets-meta:steedos-object-table_group', '华炎魔方'),
|
|
993
993
|
componentName: "AmisObjectTable",
|
|
994
|
-
title: t$
|
|
994
|
+
title: t$c('widgets-meta:steedos-object-table_title', '对象表格'),
|
|
995
995
|
docUrl: "",
|
|
996
996
|
screenshot: "",
|
|
997
997
|
npm: {
|
|
@@ -1006,42 +1006,42 @@
|
|
|
1006
1006
|
{
|
|
1007
1007
|
name: "objectApiName",
|
|
1008
1008
|
propType: "string",
|
|
1009
|
-
description: t$
|
|
1009
|
+
description: t$c('widgets-meta:steedos-object-table_props_objectApiName', '对象名称'),
|
|
1010
1010
|
},
|
|
1011
1011
|
{
|
|
1012
1012
|
name: "columns",
|
|
1013
1013
|
propType: "array",
|
|
1014
|
-
description: t$
|
|
1014
|
+
description: t$c('widgets-meta:steedos-object-table_props_columns', '显示列'),
|
|
1015
1015
|
},
|
|
1016
1016
|
{
|
|
1017
1017
|
name: "amisCondition",
|
|
1018
1018
|
propType: "object",
|
|
1019
|
-
description: t$
|
|
1019
|
+
description: t$c('widgets-meta:steedos-object-table_props_amisCondition', '过滤条件'),
|
|
1020
1020
|
},
|
|
1021
1021
|
{
|
|
1022
1022
|
name: "sortField",
|
|
1023
1023
|
propType: "string",
|
|
1024
|
-
description: t$
|
|
1024
|
+
description: t$c('widgets-meta:steedos-object-table_props_sortField', '排序字段'),
|
|
1025
1025
|
},
|
|
1026
1026
|
{
|
|
1027
1027
|
name: "sortOrder",
|
|
1028
1028
|
propType: "string",
|
|
1029
|
-
description: t$
|
|
1029
|
+
description: t$c('widgets-meta:steedos-object-table_props_sortOrder', '排序顺序'),
|
|
1030
1030
|
},
|
|
1031
1031
|
{
|
|
1032
1032
|
name: "top",
|
|
1033
1033
|
propType: "number",
|
|
1034
|
-
description: t$
|
|
1034
|
+
description: t$c('widgets-meta:steedos-object-table_props_top', '显示的记录数量'),
|
|
1035
1035
|
},
|
|
1036
1036
|
{
|
|
1037
1037
|
name: "requestAdaptor",
|
|
1038
1038
|
propType: "string",
|
|
1039
|
-
description: t$
|
|
1039
|
+
description: t$c('widgets-meta:steedos-object-table_props_requestAdaptor', '发送适配器'),
|
|
1040
1040
|
},
|
|
1041
1041
|
{
|
|
1042
1042
|
name: "adaptor",
|
|
1043
1043
|
propType: "string",
|
|
1044
|
-
description: t$
|
|
1044
|
+
description: t$c('widgets-meta:steedos-object-table_props_adaptor', '接收适配器'),
|
|
1045
1045
|
}
|
|
1046
1046
|
],
|
|
1047
1047
|
preview: {},
|
|
@@ -1089,7 +1089,7 @@
|
|
|
1089
1089
|
objectApiName: 'space_users',
|
|
1090
1090
|
fields: ["name"]
|
|
1091
1091
|
},
|
|
1092
|
-
panelTitle: t$
|
|
1092
|
+
panelTitle: t$c('widgets-meta:steedos-object-table_panelTitle', '设置'),
|
|
1093
1093
|
panelControls: [
|
|
1094
1094
|
{
|
|
1095
1095
|
"type": "tabs",
|
|
@@ -1099,7 +1099,7 @@
|
|
|
1099
1099
|
contentClassName: 'no-border editor-prop-config-tabs-cont',
|
|
1100
1100
|
tabs: [
|
|
1101
1101
|
{
|
|
1102
|
-
"title": t$
|
|
1102
|
+
"title": t$c('widgets-meta:steedos-object-table_tabs_props', '属性'),
|
|
1103
1103
|
className: 'p-none',
|
|
1104
1104
|
"body": [
|
|
1105
1105
|
{
|
|
@@ -1119,11 +1119,11 @@
|
|
|
1119
1119
|
headingClassName: 'ae-formItemControl-header',
|
|
1120
1120
|
bodyClassName: 'ae-formItemControl-body',
|
|
1121
1121
|
"key": "1",
|
|
1122
|
-
"header": t$
|
|
1122
|
+
"header": t$c('widgets-meta:steedos-object-table_collapse_basic', '基本'),
|
|
1123
1123
|
"body": [
|
|
1124
1124
|
{
|
|
1125
1125
|
"type": "select",
|
|
1126
|
-
"label": t$
|
|
1126
|
+
"label": t$c('widgets-meta:steedos-object-table_object', '对象'),
|
|
1127
1127
|
"name": "objectApiName",
|
|
1128
1128
|
"searchable": true,
|
|
1129
1129
|
"multiple": false,
|
|
@@ -1131,7 +1131,7 @@
|
|
|
1131
1131
|
"method": "get",
|
|
1132
1132
|
"url": "/service/api/amis-design/objects",
|
|
1133
1133
|
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
1134
|
-
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$
|
|
1134
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$c('widgets-meta:steedos-object-table_currentObject', '当前对象'), "\",\n name: \"${objectName}\",\n NAME_FIELD_KEY: \"name\"\n });\n return payload;\n ")
|
|
1135
1135
|
},
|
|
1136
1136
|
"labelField": "label",
|
|
1137
1137
|
"valueField": "name",
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
{
|
|
1154
1154
|
type: "transfer-picker",
|
|
1155
1155
|
name: "fields",
|
|
1156
|
-
label: t$
|
|
1156
|
+
label: t$c('widgets-meta:steedos-object-table_fields', '显示的字段'),
|
|
1157
1157
|
id: "transfer-picker-fields",
|
|
1158
1158
|
"options": [],
|
|
1159
1159
|
"multiple": true,
|
|
@@ -1180,7 +1180,7 @@
|
|
|
1180
1180
|
{
|
|
1181
1181
|
type: "editor",
|
|
1182
1182
|
name: "fieldsExtend",
|
|
1183
|
-
label: t$
|
|
1183
|
+
label: t$c('widgets-meta:steedos-object-table_fieldsExtend', '重写字段配置'),
|
|
1184
1184
|
"options": {
|
|
1185
1185
|
"lineNumbers": "off"
|
|
1186
1186
|
},
|
|
@@ -1189,15 +1189,15 @@
|
|
|
1189
1189
|
{
|
|
1190
1190
|
type: "button-group-select",
|
|
1191
1191
|
name: "crudMode",
|
|
1192
|
-
label: t$
|
|
1192
|
+
label: t$c('widgets-meta:steedos-object-table_crudMode', '显示模式'),
|
|
1193
1193
|
value: "table",
|
|
1194
1194
|
options: [
|
|
1195
1195
|
{
|
|
1196
|
-
"label": t$
|
|
1196
|
+
"label": t$c('widgets-meta:steedos-object-table_crudMode_table', '表格'),
|
|
1197
1197
|
"value": "table"
|
|
1198
1198
|
},
|
|
1199
1199
|
{
|
|
1200
|
-
"label": t$
|
|
1200
|
+
"label": t$c('widgets-meta:steedos-object-table_crudMode_cards', '卡片'),
|
|
1201
1201
|
"value": "cards"
|
|
1202
1202
|
}
|
|
1203
1203
|
]
|
|
@@ -1209,21 +1209,21 @@
|
|
|
1209
1209
|
headingClassName: 'ae-formItemControl-header',
|
|
1210
1210
|
bodyClassName: 'ae-formItemControl-body',
|
|
1211
1211
|
"key": "2",
|
|
1212
|
-
"header": t$
|
|
1212
|
+
"header": t$c('widgets-meta:steedos-object-table_collapse_api', '数据接口'),
|
|
1213
1213
|
"body": [
|
|
1214
1214
|
{
|
|
1215
1215
|
type: "editor",
|
|
1216
1216
|
name: "requestAdaptor",
|
|
1217
|
-
label: t$
|
|
1217
|
+
label: t$c('widgets-meta:steedos-object-table_requestAdaptor', '发送适配器'),
|
|
1218
1218
|
language: "javascript",
|
|
1219
|
-
description: t$
|
|
1219
|
+
description: t$c('widgets-meta:steedos-object-table_requestAdaptor_desc', '函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。')
|
|
1220
1220
|
},
|
|
1221
1221
|
{
|
|
1222
1222
|
type: "editor",
|
|
1223
1223
|
name: "adaptor",
|
|
1224
|
-
label: t$
|
|
1224
|
+
label: t$c('widgets-meta:steedos-object-table_adaptor', '接收适配器'),
|
|
1225
1225
|
language: "javascript",
|
|
1226
|
-
description: t$
|
|
1226
|
+
description: t$c('widgets-meta:steedos-object-table_adaptor_desc', '函数签名: (payload, response, api) => payload')
|
|
1227
1227
|
}
|
|
1228
1228
|
]
|
|
1229
1229
|
},
|
|
@@ -1232,7 +1232,7 @@
|
|
|
1232
1232
|
headingClassName: 'ae-formItemControl-header',
|
|
1233
1233
|
bodyClassName: 'ae-formItemControl-body',
|
|
1234
1234
|
"key": "3",
|
|
1235
|
-
"header": t$
|
|
1235
|
+
"header": t$c('widgets-meta:steedos-object-table_collapse_advanced', '高级'),
|
|
1236
1236
|
"body": [
|
|
1237
1237
|
{
|
|
1238
1238
|
type: "editor",
|
|
@@ -1242,7 +1242,7 @@
|
|
|
1242
1242
|
},
|
|
1243
1243
|
{
|
|
1244
1244
|
"type": "markdown",
|
|
1245
|
-
"value": t$
|
|
1245
|
+
"value": t$c('widgets-meta:steedos-object-table_markdown_crud', "如果需要对组件原始返回的crud进行加工,可以自己写一段函数脚本来实现。\n\n函数签名:(crud, env, data) => crud\n\n参数说明:\n\ncrud 组件原始返回的crud schema\n\nenv amis env,可以调用env.fetcher函数实现异步请求\n\ndata 数据域中的data\n\n返回值:\n\n最后需要返回加工后的crud schema\n\n示例:\n\n```\nconsole.log('data===>', data);\nconst api = ...;\nreturn env.fetcher(api, {}).then((result) => {\n console.log(result);\n crud.columns.push({'label': 'xxx', name: 'xxx'});\n return crud;\n});\n\n```\n"),
|
|
1246
1246
|
"className": "text-gray-500"
|
|
1247
1247
|
}
|
|
1248
1248
|
]
|
|
@@ -1252,7 +1252,7 @@
|
|
|
1252
1252
|
]
|
|
1253
1253
|
},
|
|
1254
1254
|
{
|
|
1255
|
-
"title": t$
|
|
1255
|
+
"title": t$c('widgets-meta:steedos-object-table_tabs_appearance', '外观'),
|
|
1256
1256
|
className: 'p-none',
|
|
1257
1257
|
"body": [
|
|
1258
1258
|
{
|
|
@@ -1272,7 +1272,7 @@
|
|
|
1272
1272
|
headingClassName: 'ae-formItemControl-header',
|
|
1273
1273
|
bodyClassName: 'ae-formItemControl-body',
|
|
1274
1274
|
"key": "1",
|
|
1275
|
-
"header": t$
|
|
1275
|
+
"header": t$c('widgets-meta:steedos-object-table_collapse_css', 'CSS 类名'),
|
|
1276
1276
|
"body": [
|
|
1277
1277
|
{
|
|
1278
1278
|
type: "input-text",
|
|
@@ -1283,7 +1283,7 @@
|
|
|
1283
1283
|
right: 8,
|
|
1284
1284
|
justify: true
|
|
1285
1285
|
},
|
|
1286
|
-
label: t$
|
|
1286
|
+
label: t$c('widgets-meta:steedos-object-table_css_table', '表格'),
|
|
1287
1287
|
value: "my-2"
|
|
1288
1288
|
}
|
|
1289
1289
|
]
|
|
@@ -1293,13 +1293,13 @@
|
|
|
1293
1293
|
]
|
|
1294
1294
|
},
|
|
1295
1295
|
{
|
|
1296
|
-
"title": t$
|
|
1296
|
+
"title": t$c('widgets-meta:steedos-object-table_tabs_filter', '过滤'),
|
|
1297
1297
|
className: '',
|
|
1298
1298
|
"body": [
|
|
1299
1299
|
{
|
|
1300
1300
|
"type": "condition-builder",
|
|
1301
1301
|
"name": "amisCondition",
|
|
1302
|
-
"label": t$
|
|
1302
|
+
"label": t$c('widgets-meta:steedos-object-table_filter_condition', '过滤条件'),
|
|
1303
1303
|
"source": {
|
|
1304
1304
|
"method": "get",
|
|
1305
1305
|
"url": "/service/api/amis-metadata-listviews/getFilterFields?objectName=${objectApiName === '${objectName}' ? 'space_users' : objectApiName}",
|
|
@@ -1310,12 +1310,12 @@
|
|
|
1310
1310
|
]
|
|
1311
1311
|
},
|
|
1312
1312
|
{
|
|
1313
|
-
"title": t$
|
|
1313
|
+
"title": t$c('widgets-meta:steedos-object-table_tabs_other', '其他'),
|
|
1314
1314
|
className: '',
|
|
1315
1315
|
"body": [
|
|
1316
1316
|
{
|
|
1317
1317
|
"type": "select",
|
|
1318
|
-
"label": t$
|
|
1318
|
+
"label": t$c('widgets-meta:steedos-object-table_sortField', '排序字段'),
|
|
1319
1319
|
"name": "sortField",
|
|
1320
1320
|
"searchable": true,
|
|
1321
1321
|
"multiple": false,
|
|
@@ -1335,20 +1335,20 @@
|
|
|
1335
1335
|
{
|
|
1336
1336
|
"type": "select",
|
|
1337
1337
|
"name": "sortOrder",
|
|
1338
|
-
"label": t$
|
|
1338
|
+
"label": t$c('widgets-meta:steedos-object-table_sortOrder', '排序顺序'),
|
|
1339
1339
|
"options": [{
|
|
1340
|
-
"label": t$
|
|
1340
|
+
"label": t$c('widgets-meta:steedos-object-table_sortOrder_asc', '升序'),
|
|
1341
1341
|
"value": "asc"
|
|
1342
1342
|
}, {
|
|
1343
|
-
"label": t$
|
|
1343
|
+
"label": t$c('widgets-meta:steedos-object-table_sortOrder_desc', '倒序'),
|
|
1344
1344
|
"value": "desc"
|
|
1345
1345
|
}]
|
|
1346
1346
|
},
|
|
1347
1347
|
{
|
|
1348
1348
|
"type": "input-number",
|
|
1349
1349
|
"name": "top",
|
|
1350
|
-
"label": t$
|
|
1351
|
-
"labelRemark": t$
|
|
1350
|
+
"label": t$c('widgets-meta:steedos-object-table_top', '显示的记录数量'),
|
|
1351
|
+
"labelRemark": t$c('widgets-meta:steedos-object-table_top_remark', '即TOP,配置该属性后不再支持翻页,始终显示该属性值配置的记录数')
|
|
1352
1352
|
}
|
|
1353
1353
|
]
|
|
1354
1354
|
}
|
|
@@ -1358,13 +1358,13 @@
|
|
|
1358
1358
|
}
|
|
1359
1359
|
} });
|
|
1360
1360
|
|
|
1361
|
-
var t$
|
|
1361
|
+
var t$b = window.steedosI18next.t;
|
|
1362
1362
|
var config$x = {
|
|
1363
1363
|
componentType: 'amisSchema', // amisSchema || react
|
|
1364
|
-
group: t$
|
|
1364
|
+
group: t$b('widgets-meta:steedos-record-detail-header_group', '华炎魔方'),
|
|
1365
1365
|
componentName: "AmisRecordDetailHeader",
|
|
1366
|
-
title: t$
|
|
1367
|
-
description: t$
|
|
1366
|
+
title: t$b('widgets-meta:steedos-record-detail-header_title', '标题面板'),
|
|
1367
|
+
description: t$b('widgets-meta:steedos-record-detail-header_description', '显示在记录详情页的标题面板,包括记录按钮。'),
|
|
1368
1368
|
docUrl: "",
|
|
1369
1369
|
screenshot: "",
|
|
1370
1370
|
npm: {
|
|
@@ -1379,12 +1379,12 @@
|
|
|
1379
1379
|
{
|
|
1380
1380
|
name: "objectApiName",
|
|
1381
1381
|
propType: "string",
|
|
1382
|
-
description: t$
|
|
1382
|
+
description: t$b('widgets-meta:steedos-record-detail-header_props_objectApiName_description', '对象名称')
|
|
1383
1383
|
},
|
|
1384
1384
|
{
|
|
1385
1385
|
name: "recordId",
|
|
1386
1386
|
propType: "string",
|
|
1387
|
-
description: t$
|
|
1387
|
+
description: t$b('widgets-meta:steedos-record-detail-header_props_recordId_description', '记录Id')
|
|
1388
1388
|
}
|
|
1389
1389
|
],
|
|
1390
1390
|
preview: {},
|
|
@@ -1430,11 +1430,11 @@
|
|
|
1430
1430
|
type: config$x.amis.name,
|
|
1431
1431
|
objectApiName: 'space_users'
|
|
1432
1432
|
},
|
|
1433
|
-
panelTitle: t$
|
|
1433
|
+
panelTitle: t$b('widgets-meta:steedos-record-detail-header_panelTitle', '设置'),
|
|
1434
1434
|
panelControls: [
|
|
1435
1435
|
{
|
|
1436
1436
|
"type": "select",
|
|
1437
|
-
"label": t$
|
|
1437
|
+
"label": t$b('widgets-meta:steedos-record-detail-header_panelControls_object_label', '对象'),
|
|
1438
1438
|
"name": "objectApiName",
|
|
1439
1439
|
"searchable": true,
|
|
1440
1440
|
"multiple": false,
|
|
@@ -1442,7 +1442,7 @@
|
|
|
1442
1442
|
"method": "get",
|
|
1443
1443
|
"url": "/service/api/amis-design/objects",
|
|
1444
1444
|
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
1445
|
-
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: ".concat(t$
|
|
1445
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: ".concat(t$b('widgets-meta:steedos-record-detail-header_panelControls_object_source_adaptor_current_object', '当前对象'), ",\n name: \"${objectName}\"\n });\n return payload;\n ")
|
|
1446
1446
|
},
|
|
1447
1447
|
"labelField": "label",
|
|
1448
1448
|
"valueField": "name",
|
|
@@ -1451,12 +1451,12 @@
|
|
|
1451
1451
|
{
|
|
1452
1452
|
type: "text",
|
|
1453
1453
|
name: "recordId",
|
|
1454
|
-
label: t$
|
|
1454
|
+
label: t$b('widgets-meta:steedos-record-detail-header_panelControls_recordId_label', '记录Id')
|
|
1455
1455
|
},
|
|
1456
1456
|
{
|
|
1457
1457
|
type: "text",
|
|
1458
1458
|
name: "className",
|
|
1459
|
-
label: t$
|
|
1459
|
+
label: t$b('widgets-meta:steedos-record-detail-header_panelControls_className_label', 'CSS类名'),
|
|
1460
1460
|
value: "bg-gray-100 border-b sm:rounded sm:border border-gray-300 p-4 mb-4"
|
|
1461
1461
|
}
|
|
1462
1462
|
]
|
|
@@ -1581,12 +1581,12 @@
|
|
|
1581
1581
|
* @LastEditTime: 2025-09-03 14:31:30
|
|
1582
1582
|
* @Description:
|
|
1583
1583
|
*/
|
|
1584
|
-
var t$
|
|
1584
|
+
var t$a = window.steedosI18next.t;
|
|
1585
1585
|
var config$v = {
|
|
1586
1586
|
componentType: 'amisSchema', // amisSchema || react
|
|
1587
|
-
group: t$
|
|
1587
|
+
group: t$a('widgets-meta:steedos-record-service_group', '华炎魔方'),
|
|
1588
1588
|
componentName: "AmisRecordService",
|
|
1589
|
-
title: t$
|
|
1589
|
+
title: t$a('widgets-meta:steedos-record-service_title', '记录服务'),
|
|
1590
1590
|
docUrl: "",
|
|
1591
1591
|
screenshot: "",
|
|
1592
1592
|
npm: {
|
|
@@ -1601,22 +1601,22 @@
|
|
|
1601
1601
|
{
|
|
1602
1602
|
name: "objectApiName",
|
|
1603
1603
|
propType: "string",
|
|
1604
|
-
description: t$
|
|
1604
|
+
description: t$a('widgets-meta:steedos-record-service_props_objectApiName', '对象'),
|
|
1605
1605
|
},
|
|
1606
1606
|
{
|
|
1607
1607
|
name: "recordId",
|
|
1608
1608
|
propType: "string",
|
|
1609
|
-
description: t$
|
|
1609
|
+
description: t$a('widgets-meta:steedos-record-service_props_recordId', '记录ID'),
|
|
1610
1610
|
},
|
|
1611
1611
|
{
|
|
1612
1612
|
name: "initApiRequestAdaptor",
|
|
1613
1613
|
propType: "string",
|
|
1614
|
-
description: t$
|
|
1614
|
+
description: t$a('widgets-meta:steedos-record-service_props_initApiRequestAdaptor', '初始化接口发送适配器'),
|
|
1615
1615
|
},
|
|
1616
1616
|
{
|
|
1617
1617
|
name: "initApiAdaptor",
|
|
1618
1618
|
propType: "string",
|
|
1619
|
-
description: t$
|
|
1619
|
+
description: t$a('widgets-meta:steedos-record-service_props_initApiAdaptor', '初始化接口接收适配器'),
|
|
1620
1620
|
},
|
|
1621
1621
|
],
|
|
1622
1622
|
preview: {},
|
|
@@ -1662,14 +1662,14 @@
|
|
|
1662
1662
|
regions: [
|
|
1663
1663
|
{
|
|
1664
1664
|
key: 'body',
|
|
1665
|
-
label: t$
|
|
1665
|
+
label: t$a('widgets-meta:steedos-record-service_regions_body', '内容区')
|
|
1666
1666
|
}
|
|
1667
1667
|
],
|
|
1668
1668
|
previewSchema: {
|
|
1669
1669
|
type: config$v.amis.name,
|
|
1670
1670
|
objectApiName: 'space_users'
|
|
1671
1671
|
},
|
|
1672
|
-
panelTitle: t$
|
|
1672
|
+
panelTitle: t$a('widgets-meta:steedos-record-service_panelTitle', '设置'),
|
|
1673
1673
|
panelControls: [
|
|
1674
1674
|
{
|
|
1675
1675
|
"type": "select",
|
|
@@ -1679,7 +1679,7 @@
|
|
|
1679
1679
|
right: 8,
|
|
1680
1680
|
justify: true
|
|
1681
1681
|
},
|
|
1682
|
-
"label": t$
|
|
1682
|
+
"label": t$a('widgets-meta:steedos-record-service_props_objectApiName', '对象'),
|
|
1683
1683
|
"name": "objectApiName",
|
|
1684
1684
|
"searchable": true,
|
|
1685
1685
|
"multiple": false,
|
|
@@ -1687,7 +1687,7 @@
|
|
|
1687
1687
|
"method": "get",
|
|
1688
1688
|
"url": "/service/api/amis-design/objects",
|
|
1689
1689
|
"requestAdaptor": "\n api.url = Builder.settings.rootUrl + api.url; \n if(!api.headers){\n api.headers = {}\n };\n api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;\n return api;\n ",
|
|
1690
|
-
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$
|
|
1690
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$a('widgets-meta:steedos-record-service_props_objectApiName_currentObject', '当前对象'), "\",\n name: \"${objectName}\"\n });\n return payload;\n ")
|
|
1691
1691
|
},
|
|
1692
1692
|
"labelField": "label",
|
|
1693
1693
|
"valueField": "name",
|
|
@@ -1696,7 +1696,7 @@
|
|
|
1696
1696
|
{
|
|
1697
1697
|
type: "input-text",
|
|
1698
1698
|
name: "recordId",
|
|
1699
|
-
label: t$
|
|
1699
|
+
label: t$a('widgets-meta:steedos-record-service_props_recordId', '记录ID'),
|
|
1700
1700
|
mode: 'horizontal',
|
|
1701
1701
|
horizontal: {
|
|
1702
1702
|
left: 4,
|
|
@@ -1707,16 +1707,16 @@
|
|
|
1707
1707
|
{
|
|
1708
1708
|
type: "editor",
|
|
1709
1709
|
name: "initApiRequestAdaptor",
|
|
1710
|
-
label: t$
|
|
1710
|
+
label: t$a('widgets-meta:steedos-record-service_props_initApiRequestAdaptor', '发送适配器'),
|
|
1711
1711
|
language: "javascript",
|
|
1712
|
-
description: t$
|
|
1712
|
+
description: t$a('widgets-meta:steedos-record-service_props_tip_initApiRequestAdaptor', '函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。')
|
|
1713
1713
|
},
|
|
1714
1714
|
{
|
|
1715
1715
|
type: "editor",
|
|
1716
1716
|
name: "initApiAdaptor",
|
|
1717
|
-
label: t$
|
|
1717
|
+
label: t$a('widgets-meta:steedos-record-service_props_initApiAdaptor', '接收适配器'),
|
|
1718
1718
|
language: "javascript",
|
|
1719
|
-
description: t$
|
|
1719
|
+
description: t$a('widgets-meta:steedos-record-service_props_tip_initApiAdaptor', '函数签名: (payload, response, api) => payload')
|
|
1720
1720
|
}
|
|
1721
1721
|
]
|
|
1722
1722
|
}
|
|
@@ -1829,13 +1829,13 @@
|
|
|
1829
1829
|
* @LastEditTime: 2025-01-07 17:41:41
|
|
1830
1830
|
* @Description:
|
|
1831
1831
|
*/
|
|
1832
|
-
var t$
|
|
1832
|
+
var t$9 = window.steedosI18next.t;
|
|
1833
1833
|
var config$t = {
|
|
1834
1834
|
componentType: 'amisSchema', // amisSchema || react
|
|
1835
|
-
group: t$
|
|
1835
|
+
group: t$9('widgets-meta:steedos-object-related-listview_group', 'Steedos'),
|
|
1836
1836
|
componentName: "AmisRecordDetailRelatedList",
|
|
1837
|
-
title: t$
|
|
1838
|
-
description: t$
|
|
1837
|
+
title: t$9('widgets-meta:steedos-object-related-listview_title', '相关表'),
|
|
1838
|
+
description: t$9('widgets-meta:steedos-object-related-listview_description', '显示指定对象的相关某一个相关表。'),
|
|
1839
1839
|
docUrl: "",
|
|
1840
1840
|
screenshot: "",
|
|
1841
1841
|
npm: {
|
|
@@ -1850,27 +1850,27 @@
|
|
|
1850
1850
|
{
|
|
1851
1851
|
name: "objectApiName",
|
|
1852
1852
|
propType: "string",
|
|
1853
|
-
description: t$
|
|
1853
|
+
description: t$9('widgets-meta:steedos-object-related-listview_props_objectApiName', '父级对象'),
|
|
1854
1854
|
},
|
|
1855
1855
|
{
|
|
1856
1856
|
name: "recordId",
|
|
1857
1857
|
propType: "string",
|
|
1858
|
-
description: t$
|
|
1858
|
+
description: t$9('widgets-meta:steedos-object-related-listview_props_recordId', '父级记录'),
|
|
1859
1859
|
},
|
|
1860
1860
|
{
|
|
1861
1861
|
name: "relatedObjectApiName",
|
|
1862
1862
|
propType: "string",
|
|
1863
|
-
description: t$
|
|
1863
|
+
description: t$9('widgets-meta:steedos-object-related-listview_props_relatedObjectApiName', '相关列表对象'),
|
|
1864
1864
|
},
|
|
1865
1865
|
{
|
|
1866
1866
|
name: "requestAdaptor",
|
|
1867
1867
|
propType: "string",
|
|
1868
|
-
description: t$
|
|
1868
|
+
description: t$9('widgets-meta:steedos-object-related-listview_props_requestAdaptor', '发送适配器'),
|
|
1869
1869
|
},
|
|
1870
1870
|
{
|
|
1871
1871
|
name: "adaptor",
|
|
1872
1872
|
propType: "string",
|
|
1873
|
-
description: t$
|
|
1873
|
+
description: t$9('widgets-meta:steedos-object-related-listview_props_adaptor', '接收适配器'),
|
|
1874
1874
|
}
|
|
1875
1875
|
],
|
|
1876
1876
|
preview: {},
|
|
@@ -1915,7 +1915,7 @@
|
|
|
1915
1915
|
type: config$t.amis.name,
|
|
1916
1916
|
objectApiName: "accounts"
|
|
1917
1917
|
},
|
|
1918
|
-
panelTitle: t$
|
|
1918
|
+
panelTitle: t$9('widgets-meta:steedos-object-related-listview_panelTitle', '设置'),
|
|
1919
1919
|
panelControls: [
|
|
1920
1920
|
{
|
|
1921
1921
|
"type": "tabs",
|
|
@@ -1925,7 +1925,7 @@
|
|
|
1925
1925
|
contentClassName: 'no-border editor-prop-config-tabs-cont',
|
|
1926
1926
|
tabs: [
|
|
1927
1927
|
{
|
|
1928
|
-
"title": t$
|
|
1928
|
+
"title": t$9('widgets-meta:steedos-object-related-listview_tabs_props', '属性'),
|
|
1929
1929
|
className: 'p-none',
|
|
1930
1930
|
"body": [
|
|
1931
1931
|
{
|
|
@@ -1943,11 +1943,11 @@
|
|
|
1943
1943
|
headingClassName: 'ae-formItemControl-header',
|
|
1944
1944
|
bodyClassName: 'ae-formItemControl-body',
|
|
1945
1945
|
"key": "1",
|
|
1946
|
-
"header": t$
|
|
1946
|
+
"header": t$9('widgets-meta:steedos-object-related-listview_collapse_basic', '基本属性'),
|
|
1947
1947
|
body: [
|
|
1948
1948
|
{
|
|
1949
1949
|
"type": "select",
|
|
1950
|
-
"label": t$
|
|
1950
|
+
"label": t$9('widgets-meta:steedos-object-related-listview_objectApiName', '父级对象'),
|
|
1951
1951
|
"name": "objectApiName",
|
|
1952
1952
|
"searchable": true,
|
|
1953
1953
|
"multiple": false,
|
|
@@ -1955,7 +1955,7 @@
|
|
|
1955
1955
|
"method": "get",
|
|
1956
1956
|
"url": "/service/api/amis-design/objects",
|
|
1957
1957
|
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
1958
|
-
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$
|
|
1958
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$9('widgets-meta:steedos-object-related-listview_currentObject', '当前对象'), "\",\n name: \"${objectName}\"\n });\n return payload;\n ")
|
|
1959
1959
|
},
|
|
1960
1960
|
"labelField": "label",
|
|
1961
1961
|
"valueField": "name",
|
|
@@ -1964,11 +1964,11 @@
|
|
|
1964
1964
|
{
|
|
1965
1965
|
type: "input-text",
|
|
1966
1966
|
name: "recordId",
|
|
1967
|
-
label: t$
|
|
1967
|
+
label: t$9('widgets-meta:steedos-object-related-listview_recordId', '父级记录')
|
|
1968
1968
|
},
|
|
1969
1969
|
{
|
|
1970
1970
|
"type": "select",
|
|
1971
|
-
"label": t$
|
|
1971
|
+
"label": t$9('widgets-meta:steedos-object-related-listview_relatedObjectApiName', '相关列表对象'),
|
|
1972
1972
|
"name": "relatedObjectApiName",
|
|
1973
1973
|
"searchable": true,
|
|
1974
1974
|
"multiple": false,
|
|
@@ -1986,29 +1986,29 @@
|
|
|
1986
1986
|
{
|
|
1987
1987
|
"type": "checkbox",
|
|
1988
1988
|
"name": "enableHeaderToolbar",
|
|
1989
|
-
"label": t$
|
|
1989
|
+
"label": t$9('widgets-meta:steedos-object-related-listview_enableHeaderToolbar', '显示表头工具栏')
|
|
1990
1990
|
},
|
|
1991
1991
|
{
|
|
1992
1992
|
"type": "input-number",
|
|
1993
1993
|
"name": "top",
|
|
1994
|
-
"label": t$
|
|
1995
|
-
"labelRemark": t$
|
|
1994
|
+
"label": t$9('widgets-meta:steedos-object-related-listview_top', '显示的记录数量'),
|
|
1995
|
+
"labelRemark": t$9('widgets-meta:steedos-object-related-listview_top_remark', '即TOP,配置该属性后不再支持翻页,始终显示该属性值配置的记录数')
|
|
1996
1996
|
},
|
|
1997
1997
|
{
|
|
1998
1998
|
"type": "input-number",
|
|
1999
1999
|
"name": "perPage",
|
|
2000
|
-
"label": t$
|
|
2000
|
+
"label": t$9('widgets-meta:steedos-object-related-listview_perPage', '每页显示记录数量'),
|
|
2001
2001
|
},
|
|
2002
2002
|
{
|
|
2003
2003
|
"type": "textarea",
|
|
2004
2004
|
"name": "visibleOn",
|
|
2005
|
-
"label": t$
|
|
2006
|
-
"labelRemark": t$
|
|
2005
|
+
"label": t$9('widgets-meta:steedos-object-related-listview_visibleOn', '显示条件'),
|
|
2006
|
+
"labelRemark": t$9('widgets-meta:steedos-object-related-listview_visibleOn_remark', '格式:静态/表达式')
|
|
2007
2007
|
},
|
|
2008
2008
|
{
|
|
2009
2009
|
type: "input-text",
|
|
2010
2010
|
name: "className",
|
|
2011
|
-
label: t$
|
|
2011
|
+
label: t$9('widgets-meta:steedos-object-related-listview_className', 'CSS类名')
|
|
2012
2012
|
}
|
|
2013
2013
|
]
|
|
2014
2014
|
},
|
|
@@ -2017,21 +2017,21 @@
|
|
|
2017
2017
|
headingClassName: 'ae-formItemControl-header',
|
|
2018
2018
|
bodyClassName: 'ae-formItemControl-body',
|
|
2019
2019
|
"key": "2",
|
|
2020
|
-
"header": t$
|
|
2020
|
+
"header": t$9('widgets-meta:steedos-object-related-listview_collapse_api', '数据接口'),
|
|
2021
2021
|
"body": [
|
|
2022
2022
|
{
|
|
2023
2023
|
type: "editor",
|
|
2024
2024
|
name: "requestAdaptor",
|
|
2025
|
-
label: t$
|
|
2025
|
+
label: t$9('widgets-meta:steedos-object-related-listview_requestAdaptor', '发送适配器'),
|
|
2026
2026
|
language: "javascript",
|
|
2027
|
-
description: t$
|
|
2027
|
+
description: t$9('widgets-meta:steedos-object-related-listview_requestAdaptor_desc', '函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。')
|
|
2028
2028
|
},
|
|
2029
2029
|
{
|
|
2030
2030
|
type: "editor",
|
|
2031
2031
|
name: "adaptor",
|
|
2032
|
-
label: t$
|
|
2032
|
+
label: t$9('widgets-meta:steedos-object-related-listview_adaptor', '接收适配器'),
|
|
2033
2033
|
language: "javascript",
|
|
2034
|
-
description: t$
|
|
2034
|
+
description: t$9('widgets-meta:steedos-object-related-listview_adaptor_desc', '函数签名: (payload, response, api) => payload')
|
|
2035
2035
|
}
|
|
2036
2036
|
]
|
|
2037
2037
|
},
|
|
@@ -2041,17 +2041,17 @@
|
|
|
2041
2041
|
bodyClassName: 'ae-formItemControl-body',
|
|
2042
2042
|
"key": "3",
|
|
2043
2043
|
"collapsed": true,
|
|
2044
|
-
"header": t$
|
|
2044
|
+
"header": t$9('widgets-meta:steedos-object-related-listview_collapse_advanced', '高级'),
|
|
2045
2045
|
"body": [
|
|
2046
2046
|
{
|
|
2047
2047
|
type: "editor",
|
|
2048
2048
|
name: "crudDataFilter",
|
|
2049
|
-
label: t$
|
|
2049
|
+
label: t$9('widgets-meta:steedos-object-related-listview_crudDataFilter', 'CRUD'),
|
|
2050
2050
|
description: ""
|
|
2051
2051
|
},
|
|
2052
2052
|
{
|
|
2053
2053
|
"type": "markdown",
|
|
2054
|
-
"value": t$
|
|
2054
|
+
"value": t$9('widgets-meta:steedos-object-related-listview_markdown_crud', "如果需要对组件原始返回的crud进行加工,可以自己写一段函数脚本来实现。\n\n函数签名:(crud, env, data) => crud\n\n参数说明:\n\ncrud 组件原始返回的crud schema\n\nenv amis env,可以调用env.fetcher函数实现异步请求\n\ndata 数据域中的data\n\n返回值:\n\n最后需要返回加工后的crud schema\n\n示例:\n\n```\nconsole.log('data===>', data);\nconst api = ...;\nreturn env.fetcher(api, {}).then((result) => {\n console.log(result);\n crud.columns.push({'label': 'xxx', name: 'xxx'});\n return crud;\n});\n```"),
|
|
2055
2055
|
"className": "text-gray-500"
|
|
2056
2056
|
}
|
|
2057
2057
|
]
|
|
@@ -2073,13 +2073,13 @@
|
|
|
2073
2073
|
* @LastEditTime: 2022-12-01 16:08:49
|
|
2074
2074
|
* @Description:
|
|
2075
2075
|
*/
|
|
2076
|
-
var t$
|
|
2076
|
+
var t$8 = window.steedosI18next.t;
|
|
2077
2077
|
var config$s = {
|
|
2078
2078
|
componentType: 'amisSchema', // amisSchema || react
|
|
2079
|
-
group: t$
|
|
2079
|
+
group: t$8('widgets-meta:steedos-object-related-lists_group', '华炎魔方'),
|
|
2080
2080
|
componentName: "AmisRecordDetailRelatedLists",
|
|
2081
|
-
title: t$
|
|
2082
|
-
description: t$
|
|
2081
|
+
title: t$8('widgets-meta:steedos-object-related-lists_title', '所有相关表'),
|
|
2082
|
+
description: t$8('widgets-meta:steedos-object-related-lists_description', '显示指定对象的相关表,可基于页面布局配置相关表清单。'),
|
|
2083
2083
|
docUrl: "",
|
|
2084
2084
|
screenshot: "",
|
|
2085
2085
|
npm: {
|
|
@@ -2094,12 +2094,12 @@
|
|
|
2094
2094
|
{
|
|
2095
2095
|
name: "objectApiName",
|
|
2096
2096
|
propType: "string",
|
|
2097
|
-
description: t$
|
|
2097
|
+
description: t$8('widgets-meta:steedos-object-related-lists_props_objectApiName', '父级对象'),
|
|
2098
2098
|
},
|
|
2099
2099
|
{
|
|
2100
2100
|
name: "recordId",
|
|
2101
2101
|
propType: "string",
|
|
2102
|
-
description: t$
|
|
2102
|
+
description: t$8('widgets-meta:steedos-object-related-lists_props_recordId', '父级记录'),
|
|
2103
2103
|
}
|
|
2104
2104
|
],
|
|
2105
2105
|
preview: {},
|
|
@@ -2145,11 +2145,11 @@
|
|
|
2145
2145
|
type: config$s.amis.name,
|
|
2146
2146
|
objectApiName: "accounts",
|
|
2147
2147
|
},
|
|
2148
|
-
panelTitle: t$
|
|
2148
|
+
panelTitle: t$8('widgets-meta:steedos-object-related-lists_panelTitle', '设置'),
|
|
2149
2149
|
panelControls: [
|
|
2150
2150
|
{
|
|
2151
2151
|
"type": "select",
|
|
2152
|
-
"label": t$
|
|
2152
|
+
"label": t$8('widgets-meta:steedos-object-related-lists_panelControls_objectApiName', '父级对象'),
|
|
2153
2153
|
"name": "objectApiName",
|
|
2154
2154
|
"searchable": true,
|
|
2155
2155
|
"multiple": false,
|
|
@@ -2157,7 +2157,7 @@
|
|
|
2157
2157
|
"method": "get",
|
|
2158
2158
|
"url": "/service/api/amis-design/objects",
|
|
2159
2159
|
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
2160
|
-
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$
|
|
2160
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"".concat(t$8('widgets-meta:steedos-object-related-lists_currentObject', '当前对象'), "\",\n name: \"${objectName}\"\n });\n return payload;\n ")
|
|
2161
2161
|
},
|
|
2162
2162
|
"labelField": "label",
|
|
2163
2163
|
"valueField": "name",
|
|
@@ -2166,7 +2166,7 @@
|
|
|
2166
2166
|
{
|
|
2167
2167
|
type: "text",
|
|
2168
2168
|
name: "recordId",
|
|
2169
|
-
label: t$
|
|
2169
|
+
label: t$8('widgets-meta:steedos-object-related-lists_panelControls_recordId', '父级记录')
|
|
2170
2170
|
}
|
|
2171
2171
|
]
|
|
2172
2172
|
}
|
|
@@ -2766,11 +2766,11 @@
|
|
|
2766
2766
|
* @LastEditTime: 2023-03-09 19:01:32
|
|
2767
2767
|
* @Description:
|
|
2768
2768
|
*/
|
|
2769
|
-
var t$
|
|
2769
|
+
var t$7 = window.steedosI18next.t;
|
|
2770
2770
|
var config$j = {
|
|
2771
|
-
group: t$
|
|
2771
|
+
group: t$7('widgets-meta:steedos-icon_group', '华炎魔方-原子组件'),
|
|
2772
2772
|
componentName: "SteedosIcon",
|
|
2773
|
-
title: t$
|
|
2773
|
+
title: t$7('widgets-meta:steedos-icon_title', '图标'),
|
|
2774
2774
|
docUrl: "",
|
|
2775
2775
|
screenshot: "",
|
|
2776
2776
|
npm: {
|
|
@@ -2813,12 +2813,12 @@
|
|
|
2813
2813
|
size: 'medium'
|
|
2814
2814
|
},
|
|
2815
2815
|
previewSchema: { type: config$j.amis.name },
|
|
2816
|
-
panelTitle: t$
|
|
2816
|
+
panelTitle: t$7('widgets-meta:steedos-icon_panelTitle', '设置'),
|
|
2817
2817
|
panelControls: [
|
|
2818
2818
|
{
|
|
2819
2819
|
type: "select",
|
|
2820
2820
|
name: "category",
|
|
2821
|
-
label: t$
|
|
2821
|
+
label: t$7('widgets-meta:steedos-icon_category', '分类'),
|
|
2822
2822
|
options: [
|
|
2823
2823
|
{ label: 'action', value: 'action' },
|
|
2824
2824
|
{ label: 'custom', value: 'custom' },
|
|
@@ -2829,7 +2829,7 @@
|
|
|
2829
2829
|
},
|
|
2830
2830
|
{
|
|
2831
2831
|
name: "name",
|
|
2832
|
-
label: t$
|
|
2832
|
+
label: t$7('widgets-meta:steedos-icon_name', '名称'),
|
|
2833
2833
|
type: "select",
|
|
2834
2834
|
className: "m-0",
|
|
2835
2835
|
labelClassName: "text-left",
|
|
@@ -2851,12 +2851,12 @@
|
|
|
2851
2851
|
sendOn: "this.category"
|
|
2852
2852
|
}
|
|
2853
2853
|
},
|
|
2854
|
-
{ type: "text", name: "className", label: t$
|
|
2855
|
-
{ type: "text", name: "containerClassName", label: t$
|
|
2854
|
+
{ type: "text", name: "className", label: t$7('widgets-meta:steedos-icon_className', 'ClassName') },
|
|
2855
|
+
{ type: "text", name: "containerClassName", label: t$7('widgets-meta:steedos-icon_containerClassName', '容器 ClassName') },
|
|
2856
2856
|
{
|
|
2857
2857
|
type: "select",
|
|
2858
2858
|
name: "colorVariant",
|
|
2859
|
-
label: t$
|
|
2859
|
+
label: t$7('widgets-meta:steedos-icon_colorVariant', '图标颜色'),
|
|
2860
2860
|
options: [
|
|
2861
2861
|
{ label: 'base', value: 'base' },
|
|
2862
2862
|
{ label: 'default', value: 'default' },
|
|
@@ -2868,7 +2868,7 @@
|
|
|
2868
2868
|
{
|
|
2869
2869
|
type: "select",
|
|
2870
2870
|
name: "size",
|
|
2871
|
-
label: t$
|
|
2871
|
+
label: t$7('widgets-meta:steedos-icon_size', '图标大小'),
|
|
2872
2872
|
options: [
|
|
2873
2873
|
{ label: 'xx-small', value: 'xx-small' },
|
|
2874
2874
|
{ label: 'x-small', value: 'x-small' },
|
|
@@ -2877,7 +2877,7 @@
|
|
|
2877
2877
|
{ label: 'large', value: 'large' }
|
|
2878
2878
|
]
|
|
2879
2879
|
},
|
|
2880
|
-
{ type: 'text', name: 'basePath', label: t$
|
|
2880
|
+
{ type: 'text', name: 'basePath', label: t$7('widgets-meta:steedos-icon_basePath', '基础路径') }
|
|
2881
2881
|
]
|
|
2882
2882
|
}
|
|
2883
2883
|
} });
|
|
@@ -3275,11 +3275,11 @@
|
|
|
3275
3275
|
* @LastEditTime: 2023-04-07 18:31:37
|
|
3276
3276
|
* @Description:
|
|
3277
3277
|
*/
|
|
3278
|
-
var t$
|
|
3278
|
+
var t$6 = window.steedosI18next.t;
|
|
3279
3279
|
var config$d = {
|
|
3280
|
-
group: t$
|
|
3280
|
+
group: t$6('widgets-meta:steedos-badge_group', '华炎魔方-原子组件'),
|
|
3281
3281
|
componentName: "SteedosBadge",
|
|
3282
|
-
title: t$
|
|
3282
|
+
title: t$6('widgets-meta:steedos-badge_title', '徽标数'),
|
|
3283
3283
|
docUrl: "",
|
|
3284
3284
|
screenshot: "",
|
|
3285
3285
|
npm: {
|
|
@@ -3319,19 +3319,19 @@
|
|
|
3319
3319
|
count: 100,
|
|
3320
3320
|
body: []
|
|
3321
3321
|
},
|
|
3322
|
-
regions: [{ key: 'body', label: t$
|
|
3322
|
+
regions: [{ key: 'body', label: t$6('widgets-meta:steedos-badge_body', '内容区') }],
|
|
3323
3323
|
previewSchema: { type: config$d.amis.name },
|
|
3324
|
-
panelTitle: t$
|
|
3324
|
+
panelTitle: t$6('widgets-meta:steedos-badge_panelTitle', '设置'),
|
|
3325
3325
|
panelControls: [
|
|
3326
|
-
{ type: 'input-color', name: 'color', label: t$
|
|
3327
|
-
{ type: 'text', name: 'count', label: t$
|
|
3328
|
-
{ type: 'switch', name: 'dot', label: t$
|
|
3329
|
-
{ type: 'number', name: 'overflowCount', label: t$
|
|
3330
|
-
{ type: 'switch', name: 'showZero', label: t$
|
|
3326
|
+
{ type: 'input-color', name: 'color', label: t$6('widgets-meta:steedos-badge_color', '小圆点的颜色') },
|
|
3327
|
+
{ type: 'text', name: 'count', label: t$6('widgets-meta:steedos-badge_count', '展示的数字') },
|
|
3328
|
+
{ type: 'switch', name: 'dot', label: t$6('widgets-meta:steedos-badge_dot', '不展示数字,只有一个小红点') },
|
|
3329
|
+
{ type: 'number', name: 'overflowCount', label: t$6('widgets-meta:steedos-badge_overflowCount', '展示封顶的数字值') },
|
|
3330
|
+
{ type: 'switch', name: 'showZero', label: t$6('widgets-meta:steedos-badge_showZero', '当数值为 0 时,是否展示 Badge') },
|
|
3331
3331
|
{
|
|
3332
3332
|
type: 'select',
|
|
3333
3333
|
name: 'size',
|
|
3334
|
-
label: t$
|
|
3334
|
+
label: t$6('widgets-meta:steedos-badge_size', '在设置了 count 的前提下有效,设置小圆点的大小'),
|
|
3335
3335
|
options: [
|
|
3336
3336
|
{ label: 'default', value: 'default' },
|
|
3337
3337
|
{ label: 'small', value: 'small' }
|
|
@@ -3340,7 +3340,7 @@
|
|
|
3340
3340
|
{
|
|
3341
3341
|
type: 'select',
|
|
3342
3342
|
name: 'status',
|
|
3343
|
-
label: t$
|
|
3343
|
+
label: t$6('widgets-meta:steedos-badge_status', 'Badge 为状态点'),
|
|
3344
3344
|
options: [
|
|
3345
3345
|
{ label: 'success', value: 'success' },
|
|
3346
3346
|
{ label: 'processing', value: 'processing' },
|
|
@@ -3349,8 +3349,8 @@
|
|
|
3349
3349
|
{ label: 'warning', value: 'warning' }
|
|
3350
3350
|
]
|
|
3351
3351
|
},
|
|
3352
|
-
{ type: 'text', name: 'text', label: t$
|
|
3353
|
-
{ type: 'text', name: 'title', label: t$
|
|
3352
|
+
{ type: 'text', name: 'text', label: t$6('widgets-meta:steedos-badge_text', '在设置了 status 的前提下有效,设置状态点的文本') },
|
|
3353
|
+
{ type: 'text', name: 'title', label: t$6('widgets-meta:steedos-badge_titleLabel', '设置鼠标放在状态点上时显示的文字') }
|
|
3354
3354
|
]
|
|
3355
3355
|
}
|
|
3356
3356
|
} });
|
|
@@ -3362,11 +3362,11 @@
|
|
|
3362
3362
|
* @LastEditTime: 2023-03-09 19:00:03
|
|
3363
3363
|
* @Description:
|
|
3364
3364
|
*/
|
|
3365
|
-
var t$
|
|
3365
|
+
var t$5 = window.steedosI18next.t;
|
|
3366
3366
|
var config$c = {
|
|
3367
|
-
group: t$
|
|
3367
|
+
group: t$5('widgets-meta:steedos-badge-ribbon_group', '华炎魔方-原子组件'),
|
|
3368
3368
|
componentName: "SteedosBadgeRibbon",
|
|
3369
|
-
title: t$
|
|
3369
|
+
title: t$5('widgets-meta:steedos-badge-ribbon_title', '缎带'),
|
|
3370
3370
|
docUrl: "",
|
|
3371
3371
|
screenshot: "",
|
|
3372
3372
|
npm: {
|
|
@@ -3402,31 +3402,31 @@
|
|
|
3402
3402
|
order: -9999,
|
|
3403
3403
|
icon: config$c.amis.icon,
|
|
3404
3404
|
scaffold: { type: config$c.amis.name, body: [] },
|
|
3405
|
-
regions: [{ key: 'body', label: t$
|
|
3405
|
+
regions: [{ key: 'body', label: t$5('widgets-meta:steedos-badge-ribbon_body', '内容区') }],
|
|
3406
3406
|
previewSchema: { type: config$c.amis.name },
|
|
3407
|
-
panelTitle: t$
|
|
3407
|
+
panelTitle: t$5('widgets-meta:steedos-badge-ribbon_panelTitle', '设置'),
|
|
3408
3408
|
panelControls: [
|
|
3409
|
-
{ type: 'input-color', name: 'color', label: t$
|
|
3409
|
+
{ type: 'input-color', name: 'color', label: t$5('widgets-meta:steedos-badge-ribbon_color', '缎带的颜色') },
|
|
3410
3410
|
{
|
|
3411
3411
|
type: 'select',
|
|
3412
3412
|
name: 'placement',
|
|
3413
|
-
label: t$
|
|
3413
|
+
label: t$5('widgets-meta:steedos-badge-ribbon_placement', '缎带的位置'),
|
|
3414
3414
|
options: [
|
|
3415
3415
|
{ label: 'Start', value: 'start' },
|
|
3416
3416
|
{ label: 'End', value: 'end' }
|
|
3417
3417
|
]
|
|
3418
3418
|
},
|
|
3419
|
-
{ type: 'text', name: 'text', label: t$
|
|
3419
|
+
{ type: 'text', name: 'text', label: t$5('widgets-meta:steedos-badge-ribbon_text', '缎带中填入的内容') }
|
|
3420
3420
|
]
|
|
3421
3421
|
}
|
|
3422
3422
|
} });
|
|
3423
3423
|
|
|
3424
|
-
var t$
|
|
3424
|
+
var t$4 = window.steedosI18next.t;
|
|
3425
3425
|
var config$b = {
|
|
3426
3426
|
componentType: 'amisSchema',
|
|
3427
|
-
group: t$
|
|
3427
|
+
group: t$4('widgets-meta:steedos-field_group', "华炎魔方-原子组件"),
|
|
3428
3428
|
componentName: "AmisSteedosField",
|
|
3429
|
-
title: t$
|
|
3429
|
+
title: t$4('widgets-meta:steedos-field_title', "字段"),
|
|
3430
3430
|
docUrl: "",
|
|
3431
3431
|
screenshot: "",
|
|
3432
3432
|
npm: {
|
|
@@ -3473,7 +3473,7 @@
|
|
|
3473
3473
|
type: config$b.amis.name,
|
|
3474
3474
|
config: {
|
|
3475
3475
|
type: "text",
|
|
3476
|
-
label: t$
|
|
3476
|
+
label: t$4('widgets-meta:steedos-field_scaffold_label', "字段1"),
|
|
3477
3477
|
amis: {}
|
|
3478
3478
|
}
|
|
3479
3479
|
},
|
|
@@ -3481,11 +3481,11 @@
|
|
|
3481
3481
|
type: config$b.amis.name,
|
|
3482
3482
|
config: {
|
|
3483
3483
|
type: "text",
|
|
3484
|
-
label: t$
|
|
3484
|
+
label: t$4('widgets-meta:steedos-field_preview_label', "字段1"),
|
|
3485
3485
|
amis: {}
|
|
3486
3486
|
}
|
|
3487
3487
|
},
|
|
3488
|
-
panelTitle: t$
|
|
3488
|
+
panelTitle: t$4('widgets-meta:steedos-field_panelTitle', "设置"),
|
|
3489
3489
|
panelControls: [
|
|
3490
3490
|
{
|
|
3491
3491
|
type: "tabs",
|
|
@@ -3498,7 +3498,7 @@
|
|
|
3498
3498
|
* Tab General
|
|
3499
3499
|
*/
|
|
3500
3500
|
{
|
|
3501
|
-
title: t$
|
|
3501
|
+
title: t$4('widgets-meta:steedos-field_tab_general', "通用"),
|
|
3502
3502
|
className: "ae-formItemControl-body",
|
|
3503
3503
|
body: [
|
|
3504
3504
|
{
|
|
@@ -3506,42 +3506,42 @@
|
|
|
3506
3506
|
name: "config.object",
|
|
3507
3507
|
value: "${objectName}",
|
|
3508
3508
|
disabled: true,
|
|
3509
|
-
label: t$
|
|
3509
|
+
label: t$4("widgets-meta:steedos-field_object", "对象"),
|
|
3510
3510
|
required: true
|
|
3511
3511
|
},
|
|
3512
3512
|
{
|
|
3513
3513
|
name: "config.type",
|
|
3514
|
-
label: t$
|
|
3514
|
+
label: t$4("widgets-meta:steedos-field_type", "字段类型"),
|
|
3515
3515
|
required: true,
|
|
3516
3516
|
type: "select",
|
|
3517
3517
|
joinValues: false,
|
|
3518
3518
|
options: [
|
|
3519
|
-
{ label: t$
|
|
3520
|
-
{ label: t$
|
|
3521
|
-
{ label: t$
|
|
3522
|
-
{ label: t$
|
|
3523
|
-
{ label: t$
|
|
3524
|
-
{ label: t$
|
|
3525
|
-
{ label: t$
|
|
3526
|
-
{ label: t$
|
|
3527
|
-
{ label: t$
|
|
3528
|
-
{ label: t$
|
|
3529
|
-
{ label: t$
|
|
3530
|
-
{ label: t$
|
|
3531
|
-
{ label: t$
|
|
3532
|
-
{ label: t$
|
|
3533
|
-
{ label: t$
|
|
3534
|
-
{ label: t$
|
|
3535
|
-
{ label: t$
|
|
3536
|
-
{ label: t$
|
|
3537
|
-
{ label: t$
|
|
3538
|
-
{ label: t$
|
|
3539
|
-
{ label: t$
|
|
3540
|
-
{ label: t$
|
|
3541
|
-
{ label: t$
|
|
3542
|
-
{ label: t$
|
|
3543
|
-
{ label: t$
|
|
3544
|
-
{ label: t$
|
|
3519
|
+
{ label: t$4("widgets-meta:steedos-field_type_text", "文本"), value: "text" },
|
|
3520
|
+
{ label: t$4("widgets-meta:steedos-field_type_textarea", "长文本"), value: "textarea" },
|
|
3521
|
+
{ label: t$4("widgets-meta:steedos-field_type_html", "富文本"), value: "html" },
|
|
3522
|
+
{ label: t$4("widgets-meta:steedos-field_type_code", "代码"), value: "code" },
|
|
3523
|
+
{ label: t$4("widgets-meta:steedos-field_type_markdown", "Markdown"), value: "markdown" },
|
|
3524
|
+
{ label: t$4("widgets-meta:steedos-field_type_select", "选择框"), value: "select" },
|
|
3525
|
+
{ label: t$4("widgets-meta:steedos-field_type_color", "颜色"), value: "color" },
|
|
3526
|
+
{ label: t$4("widgets-meta:steedos-field_type_boolean", "复选框"), value: "boolean" },
|
|
3527
|
+
{ label: t$4("widgets-meta:steedos-field_type_toggle", "开关"), value: "toggle" },
|
|
3528
|
+
{ label: t$4("widgets-meta:steedos-field_type_date", "日期"), value: "date" },
|
|
3529
|
+
{ label: t$4("widgets-meta:steedos-field_type_datetime", "日期时间"), value: "datetime" },
|
|
3530
|
+
{ label: t$4("widgets-meta:steedos-field_type_time", "时间"), value: "time" },
|
|
3531
|
+
{ label: t$4("widgets-meta:steedos-field_type_number", "数值"), value: "number" },
|
|
3532
|
+
{ label: t$4("widgets-meta:steedos-field_type_currency", "金额"), value: "currency" },
|
|
3533
|
+
{ label: t$4("widgets-meta:steedos-field_type_percent", "百分比"), value: "percent" },
|
|
3534
|
+
{ label: t$4("widgets-meta:steedos-field_type_password", "密码"), value: "password" },
|
|
3535
|
+
{ label: t$4("widgets-meta:steedos-field_type_lookup", "相关表关系"), value: "lookup" },
|
|
3536
|
+
{ label: t$4("widgets-meta:steedos-field_type_master_detail", "主/子表关系"), value: "master_detail" },
|
|
3537
|
+
{ label: t$4("widgets-meta:steedos-field_type_autonumber", "自动编号"), value: "autonumber" },
|
|
3538
|
+
{ label: t$4("widgets-meta:steedos-field_type_url", "网址"), value: "url" },
|
|
3539
|
+
{ label: t$4("widgets-meta:steedos-field_type_email", "邮件地址"), value: "email" },
|
|
3540
|
+
{ label: t$4("widgets-meta:steedos-field_type_location", "地理位置"), value: "location" },
|
|
3541
|
+
{ label: t$4("widgets-meta:steedos-field_type_image", "图片"), value: "image" },
|
|
3542
|
+
{ label: t$4("widgets-meta:steedos-field_type_file", "附件"), value: "file" },
|
|
3543
|
+
{ label: t$4("widgets-meta:steedos-field_type_formula", "公式"), value: "formula" },
|
|
3544
|
+
{ label: t$4("widgets-meta:steedos-field_type_summary", "累计汇总"), value: "summary" }
|
|
3545
3545
|
],
|
|
3546
3546
|
extractValue: true,
|
|
3547
3547
|
clearable: true,
|
|
@@ -3554,7 +3554,7 @@
|
|
|
3554
3554
|
},
|
|
3555
3555
|
{
|
|
3556
3556
|
name: "config.label",
|
|
3557
|
-
label: t$
|
|
3557
|
+
label: t$4("widgets-meta:steedos-field_label", "显示名称"),
|
|
3558
3558
|
labelRemark: "",
|
|
3559
3559
|
description: "",
|
|
3560
3560
|
required: true,
|
|
@@ -3564,8 +3564,8 @@
|
|
|
3564
3564
|
},
|
|
3565
3565
|
{
|
|
3566
3566
|
name: "config.name",
|
|
3567
|
-
label: t$
|
|
3568
|
-
labelRemark: t$
|
|
3567
|
+
label: t$4("widgets-meta:steedos-field_api_name", "API 名称"),
|
|
3568
|
+
labelRemark: t$4("widgets-meta:steedos-field_api_name_remark", "API 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符"),
|
|
3569
3569
|
description: "",
|
|
3570
3570
|
required: true,
|
|
3571
3571
|
type: "input-text",
|
|
@@ -3574,7 +3574,7 @@
|
|
|
3574
3574
|
},
|
|
3575
3575
|
{
|
|
3576
3576
|
name: "config.autonumber_enable_modify",
|
|
3577
|
-
label: t$
|
|
3577
|
+
label: t$4("widgets-meta:steedos-field_autonumber_enable_modify", "允许修改编号"),
|
|
3578
3578
|
required: false,
|
|
3579
3579
|
type: "checkbox",
|
|
3580
3580
|
tpl: null,
|
|
@@ -3583,7 +3583,7 @@
|
|
|
3583
3583
|
},
|
|
3584
3584
|
{
|
|
3585
3585
|
name: "config.rows",
|
|
3586
|
-
label: t$
|
|
3586
|
+
label: t$4("widgets-meta:steedos-field_rows", "多行文本行数"),
|
|
3587
3587
|
labelRemark: "",
|
|
3588
3588
|
description: "",
|
|
3589
3589
|
requiredOn: "config.type === 'textarea' ? true: false",
|
|
@@ -3594,7 +3594,7 @@
|
|
|
3594
3594
|
},
|
|
3595
3595
|
{
|
|
3596
3596
|
name: "config.language",
|
|
3597
|
-
label: t$
|
|
3597
|
+
label: t$4("widgets-meta:steedos-field_language", "语言"),
|
|
3598
3598
|
requiredOn: "['code'].indexOf(config.type) > -1 ? true: false",
|
|
3599
3599
|
type: "select",
|
|
3600
3600
|
joinValues: false,
|
|
@@ -3620,8 +3620,8 @@
|
|
|
3620
3620
|
},
|
|
3621
3621
|
{
|
|
3622
3622
|
name: "config.multiple",
|
|
3623
|
-
label: t$
|
|
3624
|
-
labelRemark: t$
|
|
3623
|
+
label: t$4("widgets-meta:steedos-field_multiple", "多选"),
|
|
3624
|
+
labelRemark: t$4("widgets-meta:steedos-field_multiple_remark", "单选<==>多选 相互切换,请自行重新提交已有记录或在数据库中统一修改此字段的保存格式。"),
|
|
3625
3625
|
type: "checkbox",
|
|
3626
3626
|
visibleOn: "['select', 'lookup', 'image','file'].indexOf(config.type) > -1 ? true: false",
|
|
3627
3627
|
clearValueOnHidden: true,
|
|
@@ -3629,8 +3629,8 @@
|
|
|
3629
3629
|
},
|
|
3630
3630
|
{
|
|
3631
3631
|
name: "config.data_type",
|
|
3632
|
-
label: t$
|
|
3633
|
-
labelRemark: t$
|
|
3632
|
+
label: t$4("widgets-meta:steedos-field_data_type", "数据类型"),
|
|
3633
|
+
labelRemark: t$4("widgets-meta:steedos-field_data_type_remark", "字段类型为公式时,必须填写此字段。"),
|
|
3634
3634
|
requiredOn: "['formula'].indexOf(config.type) > -1 ? true: false",
|
|
3635
3635
|
type: "select",
|
|
3636
3636
|
joinValues: false,
|
|
@@ -3651,8 +3651,8 @@
|
|
|
3651
3651
|
{
|
|
3652
3652
|
type: "input-table",
|
|
3653
3653
|
name: "config.options",
|
|
3654
|
-
label: t$
|
|
3655
|
-
labelRemark: t$
|
|
3654
|
+
label: t$4("widgets-meta:steedos-field_options", "选择项"),
|
|
3655
|
+
labelRemark: t$4("widgets-meta:steedos-field_options_remark", "选择项的每个选项显示名及选项值不能为空,背景颜色请设置为ffffff这种格式的16进制数值。"),
|
|
3656
3656
|
requiredOn: "config.type === 'select' ? true: false",
|
|
3657
3657
|
visibleOn: "config.type === 'select' ? true: false",
|
|
3658
3658
|
clearValueOnHidden: true,
|
|
@@ -3668,7 +3668,7 @@
|
|
|
3668
3668
|
{
|
|
3669
3669
|
type: "input-text",
|
|
3670
3670
|
name: "label",
|
|
3671
|
-
label: t$
|
|
3671
|
+
label: t$4("widgets-meta:steedos-field_options_column_label", "显示名"),
|
|
3672
3672
|
required: true,
|
|
3673
3673
|
disabledOn: "${config.is_system == true}",
|
|
3674
3674
|
width: 100
|
|
@@ -3676,7 +3676,7 @@
|
|
|
3676
3676
|
{
|
|
3677
3677
|
type: "input-text",
|
|
3678
3678
|
name: "value",
|
|
3679
|
-
label: t$
|
|
3679
|
+
label: t$4("widgets-meta:steedos-field_options_column_value", "选项值"),
|
|
3680
3680
|
required: true,
|
|
3681
3681
|
disabledOn: "${config.is_system == true}",
|
|
3682
3682
|
width: 100
|
|
@@ -3684,20 +3684,20 @@
|
|
|
3684
3684
|
{
|
|
3685
3685
|
type: "input-color",
|
|
3686
3686
|
name: "color",
|
|
3687
|
-
label: t$
|
|
3687
|
+
label: t$4("widgets-meta:steedos-field_options_column_color", "背景颜色"),
|
|
3688
3688
|
disabledOn: "${config.is_system == true}",
|
|
3689
3689
|
width: 70
|
|
3690
3690
|
},
|
|
3691
3691
|
{
|
|
3692
3692
|
type: "textarea",
|
|
3693
3693
|
name: "description",
|
|
3694
|
-
label: t$
|
|
3694
|
+
label: t$4("widgets-meta:steedos-field_options_column_description", "描述"),
|
|
3695
3695
|
disabledOn: "${config.is_system == true}",
|
|
3696
3696
|
width: 100
|
|
3697
3697
|
},
|
|
3698
3698
|
{
|
|
3699
3699
|
type: "operation",
|
|
3700
|
-
label: t$
|
|
3700
|
+
label: t$4("widgets-meta:steedos-field_options_column_operation", "操作"),
|
|
3701
3701
|
visibleOn: "${!config.is_system}",
|
|
3702
3702
|
width: 70,
|
|
3703
3703
|
fixed: "right"
|
|
@@ -3706,8 +3706,8 @@
|
|
|
3706
3706
|
},
|
|
3707
3707
|
{
|
|
3708
3708
|
name: "config.precision",
|
|
3709
|
-
label: t$
|
|
3710
|
-
labelRemark: t$
|
|
3709
|
+
label: t$4("widgets-meta:steedos-field_precision", "数字位数"),
|
|
3710
|
+
labelRemark: t$4("widgets-meta:steedos-field_precision_remark", "小数点左边的数字位数"),
|
|
3711
3711
|
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; } } })()",
|
|
3712
3712
|
type: "input-number",
|
|
3713
3713
|
precision: 0,
|
|
@@ -3718,8 +3718,8 @@
|
|
|
3718
3718
|
},
|
|
3719
3719
|
{
|
|
3720
3720
|
name: "config.scale",
|
|
3721
|
-
label: t$
|
|
3722
|
-
labelRemark: t$
|
|
3721
|
+
label: t$4("widgets-meta:steedos-field_scale", "小数位数"),
|
|
3722
|
+
labelRemark: t$4("widgets-meta:steedos-field_scale_remark", "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%."),
|
|
3723
3723
|
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; } } })()",
|
|
3724
3724
|
type: "input-number",
|
|
3725
3725
|
min: 0,
|
|
@@ -3732,8 +3732,8 @@
|
|
|
3732
3732
|
},
|
|
3733
3733
|
{
|
|
3734
3734
|
name: "config.formula",
|
|
3735
|
-
label: t$
|
|
3736
|
-
labelRemark: t$
|
|
3735
|
+
label: t$4("widgets-meta:steedos-field_formula", "公式"),
|
|
3736
|
+
labelRemark: t$4("widgets-meta:steedos-field_formula_remark", "字段类型为自动编号或公式时,必须填写此字段。"),
|
|
3737
3737
|
description: "",
|
|
3738
3738
|
requiredOn: "['autonumber', 'formula'].indexOf(config.type) > -1 ? true: false",
|
|
3739
3739
|
type: "textarea",
|
|
@@ -3743,7 +3743,7 @@
|
|
|
3743
3743
|
},
|
|
3744
3744
|
{
|
|
3745
3745
|
name: "config.show_as_qr",
|
|
3746
|
-
label: t$
|
|
3746
|
+
label: t$4("widgets-meta:steedos-field_show_as_qr", "显示为二维码"),
|
|
3747
3747
|
required: false,
|
|
3748
3748
|
type: "checkbox",
|
|
3749
3749
|
tpl: null,
|
|
@@ -3753,7 +3753,7 @@
|
|
|
3753
3753
|
},
|
|
3754
3754
|
{
|
|
3755
3755
|
name: "config.coordinatesType",
|
|
3756
|
-
label: t$
|
|
3756
|
+
label: t$4("widgets-meta:steedos-field_coordinatesType", "坐标类型"),
|
|
3757
3757
|
required: false,
|
|
3758
3758
|
type: "input-text",
|
|
3759
3759
|
visibleOn: "['location'].indexOf(config.type) > -1 ? true: false",
|
|
@@ -3763,15 +3763,15 @@
|
|
|
3763
3763
|
},
|
|
3764
3764
|
{
|
|
3765
3765
|
name: "config.formula_blank_value",
|
|
3766
|
-
label: t$
|
|
3767
|
-
labelRemark: t$
|
|
3766
|
+
label: t$4("widgets-meta:steedos-field_formula_blank_value", "空白字段处理"),
|
|
3767
|
+
labelRemark: t$4("widgets-meta:steedos-field_formula_blank_value_remark", "如果您的公式引用了任何数字和货币字段,请指定当这些字段值为空时如何处理公式输出。"),
|
|
3768
3768
|
description: "",
|
|
3769
3769
|
requiredOn: "['formula'].indexOf(config.type) > -1 ? true: false",
|
|
3770
3770
|
type: "select",
|
|
3771
3771
|
joinValues: false,
|
|
3772
3772
|
options: [
|
|
3773
|
-
{ label: t$
|
|
3774
|
-
{ label: t$
|
|
3773
|
+
{ label: t$4("widgets-meta:steedos-field_option_formulazeroes", "将空白字段视为零"), value: "zeroes" },
|
|
3774
|
+
{ label: t$4("widgets-meta:steedos-field_option_formulablanks", "将空白字段视为空白"), value: "blanks" }
|
|
3775
3775
|
],
|
|
3776
3776
|
extractValue: true,
|
|
3777
3777
|
clearable: true,
|
|
@@ -3785,7 +3785,7 @@
|
|
|
3785
3785
|
},
|
|
3786
3786
|
{
|
|
3787
3787
|
name: "config.reference_to",
|
|
3788
|
-
label: t$
|
|
3788
|
+
label: t$4("widgets-meta:steedos-field_reference_to", "引用对象"),
|
|
3789
3789
|
requiredOn: "['lookup','master_detail'].indexOf(config.type) > -1 ? true: false",
|
|
3790
3790
|
type: "select",
|
|
3791
3791
|
joinValues: false,
|
|
@@ -3819,8 +3819,8 @@
|
|
|
3819
3819
|
},
|
|
3820
3820
|
{
|
|
3821
3821
|
name: "config.summary_object",
|
|
3822
|
-
label: t$
|
|
3823
|
-
labelRemark: t$
|
|
3822
|
+
label: t$4("widgets-meta:steedos-field_summary_object", "要汇总的对象"),
|
|
3823
|
+
labelRemark: t$4("widgets-meta:steedos-field_summary_object_remark", "字段类型为累计汇总时,必须填写此字段。"),
|
|
3824
3824
|
description: "",
|
|
3825
3825
|
requiredOn: "config.type === 'summary' ? true: false",
|
|
3826
3826
|
type: "select",
|
|
@@ -3854,17 +3854,17 @@
|
|
|
3854
3854
|
},
|
|
3855
3855
|
{
|
|
3856
3856
|
name: "config.summary_type",
|
|
3857
|
-
label: t$
|
|
3858
|
-
labelRemark: t$
|
|
3857
|
+
label: t$4("widgets-meta:steedos-field_summary_type", "汇总类型"),
|
|
3858
|
+
labelRemark: t$4("widgets-meta:steedos-field_summary_type_remark", "字段类型为累计汇总时,必须填写此字段。"),
|
|
3859
3859
|
requiredOn: "config.type === 'summary' ? true: false",
|
|
3860
3860
|
type: "select",
|
|
3861
3861
|
joinValues: false,
|
|
3862
3862
|
options: [
|
|
3863
|
-
{ label: t$
|
|
3864
|
-
{ label: t$
|
|
3865
|
-
{ label: t$
|
|
3866
|
-
{ label: t$
|
|
3867
|
-
{ label: t$
|
|
3863
|
+
{ label: t$4("widgets-meta:steedos-field_summary_type_count", "COUNT"), value: "count" },
|
|
3864
|
+
{ label: t$4("widgets-meta:steedos-field_summary_type_sum", "SUM"), value: "sum" },
|
|
3865
|
+
{ label: t$4("widgets-meta:steedos-field_summary_type_min", "MIN"), value: "min" },
|
|
3866
|
+
{ label: t$4("widgets-meta:steedos-field_summary_type_max", "MAX"), value: "max" },
|
|
3867
|
+
{ label: t$4("widgets-meta:steedos-field_summary_type_avg", "AVG"), value: "avg" }
|
|
3868
3868
|
],
|
|
3869
3869
|
extractValue: true,
|
|
3870
3870
|
clearable: true,
|
|
@@ -3876,8 +3876,8 @@
|
|
|
3876
3876
|
},
|
|
3877
3877
|
{
|
|
3878
3878
|
name: "config.summary_field",
|
|
3879
|
-
label: t$
|
|
3880
|
-
labelRemark: t$
|
|
3879
|
+
label: t$4("widgets-meta:steedos-field_summary_field", "汇总字段"),
|
|
3880
|
+
labelRemark: t$4("widgets-meta:steedos-field_summary_field_remark", "字段类型为累计汇总且汇总类型不是COUNT时,必须填写此字段,只支持聚合数值、金额、日期、日期时间类型的字段。"),
|
|
3881
3881
|
description: "",
|
|
3882
3882
|
requiredOn: "config.type === 'summary' && config.summary_type !== 'count' ? true: false",
|
|
3883
3883
|
type: "select",
|
|
@@ -3926,7 +3926,7 @@
|
|
|
3926
3926
|
},
|
|
3927
3927
|
{
|
|
3928
3928
|
name: "config.description",
|
|
3929
|
-
label: t$
|
|
3929
|
+
label: t$4("widgets-meta:steedos-field_description", "描述"),
|
|
3930
3930
|
required: false,
|
|
3931
3931
|
type: "textarea",
|
|
3932
3932
|
tpl: "<%=(data.config.description || \"\").split(\"\\n\").join('<br>')%>",
|
|
@@ -3934,13 +3934,13 @@
|
|
|
3934
3934
|
},
|
|
3935
3935
|
{
|
|
3936
3936
|
name: "config.deleted_lookup_record_behavior",
|
|
3937
|
-
label: t$
|
|
3937
|
+
label: t$4("widgets-meta:steedos-field_deleted_lookup_record_behavior", "如果相关表记录被删除怎么办?"),
|
|
3938
3938
|
required: true,
|
|
3939
3939
|
type: "select",
|
|
3940
3940
|
joinValues: false,
|
|
3941
3941
|
options: [
|
|
3942
|
-
{ label: t$
|
|
3943
|
-
{ label: t$
|
|
3942
|
+
{ label: t$4("widgets-meta:steedos-field_deleted_lookup_record_behavior_clear", "清除此字段的值。 如果您将此字段设为必填,您不能选择此选项。"), value: "clear" },
|
|
3943
|
+
{ label: t$4("widgets-meta:steedos-field_deleted_lookup_record_behavior_retain", "不允许删除"作为相关表关系的一部分的相关表记录"。"), value: "retain" }
|
|
3944
3944
|
],
|
|
3945
3945
|
extractValue: true,
|
|
3946
3946
|
clearable: true,
|
|
@@ -3953,8 +3953,8 @@
|
|
|
3953
3953
|
},
|
|
3954
3954
|
{
|
|
3955
3955
|
name: "config.write_requires_master_read",
|
|
3956
|
-
label: t$
|
|
3957
|
-
labelRemark: t$
|
|
3956
|
+
label: t$4("widgets-meta:steedos-field_write_requires_master_read", "当用户对主表记录有读取权限时对子表记录可以增删改"),
|
|
3957
|
+
labelRemark: t$4("widgets-meta:steedos-field_write_requires_master_read_remark", "设置主记录上创建、编辑或删除子记录所需的最低访问级别。此字段仅适用于·主表/子表·字段类型。勾选表示允许具有'读取'访问权限的用户创建、编辑或删除子记录。反之表示允许具有'读取/写入'访问权限的用户创建、编辑或删除子记录的权限。"),
|
|
3958
3958
|
type: "checkbox",
|
|
3959
3959
|
visibleOn: "config.type === 'master_detail' ? true: false",
|
|
3960
3960
|
clearValueOnHidden: true,
|
|
@@ -3966,12 +3966,12 @@
|
|
|
3966
3966
|
* Tab Form
|
|
3967
3967
|
*/
|
|
3968
3968
|
{
|
|
3969
|
-
title: t$
|
|
3969
|
+
title: t$4("widgets-meta:steedos-field_tab_form", "表单"),
|
|
3970
3970
|
className: "ae-formItemControl-body",
|
|
3971
3971
|
body: [
|
|
3972
3972
|
{
|
|
3973
3973
|
name: "config.required",
|
|
3974
|
-
label: t$
|
|
3974
|
+
label: t$4("widgets-meta:steedos-field_required", "必填"),
|
|
3975
3975
|
required: false,
|
|
3976
3976
|
type: "checkbox",
|
|
3977
3977
|
tpl: null,
|
|
@@ -3981,7 +3981,7 @@
|
|
|
3981
3981
|
},
|
|
3982
3982
|
{
|
|
3983
3983
|
name: "config.is_wide",
|
|
3984
|
-
label: t$
|
|
3984
|
+
label: t$4("widgets-meta:steedos-field_is_wide", "宽字段"),
|
|
3985
3985
|
required: false,
|
|
3986
3986
|
type: "checkbox",
|
|
3987
3987
|
tpl: null,
|
|
@@ -3991,8 +3991,8 @@
|
|
|
3991
3991
|
},
|
|
3992
3992
|
{
|
|
3993
3993
|
name: "config.readonly",
|
|
3994
|
-
label: t$
|
|
3995
|
-
labelRemark: t$
|
|
3994
|
+
label: t$4("widgets-meta:steedos-field_readonly", "只读"),
|
|
3995
|
+
labelRemark: t$4("widgets-meta:steedos-field_readonly_remark", "只读字段不显示在表单上,数据不会提交到服务端。"),
|
|
3996
3996
|
required: false,
|
|
3997
3997
|
type: "checkbox",
|
|
3998
3998
|
tpl: null,
|
|
@@ -4001,8 +4001,8 @@
|
|
|
4001
4001
|
},
|
|
4002
4002
|
{
|
|
4003
4003
|
name: "config.static",
|
|
4004
|
-
label: t$
|
|
4005
|
-
labelRemark: t$
|
|
4004
|
+
label: t$4("widgets-meta:steedos-field_static", "静态"),
|
|
4005
|
+
labelRemark: t$4("widgets-meta:steedos-field_static_remark", "静态字段在表单上显示,用户不可编辑,可动态赋值。"),
|
|
4006
4006
|
required: false,
|
|
4007
4007
|
type: "checkbox",
|
|
4008
4008
|
tpl: null,
|
|
@@ -4011,7 +4011,7 @@
|
|
|
4011
4011
|
},
|
|
4012
4012
|
{
|
|
4013
4013
|
name: "config.inlineHelpText",
|
|
4014
|
-
label: t$
|
|
4014
|
+
label: t$4("widgets-meta:steedos-field_inlineHelpText", "提示文本"),
|
|
4015
4015
|
required: false,
|
|
4016
4016
|
type: "textarea",
|
|
4017
4017
|
tpl: "<%=(data.config.inlineHelpText || \"\").split(\"\\n\").join('<br>')%>",
|
|
@@ -4022,8 +4022,8 @@
|
|
|
4022
4022
|
},
|
|
4023
4023
|
{
|
|
4024
4024
|
name: "config.enable_enhanced_lookup",
|
|
4025
|
-
label: t$
|
|
4026
|
-
labelRemark: t$
|
|
4025
|
+
label: t$4("widgets-meta:steedos-field_enable_enhanced_lookup", "弹出选择"),
|
|
4026
|
+
labelRemark: t$4("widgets-meta:steedos-field_enable_enhanced_lookup_remark", "被其他字段引用时,使用弹出框选择记录。"),
|
|
4027
4027
|
required: false,
|
|
4028
4028
|
type: "checkbox",
|
|
4029
4029
|
tpl: null,
|
|
@@ -4032,7 +4032,7 @@
|
|
|
4032
4032
|
},
|
|
4033
4033
|
{
|
|
4034
4034
|
name: "config.create",
|
|
4035
|
-
label: t$
|
|
4035
|
+
label: t$4("widgets-meta:steedos-field_create", "弹出选择时允许新建"),
|
|
4036
4036
|
required: false,
|
|
4037
4037
|
type: "checkbox",
|
|
4038
4038
|
tpl: null,
|
|
@@ -4043,8 +4043,8 @@
|
|
|
4043
4043
|
},
|
|
4044
4044
|
{
|
|
4045
4045
|
name: "config.depend_on",
|
|
4046
|
-
label: t$
|
|
4047
|
-
labelRemark: t$
|
|
4046
|
+
label: t$4("widgets-meta:steedos-field_depend_on", "依赖字段"),
|
|
4047
|
+
labelRemark: t$4("widgets-meta:steedos-field_depend_on_remark", "依赖字段的变化会触发当前字段重算"),
|
|
4048
4048
|
description: "",
|
|
4049
4049
|
required: false,
|
|
4050
4050
|
type: "select",
|
|
@@ -4074,7 +4074,7 @@
|
|
|
4074
4074
|
},
|
|
4075
4075
|
{
|
|
4076
4076
|
name: "config.enable_thousands",
|
|
4077
|
-
label: t$
|
|
4077
|
+
label: t$4("widgets-meta:steedos-field_enable_thousands", "显示千分符"),
|
|
4078
4078
|
required: false,
|
|
4079
4079
|
type: "checkbox",
|
|
4080
4080
|
tpl: null,
|
|
@@ -4088,13 +4088,13 @@
|
|
|
4088
4088
|
* Tab Advanced
|
|
4089
4089
|
*/
|
|
4090
4090
|
{
|
|
4091
|
-
title: t$
|
|
4091
|
+
title: t$4("widgets-meta:steedos-field_tab_advanced", "高级"),
|
|
4092
4092
|
className: "ae-formItemControl-body",
|
|
4093
4093
|
body: [
|
|
4094
4094
|
{
|
|
4095
4095
|
name: "config.unique",
|
|
4096
|
-
label: t$
|
|
4097
|
-
labelRemark: t$
|
|
4096
|
+
label: t$4("widgets-meta:steedos-field_unique", "创建唯一索引"),
|
|
4097
|
+
labelRemark: t$4("widgets-meta:steedos-field_unique_remark", "默认每天凌晨执行一次创建,已有的索引不重复创建。"),
|
|
4098
4098
|
required: false,
|
|
4099
4099
|
type: "checkbox",
|
|
4100
4100
|
tpl: null,
|
|
@@ -4102,7 +4102,7 @@
|
|
|
4102
4102
|
},
|
|
4103
4103
|
{
|
|
4104
4104
|
name: "config.filterable",
|
|
4105
|
-
label: t$
|
|
4105
|
+
label: t$4("widgets-meta:steedos-field_filterable", "列表页过滤器默认字段"),
|
|
4106
4106
|
required: false,
|
|
4107
4107
|
type: "checkbox",
|
|
4108
4108
|
tpl: null,
|
|
@@ -4110,8 +4110,8 @@
|
|
|
4110
4110
|
},
|
|
4111
4111
|
{
|
|
4112
4112
|
name: "config.index",
|
|
4113
|
-
label: t$
|
|
4114
|
-
labelRemark: t$
|
|
4113
|
+
label: t$4("widgets-meta:steedos-field_index", "创建索引"),
|
|
4114
|
+
labelRemark: t$4("widgets-meta:steedos-field_index_remark", "默认每天凌晨执行一次创建,已有的索引不重复创建。"),
|
|
4115
4115
|
required: false,
|
|
4116
4116
|
type: "checkbox",
|
|
4117
4117
|
tpl: null,
|
|
@@ -4119,7 +4119,7 @@
|
|
|
4119
4119
|
},
|
|
4120
4120
|
{
|
|
4121
4121
|
name: "config.is_name",
|
|
4122
|
-
label: t$
|
|
4122
|
+
label: t$4("widgets-meta:steedos-field_is_name", "名称字段"),
|
|
4123
4123
|
required: false,
|
|
4124
4124
|
type: "checkbox",
|
|
4125
4125
|
tpl: null,
|
|
@@ -4129,9 +4129,9 @@
|
|
|
4129
4129
|
},
|
|
4130
4130
|
{
|
|
4131
4131
|
name: "config.reference_to_field",
|
|
4132
|
-
label: t$
|
|
4133
|
-
labelRemark: t$
|
|
4134
|
-
description: t$
|
|
4132
|
+
label: t$4("widgets-meta:steedos-field_reference_to_field", "外键字段"),
|
|
4133
|
+
labelRemark: t$4("widgets-meta:steedos-field_reference_to_field_remark", "关联的对象保存到当前对象字段的值;例如:A对象关联B对象后,当A1记录关联了B1记录,默认会存B1记录的_id存到A1记录中。如果修改了外键字段后,会将“外键字段”替换_id存储到A1记录中。"),
|
|
4134
|
+
description: t$4("widgets-meta:steedos-field_reference_to_field_description", "默认为主键,默认值是_id"),
|
|
4135
4135
|
required: false,
|
|
4136
4136
|
type: "select",
|
|
4137
4137
|
joinValues: false,
|
|
@@ -4556,13 +4556,13 @@
|
|
|
4556
4556
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
4557
4557
|
* @LastEditTime: 2023-12-14 14:51:35
|
|
4558
4558
|
*/
|
|
4559
|
-
var t$
|
|
4559
|
+
var t$3 = window.steedosI18next.t;
|
|
4560
4560
|
var config$4 = {
|
|
4561
4561
|
componentType: 'amisSchema', // amisSchema || react
|
|
4562
|
-
group: t$
|
|
4562
|
+
group: t$3('widgets-meta:steedos-input-table_group', '华炎魔方'),
|
|
4563
4563
|
componentName: "AmisInputTable",
|
|
4564
|
-
title: t$
|
|
4565
|
-
description: t$
|
|
4564
|
+
title: t$3('widgets-meta:steedos-input-table_title', '表格编辑框'),
|
|
4565
|
+
description: t$3('widgets-meta:steedos-input-table_description', '表格编辑组件,对amis input-table组件的进一步封装。'),
|
|
4566
4566
|
docUrl: "",
|
|
4567
4567
|
screenshot: "",
|
|
4568
4568
|
npm: {
|
|
@@ -4574,16 +4574,16 @@
|
|
|
4574
4574
|
subName: ""
|
|
4575
4575
|
},
|
|
4576
4576
|
props: [
|
|
4577
|
-
{ name: "name", propType: "string", description: t$
|
|
4578
|
-
{ name: "fields", propType: "json", description: t$
|
|
4579
|
-
{ name: "addable", propType: "boolean", description: t$
|
|
4580
|
-
{ name: "editable", propType: "boolean", description: t$
|
|
4581
|
-
{ name: "removable", propType: "boolean", description: t$
|
|
4582
|
-
{ name: "draggable", propType: "boolean", description: t$
|
|
4583
|
-
{ name: "inlineEditMode", propType: "boolean", description: t$
|
|
4584
|
-
{ name: "strictMode", propType: "boolean", description: t$
|
|
4585
|
-
{ name: "perPage", propType: "number", description: t$
|
|
4586
|
-
{ name: "enableDialog", propType: "boolean", description: t$
|
|
4577
|
+
{ name: "name", propType: "string", description: t$3('widgets-meta:steedos-input-table_props_name', '字段名') },
|
|
4578
|
+
{ name: "fields", propType: "json", description: t$3('widgets-meta:steedos-input-table_props_fields', '字段配置') },
|
|
4579
|
+
{ name: "addable", propType: "boolean", description: t$3('widgets-meta:steedos-input-table_props_addable', '可新增') },
|
|
4580
|
+
{ name: "editable", propType: "boolean", description: t$3('widgets-meta:steedos-input-table_props_editable', '可编辑') },
|
|
4581
|
+
{ name: "removable", propType: "boolean", description: t$3('widgets-meta:steedos-input-table_props_removable', '可删除') },
|
|
4582
|
+
{ name: "draggable", propType: "boolean", description: t$3('widgets-meta:steedos-input-table_props_draggable', '可拖拽') },
|
|
4583
|
+
{ name: "inlineEditMode", propType: "boolean", description: t$3('widgets-meta:steedos-input-table_props_inlineEditMode', '内联模式') },
|
|
4584
|
+
{ name: "strictMode", propType: "boolean", description: t$3('widgets-meta:steedos-input-table_props_strictMode', '静态模式') },
|
|
4585
|
+
{ name: "perPage", propType: "number", description: t$3('widgets-meta:steedos-input-table_props_perPage', '每页展示条数') },
|
|
4586
|
+
{ name: "enableDialog", propType: "boolean", description: t$3('widgets-meta:steedos-input-table_props_enableDialog', '启用弹框模式') }
|
|
4587
4587
|
],
|
|
4588
4588
|
preview: {},
|
|
4589
4589
|
targets: ["steedos__RecordPage"],
|
|
@@ -4613,14 +4613,14 @@
|
|
|
4613
4613
|
type: config$4.amis.name,
|
|
4614
4614
|
label: config$4.title,
|
|
4615
4615
|
fields: [
|
|
4616
|
-
{ name: "a", label: t$
|
|
4616
|
+
{ name: "a", label: t$3('widgets-meta:steedos-input-table_scaffold_fields_a', 'A'), type: "text" },
|
|
4617
4617
|
{
|
|
4618
4618
|
name: "b",
|
|
4619
|
-
label: t$
|
|
4619
|
+
label: t$3('widgets-meta:steedos-input-table_scaffold_fields_b', 'B'),
|
|
4620
4620
|
type: "select",
|
|
4621
4621
|
options: [
|
|
4622
|
-
{ label: t$
|
|
4623
|
-
{ label: t$
|
|
4622
|
+
{ label: t$3('widgets-meta:steedos-input-table_scaffold_fields_b_options_op1', '选项1'), value: "op1" },
|
|
4623
|
+
{ label: t$3('widgets-meta:steedos-input-table_scaffold_fields_b_options_op2', '选项2'), value: "op2" }
|
|
4624
4624
|
]
|
|
4625
4625
|
}
|
|
4626
4626
|
],
|
|
@@ -4634,14 +4634,14 @@
|
|
|
4634
4634
|
previewSchema: {
|
|
4635
4635
|
type: config$4.amis.name,
|
|
4636
4636
|
fields: [
|
|
4637
|
-
{ name: "a", label: t$
|
|
4637
|
+
{ name: "a", label: t$3('widgets-meta:steedos-input-table_preview_fields_a', 'A'), type: "text" },
|
|
4638
4638
|
{
|
|
4639
4639
|
name: "b",
|
|
4640
|
-
label: t$
|
|
4640
|
+
label: t$3('widgets-meta:steedos-input-table_preview_fields_b', 'B'),
|
|
4641
4641
|
type: "select",
|
|
4642
4642
|
options: [
|
|
4643
|
-
{ label: t$
|
|
4644
|
-
{ label: t$
|
|
4643
|
+
{ label: t$3('widgets-meta:steedos-input-table_preview_fields_b_options_op1', '选项1'), value: "op1" },
|
|
4644
|
+
{ label: t$3('widgets-meta:steedos-input-table_preview_fields_b_options_op2', '选项2'), value: "op2" }
|
|
4645
4645
|
]
|
|
4646
4646
|
}
|
|
4647
4647
|
],
|
|
@@ -4652,25 +4652,25 @@
|
|
|
4652
4652
|
strictMode: true,
|
|
4653
4653
|
enableDialog: true
|
|
4654
4654
|
},
|
|
4655
|
-
panelTitle: t$
|
|
4655
|
+
panelTitle: t$3('widgets-meta:steedos-input-table_panelTitle', '设置'),
|
|
4656
4656
|
panelControls: [
|
|
4657
|
-
{ type: "input-text", name: "name", mode: "horizontal", horizontal: { left: 3, right: 9, justify: true }, label: t$
|
|
4658
|
-
{ type: "editor", name: "fields", label: t$
|
|
4657
|
+
{ type: "input-text", name: "name", mode: "horizontal", horizontal: { left: 3, right: 9, justify: true }, label: t$3('widgets-meta:steedos-input-table_panelControls_name', '字段名') },
|
|
4658
|
+
{ type: "editor", name: "fields", label: t$3('widgets-meta:steedos-input-table_panelControls_fields', '字段配置'), options: { lineNumbers: "off" }, pipeOut: function (value) { try {
|
|
4659
4659
|
return value ? JSON.parse(value) : null;
|
|
4660
4660
|
}
|
|
4661
4661
|
catch (e) { } return value; }, language: "json" },
|
|
4662
|
-
{ type: "editor", name: "columns", label: t$
|
|
4662
|
+
{ type: "editor", name: "columns", label: t$3('widgets-meta:steedos-input-table_panelControls_columns', '显示的列'), options: { lineNumbers: "off" }, pipeOut: function (value) { try {
|
|
4663
4663
|
return value ? JSON.parse(value) : null;
|
|
4664
4664
|
}
|
|
4665
4665
|
catch (e) { } return value; }, language: "json" },
|
|
4666
|
-
{ type: "switch", name: "addable", mode: "horizontal", horizontal: { left: 9, right: 4, justify: true }, label: t$
|
|
4667
|
-
{ type: "switch", name: "editable", mode: "horizontal", horizontal: { left: 9, right: 4, justify: true }, label: t$
|
|
4668
|
-
{ type: "switch", name: "removable", mode: "horizontal", horizontal: { left: 9, right: 4, justify: true }, label: t$
|
|
4669
|
-
{ type: "switch", name: "draggable", mode: "horizontal", horizontal: { left: 9, right: 4, justify: true }, label: t$
|
|
4670
|
-
{ type: "switch", name: "inlineEditMode", mode: "horizontal", labelRemark: t$
|
|
4671
|
-
{ type: "switch", name: "strictMode", mode: "horizontal", labelRemark: t$
|
|
4672
|
-
{ type: "input-number", name: "perPage", label: t$
|
|
4673
|
-
{ type: "switch", name: "enableDialog", mode: "horizontal", labelRemark: t$
|
|
4666
|
+
{ type: "switch", name: "addable", mode: "horizontal", horizontal: { left: 9, right: 4, justify: true }, label: t$3('widgets-meta:steedos-input-table_panelControls_addable', '可新增') },
|
|
4667
|
+
{ type: "switch", name: "editable", mode: "horizontal", horizontal: { left: 9, right: 4, justify: true }, label: t$3('widgets-meta:steedos-input-table_panelControls_editable', '可编辑') },
|
|
4668
|
+
{ type: "switch", name: "removable", mode: "horizontal", horizontal: { left: 9, right: 4, justify: true }, label: t$3('widgets-meta:steedos-input-table_panelControls_removable', '可删除') },
|
|
4669
|
+
{ type: "switch", name: "draggable", mode: "horizontal", horizontal: { left: 9, right: 4, justify: true }, label: t$3('widgets-meta:steedos-input-table_panelControls_draggable', '可拖拽') },
|
|
4670
|
+
{ type: "switch", name: "inlineEditMode", mode: "horizontal", labelRemark: t$3('widgets-meta:steedos-input-table_panelControls_inlineEditMode_remark', '可编辑时显示为内联模式直接在单元格中编辑字段值。'), horizontal: { left: 9, right: 4, justify: true }, label: t$3('widgets-meta:steedos-input-table_panelControls_inlineEditMode', '内联模式'), visibleOn: "${enableDialog != false}" },
|
|
4671
|
+
{ type: "switch", name: "strictMode", mode: "horizontal", labelRemark: t$3('widgets-meta:steedos-input-table_panelControls_strictMode_remark', '为了性能,默认其他表单项项值变化不会让当前表格更新,有时候为了同步获取其它主表单项字段值,需要关闭静态模式,当有类型为lookup且配置了depend_on属性的子字段时,会自动强制关闭静态模式。'), horizontal: { left: 9, right: 4, justify: true }, label: t$3('widgets-meta:steedos-input-table_panelControls_strictMode', '静态模式') },
|
|
4672
|
+
{ type: "input-number", name: "perPage", label: t$3('widgets-meta:steedos-input-table_panelControls_perPage', '每页展示条数'), labelRemark: t$3('widgets-meta:steedos-input-table_panelControls_perPage_remark', '如果为空则不进行分页') },
|
|
4673
|
+
{ type: "switch", name: "enableDialog", mode: "horizontal", labelRemark: t$3('widgets-meta:steedos-input-table_panelControls_enableDialog_remark', '禁用弹框模式时,自动开启內联模式'), horizontal: { left: 9, right: 4, justify: true }, label: t$3('widgets-meta:steedos-input-table_panelControls_enableDialog', '启用弹框模式') }
|
|
4674
4674
|
]
|
|
4675
4675
|
}
|
|
4676
4676
|
} });
|
|
@@ -4786,7 +4786,7 @@
|
|
|
4786
4786
|
}
|
|
4787
4787
|
} });
|
|
4788
4788
|
|
|
4789
|
-
var t$
|
|
4789
|
+
var t$2 = window.steedosI18next.t;
|
|
4790
4790
|
var createMetaConfig = function (name, type, title, icon) {
|
|
4791
4791
|
var e_1, _a;
|
|
4792
4792
|
var _b;
|
|
@@ -4797,7 +4797,7 @@
|
|
|
4797
4797
|
}
|
|
4798
4798
|
var metaConfig = {
|
|
4799
4799
|
componentType: 'amisSchema',
|
|
4800
|
-
group: t$
|
|
4800
|
+
group: t$2('widgets-meta:sfield_tab_group', '字段'),
|
|
4801
4801
|
componentName: "SteedosField".concat(name),
|
|
4802
4802
|
title: title,
|
|
4803
4803
|
docUrl: "",
|
|
@@ -4819,33 +4819,33 @@
|
|
|
4819
4819
|
}
|
|
4820
4820
|
};
|
|
4821
4821
|
var fieldTypes = [
|
|
4822
|
-
{ "label": t$
|
|
4823
|
-
{ "label": t$
|
|
4824
|
-
{ "label": t$
|
|
4825
|
-
{ "label": t$
|
|
4826
|
-
{ "label": t$
|
|
4827
|
-
{ "label": t$
|
|
4828
|
-
{ "label": t$
|
|
4829
|
-
{ "label": t$
|
|
4830
|
-
{ "label": t$
|
|
4831
|
-
{ "label": t$
|
|
4832
|
-
{ "label": t$
|
|
4833
|
-
{ "label": t$
|
|
4834
|
-
{ "label": t$
|
|
4835
|
-
{ "label": t$
|
|
4836
|
-
{ "label": t$
|
|
4837
|
-
{ "label": t$
|
|
4838
|
-
{ "label": t$
|
|
4839
|
-
{ "label": t$
|
|
4840
|
-
{ "label": t$
|
|
4841
|
-
{ "label": t$
|
|
4842
|
-
{ "label": t$
|
|
4843
|
-
{ "label": t$
|
|
4844
|
-
{ "label": t$
|
|
4845
|
-
{ "label": t$
|
|
4846
|
-
{ "label": t$
|
|
4847
|
-
{ "label": t$
|
|
4848
|
-
{ "label": t$
|
|
4822
|
+
{ "label": t$2('widgets-meta:sfield_text', "文本"), "value": "text" },
|
|
4823
|
+
{ "label": t$2('widgets-meta:sfield_textarea', "长文本"), "value": "textarea" },
|
|
4824
|
+
{ "label": t$2('widgets-meta:sfield_html', "富文本"), "value": "html" },
|
|
4825
|
+
{ "label": t$2('widgets-meta:sfield_code', "代码"), "value": "code" },
|
|
4826
|
+
{ "label": t$2('widgets-meta:sfield_markdown', "Markdown"), "value": "markdown" },
|
|
4827
|
+
{ "label": t$2('widgets-meta:sfield_select', "选择框"), "value": "select" },
|
|
4828
|
+
{ "label": t$2('widgets-meta:sfield_color', "颜色"), "value": "color" },
|
|
4829
|
+
{ "label": t$2('widgets-meta:sfield_boolean', "复选框"), "value": "boolean" },
|
|
4830
|
+
{ "label": t$2('widgets-meta:sfield_toggle', "开关"), "value": "toggle" },
|
|
4831
|
+
{ "label": t$2('widgets-meta:sfield_date', "日期"), "value": "date" },
|
|
4832
|
+
{ "label": t$2('widgets-meta:sfield_datetime', "日期时间"), "value": "datetime" },
|
|
4833
|
+
{ "label": t$2('widgets-meta:sfield_time', "时间"), "value": "time" },
|
|
4834
|
+
{ "label": t$2('widgets-meta:sfield_number', "数值"), "value": "number" },
|
|
4835
|
+
{ "label": t$2('widgets-meta:sfield_currency', "金额"), "value": "currency" },
|
|
4836
|
+
{ "label": t$2('widgets-meta:sfield_percent', "百分比"), "value": "percent" },
|
|
4837
|
+
{ "label": t$2('widgets-meta:sfield_password', "密码"), "value": "password" },
|
|
4838
|
+
{ "label": t$2('widgets-meta:sfield_lookup', "相关表关系"), "value": "lookup" },
|
|
4839
|
+
{ "label": t$2('widgets-meta:sfield_master_detail', "主/子表关系"), "value": "master_detail" },
|
|
4840
|
+
{ "label": t$2('widgets-meta:sfield_autonumber', "自动编号"), "value": "autonumber" },
|
|
4841
|
+
{ "label": t$2('widgets-meta:sfield_url', "网址"), "value": "url" },
|
|
4842
|
+
{ "label": t$2('widgets-meta:sfield_email', "邮件地址"), "value": "email" },
|
|
4843
|
+
{ "label": t$2('widgets-meta:sfield_location', "地理位置"), "value": "location" },
|
|
4844
|
+
{ "label": t$2('widgets-meta:sfield_image', "图片"), "value": "image" },
|
|
4845
|
+
{ "label": t$2('widgets-meta:sfield_file', "附件"), "value": "file" },
|
|
4846
|
+
{ "label": t$2('widgets-meta:sfield_formula', "公式"), "value": "formula" },
|
|
4847
|
+
{ "label": t$2('widgets-meta:sfield_summary', "累计汇总"), "value": "summary" },
|
|
4848
|
+
{ "label": t$2('widgets-meta:sfield_table', "表格"), "value": "table" }
|
|
4849
4849
|
];
|
|
4850
4850
|
var disabledFields = ((_b = window.parent) === null || _b === void 0 ? void 0 : _b._disabledFields) || [];
|
|
4851
4851
|
var fieldTypeOptions = [];
|
|
@@ -4875,14 +4875,14 @@
|
|
|
4875
4875
|
"type": "sfield-text",
|
|
4876
4876
|
"config": {
|
|
4877
4877
|
"type": "text",
|
|
4878
|
-
"label": t$
|
|
4878
|
+
"label": t$2('widgets-meta:sfield_control_column_1_label', "column 1"),
|
|
4879
4879
|
"amis": {
|
|
4880
4880
|
"mode": "horizontal"
|
|
4881
4881
|
},
|
|
4882
4882
|
"object": "",
|
|
4883
4883
|
"name": "f".concat(generateRandomString(5))
|
|
4884
4884
|
},
|
|
4885
|
-
"label": t$
|
|
4885
|
+
"label": t$2('widgets-meta:sfield_control_column_1_label', "column 1"),
|
|
4886
4886
|
"id": "u:fc066ce3ce29",
|
|
4887
4887
|
"placeholder": "-"
|
|
4888
4888
|
},
|
|
@@ -4890,14 +4890,14 @@
|
|
|
4890
4890
|
"type": "sfield-text",
|
|
4891
4891
|
"config": {
|
|
4892
4892
|
"type": "text",
|
|
4893
|
-
"label": t$
|
|
4893
|
+
"label": t$2('widgets-meta:sfield_control_column_2_label', "column 2"),
|
|
4894
4894
|
"amis": {
|
|
4895
4895
|
"mode": "horizontal"
|
|
4896
4896
|
},
|
|
4897
4897
|
"object": "",
|
|
4898
4898
|
"name": "f".concat(generateRandomString(5))
|
|
4899
4899
|
},
|
|
4900
|
-
"label": t$
|
|
4900
|
+
"label": t$2('widgets-meta:sfield_control_column_2_label', "column 2"),
|
|
4901
4901
|
"id": "u:fc066ce3ce292",
|
|
4902
4902
|
"placeholder": "-"
|
|
4903
4903
|
}
|
|
@@ -4937,7 +4937,7 @@
|
|
|
4937
4937
|
type: metaConfig.amis.name,
|
|
4938
4938
|
config: _config
|
|
4939
4939
|
},
|
|
4940
|
-
panelTitle: t$
|
|
4940
|
+
panelTitle: t$2('widgets-meta:sfield_settings_panel_title', "设置"),
|
|
4941
4941
|
panelControls: [
|
|
4942
4942
|
{
|
|
4943
4943
|
"type": "tabs",
|
|
@@ -4947,7 +4947,7 @@
|
|
|
4947
4947
|
contentClassName: 'no-border editor-prop-config-tabs-cont',
|
|
4948
4948
|
"tabs": [
|
|
4949
4949
|
{
|
|
4950
|
-
"title": t$
|
|
4950
|
+
"title": t$2('widgets-meta:sfield_control_general', "通用"),
|
|
4951
4951
|
"className": 'ae-formItemControl-body',
|
|
4952
4952
|
"body": [
|
|
4953
4953
|
{
|
|
@@ -4957,7 +4957,7 @@
|
|
|
4957
4957
|
},
|
|
4958
4958
|
{
|
|
4959
4959
|
"name": "config.type",
|
|
4960
|
-
"label": t$
|
|
4960
|
+
"label": t$2('widgets-meta:sfield_control_field_type', "字段类型"),
|
|
4961
4961
|
"required": true,
|
|
4962
4962
|
"type": "select",
|
|
4963
4963
|
"joinValues": false,
|
|
@@ -4973,7 +4973,7 @@
|
|
|
4973
4973
|
},
|
|
4974
4974
|
{
|
|
4975
4975
|
"name": "config.label",
|
|
4976
|
-
"label": t$
|
|
4976
|
+
"label": t$2('widgets-meta:sfield_control_display_name', "显示名称"),
|
|
4977
4977
|
"labelRemark": "",
|
|
4978
4978
|
"description": "",
|
|
4979
4979
|
"required": true,
|
|
@@ -4983,8 +4983,8 @@
|
|
|
4983
4983
|
},
|
|
4984
4984
|
{
|
|
4985
4985
|
"name": "config.name",
|
|
4986
|
-
"label": t$
|
|
4987
|
-
"labelRemark": t$
|
|
4986
|
+
"label": t$2('widgets-meta:sfield_control_api_name', "API 名称"),
|
|
4987
|
+
"labelRemark": t$2('widgets-meta:sfield_control_api_name_description', "API 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符"),
|
|
4988
4988
|
"description": "",
|
|
4989
4989
|
"required": true,
|
|
4990
4990
|
"type": "input-text",
|
|
@@ -4997,7 +4997,7 @@
|
|
|
4997
4997
|
},
|
|
4998
4998
|
{
|
|
4999
4999
|
"name": "config.required",
|
|
5000
|
-
"label": t$
|
|
5000
|
+
"label": t$2('widgets-meta:sfield_control_required', "必填"),
|
|
5001
5001
|
"required": false,
|
|
5002
5002
|
"type": "checkbox",
|
|
5003
5003
|
"tpl": null,
|
|
@@ -5007,7 +5007,7 @@
|
|
|
5007
5007
|
},
|
|
5008
5008
|
{
|
|
5009
5009
|
"name": "config.is_wide",
|
|
5010
|
-
"label": t$
|
|
5010
|
+
"label": t$2('widgets-meta:sfield_control_wide_field', "宽字段"),
|
|
5011
5011
|
"required": false,
|
|
5012
5012
|
"type": "checkbox",
|
|
5013
5013
|
"tpl": null,
|
|
@@ -5017,7 +5017,7 @@
|
|
|
5017
5017
|
},
|
|
5018
5018
|
{
|
|
5019
5019
|
"name": "config.autonumber_enable_modify",
|
|
5020
|
-
"label": t$
|
|
5020
|
+
"label": t$2('widgets-meta:sfield_control_allow_modify_number', "允许修改编号"),
|
|
5021
5021
|
"required": false,
|
|
5022
5022
|
"type": "checkbox",
|
|
5023
5023
|
"tpl": null,
|
|
@@ -5026,7 +5026,7 @@
|
|
|
5026
5026
|
},
|
|
5027
5027
|
{
|
|
5028
5028
|
"name": "config.rows",
|
|
5029
|
-
"label": t$
|
|
5029
|
+
"label": t$2('widgets-meta:sfield_control_textarea_rows', "多行文本行数"),
|
|
5030
5030
|
"labelRemark": "",
|
|
5031
5031
|
"description": "",
|
|
5032
5032
|
"requiredOn": "config.type === 'textarea' ? true: false",
|
|
@@ -5037,7 +5037,7 @@
|
|
|
5037
5037
|
},
|
|
5038
5038
|
{
|
|
5039
5039
|
"name": "config.language",
|
|
5040
|
-
"label": t$
|
|
5040
|
+
"label": t$2('widgets-meta:sfield_control_language', "语言"),
|
|
5041
5041
|
"requiredOn": "['code'].indexOf(config.type) > -1 ? true: false",
|
|
5042
5042
|
"type": "select",
|
|
5043
5043
|
"joinValues": false,
|
|
@@ -5093,8 +5093,8 @@
|
|
|
5093
5093
|
},
|
|
5094
5094
|
{
|
|
5095
5095
|
"name": "config.multiple",
|
|
5096
|
-
"label": t$
|
|
5097
|
-
"labelRemark": t$
|
|
5096
|
+
"label": t$2('widgets-meta:sfield_control_multiple_select', "多选"),
|
|
5097
|
+
"labelRemark": t$2('widgets-meta:sfield_control_multiple_select_remark', "单选<==>多选 相互切换,请自行重新提交已有记录或在数据库中统一修改此字段的保存格式。"),
|
|
5098
5098
|
"type": "checkbox",
|
|
5099
5099
|
"visibleOn": "['select', 'lookup', 'image','file'].indexOf(config.type) > -1 ? true: false",
|
|
5100
5100
|
"clearValueOnHidden": true,
|
|
@@ -5102,8 +5102,8 @@
|
|
|
5102
5102
|
},
|
|
5103
5103
|
{
|
|
5104
5104
|
"name": "config.data_type",
|
|
5105
|
-
"label": t$
|
|
5106
|
-
"labelRemark": t$
|
|
5105
|
+
"label": t$2('widgets-meta:sfield_control_data_type', "数据类型"),
|
|
5106
|
+
"labelRemark": t$2('widgets-meta:sfield_control_data_type_remark', "字段类型为公式时,必须填写此字段。"),
|
|
5107
5107
|
"requiredOn": "['formula'].indexOf(config.type) > -1 ? true: false",
|
|
5108
5108
|
"type": "select",
|
|
5109
5109
|
"joinValues": false,
|
|
@@ -5129,8 +5129,8 @@
|
|
|
5129
5129
|
{
|
|
5130
5130
|
"type": "input-table",
|
|
5131
5131
|
"name": "config.options",
|
|
5132
|
-
"label": t$
|
|
5133
|
-
"labelRemark": t$
|
|
5132
|
+
"label": t$2('widgets-meta:sfield_control_select_options', "选择项"),
|
|
5133
|
+
"labelRemark": t$2('widgets-meta:sfield_control_select_options_remark', "选择项的每个选项显示名及选项值不能为空,背景颜色请设置为ffffff这种格式的16进制数值。"),
|
|
5134
5134
|
"requiredOn": "config.type === 'select' ? true: false",
|
|
5135
5135
|
"visibleOn": "config.type === 'select' ? true: false",
|
|
5136
5136
|
"clearValueOnHidden": true,
|
|
@@ -5144,17 +5144,17 @@
|
|
|
5144
5144
|
"visibleOn": "${!config.is_system}"
|
|
5145
5145
|
},
|
|
5146
5146
|
"columns": [
|
|
5147
|
-
{ "type": "input-text", "name": "label", "label": t$
|
|
5148
|
-
{ "type": "input-text", "name": "value", "label": t$
|
|
5149
|
-
{ "type": "input-color", "name": "color", "label": t$
|
|
5150
|
-
{ "type": "textarea", "name": "description", "label": t$
|
|
5151
|
-
{ "type": "operation", "label": t$
|
|
5147
|
+
{ "type": "input-text", "name": "label", "label": t$2('widgets-meta:sfield_control_option_label', "显示名"), "required": true, "disabledOn": "${config.is_system == true}", "width": 100 },
|
|
5148
|
+
{ "type": "input-text", "name": "value", "label": t$2('widgets-meta:sfield_control_option_value', "选项值"), "required": true, "disabledOn": "${config.is_system == true}", "width": 100 },
|
|
5149
|
+
{ "type": "input-color", "name": "color", "label": t$2('widgets-meta:sfield_control_option_color', "背景颜色"), "disabledOn": "${config.is_system == true}", "width": 70 },
|
|
5150
|
+
{ "type": "textarea", "name": "description", "label": t$2('widgets-meta:sfield_control_option_description', "描述"), "disabledOn": "${config.is_system == true}", "width": 100 },
|
|
5151
|
+
{ "type": "operation", "label": t$2('widgets-meta:sfield_control_option_operation', "操作"), "visibleOn": "${!config.is_system}", "width": 70, "fixed": "right" }
|
|
5152
5152
|
]
|
|
5153
5153
|
},
|
|
5154
5154
|
{
|
|
5155
5155
|
"name": "config.precision",
|
|
5156
|
-
"label": t$
|
|
5157
|
-
"labelRemark": t$
|
|
5156
|
+
"label": t$2('widgets-meta:sfield_control_precision', "数字位数"),
|
|
5157
|
+
"labelRemark": t$2('widgets-meta:sfield_control_precision_remark', "小数点左边的数字位数"),
|
|
5158
5158
|
"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; } } })() ",
|
|
5159
5159
|
"type": "input-number",
|
|
5160
5160
|
"precision": 0,
|
|
@@ -5165,8 +5165,8 @@
|
|
|
5165
5165
|
},
|
|
5166
5166
|
{
|
|
5167
5167
|
"name": "config.scale",
|
|
5168
|
-
"label": t$
|
|
5169
|
-
"labelRemark": t$
|
|
5168
|
+
"label": t$2('widgets-meta:sfield_control_scale', "小数位数"),
|
|
5169
|
+
"labelRemark": t$2('widgets-meta:sfield_control_scale_remark', "如果字段类型是百分比,则表示字段将显示的小数位数,例如,显示两位小数将显示为10.20%。"),
|
|
5170
5170
|
"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; } } })() ",
|
|
5171
5171
|
"type": "input-number",
|
|
5172
5172
|
"min": 0,
|
|
@@ -5179,8 +5179,8 @@
|
|
|
5179
5179
|
},
|
|
5180
5180
|
{
|
|
5181
5181
|
"name": "config.formula",
|
|
5182
|
-
"label": t$
|
|
5183
|
-
"labelRemark": t$
|
|
5182
|
+
"label": t$2('widgets-meta:sfield_control_formula', "公式"),
|
|
5183
|
+
"labelRemark": t$2('widgets-meta:sfield_control_formula_remark', "字段类型为自动编号或公式时,必须填写此字段。"),
|
|
5184
5184
|
"description": "",
|
|
5185
5185
|
"requiredOn": "['autonumber', 'formula'].indexOf(config.type) > -1 ? true: false",
|
|
5186
5186
|
"type": "input-formula",
|
|
@@ -5192,7 +5192,7 @@
|
|
|
5192
5192
|
},
|
|
5193
5193
|
{
|
|
5194
5194
|
"name": "config.show_as_qr",
|
|
5195
|
-
"label": t$
|
|
5195
|
+
"label": t$2('widgets-meta:sfield_control_show_as_qr', "显示为二维码"),
|
|
5196
5196
|
"required": false,
|
|
5197
5197
|
"type": "checkbox",
|
|
5198
5198
|
"tpl": null,
|
|
@@ -5202,7 +5202,7 @@
|
|
|
5202
5202
|
},
|
|
5203
5203
|
{
|
|
5204
5204
|
"name": "config.coordinatesType",
|
|
5205
|
-
"label": t$
|
|
5205
|
+
"label": t$2('widgets-meta:sfield_control_coordinates_type', "坐标类型"),
|
|
5206
5206
|
"required": false,
|
|
5207
5207
|
"type": "input-text",
|
|
5208
5208
|
"visibleOn": "['location'].indexOf(config.type) > -1 ? true: false",
|
|
@@ -5212,15 +5212,15 @@
|
|
|
5212
5212
|
},
|
|
5213
5213
|
{
|
|
5214
5214
|
"name": "config.formula_blank_value",
|
|
5215
|
-
"label": t$
|
|
5216
|
-
"labelRemark": t$
|
|
5215
|
+
"label": t$2('widgets-meta:sfield_control_formula_blank_value', "空白字段处理"),
|
|
5216
|
+
"labelRemark": t$2('widgets-meta:sfield_control_formula_blank_value_remark', "如果您的公式引用了任何数字和货币字段,请指定当这些字段值为空时如何处理公式输出。"),
|
|
5217
5217
|
"description": "",
|
|
5218
5218
|
"requiredOn": "['formula'].indexOf(config.type) > -1 ? true: false",
|
|
5219
5219
|
"type": "select",
|
|
5220
5220
|
"joinValues": false,
|
|
5221
5221
|
"options": [
|
|
5222
|
-
{ "label": t$
|
|
5223
|
-
{ "label": t$
|
|
5222
|
+
{ "label": t$2('widgets-meta:sfield_control_zero_as_blank', "将空白字段视为零"), "value": "zeroes" },
|
|
5223
|
+
{ "label": t$2('widgets-meta:sfield_control_blanks_as_blank', "将空白字段视为空白"), "value": "blanks" }
|
|
5224
5224
|
],
|
|
5225
5225
|
"extractValue": true,
|
|
5226
5226
|
"clearable": true,
|
|
@@ -5234,7 +5234,7 @@
|
|
|
5234
5234
|
},
|
|
5235
5235
|
{
|
|
5236
5236
|
"name": "config.reference_to",
|
|
5237
|
-
"label": t$
|
|
5237
|
+
"label": t$2('widgets-meta:sfield_control_reference_object', "引用对象"),
|
|
5238
5238
|
"requiredOn": "['lookup','master_detail'].indexOf(config.type) > -1 ? true: false",
|
|
5239
5239
|
"type": "select",
|
|
5240
5240
|
"joinValues": false,
|
|
@@ -5268,8 +5268,8 @@
|
|
|
5268
5268
|
},
|
|
5269
5269
|
{
|
|
5270
5270
|
"name": "config.summary_object",
|
|
5271
|
-
"label": t$
|
|
5272
|
-
"labelRemark": t$
|
|
5271
|
+
"label": t$2('widgets-meta:sfield_control_summary_object', "要汇总的对象"),
|
|
5272
|
+
"labelRemark": t$2('widgets-meta:sfield_control_summary_object_remark', "字段类型为累计汇总时,必须填写此字段。"),
|
|
5273
5273
|
"description": "",
|
|
5274
5274
|
"requiredOn": "config.type === 'summary' ? true: false",
|
|
5275
5275
|
"type": "select",
|
|
@@ -5303,8 +5303,8 @@
|
|
|
5303
5303
|
},
|
|
5304
5304
|
{
|
|
5305
5305
|
"name": "config.summary_type",
|
|
5306
|
-
"label": t$
|
|
5307
|
-
"labelRemark": t$
|
|
5306
|
+
"label": t$2('widgets-meta:sfield_control_summary_type', "汇总类型"),
|
|
5307
|
+
"labelRemark": t$2('widgets-meta:sfield_control_summary_type_remark', "字段类型为累计汇总时,必须填写此字段。"),
|
|
5308
5308
|
"requiredOn": "config.type === 'summary' ? true: false",
|
|
5309
5309
|
"type": "select",
|
|
5310
5310
|
"joinValues": false,
|
|
@@ -5325,8 +5325,8 @@
|
|
|
5325
5325
|
},
|
|
5326
5326
|
{
|
|
5327
5327
|
"name": "config.summary_field",
|
|
5328
|
-
"label": t$
|
|
5329
|
-
"labelRemark": t$
|
|
5328
|
+
"label": t$2('widgets-meta:sfield_control_summary_field', "汇总字段"),
|
|
5329
|
+
"labelRemark": t$2('widgets-meta:sfield_control_summary_field_remark', "字段类型为累计汇总且汇总类型不是COUNT时,必须填写此字段,只支持聚合数值、金额、日期、日期时间类型的字段。"),
|
|
5330
5330
|
"description": "",
|
|
5331
5331
|
"requiredOn": "config.type === 'summary' && config.summary_type !== 'count' ? true: false",
|
|
5332
5332
|
"type": "select",
|
|
@@ -5375,7 +5375,7 @@
|
|
|
5375
5375
|
},
|
|
5376
5376
|
{
|
|
5377
5377
|
"name": "config.description",
|
|
5378
|
-
"label": t$
|
|
5378
|
+
"label": t$2('widgets-meta:sfield_control_description', "描述"),
|
|
5379
5379
|
"required": false,
|
|
5380
5380
|
"type": "input-rich-text",
|
|
5381
5381
|
"tpl": "<%=(data.config.description || \"\").split(\"\\n\").join('<br>')%>",
|
|
@@ -5408,13 +5408,13 @@
|
|
|
5408
5408
|
},
|
|
5409
5409
|
{
|
|
5410
5410
|
"name": "config.deleted_lookup_record_behavior",
|
|
5411
|
-
"label": t$
|
|
5411
|
+
"label": t$2('widgets-meta:sfield_control_deleted_lookup_record_behavior', "如果相关表记录被删除怎么办?"),
|
|
5412
5412
|
"required": true,
|
|
5413
5413
|
"type": "select",
|
|
5414
5414
|
"joinValues": false,
|
|
5415
5415
|
"options": [
|
|
5416
|
-
{ "label": t$
|
|
5417
|
-
{ "label": t$
|
|
5416
|
+
{ "label": t$2('widgets-meta:sfield_control_clear_value', "清除此字段的值。 如果您将此字段设为必填,您不能选择此选项。"), "value": "clear" },
|
|
5417
|
+
{ "label": t$2('widgets-meta:sfield_control_retain_related_record', "不允许删除"作为相关表关系的一部分的相关表记录"。"), "value": "retain" }
|
|
5418
5418
|
],
|
|
5419
5419
|
"extractValue": true,
|
|
5420
5420
|
"clearable": true,
|
|
@@ -5427,8 +5427,8 @@
|
|
|
5427
5427
|
},
|
|
5428
5428
|
{
|
|
5429
5429
|
"name": "config.write_requires_master_read",
|
|
5430
|
-
"label": t$
|
|
5431
|
-
"labelRemark": t$
|
|
5430
|
+
"label": t$2('widgets-meta:sfield_control_write_requires_master_read', "当用户对主表记录有读取权限时对子表记录可以增删改"),
|
|
5431
|
+
"labelRemark": t$2('widgets-meta:sfield_control_write_requires_master_read_remark', "设置主记录上创建、编辑或删除子记录所需的最低访问级别。此字段仅适用于·主表/子表·字段类型。勾选表示允许具有'读取'访问权限的用户创建、编辑或删除子记录。反之表示允许具有'读取/写入'访问权限的用户创建、编辑或删除子记录的权限。"),
|
|
5432
5432
|
"type": "checkbox",
|
|
5433
5433
|
"visibleOn": "config.type === 'master_detail' ? true: false",
|
|
5434
5434
|
"clearValueOnHidden": true,
|
|
@@ -5437,85 +5437,85 @@
|
|
|
5437
5437
|
]
|
|
5438
5438
|
},
|
|
5439
5439
|
{
|
|
5440
|
-
"title": t$
|
|
5440
|
+
"title": t$2('widgets-meta:sfield_control_form', "表单"),
|
|
5441
5441
|
"className": 'ae-formItemControl-body',
|
|
5442
5442
|
"body": [
|
|
5443
5443
|
{
|
|
5444
5444
|
"name": "config.amis.type",
|
|
5445
|
-
"label": t$
|
|
5445
|
+
"label": t$2('widgets-meta:sfield_control_input_type', "输入类型"),
|
|
5446
5446
|
"required": false,
|
|
5447
5447
|
"type": "select",
|
|
5448
5448
|
"searchable": true,
|
|
5449
5449
|
"fieldName": "config.amis.type",
|
|
5450
5450
|
"options": [
|
|
5451
|
-
{ "label": t$
|
|
5452
|
-
{ "label": t$
|
|
5453
|
-
{ "label": t$
|
|
5454
|
-
{ "label": t$
|
|
5455
|
-
{ "label": t$
|
|
5456
|
-
{ "label": t$
|
|
5457
|
-
{ "label": t$
|
|
5458
|
-
{ "label": t$
|
|
5459
|
-
{ "label": t$
|
|
5460
|
-
{ "label": t$
|
|
5461
|
-
{ "label": t$
|
|
5462
|
-
{ "label": t$
|
|
5463
|
-
{ "label": t$
|
|
5464
|
-
{ "label": t$
|
|
5465
|
-
{ "label": t$
|
|
5466
|
-
{ "label": t$
|
|
5467
|
-
{ "label": t$
|
|
5468
|
-
{ "label": t$
|
|
5469
|
-
{ "label": t$
|
|
5470
|
-
{ "label": t$
|
|
5471
|
-
{ "label": t$
|
|
5472
|
-
{ "label": t$
|
|
5473
|
-
{ "label": t$
|
|
5474
|
-
{ "label": t$
|
|
5475
|
-
{ "label": t$
|
|
5476
|
-
{ "label": t$
|
|
5477
|
-
{ "label": t$
|
|
5478
|
-
{ "label": t$
|
|
5479
|
-
{ "label": t$
|
|
5480
|
-
{ "label": t$
|
|
5481
|
-
{ "label": t$
|
|
5482
|
-
{ "label": t$
|
|
5483
|
-
{ "label": t$
|
|
5484
|
-
{ "label": t$
|
|
5485
|
-
{ "label": t$
|
|
5486
|
-
{ "label": t$
|
|
5487
|
-
{ "label": t$
|
|
5488
|
-
{ "label": t$
|
|
5489
|
-
{ "label": t$
|
|
5490
|
-
{ "label": t$
|
|
5491
|
-
{ "label": t$
|
|
5492
|
-
{ "label": t$
|
|
5493
|
-
{ "label": t$
|
|
5494
|
-
{ "label": t$
|
|
5495
|
-
{ "label": t$
|
|
5496
|
-
{ "label": t$
|
|
5497
|
-
{ "label": t$
|
|
5498
|
-
{ "label": t$
|
|
5499
|
-
{ "label": t$
|
|
5500
|
-
{ "label": t$
|
|
5501
|
-
{ "label": t$
|
|
5502
|
-
{ "label": t$
|
|
5503
|
-
{ "label": t$
|
|
5504
|
-
{ "label": t$
|
|
5505
|
-
{ "label": t$
|
|
5506
|
-
{ "label": t$
|
|
5507
|
-
{ "label": t$
|
|
5508
|
-
{ "label": t$
|
|
5509
|
-
{ "label": t$
|
|
5510
|
-
{ "label": t$
|
|
5511
|
-
{ "label": t$
|
|
5512
|
-
{ "label": t$
|
|
5513
|
-
{ "label": t$
|
|
5514
|
-
{ "label": t$
|
|
5515
|
-
{ "label": t$
|
|
5516
|
-
{ "label": t$
|
|
5517
|
-
{ "label": t$
|
|
5518
|
-
{ "label": t$
|
|
5451
|
+
{ "label": t$2('widgets-meta:sfield_control_input_array', "数组输入框 (input-array)"), "value": "input-array" },
|
|
5452
|
+
{ "label": t$2('widgets-meta:sfield_control_button_toolbar', "按钮工具栏 (button-toolbar)"), "value": "button-toolbar" },
|
|
5453
|
+
{ "label": t$2('widgets-meta:sfield_control_button_group_select', "按钮点选 (button-group-select)"), "value": "button-group-select" },
|
|
5454
|
+
{ "label": t$2('widgets-meta:sfield_control_chained_select', "链式下拉框 (chained-select)"), "value": "chained-select" },
|
|
5455
|
+
{ "label": t$2('widgets-meta:sfield_control_checkbox', "勾选框 (checkbox)"), "value": "checkbox" },
|
|
5456
|
+
{ "label": t$2('widgets-meta:sfield_control_checkboxes', "复选框 (checkboxes)"), "value": "checkboxes" },
|
|
5457
|
+
{ "label": t$2('widgets-meta:sfield_control_input_city', "城市选择器 (input-city)"), "value": "input-city" },
|
|
5458
|
+
{ "label": t$2('widgets-meta:sfield_control_input_color', "颜色选择器 (input-color)"), "value": "input-color" },
|
|
5459
|
+
{ "label": t$2('widgets-meta:sfield_control_combo', "组合 (combo)"), "value": "combo" },
|
|
5460
|
+
{ "label": t$2('widgets-meta:sfield_control_condition_builder', "组合条件 (condition-builder)"), "value": "condition-builder" },
|
|
5461
|
+
{ "label": t$2('widgets-meta:sfield_control_input_date', "日期 (input-date)"), "value": "input-date" },
|
|
5462
|
+
{ "label": t$2('widgets-meta:sfield_control_input_datetime', "日期时间 (input-datetime)"), "value": "input-datetime" },
|
|
5463
|
+
{ "label": t$2('widgets-meta:sfield_control_input_month', "月份 (input-month)"), "value": "input-month" },
|
|
5464
|
+
{ "label": t$2('widgets-meta:sfield_control_input_date_range', "日期范围 (input-date-range)"), "value": "input-date-range" },
|
|
5465
|
+
{ "label": t$2('widgets-meta:sfield_control_input_datetime_range', "日期时间范围 (input-datetime-range)"), "value": "input-datetime-range" },
|
|
5466
|
+
{ "label": t$2('widgets-meta:sfield_control_input_month_range', "月份范围 (input-month-range)"), "value": "input-month-range" },
|
|
5467
|
+
{ "label": t$2('widgets-meta:sfield_control_input_kv', "键值对 (input-kv)"), "value": "input-kv" },
|
|
5468
|
+
{ "label": t$2('widgets-meta:sfield_control_input_kvs', "键值对象 (input-kvs)"), "value": "input-kvs" },
|
|
5469
|
+
{ "label": t$2('widgets-meta:sfield_control_input_formula', "公式编辑器 (input-formula)"), "value": "input-formula" },
|
|
5470
|
+
{ "label": t$2('widgets-meta:sfield_control_diff_editor', "对比编辑器 (diff-editor)"), "value": "diff-editor" },
|
|
5471
|
+
{ "label": t$2('widgets-meta:sfield_control_editor', "编辑器 (editor)"), "value": "editor" },
|
|
5472
|
+
{ "label": t$2('widgets-meta:sfield_control_input_excel', "解析 Excel (input-excel)"), "value": "input-excel" },
|
|
5473
|
+
{ "label": t$2('widgets-meta:sfield_control_input_file', "文件上传 (input-file)"), "value": "input-file" },
|
|
5474
|
+
{ "label": t$2('widgets-meta:sfield_control_formula', "公式 (formula)"), "value": "formula" },
|
|
5475
|
+
{ "label": t$2('widgets-meta:sfield_control_group', "表单项组 (group)"), "value": "group" },
|
|
5476
|
+
{ "label": t$2('widgets-meta:sfield_control_hidden', "隐藏字段 (hidden)"), "value": "hidden" },
|
|
5477
|
+
{ "label": t$2('widgets-meta:sfield_control_input_image', "图片 (input-image)"), "value": "input-image" },
|
|
5478
|
+
{ "label": t$2('widgets-meta:sfield_control_input_group', "输入框组合 (input-group)"), "value": "input-group" },
|
|
5479
|
+
{ "label": t$2('widgets-meta:sfield_control_list_select', "列表选择 (list-select)"), "value": "list-select" },
|
|
5480
|
+
{ "label": t$2('widgets-meta:sfield_control_location_picker', "地理位置 (location-picker)"), "value": "location-picker" },
|
|
5481
|
+
{ "label": t$2('widgets-meta:sfield_control_uuid', "UUID"), "value": "uuid" },
|
|
5482
|
+
{ "label": t$2('widgets-meta:sfield_control_matrix_checkboxes', "矩阵选择 (matrix-checkboxes)"), "value": "matrix-checkboxes" },
|
|
5483
|
+
{ "label": t$2('widgets-meta:sfield_control_nested_select', "级联选择器 (nested-select)"), "value": "nested-select" },
|
|
5484
|
+
{ "label": t$2('widgets-meta:sfield_control_input_number', "数字输入框 (input-number)"), "value": "input-number" },
|
|
5485
|
+
{ "label": t$2('widgets-meta:sfield_control_input_password', "密码输入框 (input-password)"), "value": "input-password" },
|
|
5486
|
+
{ "label": t$2('widgets-meta:sfield_control_picker', "列表选择器 (picker)"), "value": "picker" },
|
|
5487
|
+
{ "label": t$2('widgets-meta:sfield_control_input_quarter', "季度 (input-quarter)"), "value": "input-quarter" },
|
|
5488
|
+
{ "label": t$2('widgets-meta:sfield_control_input_quarter_range', "季度范围 (input-quarter-range)"), "value": "input-quarter-range" },
|
|
5489
|
+
{ "label": t$2('widgets-meta:sfield_control_radio', "单选框 (radio)"), "value": "radio" },
|
|
5490
|
+
{ "label": t$2('widgets-meta:sfield_control_radios', "单选框 (radios)"), "value": "radios" },
|
|
5491
|
+
{ "label": t$2('widgets-meta:sfield_control_chart_radios', "图表单选框 (chart-radios)"), "value": "chart-radios" },
|
|
5492
|
+
{ "label": t$2('widgets-meta:sfield_control_input_rating', "评分 (input-rating)"), "value": "input-rating" },
|
|
5493
|
+
{ "label": t$2('widgets-meta:sfield_control_input_range', "滑块 (input-range)"), "value": "input-range" },
|
|
5494
|
+
{ "label": t$2('widgets-meta:sfield_control_input_repeat', "重复频率选择器 (input-repeat)"), "value": "input-repeat" },
|
|
5495
|
+
{ "label": t$2('widgets-meta:sfield_control_input_rich_text', "富文本编辑器 (input-rich-text)"), "value": "input-rich-text" },
|
|
5496
|
+
{ "label": t$2('widgets-meta:sfield_control_select', "选择器 (select)"), "value": "select" },
|
|
5497
|
+
{ "label": t$2('widgets-meta:sfield_control_input_sub_form', "子表单 (input-sub-form)"), "value": "input-sub-form" },
|
|
5498
|
+
{ "label": t$2('widgets-meta:sfield_control_switch', "开关 (switch)"), "value": "switch" },
|
|
5499
|
+
{ "label": t$2('widgets-meta:sfield_control_static', "静态展示 (static)"), "value": "static" },
|
|
5500
|
+
{ "label": t$2('widgets-meta:sfield_control_input_file', "文件上传 (input-file)"), "value": "input-file" },
|
|
5501
|
+
{ "label": t$2('widgets-meta:sfield_control_input_table', "表格 (input-table)"), "value": "input-table" },
|
|
5502
|
+
{ "label": t$2('widgets-meta:sfield_control_input_tag', "标签选择器 (input-tag)"), "value": "input-tag" },
|
|
5503
|
+
{ "label": t$2('widgets-meta:sfield_control_input_text', "输入框 (input-text)"), "value": "input-text" },
|
|
5504
|
+
{ "label": t$2('widgets-meta:sfield_control_textarea', "多行文本输入框 (textarea)"), "value": "textarea" },
|
|
5505
|
+
{ "label": t$2('widgets-meta:sfield_control_input_time', "时间 (input-time)"), "value": "input-time" },
|
|
5506
|
+
{ "label": t$2('widgets-meta:sfield_control_input_time_range', "时间范围 (input-time-range)"), "value": "input-time-range" },
|
|
5507
|
+
{ "label": t$2('widgets-meta:sfield_control_transfer', "穿梭器 (transfer)"), "value": "transfer" },
|
|
5508
|
+
{ "label": t$2('widgets-meta:sfield_control_transfer_picker', "穿梭选择器 (transfer-picker)"), "value": "transfer-picker" },
|
|
5509
|
+
{ "label": t$2('widgets-meta:sfield_control_tabs_transfer', "组合穿梭器 (tabs-transfer)"), "value": "tabs-transfer" },
|
|
5510
|
+
{ "label": t$2('widgets-meta:sfield_control_tabs_transfer_picker', "组合穿梭选择器 (tabs-transfer-picker)"), "value": "tabs-transfer-picker" },
|
|
5511
|
+
{ "label": t$2('widgets-meta:sfield_control_input_tree', "树形选择框 (input-tree)"), "value": "input-tree" },
|
|
5512
|
+
{ "label": t$2('widgets-meta:sfield_control_tree_select', "树形选择器 (tree-select)"), "value": "tree-select" },
|
|
5513
|
+
{ "label": t$2('widgets-meta:sfield_control_input_year', "年份选择 (input-year)"), "value": "input-year" },
|
|
5514
|
+
{ "label": t$2('widgets-meta:sfield_control_input_year_range', "年份范围 (input-year-range)"), "value": "input-year-range" },
|
|
5515
|
+
{ "label": t$2('widgets-meta:sfield_control_json_schema', "JSON Schema (json-schema)"), "value": "json-schema" },
|
|
5516
|
+
{ "label": t$2('widgets-meta:sfield_control_json_schema_editor', "JSON Schema Editor (json-schema-editor)"), "value": "json-schema-editor" },
|
|
5517
|
+
{ "label": t$2('widgets-meta:sfield_control_input_signature', "签名面板 (input-signature)"), "value": "input-signature" },
|
|
5518
|
+
{ "label": t$2('widgets-meta:sfield_control_input_verification_code', "验证码输入 (input-verification-code)"), "value": "input-verification-code" }
|
|
5519
5519
|
],
|
|
5520
5520
|
"extractValue": true,
|
|
5521
5521
|
"clearable": true,
|
|
@@ -5524,14 +5524,14 @@
|
|
|
5524
5524
|
},
|
|
5525
5525
|
{
|
|
5526
5526
|
"name": "config.visible_on",
|
|
5527
|
-
"label": t$
|
|
5527
|
+
"label": t$2('widgets-meta:sfield_control_visible_on', "显示公式"),
|
|
5528
5528
|
"type": 'input-formula',
|
|
5529
5529
|
"mixedMode": true
|
|
5530
5530
|
},
|
|
5531
5531
|
{
|
|
5532
5532
|
"name": "config.readonly",
|
|
5533
|
-
"label": t$
|
|
5534
|
-
"labelRemark": t$
|
|
5533
|
+
"label": t$2('widgets-meta:sfield_control_readonly', "只读"),
|
|
5534
|
+
"labelRemark": t$2('widgets-meta:sfield_control_readonly_remark', "只读字段不显示在表单上,数据不会提交到服务端。"),
|
|
5535
5535
|
"required": false,
|
|
5536
5536
|
"type": "checkbox",
|
|
5537
5537
|
"tpl": null,
|
|
@@ -5540,8 +5540,8 @@
|
|
|
5540
5540
|
},
|
|
5541
5541
|
{
|
|
5542
5542
|
"name": "config.static",
|
|
5543
|
-
"label": t$
|
|
5544
|
-
"labelRemark": t$
|
|
5543
|
+
"label": t$2('widgets-meta:sfield_control_static', "静态"),
|
|
5544
|
+
"labelRemark": t$2('widgets-meta:sfield_control_static_remark', "静态字段在表单上显示,用户不可编辑,可动态赋值。"),
|
|
5545
5545
|
"required": false,
|
|
5546
5546
|
"type": "checkbox",
|
|
5547
5547
|
"tpl": null,
|
|
@@ -5550,7 +5550,7 @@
|
|
|
5550
5550
|
},
|
|
5551
5551
|
{
|
|
5552
5552
|
"name": "config.inlineHelpText",
|
|
5553
|
-
"label": t$
|
|
5553
|
+
"label": t$2('widgets-meta:sfield_control_inline_help_text', "提示文本"),
|
|
5554
5554
|
"required": false,
|
|
5555
5555
|
"type": "textarea",
|
|
5556
5556
|
"tpl": "<%=(data.config.inlineHelpText || \"\").split(\"\\n\").join('<br>')%>",
|
|
@@ -5561,8 +5561,8 @@
|
|
|
5561
5561
|
},
|
|
5562
5562
|
{
|
|
5563
5563
|
"name": "config.enable_enhanced_lookup",
|
|
5564
|
-
"label": t$
|
|
5565
|
-
"labelRemark": t$
|
|
5564
|
+
"label": t$2('widgets-meta:sfield_control_enable_enhanced_lookup', "弹出选择"),
|
|
5565
|
+
"labelRemark": t$2('widgets-meta:sfield_control_enable_enhanced_lookup_remark', "被其他字段引用时,使用弹出框选择记录。"),
|
|
5566
5566
|
"required": false,
|
|
5567
5567
|
"type": "checkbox",
|
|
5568
5568
|
"tpl": null,
|
|
@@ -5571,7 +5571,7 @@
|
|
|
5571
5571
|
},
|
|
5572
5572
|
{
|
|
5573
5573
|
"name": "config.create",
|
|
5574
|
-
"label": t$
|
|
5574
|
+
"label": t$2('widgets-meta:sfield_control_create_allowance', "弹出选择时允许新建"),
|
|
5575
5575
|
"required": false,
|
|
5576
5576
|
"type": "checkbox",
|
|
5577
5577
|
"tpl": null,
|
|
@@ -5582,8 +5582,8 @@
|
|
|
5582
5582
|
},
|
|
5583
5583
|
{
|
|
5584
5584
|
"name": "config.depend_on",
|
|
5585
|
-
"label": t$
|
|
5586
|
-
"labelRemark": t$
|
|
5585
|
+
"label": t$2('widgets-meta:sfield_control_depend_on', "依赖字段"),
|
|
5586
|
+
"labelRemark": t$2('widgets-meta:sfield_control_depend_on_remark', "依赖字段的变化会触发当前字段重算"),
|
|
5587
5587
|
"description": "",
|
|
5588
5588
|
"required": false,
|
|
5589
5589
|
"type": "select",
|
|
@@ -5613,7 +5613,7 @@
|
|
|
5613
5613
|
},
|
|
5614
5614
|
{
|
|
5615
5615
|
"name": "config.enable_thousands",
|
|
5616
|
-
"label": t$
|
|
5616
|
+
"label": t$2('widgets-meta:sfield_control_enable_thousands', "显示千分符"),
|
|
5617
5617
|
"required": false,
|
|
5618
5618
|
"type": "checkbox",
|
|
5619
5619
|
"tpl": null,
|
|
@@ -5654,13 +5654,13 @@
|
|
|
5654
5654
|
]
|
|
5655
5655
|
},
|
|
5656
5656
|
{
|
|
5657
|
-
"title": t$
|
|
5657
|
+
"title": t$2('widgets-meta:sfield_control_advanced', "高级"),
|
|
5658
5658
|
"className": 'ae-formItemControl-body',
|
|
5659
5659
|
"body": [
|
|
5660
5660
|
{
|
|
5661
5661
|
"name": "config.unique",
|
|
5662
|
-
"label": t$
|
|
5663
|
-
"labelRemark": t$
|
|
5662
|
+
"label": t$2('widgets-meta:sfield_control_create_unique_index', "创建唯一索引"),
|
|
5663
|
+
"labelRemark": t$2('widgets-meta:sfield_control_create_unique_index_remark', "默认每天凌晨执行一次创建,已有的索引不重复创建。"),
|
|
5664
5664
|
"required": false,
|
|
5665
5665
|
"type": "checkbox",
|
|
5666
5666
|
"tpl": null,
|
|
@@ -5668,7 +5668,7 @@
|
|
|
5668
5668
|
},
|
|
5669
5669
|
{
|
|
5670
5670
|
"name": "config.searchable",
|
|
5671
|
-
"label": t$
|
|
5671
|
+
"label": t$2('widgets-meta:sfield_control_filterable', "启用列表页快速搜索"),
|
|
5672
5672
|
"required": false,
|
|
5673
5673
|
"type": "checkbox",
|
|
5674
5674
|
"tpl": null,
|
|
@@ -5676,7 +5676,7 @@
|
|
|
5676
5676
|
},
|
|
5677
5677
|
{
|
|
5678
5678
|
"name": "config.filterable",
|
|
5679
|
-
"label": t$
|
|
5679
|
+
"label": t$2('widgets-meta:sfield_control_default_filter_field', "列表页过滤器默认字段"),
|
|
5680
5680
|
"required": false,
|
|
5681
5681
|
"type": "checkbox",
|
|
5682
5682
|
"tpl": null,
|
|
@@ -5684,7 +5684,7 @@
|
|
|
5684
5684
|
},
|
|
5685
5685
|
{
|
|
5686
5686
|
"name": "config.sortable",
|
|
5687
|
-
"label": t$
|
|
5687
|
+
"label": t$2('widgets-meta:sfield_control_sortable', "可排序"),
|
|
5688
5688
|
"required": false,
|
|
5689
5689
|
"type": "checkbox",
|
|
5690
5690
|
"tpl": null,
|
|
@@ -5693,8 +5693,8 @@
|
|
|
5693
5693
|
},
|
|
5694
5694
|
{
|
|
5695
5695
|
"name": "config.index",
|
|
5696
|
-
"label": t$
|
|
5697
|
-
"labelRemark": t$
|
|
5696
|
+
"label": t$2('widgets-meta:sfield_control_create_index', "创建索引"),
|
|
5697
|
+
"labelRemark": t$2('widgets-meta:sfield_control_create_index_remark', "默认每天凌晨执行一次创建,已有的索引不重复创建。"),
|
|
5698
5698
|
"required": false,
|
|
5699
5699
|
"type": "checkbox",
|
|
5700
5700
|
"tpl": null,
|
|
@@ -5702,7 +5702,7 @@
|
|
|
5702
5702
|
},
|
|
5703
5703
|
{
|
|
5704
5704
|
"name": "config.is_name",
|
|
5705
|
-
"label": t$
|
|
5705
|
+
"label": t$2('widgets-meta:sfield_control_name_field', "名称字段"),
|
|
5706
5706
|
"required": false,
|
|
5707
5707
|
"type": "checkbox",
|
|
5708
5708
|
"tpl": null,
|
|
@@ -5712,9 +5712,9 @@
|
|
|
5712
5712
|
},
|
|
5713
5713
|
{
|
|
5714
5714
|
"name": "config.reference_to_field",
|
|
5715
|
-
"label": t$
|
|
5716
|
-
"labelRemark": t$
|
|
5717
|
-
"description": t$
|
|
5715
|
+
"label": t$2('widgets-meta:sfield_control_foreign_key_field', "外键字段"),
|
|
5716
|
+
"labelRemark": t$2('widgets-meta:sfield_control_foreign_key_field_remark', "关联的对象保存到当前对象字段的值;例如:A对象关联B对象后,当A1记录关联了B1记录,默认会存B1记录的_id存到A1记录中。如果修改了外键字段后,会将“外键字段”替换_id存储到A1记录中。"),
|
|
5717
|
+
"description": t$2('widgets-meta:sfield_control_foreign_key_field_default', "默认为主键,默认值是_id"),
|
|
5718
5718
|
"required": false,
|
|
5719
5719
|
"type": "select",
|
|
5720
5720
|
"joinValues": false,
|
|
@@ -5751,33 +5751,33 @@
|
|
|
5751
5751
|
};
|
|
5752
5752
|
// 针对每个字段类型生成函数和元数据
|
|
5753
5753
|
var fieldTypes = [
|
|
5754
|
-
{ name: "Text", type: "text", title: t$
|
|
5755
|
-
{ name: "Textarea", type: "textarea", title: t$
|
|
5756
|
-
{ name: "Html", type: "html", title: t$
|
|
5757
|
-
{ name: "Lookup", type: "lookup", title: t$
|
|
5758
|
-
{ name: "MasterDetail", type: "master_detail", title: t$
|
|
5759
|
-
{ name: "Select", type: "select", title: t$
|
|
5760
|
-
{ name: "Boolean", type: "boolean", title: t$
|
|
5761
|
-
{ name: "Date", type: "date", title: t$
|
|
5762
|
-
{ name: "Datetime", type: "datetime", title: t$
|
|
5763
|
-
{ name: "Time", type: "time", title: t$
|
|
5764
|
-
{ name: "Number", type: "number", title: t$
|
|
5765
|
-
{ name: "Currency", type: "currency", title: t$
|
|
5766
|
-
{ name: "Percent", type: "percent", title: t$
|
|
5767
|
-
{ name: "Image", type: "image", title: t$
|
|
5768
|
-
{ name: "File", type: "file", title: t$
|
|
5769
|
-
{ name: "Code", type: "code", title: t$
|
|
5770
|
-
{ name: "Markdown", type: "markdown", title: t$
|
|
5771
|
-
{ name: "Color", type: "color", title: t$
|
|
5772
|
-
{ name: "Toggle", type: "toggle", title: t$
|
|
5773
|
-
{ name: "Password", type: "password", title: t$
|
|
5774
|
-
{ name: "Autonumber", type: "autonumber", title: t$
|
|
5775
|
-
{ name: "Url", type: "url", title: t$
|
|
5776
|
-
{ name: "Email", type: "email", title: t$
|
|
5777
|
-
{ name: "Location", type: "location", title: t$
|
|
5778
|
-
{ name: "Formula", type: "formula", title: t$
|
|
5779
|
-
{ name: "Summary", type: "summary", title: t$
|
|
5780
|
-
{ name: "Table", type: "table", title: t$
|
|
5754
|
+
{ name: "Text", type: "text", title: t$2("widgets-meta:sfield_text"), icon: "fa-fw fa fa-list-alt" },
|
|
5755
|
+
{ name: "Textarea", type: "textarea", title: t$2('widgets-meta:sfield_textarea', "长文本"), icon: "fa-fw fa fa-list-alt" },
|
|
5756
|
+
{ name: "Html", type: "html", title: t$2('widgets-meta:sfield_html', "富文本"), icon: "fa-fw fa fa-code" },
|
|
5757
|
+
{ name: "Lookup", type: "lookup", title: t$2('widgets-meta:sfield_lookup', "相关表关系"), icon: "fa-fw fa fa-search" },
|
|
5758
|
+
{ name: "MasterDetail", type: "master_detail", title: t$2('widgets-meta:sfield_master_detail', "主/子表关系"), icon: "fa-fw fa fa-link" },
|
|
5759
|
+
{ name: "Select", type: "select", title: t$2('widgets-meta:sfield_select', "选择"), icon: "fa-fw fa fa-list" },
|
|
5760
|
+
{ name: "Boolean", type: "boolean", title: t$2('widgets-meta:sfield_boolean', "布尔"), icon: "fa-fw fa fa-check" },
|
|
5761
|
+
{ name: "Date", type: "date", title: t$2('widgets-meta:sfield_date', "日期"), icon: "fa-fw fa fa-calendar" },
|
|
5762
|
+
{ name: "Datetime", type: "datetime", title: t$2('widgets-meta:sfield_datetime', "日期时间"), icon: "fa-fw fa fa-clock" },
|
|
5763
|
+
{ name: "Time", type: "time", title: t$2('widgets-meta:sfield_time', "时间"), icon: "fa-fw fa fa-clock" },
|
|
5764
|
+
{ name: "Number", type: "number", title: t$2('widgets-meta:sfield_number', "数字"), icon: "fa-fw fa fa-calculator" },
|
|
5765
|
+
{ name: "Currency", type: "currency", title: t$2('widgets-meta:sfield_currency', "货币"), icon: "fa-fw fa fa-jpy" },
|
|
5766
|
+
{ name: "Percent", type: "percent", title: t$2('widgets-meta:sfield_percent', "百分比"), icon: "fa-fw fa fa-percent" },
|
|
5767
|
+
{ name: "Image", type: "image", title: t$2('widgets-meta:sfield_image', "图片"), icon: "fa-fw fa fa-image" },
|
|
5768
|
+
{ name: "File", type: "file", title: t$2('widgets-meta:sfield_file', "文件"), icon: "fa-fw fa fa-file" },
|
|
5769
|
+
{ name: "Code", type: "code", title: t$2('widgets-meta:sfield_code', "代码"), icon: "fa-fw fa fa-code" },
|
|
5770
|
+
{ name: "Markdown", type: "markdown", title: t$2('widgets-meta:sfield_markdown', "Markdown"), icon: "fa-fw fa fa-markdown" },
|
|
5771
|
+
{ name: "Color", type: "color", title: t$2('widgets-meta:sfield_color', "颜色"), icon: "fa-fw fa fa-palette" },
|
|
5772
|
+
{ name: "Toggle", type: "toggle", title: t$2('widgets-meta:sfield_toggle', "切换"), icon: "fa-fw fa fa-toggle-on" },
|
|
5773
|
+
{ name: "Password", type: "password", title: t$2('widgets-meta:sfield_password', "密码"), icon: "fa-fw fa fa-key" },
|
|
5774
|
+
{ name: "Autonumber", type: "autonumber", title: t$2('widgets-meta:sfield_autonumber', "自动编号"), icon: "fa-fw fa fa-hashtag" },
|
|
5775
|
+
{ name: "Url", type: "url", title: t$2('widgets-meta:sfield_url', "URL"), icon: "fa-fw fa fa-link" },
|
|
5776
|
+
{ name: "Email", type: "email", title: t$2('widgets-meta:sfield_email', "电子邮件"), icon: "fa-fw fa fa-envelope" },
|
|
5777
|
+
{ name: "Location", type: "location", title: t$2('widgets-meta:sfield_location', "位置"), icon: "fa-fw fa fa-map-marker" },
|
|
5778
|
+
{ name: "Formula", type: "formula", title: t$2('widgets-meta:sfield_formula', "公式"), icon: "fa-fw fa fa-subscript" },
|
|
5779
|
+
{ name: "Summary", type: "summary", title: t$2('widgets-meta:sfield_summary', "累计汇总"), icon: "fa-fw fa fa-superscript" },
|
|
5780
|
+
{ name: "Table", type: "table", title: t$2('widgets-meta:sfield_table', "表格"), icon: "fa-fw fa fa-table" }
|
|
5781
5781
|
];
|
|
5782
5782
|
var fieldMetas = [];
|
|
5783
5783
|
fieldTypes.forEach(function (_a) {
|
|
@@ -5796,12 +5796,12 @@
|
|
|
5796
5796
|
* @LastEditTime: 2024-10-08 15:04:40
|
|
5797
5797
|
* @Description:
|
|
5798
5798
|
*/
|
|
5799
|
-
var t$
|
|
5799
|
+
var t$1 = window.steedosI18next.t; // 确保国际化函数能被使用
|
|
5800
5800
|
var config$2 = {
|
|
5801
5801
|
// componentType: 'amisSchema',
|
|
5802
|
-
group: t$
|
|
5802
|
+
group: t$1('widgets-meta:steedos-field-group_sfield_tab_group', '字段'),
|
|
5803
5803
|
componentName: "SteedosFieldSet",
|
|
5804
|
-
title: t$
|
|
5804
|
+
title: t$1('widgets-meta:steedos-field-group_title', '分组'),
|
|
5805
5805
|
docUrl: "",
|
|
5806
5806
|
screenshot: "",
|
|
5807
5807
|
npm: {
|
|
@@ -5851,7 +5851,7 @@
|
|
|
5851
5851
|
return props;
|
|
5852
5852
|
}.toString(),
|
|
5853
5853
|
scaffold: {
|
|
5854
|
-
title: t$
|
|
5854
|
+
title: t$1('widgets-meta:steedos-field-group_scaffold_title', '分组'),
|
|
5855
5855
|
collapsable: true,
|
|
5856
5856
|
type: 'steedos-field-group',
|
|
5857
5857
|
body: [], // 容器类字段
|
|
@@ -5860,7 +5860,7 @@
|
|
|
5860
5860
|
regions: [
|
|
5861
5861
|
{
|
|
5862
5862
|
key: 'body',
|
|
5863
|
-
label: t$
|
|
5863
|
+
label: t$1('widgets-meta:steedos-field-group_regions_body_label', '字段项'),
|
|
5864
5864
|
renderMethod: 'renderBody',
|
|
5865
5865
|
insertPosition: 'inner',
|
|
5866
5866
|
accept: function (json) {
|
|
@@ -5874,33 +5874,33 @@
|
|
|
5874
5874
|
previewSchema: {
|
|
5875
5875
|
type: config$2.amis.name,
|
|
5876
5876
|
},
|
|
5877
|
-
panelTitle: t$
|
|
5877
|
+
panelTitle: t$1('widgets-meta:steedos-field-group_panel_title', "设置"),
|
|
5878
5878
|
panelControls: [
|
|
5879
5879
|
{
|
|
5880
5880
|
type: 'text',
|
|
5881
5881
|
name: 'title',
|
|
5882
|
-
label: t$
|
|
5882
|
+
label: t$1('widgets-meta:steedos-field-group_panel_controls_title_label', '标题')
|
|
5883
5883
|
},
|
|
5884
5884
|
{
|
|
5885
5885
|
type: 'switch',
|
|
5886
5886
|
name: 'collapsed',
|
|
5887
|
-
label: t$
|
|
5887
|
+
label: t$1('widgets-meta:steedos-field-group_panel_controls_collapsed_label', '默认是否折叠')
|
|
5888
5888
|
},
|
|
5889
5889
|
{
|
|
5890
5890
|
type: 'input-formula',
|
|
5891
5891
|
name: 'visible_on',
|
|
5892
|
-
label: t$
|
|
5892
|
+
label: t$1('widgets-meta:steedos-field-group_panel_controls_visible_on_label', '显示条件')
|
|
5893
5893
|
}
|
|
5894
5894
|
]
|
|
5895
5895
|
}
|
|
5896
5896
|
} });
|
|
5897
5897
|
|
|
5898
|
-
var t
|
|
5898
|
+
var t = window.steedosI18next.t;
|
|
5899
5899
|
var config$1 = {
|
|
5900
5900
|
// componentType: 'amisSchema',
|
|
5901
|
-
group: t
|
|
5901
|
+
group: t('widgets-meta:steedos-object_group', '华炎魔方-对象'),
|
|
5902
5902
|
componentName: "SteedosObject",
|
|
5903
|
-
title: t
|
|
5903
|
+
title: t('widgets-meta:steedos-object_title', '对象'),
|
|
5904
5904
|
docUrl: "",
|
|
5905
5905
|
screenshot: "",
|
|
5906
5906
|
npm: {
|
|
@@ -5932,7 +5932,7 @@
|
|
|
5932
5932
|
], amis: {
|
|
5933
5933
|
render: {
|
|
5934
5934
|
type: config$1.amis.name,
|
|
5935
|
-
usage:
|
|
5935
|
+
usage: 'renderer',
|
|
5936
5936
|
weight: 1,
|
|
5937
5937
|
framework: "react"
|
|
5938
5938
|
},
|
|
@@ -5953,18 +5953,18 @@
|
|
|
5953
5953
|
regions: [
|
|
5954
5954
|
{
|
|
5955
5955
|
key: 'body',
|
|
5956
|
-
label: t
|
|
5956
|
+
label: t('widgets-meta:steedos-object_body_label', '内容区')
|
|
5957
5957
|
},
|
|
5958
5958
|
],
|
|
5959
5959
|
previewSchema: {
|
|
5960
5960
|
type: config$1.amis.name,
|
|
5961
5961
|
},
|
|
5962
|
-
panelTitle: t
|
|
5962
|
+
panelTitle: t('widgets-meta:steedos-object_panel_title', '设置'),
|
|
5963
5963
|
panelControls: [
|
|
5964
5964
|
{
|
|
5965
5965
|
type: 'text',
|
|
5966
5966
|
name: 'name',
|
|
5967
|
-
label: t
|
|
5967
|
+
label: t('widgets-meta:steedos-object_name_label', '对象名'),
|
|
5968
5968
|
"validateOnChange": true,
|
|
5969
5969
|
"validations": {
|
|
5970
5970
|
"isVariableName": /^[a-zA-Z]([A-Za-z0-9]|_(?!_))*[A-Za-z0-9]$/
|
|
@@ -5973,29 +5973,23 @@
|
|
|
5973
5973
|
{
|
|
5974
5974
|
type: 'text',
|
|
5975
5975
|
name: 'label',
|
|
5976
|
-
label: t
|
|
5976
|
+
label: t('widgets-meta:steedos-object_label_label', '显示名称')
|
|
5977
5977
|
},
|
|
5978
5978
|
{
|
|
5979
5979
|
type: 'textarea',
|
|
5980
5980
|
name: 'description',
|
|
5981
|
-
label: t
|
|
5981
|
+
label: t('widgets-meta:steedos-object_description_label', '描述')
|
|
5982
5982
|
}
|
|
5983
5983
|
]
|
|
5984
5984
|
}
|
|
5985
5985
|
} });
|
|
5986
5986
|
|
|
5987
|
-
|
|
5988
|
-
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
5989
|
-
* @Date: 2025-08-19 15:02:47
|
|
5990
|
-
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
5991
|
-
* @LastEditTime: 2025-09-01 23:13:27
|
|
5992
|
-
*/
|
|
5993
|
-
var t = window.steedosI18next.t;
|
|
5987
|
+
window.steedosI18next.t;
|
|
5994
5988
|
var config = {
|
|
5995
5989
|
componentType: "amisSchema",
|
|
5996
|
-
group: t("widgets-meta:steedos-flow-form_group", "Steedos-审批王"),
|
|
5990
|
+
group: window.steedosI18next.t("widgets-meta:steedos-flow-form_group", "Steedos-审批王"),
|
|
5997
5991
|
componentName: "AmisSteedosFlowForm",
|
|
5998
|
-
title: t("widgets-meta:steedos-flow-form_title", "流程表单"),
|
|
5992
|
+
title: window.steedosI18next.t("widgets-meta:steedos-flow-form_title", "流程表单"),
|
|
5999
5993
|
docUrl: "",
|
|
6000
5994
|
screenshot: "",
|
|
6001
5995
|
npm: {
|
|
@@ -6051,13 +6045,13 @@
|
|
|
6051
6045
|
regions: [
|
|
6052
6046
|
{
|
|
6053
6047
|
key: "body",
|
|
6054
|
-
label: t("widgets-meta:steedos-flow-form_region_body", "内容区"),
|
|
6048
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_region_body", "内容区"),
|
|
6055
6049
|
},
|
|
6056
6050
|
],
|
|
6057
6051
|
previewSchema: {
|
|
6058
6052
|
type: config.amis.name,
|
|
6059
6053
|
},
|
|
6060
|
-
panelTitle: t("widgets-meta:steedos-flow-form_panelTitle", "设置"),
|
|
6054
|
+
panelTitle: window.steedosI18next.t("widgets-meta:steedos-flow-form_panelTitle", "设置"),
|
|
6061
6055
|
panelBodyCreator: function (context) {
|
|
6062
6056
|
var _a;
|
|
6063
6057
|
return [
|
|
@@ -6084,20 +6078,20 @@
|
|
|
6084
6078
|
{
|
|
6085
6079
|
type: "input-text",
|
|
6086
6080
|
name: "name",
|
|
6087
|
-
label: t("widgets-meta:steedos-flow-form_name", "表单名"),
|
|
6081
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_name", "表单名"),
|
|
6088
6082
|
validateOnChange: true
|
|
6089
6083
|
},
|
|
6090
6084
|
{
|
|
6091
6085
|
type: "radios",
|
|
6092
6086
|
name: "style",
|
|
6093
|
-
label: t("widgets-meta:steedos-flow-form_style", "样式"),
|
|
6087
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_style", "样式"),
|
|
6094
6088
|
options: [
|
|
6095
6089
|
{
|
|
6096
|
-
label: t("widgets-meta:steedos-flow-form_style_table", "表格"),
|
|
6090
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_style_table", "表格"),
|
|
6097
6091
|
value: "table",
|
|
6098
6092
|
},
|
|
6099
6093
|
{
|
|
6100
|
-
label: t("widgets-meta:steedos-flow-form_style_wizard", "向导"),
|
|
6094
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_style_wizard", "向导"),
|
|
6101
6095
|
value: "wizard",
|
|
6102
6096
|
},
|
|
6103
6097
|
],
|
|
@@ -6106,19 +6100,19 @@
|
|
|
6106
6100
|
{
|
|
6107
6101
|
type: "radios",
|
|
6108
6102
|
name: "mode",
|
|
6109
|
-
label: t("widgets-meta:steedos-flow-form_mode", "表单模式"),
|
|
6103
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_mode", "表单模式"),
|
|
6110
6104
|
visibleOn: "${style === 'wizard'}",
|
|
6111
6105
|
options: [
|
|
6112
6106
|
{
|
|
6113
|
-
label: t("widgets-meta:steedos-flow-form_mode_normal", "默认"),
|
|
6107
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_mode_normal", "默认"),
|
|
6114
6108
|
value: "normal",
|
|
6115
6109
|
},
|
|
6116
6110
|
{
|
|
6117
|
-
label: t("widgets-meta:steedos-flow-form_mode_horizontal", "水平模式"),
|
|
6111
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_mode_horizontal", "水平模式"),
|
|
6118
6112
|
value: "horizontal",
|
|
6119
6113
|
},
|
|
6120
6114
|
{
|
|
6121
|
-
label: t("widgets-meta:steedos-flow-form_mode_inline", "内联模式"),
|
|
6115
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_mode_inline", "内联模式"),
|
|
6122
6116
|
value: "inline",
|
|
6123
6117
|
},
|
|
6124
6118
|
],
|
|
@@ -6126,15 +6120,15 @@
|
|
|
6126
6120
|
{
|
|
6127
6121
|
type: "radios",
|
|
6128
6122
|
name: "wizard_mode",
|
|
6129
|
-
label: t("widgets-meta:steedos-flow-form_wizard_mode", "向导模式"),
|
|
6123
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_wizard_mode", "向导模式"),
|
|
6130
6124
|
visibleOn: "${style === 'wizard'}",
|
|
6131
6125
|
options: [
|
|
6132
6126
|
{
|
|
6133
|
-
label: t("widgets-meta:steedos-flow-form_wizard_mode_vertical", "纵向"),
|
|
6127
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_wizard_mode_vertical", "纵向"),
|
|
6134
6128
|
value: "vertical",
|
|
6135
6129
|
},
|
|
6136
6130
|
{
|
|
6137
|
-
label: t("widgets-meta:steedos-flow-form_wizard_mode_horizontal", "横向"),
|
|
6131
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_wizard_mode_horizontal", "横向"),
|
|
6138
6132
|
value: "horizontal",
|
|
6139
6133
|
},
|
|
6140
6134
|
],
|
|
@@ -6142,7 +6136,7 @@
|
|
|
6142
6136
|
{
|
|
6143
6137
|
type: "textarea",
|
|
6144
6138
|
name: "description",
|
|
6145
|
-
label: t("widgets-meta:steedos-flow-form_description", "描述"),
|
|
6139
|
+
label: window.steedosI18next.t("widgets-meta:steedos-flow-form_description", "描述"),
|
|
6146
6140
|
},
|
|
6147
6141
|
],
|
|
6148
6142
|
},
|
|
@@ -6152,7 +6146,7 @@
|
|
|
6152
6146
|
title: "事件",
|
|
6153
6147
|
className: "p-none",
|
|
6154
6148
|
body: [
|
|
6155
|
-
|
|
6149
|
+
Object.assign({ name: 'onEvent' }, (_a = window.AmisEditor) === null || _a === void 0 ? void 0 : _a.formItemControl({}, context)[0].tabs[2].body[0])
|
|
6156
6150
|
],
|
|
6157
6151
|
},
|
|
6158
6152
|
],
|