mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +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');
|
|
}
|
|
},
|
|
}
|