From b81603f28dbd5e9c007d6cae2bbaabb62c229fdc Mon Sep 17 00:00:00 2001 From: xon52 <30713944+xon52@users.noreply.github.com> Date: Tue, 11 Dec 2018 18:44:31 +1000 Subject: [PATCH] Adds a font size property to the switch. (#77) * Adds a font size property to the switch. * Update Button.vue --- src/Button.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Button.vue b/src/Button.vue index 9924f62..bc77313 100644 --- a/src/Button.vue +++ b/src/Button.vue @@ -107,6 +107,9 @@ export default { width: { type: Number, default: constants.width + }, + fontSize: { + type: Number } }, computed: { @@ -149,7 +152,8 @@ export default { labelStyle () { return { - lineHeight: px(this.height) + lineHeight: px(this.height), + fontSize: this.fontSize ? px(this.fontSize) : null } },