<template>
  <collapse-item name="组件样式" :expanded="true">


    <setting-item-box name="标题" :alone="true">
      <n-input v-model:value="optionData.boxStyle.title" :min="0" size="small"></n-input>
    </setting-item-box>

    <setting-item-box name="字体颜色" :alone="true">
      <n-color-picker size="small" v-model:value="optionData.boxStyle.fontColor"></n-color-picker>
    </setting-item-box>

    <setting-item-box name="边框颜色" :alone="true">
      <n-color-picker size="small" v-model:value="optionData.boxStyle.borderColor"></n-color-picker>
    </setting-item-box>

    <setting-item-box name="背景颜色" :alone="true">
      <n-color-picker size="small" v-model:value="optionData.boxStyle.backgroundColor"></n-color-picker>
    </setting-item-box>

  </collapse-item>

  <collapse-item name="地图控件" :expanded="true">

    <setting-item-box name="底图切换按钮" :alone="true">
      <setting-item>
        <n-space>
          <n-switch v-model:value="optionData.mapOptions.control.baseLayerPicker" size="small" />
          <n-text>是否显示</n-text>
        </n-space>
      </setting-item>
    </setting-item-box>

    <setting-item-box name="视角复位按钮" :alone="true">
      <setting-item>
        <n-space>
          <n-switch v-model:value="optionData.mapOptions.control.homeButton" size="small" />
          <n-text>是否显示</n-text>
        </n-space>
      </setting-item>
    </setting-item-box>

    <setting-item-box name="二三维切换按钮" :alone="true">
      <setting-item>
        <n-space>
          <n-switch v-model:value="optionData.mapOptions.control.sceneModePicker" size="small" />
          <n-text>是否显示</n-text>
        </n-space>
      </setting-item>
    </setting-item-box>

    <setting-item-box name="全屏按钮" :alone="true">
      <setting-item>
        <n-space>
          <n-switch v-model:value="optionData.mapOptions.control.fullscreenButton" size="small" />
          <n-text>是否显示</n-text>
        </n-space>
      </setting-item>
    </setting-item-box>



  </collapse-item>

  <collapse-item name="地形设置" :expanded="true">

    <setting-item-box name="是否开启地形" :alone="true">
      <setting-item>
        <n-space>
          <n-switch v-model:value="optionData.mapOptions.terrain.show" size="small" />
          <n-text>是否显示</n-text>
        </n-space>
      </setting-item>
    </setting-item-box>

  </collapse-item>


  <collapse-item name="右键菜单" :expanded="true">
  

  </collapse-item>
</template>

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

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

console.log("optionDatasss",props.optionData);




const themeOptions = [
  {
    value: ThemeEnum.NORMAL,
    label: '标准'
  },
  {
    value: ThemeEnum.DARK,
    label: '幻影黑'
  },
  {
    value: ThemeEnum.LIGHT,
    label: '月光银'
  },
  {
    value: ThemeEnum.WHITES_MOKE,
    label: '远山黛'
  },
  {
    value: ThemeEnum.FRESH,
    label: '草色青'
  },
  {
    value: ThemeEnum.GREY,
    label: '雅士灰'
  },
  {
    value: ThemeEnum.GRAFFITI,
    label: '涂鸦'
  },
  {
    value: ThemeEnum.MACARON,
    label: '马卡龙'
  },
  {
    value: ThemeEnum.BLUE,
    label: '靛青蓝'
  },
  {
    value: ThemeEnum.DARKBLUE,
    label: '极夜蓝'
  },
  {
    value: ThemeEnum.WINE,
    label: '酱籽'
  }
]

const langOptions = [
  {
    value: LangEnum.ZH_CN,
    label: '中文简体'
  },
  {
    value: LangEnum.EN,
    label: '英文'
  },
  {
    value: LangEnum.ZH_EN,
    label: '中英文对照'
  }
]

const viewModeOptions = [
  {
    value: ViewModeEnum.PLANE,
    label: '2D'
  },
  {
    value: ViewModeEnum.STEREOSCOPIC,
    label: '3D'
  }
]

const featuresOptions = [
  {
    value: FeaturesEnum.BG,
    label: '区域面'
  },
  {
    value: FeaturesEnum.POINT,
    label: '标注'
  },
  {
    value: FeaturesEnum.ROAD,
    label: '道路'
  },
  {
    value: FeaturesEnum.BUILDING,
    label: '建筑物'
  }
]

const MarkerOptions = [
  {
    value: MarkerEnum.CIRCLE_MARKER,
    label: '圆形标点'
  },
  {
    value: MarkerEnum.MARKER,
    label: '定位标点'
  },
  {
    value: MarkerEnum.NONE,
    label: '隐藏标点'
  }
]
</script>
