回答編集履歴

1

追記

2019/07/24 01:10

投稿

退会済みユーザー
test CHANGED
@@ -2,4 +2,42 @@
2
2
 
3
3
 
4
4
 
5
+
6
+
7
+ ```html
8
+
9
+ <box visibility-changed="this.visibilityChanged"></box>
10
+
11
+ ```
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+ ```js
20
+
21
+ props: {
22
+
23
+ visibilityChanged: Function,
24
+
25
+ }
26
+
27
+ ```
28
+
29
+
30
+
31
+ 動作確認はしてませんがこんな感じかと。
32
+
33
+ 適切ならば子の方で `this.visibilityChanged()` で呼び出せるはずです。
34
+
35
+
36
+
37
+ # 参考
38
+
39
+
40
+
41
+ [https://jp.vuejs.org/v2/guide/components-props.html](https://jp.vuejs.org/v2/guide/components-props.html)
42
+
5
- https://teratail.com/questions/102635
43
+ [https://teratail.com/questions/102635](https://teratail.com/questions/102635)