fix #2266
This commit is contained in:
parent
e38e4940b4
commit
4535ab4c43
4 changed files with 15 additions and 7 deletions
|
|
@ -44,7 +44,12 @@ import Vue from 'vue';
|
|||
import * as anime from 'animejs';
|
||||
|
||||
export default Vue.extend({
|
||||
props: ['source', 'compact', 'v'],
|
||||
data() {
|
||||
return {
|
||||
v: this.$store.state.device.visibility
|
||||
}
|
||||
},
|
||||
props: ['source', 'compact'],
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
const popover = this.$refs.popover as any;
|
||||
|
|
@ -92,6 +97,7 @@ export default Vue.extend({
|
|||
},
|
||||
methods: {
|
||||
choose(visibility) {
|
||||
this.$store.commit('device/setVisibility', visibility);
|
||||
this.$emit('chosen', visibility);
|
||||
this.$destroy();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue