Commit b73391c1d60fdf357e5c3984ff7ba1521e97a555

Authored by ly525
1 parent 08ec6786

update element model for get preivew data

front-end/h5/src/components/core/models/element.js
@@ -111,11 +111,11 @@ class Element { @@ -111,11 +111,11 @@ class Element {
111 } 111 }
112 } 112 }
113 113
114 - getPreviewData ({ position = 'static', isRem = false } = {}) { 114 + getPreviewData ({ position = 'static', isRem = false, mode = 'preview' } = {}) {
115 const style = this.getStyle({ position }) 115 const style = this.getStyle({ position })
116 const data = { 116 const data = {
117 style, 117 style,
118 - props: this.getProps({ mode: 'preview' }), 118 + props: this.getProps({ mode }),
119 attrs: this.getAttrs() 119 attrs: this.getAttrs()
120 } 120 }
121 return data 121 return data