@steedos-widgets/ag-grid 6.3.12-beta.3 → 6.3.12-beta.31
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/ag-grid.umd.css +79 -7483
- package/dist/ag-grid.umd.js +1 -1
- package/dist/amis/AirtableGrid/AirtableGrid.d.ts +11 -0
- package/dist/amis/AirtableGrid/DataSource.d.ts +17 -0
- package/dist/amis/AirtableGrid/gridOptions.d.ts +517 -0
- package/dist/amis/AirtableGrid/index.d.ts +3 -0
- package/dist/amis/TablesGrid/TablesGrid.d.ts +1 -0
- package/dist/amis/TablesGrid/dataSource.d.ts +8 -0
- package/dist/amis/TablesGrid/fieldsAdmin.d.ts +612 -0
- package/dist/amis/TablesGrid/index.d.ts +1 -0
- package/dist/amis/TablesGrid/tables.d.ts +32 -0
- package/dist/amis/index.d.ts +2 -0
- package/dist/assets-dev.json +8 -1
- package/dist/assets.json +13 -6
- package/dist/components/cellEditor/datetime.d.ts +6 -0
- package/dist/components/cellEditor/index.d.ts +3 -0
- package/dist/components/cellEditor/lookup.d.ts +6 -0
- package/dist/components/cellEditor/multiSelect.d.ts +7 -0
- package/dist/components/cellRenderer/index.d.ts +1 -0
- package/dist/components/cellRenderer/lookup.d.ts +5 -0
- package/dist/components/filter/datetime.d.ts +3 -0
- package/dist/components/filter/index.d.ts +2 -0
- package/dist/components/filter/lookup.d.ts +3 -0
- package/dist/index.d.ts +1 -2
- package/dist/meta.js +485 -18
- package/dist/metas/AmisAirtableGrid.d.ts +2 -0
- package/dist/metas/AmisTablesGrid.d.ts +2 -0
- package/dist/types/amis/AirtableGrid/AirtableGrid.d.ts +11 -0
- package/dist/types/amis/AirtableGrid/DataSource.d.ts +17 -0
- package/dist/types/amis/AirtableGrid/gridOptions.d.ts +517 -0
- package/dist/types/amis/AirtableGrid/index.d.ts +3 -0
- package/dist/types/amis/TablesGrid/TablesGrid.d.ts +1 -0
- package/dist/types/amis/TablesGrid/dataSource.d.ts +8 -0
- package/dist/types/amis/TablesGrid/fieldsAdmin.d.ts +612 -0
- package/dist/types/amis/TablesGrid/index.d.ts +1 -0
- package/dist/types/amis/TablesGrid/tables.d.ts +32 -0
- package/dist/types/amis/index.d.ts +2 -0
- package/dist/types/components/cellEditor/datetime.d.ts +6 -0
- package/dist/types/components/cellEditor/index.d.ts +3 -0
- package/dist/types/components/cellEditor/lookup.d.ts +6 -0
- package/dist/types/components/cellEditor/multiSelect.d.ts +7 -0
- package/dist/types/components/cellRenderer/index.d.ts +1 -0
- package/dist/types/components/cellRenderer/lookup.d.ts +5 -0
- package/dist/types/components/filter/datetime.d.ts +3 -0
- package/dist/types/components/filter/index.d.ts +2 -0
- package/dist/types/components/filter/lookup.d.ts +3 -0
- package/dist/types/index.d.ts +1 -2
- package/dist/types/metas/AmisAirtableGrid.d.ts +2 -0
- package/dist/types/metas/AmisTablesGrid.d.ts +2 -0
- package/package.json +7 -7
package/dist/assets.json
CHANGED
|
@@ -3,15 +3,22 @@
|
|
|
3
3
|
{
|
|
4
4
|
"package": "ag-grid-enterprise",
|
|
5
5
|
"urls": [
|
|
6
|
-
"https://unpkg.
|
|
6
|
+
"https://unpkg.steedos.cn/ag-grid-enterprise@33.1.1/dist/ag-grid-enterprise.min.js"
|
|
7
7
|
],
|
|
8
8
|
"library": "agGrid"
|
|
9
9
|
},
|
|
10
|
+
{
|
|
11
|
+
"package": "ag-grid-react",
|
|
12
|
+
"urls": [
|
|
13
|
+
"https://unpkg.steedos.cn/ag-grid-react@33.1.1/dist/umd/ag-grid-react.min.js"
|
|
14
|
+
],
|
|
15
|
+
"library": "agGridReact"
|
|
16
|
+
},
|
|
10
17
|
{
|
|
11
18
|
"package": "@steedos-widgets/ag-grid",
|
|
12
19
|
"urls": [
|
|
13
|
-
"https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.
|
|
14
|
-
"https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.
|
|
20
|
+
"https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.31/dist/ag-grid.umd.js",
|
|
21
|
+
"https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.31/dist/ag-grid.umd.css"
|
|
15
22
|
],
|
|
16
23
|
"library": "BuilderAgGrid"
|
|
17
24
|
}
|
|
@@ -22,10 +29,10 @@
|
|
|
22
29
|
"npm": {
|
|
23
30
|
"package": "@steedos-widgets/ag-grid"
|
|
24
31
|
},
|
|
25
|
-
"url": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.
|
|
32
|
+
"url": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.31/dist/meta.js",
|
|
26
33
|
"urls": {
|
|
27
|
-
"default": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.
|
|
28
|
-
"design": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.
|
|
34
|
+
"default": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.31/dist/meta.js",
|
|
35
|
+
"design": "https://unpkg.com/@steedos-widgets/ag-grid@6.3.12-beta.31/dist/meta.js"
|
|
29
36
|
}
|
|
30
37
|
}
|
|
31
38
|
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lookup';
|
package/dist/index.d.ts
CHANGED
package/dist/meta.js
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
return __assign.apply(this, arguments);
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
var config = {
|
|
33
|
+
var config$2 = {
|
|
34
34
|
group: "华炎魔方-原子组件",
|
|
35
35
|
componentName: "AmisAgGrid",
|
|
36
36
|
title: "AG-Grid",
|
|
@@ -54,32 +54,32 @@
|
|
|
54
54
|
icon: "fa-fw fa fa-list-alt"
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
var AgGrid = __assign(__assign({}, config), { snippets: [
|
|
57
|
+
var AgGrid = __assign(__assign({}, config$2), { snippets: [
|
|
58
58
|
{
|
|
59
|
-
title: config.title,
|
|
59
|
+
title: config$2.title,
|
|
60
60
|
screenshot: "",
|
|
61
61
|
schema: {
|
|
62
|
-
componentName: config.componentName,
|
|
63
|
-
props: config.preview
|
|
62
|
+
componentName: config$2.componentName,
|
|
63
|
+
props: config$2.preview
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
], amis: {
|
|
67
67
|
render: {
|
|
68
|
-
type: config.amis.name,
|
|
68
|
+
type: config$2.amis.name,
|
|
69
69
|
usage: "renderer",
|
|
70
70
|
weight: 1,
|
|
71
71
|
framework: "react"
|
|
72
72
|
},
|
|
73
|
-
|
|
74
|
-
rendererName: config.amis.name,
|
|
73
|
+
plugin_disabled: {
|
|
74
|
+
rendererName: config$2.amis.name,
|
|
75
75
|
$schema: '/schemas/UnkownSchema.json',
|
|
76
|
-
name: config.title,
|
|
77
|
-
description: config.title,
|
|
78
|
-
tags: [config.group],
|
|
76
|
+
name: config$2.title,
|
|
77
|
+
description: config$2.title,
|
|
78
|
+
tags: [config$2.group],
|
|
79
79
|
order: -9999,
|
|
80
|
-
icon: config.amis.icon,
|
|
80
|
+
icon: config$2.amis.icon,
|
|
81
81
|
scaffold: {
|
|
82
|
-
type: config.amis.name,
|
|
82
|
+
type: config$2.amis.name,
|
|
83
83
|
className: "h-80",
|
|
84
84
|
config: {
|
|
85
85
|
// Row Data: The data to be displayed.
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
},
|
|
100
100
|
previewSchema: {
|
|
101
|
-
type: config.amis.name,
|
|
101
|
+
type: config$2.amis.name,
|
|
102
102
|
},
|
|
103
103
|
panelTitle: "设置",
|
|
104
104
|
panelControls: [
|
|
@@ -139,16 +139,483 @@
|
|
|
139
139
|
/*
|
|
140
140
|
* @Author: baozhoutao@steedos.com
|
|
141
141
|
* @Date: 2022-08-31 16:32:35
|
|
142
|
-
* @LastEditors:
|
|
143
|
-
* @LastEditTime:
|
|
142
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
143
|
+
* @LastEditTime: 2025-01-06 17:48:28
|
|
144
|
+
* @Description:
|
|
145
|
+
*/
|
|
146
|
+
var config$1 = {
|
|
147
|
+
componentType: 'amisSchema',
|
|
148
|
+
group: "华炎魔方",
|
|
149
|
+
componentName: "AmisTablesGrid",
|
|
150
|
+
title: "Tables Grid",
|
|
151
|
+
docUrl: "",
|
|
152
|
+
screenshot: "",
|
|
153
|
+
npm: {
|
|
154
|
+
package: "@steedos-widgets/ag-grid",
|
|
155
|
+
version: "{{version}}",
|
|
156
|
+
exportName: "AmisTablesGrid",
|
|
157
|
+
main: "",
|
|
158
|
+
destructuring: true,
|
|
159
|
+
subName: ""
|
|
160
|
+
},
|
|
161
|
+
preview: {},
|
|
162
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
163
|
+
engines: ["amis"],
|
|
164
|
+
// settings for amis.
|
|
165
|
+
amis: {
|
|
166
|
+
name: 'steedos-tables-grid',
|
|
167
|
+
icon: "fa-fw fa fa-list-alt"
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
var AmisTablesGrid = __assign(__assign({}, config$1), { snippets: [
|
|
171
|
+
{
|
|
172
|
+
title: config$1.title,
|
|
173
|
+
screenshot: "",
|
|
174
|
+
schema: {
|
|
175
|
+
componentName: config$1.componentName,
|
|
176
|
+
props: config$1.preview
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
], amis: {
|
|
180
|
+
render: {
|
|
181
|
+
type: config$1.amis.name,
|
|
182
|
+
usage: "renderer",
|
|
183
|
+
weight: 1,
|
|
184
|
+
framework: "react"
|
|
185
|
+
},
|
|
186
|
+
plugin_disabled: {
|
|
187
|
+
rendererName: config$1.amis.name,
|
|
188
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
189
|
+
name: config$1.title,
|
|
190
|
+
description: config$1.title,
|
|
191
|
+
tags: [config$1.group],
|
|
192
|
+
order: -9999,
|
|
193
|
+
icon: config$1.amis.icon,
|
|
194
|
+
scaffold: {
|
|
195
|
+
type: config$1.amis.name,
|
|
196
|
+
label: config$1.title,
|
|
197
|
+
objectApiName: "${objectName}",
|
|
198
|
+
fields: ["name"],
|
|
199
|
+
// className: "sm:border sm:rounded sm:border-gray-300"
|
|
200
|
+
},
|
|
201
|
+
previewSchema: {
|
|
202
|
+
type: config$1.amis.name,
|
|
203
|
+
objectApiName: 'space_users',
|
|
204
|
+
fields: ["name"]
|
|
205
|
+
},
|
|
206
|
+
panelTitle: "设置",
|
|
207
|
+
panelControls: []
|
|
208
|
+
}
|
|
209
|
+
} });
|
|
210
|
+
|
|
211
|
+
/*
|
|
212
|
+
* @Author: baozhoutao@steedos.com
|
|
213
|
+
* @Date: 2022-08-31 16:32:35
|
|
214
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
215
|
+
* @LastEditTime: 2025-01-17 14:40:15
|
|
216
|
+
* @Description:
|
|
217
|
+
*/
|
|
218
|
+
var config = {
|
|
219
|
+
componentType: 'amisSchema',
|
|
220
|
+
group: "华炎魔方",
|
|
221
|
+
componentName: "AmisAirtableGrid",
|
|
222
|
+
title: "Airtable Grid",
|
|
223
|
+
docUrl: "",
|
|
224
|
+
screenshot: "",
|
|
225
|
+
npm: {
|
|
226
|
+
package: "@steedos-widgets/ag-grid",
|
|
227
|
+
version: "{{version}}",
|
|
228
|
+
exportName: "AmisAirtableGrid",
|
|
229
|
+
main: "",
|
|
230
|
+
destructuring: true,
|
|
231
|
+
subName: ""
|
|
232
|
+
},
|
|
233
|
+
props: [
|
|
234
|
+
{
|
|
235
|
+
name: "tableId",
|
|
236
|
+
propType: "string",
|
|
237
|
+
description: '表格ID',
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: "columns",
|
|
241
|
+
propType: "array",
|
|
242
|
+
description: '显示列',
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: "amisCondition",
|
|
246
|
+
propType: "object",
|
|
247
|
+
description: '过滤条件',
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: "sortField",
|
|
251
|
+
propType: "string",
|
|
252
|
+
description: '排序字段',
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
name: "sortOrder",
|
|
256
|
+
propType: "string",
|
|
257
|
+
description: '排序顺序',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
name: "top",
|
|
261
|
+
propType: "number",
|
|
262
|
+
description: '显示的记录数量',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: "requestAdaptor",
|
|
266
|
+
propType: "string",
|
|
267
|
+
description: '发送适配器',
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: "adaptor",
|
|
271
|
+
propType: "string",
|
|
272
|
+
description: '接收适配器',
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
preview: {},
|
|
276
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
277
|
+
engines: ["amis"],
|
|
278
|
+
// settings for amis.
|
|
279
|
+
amis: {
|
|
280
|
+
name: 'steedos-airtable-grid',
|
|
281
|
+
icon: "fa-fw fa fa-list-alt"
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
var AmisAirtableGrid = __assign(__assign({}, config), { snippets: [
|
|
285
|
+
{
|
|
286
|
+
title: config.title,
|
|
287
|
+
screenshot: "",
|
|
288
|
+
schema: {
|
|
289
|
+
componentName: config.componentName,
|
|
290
|
+
props: config.preview
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
], amis: {
|
|
294
|
+
render: {
|
|
295
|
+
type: config.amis.name,
|
|
296
|
+
usage: "renderer",
|
|
297
|
+
weight: 1,
|
|
298
|
+
framework: "react"
|
|
299
|
+
},
|
|
300
|
+
plugin_disabled: {
|
|
301
|
+
rendererName: config.amis.name,
|
|
302
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
303
|
+
name: config.title,
|
|
304
|
+
description: config.title,
|
|
305
|
+
tags: [config.group],
|
|
306
|
+
order: -9999,
|
|
307
|
+
icon: config.amis.icon,
|
|
308
|
+
scaffold: {
|
|
309
|
+
type: config.amis.name,
|
|
310
|
+
label: config.title,
|
|
311
|
+
objectApiName: "${objectName}",
|
|
312
|
+
fields: ["name"],
|
|
313
|
+
// className: "sm:border sm:rounded sm:border-gray-300"
|
|
314
|
+
},
|
|
315
|
+
previewSchema: {
|
|
316
|
+
type: config.amis.name,
|
|
317
|
+
objectApiName: 'space_users',
|
|
318
|
+
fields: ["name"]
|
|
319
|
+
},
|
|
320
|
+
panelTitle: "设置",
|
|
321
|
+
panelControls: [
|
|
322
|
+
{
|
|
323
|
+
"type": "tabs",
|
|
324
|
+
tabsMode: 'line',
|
|
325
|
+
className: 'editor-prop-config-tabs',
|
|
326
|
+
linksClassName: 'editor-prop-config-tabs-links',
|
|
327
|
+
contentClassName: 'no-border editor-prop-config-tabs-cont',
|
|
328
|
+
tabs: [
|
|
329
|
+
{
|
|
330
|
+
"title": "属性",
|
|
331
|
+
className: 'p-none',
|
|
332
|
+
"body": [
|
|
333
|
+
{
|
|
334
|
+
"type": "collapse-group",
|
|
335
|
+
expandIconPosition: 'right',
|
|
336
|
+
expandIcon: {
|
|
337
|
+
type: 'icon',
|
|
338
|
+
icon: 'chevron-right'
|
|
339
|
+
},
|
|
340
|
+
className: 'ae-formItemControl',
|
|
341
|
+
"activeKey": [
|
|
342
|
+
"1",
|
|
343
|
+
],
|
|
344
|
+
"body": [
|
|
345
|
+
{
|
|
346
|
+
"type": "collapse",
|
|
347
|
+
headingClassName: 'ae-formItemControl-header',
|
|
348
|
+
bodyClassName: 'ae-formItemControl-body',
|
|
349
|
+
"key": "1",
|
|
350
|
+
"header": "基本",
|
|
351
|
+
"body": [
|
|
352
|
+
{
|
|
353
|
+
"type": "select",
|
|
354
|
+
"label": "对象",
|
|
355
|
+
"name": "objectApiName",
|
|
356
|
+
"searchable": true,
|
|
357
|
+
"multiple": false,
|
|
358
|
+
"source": {
|
|
359
|
+
"method": "get",
|
|
360
|
+
"url": "/service/api/amis-design/objects",
|
|
361
|
+
"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;",
|
|
362
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"\u5F53\u524D\u5BF9\u8C61\",\n name: \"${objectName}\",\n NAME_FIELD_KEY: \"name\"\n });\n return payload;\n "
|
|
363
|
+
},
|
|
364
|
+
"labelField": "label",
|
|
365
|
+
"valueField": "name",
|
|
366
|
+
"menuTpl": "",
|
|
367
|
+
"onEvent": {
|
|
368
|
+
"change": {
|
|
369
|
+
"actions": [
|
|
370
|
+
{
|
|
371
|
+
"componentId": "transfer-picker-fields",
|
|
372
|
+
"actionType": "setValue",
|
|
373
|
+
"args": {
|
|
374
|
+
"value": "${(NAME_FIELD_KEY || 'name')|asArray}"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
type: "transfer-picker",
|
|
383
|
+
name: "fields",
|
|
384
|
+
label: "显示的字段",
|
|
385
|
+
id: "transfer-picker-fields",
|
|
386
|
+
// mode: 'horizontal',
|
|
387
|
+
// horizontal: {
|
|
388
|
+
// left: 4,
|
|
389
|
+
// right: 8,
|
|
390
|
+
// justify: true
|
|
391
|
+
// },
|
|
392
|
+
// visibleOn: "this.fieldsControl === 'excluded'",
|
|
393
|
+
"options": [],
|
|
394
|
+
"multiple": true,
|
|
395
|
+
"source": {
|
|
396
|
+
"method": "get",
|
|
397
|
+
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${objectApiName}/fields/options",
|
|
398
|
+
"headers": {
|
|
399
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
400
|
+
},
|
|
401
|
+
"data": {
|
|
402
|
+
"objectName": "${objectName || 'space_users'}"
|
|
403
|
+
},
|
|
404
|
+
"requestAdaptor": "api.url = api.url.replaceAll('${objectName}',api.body.objectName); return api;",
|
|
405
|
+
"adaptor": "",
|
|
406
|
+
"sendOn": "this.objectApiName"
|
|
407
|
+
},
|
|
408
|
+
"className": "col-span-2 m-0",
|
|
409
|
+
"checkAll": true,
|
|
410
|
+
"searchable": true,
|
|
411
|
+
"sortable": true,
|
|
412
|
+
"joinValues": false,
|
|
413
|
+
"extractValue": true,
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
type: "editor",
|
|
417
|
+
name: "fieldsExtend",
|
|
418
|
+
label: "重写字段配置",
|
|
419
|
+
"options": {
|
|
420
|
+
"lineNumbers": "off"
|
|
421
|
+
},
|
|
422
|
+
// mode: 'horizontal',
|
|
423
|
+
// horizontal: {
|
|
424
|
+
// left: 4,
|
|
425
|
+
// right: 8,
|
|
426
|
+
// justify: true
|
|
427
|
+
// },
|
|
428
|
+
language: "json",
|
|
429
|
+
// visibleOn: "this.fieldsControl === 'included'"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
type: "button-group-select",
|
|
433
|
+
name: "crudMode",
|
|
434
|
+
label: "显示模式",
|
|
435
|
+
value: "table",
|
|
436
|
+
options: [
|
|
437
|
+
{
|
|
438
|
+
"label": "表格",
|
|
439
|
+
"value": "table"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"label": "卡片",
|
|
443
|
+
"value": "cards"
|
|
444
|
+
}
|
|
445
|
+
]
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"type": "collapse",
|
|
451
|
+
headingClassName: 'ae-formItemControl-header',
|
|
452
|
+
bodyClassName: 'ae-formItemControl-body',
|
|
453
|
+
"key": "2",
|
|
454
|
+
"header": "数据接口",
|
|
455
|
+
"body": [
|
|
456
|
+
{
|
|
457
|
+
type: "editor",
|
|
458
|
+
name: "requestAdaptor",
|
|
459
|
+
label: "发送适配器",
|
|
460
|
+
language: "javascript",
|
|
461
|
+
description: "函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
type: "editor",
|
|
465
|
+
name: "adaptor",
|
|
466
|
+
label: "接收适配器",
|
|
467
|
+
language: "javascript",
|
|
468
|
+
description: "函数签名: (payload, response, api) => payload"
|
|
469
|
+
}
|
|
470
|
+
]
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"type": "collapse",
|
|
474
|
+
headingClassName: 'ae-formItemControl-header',
|
|
475
|
+
bodyClassName: 'ae-formItemControl-body',
|
|
476
|
+
"key": "3",
|
|
477
|
+
"header": "高级",
|
|
478
|
+
"body": [
|
|
479
|
+
{
|
|
480
|
+
type: "editor",
|
|
481
|
+
name: "crudDataFilter",
|
|
482
|
+
label: "CRUD",
|
|
483
|
+
description: ""
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"type": "markdown",
|
|
487
|
+
"value": "如果需要对组件原始返回的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",
|
|
488
|
+
"className": "text-gray-500"
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
}
|
|
492
|
+
]
|
|
493
|
+
}
|
|
494
|
+
]
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"title": "外观",
|
|
498
|
+
className: 'p-none',
|
|
499
|
+
"body": [
|
|
500
|
+
{
|
|
501
|
+
"type": "collapse-group",
|
|
502
|
+
expandIconPosition: 'right',
|
|
503
|
+
expandIcon: {
|
|
504
|
+
type: 'icon',
|
|
505
|
+
icon: 'chevron-right'
|
|
506
|
+
},
|
|
507
|
+
className: 'ae-formItemControl',
|
|
508
|
+
"activeKey": [
|
|
509
|
+
"1"
|
|
510
|
+
],
|
|
511
|
+
"body": [
|
|
512
|
+
{
|
|
513
|
+
"type": "collapse",
|
|
514
|
+
headingClassName: 'ae-formItemControl-header',
|
|
515
|
+
bodyClassName: 'ae-formItemControl-body',
|
|
516
|
+
"key": "1",
|
|
517
|
+
"header": "CSS 类名",
|
|
518
|
+
"body": [
|
|
519
|
+
{
|
|
520
|
+
type: "input-text",
|
|
521
|
+
name: "className",
|
|
522
|
+
mode: 'horizontal',
|
|
523
|
+
horizontal: {
|
|
524
|
+
left: 4,
|
|
525
|
+
right: 8,
|
|
526
|
+
justify: true
|
|
527
|
+
},
|
|
528
|
+
label: "表格",
|
|
529
|
+
value: "my-2"
|
|
530
|
+
}
|
|
531
|
+
]
|
|
532
|
+
},
|
|
533
|
+
]
|
|
534
|
+
}
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"title": "过滤",
|
|
539
|
+
className: '',
|
|
540
|
+
"body": [
|
|
541
|
+
{
|
|
542
|
+
"type": "condition-builder",
|
|
543
|
+
"name": "amisCondition",
|
|
544
|
+
"label": "过滤条件",
|
|
545
|
+
"source": {
|
|
546
|
+
"method": "get",
|
|
547
|
+
"url": "/service/api/amis-metadata-listviews/getFilterFields?objectName=${objectApiName === '${objectName}' ? 'space_users' : objectApiName}",
|
|
548
|
+
"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;",
|
|
549
|
+
"dataType": "json"
|
|
550
|
+
},
|
|
551
|
+
"en-US": {
|
|
552
|
+
"label": "Filters Conditions"
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
]
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"title": "其他",
|
|
559
|
+
className: '',
|
|
560
|
+
"body": [
|
|
561
|
+
{
|
|
562
|
+
"type": "select",
|
|
563
|
+
"label": "排序字段",
|
|
564
|
+
"name": "sortField",
|
|
565
|
+
"searchable": true,
|
|
566
|
+
"multiple": false,
|
|
567
|
+
"source": {
|
|
568
|
+
"method": "get",
|
|
569
|
+
"data": {
|
|
570
|
+
"objectName": "${objectName || 'space_users'}",
|
|
571
|
+
},
|
|
572
|
+
"sendOn": "this.objectApiName",
|
|
573
|
+
"url": "/service/api/amis-metadata-objects/objects/${objectApiName}/fields/options",
|
|
574
|
+
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url.replaceAll('${objectName}',api.body.objectName); if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;"
|
|
575
|
+
},
|
|
576
|
+
"labelField": "label",
|
|
577
|
+
"valueField": "value",
|
|
578
|
+
"menuTpl": ""
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"type": "select",
|
|
582
|
+
"name": "sortOrder",
|
|
583
|
+
"label": "排序顺序",
|
|
584
|
+
"options": [{
|
|
585
|
+
"label": "升序",
|
|
586
|
+
"value": "asc"
|
|
587
|
+
}, {
|
|
588
|
+
"label": "倒序",
|
|
589
|
+
"value": "desc"
|
|
590
|
+
}]
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"type": "input-number",
|
|
594
|
+
"name": "top",
|
|
595
|
+
"label": "显示的记录数量",
|
|
596
|
+
"labelRemark": "即TOP,配置该属性后不再支持翻页,始终显示该属性值配置的记录数"
|
|
597
|
+
}
|
|
598
|
+
]
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
} });
|
|
605
|
+
|
|
606
|
+
/*
|
|
607
|
+
* @Author: baozhoutao@steedos.com
|
|
608
|
+
* @Date: 2022-08-31 16:32:35
|
|
609
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
610
|
+
* @LastEditTime: 2025-02-11 20:08:26
|
|
144
611
|
* @Description:
|
|
145
612
|
*/
|
|
146
|
-
var components = [AgGrid];
|
|
613
|
+
var components = [AgGrid, AmisTablesGrid, AmisAirtableGrid];
|
|
147
614
|
var componentList = [
|
|
148
615
|
{
|
|
149
616
|
title: "华炎魔方",
|
|
150
617
|
icon: "",
|
|
151
|
-
children:
|
|
618
|
+
children: components
|
|
152
619
|
}
|
|
153
620
|
];
|
|
154
621
|
var meta = {
|