<!-- 自定义配置 -->
<template>
  <div>
    <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="宽">
        <avue-input-number v-model="option.width"
                           :max="200"></avue-input-number>
      </el-form-item>
      <el-form-item label="高">
        <avue-input-number v-model="option.height"
                           :max="200"></avue-input-number>
      </el-form-item>
      <el-form-item label="字体大小">
        <avue-input-number v-model="option.fontSize"
                           :max="200"></avue-input-number>
      </el-form-item>
      <el-form-item label="字体颜色">
        <avue-input-color v-model="option.color"></avue-input-color>
      </el-form-item>
      <el-form-item label="圆角">
        <avue-input-number v-model="option.borderRadius"
                           :max="200"></avue-input-number>
      </el-form-item>
      <el-form-item label="背景颜色">
        <avue-input-color v-model="option.bgColor"></avue-input-color>
      </el-form-item>
      <el-form-item label="渐变色">
        <avue-input-color v-model="option.bgGradientColor"></avue-input-color>
      </el-form-item>
      <el-collapse accordion>
        <el-collapse-item title="格式化">
          <el-form-item label="分隔符">
            <el-input v-model="option.formatSymbol"
            ></el-input>
          </el-form-item>
          <el-form-item label="分隔位">
            <el-input-number :min="0" v-model="option.formatBit"
            ></el-input-number>
          </el-form-item>
        </el-collapse-item>
      </el-collapse>
    </el-form>
  </div>
</template>

<script>
import {dicOption} from '@/option/config'
export default {
  name: "new-flip-option",
  props: ["option"],
  data() {
    return {
      show: true,
      dicOption: dicOption
    }
  },
  created() {
  },
  methods: {},
}
</script>

<style>
</style>
