stage-config.js.ejs 781 B

12345678910111213141516171819202122232425262728293031323334
  1. const <%= camelCaseName %>Router = {
  2. route: null,
  3. name: null,
  4. title: '<%= title %>',
  5. type: 'folder',
  6. icon: 'iconfont icon-demo',
  7. filePath: 'views/<%= name %>/',
  8. order: null,
  9. inNav: true,
  10. children: [
  11. {
  12. title: '舞台页面',
  13. type: 'view',
  14. name: '<%= name %>Stage1',
  15. route: '/<%= name %>/stage1',
  16. filePath: 'plugin/<%= name %>/view/stage1.vue',
  17. inNav: true,
  18. icon: 'iconfont icon-demo',
  19. right: null,
  20. },
  21. {
  22. title: '舞台页面',
  23. type: 'view',
  24. name: '<%= name %>Stage2',
  25. route: '/<%= name %>/stage2',
  26. filePath: 'plugin/<%= name %>/view/stage2.vue',
  27. inNav: true,
  28. icon: 'iconfont icon-demo',
  29. right: null,
  30. },
  31. ],
  32. }
  33. export default <%= camelCaseName %>Router