1
-
2
-
3
-
4
-
5
1
// Events
6
2
import ComponentEventsAppVue from "@/views/eventhandling/componentevents/AppView.vue?raw" ;
7
3
import ComponentEventsInnerVue from "@/views/eventhandling/componentevents/InnerView.vue?raw" ;
@@ -10,43 +6,37 @@ import DomEventForwardingInnerVue from "@/views/eventhandling/domeventforwarding
10
6
import EventForwardingAppVue from "@/views/eventhandling/eventforwarding/GrandParentView.vue?raw" ;
11
7
import EventForwardingChildVue from "@/views/eventhandling/eventforwarding/ChildView.vue?raw" ;
12
8
import EventForwardingParentVue from "@/views/eventhandling/eventforwarding/ParentView.vue?raw" ;
13
- import { createReplComponent } from "@/ReplFactory.js" ;
14
- import { createExample , createRouterObjAdvanced } from "@/util.js" ;
15
-
16
-
9
+ import { createReplComponent } from "@/ReplFactory.js" ;
10
+ import { createExample , createRouterObjAdvanced } from "@/util.js" ;
17
11
18
12
const ComponentEventsVue = {
19
13
name : "Component Events" ,
20
- component : createReplComponent ( ComponentEventsAppVue , {
14
+ component : createReplComponent ( ComponentEventsAppVue , {
21
15
"InnerView.vue" : ComponentEventsInnerVue ,
22
- } )
23
- }
24
-
16
+ } ) ,
17
+ } ;
25
18
26
19
const DomEventForwardingVue = {
27
20
name : "Dom Event Forwarding" ,
28
21
component : createReplComponent ( DomEventForwardingAppVue , {
29
22
"InnerView.vue" : DomEventForwardingInnerVue ,
30
- } )
31
- }
23
+ } ) ,
24
+ } ;
32
25
33
26
const EventForwardingVue = {
34
27
name : "Event Forwarding" ,
35
28
component : createReplComponent ( EventForwardingAppVue , {
36
29
"ChildView.vue" : EventForwardingChildVue ,
37
30
"ParentView.vue" : EventForwardingParentVue ,
38
- } )
39
-
40
- }
41
-
42
- const list = [
43
- ComponentEventsVue ,
44
- DomEventForwardingVue ,
45
- EventForwardingVue ,
46
- ]
47
-
48
- export const EventHandling2Router = list . map ( ( component ) => createRouterObjAdvanced ( component . name , component . component ) ) ;
31
+ } ) ,
32
+ } ;
49
33
34
+ const list = [ ComponentEventsVue , DomEventForwardingVue , EventForwardingVue ] ;
50
35
36
+ export const EventHandling2Router = list . map ( ( component ) =>
37
+ createRouterObjAdvanced ( component . name , component . component ) ,
38
+ ) ;
51
39
52
- export const EventHandling2ButtonExamples = list . map ( ( component ) => createExample ( component . name ) ) ;
40
+ export const EventHandling2ButtonExamples = list . map ( ( component ) =>
41
+ createExample ( component . name ) ,
42
+ ) ;
0 commit comments