From f79b4f4b2a6740479ec64147730ee9a400981d68 Mon Sep 17 00:00:00 2001 From: gamcoh Date: Fri, 23 Nov 2018 11:17:17 +0100 Subject: [PATCH] refactor(src/lottie.vue): Made the margin style a prop --- src/lottie.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lottie.vue b/src/lottie.vue index 6dc4ae1..85dd761 100644 --- a/src/lottie.vue +++ b/src/lottie.vue @@ -13,6 +13,11 @@ }, height: Number, width: Number, + margin: { + type: String, + required: false, + default: '0 auto' + } }, data () { @@ -21,7 +26,7 @@ width: this.width ? `${this.width}px` : '100%', height: this.height ? `${this.height}px` : '100%', overflow: 'hidden', - margin: '0 auto' + margin: this.margin } } },