describe.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import {
  2. displayList,
  3. serialNumberTypeList,
  4. serialNumberStyleList,
  5. serialNumberPositionList,
  6. pinyinPositionList,
  7. } from '@/views/book/courseware/data/common';
  8. export function getDescribeProperty() {
  9. return {
  10. serial_number: 1, // 序号
  11. sn_type: serialNumberTypeList[0].value, // 序号类型:letter字母 number数字 capital大写字母 bracket_number括号数字
  12. sn_position: serialNumberPositionList[3].value, // 序号位置:top-start top top-end,left-start left left-end等
  13. sn_display_mode: displayList[0].value,
  14. sn_style: serialNumberStyleList[0].value,
  15. sn_background_color: '#ea3232', // 序号背景色
  16. view_pinyin: 'false', // 显示拼音
  17. pinyin_position: pinyinPositionList[0].value, // top bottom
  18. is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true', // 句首大写
  19. };
  20. }
  21. export function getDescribeData() {
  22. return {
  23. type: 'describe',
  24. title: '描述',
  25. content: '',
  26. paragraph_list: [],
  27. paragraph_list_parameter: {
  28. text: '',
  29. is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true',
  30. pinyin_proofread_word_list: [],
  31. },
  32. property: getDescribeProperty(),
  33. mind_map: {
  34. node_list: [{ name: '描述' }],
  35. },
  36. };
  37. }