2020-01-29 21:37:25 +02:00
|
|
|
<template>
|
|
|
|
<x-window ref="window" @closed="() => { $emit('closed'); destroyDom(); }">
|
|
|
|
<template #header>{{ $t('login') }}</template>
|
2020-02-20 16:07:20 +02:00
|
|
|
<mk-signin :auto-set="autoSet" @login="onLogin"/>
|
2020-01-29 21:37:25 +02:00
|
|
|
</x-window>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import XWindow from './window.vue';
|
2020-02-20 16:07:20 +02:00
|
|
|
import MkSignin from './signin.vue';
|
2020-01-29 21:37:25 +02:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
2020-02-20 16:07:20 +02:00
|
|
|
MkSignin,
|
2020-01-29 21:37:25 +02:00
|
|
|
XWindow,
|
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
autoSet: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
onLogin(res) {
|
|
|
|
this.$emit('login', res);
|
|
|
|
this.$refs.window.close();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|