File tree Expand file tree Collapse file tree 3 files changed +31
-13
lines changed
packages/lib/src/JsonSchemaForm Expand file tree Collapse file tree 3 files changed +31
-13
lines changed Original file line number Diff line number Diff line change 11<template >
2- <el-form-item : class =" $style.item " >
3- <el-button size = " small " @click =" $emit('onCancel')" >{{ cancelBtn }}</el-button >
4- <el-button size = " small " type =" primary" @click =" $emit('onSubmit')" >{{ okBtn }}</el-button >
2+ <el-form-item class =" formFooter_item " >
3+ <el-button @click =" $emit('onCancel')" >{{ cancelBtn }}</el-button >
4+ <el-button type =" primary" @click =" $emit('onSubmit')" >{{ okBtn }}</el-button >
55 </el-form-item >
66</template >
77
2020 }
2121 };
2222 </script >
23-
24- <style module>
25- .item {
26- text-align : right ;
27- border-top : 1px solid rgba (0 , 0 , 0 , 0.08 );
28- padding-top : 10px ;
29- }
30- </style >
Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ export default {
5555 h ( FIELDS_MAP . anyOf , {
5656 class : {
5757 [ `${ pathClassName } -anyOf` ] : true ,
58- AnyOfField : true
58+ fieldItem : true ,
59+ anyOfField : true
5960 } ,
6061 props : curProps
6162 } )
@@ -66,7 +67,8 @@ export default {
6667 h ( FIELDS_MAP . oneOf , {
6768 class : {
6869 [ `${ pathClassName } -oneOf` ] : true ,
69- OneOfField : true
70+ fieldItem : true ,
71+ oneOfField : true
7072 } ,
7173 props : curProps
7274 } )
@@ -83,6 +85,7 @@ export default {
8385 ...context . data . class ,
8486 [ lowerCase ( fieldComponent . name ) || fieldComponent ] : true ,
8587 hiddenWidget,
88+ fieldItem : true ,
8689 [ pathClassName ] : true
8790 }
8891 } )
Original file line number Diff line number Diff line change 208208 .arrayListItem_btn-delete {
209209 background-color : # fef0f0 ;
210210 }
211+
212+ .formFooter_item {
213+ text-align : right;
214+ border-top : 1px solid rgba (0 , 0 , 0 , 0.08 );
215+ padding-top : 10px ;
216+ }
217+ & .el-form--inline {
218+ .appendCombining_box , .fieldGroupWrap , .fieldItem {
219+ display : inline-block;
220+ vertical-align : top;
221+ }
222+ .fieldGroupWrap {
223+ margin-right : 10px ;
224+ vertical-align : top;
225+ }
226+ .validateWidget {
227+ margin-right : 0 ;
228+ }
229+ .formFooter_item {
230+ border-top : none;
231+ padding-top : 0 ;
232+ }
233+ }
211234}
You can’t perform that action at this time.
0 commit comments