fchat-rising/components/custom_dialog.ts

12 lines
243 B
TypeScript
Raw Normal View History

2017-09-02 01:50:31 +00:00
import Vue from 'vue';
import Modal from './Modal.vue';
export default class CustomDialog extends Vue {
show(): void {
(<Modal>this.$children[0]).show();
}
hide(): void {
(<Modal>this.$children[0]).hide();
}
}