<!-- 实时时间配置 -->
<template>
  <el-form size="mini" label-width="80px">
    <div class="setting-title">
      <div>组件设置</div>
    </div>
    <el-form-item label="时间格式">
      <avue-select v-model="option.format"
                   :dic="dicOption.format">
      </avue-select>
    </el-form-item>
    <el-form-item label="自定义格式">
      <avue-input v-model="option.format">
      </avue-input>
    </el-form-item>
    <el-form-item label="字体间距">
      <avue-input-number v-model="option.split"
                         :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.backgroundColor"></avue-input-color>
    </el-form-item>
    <el-form-item label="对其方式">
      <avue-select v-model="option.textAlign"
                   :dic="dicOption.textAlign">
      </avue-select>
    </el-form-item>
    <el-form-item label="文字粗细">
      <avue-select v-model="option.fontWeight"
                   :dic="dicOption.fontWeight">
      </avue-select>
    </el-form-item>
    <el-form-item label="字体颜色">
      <avue-input-color v-model="option.color"></avue-input-color>
    </el-form-item>
  </el-form>
</template>

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

<style>
</style>
