| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import {
- displayList,
- serialNumberTypeList,
- serialNumberPositionList,
- arrangeTypeList,
- switchOption,
- isEnable,
- serialNumberStyleList,
- } from '@/views/book/courseware/data/common';
- export { arrangeTypeList, switchOption, isEnable };
- // 拼音位置
- export const pinyinPositionLists = [
- { value: 'front', label: '前面' },
- { value: 'back', label: '后面' },
- { value: 'top', label: '上面' },
- { value: 'bottom', label: '下面' },
- ];
- export const wordShowList = [
- { value: 'true', label: '是' },
- { value: 'false', label: '否' },
- ];
- export function getOption() {
- return {
- number: '',
- con: '',
- pinyin: '',
- interpret: '', // 翻译
- note: '', // 注释
- file_list: [''], // 图片
- notesColor: '#8206BF', // 在课文中预览的注释颜色
- match_jump: {
- type: 'outer',
- con: '',
- source_courseware_id_list: [],
- source_courseware_name:''
- }
- };
- }
- export function getNotesProperty() {
- return {
- serial_number: 1,
- sn_type: serialNumberTypeList[0].value,
- sn_position: serialNumberPositionList[3].value,
- sn_style: serialNumberStyleList[0].value,
- sn_background_color: '#ea3232', // 序号背景色
- sn_display_mode: displayList[1].value,
- is_word_show: wordShowList[0].value,
- view_pinyin: 'false', // 显示拼音
- pinyin_position: pinyinPositionLists[1].value, // top bottom
- is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true', // 句首大写
- };
- }
- export function getNotesData() {
- return {
- type: 'notes',
- title: '注释组件',
- property: getNotesProperty(),
- title_con: '',
- option: [getOption()],
- file_id_list: [], // 文件 id
- mind_map: {
- node_list: [{ name: '注释组件' }], // 思维导图数据
- },
- paragraph_list: [],
- paragraph_list_parameter: {
- text: '',
- is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true',
- pinyin_proofread_word_list: [],
- },
- multilingual: [], // 多语言
- };
- }
|