Skip to content

直接使用对话框Modal打不开,发现使用的是react的open,应该使用vue的visible #8188

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

Open
1 task
superuser123472 opened this issue May 21, 2025 · 2 comments

Comments

@superuser123472
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

undefined

Environment

win11,"vue": "^3.2.45","ant-design-vue": "^3.2.15",

Reproduction link

http://localhost:9000/#/visualManagement/statisticalAnalysis

Steps to reproduce

Open Modal

Some contents...

Some contents...

Some contents...

<script setup> import { ref } from 'vue'; const open = ref(false); const showModal = () => { open.value = true; }; const handleOk = e => { console.log(e); open.value = false; }; </script>直接在vue中使用这段代码是打不开的,连浏览器dom元素都没渲染处理,要把opne改成vue的visible才能打开。

What is expected?

这是vue文档,为什么要用react的open

What is actually happening?

打不开对话框modal

@Roywhite
Copy link

Image你切一下右上角文档的版本呗,别看4的文档了

@superuser123472
Copy link
Author

superuser123472 commented May 21, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants