mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-21 22:09:16 +08:00
Revert "fix(Dialog): improve slot exit judgment (#12189)"
This reverts commit 4994e5f524645606845a06ff9e0c5593378769f8.
This commit is contained in:
parent
4994e5f524
commit
b25dddf2ca
@ -170,9 +170,8 @@ export default defineComponent({
|
||||
};
|
||||
|
||||
const renderContent = () => {
|
||||
const defaultSlot = slots.default?.();
|
||||
if (defaultSlot) {
|
||||
return <div class={bem("content")}>{defaultSlot}</div>;
|
||||
if (slots.default) {
|
||||
return <div class={bem('content')}>{slots.default()}</div>;
|
||||
}
|
||||
|
||||
const { title, message, allowHtml } = props;
|
||||
|
Loading…
x
Reference in New Issue
Block a user