From ad6ea5584d7f2bd9a58ed666d3c5c5b4ba65b3f8 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 9 Sep 2022 18:46:14 +0800 Subject: [PATCH] perf: clean up theme visual component code --- src/modules/interface/themes/Visual.vue | 57 ++----------------------- 1 file changed, 4 insertions(+), 53 deletions(-) diff --git a/src/modules/interface/themes/Visual.vue b/src/modules/interface/themes/Visual.vue index 8c452100..6d63c394 100644 --- a/src/modules/interface/themes/Visual.vue +++ b/src/modules/interface/themes/Visual.vue @@ -6,13 +6,12 @@ import { IconSettings, IconTablet, VButton, - VCard, - VModal, VSpace, VTabbar, VTabItem, VTabs, } from "@halo-dev/components"; +import AttachmentSelectorModal from "@/modules/contents/attachments/components/AttachmentSelectorModal.vue"; import { computed, onMounted, ref, shallowRef } from "vue"; const activeId = ref("general"); @@ -46,19 +45,6 @@ const iframeClasses = computed(() => { return "w-96 h-[50rem]"; }); -const attachments = Array.from(new Array(50), (_, index) => index).map( - (index) => { - return { - id: index, - name: `attachment-${index}`, - url: `https://picsum.photos/1000/700?random=${index}`, - size: "1.2MB", - type: "image/png", - strategy: "本地存储", - }; - } -); - onMounted(() => { window.addEventListener( "message", @@ -72,44 +58,9 @@ onMounted(() => { });