File tree Expand file tree Collapse file tree 4 files changed +22
-8
lines changed
src/main/java/io/github/jeemv/springboot/vuejs Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >io.github.jeemv.springboot.vuejs</groupId >
8
8
<artifactId >springboot-vuejs</artifactId >
9
- <version >1.0.10 </version >
9
+ <version >1.0.11 </version >
10
10
11
11
<name >springboot-vuejs</name >
12
12
<url >https://github.com/jeeMv/SpringBoot-VueJS</url >
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public class VueJS extends AbstractVueJS{
34
34
protected String el ;
35
35
protected String [] delimiters ;
36
36
protected boolean useAxios ;
37
+ protected boolean vuetify ;
37
38
protected Map <String ,VueComponent > globalComponents ;
38
39
protected Map <String ,AbstractVueComposition > globalElements ;
39
40
@@ -51,6 +52,9 @@ public void init() {
51
52
if (vueJSProperties .isUseAxios ()) {
52
53
useAxios =true ;
53
54
}
55
+ if (vueJSProperties .isVuetify ()) {
56
+ vuetify =true ;
57
+ }
54
58
el =vueJSProperties .getEl ();
55
59
}
56
60
}
@@ -163,4 +167,8 @@ public void setUseAxios(boolean useAxios) {
163
167
this .useAxios = useAxios ;
164
168
}
165
169
170
+ public boolean isVuetify () {
171
+ return vuetify ;
172
+ }
173
+
166
174
}
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ public class VueJSProperties {
15
15
private String [] delimiters ;
16
16
private boolean axios ;
17
17
private String el ;
18
+
19
+ private boolean vuetify ;
18
20
19
21
public String [] getDelimiters () {
20
22
return delimiters ;
@@ -60,12 +62,12 @@ public boolean getAxios() {
60
62
public void setAxios (boolean axios ) {
61
63
this .axios = axios ;
62
64
}
63
-
64
- /* private boolean isBooleanTrue(String value,boolean dValue) {
65
- if(value==null) {
66
- return dValue;
67
- }
68
- return "1".equals(value) || "true".equals(value);
65
+
66
+ public boolean isVuetify () {
67
+ return vuetify ;
68
+ }
69
+
70
+ public void setVuetify (boolean vuetify ) {
71
+ this .vuetify = vuetify ;
69
72
}
70
- */
71
73
}
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ protected VueJSSerializer(Class<VueJS> t) {
27
27
public void serialize (VueJS value , JsonGenerator gen , SerializerProvider provider ) throws IOException {
28
28
gen .writeStartObject ();
29
29
gen .writeStringField ("el" , value .getEl ());
30
+ if (value .isVuetify ()) {
31
+ gen .writeFieldName ("vuetify" );
32
+ gen .writeRawValue ("new Vuetify()" );
33
+ }
30
34
gen .writeArrayFieldStart ("delimiters" );
31
35
for (String arg : value .getDelimiters ()) {
32
36
gen .writeString (arg );
You can’t perform that action at this time.
0 commit comments