Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.9k
Open
Description
- I have searched theissues of this repository and believe that this is not a duplicate.
Version
undefined
Environment
"@ant-design-vue/nuxt": "^1.4.6", "ant-design-vue": "^4.2.6", "nuxt": "^4.2.2", "vue": "^3.5.25",
Reproduction link
https://github.com/limou-sc/test-antdv/tree/master
Steps to reproduce
- 在 Modal 组件内使用 组件
- 首次加载页面,打开 Modal 组件不可见
- 修改 Modal 组件代码并保存(触发热更新)
- 有时 会显示,有时不会
- 刷新页面 再次不可见
<template><div><NuxtRouteAnnouncer/><a-rate :value="4"disabled/><br/><a-buttontype="primary" @click="showModal">Open Modal</a-button><a-modalv-model:open="open"title="Basic Modal" @ok="handleOk"><p>Some contents...</p><p>Some contents...</p><p>Some contents...</p><!-- 不显示 --><a-rate :value="5"disabled/><p>11111111111</p></a-modal></div></template><scriptlang="ts"setup>import{ ref}from'vue';constopen=ref<boolean>(false);constshowModal=()=>{open.value=true;};consthandleOk=(e:MouseEvent)=>{console.log(e);open.value=false;};</script>
What is expected?
在 modal 中可正常使用 rate 组件
What is actually happening?
a-rate 在 a-modal 中使用无法显示,修改modal组件内的内容后热更新有时会显示,刷新页面后又不显示
Metadata
Metadata
Assignees
Labels
No labels