Taro-navigation-bar icon indicating copy to clipboard operation
Taro-navigation-bar copied to clipboard

当传入renderCenter代替title,导航内部的navBarLeft有问题

Open gg343917542 opened this issue 4 years ago • 1 comments

这里的只判断了title,但没有判断renderCenter,导致外部传入时不能居中。 else if ((back && home) || title) { navBarLeft = [ width:${capsulePosition.width}px, height:${capsulePosition.height}px, margin-left:${rightDistance}px ].join(';'); }

gg343917542 avatar Mar 11 '20 07:03 gg343917542

毕竟兼容各种样式容易出现差错,你可以修改样式以达到自己想要的方案

lingxiaoyi avatar Mar 17 '20 09:03 lingxiaoyi