<template>
  <div>
    <h3>HTTP Client 配置</h3>
    <t-form>
      <t-form-item label="URL">
        <t-input v-model="config.url" />
      </t-form-item>
      <t-form-item label="消息格式">
        <t-input v-model="config.messagePostFormat" />
      </t-form-item>
      <t-form-item label="报告自身消息">
        <t-checkbox v-model="config.reportSelfMessage" />
      </t-form-item>
      <t-form-item label="Token">
        <t-input v-model="config.token" />
      </t-form-item>
      <t-form-item label="调试模式">
        <t-checkbox v-model="config.debug" />
      </t-form-item>
    </t-form>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';
defineProps({
  config: Object,
});
</script>