amis 1.9.1-beta.1 → 1.9.1-beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. package/lib/RootRenderer.js +10 -2
  2. package/lib/RootRenderer.js.map +2 -2
  3. package/lib/Schema.d.ts +3 -2
  4. package/lib/Schema.js.map +1 -1
  5. package/lib/components/Alert2.d.ts +10 -10
  6. package/lib/components/Button.d.ts +11 -10
  7. package/lib/components/Button.js +2 -2
  8. package/lib/components/Button.js.map +2 -2
  9. package/lib/components/CalendarMobile.d.ts +40 -40
  10. package/lib/components/Checkbox.js +1 -1
  11. package/lib/components/Checkbox.js.map +2 -2
  12. package/lib/components/ContextMenu.d.ts +4 -0
  13. package/lib/components/ContextMenu.js +23 -7
  14. package/lib/components/ContextMenu.js.map +2 -2
  15. package/lib/components/DatePicker.d.ts +40 -40
  16. package/lib/components/DateRangePicker.d.ts +40 -40
  17. package/lib/components/Form.d.ts +22 -0
  18. package/lib/components/Form.js +44 -0
  19. package/lib/components/Form.js.map +13 -0
  20. package/lib/components/FormField.d.ts +65 -0
  21. package/lib/components/FormField.js +48 -0
  22. package/lib/components/FormField.js.map +13 -0
  23. package/lib/components/InputBox.d.ts +10 -10
  24. package/lib/components/InputBox.js +4 -3
  25. package/lib/components/InputBox.js.map +2 -2
  26. package/lib/components/InputBoxWithSuggestion.d.ts +280 -0
  27. package/lib/components/InputBoxWithSuggestion.js +65 -0
  28. package/lib/components/InputBoxWithSuggestion.js.map +13 -0
  29. package/lib/components/ListGroup.d.ts +10 -10
  30. package/lib/components/PickerContainer.d.ts +4 -2
  31. package/lib/components/PickerContainer.js +28 -5
  32. package/lib/components/PickerContainer.js.map +2 -2
  33. package/lib/components/Radios.d.ts +10 -10
  34. package/lib/components/ResultBox.d.ts +40 -40
  35. package/lib/components/SearchBox.d.ts +40 -40
  36. package/lib/components/Select.d.ts +195 -202
  37. package/lib/components/Select.js +7 -3
  38. package/lib/components/Select.js.map +2 -2
  39. package/lib/components/Textarea.d.ts +568 -2
  40. package/lib/components/Textarea.js +129 -1
  41. package/lib/components/Textarea.js.map +2 -2
  42. package/lib/components/Toast.js +11 -9
  43. package/lib/components/Toast.js.map +2 -2
  44. package/lib/components/UserSelect.d.ts +500 -0
  45. package/lib/components/UserSelect.js +559 -0
  46. package/lib/components/UserSelect.js.map +13 -0
  47. package/lib/components/UserTabSelect.d.ts +320 -0
  48. package/lib/components/UserTabSelect.js +163 -0
  49. package/lib/components/UserTabSelect.js.map +13 -0
  50. package/lib/components/WithRemoteConfig.d.ts +7 -0
  51. package/lib/components/WithRemoteConfig.js +17 -11
  52. package/lib/components/WithRemoteConfig.js.map +2 -2
  53. package/lib/components/calendar/DaysView.d.ts +26 -1
  54. package/lib/components/calendar/DaysView.js +48 -14
  55. package/lib/components/calendar/DaysView.js.map +2 -2
  56. package/lib/components/calendar/TimeView.d.ts +1 -1
  57. package/lib/components/calendar/TimeView.js +8 -2
  58. package/lib/components/calendar/TimeView.js.map +2 -2
  59. package/lib/components/icons.d.ts +7 -1
  60. package/lib/components/icons.js +17 -1
  61. package/lib/components/icons.js.map +2 -2
  62. package/lib/components/index.d.ts +2 -1
  63. package/lib/components/index.js +3 -1
  64. package/lib/components/index.js.map +2 -2
  65. package/lib/components/json-schema/Array.d.ts +3 -0
  66. package/lib/components/json-schema/Array.js +125 -0
  67. package/lib/components/json-schema/Array.js.map +13 -0
  68. package/lib/components/json-schema/Item.d.ts +3 -0
  69. package/lib/components/json-schema/Item.js +34 -0
  70. package/lib/components/json-schema/Item.js.map +13 -0
  71. package/lib/components/json-schema/Object.d.ts +3 -0
  72. package/lib/components/json-schema/Object.js +178 -0
  73. package/lib/components/json-schema/Object.js.map +13 -0
  74. package/lib/components/json-schema/index.d.ts +279 -0
  75. package/lib/components/json-schema/index.js +16 -0
  76. package/lib/components/json-schema/index.js.map +13 -0
  77. package/lib/components/schema-editor/Array.js +2 -2
  78. package/lib/components/schema-editor/Array.js.map +2 -2
  79. package/lib/components/schema-editor/Common.d.ts +2 -0
  80. package/lib/components/schema-editor/Common.js +39 -3
  81. package/lib/components/schema-editor/Common.js.map +2 -2
  82. package/lib/components/schema-editor/Object.js +2 -2
  83. package/lib/components/schema-editor/Object.js.map +2 -2
  84. package/lib/components/schema-editor/index.d.ts +45 -41
  85. package/lib/components/schema-editor/index.js +5 -5
  86. package/lib/components/schema-editor/index.js.map +2 -2
  87. package/lib/hooks/use-validation-resolver.d.ts +1 -0
  88. package/lib/hooks/use-validation-resolver.js +49 -0
  89. package/lib/hooks/use-validation-resolver.js.map +13 -0
  90. package/lib/icons/department.js +17 -0
  91. package/lib/icons/menu.js +9 -0
  92. package/lib/icons/post.js +15 -0
  93. package/lib/icons/role.js +14 -0
  94. package/lib/icons/user-remove.js +12 -0
  95. package/lib/index.d.ts +2 -0
  96. package/lib/index.js +3 -1
  97. package/lib/index.js.map +2 -2
  98. package/lib/locale/de-DE.js +11 -1
  99. package/lib/locale/de-DE.js.map +2 -2
  100. package/lib/locale/en-US.js +12 -1
  101. package/lib/locale/en-US.js.map +2 -2
  102. package/lib/locale/zh-CN.js +14 -3
  103. package/lib/locale/zh-CN.js.map +2 -2
  104. package/lib/renderers/Action.js +25 -11
  105. package/lib/renderers/Action.js.map +2 -2
  106. package/lib/renderers/CRUD.js +5 -1
  107. package/lib/renderers/CRUD.js.map +2 -2
  108. package/lib/renderers/Dialog.js +9 -3
  109. package/lib/renderers/Dialog.js.map +2 -2
  110. package/lib/renderers/Drawer.js +5 -1
  111. package/lib/renderers/Drawer.js.map +2 -2
  112. package/lib/renderers/Form/InputDate.d.ts +2 -2
  113. package/lib/renderers/Form/InputDate.js.map +2 -2
  114. package/lib/renderers/Form/JSONSchema.d.ts +23 -0
  115. package/lib/renderers/Form/JSONSchema.js +44 -0
  116. package/lib/renderers/Form/JSONSchema.js.map +13 -0
  117. package/lib/renderers/Form/JSONSchemaEditor.d.ts +2 -3
  118. package/lib/renderers/Form/JSONSchemaEditor.js +9 -24
  119. package/lib/renderers/Form/JSONSchemaEditor.js.map +2 -2
  120. package/lib/renderers/Form/Textarea.d.ts +1 -8
  121. package/lib/renderers/Form/Textarea.js +11 -75
  122. package/lib/renderers/Form/Textarea.js.map +2 -2
  123. package/lib/renderers/Form/UserSelect.d.ts +54 -0
  124. package/lib/renderers/Form/UserSelect.js +197 -0
  125. package/lib/renderers/Form/UserSelect.js.map +13 -0
  126. package/lib/renderers/Form/index.d.ts +1 -1
  127. package/lib/renderers/Form/index.js +88 -42
  128. package/lib/renderers/Form/index.js.map +2 -2
  129. package/lib/renderers/Log.d.ts +13 -1
  130. package/lib/renderers/Log.js +82 -16
  131. package/lib/renderers/Log.js.map +2 -2
  132. package/lib/renderers/Page.js +5 -1
  133. package/lib/renderers/Page.js.map +2 -2
  134. package/lib/renderers/Service.js +5 -1
  135. package/lib/renderers/Service.js.map +2 -2
  136. package/lib/renderers/Wizard.js +37 -14
  137. package/lib/renderers/Wizard.js.map +2 -2
  138. package/lib/store/form.js +65 -45
  139. package/lib/store/form.js.map +2 -2
  140. package/lib/themes/ang-ie11.css +561 -21
  141. package/lib/themes/ang.css +538 -9
  142. package/lib/themes/ang.css.map +1 -1
  143. package/lib/themes/antd-ie11.css +561 -21
  144. package/lib/themes/antd.css +538 -9
  145. package/lib/themes/antd.css.map +1 -1
  146. package/lib/themes/cxd-ie11.css +561 -21
  147. package/lib/themes/cxd.css +538 -9
  148. package/lib/themes/cxd.css.map +1 -1
  149. package/lib/themes/dark-ie11.css +561 -21
  150. package/lib/themes/dark.css +538 -9
  151. package/lib/themes/dark.css.map +1 -1
  152. package/lib/themes/default-ie11.css +561 -21
  153. package/lib/themes/default.css +538 -9
  154. package/lib/themes/default.css.map +1 -1
  155. package/lib/utils/api.js +1 -1
  156. package/lib/utils/api.js.map +2 -2
  157. package/lib/utils/renderer-event.js.map +2 -2
  158. package/package.json +2 -1
  159. package/schema.json +539 -3
  160. package/scss/_properties.scss +20 -8
  161. package/scss/components/_input-box.scss +22 -1
  162. package/scss/components/_json-schema.scss +124 -0
  163. package/scss/components/_log.scss +37 -5
  164. package/scss/components/form/_date-range.scss +1 -0
  165. package/scss/components/form/_select.scss +9 -0
  166. package/scss/components/form/_user-select.scss +422 -0
  167. package/scss/themes/_common.scss +2 -0
  168. package/sdk/ang-ie11.css +651 -21
  169. package/sdk/ang.css +628 -9
  170. package/sdk/antd-ie11.css +651 -21
  171. package/sdk/antd.css +628 -9
  172. package/sdk/barcode.js +51 -51
  173. package/sdk/charts.js +14 -14
  174. package/sdk/codemirror.js +7 -7
  175. package/sdk/color-picker.js +65 -65
  176. package/sdk/cropperjs.js +2 -2
  177. package/sdk/cxd-ie11.css +651 -21
  178. package/sdk/cxd.css +628 -9
  179. package/sdk/dark-ie11.css +651 -21
  180. package/sdk/dark.css +628 -9
  181. package/sdk/exceljs.js +1 -1
  182. package/sdk/locale/de-DE.js +11 -1
  183. package/sdk/markdown.js +69 -69
  184. package/sdk/papaparse.js +1 -1
  185. package/sdk/renderers/Form/CityDB.js +1 -1
  186. package/sdk/rest.js +16 -16
  187. package/sdk/rich-text.js +62 -62
  188. package/sdk/sdk-ie11.css +651 -21
  189. package/sdk/sdk.css +628 -9
  190. package/sdk/sdk.js +1655 -1643
  191. package/sdk/thirds/hls.js/hls.js +1 -1
  192. package/sdk/thirds/mpegts.js/mpegts.js +1 -1
  193. package/sdk/tinymce.js +57 -57
  194. package/src/RootRenderer.tsx +27 -15
  195. package/src/Schema.ts +5 -1
  196. package/src/components/Button.tsx +3 -0
  197. package/src/components/Checkbox.tsx +2 -1
  198. package/src/components/ContextMenu.tsx +25 -7
  199. package/src/components/Form.tsx +70 -0
  200. package/src/components/FormField.tsx +127 -0
  201. package/src/components/InputBox.tsx +4 -1
  202. package/src/components/InputBoxWithSuggestion.tsx +113 -0
  203. package/src/components/PickerContainer.tsx +20 -5
  204. package/src/components/Select.tsx +18 -10
  205. package/src/components/Textarea.tsx +234 -2
  206. package/src/components/Toast.tsx +19 -18
  207. package/src/components/UserSelect.tsx +850 -0
  208. package/src/components/UserTabSelect.tsx +261 -0
  209. package/src/components/WithRemoteConfig.tsx +22 -7
  210. package/src/components/calendar/DaysView.tsx +53 -16
  211. package/src/components/calendar/TimeView.tsx +10 -5
  212. package/src/components/icons.tsx +17 -1
  213. package/src/components/index.tsx +3 -1
  214. package/src/components/json-schema/Array.tsx +216 -0
  215. package/src/components/json-schema/Item.tsx +47 -0
  216. package/src/components/json-schema/Object.tsx +339 -0
  217. package/src/components/json-schema/index.tsx +44 -0
  218. package/src/components/schema-editor/Array.tsx +3 -1
  219. package/src/components/schema-editor/Common.tsx +61 -4
  220. package/src/components/schema-editor/Object.tsx +3 -1
  221. package/src/components/schema-editor/index.tsx +12 -5
  222. package/src/hooks/use-validation-resolver.ts +45 -0
  223. package/src/icons/department.svg +17 -0
  224. package/src/icons/menu.svg +2 -0
  225. package/src/icons/post.svg +15 -0
  226. package/src/icons/role.svg +14 -0
  227. package/src/icons/user-remove.svg +12 -0
  228. package/src/index.tsx +2 -0
  229. package/src/locale/de-DE.ts +11 -1
  230. package/src/locale/en-US.ts +12 -1
  231. package/src/locale/zh-CN.ts +14 -3
  232. package/src/renderers/Action.tsx +10 -9
  233. package/src/renderers/CRUD.tsx +5 -1
  234. package/src/renderers/Dialog.tsx +9 -3
  235. package/src/renderers/Drawer.tsx +5 -1
  236. package/src/renderers/Form/InputDate.tsx +9 -4
  237. package/src/renderers/Form/JSONSchema.tsx +56 -0
  238. package/src/renderers/Form/JSONSchemaEditor.tsx +8 -27
  239. package/src/renderers/Form/Textarea.tsx +7 -117
  240. package/src/renderers/Form/UserSelect.tsx +263 -0
  241. package/src/renderers/Form/index.tsx +28 -18
  242. package/src/renderers/Log.tsx +148 -13
  243. package/src/renderers/Page.tsx +6 -1
  244. package/src/renderers/Service.tsx +5 -1
  245. package/src/renderers/Wizard.tsx +24 -10
  246. package/src/store/form.ts +24 -17
  247. package/src/utils/api.ts +1 -1
  248. package/src/utils/renderer-event.ts +0 -2
