<script lang="ts" setup>
  import { DeviceRecord } from '/@/api/device/model/deviceModel';
  import { useDescription, Description } from '/@/components/Description';

  const props = defineProps<{
    record: DeviceRecord['profileData']['transportConfiguration'];
  }>();

  const [register] = useDescription({
    layout: 'vertical',
    column: 2,
    schema: [
      {
        field: 'type',
        label: '接入协议',
      },
    ],
    data: props.record,
  });
</script>

<template>
  <Description @register="register" />
</template>
