pagemain.vue 1010 B

123456789101112131415161718192021222324252627282930313233343536
  1. <route lang="yaml">
  2. meta:
  3. enabled: false
  4. </route>
  5. <template>
  6. <div>
  7. <FaPageHeader title="内容块" description="FaPageMain" />
  8. <FaPageMain>
  9. PageMain 是最常用的页面组件,几乎所有页面都会使用到
  10. </FaPageMain>
  11. <FaPageMain title="你可以设置一个自定义的标题">
  12. 这里放页面内容
  13. </FaPageMain>
  14. <FaPageMain>
  15. <template #title>
  16. <div class="flex-center-between">
  17. 通过 slot 设置标题
  18. <FaButton variant="outline" size="sm">
  19. 还可以放置自定义按钮
  20. </FaButton>
  21. </div>
  22. </template>
  23. 这里放页面内容
  24. </FaPageMain>
  25. <FaPageMain title="带展开/收起功能" collaspe height="100px">
  26. <div class="space-y-4">
  27. <h1 class="text-4xl font-bold">
  28. Fantastic-admin
  29. </h1>
  30. <img src="@/assets/images/logo.svg" class="w-20">
  31. <p>用过的人都说好!!!</p>
  32. </div>
  33. </FaPageMain>
  34. </div>
  35. </template>