<template>
  <div class="i-comp-mapnew-option">
    <div class="setting-title" @click="show = !show">
      <div>组件设置</div>
      <e class="el-icon-arrow-right" v-show="!show"></e>
      <e class="el-icon-arrow-down" v-show="show"></e>
    </div>
    <el-form size="mini" label-width="38%" v-show="show">
      <el-form-item label="图例颜色">
        <avue-input-color
          v-model="option.mapColor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="图例底色">
        <avue-input-color
          v-model="option.mapBaseColor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="选中颜色">
        <avue-input-color
          v-model="option.hoverColor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="图例左侧距离">
        <el-input-number
          v-model="option.visualLeft"
        ></el-input-number>
      </el-form-item>
      <el-form-item label="图例底部距离">
        <el-input-number
          v-model="option.visualBottom"
        ></el-input-number>
      </el-form-item>
      <el-form-item label="图例文字颜色">
        <avue-input-color
          v-model="option.visualTextColor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="功能按钮颜色">
        <avue-input-color
          v-model="option.textcolor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="标签文字颜色">
        <avue-input-color
          v-model="option.labelColor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="标签文字大小">
        <el-input-number
          v-model="option.labelSize"
        ></el-input-number>
      </el-form-item>
      <el-form-item label="外边框颜色">
        <el-color-picker
          v-model="option.outlineColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="外边框粗细">
        <el-input-number
          v-model="option.outlineWeight"
        ></el-input-number>
      </el-form-item>
      <el-form-item label="内边框颜色">
        <avue-input-color
          v-model="option.borderColor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="悬浮层背景颜色">
        <avue-input-color
          v-model="option.tooltipBgcolor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="悬浮层文字颜色">
        <avue-input-color
          v-model="option.tooltipTextcolor"
          show-alpha
        ></avue-input-color>
      </el-form-item>
      <el-form-item label="悬浮层展示数量">
        <el-input-number
          v-model="option.tooltipNumber"
        ></el-input-number>
      </el-form-item>
      <el-form-item label="指标小数位">
        <el-input-number
          v-model="option.numberLength"
        ></el-input-number>
      </el-form-item>
      <el-form-item label="开启下钻">
        <el-switch v-model="option.checkLevel"></el-switch>
      </el-form-item>
      <el-form-item label="开启轮播">
        <el-switch v-model="option.tooltipPlay"></el-switch>
      </el-form-item>
      <el-form-item label="轮播间隔">
        <el-input-number
          v-model="option.tooltipPlayTime"
        ></el-input-number>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  name: "new-map-option",
  props: ["option"],
  data() {
    return {
      show: true
    };
  },
};
</script>
<style lang="scss">
</style>
