@@ -98,7 +98,8 @@ export default {
9898* 类型:` object `
9999* 默认值:` {} `
100100
101- > ` 0.0.16 ` 之后版本支持配置 ` uiSchema ` 在 ` schema ` 参数中 [ 点击查看] ( #uischema配置在schema中 )
101+ > * ` 0.0.16 ` 之后版本支持配置 ` uiSchema ` 在 ` schema ` 参数中 [ 点击查看] ( #uischema配置在schema中 )
102+ > * ` 0.0.17 ` 之后版本支持配置 [ errorSchema] ( #errorschema ) 在 [ uiSchema] ( #uischema ) 中。(` uiSchema ` 和 ` errorSchema ` 格式完全相同,且同属ui显示,一份可方便配置)
102103
103104用于配置表单展示样式,普通json数据,非 ` JSON Schema ` 规范
104105
@@ -254,7 +255,8 @@ export default {
254255 ' ui:emptyValue' : ' ' ,
255256 ' ui:options' : {
256257 attrs: {
257- ' autofocus' : true
258+ autofocus: true ,
259+ rows: 6 ,
258260 },
259261 style: {
260262 boxShadow: ' 0 0 6px 2px #2b9939'
@@ -263,7 +265,6 @@ export default {
263265 className_hei: true
264266 },
265267 type: ' textarea' ,
266- rows: ' 6' ,
267268 placeholder: ' 请输入你的内容'
268269 }
269270 },
@@ -284,7 +285,7 @@ export default {
284285::: warning 注意
285286配置数据结构是和 ` schema ` 保持一致,而非 ` formData ` 一致
286287
287- 比如 :
288+ 比如配置数组元素 :
288289``` js
289290
290291// schema
@@ -341,7 +342,8 @@ uiSchema = {
341342* 类型:` object `
342343* 默认值:` {} `
343344
344- > ` 0.0.16 ` 之后版本支持配置 ` errorSchema ` 在 ` schema ` 参数中 [ 点击查看] ( #errorschema配置在schema中 )
345+ > * ` 0.0.16 ` 之后版本支持配置 ` errorSchema ` 在 ` schema ` 参数中 [ 点击查看] ( #errorschema配置在schema中 )
346+ > * ` 0.0.17 ` 之后版本支持配置 [ errorSchema] ( #errorschema ) 在 [ uiSchema] ( #uischema ) 中。(` uiSchema ` 和 ` errorSchema ` 格式完全相同,且同属ui显示,一份可方便配置)
345347
346348用于配置表单校验错误文案信息,普通json数据,非JSON Schema规范
347349
@@ -370,6 +372,7 @@ errorSchema配置演示:重置表单错误信息
370372 <vue-form
371373 v-model =" formData"
372374 :schema =" schema"
375+ :uiSchema =" uiSchema"
373376 :error-schema =" errorSchema"
374377 >
375378 </vue-form >
@@ -430,6 +433,13 @@ export default {
430433 }
431434 }
432435 },
436+ uiSchema: {
437+ bio: {
438+ ' ui:type' : ' textarea' ,
439+ ' ui:placeholder' : ' 请输入 ...' ,
440+ ' err:required' : ' 请输入(uiSchema中配置)' ,
441+ },
442+ },
433443 errorSchema: {
434444 userName: {
435445 ' err:options' : {
0 commit comments