fix: 解决重叠拖拽放置位置错误的bug

This commit is contained in:
MTrun
2022-02-16 19:18:39 +08:00
parent 825d21a3a9
commit c107c8c440
11 changed files with 60 additions and 34 deletions
@@ -1,9 +1,5 @@
interface AttrType {
x: number
y: number
w: number
h: number
}
import { PublicConfigType } from '@/packages/index.d'
type AttrType = Pick<PublicConfigType, 'attr'>['attr']
export const useComponentStyle = (attr: AttrType, index: number) => {
const componentStyle = {