list.tsx 871 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import Base from "./form/base.vue";
  2. import Dialog from "./form/dialog.vue";
  3. import Drawer from "./form/drawer.vue";
  4. import Steps from "./form/steps.vue";
  5. import Search from "./form/search.vue";
  6. const rendContent = (val: string) =>
  7. `代码位置:src/views/schema-form/form/${val}.vue`;
  8. export const list = [
  9. {
  10. key: "base",
  11. content: rendContent("base"),
  12. title: "基础表单",
  13. component: Base
  14. },
  15. {
  16. key: "dialog",
  17. content: rendContent("dialog"),
  18. title: "弹框表单",
  19. component: Dialog
  20. },
  21. {
  22. key: "drawer",
  23. content: rendContent("drawer"),
  24. title: "抽屉表单",
  25. component: Drawer
  26. },
  27. {
  28. key: "steps",
  29. content: rendContent("steps"),
  30. title: "分步表单",
  31. component: Steps
  32. },
  33. {
  34. key: "search",
  35. content: rendContent("search"),
  36. title: "搜索表单",
  37. component: Search
  38. }
  39. ];