<template>
  <!-- 交易账号详情-->
  <a-modal class="add-custom detail-trader"
           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 :firstBtnData="firstBtnData"
            :selectedData="selectedData" />
  </a-modal>
</template>

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

export default defineComponent({
    name: 'trader-detail',
    components: { Detail },
    props: {
        firstBtnData: {
            type: Object as PropType<ErmcpLoginUserEx>,
            default: {},
        },
        selectedData: {
            type: Object as PropType<ErmcpLoginUser>,
            default: {},
        },
    },
    setup(props) {
        const { visible, cancel } = closeModal('detail');
        return {
            visible,
            cancel,
            maskClosableFlag: false,
        };
    },
});
</script>

<style lang="less">
.detail-trader {
    .ant-form.inlineForm {
        margin-top: 20px;
    }
    .checkboxGroupItem {
        .ant-col.ant-form-item-control-wrapper {
            width: 100%;
            white-space: nowrap;
        }
    }
}
</style>;
