Merge branch 'dev' into next
This commit is contained in:
@@ -119,7 +119,7 @@ export default createComponent({
|
||||
const { title, message, allowHtml, messageAlign } = props;
|
||||
if (message) {
|
||||
return (
|
||||
<div class={bem('content')}>
|
||||
<div class={bem('content', { isolated: !slots.title })}>
|
||||
<div
|
||||
class={bem('message', {
|
||||
'has-title': slots.title || title,
|
||||
|
||||
+16
-1
@@ -27,9 +27,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__content {
|
||||
&--isolated {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 104px;
|
||||
}
|
||||
}
|
||||
|
||||
&__message {
|
||||
flex: 1;
|
||||
max-height: @dialog-message-max-height;
|
||||
padding: @dialog-message-padding;
|
||||
padding: 26px @dialog-message-padding;
|
||||
overflow-y: auto;
|
||||
font-size: @dialog-message-font-size;
|
||||
line-height: @dialog-message-line-height;
|
||||
@@ -63,6 +72,7 @@
|
||||
&__confirm,
|
||||
&__cancel {
|
||||
flex: 1;
|
||||
height: @dialog-button-height;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
}
|
||||
@@ -86,6 +96,11 @@
|
||||
color: @text-color;
|
||||
}
|
||||
|
||||
.van-dialog__confirm,
|
||||
.van-dialog__cancel {
|
||||
height: @dialog-round-button-height;
|
||||
}
|
||||
|
||||
.van-dialog__confirm {
|
||||
color: @white;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user