<template>
  <div>
    <el-form :model="property" label-width="72px">
      <SerailNumber :property="property" />

      <el-form-item label="选项数">
        <el-input-number v-model="property.option_count" :min="1" />
      </el-form-item>
      <el-form-item label="排列">
        <el-radio
          v-for="{ value, label } in arrangeTypeList"
          :key="value"
          v-model="property.arrange_direction"
          :label="value"
        >
          {{ label }}
        </el-radio>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import SettingMixin from '@/views/book/courseware/create/components/common/SettingMixin';

import { arrangeTypeList, getSortProperty } from '@/views/book/courseware/data/sort';

export default {
  name: 'SortPreview',
  mixins: [SettingMixin],
  data() {
    return {
      property: getSortProperty(),
      arrangeTypeList,
    };
  },
  methods: {},
};
</script>

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