admin-vben/apps/web-antd/src/views/iot/ota/task/modules/info.vue

31 lines
658 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<script setup lang="ts">
import type { IoTOtaTaskApi } from '#/api/iot/ota/task';
import { Card } from 'ant-design-vue';
import { useDescription } from '#/components/description';
import { useDetailSchema } from '../data';
// TODO @AI这里是不是可以去掉
/** IoT OTA 升级任务基本信息 */
defineOptions({ name: 'IoTOtaTaskInfo' });
defineProps<{
loading?: boolean;
task: IoTOtaTaskApi.Task;
}>();
const [Description] = useDescription({
bordered: true,
column: 3,
schema: useDetailSchema(),
});
</script>
<template>
<Card title="任务信息" :loading="loading">
<Description :data="task" />
</Card>
</template>