bindPopup气泡只能对绑定的组件居中显示。不过,可以尝试在 .bindPopup 事件设置 width 来放大气泡的宽度,达到居中显示的视觉效果,示例如下:.bindPopup (this.handlePopup, { builder:FZCustomPopupView.FZPopupBuilder.builder(this.setMoreFzPopupModel()), placement: Placement.Bottom, popupColor: Color.White, width: '96%',//需要设置的大一些,不然达不到居中的视觉效果,具体数值自行设置 offset: { x: 0, y: 0 }, radius: 8,//默认是20,自定义时需将此重新设置 targetSpace: 5, onStateChange: (e) => { if (!e.isVisible) { this.handlePopup = false } }, } )
bindPopup气泡只能对绑定的组件居中显示。
不过,可以尝试在 .bindPopup 事件设置 width 来放大气泡的宽度,达到居中显示的视觉效果,示例如下: