1
0
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:
chenjiahan 2020-09-21 17:22:57 +08:00
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,
})}
{...{