<template>
  <div class="style-xlabel">
    <div class="setting-title" @click="show = !show">
      <div>X轴设置</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="80px" v-show="show">
      <el-form-item label="是否显示">
        <el-switch v-model="option.xAxisIsShow"></el-switch>
      </el-form-item>
      <el-form-item label="文字大小">
        <el-input-number v-model="option.xlabelFontSize"></el-input-number>
      </el-form-item>
      <el-form-item label="文字颜色">
        <el-color-picker
          v-model="option.xlabelColor"
          show-alpha
          size="mini"
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="展示所有">
        <el-switch v-model="option.xlabelSwitchAll"></el-switch>
      </el-form-item>
      <el-form-item label="文字旋转">
        <el-input-number v-model="option.xlabelRotate"></el-input-number>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  props: ["option"],
  data() {
    return {
      show: false,
    };
  },
  methods: {},
};
</script>
<style lang="scss">
</style>
