star-horse-lowcode 2.7.11 → 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/README.md +3 -1
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +20 -20
- package/dist/index.es.js +36 -43
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -97185,14 +97185,16 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
97185
97185
|
const _component_star_horse_item = StarHorseItem;
|
|
97186
97186
|
const _component_el_tooltip = ElTooltip;
|
|
97187
97187
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
97188
|
-
__props.item.type == "usercomp" ? (openBlock(),
|
|
97189
|
-
|
|
97190
|
-
|
|
97191
|
-
|
|
97192
|
-
|
|
97193
|
-
|
|
97194
|
-
|
|
97195
|
-
|
|
97188
|
+
__props.item.type == "usercomp" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
97189
|
+
__props.item.formVisible || __props.item.listVisible || __props.item.viewVisible ? (openBlock(), createBlock(_component_star_horse_item, {
|
|
97190
|
+
key: 0,
|
|
97191
|
+
primaryKey: "id",
|
|
97192
|
+
dataForm: dataForm.value,
|
|
97193
|
+
"onUpdate:dataForm": _cache[0] || (_cache[0] = ($event) => dataForm.value = $event),
|
|
97194
|
+
item: __props.item,
|
|
97195
|
+
isView: true
|
|
97196
|
+
}, null, 8, ["dataForm", "item"])) : createCommentVNode("", true)
|
|
97197
|
+
], 64)) : createCommentVNode("", true),
|
|
97196
97198
|
__props.item.formVisible || __props.item.listVisible || __props.item.viewVisible ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
|
|
97197
97199
|
createElementVNode("label", null, toDisplayString(__props.item.label) + " :", 1),
|
|
97198
97200
|
createElementVNode("div", _hoisted_2$x, [
|
|
@@ -101997,7 +101999,8 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
101997
101999
|
};
|
|
101998
102000
|
const mergeData = async () => {
|
|
101999
102001
|
let flag = false;
|
|
102000
|
-
|
|
102002
|
+
let formRef = rowDataFormRef.value.$refs.starHorseFormRef;
|
|
102003
|
+
await formRef.validate((res) => flag = res);
|
|
102001
102004
|
if (!flag) {
|
|
102002
102005
|
return;
|
|
102003
102006
|
}
|
|
@@ -102390,7 +102393,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
102390
102393
|
}
|
|
102391
102394
|
});
|
|
102392
102395
|
|
|
102393
|
-
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"]]);
|
|
102394
102397
|
|
|
102395
102398
|
const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
102396
102399
|
__proto__: null,
|
|
@@ -102567,17 +102570,19 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
102567
102570
|
return (_ctx, _cache) => {
|
|
102568
102571
|
const _component_star_horse_item = StarHorseItem;
|
|
102569
102572
|
const _component_el_form_item = ElFormItem;
|
|
102570
|
-
return __props.item.type == "usercomp" || __props.item.type == "button" ? (openBlock(),
|
|
102571
|
-
|
|
102572
|
-
|
|
102573
|
-
|
|
102574
|
-
|
|
102575
|
-
|
|
102576
|
-
|
|
102577
|
-
|
|
102578
|
-
|
|
102579
|
-
|
|
102580
|
-
|
|
102573
|
+
return __props.item.type == "usercomp" || __props.item.type == "button" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
102574
|
+
unref(checkVisible)(__props.item, dataForm.value) ? (openBlock(), createBlock(_component_star_horse_item, {
|
|
102575
|
+
key: 0,
|
|
102576
|
+
primaryKey: __props.primaryKey,
|
|
102577
|
+
dataForm: dataForm.value,
|
|
102578
|
+
"onUpdate:dataForm": _cache[0] || (_cache[0] = ($event) => dataForm.value = $event),
|
|
102579
|
+
item: __props.item,
|
|
102580
|
+
dataIndex: __props.dataIndex,
|
|
102581
|
+
bareFlag: true,
|
|
102582
|
+
compSize: __props.compSize,
|
|
102583
|
+
isEdit: __props.isEdit
|
|
102584
|
+
}, null, 8, ["primaryKey", "dataForm", "item", "dataIndex", "compSize", "isEdit"])) : createCommentVNode("", true)
|
|
102585
|
+
], 64)) : unref(checkVisible)(__props.item, dataForm.value) ? (openBlock(), createBlock(_component_el_form_item, {
|
|
102581
102586
|
key: 1,
|
|
102582
102587
|
size: __props.compSize,
|
|
102583
102588
|
label: __props.item.preps?.hideLabel == "Y" ? "" : __props.item.label,
|
|
@@ -102727,7 +102732,6 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
102727
102732
|
}),
|
|
102728
102733
|
emits: /* @__PURE__ */ mergeModels(["addRow", "removeRow"], ["update:dataForm"]),
|
|
102729
102734
|
setup(__props, { emit: __emit }) {
|
|
102730
|
-
const props = __props;
|
|
102731
102735
|
const emits = __emit;
|
|
102732
102736
|
const dataForm = useModel(__props, "dataForm");
|
|
102733
102737
|
const addRow = (row) => {
|
|
@@ -102736,11 +102740,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
102736
102740
|
const removeRow = (row) => {
|
|
102737
102741
|
emits("removeRow", row);
|
|
102738
102742
|
};
|
|
102739
|
-
const init = () => {
|
|
102740
|
-
console.log("carditem................", props.dataIndex);
|
|
102741
|
-
};
|
|
102742
102743
|
onMounted(() => {
|
|
102743
|
-
init();
|
|
102744
102744
|
});
|
|
102745
102745
|
return (_ctx, _cache) => {
|
|
102746
102746
|
const _component_help = _sfc_main$1m;
|
|
@@ -102822,7 +102822,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
102822
102822
|
}
|
|
102823
102823
|
});
|
|
102824
102824
|
|
|
102825
|
-
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"]]);
|
|
102826
102826
|
|
|
102827
102827
|
const _hoisted_1$A = { class: "collapse-item-title title" };
|
|
102828
102828
|
const _hoisted_2$q = { style: { "width": "80%" } };
|
|
@@ -109779,30 +109779,30 @@ const userOperation = useSelfOperationStore(piniaInstance);
|
|
|
109779
109779
|
const isDesign = computed(() => designForm.isEdit);
|
|
109780
109780
|
const change = (context) => {
|
|
109781
109781
|
const field = context.attrs["field"];
|
|
109782
|
-
const relation = field.preps
|
|
109782
|
+
const relation = field.preps?.dataRelation;
|
|
109783
109783
|
operationRelation(relation, "change", context.attrs["formData"], field.preps["name"]);
|
|
109784
109784
|
};
|
|
109785
109785
|
const input$2 = (context) => {
|
|
109786
109786
|
const field = context.attrs["field"];
|
|
109787
|
-
const relation = field.preps
|
|
109787
|
+
const relation = field.preps?.dataRelation;
|
|
109788
109788
|
operationRelation(relation, "input", context.attrs["formData"], field.preps["name"]);
|
|
109789
109789
|
};
|
|
109790
109790
|
const focus = (context) => {
|
|
109791
109791
|
const field = context.attrs["field"];
|
|
109792
|
-
const relation = field.preps
|
|
109792
|
+
const relation = field.preps?.dataRelation;
|
|
109793
109793
|
operationRelation(relation, "focus", context.attrs["formData"], field.preps["name"]);
|
|
109794
109794
|
};
|
|
109795
109795
|
const blur = (context) => {
|
|
109796
109796
|
const field = context.attrs["field"];
|
|
109797
|
-
const relation = field.preps
|
|
109797
|
+
const relation = field.preps?.dataRelation;
|
|
109798
109798
|
operationRelation(relation, "blur", context.attrs["formData"], field.preps["name"]);
|
|
109799
109799
|
};
|
|
109800
109800
|
const mouseEnter = (context) => {
|
|
109801
109801
|
const field = context.attrs["field"];
|
|
109802
|
-
const relation = field.preps
|
|
109802
|
+
const relation = field.preps?.dataRelation;
|
|
109803
109803
|
operationRelation(relation, "enter", context.attrs["formData"], field.preps["name"]);
|
|
109804
109804
|
};
|
|
109805
|
-
const operationRelation = (relation, actionName, formData, currentName) => {
|
|
109805
|
+
const operationRelation = async (relation, actionName, formData, currentName) => {
|
|
109806
109806
|
if (!relation || actionName != relation.actionName) {
|
|
109807
109807
|
return;
|
|
109808
109808
|
}
|
|
@@ -109820,15 +109820,8 @@ const operationRelation = (relation, actionName, formData, currentName) => {
|
|
|
109820
109820
|
}
|
|
109821
109821
|
const field = userOperation.getFormItem(fieldName);
|
|
109822
109822
|
const params = temp.params;
|
|
109823
|
-
|
|
109824
|
-
|
|
109825
|
-
const cond = createCondition(params, currentVal, matchType);
|
|
109826
|
-
let queryParams = field.preps["queryParams"];
|
|
109827
|
-
if (queryParams) {
|
|
109828
|
-
queryParams = field.preps["queryParams"].filter((item) => item.name != params);
|
|
109829
|
-
}
|
|
109830
|
-
queryParams.push(cond);
|
|
109831
|
-
field.preps["queryParams"] = queryParams;
|
|
109823
|
+
if (conditon == "dataLinkage") {
|
|
109824
|
+
formData[fieldName + "OptionList"] = await compDynamicData(temp);
|
|
109832
109825
|
} else if (conditon == "eqDisable" || conditon == "eqDisableOrEditable") {
|
|
109833
109826
|
formData["_" + fieldName + "Editable"] = !(currentVal == params);
|
|
109834
109827
|
} else if (conditon == "eqEditable" || conditon == "eqEditableOrDisable") {
|
|
@@ -109874,7 +109867,7 @@ const allAction = (context, actionName, isInit = false) => {
|
|
|
109874
109867
|
console.log("不支持的事件:" + actionName);
|
|
109875
109868
|
return;
|
|
109876
109869
|
}
|
|
109877
|
-
if (actionName == "input" && actionName !=
|
|
109870
|
+
if (actionName == "input" && actionName != tempName) {
|
|
109878
109871
|
return;
|
|
109879
109872
|
}
|
|
109880
109873
|
if (actionName == field.preps["actionName"] && field.preps["actionRelation"]) {
|