<template>
  <div>
    <el-form :model="property" label-width="72px" label-position="left">
      <SerailNumber :property="property" />
      <el-form-item label="详细信息">
        <el-radio-group v-model="property.is_has_infor">
          <el-radio v-for="{ value, label } in inforList" :key="value" :label="value">
            {{ label }}
          </el-radio>
        </el-radio-group>
      </el-form-item>

      <el-form-item label="预览展开">
        <el-radio-group v-model="property.is_word_show">
          <el-radio v-for="{ value, label } in wordShowList" :key="value" :label="value">
            {{ label }}
          </el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="读音">
        <el-select v-model="property.audio_generation_method" placeholder="请选择">
          <el-option v-for="{ value, label } in audioGenerationMethodList" :key="value" :label="label" :value="value" />
        </el-select>
      </el-form-item>

      <el-form-item label="拼音位置">
        <el-radio-group v-model="property.pinyin_position">
          <el-radio v-for="{ value, label } in pinyinPositionList" :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 {
  getNewWordProperty,
  audioGenerationMethodList,
  pinyinPositionList,
  wordShowList,
  inforList,
} from '@/views/book/courseware/data/newWord';

export default {
  name: 'NewWordSetting',
  mixins: [SettingMixin],
  data() {
    return {
      property: getNewWordProperty(),
      audioGenerationMethodList,
      pinyinPositionList,
      wordShowList,
      inforList,
    };
  },
  methods: {},
};
</script>

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

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