|
|
@ -1,7 +1,14 @@ |
|
|
|
<template> |
|
|
|
<div class="login_modal_container"> |
|
|
|
<div class="modal_content"> |
|
|
|
<LoginForm :hideLoginModal="hideLoginModal" :modal="true" /> |
|
|
|
<LoginForm |
|
|
|
:handleShowKey="handleShowKey" |
|
|
|
:clearInput="clearInput" |
|
|
|
:input="input" |
|
|
|
:handleHideKey="handleHideKey" |
|
|
|
:hideLoginModal="hideLoginModal" |
|
|
|
:modal="true" |
|
|
|
/> |
|
|
|
<svg |
|
|
|
@click="closeModal" |
|
|
|
class="close" |
|
|
@ -22,11 +29,16 @@ |
|
|
|
</g> |
|
|
|
</svg> |
|
|
|
</div> |
|
|
|
<div class="key_wrap" v-if="showkeyboard"> |
|
|
|
<SimpleKeyboard @onChange="onChange" :input="input" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import { ref } from 'vue' |
|
|
|
import LoginForm from 'cpns/LoginForm' |
|
|
|
import SimpleKeyboard from 'cpns/SimpleKeyboard' |
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
hideLoginModal: { |
|
|
@ -34,6 +46,23 @@ const props = defineProps({ |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
|
|
const input = ref('') |
|
|
|
const onChange = a => { |
|
|
|
input.value = a |
|
|
|
} |
|
|
|
|
|
|
|
const clearInput = () => { |
|
|
|
input.value = '' |
|
|
|
} |
|
|
|
|
|
|
|
const showkeyboard = ref(false) |
|
|
|
const handleShowKey = () => { |
|
|
|
showkeyboard.value = true |
|
|
|
} |
|
|
|
const handleHideKey = () => { |
|
|
|
showkeyboard.value = false |
|
|
|
} |
|
|
|
|
|
|
|
const closeModal = () => { |
|
|
|
props.hideLoginModal() |
|
|
|
} |
|
|
@ -51,6 +80,13 @@ const closeModal = () => { |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
.key_wrap { |
|
|
|
position: absolute; |
|
|
|
left: 0; |
|
|
|
right: 0; |
|
|
|
bottom: 0; |
|
|
|
height: 230px; |
|
|
|
} |
|
|
|
.modal_content { |
|
|
|
width: 476px; |
|
|
|
height: 414px; |
|
|
|