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
@nutui/nutui-react-taro
2.3.2
weapp
https://github.com/vczyh/taro-nutui-test/tree/tab-scroll
git checkout tab-scroll npm install npm run build:weapp
自动滚动
不滚动
No response
The text was updated successfully, but these errors were encountered:
给 tabs 加下 name 属性。<Tabs name="xxx"
Sorry, something went wrong.
加上可以了,我又发现了另外一个问题:
如果给TabPane value 指定值,不使用默认索引,这个时候不但不会滚动而且会报错:
export default function Index() { const [tab4value, setTab4value] = useState('a'); return ( <> <Tabs name='e8882930-da8e-4214-a2b3-853fbe3c9f15' value={tab4value} onChange={(value) => { setTab4value(value as string) }} > <Tabs.TabPane title='低阶特卖' value='a'>低阶特卖</Tabs.TabPane> <Tabs.TabPane title='上新日' value='b'>上新日</Tabs.TabPane> <Tabs.TabPane title='百亿补贴' value='c'>百亿补贴</Tabs.TabPane> <Tabs.TabPane title='今日聚超值' value='d'>今日聚超值</Tabs.TabPane> <Tabs.TabPane title='真好真便宜' value='e'>真好真便宜</Tabs.TabPane> </Tabs> </> ) }
Successfully merging a pull request may close this issue.
NutUI React 包名
@nutui/nutui-react-taro
NutUI React 版本号
2.3.2
平台
weapp
重现链接
https://github.com/vczyh/taro-nutui-test/tree/tab-scroll
重现步骤
期望的结果是什么?
自动滚动
实际的结果是什么?
不滚动
环境信息
No response
其他补充信息
No response
The text was updated successfully, but these errors were encountered: