<template>
  <collapse-item name="信息" :expanded="true">
    <setting-item-box name="场景ID" :alone="true">
      <setting-item>
        <n-input v-model:value="option.secneID" type="textarea" size="small"></n-input>
      </setting-item>
    </setting-item-box>
  </collapse-item>
  <div class="go-device-status-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-input-number v-model:value="option.fontSize" />
    </n-form-item>
    <n-form-item label="表头高度">
      <n-input-number v-model:value="option.headerHeight" />
    </n-form-item>
    <n-form-item label="行高度">
      <n-input-number v-model:value="option.itemHeight" />
    </n-form-item>
    <n-form-item label="在线率">
      <n-input-number v-model:value="option.onlineRate" />
    </n-form-item>
    <n-form-item label="在线设备">
      <n-input-number v-model:value="option.onlineDevice" />
    </n-form-item>
    <n-form-item label="总设备">
      <n-input-number v-model:value="option.totalDevice" />
    </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>