package/schema.json CHANGED
@@ -3450,6 +3450,29 @@
3450
3450
  "then": {
3451
3451
  "$ref": "#/definitions/TreeSelectControlSchema"
3452
3452
  }
3453
+ },
3454
+ {
3455
+ "if": {
3456
+ "properties": {
3457
+ "type": {
3458
+ "type": "string",
3459
+ "const": "users-select",
3460
+ "description": "表单项类型"
3461
+ },
3462
+ "mode": {
3463
+ "type": "string",
3464
+ "enum": [
3465
+ "normal",
3466
+ "inline",
3467
+ "horizontal"
3468
+ ],
3469
+ "description": "配置当前表单项展示模式"
3470
+ }
3471
+ }
3472
+ },
3473
+ "then": {
3474
+ "$ref": "#/definitions/UserSelectControlSchema"
3475
+ }
3453
3476
  }
3454
3477
  ]
3455
3478
  },
@@ -6015,6 +6038,7 @@
6015
6038
  "static-image",
6016
6039
  "images",
6017
6040
  "static-images",
6041
+ "json-schema",
6018
6042
  "json-schema-editor",
6019
6043
  "json",
6020
6044
  "static-json",
@@ -6164,6 +6188,7 @@
6164
6188
  "table-view",
6165
6189
  "portlet",
