[!] fix custom textStyle was overwritten by TEXT_FONTSIZE_STYLE_MAP
diff --git a/packages/wxc-button/index.vue b/packages/wxc-button/index.vue
index f9cb1db..94ca914 100644
--- a/packages/wxc-button/index.vue
+++ b/packages/wxc-button/index.vue
@@ -64,7 +64,7 @@
},
mrTextStyle () {
const { type, disabled, textStyle, size } = this;
- const mrTextStyle = { ...TEXT_STYLE_MAP[type], ...textStyle, ...TEXT_FONTSIZE_STYLE_MAP[size] };
+ const mrTextStyle = { ...TEXT_STYLE_MAP[type], ...TEXT_FONTSIZE_STYLE_MAP[size], ...textStyle };
return disabled ? { ...mrTextStyle, color: '#FFFFFF' } : mrTextStyle;
}
},