config.js 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. module.exports = {
  2. versions: [
  3. {
  4. name: '1.x',
  5. link: '/1x/'
  6. },
  7. {
  8. name: '2.x',
  9. link: '/'
  10. },
  11. {
  12. name: '3.x',
  13. link: '/3x/'
  14. }
  15. ],
  16. header: [
  17. {
  18. name: 'guide',
  19. cName: '指南',
  20. path: '/'
  21. },
  22. {
  23. name: '/',
  24. cName: '组件',
  25. path: '/'
  26. },
  27. {
  28. name: 'example',
  29. cName: '示例',
  30. path: '/'
  31. },
  32. {
  33. name: 'resource',
  34. cName: '资源',
  35. path: '/resource'
  36. }
  37. ],
  38. docs: {
  39. name: '指南',
  40. packages: [
  41. {
  42. name: 'intro',
  43. cName: '介绍',
  44. show: true
  45. },
  46. {
  47. name: 'start',
  48. cName: '快速上手',
  49. show: true
  50. },
  51. {
  52. name: 'theme',
  53. cName: '主题定制',
  54. show: true
  55. },
  56. {
  57. name: 'international',
  58. cName: '国际化',
  59. show: true
  60. },
  61. {
  62. name: 'https://github.com/jdf2e/nutui/releases',
  63. cName: '更新日志',
  64. show: true,
  65. isLink: true
  66. }
  67. ]
  68. },
  69. nav: [
  70. {
  71. name: '布局组件',
  72. packages: [
  73. {
  74. name: 'Button',
  75. sort: 1,
  76. cName: '按钮组件',
  77. type: 'component',
  78. show: true,
  79. desc: '按钮用于触发一个操作,如提交表单。',
  80. author: 'richard1015'
  81. },
  82. {
  83. name: 'collapse',
  84. sort: 2,
  85. cName: '折叠面板',
  86. type: 'component',
  87. show: true,
  88. desc: '折叠面板',
  89. author: 'Ymm0008'
  90. },
  91. {
  92. name: 'collapse',
  93. sort: 3,
  94. cName: '折叠面板-item',
  95. type: 'component',
  96. show: false,
  97. desc: '折叠面板-item',
  98. author: 'Ymm0008'
  99. },
  100. {
  101. name: 'Layout',
  102. sort: 4,
  103. cName: '布局',
  104. type: 'component',
  105. show: true,
  106. desc: '简便地创建布局',
  107. author: 'undo'
  108. },
  109. {
  110. name: 'col',
  111. sort: 5,
  112. cName: '布局-Col',
  113. type: 'component',
  114. show: false,
  115. desc: '布局组件Col',
  116. author: 'undo'
  117. },
  118. {
  119. name: 'row',
  120. sort: 6,
  121. cName: '布局-Row',
  122. type: 'component',
  123. show: false,
  124. desc: '布局组件Row',
  125. author: 'undo'
  126. }
  127. ]
  128. },
  129. {
  130. name: '操作反馈',
  131. packages: [
  132. {
  133. name: 'BackTop',
  134. sort: '1',
  135. cName: '回到顶部',
  136. type: 'component',
  137. show: true,
  138. desc: '较长页面快捷回到顶部',
  139. author: 'liqiong43'
  140. }
  141. ]
  142. },
  143. {
  144. name: '基础组件',
  145. packages: [
  146. {
  147. name: 'Temp',
  148. sort: 1,
  149. cName: '模板组件',
  150. type: 'component',
  151. show: true,
  152. desc: '组件模板示例',
  153. author: 'richard1015'
  154. },
  155. {
  156. name: 'Cell',
  157. sort: 1,
  158. cName: '单元格组件',
  159. type: 'component',
  160. show: true,
  161. desc: '展示列表',
  162. author: 'richard1015'
  163. },
  164. {
  165. name: 'Uploader',
  166. sort: 2,
  167. cName: '上传组件',
  168. type: 'component',
  169. show: true,
  170. desc: '上传文件、图片',
  171. author: 'richard1015'
  172. },
  173. {
  174. name: 'Icon',
  175. sort: 3,
  176. cName: '图标组件',
  177. type: 'component',
  178. show: true,
  179. desc: '图标',
  180. author: 'richard1015'
  181. },
  182. {
  183. name: 'Price',
  184. sort: 4,
  185. cName: '价格组件',
  186. type: 'component',
  187. show: true,
  188. desc: '价格组件',
  189. author: 'ailululu'
  190. },
  191. {
  192. name: 'Checkbox',
  193. sort: 5,
  194. cName: '复选按钮',
  195. type: 'component',
  196. show: true,
  197. desc: '复选按钮',
  198. author: 'Ymm0008'
  199. },
  200. {
  201. name: 'Swiper',
  202. sort: 6,
  203. cName: '轮播',
  204. type: 'component',
  205. show: true,
  206. desc: '轮播',
  207. author: 'ailululu'
  208. },
  209. {
  210. name: 'Avatar',
  211. sort: 7,
  212. cName: '头像',
  213. type: 'component',
  214. show: true,
  215. desc: '头像',
  216. author: 'ailululu'
  217. }
  218. ]
  219. },
  220. {
  221. name: '导航组件',
  222. packages: [
  223. {
  224. name: 'Navbar',
  225. sort: 3,
  226. cName: '导航组件',
  227. type: 'componment',
  228. show: true,
  229. desc: '导航组件',
  230. author: 'liqiong43'
  231. },
  232. {
  233. name: 'tab',
  234. sort: 1,
  235. cName: '标签组件',
  236. type: 'component',
  237. show: true,
  238. desc: '标签组件',
  239. author: 'zhenyulei'
  240. },
  241. {
  242. name: 'menu',
  243. sort: 2,
  244. cName: '菜单组件',
  245. type: 'component',
  246. show: true,
  247. desc: '下拉菜单组件',
  248. author: 'vickyYE'
  249. }
  250. ]
  251. },
  252. {
  253. name: '数据录入',
  254. packages: [
  255. {
  256. name: 'InputNumber',
  257. sort: 1,
  258. cName: '数字输入框',
  259. type: 'component',
  260. show: true,
  261. desc: '数字输入框组件',
  262. author: 'szg2008'
  263. },
  264. {
  265. name: 'Input',
  266. sort: 2,
  267. cName: '输入框',
  268. type: 'component',
  269. show: true,
  270. desc: '输入框组件',
  271. author: 'gxx158'
  272. },
  273. {
  274. version: '3.0.0',
  275. name: 'Switch',
  276. type: 'component',
  277. cName: '开关组件',
  278. desc: '用来打开或关闭选项',
  279. sort: 3,
  280. show: true,
  281. author: 'zongyue3'
  282. },
  283. {
  284. name: 'Rate',
  285. sort: 4,
  286. cName: '评分',
  287. type: 'component',
  288. show: true,
  289. desc: '评分组件',
  290. author: 'undo'
  291. }
  292. ]
  293. },
  294. {
  295. name: '业务组件',
  296. packages: []
  297. }
  298. ]
  299. };