<template>
  <div>
    <el-form :model="property" :label-position="labelPosition" label-width="56px">
      <el-form-item label="高度">
        <el-input v-model="property.height" />
      </el-form-item>
      <el-form-item label="类型">
        <el-select v-model="property.line_type">
          <el-option v-for="(line, i) in lineTypeList" :key="i" :label="line.string" :value="line.value" />
        </el-select>
      </el-form-item>
      <el-form-item label="颜色">
        <el-color-picker v-model="property.color" />
      </el-form-item>
      <el-form-item label="线宽">
        <el-input v-model="property.width" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import SettingMixin from '@/views/book/courseware/create/components/common/SettingMixin';
import { lineTypeList } from '@/views/book/courseware/data/divider';

export default {
  name: 'DividerSetting',
  mixins: [SettingMixin],
  data() {
    return {
      labelPosition: 'left',
      property: {
        height: 100,
        type: 'solid',
        width: 920,
        color: '#FF0000',
      },
      lineTypeList,
    };
  },
  methods: {},
};
</script>
