<template>
  <div class="new-filter-option">
    <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="90px" v-show="show">
      <el-form-item label="外边框">
        <el-select v-model="option.outBorderStyle">
          <el-option
            v-for="item of borderStyle"
            :key="item.value"
            :value="item.value"
            :label="item.label"
          ></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="外边框颜色">
        <el-color-picker
          v-model="option.outBorderColor"
          show-alpha
          size="mini"
        ></el-color-picker>
      </el-form-item>
      <el-form-item label="内边框">
        <el-select v-model="option.inBorderStyle">
          <el-option
            v-for="item of borderStyle"
            :key="item.value"
            :value="item.value"
            :label="item.label"
          ></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="内边框颜色">
        <el-color-picker
          v-model="option.inBorderColor"
          show-alpha
          size="mini"
        ></el-color-picker>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
import { borderStyle } from "../dict";
export default {
  name: "new-filter-option",
  props: ["option"],
  data() {
    return {
      show: false,
      borderStyle,
    };
  },
};
</script>
<style lang="scss">
.new-filter-option {
}
</style>
