star-horse-lowcode 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.es.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -206062,17 +206062,19 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
206062
206062
|
const formData = useModel(__props, "formData");
|
|
206063
206063
|
const currentComponent = shallowRef(null);
|
|
206064
206064
|
const loadComponent = async () => {
|
|
206065
|
-
let
|
|
206066
|
-
if (
|
|
206065
|
+
let compOption = props.field["preps"].compName;
|
|
206066
|
+
if (typeof compOption === "object" && compOption?.__name) {
|
|
206067
|
+
currentComponent.value = compOption;
|
|
206068
|
+
} else if (typeof compOption === "string") {
|
|
206067
206069
|
try {
|
|
206068
|
-
let comp = await __variableDynamicImportRuntimeHelper((/* #__PURE__ */ Object.assign({"../../help.vue": () => Promise.resolve().then(() => help)})), `../../${
|
|
206070
|
+
let comp = await __variableDynamicImportRuntimeHelper((/* #__PURE__ */ Object.assign({"../../help.vue": () => Promise.resolve().then(() => help)})), `../../${compOption}.vue`, 3);
|
|
206069
206071
|
currentComponent.value = comp.default;
|
|
206070
206072
|
} catch (e) {
|
|
206071
206073
|
console.log(e.message);
|
|
206072
206074
|
currentComponent.value = null;
|
|
206073
206075
|
}
|
|
206074
206076
|
} else {
|
|
206075
|
-
currentComponent.value =
|
|
206077
|
+
currentComponent.value = null;
|
|
206076
206078
|
}
|
|
206077
206079
|
};
|
|
206078
206080
|
onMounted(() => {
|