butoon,这样设置borderColor为什么不生效?

@Extend(Button) function initButtonView(click:() => void, radius: number) {
  .onClick(()=> {
    click()
  })
  .borderRadius(radius)
  .type(ButtonType.Normal)
  .backgroundColor('rgba(48, 48, 48, 0.7)')
  .fontSize(18)
  .fontColor(Color.White)
  .height(60)
  .borderWidth(2)
  .borderColor('rgba(1.0, 1.0, 1.0, 0.5)')
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.


borderColor没有生效,一直是黑色的

butoon,这样设置borderColor为什么不生效?-鸿蒙开发者社区

button
bordercolor
2024-01-24 14:58:29
浏览
收藏 0
回答 0
相关问题
Span设置backGroundColor生效为什么
1159浏览 • 1回复 待解决
Left、Top为什么生效
1611浏览 • 1回复 待解决
HarmonyOS 为什么calc生效
802浏览 • 1回复 待解决
ConstraintSize尺寸设置生效
3083浏览 • 1回复 待解决
HarmonyOS stack设置圆角生效
888浏览 • 1回复 待解决
通过WindowProperties设置属性生效
2847浏览 • 1回复 待解决
HarmonyOS Panel 设置 borderRadius 生效
1677浏览 • 1回复 待解决
Tab 设置 barBackgroundColor为透明生效
722浏览 • 1回复 待解决
HarmonyOS Badge文本颜色设置生效
1010浏览 • 1回复 待解决
HarmonyOS 设置了icon和label生效
1073浏览 • 1回复 待解决
HarmonyOS 设置安全区域生效
774浏览 • 1回复 待解决
List组件的initialIndex属性设置生效
2791浏览 • 1回复 待解决