@steedos/schemas 2.6.8-beta.1 → 2.6.8-beta.11

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.
package/field/schema.json CHANGED
@@ -141,6 +141,10 @@
141
141
  "type": "boolean",
142
142
  "description": "是否只读"
143
143
  },
144
+ "static": {
145
+ "type": "boolean",
146
+ "description": "静态模式,显示为只读,但是可以通过默认值,自动填充或自定义脚本设置该字段值"
147
+ },
144
148
  "hidden": {
145
149
  "type": "boolean",
146
150
  "description": "是否隐藏"
@@ -254,6 +258,30 @@
254
258
  ],
255
259
  "description": "字段选项"
256
260
  },
261
+ "auto_fill_mapping": {
262
+ "anyOf": [
263
+ {
264
+ "items": {
265
+ "type": "object",
266
+ "required": ["from", "to"],
267
+ "additionalProperties": false,
268
+ "properties": {
269
+ "from" : {
270
+ "type": "string",
271
+ "title": "从:引用对象中的字段"
272
+ },
273
+ "to" : {
274
+ "type": "string",
275
+ "title": "填充到:当前表单字段"
276
+ }
277
+ }
278
+ },
279
+ "type": "array",
280
+ "title": "自动填充规则,选择数据后,将按此规则中的映射关系把引用对象中的字段值自动填充到当前表单字段中。"
281
+ }
282
+ ],
283
+ "description": "自动填充规则,选择数据后,将按此规则中的映射关系把引用对象中的字段值自动填充到当前表单字段中。"
284
+ },
257
285
  "description": {
258
286
  "type": "string",
259
287
  "description": "字段描述"
@@ -459,6 +459,10 @@
459
459
  "type": "boolean",
460
460
  "description": "是否只读"
461
461
  },
462
+ "static": {
463
+ "type": "boolean",
464
+ "description": "静态模式,显示为只读,但是可以通过默认值,自动填充或自定义脚本设置该字段值"
465
+ },
462
466
  "hidden": {
463
467
  "type": "boolean",
464
468
  "description": "是否隐藏"
@@ -577,6 +581,30 @@
577
581
  ],
578
582
  "description": "字段选项"
579
583
  },
584
+ "auto_fill_mapping": {
585
+ "anyOf": [
586
+ {
587
+ "items": {
588
+ "type": "object",
589
+ "required": ["from", "to"],
590
+ "additionalProperties": false,
591
+ "properties": {
592
+ "from" : {
593
+ "type": "string",
594
+ "title": "从:引用对象中的字段"
595
+ },
596
+ "to" : {
597
+ "type": "string",
598
+ "title": "填充到:当前表单字段"
599
+ }
600
+ }
601
+ },
602
+ "type": "array",
603
+ "title": "自动填充规则,选择数据后,将按此规则中的映射关系把引用对象中的字段值自动填充到当前表单字段中。"
604
+ }
605
+ ],
606
+ "description": "自动填充规则,选择数据后,将按此规则中的映射关系把引用对象中的字段值自动填充到当前表单字段中。"
607
+ },
580
608
  "description": {
581
609
  "type": "string",
582
610
  "description": "字段描述"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/schemas",
3
- "version": "2.6.8-beta.1",
3
+ "version": "2.6.8-beta.11",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/steedos/schemas.git",
6
6
  "author": "sunhaolin <sunhaolin@hotoa.com>",
@@ -9,5 +9,5 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "gitHead": "73f9e280508031703d48fe2d339778aa5579bff1"
12
+ "gitHead": "d389074327d16ab7c0aed0ef8dbcf2fde94350dc"
13
13
  }