@steedos/service-plugin-amis 2.4.0-beta.36 → 2.4.0-beta.38
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.
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"id": "u:4e769995f638",
|
|
89
89
|
"source": {
|
|
90
90
|
"method": "get",
|
|
91
|
-
"url": "/service/api/amis-metadata-objects/objects/options",
|
|
91
|
+
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/options",
|
|
92
92
|
"headers": {
|
|
93
93
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
94
94
|
}
|
|
@@ -228,7 +228,8 @@
|
|
|
228
228
|
"id": "u:a0027ac6f8c1",
|
|
229
229
|
"closeOnEsc": false,
|
|
230
230
|
"closeOnOutside": false,
|
|
231
|
-
"showCloseButton": true
|
|
231
|
+
"showCloseButton": true,
|
|
232
|
+
"size": "md"
|
|
232
233
|
},
|
|
233
234
|
"label": "设置按钮",
|
|
234
235
|
"id": "u:1ac8afc8a9bb"
|
|
@@ -241,7 +242,7 @@
|
|
|
241
242
|
"id": "u:bef2e378d96f",
|
|
242
243
|
"api": {
|
|
243
244
|
"method": "get",
|
|
244
|
-
"url": "/service/api/amis-metadata-objects/objects/${object_name}/actions/options",
|
|
245
|
+
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${object_name}/actions/options",
|
|
245
246
|
"adaptor": "let data = payload.data;\ndata.buttons_options = data.options;\ndelete data.options\npayload.data = data;\nreturn payload;\n",
|
|
246
247
|
"sendOn": "!!this.object_name",
|
|
247
248
|
"headers": {
|
|
@@ -496,7 +497,7 @@
|
|
|
496
497
|
"affixFooter": false,
|
|
497
498
|
"api": {
|
|
498
499
|
"method": "get",
|
|
499
|
-
"url": "/service/api/amis-metadata-objects/objects/${object_name}/fields/layout_options",
|
|
500
|
+
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${object_name}/fields/layout_options",
|
|
500
501
|
"adaptor": "let data = payload.data;\ndata.fields_options = data.options;\ndata.field_groups_options = lodash.uniq(lodash.compact(lodash.map(data.options, \"group\"))) || [];\ndelete data.options\npayload.data = data;\nreturn payload;\n",
|
|
501
502
|
"sendOn": "!!this.object_name",
|
|
502
503
|
"data": null,
|
|
@@ -536,7 +537,7 @@
|
|
|
536
537
|
"id": "u:dbadaff47153",
|
|
537
538
|
"api": {
|
|
538
539
|
"method": "get",
|
|
539
|
-
"url": "/service/api/amis-metadata-objects/objects/${object_name}/relatedLists/options",
|
|
540
|
+
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${object_name}/relatedLists/options",
|
|
540
541
|
"sendOn": "!!this.object_name",
|
|
541
542
|
"adaptor": "let data = payload.data;\ndata.related_lists_options = data.options;\ndelete data.options\npayload.data = data;\nreturn payload;\n",
|
|
542
543
|
"headers": {
|
|
@@ -302,9 +302,10 @@ module.exports = {
|
|
|
302
302
|
actionsArr.push(action)
|
|
303
303
|
})
|
|
304
304
|
return _.uniq(_.compact(_.map(_.sortBy(actionsArr, "sort"), (action)=>{
|
|
305
|
+
const label = action.label || action.name
|
|
305
306
|
return {
|
|
306
307
|
value: action.name,
|
|
307
|
-
label:
|
|
308
|
+
label: `${label}(${action.name})`
|
|
308
309
|
}
|
|
309
310
|
})));
|
|
310
311
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.38",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:tailwind-base && yarn build:tailwind",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@steedos-widgets/amis-lib": "^1.0.22"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "5f12dbff1ba92abe7fa9e4b050412cd8fa461b0b",
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"tailwindcss": "3.2.4"
|
|
22
22
|
}
|
|
@@ -69,6 +69,10 @@ body.steedos .top-0 {
|
|
|
69
69
|
top: 0px
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
body.steedos .bottom-0 {
|
|
73
|
+
bottom: 0px
|
|
74
|
+
}
|
|
75
|
+
|
|
72
76
|
body.steedos .z-40 {
|
|
73
77
|
z-index: 40
|
|
74
78
|
}
|
|
@@ -89,6 +93,10 @@ body.steedos .m-0 {
|
|
|
89
93
|
margin: 0px
|
|
90
94
|
}
|
|
91
95
|
|
|
96
|
+
body.steedos .m-3 {
|
|
97
|
+
margin: 0.75rem
|
|
98
|
+
}
|
|
99
|
+
|
|
92
100
|
body.steedos .mx-4 {
|
|
93
101
|
margin-left: 1rem;
|
|
94
102
|
margin-right: 1rem
|
|
@@ -155,6 +163,10 @@ body.steedos .hidden {
|
|
|
155
163
|
display: none
|
|
156
164
|
}
|
|
157
165
|
|
|
166
|
+
body.steedos .h-full {
|
|
167
|
+
height: 100%
|
|
168
|
+
}
|
|
169
|
+
|
|
158
170
|
body.steedos .h-\[50px\] {
|
|
159
171
|
height: 50px
|
|
160
172
|
}
|
|
@@ -163,10 +175,6 @@ body.steedos .h-10 {
|
|
|
163
175
|
height: 2.5rem
|
|
164
176
|
}
|
|
165
177
|
|
|
166
|
-
body.steedos .h-full {
|
|
167
|
-
height: 100%
|
|
168
|
-
}
|
|
169
|
-
|
|
170
178
|
body.steedos .w-full {
|
|
171
179
|
width: 100%
|
|
172
180
|
}
|
|
@@ -187,6 +195,14 @@ body.steedos .w-6\/12 {
|
|
|
187
195
|
width: 50%
|
|
188
196
|
}
|
|
189
197
|
|
|
198
|
+
body.steedos .w-72 {
|
|
199
|
+
width: 18rem
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
body.steedos .w-1\/2 {
|
|
203
|
+
width: 50%
|
|
204
|
+
}
|
|
205
|
+
|
|
190
206
|
body.steedos .min-w-max {
|
|
191
207
|
min-width: -moz-max-content;
|
|
192
208
|
min-width: max-content
|
|
@@ -269,11 +285,21 @@ body.steedos .border-slate-200 {
|
|
|
269
285
|
border-color: rgb(226 232 240 / var(--tw-border-opacity))
|
|
270
286
|
}
|
|
271
287
|
|
|
288
|
+
body.steedos .border-gray-300 {
|
|
289
|
+
--tw-border-opacity: 1;
|
|
290
|
+
border-color: rgb(209 213 219 / var(--tw-border-opacity))
|
|
291
|
+
}
|
|
292
|
+
|
|
272
293
|
body.steedos .bg-white {
|
|
273
294
|
--tw-bg-opacity: 1;
|
|
274
295
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity))
|
|
275
296
|
}
|
|
276
297
|
|
|
298
|
+
body.steedos .bg-gray-100 {
|
|
299
|
+
--tw-bg-opacity: 1;
|
|
300
|
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity))
|
|
301
|
+
}
|
|
302
|
+
|
|
277
303
|
body.steedos .p-0 {
|
|
278
304
|
padding: 0px
|
|
279
305
|
}
|