<template>
  <!-- <CollapseItem name="内容" :expanded="true">
    <SettingItemBox name="socket" :alone="true">
      <n-input
        size="small"
        v-model:value="optionData.socketSrc"
        :minlength="1"
        type="text"
        placeholder="请输入"
      />
    </SettingItemBox> 
  </CollapseItem> -->
  <SettingItemBox name="样式">
    <SettingItem name="边框颜色">
      <n-color-picker
        size="small"
        :modes="['hex']"
        v-model:value="optionData.borderColor"
      ></n-color-picker>
    </SettingItem>
    <SettingItem>
      <n-button
        size="small"
        @click="optionData.borderColor = option.borderColor"
      >
        恢复默认
      </n-button>
    </SettingItem>
  </SettingItemBox>
</template>

<script setup lang="ts">
import { PropType } from 'vue'
import {
  CollapseItem,
  SettingItemBox,
  SettingItem
} from '@/components/Pages/ChartItemSetting'
import { option } from './config'

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