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, +});