star-horse-lowcode 2.7.12 → 2.7.13
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/assets/index.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +13 -24
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -101999,7 +101999,8 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
101999
101999
|
};
|
|
102000
102000
|
const mergeData = async () => {
|
|
102001
102001
|
let flag = false;
|
|
102002
|
-
|
|
102002
|
+
let formRef = rowDataFormRef.value.$refs.starHorseFormRef;
|
|
102003
|
+
await formRef.validate((res) => flag = res);
|
|
102003
102004
|
if (!flag) {
|
|
102004
102005
|
return;
|
|
102005
102006
|
}
|
|
@@ -102392,7 +102393,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
102392
102393
|
}
|
|
102393
102394
|
});
|
|
102394
102395
|
|
|
102395
|
-
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-
|
|
102396
|
+
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-c0917820"]]);
|
|
102396
102397
|
|
|
102397
102398
|
const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
102398
102399
|
__proto__: null,
|
|
@@ -102731,7 +102732,6 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
102731
102732
|
}),
|
|
102732
102733
|
emits: /* @__PURE__ */ mergeModels(["addRow", "removeRow"], ["update:dataForm"]),
|
|
102733
102734
|
setup(__props, { emit: __emit }) {
|
|
102734
|
-
const props = __props;
|
|
102735
102735
|
const emits = __emit;
|
|
102736
102736
|
const dataForm = useModel(__props, "dataForm");
|
|
102737
102737
|
const addRow = (row) => {
|
|
@@ -102740,11 +102740,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
102740
102740
|
const removeRow = (row) => {
|
|
102741
102741
|
emits("removeRow", row);
|
|
102742
102742
|
};
|
|
102743
|
-
const init = () => {
|
|
102744
|
-
console.log("carditem................", props.dataIndex);
|
|
102745
|
-
};
|
|
102746
102743
|
onMounted(() => {
|
|
102747
|
-
init();
|
|
102748
102744
|
});
|
|
102749
102745
|
return (_ctx, _cache) => {
|
|
102750
102746
|
const _component_help = _sfc_main$1m;
|
|
@@ -102826,7 +102822,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
102826
102822
|
}
|
|
102827
102823
|
});
|
|
102828
102824
|
|
|
102829
|
-
const __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-
|
|
102825
|
+
const __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-c1336d5e"]]);
|
|
102830
102826
|
|
|
102831
102827
|
const _hoisted_1$A = { class: "collapse-item-title title" };
|
|
102832
102828
|
const _hoisted_2$q = { style: { "width": "80%" } };
|
|
@@ -109783,30 +109779,30 @@ const userOperation = useSelfOperationStore(piniaInstance);
|
|
|
109783
109779
|
const isDesign = computed(() => designForm.isEdit);
|
|
109784
109780
|
const change = (context) => {
|
|
109785
109781
|
const field = context.attrs["field"];
|
|
109786
|
-
const relation = field.preps
|
|
109782
|
+
const relation = field.preps?.dataRelation;
|
|
109787
109783
|
operationRelation(relation, "change", context.attrs["formData"], field.preps["name"]);
|
|
109788
109784
|
};
|
|
109789
109785
|
const input$2 = (context) => {
|
|
109790
109786
|
const field = context.attrs["field"];
|
|
109791
|
-
const relation = field.preps
|
|
109787
|
+
const relation = field.preps?.dataRelation;
|
|
109792
109788
|
operationRelation(relation, "input", context.attrs["formData"], field.preps["name"]);
|
|
109793
109789
|
};
|
|
109794
109790
|
const focus = (context) => {
|
|
109795
109791
|
const field = context.attrs["field"];
|
|
109796
|
-
const relation = field.preps
|
|
109792
|
+
const relation = field.preps?.dataRelation;
|
|
109797
109793
|
operationRelation(relation, "focus", context.attrs["formData"], field.preps["name"]);
|
|
109798
109794
|
};
|
|
109799
109795
|
const blur = (context) => {
|
|
109800
109796
|
const field = context.attrs["field"];
|
|
109801
|
-
const relation = field.preps
|
|
109797
|
+
const relation = field.preps?.dataRelation;
|
|
109802
109798
|
operationRelation(relation, "blur", context.attrs["formData"], field.preps["name"]);
|
|
109803
109799
|
};
|
|
109804
109800
|
const mouseEnter = (context) => {
|
|
109805
109801
|
const field = context.attrs["field"];
|
|
109806
|
-
const relation = field.preps
|
|
109802
|
+
const relation = field.preps?.dataRelation;
|
|
109807
109803
|
operationRelation(relation, "enter", context.attrs["formData"], field.preps["name"]);
|
|
109808
109804
|
};
|
|
109809
|
-
const operationRelation = (relation, actionName, formData, currentName) => {
|
|
109805
|
+
const operationRelation = async (relation, actionName, formData, currentName) => {
|
|
109810
109806
|
if (!relation || actionName != relation.actionName) {
|
|
109811
109807
|
return;
|
|
109812
109808
|
}
|
|
@@ -109824,15 +109820,8 @@ const operationRelation = (relation, actionName, formData, currentName) => {
|
|
|
109824
109820
|
}
|
|
109825
109821
|
const field = userOperation.getFormItem(fieldName);
|
|
109826
109822
|
const params = temp.params;
|
|
109827
|
-
|
|
109828
|
-
|
|
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;
|
|
109823
|
+
if (conditon == "dataLinkage") {
|
|
109824
|
+
formData[fieldName + "OptionList"] = await compDynamicData(temp);
|
|
109836
109825
|
} else if (conditon == "eqDisable" || conditon == "eqDisableOrEditable") {
|
|
109837
109826
|
formData["_" + fieldName + "Editable"] = !(currentVal == params);
|
|
109838
109827
|
} else if (conditon == "eqEditable" || conditon == "eqEditableOrDisable") {
|
|
@@ -109878,7 +109867,7 @@ const allAction = (context, actionName, isInit = false) => {
|
|
|
109878
109867
|
console.log("不支持的事件:" + actionName);
|
|
109879
109868
|
return;
|
|
109880
109869
|
}
|
|
109881
|
-
if (actionName == "input" && actionName !=
|
|
109870
|
+
if (actionName == "input" && actionName != tempName) {
|
|
109882
109871
|
return;
|
|
109883
109872
|
}
|
|
109884
109873
|
if (actionName == field.preps["actionName"] && field.preps["actionRelation"]) {
|