fix(amis-saas-9408): 自由容器内元素不限制拖拽区域

Change-Id: Id7fe94a32d64c27b97c24d031a077b080cbbe31e
This commit is contained in:
wibetter 2023-01-31 19:53:00 +08:00
parent 1708dbd993
commit 0ae93d2e5d

View File

@ -993,7 +993,8 @@ export function unitFormula(insetStr: string, offsetVal: number) {
insetUnit = 'px';
}
const newOffsetVal = insetNum + curOffsetVal;
return `${newOffsetVal >= 0 ? newOffsetVal : '0'}${insetUnit}`;
return `${newOffsetVal}${insetUnit}`;
// return `${newOffsetVal >= 0 ? newOffsetVal : '0'}${insetUnit}`; // 限制拖拽区域
}
/**