fchat-rising/components/custom_dialog.ts

20 lines
379 B
TypeScript

import {Component} from '@f-list/vue-ts';
import Vue from 'vue';
import Modal from './Modal.vue';
@Component({
components: {Modal}
})
export default class CustomDialog extends Vue {
protected get dialog(): Modal {
return <Modal>this.$children[0];
}
show(): void {
this.dialog.show();
}
hide(): void {
this.dialog.hide();
}
}