@steedos/standard-object-database 2.5.1 → 2.5.2

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,10 +88,14 @@ fields:
88
88
  label: Reference to
89
89
  help:
90
90
  description:
91
- # reference_to_field:
92
- # label: Reference to field
93
- # help:
94
- # description:
91
+ depend_on:
92
+ label: Dependent Fields
93
+ help: If the value of the dependent field changes, the option value of the current field will also change accordingly。
94
+ description:
95
+ reference_to_field:
96
+ label: Reference to field
97
+ help: The value of the associated object saved to the current object field; For example, after object A is associated with object B, when A1 record is associated with B1 record, B1 record will be stored by default_ Save the ID in the A1 record. If the foreign key field is modified, the 'foreign key field' will be replaced_ Store the ID in the A1 record.
98
+ description: The default is the primary key, and the default value is _id.
95
99
  filtersFunction:
96
100
  label: filters Function
97
101
  help:
@@ -81,10 +81,14 @@ fields:
81
81
  label: 引用对象
82
82
  help:
83
83
  description:
84
- # reference_to_field:
85
- # label: 关联字段
86
- # help:
87
- # description:
84
+ depend_on:
85
+ label: 依赖的字段
86
+ help: 联动字段;例如:A是B依赖的字段,当A字段值发生改变,B字段选项值会随之改变。
87
+ description:
88
+ reference_to_field:
89
+ label: 外键字段
90
+ help: 关联的对象保存到当前对象字段的值;例如:A对象关联B对象后,当A1记录关联了B1记录,默认会存B1记录的_id存到A1记录中。如果修改了外键字段后,会将“外键字段”替换_id存储到A1记录中。
91
+ description: '默认为主键,默认值是_id'
88
92
  filtersFunction:
89
93
  label: 过滤器函数
90
94
  help:
@@ -201,6 +201,7 @@ fields:
201
201
  type: lookup
202
202
  group: Advanced
203
203
  label: 依赖的字段
204
+ inlineHelpText: 联动字段;例如:A是B依赖的字段,当A字段值发生改变,B字段选项值会随之改变。
204
205
  reference_to: object_fields
205
206
  reference_to_field: name
206
207
  multiple: true
@@ -219,7 +220,8 @@ fields:
219
220
  reference_to_field:
220
221
  type: lookup
221
222
  group: Advanced
222
- label: 关联的字段
223
+ label: 外键字段
224
+ inlineHelpText: 关联的对象保存到当前对象字段的值;例如:A对象关联B对象后,当A1记录关联了B1记录,默认会存B1记录的_id存到A1记录中。如果修改了外键字段后,会将“外键字段”替换_id存储到A1记录中。
223
225
  description: '默认为主键'
224
226
  reference_to: object_fields
225
227
  reference_to_field: name
@@ -234,7 +236,7 @@ fields:
234
236
  return ['_id', '=', 'no']
235
237
  }
236
238
  }
237
- sort_no: 450
239
+ sort_no: 440
238
240
  multiple:
239
241
  type: boolean
240
242
  label: Multiple
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,5 +15,5 @@
15
15
  },
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "793bcd4718210c693aa52d0280e9b1b2a8d3230e"
18
+ "gitHead": "cdf76ccec2a8c9acb954f15e07a1c7ca0e62077e"
19
19
  }