四零语境前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.2 KiB

  1. export default {
  2. provide () {
  3. return {
  4. getPrevChapterDefaultText: () => this.prevChapterDefaultText,
  5. getNextChapterDefaultText: () => this.nextChapterDefaultText,
  6. getChapterReadyText: () => this.chapterReadyText,
  7. getChapterLoadingText: () => this.chapterLoadingText,
  8. getChapterSuccessText: () => this.chapterSuccessText,
  9. getChapterFailText: () => this.chapterFailText,
  10. getPrevChapterEndText: () => this.prevChapterEndText,
  11. getNextChapterEndText: () => this.nextChapterEndText
  12. }
  13. },
  14. props: {
  15. loadingText: {
  16. type: String,
  17. default: '内容排版中'
  18. },
  19. errorText: {
  20. type: String,
  21. default: '渲染失败\n\n点击重试'
  22. },
  23. chapterReadyText: {
  24. type: String,
  25. default: '松开加载'
  26. },
  27. chapterLoadingText: {
  28. type: String,
  29. default: '正在加载'
  30. },
  31. chapterSuccessText: {
  32. type: String,
  33. default: '加载成功'
  34. },
  35. chapterFailText: {
  36. type: String,
  37. default: '加载失败'
  38. },
  39. prevChapterDefaultText: {
  40. type: String,
  41. default: '加载上一章'
  42. },
  43. prevChapterEndText: {
  44. type: String,
  45. default: '前面没有了'
  46. },
  47. nextChapterDefaultText: {
  48. type: String,
  49. default: '加载下一章'
  50. },
  51. nextChapterEndText: {
  52. type: String,
  53. default: '后面没有了'
  54. }
  55. }
  56. }