feat: 增加 setPosition 方法参数的默认值

This commit is contained in:
2912401452 2021-05-13 20:28:09 +08:00
parent 7d340c45ae
commit b82876d6dc
1 changed files with 1 additions and 1 deletions

View File

@ -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) {