Commit 50f4ebce87a07e8b61e0926c67ae7327cedc96b0
1 parent
29f4d36e
fix: set uuid for data-uuid to submit the input value
Showing
1 changed file
with
2 additions
and
6 deletions
front-end/h5/src/components/core/editor/canvas/preview.js
| @@ -15,12 +15,8 @@ export default { | @@ -15,12 +15,8 @@ export default { | ||
| 15 | * -> renderBaseElementWithEvent() | 15 | * -> renderBaseElementWithEvent() |
| 16 | * -> renderBaseElementWithCustomStyle() | 16 | * -> renderBaseElementWithCustomStyle() |
| 17 | */ | 17 | */ |
| 18 | - const style = element.getStyle({ position: 'absolute' }) | ||
| 19 | - const data = { | ||
| 20 | - style, | ||
| 21 | - props: element.getProps({ mode: 'preview' }) | ||
| 22 | - } | ||
| 23 | - return h(element.name, data) | 18 | + |
| 19 | + return h(element.name, element.getPreviewData()) | ||
| 24 | }) | 20 | }) |
| 25 | } | 21 | } |
| 26 | </div> | 22 | </div> |