You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
qinains
changed the title
[组件名称] 问题描述
[标签栏 Tabbar] 中的TabItem添加name属性作为唯一标识,调用change方法时,可以传入name
Aug 9, 2023
qinains
changed the title
[标签栏 Tabbar] 中的TabItem添加name属性作为唯一标识,调用change方法时,可以传入name
[Tabbar] Tabbar组件中的TabItem添加name属性作为唯一标识,调用change方法时,可以传入name
Aug 9, 2023
qinains
changed the title
[Tabbar] Tabbar组件中的TabItem添加name属性作为唯一标识,调用change方法时,可以传入name
[Tabbar] Tabbar组件中的TabItem添加key属性作为唯一标识,调用change方法时,可以传入name
Aug 9, 2023
qinains
changed the title
[Tabbar] Tabbar组件中的TabItem添加key属性作为唯一标识,调用change方法时,可以传入name
[Tabbar] Tabbar组件中的TabItem添加key属性(key的类型可以是string或number)作为唯一标识,调用change方法时,可以传入key
Aug 9, 2023
这个功能解决了什么问题
切换不同的角色,底部需要让某个tabItem点亮。当底部tabItem有增删时,如果只有传index,就很容易搞混。change方法中的index传入key,就很安全
你建议的方案是什么
tabItem添加key属性用来做唯一标识。tabbar的change方法中index类型是string或number,当是string的时候,跟tabItem中的key匹配
The text was updated successfully, but these errors were encountered: