File tree Expand file tree Collapse file tree 3 files changed +6
-73
lines changed
vfjs-global/methods/vfjs-helpers Expand file tree Collapse file tree 3 files changed +6
-73
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const vfjsComponentWrapper = {
55 mixins : [ vfjsComponentMixin ] ,
66 render ( ) {
77 return this . $createElement (
8- this . component ,
8+ this . vfjsComponent ,
99 {
1010 ...this . getVfjsAttributes ( ) ,
1111 } ,
Original file line number Diff line number Diff line change 11const props = {
2- children : {
3- type : Array ,
4- default : ( ) => [ ] ,
5- } ,
6- component : {
7- type : [ String , Object ] ,
8- } ,
9- id : {
10- type : String ,
11- required : true ,
12- } ,
13- errorHandler : {
14- type : Boolean ,
15- } ,
16- errorOptions : {
17- type : Object ,
18- } ,
19- errors : {
20- type : Array ,
21- } ,
22- fieldOptions : {
23- type : Object ,
24- } ,
25- model : {
26- type : null ,
27- } ,
28- modelKey : {
29- type : [ String , Boolean ] ,
30- required : true ,
31- } ,
32- required : {
33- type : Boolean ,
34- required : true ,
35- } ,
36- schema : {
37- type : Object ,
38- required : true ,
39- } ,
40- schemas : {
41- type : Object ,
42- } ,
43- state : {
44- type : Object ,
45- required : true ,
46- } ,
47- tag : {
48- type : String ,
49- default : 'div' ,
50- } ,
51- value : {
52- type : null ,
53- } ,
54- uiSchema : {
55- type : Object ,
56- required : true ,
57- } ,
582 vfjsBus : {
593 type : Object ,
604 required : true ,
@@ -67,6 +11,9 @@ const props = {
6711 type : Array ,
6812 default : ( ) => [ ] ,
6913 } ,
14+ vfjsComponent : {
15+ type : [ String , Object ] ,
16+ } ,
7017 vfjsFieldErrorHandler : {
7118 type : Boolean ,
7219 } ,
Original file line number Diff line number Diff line change @@ -33,27 +33,13 @@ const vfjsHelpers = {
3333
3434 const props = {
3535 ...vfjsFieldOptions ,
36- children : vfjsChildren ,
37- id : vfjsFieldId ,
38- errorHandler : vfjsFieldErrorHandler ,
39- errorOptions : vfjsFieldErrorOptions ,
40- errors : vfjsFieldErrors ,
41- fieldOptions : vfjsFieldOptions ,
42- model : vfjsFieldModel ,
43- modelKey : vfjsFieldModelKey ,
44- required : vfjsFieldRequired ,
45- schema : vfjsFieldSchema ,
46- schemas : vfjsFieldSchemas ,
47- state : vfjsFieldState ,
48- uiSchema : vfjsFieldUiSchema ,
49- value : vfjsFieldModel ,
5036 vfjsBus : this . vfjsBus ,
5137 vfjsChildren,
5238 vfjsChildrenUiSchema : children ,
53- vfjsFieldId,
5439 vfjsFieldErrorHandler,
5540 vfjsFieldErrorOptions,
5641 vfjsFieldErrors,
42+ vfjsFieldId,
5743 vfjsFieldModel,
5844 vfjsFieldModelKey,
5945 vfjsFieldOptions,
@@ -131,7 +117,7 @@ const vfjsHelpers = {
131117 key : `${ props . vfjsFieldId } -wrapper` ,
132118 props : {
133119 ...props ,
134- component : localComponent || component ,
120+ vfjsComponent : localComponent || component ,
135121 } ,
136122 } ,
137123 children ,
You can’t perform that action at this time.
0 commit comments