|
@@ -2,7 +2,7 @@ import { TransCreateFn, TransferCtrl } from "..";
|
|
|
|
|
|
function getResize(this: TransferCtrl, direction: string) {
|
|
|
const { transEvent, currComp } = this;
|
|
|
- const size = currComp.layout.size ? [...currComp.layout.size] : [0, 0];
|
|
|
+ const size = [...(currComp.layout.size || [])];
|
|
|
if (direction.indexOf("x") != -1) {
|
|
|
size[0] = transEvent.width + transEvent.offsetX * 2;
|
|
|
}
|