[new feature] Dialog: add message-align prop (#2259)

This commit is contained in:
neverland
2018-12-10 18:57:05 +08:00
committed by GitHub
parent 792fd3fe6f
commit 4fe387b7b1
6 changed files with 24 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
<div
v-if="message"
v-html="message"
:class="b('message', { 'has-title': title })"
:class="b('message', { 'has-title': title, [messageAlign]: messageAlign })"
/>
</slot>
</div>
@@ -68,6 +68,7 @@ export default create({
callback: Function,
className: [String, Object, Array],
beforeClose: Function,
messageAlign: String,
confirmButtonText: String,
cancelButtonText: String,
showCancelButton: Boolean,