Skip to content

Commit

Permalink
[form-fieldset] simplify labelAlignClass implementation
Browse files Browse the repository at this point in the history
Closes #317 #307
  • Loading branch information
Pooya Parsa committed May 3, 2017
1 parent 3f5a45c commit 26e4b4d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions lib/components/form-fieldset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,7 @@
return this.horizontal ? ('col-sm-' + this.labelSize) : 'col-12';
},
labelAlignClass() {
switch (this.labelTextAlign.toLowerCase()) {
case 'center':
return 'text-center';
case 'right':
return 'text-right';
case 'left':
default:
return null;
}
return this.labelTextAlign ? `text-${this.labelTextAlign}` : null;
},
inputLayout() {
return this.horizontal ? ('col-sm-' + (12 - this.labelSize)) : 'col-12';
Expand Down Expand Up @@ -81,8 +73,7 @@
},
labelTextAlign: {
type: String,
required: false,
default: ''
default: null
},
label: {
type: String,
Expand Down

0 comments on commit 26e4b4d

Please sign in to comment.