Blame view

src/views/sys/error-log/DetailModal.vue 797 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';
9
  import { defineProps } from 'vue';
vben authored
10
11
  import { BasicModal } from '/@/components/Modal/index';
  import { Description, useDescription } from '/@/components/Description/index';
vben authored
12
  import { useI18n } from '/@/hooks/web/useI18n';
vben authored
13
14
  import { getDescSchema } from './data';
15
16
17
18
  defineProps({
    info: {
      type: Object as PropType<ErrorLogInfo>,
      default: null,
vben authored
19
    },
20
  });
21
22
  const { t } = useI18n();
23
24
25
26
  const [register] = useDescription({
    column: 2,
    schema: getDescSchema()!,
vben authored
27
28
  });
</script>