@modelforms/fontawesome-vuetify 2.8.7 → 2.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  <v-row v-if="form.title != null">
5
5
  <v-col :offset="offset" md="6">
6
6
  <v-container>
7
- <h1>{{ form.title.name }}</h1>
7
+ <h2>{{ form.title.name }}</h2>
8
8
  </v-container>
9
9
  </v-col>
10
10
  </v-row>
@@ -82,9 +82,11 @@
82
82
  </v-row>
83
83
  <v-row>
84
84
  <v-col offset-md="10" md="1">
85
- <v-btn :disabled="valid" @click="submit($event)">
86
- {{ Button }}
87
- </v-btn>
85
+ <v-container>
86
+ <v-btn :disabled="valid" @click="submit($event)">
87
+ {{ Button }}
88
+ </v-btn>
89
+ </v-container>
88
90
  </v-col>
89
91
  </v-row>
90
92
  </v-container>
@@ -128,7 +130,7 @@ export default{
128
130
  Button: button,
129
131
  validation: this.validation,
130
132
  valid: false,
131
- offset: this.titlePosition(this.form.title!.position!)
133
+ offset: this.titlePosition(this.form.title)
132
134
  }
133
135
  },
134
136
  emits: [event],
@@ -169,8 +171,9 @@ export default{
169
171
 
170
172
  return false;
171
173
  },
172
- titlePosition(position = 'left'){
173
- switch(position){
174
+ titlePosition(title){
175
+ if(title == undefined) return 0;
176
+ switch(title.position){
174
177
  case 'middle':
175
178
  return 5;
176
179
  case 'right':
@@ -9,7 +9,7 @@ class Col {
9
9
  complete?: Complete<any>;
10
10
  }
11
11
  class Title{
12
- name: string;
12
+ name?: string;
13
13
  position: 'left' | 'right' | 'middle' = 'left';
14
14
  }
15
15
  class Complete<T> {