<template>
  <div class="style-bar">
    <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="80px" v-show="show">
      <el-form-item label="柱体宽度">
        <el-input-number v-model="option.barWidth"></el-input-number>
      </el-form-item>
      <el-form-item label="柱体圆角">
        <el-input
          v-model="option.barBorderRadius"
          type="number"
          :min="0"
        ></el-input>
      </el-form-item>
      <el-form-item label="柱体背景">
        <el-switch v-model="option.barSwitchBg"></el-switch>
      </el-form-item>
      <el-form-item label="背景色" v-show="option.barSwitchBg">
        <el-color-picker
          v-model="option.barBgColor"
          show-alpha
          size="mini"
        ></el-color-picker>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
export default {
  props: ["option"],
  data() {
    return {
      show: false,
    };
  },
  methods: {},
};
</script>
<style lang="scss">
.style.bar {
}
</style>
