We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05727b6 + d7241a4 commit eb667cfCopy full SHA for eb667cf
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "vue-core-video-player",
3
- "version": "0.1.10",
+ "version": "0.1.11",
4
"scripts": {
5
"dev": "vue-cli-service serve",
6
"build": "vue-cli-service build --target lib ./src/index.js",
src/widgets/setting-switch.vue
@@ -7,7 +7,6 @@
7
export default {
8
name: 'setting-switch',
9
props: {
10
- change: Function,
11
openStatus: Boolean
12
},
13
@@ -20,9 +19,7 @@ export default {
20
19
methods: {
21
toggle () {
22
this.isOpen = !this.isOpen
23
- if (typeof this.change === 'function') {
24
- this.change(this.isOpen)
25
- }
+ this.$emit('change', this.isOpen)
26
27
open () {
28
this.isOpen = true
0 commit comments