Ben Lin
2024-06-18 ebbd788fbb2c0b45d4473798efc57eec8ba74a25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<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 type { ErrorLogInfo } from '#/store';
  import { BasicModal } from '@/components/Modal';
  import { Description, useDescription } from '@/components/Description';
  import { useI18n } from '@/hooks/web/useI18n';
  import { getDescSchema } from './data';
 
  defineProps({
    info: {
      type: Object as PropType<ErrorLogInfo>,
      default: null,
    },
  });
 
  const { t } = useI18n();
 
  const [register] = useDescription({
    column: 2,
    schema: getDescSchema()!,
  });
</script>