<script setup lang="ts">
import { useVModel } from '@vueuse/core';
import { ElDialog, ElTable, ElTableColumn } from 'element-plus';

const props = defineProps<{ visible: boolean; list: any[]; title: string }>()


const visible = useVModel(props, 'visible')
</script>

<template>
    <ElDialog v-model="visible" :title="title" :append-to-body="true" center>
        <ElTable :data="list" border size="small">
            <ElTableColumn label="业务单号" prop="code" />
            <ElTableColumn label="错误原因" prop="msg" />
        </ElTable>
    </ElDialog>
</template>