<template>
  <div class="new-line-option">
    <div class="setting-title" @click="openVideo = true">
      <div>制作小视频</div>
    </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="40%" v-show="show">
      <el-form-item label="类型选择">
        <el-radio v-model="option.barRaceType" label="1">文字模式</el-radio>
        <el-radio v-model="option.barRaceType" label="2">时间轴模式</el-radio>
      </el-form-item>
      <template v-if="option.barRaceType === '1'">
        <el-form-item label="内部文字大小">
          <el-input-number v-model="option.graphicStyleFontSize"></el-input-number>
        </el-form-item>
        <el-form-item label="内部文字颜色">
          <avue-input-color v-model="option.graphicStyleFontColor"></avue-input-color>
        </el-form-item>
      </template>
      <template v-if="option.barRaceType === '2'">
<!--        <el-form-item label="内部文字大小">-->
<!--          <el-input-number v-model="option.graphicStyleFontSize"></el-input-number>-->
<!--        </el-form-item>-->
<!--        <el-form-item label="内部文字颜色">-->
<!--          <avue-input-color v-model="option.graphicStyleFontColor"></avue-input-color>-->
<!--        </el-form-item>-->
      </template>
      <el-form-item label="排名数量">
        <el-input-number v-model="option.barRaceMax"></el-input-number>
      </el-form-item>
    </el-form>
    <el-dialog
      title="小视频制作"
      :visible.sync="openVideo"
      width="50%">
      <span>二维码扫一扫</span>
      <span slot="footer">
        <el-button @click="openVideo = false">分享抖音</el-button>
        <el-button type="primary" @click="openVideo = false">下载小视频</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: "new-bar-race-option",
  props: ["option"],
  data() {
    return {
      show: false,
      openVideo: false
    };
  },
};
</script>
<style lang="scss">
.new-line-option {
}
</style>
