From 62c2dd3abc5a5600d450e4e7a2ba4f57de2a3283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 12 Aug 2024 16:10:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=BB=9A=E5=8A=A8=E6=9D=A1?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model-custom/components/index.vue | 13 ++++++++++--- .../model-custom/model-custom-content.vue | 10 +++++++--- src/layout/components/main/index.vue | 19 ++++++++++++++++++- 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/components/model-custom/components/index.vue b/src/components/model-custom/components/index.vue index 65ed3b72..584be107 100644 --- a/src/components/model-custom/components/index.vue +++ b/src/components/model-custom/components/index.vue @@ -5,9 +5,9 @@
-
-
- +
+
+
{{ item.name }}
@@ -169,6 +169,10 @@ const components = reactive([ ], }, ]); +const url_computer = (name: string) => { + const new_url = ref(new URL(`../../../assets/images/custom/${name}.png`, import.meta.url).href).value; + return new_url; +}; //#endregion //#region 中间区域的处理逻辑 const diy_data = toRef(props.list); @@ -359,6 +363,9 @@ const resizingHandle = (new_location: any, key: string, index: number) => { } }; //#endregion +defineExpose({ + diy_data, +});