fix: fix the top menu adaptive failure

This commit is contained in:
vben
2020-10-19 22:56:10 +08:00
parent 5737e478f6
commit 2f12556d26
7 changed files with 72 additions and 24 deletions

View File

@@ -217,7 +217,11 @@ export default defineComponent({
const uuid = buildUUID();
emit('register', modalMethods, uuid);
return () => (
<Modal onCancel={handleCancel} {...{ ...attrs, ...props, ...unref(getProps) }}>
<Modal
onCancel={handleCancel}
{...{ ...attrs, ...props, ...unref(getProps) }}
getContainer={() => document.querySelector('.default-layout__main')}
>
{{
...extendSlots(slots, ['default']),
default: () => renderContent(),