Skip to content

Commit

Permalink
fix: #293
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Feb 12, 2021
1 parent 877eb4b commit 1406139
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions front-end/h5/src/components/core/store/modules/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ export const mutations = {
switch (type) {
case 'add':
const vm = getVM(value.name)
vm.$options.shortcutProps = value.shortcutProps
const basicElement = vm.$options
basicElement.shortcutProps = value.shortcutProps
// 用于拖拽结束,确定最终放置的位置
vm.$options.dragStyle = value.dragStyle // {left: Number, top: Number}
const element = new Element(vm.$options)
basicElement.dragStyle = value.dragStyle // {left: Number, top: Number}
const element = new Element({ ...basicElement, zindex: len + 1 })
elements.push(element)
break
case 'copy':
Expand Down

0 comments on commit 1406139

Please sign in to comment.