config.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. export const versions = [
  2. { name: '1.x', link: '/1x/' },
  3. { name: '2.x', link: '/' },
  4. { name: '3.x', link: '/3x/' }
  5. ];
  6. export const docs = {
  7. name: '指南',
  8. packages: [
  9. {
  10. name: 'intro',
  11. cName: '介绍',
  12. show: true
  13. },
  14. {
  15. name: 'start',
  16. cName: '快速上手',
  17. show: true
  18. },
  19. {
  20. name: 'theme',
  21. cName: '主题定制',
  22. show: true
  23. },
  24. {
  25. name: 'international',
  26. cName: '国际化',
  27. show: true
  28. },
  29. {
  30. name: 'https://github.com/jdf2e/nutui/releases',
  31. cName: '更新日志',
  32. show: true,
  33. isLink: true
  34. }
  35. ]
  36. };
  37. export const nav = [
  38. {
  39. name: '布局组件',
  40. packages: [
  41. {
  42. name: 'Button',
  43. sort: 1,
  44. cName: '按钮组件',
  45. type: 'component',
  46. show: true,
  47. desc: '按钮用于触发一个操作,如提交表单。',
  48. author: 'richard1015'
  49. }
  50. ]
  51. },
  52. {
  53. name: '操作反馈',
  54. packages: []
  55. },
  56. {
  57. name: '基础组件',
  58. packages: [
  59. {
  60. name: 'Temp',
  61. sort: 1,
  62. cName: '模板组件',
  63. type: 'component',
  64. show: true,
  65. desc: '组件模板示例',
  66. author: 'richard1015'
  67. },
  68. {
  69. name: 'Cell',
  70. sort: 1,
  71. cName: '单元格组件',
  72. type: 'component',
  73. show: true,
  74. desc: '展示列表',
  75. author: 'richard1015'
  76. },
  77. {
  78. name: 'Uploader',
  79. sort: 2,
  80. cName: '上传组件',
  81. type: 'component',
  82. show: true,
  83. desc: '上传文件、图片',
  84. author: 'richard1015'
  85. },
  86. {
  87. name: 'Icon',
  88. sort: 3,
  89. cName: '图标组件',
  90. type: 'component',
  91. show: true,
  92. desc: '图标',
  93. author: 'richard1015'
  94. },
  95. {
  96. name: 'Price',
  97. sort: 4,
  98. cName: '价格组件',
  99. type: 'component',
  100. show: true,
  101. desc: '价格组件',
  102. author: 'ailululu'
  103. }
  104. ]
  105. },
  106. {
  107. name: '导航组件',
  108. packages: [
  109. {
  110. name: 'Navbar',
  111. sort: 3,
  112. cName: '导航组件',
  113. type: 'componment',
  114. show: true,
  115. desc: '导航组件',
  116. author: 'liqiong43'
  117. },
  118. {
  119. name: 'tab',
  120. sort: 1,
  121. cName: '标签组件',
  122. type: 'component',
  123. show: true,
  124. desc: '标签组件',
  125. author: 'zhenyulei'
  126. }
  127. ]
  128. },
  129. {
  130. name: '业务组件',
  131. packages: []
  132. }
  133. ];