ny
昨天 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<script lang="ts" setup>
import { nextTick, ref } from 'vue';
 
import { BasicModal, useModalInner } from '@jnpf/ui/modal';
 
import logoImg from '#/assets/images/jnpf.png';
import { $t } from '#/locales';
import Profile from '#/views/_core/profile/index.vue';
 
defineEmits(['register']);
 
const profileRef = ref();
const [registerModal, { closeModal }] = useModalInner(init);
 
function init(data) {
  nextTick(() => {
    profileRef.value?.init(data);
  });
}
</script>
<template>
  <BasicModal
    v-bind="$attrs"
    @register="registerModal"
    default-fullscreen
    :footer="null"
    :closable="false"
    :keyboard="false"
    destroy-on-close
    class="jnpf-full-modal full-modal designer-modal jnpf-basic-print-designer">
    <template #title>
      <div class="jnpf-full-modal-header">
        <div class="header-title !w-auto">
          <img :src="logoImg" class="header-logo" />
          <span class="header-dot"></span>
          <p class="header-txt">个人中心</p>
        </div>
        <a-space class="options" :size="10">
          <a-button shape="round" @click="closeModal()">{{ $t('common.closeText') }}</a-button>
        </a-space>
      </div>
    </template>
    <Profile ref="profileRef" />
  </BasicModal>
</template>