File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,23 @@ Description:
32
32
<HTMLQueue />
33
33
</q-tab-panel >
34
34
<q-tab-panel name =" state" >
35
+ <p v-if =' !this.activeComponentObj.state.length' >No state in component</p >
35
36
<ul id =" stateList" >
36
37
<li v-for =" comp in compObj.state" :key =" comp" >
37
38
{{ comp }}
38
39
</li >
39
40
</ul >
40
41
</q-tab-panel >
41
42
<q-tab-panel name =" actions" >
43
+ <p v-if =' !this.activeComponentObj.actions.length' >No actions in component</p >
42
44
<ul id =" actionList" >
43
45
<li v-for =" comp in compObj.actions" :key =" comp" >
44
46
{{ comp }}
45
47
</li >
46
48
</ul >
47
49
</q-tab-panel >
48
50
<q-tab-panel name =" props" >
51
+ <p v-if =' !this.activeComponentObj.props.length' >No props in component</p >
49
52
<ul id =" propsList" >
50
53
<li v-for =" comp in compObj.props" :key =" comp" >
51
54
{{ comp }}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Description:
14
14
group =" people"
15
15
class =" list-group"
16
16
>
17
-
17
+ < p v-if = ' !this.componentMap[this.activeComponent].htmlList.length ' >No HTML elements in component</ p >
18
18
<div
19
19
:class =" activeHTML === element[2] ? 'list-group-item-selected' : 'list-group-item'"
20
20
@dblclick.self =" setActiveElement(element)"
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ Description:
95
95
<toggle-button v-model =" showState" class =" toggle" />
96
96
</div >
97
97
<hr v-if =" showState" >
98
+ <p v-if =' showState && !this.activeComponentObj.state.length' >No state in component</p >
98
99
<a
99
100
v-for =" s in this.activeComponentData.state"
100
101
:key =" s"
@@ -118,6 +119,7 @@ Description:
118
119
<toggle-button v-model =" showActions" class =" toggle" />
119
120
</div >
120
121
<hr v-if =" showActions" >
122
+ <p v-if =' showActions && !this.activeComponentObj.actions.length' >No actions in component</p >
121
123
<a
122
124
v-for =" action in this.activeComponentData.actions"
123
125
:key =" action"
@@ -141,6 +143,7 @@ Description:
141
143
<toggle-button v-model =" showProps" class =" toggle" justify =' end' />
142
144
</div >
143
145
<hr v-if =" showProps" >
146
+ <p v-if =' showProps && !this.activeComponentObj.props.length' >No props in component</p >
144
147
<a
145
148
v-for =" prop in this.activeComponentData.props"
146
149
:key =" prop"
Original file line number Diff line number Diff line change @@ -334,7 +334,10 @@ const mutations = {
334
334
if ( id === state . activeHTML ) {
335
335
state . activeHTML = ''
336
336
}
337
- state . componentMap [ componentName ] . htmlList = htmlList
337
+ let newCompMap = state . componentMap
338
+ newCompMap [ componentName ] . htmlList = htmlList
339
+ state . componentMap = Object . assign ( { } , newCompMap )
340
+ //state.componentMap[componentName].htmlList = htmlList
338
341
} ,
339
342
340
343
// deletes a element html tag from HTMLQueue
You can’t perform that action at this time.
0 commit comments