File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
packages/shell-dev-vue3/src Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import EventNesting from './EventNesting.vue'
7
7
import AsyncComponent from ' ./AsyncComponent.vue'
8
8
import SuspenseExample from ' ./SuspenseExample.vue'
9
9
import Provide from ' ./Provide.vue'
10
+ import Condition from ' ./Condition.vue'
10
11
11
12
export default {
12
13
name: ' MyApp' ,
@@ -19,7 +20,8 @@ export default {
19
20
EventNesting,
20
21
AsyncComponent,
21
22
SuspenseExample,
22
- Provide
23
+ Provide,
24
+ Condition
23
25
}
24
26
}
25
27
</script >
@@ -34,6 +36,7 @@ export default {
34
36
<AsyncComponent />
35
37
<SuspenseExample />
36
38
<Provide />
39
+ <Condition />
37
40
38
41
<nav >
39
42
<router-link to =" /p1" >
Original file line number Diff line number Diff line change
1
+ <script >
2
+ export default {
3
+ components: {
4
+ InIf: {
5
+ name: ' InIf' ,
6
+ mounted () {
7
+ this .$emit (' hi' )
8
+ },
9
+ template: ' <div>Inside v-if</div>'
10
+ }
11
+ },
12
+
13
+ data () {
14
+ return {
15
+ show: true
16
+ }
17
+ }
18
+ }
19
+ </script >
20
+
21
+ <template >
22
+ <div >
23
+ <button @click =" show = !show" >
24
+ Toggle
25
+ </button >
26
+ <InIf v-if =" show" />
27
+ </div >
28
+ </template >
You can’t perform that action at this time.
0 commit comments