-
Notifications
You must be signed in to change notification settings - Fork 507
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
[Menu]在nuxt3里面鼠标悬浮或者点击子菜单不出现 元素代码里面出现一瞬间就消失了 #937
Comments
👋 @ouyangtsin,感谢给 TDesign 提出了 issue。 |
任何人都可以处理此问题。 |
|
@ardor-zhang 处理中 |
问题定位 这个的具体原因我并未找到,但还是在这里做个简单的记录. 其中 // tdesign-vue-next/src/menu/submenu.tsx
if (this.mode === 'popup') {
events = {
onmouseenter: this.handleMouseEnter,
onmouseleave: this.handleMouseLeave,
};
}
if (Object.keys(this.$slots).length > 0) {
child = this.isHead ? this.renderHeadSubmenu() : this.renderSubmenu();
}
return (
<li class={this.classes} {...events}>
{child}
</li>
); 由于 jsx 的习惯,因此,我将这里的小写改成了大写,即 问题探究 一开始我以为是 jsx 编译的问题,于是查找了对应的编译库 后来我只好在 nuxt 编译后的结果中看,其中使用 render: function render() {
var events = {};
if (this.mode === "popup") {
events = {
onmouseenter: this.handleMouseEnter,
onmouseleave: this.handleMouseLeave
};
}
return __vite_ssr_import_2__.createVNode("li", __vite_ssr_import_2__.mergeProps({
"class": this.classes
}, events), [child]);
} 如何解决以及后续 解决办法就是将小写改成大写。 |
0.20.0版本已修复 |
tdesign-vue-next 版本
0.15.4
重现链接
No response
重现步骤
[导航菜单]在nuxt3里面鼠标悬浮或者点击子菜单不出现 元素代码里面出现一瞬间就消失了

期望结果
No response
实际结果
No response
框架版本
3.2.33
浏览器版本
101.0.4951.67
系统版本
win10
Node版本
14.18.1
补充说明
tdesign-vue-next-nuxt-starter这个示例里面也不行刷新了就不行了
The text was updated successfully, but these errors were encountered: