Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

函数调用Drawer时设置挂载点无效 #3364

Open
1 task
Nio1023 opened this issue Dec 2, 2024 · 0 comments
Open
1 task

函数调用Drawer时设置挂载点无效 #3364

Nio1023 opened this issue Dec 2, 2024 · 0 comments
Labels
💤 Inactive Inactive issues

Comments

@Nio1023
Copy link

Nio1023 commented Dec 2, 2024

Basic Info

  • Package Name And Version: @arco-design/[email protected]
  • Framework version: 3.5.3
  • Browser: chrome131.0.0.0

What is expected?

根据文档中的指导,把挂载位置和函数调用结合,并不能使Drawer挂载到相应的位置,会挂载到body上。但是,一样的配置,不使用函数调用,直接用a-drawer的方式,却可以挂载到想要去的地方。(配置、挂载点均一致,唯一的区别只是component方式还是api方式)

Steps to reproduce

// 用这种方式能挂载
<a-drawer
  popup-container="#parentNode"
  :visible="visible"
  @ok="handleOk"
  @cancel="handleCancel"
>
  <template #title> Title </template>
  <div>
    You can customize modal body text by the current situation. This modal
    will be closed immediately once you press the OK button.
  </div>
</a-drawer>

//函数方式不行
Drawer.open({
    title: "Info Title",
    content: "This is an info message",
    width: 340,
    popupContainer: "#parentNode",
  }); 
@github-actions github-actions bot added the 💤 Inactive Inactive issues label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💤 Inactive Inactive issues
Projects
None yet
Development

No branches or pull requests

1 participant