star-horse-lowcode 2.7.12 → 2.7.14

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/dist/index.es.js CHANGED
@@ -96331,6 +96331,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
96331
96331
  });
96332
96332
  provide("closeDialog", beforeClose);
96333
96333
  const fullScreen = () => {
96334
+ if (props.hideFullScreenIcon) return;
96334
96335
  isFullScreen.value = !isFullScreen.value;
96335
96336
  };
96336
96337
  let clickFunction = reactive({});
@@ -96369,7 +96370,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
96369
96370
  style: normalizeStyle(dialogStyle.value)
96370
96371
  }, {
96371
96372
  header: withCtx(({ close }) => [
96372
- createElementVNode("h3", null, toDisplayString(__props.title || __props.dialogProps.dialogTitle), 1),
96373
+ createElementVNode("h3", { onDblclick: fullScreen }, toDisplayString(__props.title || __props.dialogProps.dialogTitle), 33),
96373
96374
  createElementVNode("div", _hoisted_2$A, [
96374
96375
  !__props.hideFullScreenIcon ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
96375
96376
  !!unref(isFullScreen) && __props.draggable ? (openBlock(), createBlock(_component_el_button, {
@@ -96547,7 +96548,7 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
96547
96548
  }
96548
96549
  });
96549
96550
 
96550
- const __unplugin_components_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__scopeId", "data-v-f46e880e"]]);
96551
+ const __unplugin_components_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$1C, [["__scopeId", "data-v-027b78b5"]]);
96551
96552
 
96552
96553
  const StarHorseDialog = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
96553
96554
  __proto__: null,
@@ -101999,7 +102000,8 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
101999
102000
  };
102000
102001
  const mergeData = async () => {
102001
102002
  let flag = false;
102002
- await rowDataFormRef.value.$refs.starHorseFormRef.validate((res) => flag = res);
102003
+ let formRef = rowDataFormRef.value.$refs.starHorseFormRef;
102004
+ await formRef.validate((res) => flag = res);
102003
102005
  if (!flag) {
102004
102006
  return;
102005
102007
  }
@@ -102392,7 +102394,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
102392
102394
  }
102393
102395
  });
102394
102396
 
102395
- const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-b3fd4633"]]);
102397
+ const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-c0917820"]]);
102396
102398
 
102397
102399
  const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
102398
102400
  __proto__: null,
@@ -102731,7 +102733,6 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
102731
102733
  }),
102732
102734
  emits: /* @__PURE__ */ mergeModels(["addRow", "removeRow"], ["update:dataForm"]),
102733
102735
  setup(__props, { emit: __emit }) {
102734
- const props = __props;
102735
102736
  const emits = __emit;
102736
102737
  const dataForm = useModel(__props, "dataForm");
102737
102738
  const addRow = (row) => {
@@ -102740,11 +102741,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
102740
102741
  const removeRow = (row) => {
102741
102742
  emits("removeRow", row);
102742
102743
  };
102743
- const init = () => {
102744
- console.log("carditem................", props.dataIndex);
102745
- };
102746
102744
  onMounted(() => {
102747
- init();
102748
102745
  });
102749
102746
  return (_ctx, _cache) => {
102750
102747
  const _component_help = _sfc_main$1m;
@@ -102826,7 +102823,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
102826
102823
  }
102827
102824
  });
102828
102825
 
102829
- const __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-74e33c08"]]);
102826
+ const __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-c1336d5e"]]);
102830
102827
 
102831
102828
  const _hoisted_1$A = { class: "collapse-item-title title" };
102832
102829
  const _hoisted_2$q = { style: { "width": "80%" } };
@@ -109783,30 +109780,30 @@ const userOperation = useSelfOperationStore(piniaInstance);
109783
109780
  const isDesign = computed(() => designForm.isEdit);
109784
109781
  const change = (context) => {
109785
109782
  const field = context.attrs["field"];
109786
- const relation = field.preps.dataRelation;
109783
+ const relation = field.preps?.dataRelation;
109787
109784
  operationRelation(relation, "change", context.attrs["formData"], field.preps["name"]);
109788
109785
  };
109789
109786
  const input$2 = (context) => {
109790
109787
  const field = context.attrs["field"];
109791
- const relation = field.preps.dataRelation;
109788
+ const relation = field.preps?.dataRelation;
109792
109789
  operationRelation(relation, "input", context.attrs["formData"], field.preps["name"]);
109793
109790
  };
