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-taro
4.1.6
h5, weapp
https://nutui.jd.com/playground/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cCBsYW5nPVwidHNcIj5cbiAgaW1wb3J0IHtyZWZ9IGZyb20gXCJ2dWVcIlxuY29uc3QgdGFicyA9IHJlZigxKVxuY29uc3QgdGFiTGlzdCA9IHJlZihbXG4gIHsgdGl0bGU6ICfkuLvpopgnLCBwYW5lS2V5OiAxLCBtc2dDYXRlZ29yeTogXCJ0aHJlYWRfbXNnX2NvdW50XCIgfSxcbiAgeyB0aXRsZTogJ+W4luWtkCcsIHBhbmVLZXk6IDIsIG1zZ0NhdGVnb3J5OiBcInBvc3RfbXNnX2NvdW50XCIgfSxcbiAgeyB0aXRsZTogJ+ezu+e7n+a2iOaBrycsIHBhbmVLZXk6IDMsIG1zZ0NhdGVnb3J5OiBcInN5c19tc2dfY291bnRcIiB9LFxuICB7IHRpdGxlOiAn56eB5L+hJywgcGFuZUtleTogNSwgbXNnQ2F0ZWdvcnk6IFwibGV0dGVyX21zZ19jb3VudFwiIH0sXG4gIHsgdGl0bGU6ICdA5oiR55qEJywgcGFuZUtleTogNiwgbXNnQ2F0ZWdvcnk6IFwiYXRfbXNnX2NvdW50XCIgfVxuXSlcbmNvbnN0IHRhYnNDaGFuZ2UgPSAob3B0KSA9PiB7XG4gIGNvbnNvbGUubG9nKFwib3B0OiBcIiwgb3B0KVxuICBjb25zb2xlLmxvZyhcInRhYnM6IFwiLCB0YWJzLnZhbHVlKVxuICB0YWJzLnZhbHVlID0gb3B0LnBhbmVLZXlcbn1cbmNvbnN0IG1zZ0NvdW50ID0gcmVmKHtcbiAgYXRfbXNnX2NvdW50OiAwLFxuICBsZXR0ZXJfbXNn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uZSA6cGFuZS1rZXk9XCIzXCI+XG5cdFx0XHQgPHZpZXc+57O757uf5raI5oGvPC92aWV3PlxuICAgICAgPC9udXQtdGFiLXBhbmU+XG4gICAgPG51dC10YWItcGFuZSA6cGFuZS1rZXk9XCI1XCI+XG4gICAgICAgIDx2aWV3PuengeS/oTwvdmlldz5cbiAgICAgIDwvbnV0LXRhYi1wYW5lPlxuICAgIDxudXQtdGFiLXBhbmUgOnBhbmUta2V5PVwiNlwiPlxuICAgICAgICA8dmlldz5A5oiR55qEPC92aWV3PlxuICAgICAgPC9udXQtdGFiLXBhbmU+XG4gIDwvbnV0LXRhYnM+XG48L3RlbXBsYXRlPlxuXG48c3R5bGUgID5cbiAgLnRhYi1saXN0IHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIHBhZGRpbmc6IDEwcHggNXB4O1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgYm94LXNoYWRvdzogMCAwIDEwcHggcmdiYSgwLCAwLCAwLCAwLjEpO1xuXG4gICAgXG4gIH1cbiAgLnRhYi1pdGVtIHtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgcGFkZGluZzogMTBweCAxMHB4IDIwcHggMTBweDtcbiAgICAgIGNvbG9yOiBibGFjaztcbiAgICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICB9XG5cbiAgICAudGFiLWl0ZW0uYWN0aXZlIHtcbiAgICAgIGNvbG9yOiByZWQ7XG4gICAgICBib3JkZXItYm90dG9tOiAycHggc29saWQgcmVkO1xuICAgIH1cblxuPC9zdHlsZT4ifQ==
使用滑动切换tab选项卡,自定义导航区域的 active 类名会丢失,点击切换则不会
滑动切换,active 样式也可以跟随切换
一滑动,上面的active 样式就没了
No response
"vue": "^3.3.4"
The text was updated successfully, but these errors were encountered:
@eiinu 补充一下,发现将:class="{ active: tabs === item.paneKey }" 改为 :class="{ active: tabs == item.paneKey }" 可以解决,类型转换好像有问题
:class="{ active: tabs === item.paneKey }"
:class="{ active: tabs == item.paneKey }"
Sorry, something went wrong.
No branches or pull requests
NutUI 包名
@nutui/nutui-taro
NutUI 版本号
4.1.6
平台
h5, weapp
重现链接
https://nutui.jd.com/playground/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cCBsYW5nPVwidHNcIj5cbiAgaW1wb3J0IHtyZWZ9IGZyb20gXCJ2dWVcIlxuY29uc3QgdGFicyA9IHJlZigxKVxuY29uc3QgdGFiTGlzdCA9IHJlZihbXG4gIHsgdGl0bGU6ICfkuLvpopgnLCBwYW5lS2V5OiAxLCBtc2dDYXRlZ29yeTogXCJ0aHJlYWRfbXNnX2NvdW50XCIgfSxcbiAgeyB0aXRsZTogJ+W4luWtkCcsIHBhbmVLZXk6IDIsIG1zZ0NhdGVnb3J5OiBcInBvc3RfbXNnX2NvdW50XCIgfSxcbiAgeyB0aXRsZTogJ+ezu+e7n+a2iOaBrycsIHBhbmVLZXk6IDMsIG1zZ0NhdGVnb3J5OiBcInN5c19tc2dfY291bnRcIiB9LFxuICB7IHRpdGxlOiAn56eB5L+hJywgcGFuZUtleTogNSwgbXNnQ2F0ZWdvcnk6IFwibGV0dGVyX21zZ19jb3VudFwiIH0sXG4gIHsgdGl0bGU6ICdA5oiR55qEJywgcGFuZUtleTogNiwgbXNnQ2F0ZWdvcnk6IFwiYXRfbXNnX2NvdW50XCIgfVxuXSlcbmNvbnN0IHRhYnNDaGFuZ2UgPSAob3B0KSA9PiB7XG4gIGNvbnNvbGUubG9nKFwib3B0OiBcIiwgb3B0KVxuICBjb25zb2xlLmxvZyhcInRhYnM6IFwiLCB0YWJzLnZhbHVlKVxuICB0YWJzLnZhbH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7XG4gICAgICBib3JkZXItYm90dG9tOiAycHggc29saWQgcmVkO1xuICAgIH1cblxuPC9zdHlsZT4ifQ==
重现步骤
使用滑动切换tab选项卡,自定义导航区域的 active 类名会丢失,点击切换则不会
期望的结果是什么?
滑动切换,active 样式也可以跟随切换
实际的结果是什么?
一滑动,上面的active 样式就没了
环境信息
No response
其他补充信息
"vue": "^3.3.4"
The text was updated successfully, but these errors were encountered: