File tree Expand file tree Collapse file tree 4 files changed +16
-14
lines changed
demo/src/index/views/Demo/schemaTypes Expand file tree Collapse file tree 4 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ export default {
44 description : 'A simple form example.' ,
55 type : 'object' ,
66 required : [ 'firstName' , 'lastName' ] ,
7+ 'ui:order' : [
8+ 'lastName' ,
9+ 'firstName' ,
10+ '*' ,
11+ 'password' ,
12+ ] ,
713 properties : {
814 firstName : {
915 type : 'string' ,
@@ -13,6 +19,10 @@ export default {
1319 lastName : {
1420 type : 'string' ,
1521 title : 'Last name' ,
22+ 'ui:options' : {
23+ description : '请输入你的姓'
24+ } ,
25+ 'err:required' : '必须输入Last Name'
1626 } ,
1727 price : {
1828 type : 'string' ,
@@ -52,12 +62,6 @@ export default {
5262 } ,
5363 uiSchema : {
5464 'ui:description' : '简单表单例子(这里通过UiSchema覆盖了默认description描述配置)' ,
55- 'ui:order' : [
56- 'lastName' ,
57- 'firstName' ,
58- '*' ,
59- 'password' ,
60- ] ,
6165 firstName : {
6266 'ui:title' : '名字' ,
6367 'ui:description' : '比如:李白姓李、孙尚香姓孙、马可波罗姓马可波' ,
@@ -78,11 +82,6 @@ export default {
7882 }
7983 } ,
8084 errorSchema : {
81- lastName : {
82- 'err:options' : {
83- required : '请输入lastName'
84- }
85- } ,
8685 bio : {
8786 'err:minLength' : '签名最小长度10个字符串'
8887 }
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ export default {
4040 } ,
4141 } ,
4242 uiSchema : {
43+ title : {
44+ 'err:required' : '请输入title'
45+ } ,
4346 tasks : {
4447 items : {
4548 details : {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export default {
66 schema : {
77 title : '测试专用页' ,
88 type : 'object' ,
9- description : '请输入你的Schema ' ,
9+ description : '输入你的Schema,生成链接即可快速生成预览 ' ,
1010 properties : {
1111 }
1212 }
Original file line number Diff line number Diff line change 8181 }
8282 .formItemErrorBox {
8383 color : # ff5757 ;
84- padding-top : 4 px ;
84+ padding-top : 2 px ;
8585 position : absolute;
8686 top : 100% ;
8787 left : 0 ;
8888 display : -webkit-box !important ;
89- line-height : 14 px ;
89+ line-height : 16 px ;
9090 text-overflow : ellipsis;
9191 overflow : hidden;
9292 -webkit-box-orient : vertical;
You can’t perform that action at this time.
0 commit comments