@steedos/service-plugin-amis 2.7.4-beta.6 → 2.7.4-beta.7
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.
|
@@ -268,6 +268,40 @@
|
|
|
268
268
|
},
|
|
269
269
|
"autoComplete": ""
|
|
270
270
|
}
|
|
271
|
+
},
|
|
272
|
+
"visible_on": {
|
|
273
|
+
"amis": {
|
|
274
|
+
"type": "control",
|
|
275
|
+
"body": [
|
|
276
|
+
{
|
|
277
|
+
"type": "service",
|
|
278
|
+
"id": "u:edcd865de7d8",
|
|
279
|
+
"body": [
|
|
280
|
+
{
|
|
281
|
+
"type": "input-formula",
|
|
282
|
+
"name": "visible_on",
|
|
283
|
+
"evalMode": false,
|
|
284
|
+
"variableMode": "tabs",
|
|
285
|
+
"variables": "${visibleOnVariables}",
|
|
286
|
+
"visibleOn": "${visibleOnVariables}",
|
|
287
|
+
"id": "u:618105d5bfad",
|
|
288
|
+
"labelClassName": "none"
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"api": {
|
|
292
|
+
"method": "get",
|
|
293
|
+
"url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/apps/fields/options",
|
|
294
|
+
"cache": 30000,
|
|
295
|
+
"adaptor": "const visibleOnVariables = SteedosUI.getFormulaVariables(payload.data.options);\nconst defaultValueVariables = [visibleOnVariables[1]];\npayload = {\n data: {\n visibleOnVariables,\n defaultValueVariables\n }\n};\nreturn payload;",
|
|
296
|
+
"headers": {
|
|
297
|
+
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"dsType": "api"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"id": "u:996ef29c6851"
|
|
304
|
+
}
|
|
271
305
|
}
|
|
272
306
|
},
|
|
273
307
|
"enableTabs": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-plugin-amis",
|
|
3
|
-
"version": "2.7.4-beta.
|
|
3
|
+
"version": "2.7.4-beta.7",
|
|
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": "ba0443a131767f7908994d0507e12b83d590b8f9",
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tailwindcss": "3.2.4"
|
|
19
19
|
}
|