File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ class default_1 extends Controller {
23
23
this . props = shallowReactive ( { ...props } ) ;
24
24
watch ( this . props , ( props ) => {
25
25
this . propsValue = toRaw ( props ) ;
26
+ this . dispatchEvent ( 'props-update' , {
27
+ componentName : this . componentValue ,
28
+ props : this . props ,
29
+ app : this . app ,
30
+ } ) ;
26
31
} , { flush : 'post' } ) ;
27
32
}
28
33
connect ( ) {
Original file line number Diff line number Diff line change @@ -60,6 +60,11 @@ export default class extends Controller<Element & { __vue_app__?: App<Element> }
60
60
this . props ,
61
61
( props ) => {
62
62
this . propsValue = toRaw ( props ) ;
63
+ this . dispatchEvent ( 'props-update' , {
64
+ componentName : this . componentValue ,
65
+ props : this . props ,
66
+ app : this . app ,
67
+ } ) ;
63
68
} ,
64
69
{ flush : 'post' }
65
70
) ;
You can’t perform that action at this time.
0 commit comments