Document.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <document-cards :data="data" :hasUpload="true" />
  3. </template>
  4. <script>
  5. import DocumentCards from "@/components/DocumentCards.vue";
  6. import { defineComponent, ref, inject, reactive } from "vue";
  7. export default defineComponent({
  8. components: {
  9. DocumentCards
  10. },
  11. setup() {
  12. const data = ref([
  13. {
  14. background: "rgba(72, 177, 244, 0.06)",
  15. color: "rgb(72, 177, 244)",
  16. img: "/src/assets/document/1.png",
  17. title: "自定义个人文档",
  18. content: "支持个人文档上传,以列表形式管理个人文档库"
  19. },
  20. {
  21. background: "rgba(158, 128, 255, 0.06)",
  22. color: "rgb(158, 128, 255)",
  23. img: "/src/assets/document/2.png",
  24. title: "多文档问答",
  25. content: "支持勾选多个文档,实现基于限定文档的问答"
  26. }
  27. ]);
  28. return {
  29. data
  30. };
  31. }
  32. });
  33. </script>