Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bug: useVbenModal内嵌套useVbenModal导致弹窗无法正常打开 #5352

Closed
5 tasks done
MaxLggg opened this issue Jan 11, 2025 · 0 comments · Fixed by #5353
Closed
5 tasks done

Bug: useVbenModal内嵌套useVbenModal导致弹窗无法正常打开 #5352

MaxLggg opened this issue Jan 11, 2025 · 0 comments · Fixed by #5353

Comments

@MaxLggg
Copy link

MaxLggg commented Jan 11, 2025

Version

Vben Admin V5

Describe the bug?

使用connectedComponent形式,在useVbenModal内嵌套useVbenModal导致弹窗无法正常打开

Reproduction

  <Modal :title="`${isEdit ? '编辑' : '新增'}标签`" class="w-2/4">
    <Form>
      <template>
    </Form>
    <uploadCardModal> 123 </uploadCardModal>
  </Modal>

const [uploadCardModal, uploadCardModalApi] = useVbenModal({
  destroyOnClose: true,
});

const openUploadFormModal = () => {
  uploadCardModalApi.open();
};

System Info

Chrome

Relevant log output

No response

Validations

@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant