index.vue 558 B

12345678910111213141516171819202122232425
  1. <template>
  2. <app-modal direction="right" height="100%" v-model:show="showModal">
  3. <app-login />
  4. </app-modal>
  5. </template>
  6. <script lang="ts" setup>
  7. import { computed } from 'vue'
  8. import AppModal from '@/components/base/modal/index.vue'
  9. import AppLogin from '@mobile/views/user/login/index.vue'
  10. const props = defineProps({
  11. show: {
  12. type: Boolean,
  13. default: false
  14. }
  15. })
  16. const emit = defineEmits(['update:show'])
  17. const showModal = computed({
  18. get: () => props.show,
  19. set: (val) => emit('update:show', val)
  20. })
  21. </script>