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

      <el-form-item label="查看方式">
        <el-radio v-for="{ value, label } in viewMethodList" :key="value" v-model="property.view_method" :label="value">
          {{ label }}
        </el-radio>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import SettingMixin from '@/views/book/courseware/create/components/common/SettingMixin';
import { viewMethodList } from '@/views/book/courseware/data/common';
import { getVideoProperty } from '@/views/book/courseware/data/video';

export default {
  name: 'VideoSetting',
  mixins: [SettingMixin],
  data() {
    return {
      viewMethodList,
      labelPosition: 'left',
      property: getVideoProperty(),
    };
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
@use '@/styles/mixin.scss' as *;

.el-form {
  @include setting-base;
}
</style>
