99 :w =" componentData.w"
1010 :h =" componentData.h"
1111 :parent =" true"
12+ class-name-resizable =" my-resizable-class"
1213 @activated =" onActivated(componentData)"
1314 @deactivated =" onDeactivated(componentData)"
1415 @dragging =" onDrag"
1516 @resizing =" onResize"
16- @dblclick.native =" onDoubleClick(componentData)"
1717 >
1818 <h3 >{{ componentData.componentName }}</h3 >
1919 </VueDraggableResizable >
2222<script >
2323import { mapState , mapActions } from ' vuex'
2424import VueDraggableResizable from ' vue-draggable-resizable'
25+ import ' vue-draggable-resizable/dist/VueDraggableResizable.css'
2526
2627export default {
2728 name: ' ComponentDisplay' ,
@@ -59,7 +60,7 @@ export default {
5960 }
6061 },
6162 methods: {
62- ... mapActions ([' setActiveComponent' , ' updateOpenModal ' ]),
63+ ... mapActions ([' setActiveComponent' ]),
6364 onResize : function (x , y , width , height ) {
6465 this .activeComponentData .x = x
6566 this .activeComponentData .y = y
@@ -76,26 +77,54 @@ export default {
7677 },
7778 onDeactivated () {
7879 this .activeComponentData .isActive = false
79- },
80- onDoubleClick (compData ) {
81- this .setActiveComponent (compData .componentName )
82- this .activeComponentData .isActive = true
8380 }
81+ // @dblclick.native="onDoubleClick(componentData)"
82+ // onDoubleClick (compData) {
83+ // this.setActiveComponent(compData.componentName)
84+ // this.activeComponentData.isActive = true
85+ // }
8486 }
8587}
8688 </script >
8789
8890<style scoped>
8991.component-display {
90- border : 2px dotted rgb (14 , 14 , 14 );
91- background-color : rgba (242 , 234 , 228 , 0.61 );
92- height : 70vh ;
93- width : 70vw ;
92+ /* border: 3px dashed rgb(159, 122, 122); */
93+ /* height: 500px; */
94+ /* width: 500px; */
95+ /* original is 70vh */
96+ height : 87vh ;
97+ width : 100vw ;
9498 position : relative ;
99+ background-color : rgba (124 , 126 , 145 , 0.44 );
100+ /* background-color: #269; */
101+ background-size : 100px 100px , 100px 100px , 20px 20px , 20px 20px ;
102+ background-position : -2px -2px , -2px -2px , -1px -1px , -1px -1px ;
103+ background-image : -webkit-linear-gradient (white 2px , transparent 2px ),
104+ -webkit-linear-gradient (0 , white 2px , transparent 2px ),
105+ -webkit-linear-gradient (rgba (255 , 255 , 255 , 0.3 ) 1px , transparent 1px ),
106+ -webkit-linear-gradient (0 , rgba (255 , 255 , 255 , 0.3 ) 1px , transparent 1px );
107+ background-image : -moz-linear-gradient (white 2px , transparent 2px ),
108+ -moz-linear-gradient (0 , white 2px , transparent 2px ),
109+ -moz-linear-gradient (rgba (255 , 255 , 255 , 0.3 ) 1px , transparent 1px ),
110+ -moz-linear-gradient (0 , rgba (255 , 255 , 255 , 0.3 ) 1px , transparent 1px );
111+ background-image : linear-gradient (white 2px , transparent 2px ),
112+ linear-gradient (90deg , white 2px , transparent 2px ),
113+ linear-gradient (rgba (255 , 255 , 255 , 0.3 ) 1px , transparent 1px ),
114+ linear-gradient (90deg , rgba (255 , 255 , 255 , 0.3 ) 1px , transparent 1px );
115+ -pie-background : linear-gradient (white 2px , transparent 2px ) -2px -2px / 100px ,
116+ linear-gradient (90deg , white 2px , transparent 2px ) -2px -2px / 100px ,
117+ linear-gradient (rgba (255 , 255 , 255 , 0.3 ) 1px , transparent 1px ) -1px -1px /
118+ 20px ,
119+ linear-gradient (90deg , rgba (255 , 255 , 255 , 0.3 ) 1px , transparent 1px ) -1px -1px /
120+ 20px ,
121+ #269 ;
122+ behavior : url (/pie/PIE.htc );
95123}
96124
97125.component-box {
98126 color : white ;
99- border : 1px solid salmon ;
127+ border : 3px dashed rgb (227 , 203 , 71 );
128+ background-color : rgba (186 , 99 , 99 , 0.529 );
100129}
101130 </style >
0 commit comments