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

<script lang="ts">
import { defineComponent, PropType } from 'vue';
import { Des } from '@/common/components/commonDes';
import { QhjAgreementConfig } from '@/services/go/ermcp/qhj/interface';
import { _closeModal } from '@/common/setup/modal/modal';
import { ModalEnum } from '@/common/constants/modalNameEnum';

export default defineComponent({
    emits: ['cancel'],
    name: ModalEnum.detail,
    components: { Des },
    props: {
        selectedRow: {
            type: Object as PropType<QhjAgreementConfig>,
            default: {},
        },
    },
    setup(props, context) {
        const { visible, cancel } = _closeModal(context);
        return {
            cancel,
            visible,
        };
    },
});
</script>

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