<template>
  <div class="style-label">
    <div class="setting-title" @click="show = !show">
      <div>数值配置</div>
      <i class="el-icon-arrow-right" v-show="!show"></i>
      <i class="el-icon-arrow-down" v-show="show"></i>
    </div>
    <el-form size="mini" label-width="90px" v-show="show">
      <el-form-item label="展示数值">
        <el-switch v-model="option.labelSwitch"></el-switch>
      </el-form-item>
      <el-form-item label="字体颜色">
        <avue-input-color v-model="option.labelColor"></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-select v-model="option.labelPosition">
          <el-option label="居中" value="inside"></el-option>
          <el-option label="顶部" value="top"></el-option>
          <el-option label="底部" value="bottom"></el-option>
          <el-option label="左边" value="left"></el-option>
          <el-option label="右边" value="right"></el-option>
          <el-option label="内部顶部" value="insideTop"></el-option>
          <el-option label="内部底部" value="insideBottom"></el-option>
          <el-option label="内部左边" value="insideLeft"></el-option>
          <el-option label="内部右边" value="insideRight"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="描边粗细">
        <el-input-number v-model="option.labelBorderWidth"></el-input-number>
      </el-form-item>
      <el-form-item label="描边颜色">
        <avue-input-color v-model="option.labelBorderColor"></avue-input-color>
      </el-form-item>
      <el-form-item label="旋转角度">
        <el-input-number v-model="option.labelRotate"></el-input-number>
      </el-form-item>
      <el-form-item label="关闭动画">
        <el-switch v-model="option.valueAnimation"></el-switch>
      </el-form-item>
      <el-form-item label="千位分隔符">
        <el-switch v-model="option.labelThousandPoint"></el-switch>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  props: ["option"],
  data() {
    return {
      show: false,
    };
  },
};
</script>
<style lang="scss">
.style-label {
}
</style>
