提交 450afd31 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊 提交者: 雪洛

feat: 补充 setTabBarStyle 的 borderColor 选项

上级 0d04724f
...@@ -112,14 +112,16 @@ ...@@ -112,14 +112,16 @@
color: '#7A7E83', color: '#7A7E83',
selectedColor: '#007AFF', selectedColor: '#007AFF',
backgroundColor: '#F8F8F8', backgroundColor: '#F8F8F8',
borderStyle: 'black' borderStyle: 'black',
// 新增 borderColor,优先级高于 borderStyle
borderColor:'red'
}) })
} else { } else {
uni.setTabBarStyle({ uni.setTabBarStyle({
color: '#FFF', color: '#FFF',
selectedColor: '#007AFF', selectedColor: '#007AFF',
backgroundColor: '#000000', backgroundColor: '#000000',
borderStyle: 'black' borderStyle: 'black',
}) })
} }
this.hasCustomedStyle = !this.hasCustomedStyle this.hasCustomedStyle = !this.hasCustomedStyle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册