Commit 4ea4968a00325677408241708c760e46d3bbb656

Authored by ly525
1 parent ec56f329

chore: remove console

front-end/h5/src/components/core/editor/right-panel/props.js
@@ -145,7 +145,6 @@ export default { @@ -145,7 +145,6 @@ export default {
145 { 145 {
146 this.editorPositionConfig.map(item => { 146 this.editorPositionConfig.map(item => {
147 const { type, label, key } = item 147 const { type, label, key } = item
148 - console.log(key, commonStyle)  
149 const data = { 148 const data = {
150 props: { 149 props: {
151 value: commonStyle[key], 150 value: commonStyle[key],
front-end/h5/src/components/core/store/modules/element.js
@@ -40,10 +40,11 @@ export const mutations = { @@ -40,10 +40,11 @@ export const mutations = {
40 switch (type) { 40 switch (type) {
41 case 'add': 41 case 'add':
42 const vm = getVM(value.name) 42 const vm = getVM(value.name)
43 - vm.$options.shortcutProps = value.shortcutProps 43 + const basicElement = vm.$options
  44 + basicElement.shortcutProps = value.shortcutProps
44 // 用于拖拽结束,确定最终放置的位置 45 // 用于拖拽结束,确定最终放置的位置
45 - vm.$options.dragStyle = value.dragStyle // {left: Number, top: Number}  
46 - const element = new Element(vm.$options) 46 + basicElement.dragStyle = value.dragStyle // {left: Number, top: Number}
  47 + const element = new Element({ ...basicElement, zindex: len + 1 })
47 elements.push(element) 48 elements.push(element)
48 break 49 break
49 case 'copy': 50 case 'copy':