mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 15: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 renderContent = () => {
|
||||||
const defaultSlot = slots.default?.();
|
if (slots.default) {
|
||||||
if (defaultSlot) {
|
return <div class={bem('content')}>{slots.default()}</div>;
|
||||||
return <div class={bem("content")}>{defaultSlot}</div>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const { title, message, allowHtml } = props;
|
const { title, message, allowHtml } = props;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user