6166
6190
  "grid-nav",
6191
+ "users-select",
6167
6192
  "tag",
6168
6193
  "native-date",
6169
6194
  "native-time",
@@ -41403,7 +41428,7 @@
41403
41428
  "description": "限制最大日期"
41404
41429
  },
41405
41430
  "timeConstraints": {
41406
- "description": "不记得了"
41431
+ "description": "时间输入范围限制"
41407
41432
  }
41408
41433
  },
41409
41434
  "required": [
@@ -41776,7 +41801,7 @@
41776
41801
  "description": "时间的格式。"
41777
41802
  },
41778
41803
  "timeConstraints": {
41779
- "description": "不记得了"
41804
+ "description": "时间输入范围限制"
41780
41805
  }
41781
41806
  },
41782
41807
  "required": [
@@ -48233,7 +48258,7 @@
48233
48258
  "enum": [
48234
48259
  "string",
48235
48260
  "number",
48236
- "interger",
48261
+ "integer",
48237
48262
  "object",
48238
48263
  "array",
48239
48264
  "boolean",
@@ -63088,6 +63113,468 @@
63088
63113
  "additionalProperties": false,
63089
63114
  "description": "Tree 下拉选择框。 文档:https://baidu.gitee.io/amis/docs/components/form/tree"
63090
63115
  },
63116
+ "UserSelectControlSchema": {
63117
+ "type": "object",
63118
+ "properties": {
63119
+ "onEvent": {
63120
+ "type": "object",
63121
+ "additionalProperties": {
63122
+ "type": "object",
63123
+ "properties": {
63124
+ "weight": {
63125
+ "type": "number"
63126
+ },
63127
+ "actions": {
63128
+ "type": "array",
63129
+ "items": {
63130
+ "$ref": "#/definitions/ListenerAction"
63131
+ }
63132
+ }
63133
+ },
63134
+ "required": [
63135
+ "actions"
63136
+ ],
63137
+ "additionalProperties": false
63138
+ }
63139
+ },
63140
+ "className": {
63141
+ "$ref": "#/definitions/SchemaClassName",
63142
+ "description": "容器 css 类名"
63143
+ },
63144
+ "$ref": {
63145
+ "type": "string",
63146
+ "description": "配合 definitions 一起使用,可以实现无限循环的渲染器。"
63147
+ },
63148
+ "disabled": {
63149
+ "type": "boolean",
63150
+ "description": "是否禁用"
63151
+ },
63152
+ "disabledOn": {
63153
+ "$ref": "#/definitions/SchemaExpression",
63154
+ "description": "是否禁用表达式"
63155
+ },
63156
+ "hidden": {
63157
+ "type": "boolean",
63158
+ "description": "是否隐藏"
63159
+ },
63160
+ "hiddenOn": {
63161
+ "$ref": "#/definitions/SchemaExpression",
63162
+ "description": "是否隐藏表达式"
63163
+ },
63164
+ "visible": {
63165
+ "type": "boolean",
63166
+ "description": "是否显示"
63167
+ },
63168
+ "visibleOn": {
63169
+ "$ref": "#/definitions/SchemaExpression",
63170
+ "description": "是否显示表达式"
63171
+ },
63172
+ "id": {
63173
+ "type": "string",
63174
+ "description": "组件唯一 id,主要用于日志采集"
63175
+ },
63176
+ "type": {
63177
+ "type": "string",
63178
+ "const": "users-select",
63179
+ "description": "表单项类型"
63180
+ },
63181
+ "size": {
63182
+ "type": "string",
63183
+ "enum": [
63184
+ "xs",
63185
+ "sm",
63186
+ "md",
63187
+ "lg",
63188
+ "full"
63189
+ ],
63190
+ "description": "表单项大小"
63191
+ },
63192
+ "label": {
63193
+ "anyOf": [
63194
+ {
63195
+ "type": "string"
63196
+ },
63197
+ {
63198
+ "type": "boolean",
63199
+ "const": false
63200
+ }
63201
+ ],
63202
+ "description": "描述标题"
63203
+ },
63204
+ "labelClassName": {
63205
+ "$ref": "#/definitions/SchemaClassName",
63206
+ "description": "配置 label className"
63207
+ },
63208
+ "name": {
63209
+ "type": "string",
63210
+ "description": "字段名,表单提交时的 key,支持多层级,用.连接,如: a.b.c"
63211
+ },
63212
+ "remark": {
63213
+ "$ref": "#/definitions/SchemaRemark",
63214
+ "description": "显示一个小图标, 鼠标放上去的时候显示提示内容"
63215
+ },
63216
+ "labelRemark": {
63217
+ "$ref": "#/definitions/SchemaRemark",
63218
+ "description": "显示一个小图标, 鼠标放上去的时候显示提示内容, 这个小图标跟 label 在一起"
63219
+ },
63220
+ "hint": {
63221
+ "type": "string",
63222
+ "description": "输入提示,聚焦的时候显示"
63223
+ },
63224
+ "submitOnChange": {
63225
+ "type": "boolean",
63226
+ "description": "当修改完的时候是否提交表单。"
63227
+ },
63228
+ "readOnly": {
63229
+ "type": "boolean",
63230
+ "description": "是否只读"
63231
+ },
63232
+ "readOnlyOn": {
63233
+ "$ref": "#/definitions/SchemaExpression",
63234
+ "description": "只读条件"
63235
+ },
63236
+ "validateOnChange": {
63237
+ "type": "boolean",
63238
+ "description": "不设置时,当表单提交过后表单项每次修改都会触发重新验证, 如果设置了,则由此配置项来决定要不要每次修改都触发验证。"
63239
+ },
63240
+ "description": {
63241
+ "type": "string",
63242
+ "description": "描述内容,支持 Html 片段。"
63243
+ },
63244
+ "desc": {
63245
+ "type": "string"
63246
+ },
63247
+ "descriptionClassName": {
63248
+ "$ref": "#/definitions/SchemaClassName",
63249
+ "description": "配置描述上的 className"
63250
+ },
63251
+ "mode": {
63252
+ "type": "string",
63253
+ "enum": [
63254
+ "normal",
63255
+ "inline",
63256
+ "horizontal"
63257
+ ],
63258
+ "description": "配置当前表单项展示模式"
63259
+ },
63260
+ "horizontal": {
63261
+ "$ref": "#/definitions/FormSchemaHorizontal",
63262
+ "description": "当配置为水平布局的时候,用来配置具体的左右分配。"
63263
+ },
63264
+ "inline": {
63265
+ "type": "boolean",
63266
+ "description": "表单 control 是否为 inline 模式。"
63267
+ },
63268
+ "inputClassName": {
63269
+ "$ref": "#/definitions/SchemaClassName",
63270
+ "description": "配置 input className"
63271
+ },
63272
+ "placeholder": {
63273
+ "type": "string",
63274
+ "description": "占位符"
63275
+ },
63276
+ "required": {
63277
+ "type": "boolean",
63278
+ "description": "是否为必填"
63279
+ },
63280
+ "validationErrors": {
63281
+ "type": "object",
63282
+ "properties": {
63283
+ "isAlpha": {
63284
+ "type": "string"
63285
+ },
63286
+ "isAlphanumeric": {
63287
+ "type": "string"
63288
+ },
63289
+ "isEmail": {
63290
+ "type": "string"
63291
+ },
63292
+ "isFloat": {
63293
+ "type": "string"
63294
+ },
63295
+ "isInt": {
63296
+ "type": "string"
63297
+ },
63298
+ "isJson": {
63299
+ "type": "string"
63300
+ },
63301
+ "isLength": {
63302
+ "type": "string"
63303
+ },
63304
+ "isNumeric": {
63305
+ "type": "string"
63306
+ },
63307
+ "isRequired": {
63308
+ "type": "string"
63309
+ },
63310
+ "isUrl": {
63311
+ "type": "string"
63312
+ },
63313
+ "matchRegexp": {
63314
+ "type": "string"
63315
+ },
63316
+ "matchRegexp2": {
63317
+ "type": "string"
63318
+ },
63319
+ "matchRegexp3": {
63320
+ "type": "string"
63321
+ },
63322
+ "matchRegexp4": {
63323
+ "type": "string"
63324
+ },
63325
+ "matchRegexp5": {
63326
+ "type": "string"
63327
+ },
63328
+ "maxLength": {
63329
+ "type": "string"
63330
+ },
63331
+ "maximum": {
63332
+ "type": "string"
63333
+ },
63334
+ "minLength": {
63335
+ "type": "string"
63336
+ },
63337
+ "minimum": {
63338
+ "type": "string"
63339
+ }
63340
+ },
63341
+ "description": "验证失败的提示信息"
63342
+ },
63343
+ "validations": {
63344
+ "anyOf": [
63345
+ {
63346
+ "type": "string"
63347
+ },
63348
+ {
63349
+ "type": "object",
63350
+ "properties": {
63351
+ "isAlpha": {
63352
+ "type": "boolean",
63353
+ "description": "是否是字母"
63354
+ },
63355
+ "isAlphanumeric": {
63356
+ "type": "boolean",
63357
+ "description": "是否为字母数字"
63358
+ },
63359
+ "isEmail": {
63360
+ "type": "boolean",
63361
+ "description": "是否为邮箱地址"
63362
+ },
63363
+ "isFloat": {
63364
+ "type": "boolean",
63365
+ "description": "是否为浮点型"
63366
+ },
63367
+ "isInt": {
63368
+ "type": "boolean",
63369
+ "description": "是否为整型"
63370
+ },
63371
+ "isJson": {
63372
+ "type": "boolean",
63373
+ "description": "是否为 json"
63374
+ },
63375
+ "isLength": {
63376
+ "type": "number",
63377
+ "description": "长度等于指定值"
63378
+ },
63379
+ "isNumeric": {
63380
+ "type": "boolean",
63381
+ "description": "是否为数字"
63382
+ },
63383
+ "isRequired": {
63384
+ "type": "boolean",
63385
+ "description": "是否为必填"
63386
+ },
63387
+ "isUrl": {
63388
+ "type": "boolean",
63389
+ "description": "是否为 URL 地址"
63390
+ },
63391
+ "matchRegexp": {
63392
+ "type": "string",
63393
+ "description": "内容命中指定正则"
63394
+ },
63395
+ "matchRegexp1": {
63396
+ "type": "string",
63397
+ "description": "内容命中指定正则"
63398
+ },
63399
+ "matchRegexp2": {
63400
+ "type": "string",
63401
+ "description": "内容命中指定正则"
63402
+ },
63403
+ "matchRegexp3": {
63404
+ "type": "string",
63405
+ "description": "内容命中指定正则"
63406
+ },
63407
+ "matchRegexp4": {
63408
+ "type": "string",
63409
+ "description": "内容命中指定正则"
63410
+ },
63411
+ "matchRegexp5": {
63412
+ "type": "string",
63413
+ "description": "内容命中指定正则"
63414
+ },
63415
+ "maxLength": {
63416
+ "type": "number",
63417
+ "description": "最大长度为指定值"
63418
+ },
63419
+ "maximum": {
63420
+ "type": "number",
63421
+ "description": "最大值为指定值"
63422
+ },
63423
+ "minLength": {
63424
+ "type": "number",
63425
+ "description": "最小长度为指定值"
63426
+ },
63427
+ "minimum": {
63428
+ "type": "number",
63429
+ "description": "最小值为指定值"
63430
+ }
63431
+ }
63432
+ }
63433
+ ]
63434
+ },
63435
+ "value": {
63436
+ "description": "默认值,切记只能是静态值,不支持取变量,跟数据关联是通过设置 name 属性来实现的。"
63437
+ },
63438
+ "clearValueOnHidden": {
63439
+ "type": "boolean",
63440
+ "description": "表单项隐藏时,是否在当前 Form 中删除掉该表单项值。注意同名的未隐藏的表单项值也会删掉"
63441
+ },
63442
+ "validateApi": {
63443
+ "$ref": "#/definitions/SchemaApi",
63444
+ "description": "远端校验表单项接口"
63445
+ },
63446
+ "options": {
63447
+ "anyOf": [
63448
+ {
63449
+ "type": "array",
63450
+ "items": {
63451
+ "$ref": "#/definitions/Option"
63452
+ }
63453
+ },
63454
+ {
63455
+ "type": "array",
63456
+ "items": {
63457
+ "type": "string"
63458
+ }
63459
+ },
63460
+ {
63461
+ "$ref": "#/definitions/PlainObject"
63462
+ }
63463
+ ],
63464
+ "description": "选项集合"
63465
+ },
63466
+ "source": {
63467
+ "anyOf": [
63468
+ {
63469
+ "$ref": "#/definitions/SchemaApi"
63470
+ },
63471
+ {
63472
+ "$ref": "#/definitions/SchemaTokenizeableString"
63473
+ }
63474
+ ],
63475
+ "description": "可用来通过 API 拉取 options。"
63476
+ },
63477
+ "selectFirst": {
63478
+ "type": "boolean",
63479
+ "description": "默认选择选项第一个值。"
63480
+ },
63481
+ "initFetchOn": {
63482
+ "$ref": "#/definitions/SchemaExpression",
63483
+ "description": "用表达式来配置 source 接口初始要不要拉取"
63484
+ },
63485
+ "initFetch": {
63486
+ "type": "boolean",
63487
+ "description": "配置 source 接口初始拉不拉取。"
63488
+ },
63489
+ "multiple": {
63490
+ "type": "boolean",
63491
+ "description": "是否为多选模式"
63492
+ },
63493
+ "joinValues": {
63494
+ "type": "boolean",
63495
+ "description": "单选模式:当用户选中某个选项时,选项中的 value 将被作为该表单项的值提交,否则,整个选项对象都会作为该表单项的值提交。 多选模式:选中的多个选项的 `value` 会通过 `delimiter` 连接起来,否则直接将以数组的形式提交值。"
63496
+ },
63497
+ "delimiter": {
63498
+ "type": "string",
63499
+ "description": "分割符"
63500
+ },
63501
+ "extractValue": {
63502
+ "type": "boolean",
63503
+ "description": "开启后将选中的选项 value 的值封装为数组,作为当前表单项的值。"
63504
+ },
63505
+ "clearable": {
63506
+ "type": "boolean",
63507
+ "description": "是否可清除。"
63508
+ },
63509
+ "resetValue": {
63510
+ "type": "string",
63511
+ "description": "点清除按钮时,将表单项设置成当前配置的值。",
63512
+ "default": ""
63513
+ },
63514
+ "deferApi": {
63515
+ "$ref": "#/definitions/SchemaApi",
63516
+ "description": "延时加载的 API,当选项中有 defer: true 的选项时,点开会通过此接口扩充。"
63517
+ },
63518
+ "addApi": {
63519
+ "$ref": "#/definitions/SchemaApi",
63520
+ "description": "添加时调用的接口"
63521
+ },
63522
+ "addControls": {
63523
+ "type": "array",
63524
+ "items": {
63525
+ "$ref": "#/definitions/SchemaObject"
63526
+ },
63527
+ "description": "新增时的表单项。"
63528
+ },
63529
+ "creatable": {
63530
+ "type": "boolean",
63531
+ "description": "是否可以新增"
63532
+ },
63533
+ "createBtnLabel": {
63534
+ "type": "string",
63535
+ "description": "新增文字"
63536
+ },
63537
+ "editable": {
63538
+ "type": "boolean",
63539
+ "description": "是否可以编辑"
63540
+ },
63541
+ "editApi": {
63542
+ "$ref": "#/definitions/SchemaApi",
63543
+ "description": "编辑时调用的 API"
63544
+ },
63545
+ "editControls": {
63546
+ "type": "array",
63547
+ "items": {
63548
+ "$ref": "#/definitions/SchemaObject"
63549
+ },
63550
+ "description": "选项修改的表单项"
63551
+ },
63552
+ "removable": {
63553
+ "type": "boolean",
63554
+ "description": "是否可删除"
63555
+ },
63556
+ "deleteApi": {
63557
+ "$ref": "#/definitions/SchemaApi",
63558
+ "description": "选项删除 API"
63559
+ },
63560
+ "deleteConfirmText": {
63561
+ "type": "string",
63562
+ "description": "选项删除提示文字。"
63563
+ },
63564
+ "autoFill": {
63565
+ "type": "object",
63566
+ "additionalProperties": {
63567
+ "$ref": "#/definitions/SchemaTokenizeableString"
63568
+ },
63569
+ "description": "自动填充,当选项被选择的时候,将选项中的其他值同步设置到表单内。"
63570
+ }
63571
+ },
63572
+ "required": [
63573
+ "type"
63574
+ ],
63575
+ "additionalProperties": false,
63576
+ "description": "UserSelect 移动端人员选择。"
63577
+ },
63091
63578
  "SchemaObjectCardBodyField": {
63092
63579
  "anyOf": [
63093
63580
  {
@@ -63914,6 +64401,13 @@
63914
64401
  "patternProperties": {
63915
64402
  "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|hideNodePathLabel|enableNodePath|pathSeparator|showOutline|popOver|quickEdit|copyable)$": {}
63916
64403
  }
64404
+ },
64405
+ {
64406
+ "$ref": "#/definitions/UserSelectControlSchema",
64407
+ "additionalProperties": false,
64408
+ "patternProperties": {
64409
+ "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|popOver|quickEdit|copyable)$": {}
64410
+ }
63917
64411
  }
63918
64412
  ]
63919
64413
  },
@@ -64743,6 +65237,13 @@
64743
65237
  "patternProperties": {
64744
65238
  "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|hideNodePathLabel|enableNodePath|pathSeparator|showOutline|popOver|quickEdit|copyable)$": {}
64745
65239
  }
65240
+ },
65241
+ {
65242
+ "$ref": "#/definitions/UserSelectControlSchema",
65243
+ "additionalProperties": false,
65244
+ "patternProperties": {
65245
+ "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|popOver|quickEdit|copyable)$": {}
65246
+ }
64746
65247
  }