109794
109791
  const focus = (context) => {
109795
109792
  const field = context.attrs["field"];
109796
- const relation = field.preps.dataRelation;
109793
+ const relation = field.preps?.dataRelation;
109797
109794
  operationRelation(relation, "focus", context.attrs["formData"], field.preps["name"]);
109798
109795
  };
109799
109796
  const blur = (context) => {
109800
109797
  const field = context.attrs["field"];
109801
- const relation = field.preps.dataRelation;
109798
+ const relation = field.preps?.dataRelation;
109802
109799
  operationRelation(relation, "blur", context.attrs["formData"], field.preps["name"]);
109803
109800
  };
109804
109801
  const mouseEnter = (context) => {
109805
109802
  const field = context.attrs["field"];
109806
- const relation = field.preps.dataRelation;
109803
+ const relation = field.preps?.dataRelation;
109807
109804
  operationRelation(relation, "enter", context.attrs["formData"], field.preps["name"]);
109808
109805
  };
109809
- const operationRelation = (relation, actionName, formData, currentName) => {
109806
+ const operationRelation = async (relation, actionName, formData, currentName) => {
109810
109807
  if (!relation || actionName != relation.actionName) {
109811
109808
  return;
109812
109809
  }
@@ -109824,15 +109821,8 @@ const operationRelation = (relation, actionName, formData, currentName) => {
109824
109821
  }
109825
109822
  const field = userOperation.getFormItem(fieldName);
109826
109823
  const params = temp.params;
109827
- const matchType = temp.matchType;
109828
- if (conditon == "query") {
109829
- const cond = createCondition(params, currentVal, matchType);
109830
- let queryParams = field.preps["queryParams"];
109831
- if (queryParams) {
109832
- queryParams = field.preps["queryParams"].filter((item) => item.name != params);
109833
- }
109834
- queryParams.push(cond);
109835
- field.preps["queryParams"] = queryParams;
109824
+ if (conditon == "dataLinkage") {
109825
+ formData[fieldName + "OptionList"] = await compDynamicData(temp);
109836
109826
  } else if (conditon == "eqDisable" || conditon == "eqDisableOrEditable") {
109837
109827
  formData["_" + fieldName + "Editable"] = !(currentVal == params);
109838
109828
  } else if (conditon == "eqEditable" || conditon == "eqEditableOrDisable") {
@@ -109849,14 +109839,18 @@ const operationRelation = (relation, actionName, formData, currentName) => {
109849
109839
  }
109850
109840
  };
109851
109841
  const allAction = (context, actionName, isInit = false) => {
109842
+ const field = context.attrs["field"];
109843
+ if (!isInit && actionName != "normal") {
109844
+ try {
109845
+ context.emit("selfFunc", actionName, context.attrs["formData"]);
109846
+ } catch (e) {
109847
+ error$1("事件触发异常:" + e);
109848
+ }
109849
+ }
109852
109850
  if (isDesign.value && isInit || actionName == "normal") {
109853
109851
  return;
109854
109852
  }
109855
- const field = context.attrs["field"];
109856
109853
  const tempName = field.preps?.actionName;
109857
- if (actionName != tempName) {
109858
- return;
109859
- }
109860
109854
  switch (actionName) {
109861
109855
  case "change":
109862
109856
  change(context);
@@ -109878,17 +109872,12 @@ const allAction = (context, actionName, isInit = false) => {
109878
109872
  console.log("不支持的事件:" + actionName);
109879
109873
  return;
109880
109874
  }
109881
- if (actionName == "input" && actionName != field.preps["actionName"]) {
109875
+ if (actionName == "input" && actionName != tempName) {
109882
109876
  return;
109883
109877
  }
109884
109878
  if (actionName == field.preps["actionName"] && field.preps["actionRelation"]) {
109885
109879
  field.preps["actionRelation"](context.attrs["formData"][field.preps["name"]], context.attrs["formData"]["xh"]);
109886
109880
  }
109887
- try {
109888
- context.emit("selfFunc", actionName, context.attrs["formData"]);
109889
- } catch (e) {
109890
- error$1("事件触发异常:" + e);
109891
- }
109892
109881
  };
109893
109882
  const buttonAction = (context, code) => {
109894
109883
  if (code) {