mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
18 lines
367 B
JavaScript
18 lines
367 B
JavaScript
export default {
|
|
mounted() {
|
|
$(this.$refs.modal).modal('show');
|
|
this.$refs.input?.focus();
|
|
$(this.$refs.modal).on('hidden.bs.modal', () => {
|
|
this.$emit('close');
|
|
});
|
|
},
|
|
beforeUnmount() {
|
|
$(this.$refs.modal).modal('hide');
|
|
},
|
|
methods: {
|
|
close() {
|
|
this.$emit('close');
|
|
$(this.$refs.modal).modal('hide');
|
|
}
|
|
},
|
|
}
|