64747
65248
  ]
64748
65249
  },
@@ -65572,6 +66073,13 @@
65572
66073
  "patternProperties": {
65573
66074
  "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|hideNodePathLabel|enableNodePath|pathSeparator|showOutline|fixed|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|align|classNameExpr|filterable|breakpoint|unique)$": {}
65574
66075
  }
66076
+ },
66077
+ {
66078
+ "$ref": "#/definitions/UserSelectControlSchema",
66079
+ "additionalProperties": false,
66080
+ "patternProperties": {
66081
+ "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|fixed|popOver|quickEdit|quickEditOnUpdate|copyable|sortable|searchable|toggled|width|align|classNameExpr|filterable|breakpoint|unique)$": {}
66082
+ }
65575
66083
  }
65576
66084
  ]
65577
66085
  },
@@ -66401,6 +66909,13 @@
66401
66909
  "patternProperties": {
66402
66910
  "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|hideNodePathLabel|enableNodePath|pathSeparator|showOutline|x|y|w|h|width|height|align|valign|gridClassName)$": {}
66403
66911
  }
66912
+ },
66913
+ {
66914
+ "$ref": "#/definitions/UserSelectControlSchema",
66915
+ "additionalProperties": false,
66916
+ "patternProperties": {
66917
+ "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|x|y|w|h|width|height|align|valign|gridClassName)$": {}
66918
+ }
66404
66919
  }
