@steedos/service-plugin-amis 2.6.6 → 2.6.7-beta.10
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.
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
"objectApiName": "object_listviews",
|
|
8
8
|
"recordId": "${recordId}",
|
|
9
9
|
"className": "sm:rounded sm:border-gray-300 bg-white",
|
|
10
|
+
"layout": "normal",
|
|
10
11
|
"form": {
|
|
11
12
|
"id": "form_object_listviews"
|
|
12
13
|
},
|
|
@@ -268,6 +269,12 @@
|
|
|
268
269
|
"multiple": true,
|
|
269
270
|
"id": "u:adb91066539e"
|
|
270
271
|
}
|
|
272
|
+
},
|
|
273
|
+
"shared_to": {
|
|
274
|
+
"amis":{
|
|
275
|
+
"type": "radios",
|
|
276
|
+
"inline": false
|
|
277
|
+
}
|
|
271
278
|
}
|
|
272
279
|
},
|
|
273
280
|
"initApiAdaptor": "\nvar data;\nif (recordId) {\n data = payload.data || { _filters_type_controller: 'conditions' };\n //数据格式转换\n if (data) {\n data.sort = lodash.map(data.sort, (item) => {\n return item.field_name + \":\" + item.order;\n });\n data.searchable_fields = lodash.map(data.searchable_fields, '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 }\n} else {\n const uiSchema = api.body.uiSchema;\n const defaultData = api.body.defaultData;\n let defaultValues = {};\n _.each(uiSchema && uiSchema.fields, function (field) {\n var value = SteedosUI.getFieldDefaultValue(field, api.body.global);\n if (!_.isNil(value)) {\n defaultValues[field.name] = value;\n }\n });\n if (defaultData && _.isObject(defaultData) && !_.isArray(defaultData)) {\n data = Object.assign({}, defaultValues, defaultData)\n }\n}\nfor (key in data) {\n if (data[key] === null) {\n delete data[key];\n }\n}\npayload.data = data;\ndelete payload.extensions; if (data.is_enable != false) { data.is_enable = true; };\nreturn payload;",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.7-beta.10",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:tailwind-base && yarn build:tailwind",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "1361c449164e5a04d38a14295689bbff8eb76e38",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
float: right
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.m-0 {
|
|
87
|
-
margin: 0px
|
|
88
|
-
}
|
|
89
|
-
|
|
90
86
|
.m-1 {
|
|
91
87
|
margin: 0.25rem
|
|
92
88
|
}
|
|
93
89
|
|
|
90
|
+
.m-0 {
|
|
91
|
+
margin: 0px
|
|
92
|
+
}
|
|
93
|
+
|
|
94
94
|
.-m-8 {
|
|
95
95
|
margin: -2rem
|
|
96
96
|
}
|
|
@@ -114,14 +114,18 @@
|
|
|
114
114
|
margin-right: -2.75rem
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
.mt-
|
|
118
|
-
margin-top: 0.
|
|
117
|
+
.mt-3 {
|
|
118
|
+
margin-top: 0.75rem
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.mb-4 {
|
|
122
122
|
margin-bottom: 1rem
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
.mt-2 {
|
|
126
|
+
margin-top: 0.5rem
|
|
127
|
+
}
|
|
128
|
+
|
|
125
129
|
.mr-4 {
|
|
126
130
|
margin-right: 1rem
|
|
127
131
|
}
|
|
@@ -495,10 +499,6 @@
|
|
|
495
499
|
}
|
|
496
500
|
|
|
497
501
|
@media (min-width: 640px) {
|
|
498
|
-
.sm\:mt-3 {
|
|
499
|
-
margin-top: 0.75rem
|
|
500
|
-
}
|
|
501
|
-
|
|
502
502
|
.sm\:rounded-lg {
|
|
503
503
|
border-radius: 0.5rem
|
|
504
504
|
}
|