Blame view

src/views/sys/error-log/DetailModal.vue 760 Bytes
vben authored
1
<template>
2
  <BasicModal :width="800" :title="t('sys.errorLog.tableActionDesc')" v-bind="$attrs">
vben authored
3
4
5
    <Description :data="info" @register="register" />
  </BasicModal>
</template>
6
<script lang="ts" setup>
7
  import type { PropType } from 'vue';
Vben authored
8
  import type { ErrorLogInfo } from '/#/store';
vben authored
9
10
  import { BasicModal } from '/@/components/Modal/index';
  import { Description, useDescription } from '/@/components/Description/index';
vben authored
11
  import { useI18n } from '/@/hooks/web/useI18n';
vben authored
12
13
  import { getDescSchema } from './data';
14
15
16
17
  defineProps({
    info: {
      type: Object as PropType<ErrorLogInfo>,
      default: null,
vben authored
18
    },
19
  });
20
21
  const { t } = useI18n();
22
23
24
25
  const [register] = useDescription({
    column: 2,
    schema: getDescSchema()!,
vben authored
26
27
  });
</script>