@@ -99,7 +99,7 @@ export default {
9999* 默认值:` {} `
100100
101101> * ` 0.0.16 ` 之后版本支持配置 ` uiSchema ` 在 ` schema ` 参数中 [ 点击查看] ( #uischema配置在schema中 )
102- > * ` 0.0.17 ` 之后版本支持配置 [ errorSchema] ( #errorschema ) 在 [ uiSchema] ( #uischema ) 中。(` uiSchema ` 和 ` errorSchema ` 格式完全相同,且同属ui显示,一份可方便配置)
102+ > * ` 0.1.0 ` 之后版本支持配置 [ errorSchema] ( #errorschema ) 在 [ uiSchema] ( #uischema ) 中。(` uiSchema ` 和 ` errorSchema ` 格式完全相同,且同属ui显示,一份可方便配置)
103103
104104用于配置表单展示样式,普通json数据,非 ` JSON Schema ` 规范
105105
@@ -114,7 +114,7 @@ export default {
114114* ` ui:widget ` ` ui:field ` ` ui:fieldProps ` 不支持配置在 ` ui:options ` 中
115115:::
116116
117- 参数格式如下 :
117+ 通用参数格式如下 :
118118``` js
119119uiSchema = {
120120 ' ui:title' : ' 覆盖schema title' , // 覆盖schema title
@@ -128,21 +128,35 @@ uiSchema = {
128128 showTitle: ' 是否显示标题' , // 只对 type为`object`、`array` 类型有效
129129 showDescription: ' 是否显示描述信息' , // 只对type为 `object`、`array` 类型有效
130130 attrs: {
131- // 通过 vue render函数 attrs 传递给 widget 组件
131+ // 通过 vue render函数 attrs 传递给 Widget 组件,只能配置在叶子节点
132132 autofocus: true
133133 },
134134 style: {
135- // 通过 vue render函数 style 传递给 widget 组件
135+ // 通过 vue render函数 style 传递给 Widget 组件,只能配置在叶子节点
136136 boxShadow: ' 0 0 6px 2px #2b9939'
137137 },
138138 class: {
139- // 通过 vue render函数 class 传递给 widget 组件
139+ // 0.1.0 版本添加
140+ // 通过 vue render函数 class 传递给 Widget 组件,只能配置在叶子节点
140141 className_hei: true
141142 },
143+ fieldStyle: {
144+ // 0.1.0 版本添加
145+ // 通过 vue render函数 style 传递给 Field 组件,支持所有field节点
146+ background: ' red'
147+ },
148+ fieldClass: {
149+ // 0.1.0 版本添加
150+ // 通过 vue render函数 class 传递给 Field 组件,支持所有field节点
151+ fieldClass: true
152+ },
153+ fieldAttrs: {
154+ // 通过 vue render函数 attrs 传递给 Field 组件,支持所有field节点
155+ ' attr-x' : ' xxx'
156+ },
142157
143- // 其它所有参数会通过 props 传递给 widget 组件
158+ // 其它所有参数会通过 props 传递给 Widget 组件
144159 type: ' textarea' ,
145- rows: ' 6' ,
146160 placeholder: ' 请输入你的内容'
147161 }
148162}
@@ -343,7 +357,7 @@ uiSchema = {
343357* 默认值:` {} `
344358
345359> * ` 0.0.16 ` 之后版本支持配置 ` errorSchema ` 在 ` schema ` 参数中 [ 点击查看] ( #errorschema配置在schema中 )
346- > * ` 0.0.17 ` 之后版本支持配置 [ errorSchema] ( #errorschema ) 在 [ uiSchema] ( #uischema ) 中。(` uiSchema ` 和 ` errorSchema ` 格式完全相同,且同属ui显示,一份可方便配置)
360+ > * ` 0.1.0 ` 之后版本支持配置 [ errorSchema] ( #errorschema ) 在 [ uiSchema] ( #uischema ) 中。(` uiSchema ` 和 ` errorSchema ` 格式完全相同,且同属ui显示,一份可方便配置)
347361
348362用于配置表单校验错误文案信息,普通json数据,非JSON Schema规范
349363
0 commit comments