<template>
  <BasicModal :width="800" :title="t('sys.errorLog.tableActionDesc')" v-bind="$attrs">
    <Description :data="info" @register="register" />
  </BasicModal>
</template>
<script lang="ts" setup>
  import type { PropType } from 'vue';
  import { BasicModal, Description, useDescription } from '@jdlinker/ui';
  import { useI18n } from 'vue-i18n';
  import { getDescSchema } from './data';

  defineProps({
    info: {
      type: Object as PropType<any>,
      default: null
    }
  });

  const { t } = useI18n();

  const [register] = useDescription({
    column: 2,
    schema: getDescSchema()!
  });
</script>
