@steedos/standard-object-database 2.7.0-beta.16 → 2.7.0-beta.18
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.
|
@@ -172,7 +172,7 @@
|
|
|
172
172
|
"name": "formula",
|
|
173
173
|
"evalMode": false,
|
|
174
174
|
"variableMode": "tabs",
|
|
175
|
-
"variables": "${
|
|
175
|
+
"variables": "${VisibleVariables}",
|
|
176
176
|
"id": "u:618105d5bfad"
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"api": {
|
|
186
186
|
"method": "get",
|
|
187
187
|
"url": "${context.rootUrl}/service/api/@${_master.record.name}/uiSchema",
|
|
188
|
-
"adaptor": "
|
|
188
|
+
"adaptor": "const VisibleVariables = SteedosUI.getFormulaVariables(payload.fields);\nconst defaultVariables = [VisibleVariables[1]];\npayload = {\n data: {\n VisibleVariables,\n defaultVariables\n }\n};\nreturn payload;",
|
|
189
189
|
"headers": {
|
|
190
190
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
191
191
|
}
|
|
@@ -230,6 +230,8 @@ module.exports = {
|
|
|
230
230
|
"evalMode": false,
|
|
231
231
|
"type": "input-formula",
|
|
232
232
|
"placeholder": "公式",
|
|
233
|
+
"variableMode": "tabs",
|
|
234
|
+
"variables": "${defaultVariables}", //公式编辑器内引用的变量,在对象字段表单微页面内定义
|
|
233
235
|
// "disabledOn": "!!this.defaultValue && !!this.defaultValue.toString()",
|
|
234
236
|
"className": {
|
|
235
237
|
"defaultValue_field_formula": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.7.0-beta.
|
|
3
|
+
"version": "2.7.0-beta.18",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@steedos-widgets/amis-lib": "^1.0.22",
|
|
15
|
-
"@steedos/metadata-core": "2.7.0-beta.
|
|
16
|
-
"@steedos/standard-objects": "2.7.0-beta.
|
|
15
|
+
"@steedos/metadata-core": "2.7.0-beta.18",
|
|
16
|
+
"@steedos/standard-objects": "2.7.0-beta.18"
|
|
17
17
|
},
|
|
18
18
|
"repository": {},
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "4284d0106ee01020407b72d0b209a9df8284ba93"
|
|
21
21
|
}
|