File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
}" >
15
15
<!-- This is the actual component box -->
16
16
<!-- https://www.npmjs.com/package/vue-draggable-resizable -->
17
- <p class =" cssContainerText" > APP PREVIEW </p >
17
+ <p class =" cssContainerText" > {{this.activeRoute}} Preview </p >
18
18
<!-- each component box in canvas will have these properties-->
19
19
<!-- :onDragStart="recordInitialPosition" :onResizeStart="recordInitialSize" :preventDeactivation="true" graveyard attribute -->
20
20
<vue-draggable-resizable
26
26
:x =" componentData.x"
27
27
:y =" componentData.y"
28
28
:z =" componentData.z"
29
- :w =" 2 * gridWidth"
29
+ :w =" componentData.w ? componentData.w: 2 * gridWidth"
30
30
:min-width =" gridWidth / 2"
31
- :h =" 2 * gridHeight"
31
+ :h =" componentData.h ? componentData.h: 2 * gridHeight"
32
32
:min-height =" gridHeight / 2"
33
33
:grid =" [Math.floor(100 * gridWidth) / 100, Math.floor(100 * gridHeight) / 100 ]"
34
34
@activated =" onActivated(componentData)"
You can’t perform that action at this time.
0 commit comments