66405
66920
  ]
66406
66921
  },
@@ -67230,6 +67745,13 @@
67230
67745
  "patternProperties": {
67231
67746
  "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|hideNodePathLabel|enableNodePath|pathSeparator|showOutline|rowClassName|cellClassName)$": {}
67232
67747
  }
67748
+ },
67749
+ {
67750
+ "$ref": "#/definitions/UserSelectControlSchema",
67751
+ "additionalProperties": false,
67752
+ "patternProperties": {
67753
+ "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|rowClassName|cellClassName)$": {}
67754
+ }
67233
67755
  }
67234
67756
  ]
67235
67757
  },
@@ -68059,6 +68581,13 @@
68059
68581
  "patternProperties": {
68060
68582
  "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|hideNodePathLabel|enableNodePath|pathSeparator|showOutline|unique|columnClassName)$": {}
68061
68583
  }
68584
+ },
68585
+ {
68586
+ "$ref": "#/definitions/UserSelectControlSchema",
68587
+ "additionalProperties": false,
68588
+ "patternProperties": {
68589
+ "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|unique|columnClassName)$": {}
68590
+ }
68062
68591
  }
68063
68592
  ]
68064
68593
  },
@@ -68888,6 +69417,13 @@
68888
69417
  "patternProperties": {
68889
69418
  "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|hideRoot|rootLabel|rootValue|showIcon|cascade|withChildren|onlyChildren|onlyLeaf|rootCreatable|hideNodePathLabel|enableNodePath|pathSeparator|showOutline|columnClassName|columnRatio)$": {}
68890
69419
  }
69420
+ },
69421
+ {
69422
+ "$ref": "#/definitions/UserSelectControlSchema",
69423
+ "additionalProperties": false,
69424
+ "patternProperties": {
69425
+ "^(onEvent|className|$ref|disabled|disabledOn|hidden|hiddenOn|visible|visibleOn|id|type|size|label|labelClassName|name|remark|labelRemark|hint|submitOnChange|readOnly|readOnlyOn|validateOnChange|description|desc|descriptionClassName|mode|horizontal|inline|inputClassName|placeholder|required|validationErrors|validations|value|clearValueOnHidden|validateApi|options|source|selectFirst|initFetchOn|initFetch|multiple|joinValues|delimiter|extractValue|clearable|resetValue|deferApi|addApi|addControls|creatable|createBtnLabel|editable|editApi|editControls|removable|deleteApi|deleteConfirmText|autoFill|columnClassName|columnRatio)$": {}
69426
+ }
68891
69427
  }
68892
69428
  ]
68893
69429
  },