<template>
  <div class="new-water-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="80px" v-show="show">
      <el-form-item label="水位图形状">
        <el-radio v-model="option.shape" label="rect">矩形</el-radio>
        <el-radio v-model="option.shape" label="roundRect">圆角矩形</el-radio>
        <el-radio v-model="option.shape" label="round">圆形</el-radio>
      </el-form-item>
      <el-form-item label="波浪数量">
        <el-input-number v-model="option.waveNum" :min="1" :max="10"></el-input-number>
      </el-form-item>
      <el-form-item label="波浪高度">
        <el-input-number v-model="option.waveHeight" :min="1" :max="100"></el-input-number>
      </el-form-item>
      <el-form-item label="透明度">
        <el-input-number v-model="option.waveOpacity" :precision="2" :step="0.1" :max="1"></el-input-number>
      </el-form-item>
      <el-form-item label="配色1">
        <el-color-picker v-model="option.colors[0]" show-alpha></el-color-picker>
      </el-form-item>
      <el-form-item label="配色2">
        <el-color-picker v-model="option.colors[1]" show-alpha></el-color-picker>
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
  export default {
    name: "new-water-option",
    props: ["option"],
    data() {
      return {
        show: true
      };
    },
  };

</script>
<style lang="scss">

</style>
