panel上有这个参数:
buttonAlign就是用来配置他放的位置的,'right', 'left' ,'center'三个参数可以选择,默认'right'
如果想随便放什么地方,直接配置好像还不行。
你可以通过配置button的style来微调button的位置
比如:buttons[{
text:'A'
},{
text:'B',
style : 'margin-left:100px'//离左边一个按钮的距离多加100px
}]
labelAlign: 'right',
buttonAlign: 'center',
buttons:['->',{
text:'button1'
},'-',{
text:'button2'
}]