From 8f5016e3f3476539a763162ea235cf2aac230eea Mon Sep 17 00:00:00 2001 From: vben Date: Tue, 27 Oct 2020 23:44:32 +0800 Subject: [PATCH] feat: the Button component extends the and attributes --- CHANGELOG.zh_CN.md | 2 ++ src/components/Button/index.vue | 13 ++++++++++++- src/views/demo/feat/msg/index.vue | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 8b97662e..42b7bcc7 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -3,6 +3,7 @@ ### ✨ Features - 新增`pwa`功能,可在`.env.production`开启 +- Button 组件扩展 `preIcon`和`postIcon`属性用于在文本前后添加图标 ### 🎫 Chores @@ -25,6 +26,7 @@ - 修复热更新时多次注册组件警告问题 - 修复登录后出现登录标签页 +- 修复路由切换参数消失问题 ## 2.0.0-rc.5 (2020-10-26) diff --git a/src/components/Button/index.vue b/src/components/Button/index.vue index b3fa3f73..d16dbf74 100644 --- a/src/components/Button/index.vue +++ b/src/components/Button/index.vue @@ -1,7 +1,12 @@