mirror of https://gitee.com/antv-l7/antv-l7
feat: 增加 setPosition 方法参数的默认值
This commit is contained in:
parent
7d340c45ae
commit
b82876d6dc
|
@ -44,7 +44,7 @@ export default class Control extends EventEmitter {
|
|||
name: `${controlId++}`,
|
||||
};
|
||||
}
|
||||
public setPosition(position: PositionName) {
|
||||
public setPosition(position: PositionName = "bottomright") {
|
||||
// 考虑组件的自动布局,需要销毁重建
|
||||
const controlService = this.controlService;
|
||||
if (controlService) {
|
||||
|
|
Loading…
Reference in New Issue