File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,41 @@ https://github.com/icebob/vue-form-generator/archive/master.zip
36
36
```
37
37
38
38
## Usage
39
- Simply require it and add as a component:
39
+ ``` html
40
+ <template >
41
+ <div class =" panel-body" >
42
+ <vue-form-generator :schema =" schema" :model =" model" :options =" formOptions" ></vue-form-generator >
43
+ </div >
44
+ </template >
45
+
46
+ ```
40
47
``` js
48
+ < script>
41
49
import VueFormGenerator from " vue-form-generator" ;
42
50
43
51
export default {
44
52
...
45
53
components: {
46
54
VueFormGenerator: VueFormGenerator .component
55
+ },
56
+
57
+ data: {
58
+ schema: { ... },
59
+ model:
60
+ id: 1 ,
61
+ name: " John Doe" ,
62
+ password: " J0hnD03!x4" ,
63
+ skills: [" Javascript" , " VueJS" ],
64
+
65
+ status: true
66
+ },
67
+ formOptions: {
68
+ validateAfterLoad: true ,
69
+ validateAfterChanged: true
70
+ }
47
71
}
48
72
...
73
+ < / script>
49
74
```
50
75
51
76
## Examples
You can’t perform that action at this time.
0 commit comments