Notification: add showClose option (#6402)

* Adding showClose option on Notification

* Update notification.md
This commit is contained in:
Gabriel Oliveira
2017-09-26 01:15:58 -03:00
committed by 杨奕
parent a35ab0bb03
commit 209c4f86af
3 changed files with 55 additions and 1 deletions

View File

@@ -20,7 +20,10 @@
<p v-else v-html="message"></p>
</slot>
</div>
<div class="el-notification__closeBtn el-icon-close" @click.stop="close"></div>
<div
class="el-notification__closeBtn el-icon-close"
v-if="showClose"
@click.stop="close"></div>
</div>
</div>
</transition>
@@ -42,6 +45,7 @@
message: '',
duration: 4500,
type: '',
showClose: true,
customClass: '',
iconClass: '',
onClose: null,