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

      <el-form-item label="行数">
        <el-input-number v-model="property.row_count" :min="1" />
      </el-form-item>
      <el-form-item label="列数">
        <el-input-number v-model="property.column_count" :min="1" />
      </el-form-item>
      <el-form-item label="按列播放">
        <el-radio-group v-model="property.is_enable_column_play">
          <el-radio v-for="{ value, label } in switchOption" :key="value" :label="value">{{ label }}</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="按行播放">
        <el-radio-group v-model="property.is_enable_row_play">
          <el-radio v-for="{ value, label } in switchOption" :key="value" :label="value">{{ label }}</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-divider />
      <el-form-item label="录音功能">
        <el-radio-group v-model="property.is_enable_record">
          <el-radio v-for="{ value, label } in switchOption" :key="value" :label="value">{{ label }}</el-radio>
        </el-radio-group>
      </el-form-item>
    </el-form>
  </div>
</template>

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

import { getVoiceMatrixProperty, switchOption } from '@/views/book/courseware/data/voiceMatrix';

export default {
  name: 'VoiceMatrixSetting',
  mixins: [SettingMixin],
  data() {
    return {
      property: getVoiceMatrixProperty(),
      switchOption,
    };
  },
  methods: {},
};
</script>

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

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