<template>
  <div class="go-top-alarms-config">
    <n-form-item label="标题">
      <n-input v-model:value="option.title" />
    </n-form-item>
    <n-form-item label="标题大小">
      <n-input-number v-model:value="option.titleSize" />
    </n-form-item>
    <n-form-item label="下拉选项">
      <n-dynamic-input v-model:value="option.dropdownOptions" placeholder="请输入选项" />
    </n-form-item>
    <n-form-item label="默认选项">
      <n-input v-model:value="option.dropdownDefault" />
    </n-form-item>
  </div>
</template>

<script setup lang="ts">
import { PropType } from 'vue'
import { option } from './config'

defineProps({
  option: {
    type: Object as PropType<typeof option>,
    required: true
  }
})
</script>
