We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.8.1
No response
<template> <div> <tabs> <tab-panel v-for="(item, index) in tabList" :key="index" :label="item.label" :value="item.value" > <template #label> <dropdown :min-column-width="128" :popup-props="{ overlayClassName: 'route-tabs-dropdown', onVisibleChange: (visible: boolean, ctx: PopupVisibleChangeContext) => handleTabMenuClick(visible, ctx, item.value), visible: active === item.value, }" > {{ item.label }} <template #dropdown> <dropdown-menu> <dropdown-item> <refresh-icon /> 123321 </dropdown-item> </dropdown-menu> </template> </dropdown> </template> </tab-panel> </tabs> </div> </template> <script setup lang="ts"> import { PopupVisibleChangeContext } from "tdesign-vue-next/es/popup/type"; import { ref } from "vue"; import { Tabs, TabPanel, Dropdown, DropdownMenu, DropdownItem, } from "tdesign-vue-next"; const tabList = [ { label: "选项卡一", value: 1, }, { label: "选项卡二", value: 2, }, { label: "选项卡三", value: 3, }, ]; const active = ref(-1); const handleTabMenuClick = ( visible: boolean, ctx: PopupVisibleChangeContext, path: number ) => { if (ctx.trigger === "document") active.value = -1; if (visible) active.value = path; }; </script>
正常显示下拉框
错误提示:cannot read properties of null (reading 'refs')
3.4.x
122.0.6261.70
Windows(22H2)
20.9.0
The text was updated successfully, but these errors were encountered:
👋 @XiaoYuJuQiang,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
解决了吗?
还没解决吗
No branches or pull requests
tdesign-vue-next 版本
1.8.1
重现链接
No response
重现步骤
期望结果
正常显示下拉框
实际结果
错误提示:cannot read properties of null (reading 'refs')
框架版本
3.4.x
浏览器版本
122.0.6261.70
系统版本
Windows(22H2)
Node版本
20.9.0
补充说明
No response
The text was updated successfully, but these errors were encountered: