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 CHANGED
@@ -334,5 +334,7 @@ barcode 条形码组件
334
334
  39. 2025-08-12 修复容器组件tabItem和collapseItem 面板切换自定义事件不响应bug
335
335
  40. 2025-08-13 优化在动态表单设计时starhorse-form-item 选中组件时响应性能。同时将表单组件的props参数抽成接口
336
336
  41. 2025-08-14 增加表单设计时组件联动,通过dataRelation 配置项实现
337
+ 修复usercomp-item 组件名字冲突问题
338
+
337
339
 
338
340
 
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 compName = props.field["preps"].compName;
206066
- if (compName) {
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)})), `../../${compName}.vue`, 3);
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 = props.field?.preps["name"];
206077
+ currentComponent.value = null;
206076
206078
  }
206077
206079
  };
206078
206080
  onMounted(() => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "star-horse-lowcode",
3
3
  "private": false,
4
4
  "author": "l_1019@163.com",
5
- "version": "2.8.0",
5
+ "version": "2.8.1",
6
6
  "type": "module",
7
7
  "description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
8
8
  "keywords": [