<template>
  <!-- 账号详情-->
  <a-modal class="add-custom custom-detail"
           title="账号详情"
           v-model:visible="visible"
           centered
           :maskClosable="false"
           @cancel="cancel"
           width="890px">
    <template #footer>
      <a-button key="submit"
                type="primary"
                @click="cancel">关闭</a-button>
    </template>
    <Detail :selectedData="selectedData" />
  </a-modal>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue';
import { closeModal } from '@/common/setup/modal/index';
import { ErmcpLoginUser } from '@/services/go/ermcp/account/interface';
import Detail from '../detail-commom-manager/index.vue';

export default defineComponent({
    name: 'detail-managers',
    components: { Detail },
    props: {
        selectedData: {
            type: Object as PropType<ErmcpLoginUser>,
            default: {},
        },
    },
    setup() {
        const { visible, cancel } = closeModal('detail');

        return {
            visible,
            cancel,
            maskClosableFlag: false,
        };
    },
});
</script>

<style lang="less">
.custom-detail {
    .ant-form.inlineForm {
        margin-top: 20px;
    }
}
</style>;
