<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="地图颜色">
        <el-color-picker
          v-model="option.mapColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="地图高亮颜色">
        <el-color-picker
          v-model="option.mapHighColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="标签颜色">
        <el-color-picker
          v-model="option.labelColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="标签高亮颜色">
        <el-color-picker
          v-model="option.labelHighColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="线条颜色">
        <el-color-picker
          v-model="option.lineColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="线条粗细">
        <el-input
          type="number"
          v-model="option.lineWeight"
        ></el-input>
      </el-form-item>
      <el-form-item label="起点颜色">
        <el-color-picker
          v-model="option.pointColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="起点大小">
        <el-input
          type="number"
          v-model="option.pointSize"
        ></el-input>
      </el-form-item>
      <el-form-item label="终点颜色">
        <el-color-picker
          v-model="option.centerColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="终点大小">
        <el-input
          type="number"
          v-model="option.centerSize"
        ></el-input>
      </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
          type="number"
          v-model="option.outlineWeight"
        ></el-input>
      </el-form-item>
      <el-form-item label="内边框颜色">
        <el-color-picker
          v-model="option.borderColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="阴影颜色">
        <el-color-picker
          v-model="option.shadowColor"
          show-alpha
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="阴影X偏移">
        <el-input
          type="number"
          v-model="option.shadowOffsetX"
        ></el-input>
      </el-form-item>
      <el-form-item label="阴影Y偏移">
        <el-input
          type="number"
          v-model="option.shadowOffsetY"
        ></el-input>
      </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>
