<template>
  <div>
    <hr />
    
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线点</div>
      <div class="panel-value" >
          <Input v-model="activeElement.option.points"/>
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线</div>
      <div class="panel-value">
          <Input v-model="activeElement.option.lines" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">全局光晕配置</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.halo" />
      </div>
    </div>
    
    
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线颜色</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.orbitColor" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">全局文本配置	</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.text" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">全局图标配置</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.icon" />
      </div>
    </div>

    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">全局飞线配置</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.line" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">背景图src</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.bgImgSrc" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线收束程度</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.k" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线曲率</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.curvature" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">使用相对坐标</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.relative" />
      </div>
    </div>
  </div>
  
</template>

<script>
export default {
  name: "DataVFlylinechartenhancedStyle",
  props: ["activeElement"],
  data() {
    return {
      value:JSON.stringify(this.activeElement.option.value),
      colors:JSON.stringify(this.activeElement.option.colors)
    };
  },
  methods: {
    valueChange(newCode) {
      this.activeElement.option.value = JSON.parse(newCode);
      this.$parent.$vpd.commit("updateWidgets", this.activeElement);
    }
  },
  created () {
      // console.log(this.data,typeof(this.data),8888)
      // console.log(this.colors,typeof(this.colors),8888)
  }
};
</script>
