add mixin

This commit is contained in:
Sergey Krylov 2025-01-15 07:51:37 +03:00
parent 955d9293df
commit f84d63234d
2 changed files with 21 additions and 10 deletions

View File

@ -7,18 +7,13 @@
</template>
<script>
import toggleShowMixin from '@/mixins/toggleShowMixin';
export default {
name: 'my-dialog',
props: {
show: {
type: Boolean,
default: false
}
},
methods: {
hideDialog() {
this.$emit('update:show', false)
}
mixins: [toggleShowMixin],
mounted() {
console.log('mounter from dialog');
}
}
</script>

View File

@ -0,0 +1,16 @@
export default {
props: {
show: {
type: Boolean,
default: false
}
},
methods: {
hideDialog() {
this.$emit('update:show', false)
}
},
mounted() {
console.log('mounter from mixin');
}
}