mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-27 11:56:35 +08:00
fix(Dialog): incorrect min height
This commit is contained in:
parent
9279965cc1
commit
bf1f0f57eb
@ -118,11 +118,12 @@ export default createComponent({
|
||||
|
||||
const { title, message, allowHtml, messageAlign } = props;
|
||||
if (message) {
|
||||
const hasTitle = title || slots.title;
|
||||
return (
|
||||
<div class={bem('content', { isolated: !slots.title })}>
|
||||
<div class={bem('content', { isolated: !hasTitle })}>
|
||||
<div
|
||||
class={bem('message', {
|
||||
'has-title': slots.title || title,
|
||||
'has-title': hasTitle,
|
||||
[messageAlign]: messageAlign,
|
||||
})}
|
||||
{...{
|
||||
|
Loading…
x
Reference in New Issue
Block a user