-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 新增组件对齐方式 * fix: 修复单文件上下对齐失效的问题 * fix: 修复垂直等间距和水平等间距对齐,修复对齐没有新增快照,导致撤销不正常的问题 * fix: 修复对齐的时候,areaData的外框没有重新计算的问题 * fix: 修复对齐的时候,当多个组件过于密集导致间距为负数,会导致一直可以对齐的问题.在多次对齐之后会趋于一个稳定值,而不是一直在对齐.
- Loading branch information
Showing
5 changed files
with
409 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<template> | ||
<div | ||
:style="{ | ||
left: left + 'px', | ||
top: top + 'px', | ||
width: width + 'px', | ||
height: height + 'px', | ||
}" | ||
class="area" | ||
></div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
width: { | ||
type: Number, | ||
default: 0, | ||
}, | ||
height: { | ||
type: Number, | ||
default: 0, | ||
}, | ||
left: { | ||
type: Number, | ||
default: 0, | ||
}, | ||
top: { | ||
type: Number, | ||
default: 0, | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.area { | ||
border: 1px solid #70c0ff; | ||
position: absolute; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.