Skip to content

Commit b81603f

Browse files
xon52euvl
authored andcommitted
Adds a font size property to the switch. (#77)
* Adds a font size property to the switch. * Update Button.vue
1 parent 953ec3c commit b81603f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Button.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export default {
107107
width: {
108108
type: Number,
109109
default: constants.width
110+
},
111+
fontSize: {
112+
type: Number
110113
}
111114
},
112115
computed: {
@@ -149,7 +152,8 @@ export default {
149152
150153
labelStyle () {
151154
return {
152-
lineHeight: px(this.height)
155+
lineHeight: px(this.height),
156+
fontSize: this.fontSize ? px(this.fontSize) : null
153157
}
154158
},
155159

0 commit comments

Comments
 (0)