From 5132f85e8d34a5e18f6e7ebfb8c56062c52f838f Mon Sep 17 00:00:00 2001 From: Instanced Date: Mon, 21 May 2018 12:40:05 +0800 Subject: [PATCH] fix: avatar autoset font size --- components/avatar/Avatar.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/avatar/Avatar.jsx b/components/avatar/Avatar.jsx index d9e9ae3bc..4b68cf7eb 100644 --- a/components/avatar/Avatar.jsx +++ b/components/avatar/Avatar.jsx @@ -20,9 +20,9 @@ export default { icon: String, }, data () { - this.isExistSlot = false - this.childrenWidth = 0 return { + isExistSlot: false, + childrenWidth: 0, scale: 1, } },