Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
lgf196 committed Feb 11, 2022
1 parent e156a6f commit ca72e89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/controller/editor/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const componentSlice = createSlice({
if (left) {
if (left >= 0) {
if (state.canvasConfigInformation) {
// 可移动的最大的距离
const leftMaxRange = state.canvasConfigInformation.canvasInformation.width - width;
if (left > leftMaxRange) {
state.curComponent!.style!.left = leftMaxRange;
Expand Down

0 comments on commit ca72e89

Please sign in to comment.