vue-vben-admin/src/views/sys/error-log/DetailModal.vue

29 lines
797 B
Vue
Raw Normal View History

2020-10-18 21:55:21 +08:00
<template>
2020-12-01 23:51:39 +08:00
<BasicModal :width="800" :title="t('sys.errorLog.tableActionDesc')" v-bind="$attrs">
2020-10-18 21:55:21 +08:00
<Description :data="info" @register="register" />
</BasicModal>
</template>
2021-08-12 23:54:12 +08:00
<script lang="ts" setup>
2021-02-10 00:53:47 +08:00
import type { PropType } from 'vue';
2021-04-10 19:25:49 +08:00
import type { ErrorLogInfo } from '/#/store';
2021-08-12 23:54:12 +08:00
import { defineProps } from 'vue';
2020-10-18 21:55:21 +08:00
import { BasicModal } from '/@/components/Modal/index';
import { Description, useDescription } from '/@/components/Description/index';
2020-11-25 23:20:30 +08:00
import { useI18n } from '/@/hooks/web/useI18n';
2020-10-18 21:55:21 +08:00
import { getDescSchema } from './data';
2021-08-12 23:54:12 +08:00
defineProps({
info: {
type: Object as PropType<ErrorLogInfo>,
default: null,
2020-10-18 21:55:21 +08:00
},
2021-08-12 23:54:12 +08:00
});
2021-02-10 00:53:47 +08:00
2021-08-12 23:54:12 +08:00
const { t } = useI18n();
2021-02-10 00:53:47 +08:00
2021-08-12 23:54:12 +08:00
const [register] = useDescription({
column: 2,
schema: getDescSchema()!,
2020-10-18 21:55:21 +08:00
});
</script>