2020-01-29 11:37:25 -08:00
|
|
|
<template>
|
2020-04-28 17:15:18 -07:00
|
|
|
<x-window ref="window" :width="366" :height="506" @closed="() => { $emit('closed'); destroyDom(); }">
|
2020-01-29 11:37:25 -08:00
|
|
|
<template #header>{{ $t('signup') }}</template>
|
2020-02-14 08:33:09 -08:00
|
|
|
<x-signup :auto-set="autoSet" @signup="onSignup"/>
|
2020-01-29 11:37:25 -08:00
|
|
|
</x-window>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import XWindow from './window.vue';
|
|
|
|
import XSignup from './signup.vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
|
|
|
XSignup,
|
|
|
|
XWindow,
|
|
|
|
},
|
2020-02-14 08:33:09 -08:00
|
|
|
|
|
|
|
props: {
|
|
|
|
autoSet: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
onSignup(res) {
|
|
|
|
this.$emit('signup', res);
|
|
|
|
this.$refs.window.close();
|
|
|
|
}
|
|
|
|
}
|
2020-01-29 11:37:25 -08:00
|
|
|
});
|
|
|
|
</script>
|