@steedos/service-plugin-amis 2.3.2-beta.10 → 2.3.2-beta.11
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.
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"cache": 100,
|
|
34
34
|
"adaptor": "var data = payload.data.data[0] || { _filters_type_controller: 'conditions' };\n//数据格式转换\nif (data) {\n data.columns = lodash.map(data.columns, 'field');\n data.sort = lodash.map(data.sort, (item) => {\n return `${item.field_name}:${item.order || 'asc'}`\n });\n data.mobile_columns = lodash.map(data.mobile_columns, 'field');\n\n if (data.filters && lodash.isString(data.filters)) {\n try {\n data.filters = JSON.parse(data.filters);\n }catch(e){}\n }\n\n if (data.filters && lodash.isString(data.filters)) {\n data._filters_type_controller = 'function';\n } else {\n data._filters_type_controller = 'conditions'\n }\n\n if (data._filters_type_controller === 'conditions') {\n data._filters_conditions = window.amisConvert.filtersToConditions(data.filters || []);\n } else {\n data._filters_function = data.filters;\n }\n}\npayload.data = data;\ndelete payload.extensions;\nreturn payload;",
|
|
35
35
|
"data": {
|
|
36
|
-
"query": "{data:object_listviews(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,label,name,object_name,filter_scope,shared,show_count,columns,filter_fields,sort,filters,filter_logic,mobile_columns,sort_no,created,created_by:created_by__expand{_id,name},modified,modified_by:modified_by__expand{_id,name},_display{shared,show_count,created,modified}}}"
|
|
36
|
+
"query": "{data:object_listviews(filters:[\"_id\", \"=\", \"${recordId}\"]){_id,label,name,object_name,filter_scope,shared,show_count,columns,filter_fields,sort,filters,filter_logic,mobile_columns,sort_no,created,created_by:created_by__expand{_id,name},modified,modified_by:modified_by__expand{_id,name},enable_amis_schema,amis_schema,_display{shared,show_count,created,modified}}}"
|
|
37
37
|
},
|
|
38
38
|
"sendOn": "!!this.recordId",
|
|
39
39
|
"replaceData": false,
|
|
@@ -398,6 +398,38 @@
|
|
|
398
398
|
"title": "Mobile"
|
|
399
399
|
},
|
|
400
400
|
"id": "u:51174159a42e"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"type": "fieldSet",
|
|
404
|
+
"title": "高级",
|
|
405
|
+
"collapsable": true,
|
|
406
|
+
"body": [
|
|
407
|
+
{
|
|
408
|
+
"name": "enable_amis_schema",
|
|
409
|
+
"type": "checkbox",
|
|
410
|
+
"tpl": null,
|
|
411
|
+
"className": "m-0",
|
|
412
|
+
"labelClassName": "text-left",
|
|
413
|
+
"option": "启用",
|
|
414
|
+
"en-US": {
|
|
415
|
+
"option": "Enable"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"type": "editor",
|
|
420
|
+
"name": "amis_schema",
|
|
421
|
+
"label": "Amis Schema",
|
|
422
|
+
"required": false,
|
|
423
|
+
"language": "json",
|
|
424
|
+
"className": "col-span-2 m-1",
|
|
425
|
+
"labelClassName": "text-left"
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"collapsed": true,
|
|
429
|
+
"visibleOn": "!!this.object_name",
|
|
430
|
+
"en-US": {
|
|
431
|
+
"title": "Advanced"
|
|
432
|
+
}
|
|
401
433
|
}
|
|
402
434
|
],
|
|
403
435
|
"panelClassName": "m-0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.3.2-beta.
|
|
3
|
+
"version": "2.3.2-beta.11",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node .scripts/build.tailwind.js"
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@steedos-widgets/amis-lib": "^0.0.10"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "d12ce4f403be88d8cce5e7d0de8892c9b92b3899"
|
|
17
17
|
}
|