48
48
name =" edit_note"
49
49
class =" compNoteLogoEmpty"
50
50
@click =" handleAddNotes" />
51
+ <div v-for =" element in this.componentMap[componentData.componentName].htmlList" :key =" element.id+ new Date()" >
52
+ <div v-if =" element.text === 'div'" class =" htmlDiv" ></div >
53
+ <div v-if =" element.text === 'footer'" class =" htmlFooter" ></div >
54
+ <div v-if =" element.text === 'navbar'" class =" htmlNavbar" ></div >
55
+ <div v-if =" element.text === 'h1'" class =" htmlH1" >Lorem Ipsum </div >
56
+ <div v-if =" element.text === 'form'" class =" htmlForm" ></div >
57
+ <div v-if =" element.text === 'h2'" class =" htmlH2" >dolor sit amet</div >
58
+ <div v-if =" element.text === 'h3'" class =" htmlH3" >consectetur adipiscing elit</div >
59
+ <div v-if =" element.text === 'h4'" class =" htmlH4" >sed do eiusmod tempor incididunt</div >
60
+ <div v-if =" element.text === 'h5'" class =" htmlH5" >ut labore et dolore magna aliqua</div >
61
+ <div v-if =" element.text === 'h6'" class =" htmlH6" >Ut enim ad minim veniam</div >
62
+ <div v-if =" element.text === 'header'" class =" htmlHeader" ></div >
63
+ <div v-if =" element.text === 'img'" class =" htmlImg" ></div >
64
+ <input v-if =" element.text === 'input'" class =" htmlInput" />
65
+ <div v-if =" element.text === 'list'" class =" htmlList" ></div >
66
+ <div v-if =" element.text === 'list-ol'" class =" htmlList-Ol" ></div >
67
+ <div v-if =" element.text === 'list-ul'" class =" htmlList-Ul" ></div >
68
+ <p v-if =" element.text === 'paragraph'" class =" htmlP" >Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p >
69
+ {{this.routes[activeRoute][0].htmlList}}
70
+ </div >
51
71
<q-menu context-menu >
52
72
<q-list color =" black" class =" menu" >
53
73
<q-item clickable v-ripple v-close-popup id =" layer-item" >
@@ -228,7 +248,9 @@ export default {
228
248
" activeComponentObj" ,
229
249
" exportAsTypescript" ,
230
250
" noteModalOpen" ,
231
- " activeRouteDisplay"
251
+ " activeRouteDisplay" ,
252
+ ' selectedElementList' ,
253
+ ' activeLayer' ,
232
254
]),
233
255
// used in VueDraggableResizeable component
234
256
activeRouteArray () {
@@ -254,7 +276,6 @@ export default {
254
276
);
255
277
const relatives = [... val]
256
278
// also need to filter out any parents
257
-
258
279
let parentalLineage = [];
259
280
findLineage (relatives)
260
281
function findLineage (children ){
@@ -333,7 +354,8 @@ export default {
333
354
if (this .activeComponent !== e .target .id ) {
334
355
if (e .target .parentElement ? .classList .contains (' draggable' )){
335
356
this .setActiveComponent (e .target .parentElement .id )
336
- } else {
357
+ }
358
+ else if (typeof ` ${ e .target .id } ` !== ' number' ) {
337
359
this .setActiveComponent (e .target .id );
338
360
}
339
361
}
@@ -718,4 +740,112 @@ li:hover{
718
740
margin- bottom: 10px ;
719
741
}
720
742
743
+ .htmlButton {
744
+ position: absolute;
745
+ top: 50 % ;
746
+ left: 30 % ;
747
+ height: 30px ;
748
+ width: 10 % ;
749
+ margin: .5em ;
750
+ background- color: $secondary;
751
+ }
752
+
753
+ .htmlDiv {
754
+ position: absolute;
755
+ top: 50 % ;
756
+ left: 5 % ;
757
+ height: 30 % ;
758
+ width: 70 % ;
759
+ margin: .5em ;
760
+ background- color: $secondary;
761
+ border- radius: 1.5 % ;
762
+ }
763
+
764
+ .htmlFooter {
765
+ position: absolute;
766
+ width: 100 % ;
767
+ background- color: $primary;
768
+ height: 10 % ;
769
+ top: 90 % ;
770
+ z- index: - 1 ;
771
+ border- radius: 1.5 % ;
772
+ }
773
+
774
+ .htmlForm {
775
+ background- color: rgba ($secondary, .42 );
776
+ }
777
+
778
+ .htmlH1 {
779
+ position: absolute;
780
+ background- color: $primary;
781
+ color: $menutext;
782
+ font- weight: bolder ! important;
783
+ font- size: 2 .5em ;
784
+ width: 30 % ;
785
+ height: 10 % ;
786
+ top: 45 % ;
787
+ margin- left: 10 % ;
788
+ }
789
+
790
+ .htmlH2 {
791
+ background- color: rgba ($secondary, .42 );
792
+ }
793
+
794
+ .htmlH3 {
795
+ background- color: rgba ($secondary, .42 );
796
+ }
797
+
798
+ .htmlH4 {
799
+ background- color: rgba ($secondary, .42 );
800
+ }
801
+
802
+ .htmlH5 {
803
+ background- color: rgba ($secondary, .42 );
804
+ }
805
+
806
+ .htmlH6 {
807
+ background- color: rgba ($secondary, .42 );
808
+ }
809
+
810
+ // .htmlHeader{
811
+ // background-color: rgba($secondary, .42);
812
+ // }
813
+
814
+ .htmlImg {
815
+ background- color: rgba ($secondary, .42 );
816
+ }
817
+
818
+ .htmlInput {
819
+ background- color: rgba ($secondary, .42 );
820
+ }
821
+
822
+ .htmlLink {
823
+ background- color: rgba ($secondary, .42 );
824
+ }
825
+
826
+ .htmlList {
827
+ background- color: rgba ($secondary, .42 );
828
+ }
829
+
830
+ .htmlList - ol {
831
+ background- color: rgba ($secondary, .42 );
832
+ }
833
+
834
+ .htmlList - ul{
835
+ background- color: rgba ($secondary, .42 );
836
+ }
837
+
838
+ .htmlParagraph {
839
+ background- color: rgba ($secondary, .42 );
840
+ }
841
+
842
+ .htmlNavbar {
843
+ position: absolute;
844
+ width: 100 % ;
845
+ background- color: $primary;
846
+ height: 10 % ;
847
+ top: 0 % ;
848
+ z- index: - 1 ;
849
+ }
850
+
721
851
< / style>
0 commit comments