File tree Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -289,20 +289,20 @@ export default {
289
289
},
290
290
mounted () {
291
291
// when component is mounted, add ability to delete
292
- window .addEventListener (" keyup" , (event ) => {
293
- if (event .key === " Backspace" ) {
294
- if (this .activeComponent !== ' ' && this .noteModalOpen === false ) {
295
- this .$store .dispatch (" deleteActiveComponent" );
296
- }
297
- }
298
- });
299
- window .addEventListener (" keyup" , (event ) => {
300
- if (event .key === " Delete" ) {
301
- if (this .activeComponent !== ' ' && this .noteModalOpen === false ) {
302
- this .$store .dispatch (" deleteActiveComponent" );
303
- }
304
- }
305
- });
292
+ // window.addEventListener("keyup", (event) => {
293
+ // if (event.key === "Backspace") {
294
+ // if (this.activeComponent !== '' && this.noteModalOpen === false) {
295
+ // this.$store.dispatch("deleteActiveComponent");
296
+ // }
297
+ // }
298
+ // });
299
+ // window.addEventListener("keyup", (event) => {
300
+ // if (event.key === "Delete") {
301
+ // if (this.activeComponent !== '' && this.noteModalOpen === false) {
302
+ // this.$store.dispatch("deleteActiveComponent");
303
+ // }
304
+ // }
305
+ // });
306
306
// listener for the copy
307
307
window .addEventListener (" copy" , () => {
308
308
// if there is an activeComponent, copy info to state using dispatch
Original file line number Diff line number Diff line change @@ -50,6 +50,14 @@ Description:
50
50
:key =" element.id + Date.now()" >
51
51
<p v-if =" element.id === this.activeHTML" >Your class is - {{ element.class }}</p >
52
52
</div >
53
+ <!-- attribute child's child-->
54
+ <div class =" AttributeContainer" v-for =" element in this.componentMap[this.activeComponent].htmlList"
55
+ :key =" element.id + Date.now()" >
56
+ <ul v-for =" element1 in element.children"
57
+ :key =" element1.id + Date.now()" >
58
+ <li v-if =" element1.id === this.activeHTML" >Your class is - {{ element1.class }}</li >
59
+ </ul >
60
+ </div >
53
61
54
62
<!-- attribute child's child-->
55
63
<div class =" AttributeContainer" v-for =" element in this.componentMap[this.activeComponent].htmlList"
Original file line number Diff line number Diff line change @@ -430,6 +430,7 @@ const mutations = {
430
430
431
431
[ types . SET_ACTIVE_LAYER ] : ( state , payload ) => {
432
432
const newLayer = cloneDeep ( state . activeLayer ) ;
433
+
433
434
newLayer . lineage . push ( payload . text ) ;
434
435
newLayer . id = payload . id ;
435
436
state . activeLayer = newLayer ;
@@ -819,6 +820,7 @@ const mutations = {
819
820
el . class = payload . class
820
821
}
821
822
} )
823
+
822
824
} ,
823
825
824
826
You can’t perform that action at this time.
0 commit comments