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
NTabs在Tab过多的情况下更新value,NTabs自动滚动定位至当前激活的Tab
The text was updated successfully, but these errors were encountered:
naive-ui/src/tabs/src/Tabs.tsx
Lines 179 to 182 in 66222ab
我通过在之后追加如下代码实现了这个需求
watch(mergedValueRef, () => { void nextTick(() => { const tabEl = getCurrentEl() const { value: xScrollInst } = xScrollInstRef xScrollInst?.scrollTo({ left: tabEl.offsetLeft, top: 0, behavior: 'smooth' }) }) })
Sorry, something went wrong.
536b755
No branches or pull requests
This function solves the problem (这个功能解决的问题)
NTabs在Tab过多的情况下更新value,NTabs自动滚动定位至当前激活的Tab
Expected API (期望的 API)
NTabs在Tab过多的情况下更新value,NTabs自动滚动定位至当前激活的Tab
The text was updated successfully, but these errors were encountered: