star-horse-lowcode 2.8.3 → 2.8.5
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 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +269 -185
- package/dist/types/index.d.ts +24 -5
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -69175,11 +69175,7 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
69175
69175
|
}
|
|
69176
69176
|
return compListNoLayer.value?.find((item) => item.id == itemId);
|
|
69177
69177
|
};
|
|
69178
|
-
const
|
|
69179
|
-
if (!isCompListUpdated.value && cachedSelectList.value.length > 0) {
|
|
69180
|
-
compListNoLayer.value = cachedCompListNoLayer.value;
|
|
69181
|
-
return cachedSelectList.value;
|
|
69182
|
-
}
|
|
69178
|
+
const forceLoadCompNames = () => {
|
|
69183
69179
|
const selectList = [];
|
|
69184
69180
|
const compListResult = [];
|
|
69185
69181
|
const stack = [];
|
|
@@ -69301,6 +69297,13 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
69301
69297
|
isCompListUpdated.value = false;
|
|
69302
69298
|
return selectList;
|
|
69303
69299
|
};
|
|
69300
|
+
const loadCompNames = () => {
|
|
69301
|
+
if (!isCompListUpdated.value && cachedSelectList.value.length > 0) {
|
|
69302
|
+
compListNoLayer.value = cachedCompListNoLayer.value;
|
|
69303
|
+
return cachedSelectList.value;
|
|
69304
|
+
}
|
|
69305
|
+
return forceLoadCompNames();
|
|
69306
|
+
};
|
|
69304
69307
|
const addComp = (comp) => {
|
|
69305
69308
|
if (Array.isArray(comp)) {
|
|
69306
69309
|
compList.value = [...compList.value, ...comp];
|
|
@@ -69459,6 +69462,7 @@ const useDesignFormStore = defineStore("designForm", () => {
|
|
|
69459
69462
|
setSubItemId,
|
|
69460
69463
|
setFormInfo,
|
|
69461
69464
|
setCompList,
|
|
69465
|
+
forceLoadCompNames,
|
|
69462
69466
|
loadCompNames,
|
|
69463
69467
|
addComp,
|
|
69464
69468
|
setIsDragging,
|
|
@@ -69492,6 +69496,7 @@ const fieldAssign = (props, relationFields, values) => {
|
|
|
69492
69496
|
const field = props.formInfo?.find((field2) => field2.fieldName == item);
|
|
69493
69497
|
if (field) {
|
|
69494
69498
|
let flag = false;
|
|
69499
|
+
field.formVisible = true;
|
|
69495
69500
|
Object.entries(record).forEach(([key, value]) => {
|
|
69496
69501
|
if (value.includes(field.itemType ?? field.type)) {
|
|
69497
69502
|
field.preps[key] = values;
|
|
@@ -69500,24 +69505,35 @@ const fieldAssign = (props, relationFields, values) => {
|
|
|
69500
69505
|
}
|
|
69501
69506
|
});
|
|
69502
69507
|
if (!flag) {
|
|
69503
|
-
|
|
69508
|
+
if (isJson(values)) {
|
|
69509
|
+
Object.entries(values).forEach(([key, value]) => {
|
|
69510
|
+
field.preps[key] = value;
|
|
69511
|
+
});
|
|
69512
|
+
} else if (!Array.isArray(values)) {
|
|
69513
|
+
field.defaultValue = values;
|
|
69514
|
+
}
|
|
69504
69515
|
}
|
|
69505
69516
|
}
|
|
69506
69517
|
});
|
|
69507
69518
|
};
|
|
69508
69519
|
const dataLinkage = async (props, item, e) => {
|
|
69509
|
-
let { relationFields, params } = item;
|
|
69510
|
-
if (!
|
|
69520
|
+
let { relationFields, params, matchFieldValue } = item;
|
|
69521
|
+
if (!Array.isArray(matchFieldValue)) {
|
|
69522
|
+
matchFieldValue = matchFieldValue ? [matchFieldValue] : [];
|
|
69523
|
+
}
|
|
69524
|
+
if (matchFieldValue.length > 0 && !matchFieldValue.includes(e)) {
|
|
69511
69525
|
return;
|
|
69512
69526
|
}
|
|
69513
69527
|
if (!Array.isArray(relationFields)) {
|
|
69514
69528
|
relationFields = [relationFields];
|
|
69515
69529
|
}
|
|
69516
|
-
const tempParams =
|
|
69517
|
-
|
|
69518
|
-
|
|
69519
|
-
|
|
69520
|
-
|
|
69530
|
+
const tempParams = JSON.parse(JSON.stringify(params));
|
|
69531
|
+
if (item.controlCondition == "asParamDataLinkage") {
|
|
69532
|
+
tempParams.queryParams = tempParams.queryParams || [];
|
|
69533
|
+
tempParams.queryParams.push(
|
|
69534
|
+
createCondition(item.matchFieldName, e, item.matchType)
|
|
69535
|
+
);
|
|
69536
|
+
}
|
|
69521
69537
|
const resultData = await dynamicUrlOperation({
|
|
69522
69538
|
preps: {
|
|
69523
69539
|
...tempParams
|
|
@@ -69525,61 +69541,78 @@ const dataLinkage = async (props, item, e) => {
|
|
|
69525
69541
|
});
|
|
69526
69542
|
fieldAssign(props, relationFields, resultData);
|
|
69527
69543
|
};
|
|
69528
|
-
const eqDisableOrEditable = (props, item, e
|
|
69529
|
-
let { relationFields,
|
|
69530
|
-
if (!
|
|
69531
|
-
|
|
69544
|
+
const eqDisableOrEditable = (props, item, e) => {
|
|
69545
|
+
let { relationFields, matchFieldValue } = item;
|
|
69546
|
+
if (!Array.isArray(matchFieldValue)) {
|
|
69547
|
+
matchFieldValue = matchFieldValue ? [matchFieldValue] : [];
|
|
69532
69548
|
}
|
|
69533
69549
|
if (!Array.isArray(relationFields)) {
|
|
69534
69550
|
relationFields = [relationFields];
|
|
69535
69551
|
}
|
|
69536
|
-
relationFields?.forEach(async (
|
|
69537
|
-
const field = props.formInfo?.find(
|
|
69552
|
+
relationFields?.forEach(async (sitem) => {
|
|
69553
|
+
const field = props.formInfo?.find(
|
|
69554
|
+
(field2) => field2.fieldName == sitem
|
|
69555
|
+
);
|
|
69538
69556
|
if (field) {
|
|
69539
|
-
field.
|
|
69557
|
+
if (!field.preps) {
|
|
69558
|
+
field.preps = {};
|
|
69559
|
+
}
|
|
69560
|
+
if (item.controlCondition == "eqHide") {
|
|
69561
|
+
field.formVisible = !matchFieldValue.includes(e);
|
|
69562
|
+
} else if (item.controlCondition == "eqVisible") {
|
|
69563
|
+
field.formVisible = matchFieldValue.includes(e);
|
|
69564
|
+
} else if (item.controlCondition == "eqEditable") {
|
|
69565
|
+
field.preps["disabled"] = !matchFieldValue.includes(e);
|
|
69566
|
+
} else if (item.controlCondition == "eqDisable") {
|
|
69567
|
+
field.preps["disabled"] = matchFieldValue.includes(e);
|
|
69568
|
+
} else if (item.controlCondition == "eqRequired") {
|
|
69569
|
+
field.required = matchFieldValue.includes(e);
|
|
69570
|
+
}
|
|
69540
69571
|
}
|
|
69541
69572
|
});
|
|
69542
69573
|
};
|
|
69543
69574
|
const assignValue = (props, item, e) => {
|
|
69544
|
-
let { relationFields,
|
|
69545
|
-
if (!relationFields) {
|
|
69546
|
-
return;
|
|
69547
|
-
}
|
|
69575
|
+
let { relationFields, staticDatas } = item;
|
|
69548
69576
|
if (!Array.isArray(relationFields)) {
|
|
69549
69577
|
relationFields = [relationFields];
|
|
69550
69578
|
}
|
|
69551
|
-
fieldAssign(props, relationFields,
|
|
69579
|
+
fieldAssign(props, relationFields, staticDatas);
|
|
69552
69580
|
};
|
|
69553
69581
|
const changeType = (props, item, e) => {
|
|
69554
|
-
let { relationFields
|
|
69555
|
-
if (!relationFields) {
|
|
69556
|
-
return;
|
|
69557
|
-
}
|
|
69582
|
+
let { relationFields } = item;
|
|
69558
69583
|
if (!Array.isArray(relationFields)) {
|
|
69559
69584
|
relationFields = [relationFields];
|
|
69560
69585
|
}
|
|
69561
|
-
relationFields?.forEach(async (
|
|
69562
|
-
const field = props.formInfo?.find(
|
|
69586
|
+
relationFields?.forEach(async (sitem) => {
|
|
69587
|
+
const field = props.formInfo?.find(
|
|
69588
|
+
(field2) => field2.fieldName == sitem
|
|
69589
|
+
);
|
|
69563
69590
|
if (field) {
|
|
69564
|
-
field.itemType =
|
|
69591
|
+
field.itemType = item.staticDatas;
|
|
69565
69592
|
}
|
|
69566
69593
|
});
|
|
69567
69594
|
};
|
|
69568
69595
|
const relationEvent = (props, relationDetails, e, actionName) => {
|
|
69569
|
-
relationDetails?.forEach((item) => {
|
|
69570
|
-
|
|
69596
|
+
relationDetails?.forEach(async (item) => {
|
|
69597
|
+
let { controlCondition, relationFields, matchFieldValue } = item;
|
|
69598
|
+
if (!Array.isArray(matchFieldValue)) {
|
|
69599
|
+
matchFieldValue = matchFieldValue ? [matchFieldValue] : [];
|
|
69600
|
+
}
|
|
69601
|
+
if (!relationFields || item.isWorking) {
|
|
69602
|
+
return;
|
|
69603
|
+
}
|
|
69571
69604
|
switch (controlCondition) {
|
|
69572
69605
|
//数据联动
|
|
69573
|
-
case "
|
|
69606
|
+
case "eqConditionDataLinkage":
|
|
69607
|
+
case "asParamDataLinkage":
|
|
69574
69608
|
dataLinkage(props, item, e);
|
|
69575
69609
|
break;
|
|
69576
69610
|
case "eqDisable":
|
|
69577
|
-
case "
|
|
69578
|
-
eqDisableOrEditable(props, item, e, true);
|
|
69579
|
-
break;
|
|
69611
|
+
case "eqHide":
|
|
69580
69612
|
case "eqEditable":
|
|
69581
|
-
case "
|
|
69582
|
-
|
|
69613
|
+
case "eqVisible":
|
|
69614
|
+
case "eqRequired":
|
|
69615
|
+
eqDisableOrEditable(props, item, e);
|
|
69583
69616
|
break;
|
|
69584
69617
|
case "assignValue":
|
|
69585
69618
|
assignValue(props, item);
|
|
@@ -69590,6 +69623,8 @@ const relationEvent = (props, relationDetails, e, actionName) => {
|
|
|
69590
69623
|
default:
|
|
69591
69624
|
console.log("未处理的事件:" + controlCondition);
|
|
69592
69625
|
}
|
|
69626
|
+
await nextTick();
|
|
69627
|
+
item.isWorking = false;
|
|
69593
69628
|
});
|
|
69594
69629
|
};
|
|
69595
69630
|
const allAction = (context, emits, formData, actionName, isInit = false) => {
|
|
@@ -69630,13 +69665,13 @@ const checkIsDisabled = (attrs) => {
|
|
|
69630
69665
|
const isImplicitlyDisabled = !attrs?.formData?.[`_${fieldName}Editable`] && field?.preps?.disabled;
|
|
69631
69666
|
return eidtDidsabled === true || isExplicitlyDisabled === true || isImplicitlyDisabled === true;
|
|
69632
69667
|
};
|
|
69633
|
-
const initRelationEvent = (props, formData) => {
|
|
69668
|
+
const initRelationEvent = (props, formData, needWatch) => {
|
|
69634
69669
|
const dataRelation = props.field.preps?.dataRelation;
|
|
69635
69670
|
const actionName = dataRelation?.actionName;
|
|
69636
69671
|
if (actionName) {
|
|
69637
|
-
if (Object.keys(formData.value || {}).length == 0 || !formData.value[props.field
|
|
69672
|
+
if ((Object.keys(formData.value || {}).length == 0 || !formData.value?.[props.field?.fieldName]) && needWatch) {
|
|
69638
69673
|
const stop = watch(
|
|
69639
|
-
() => formData.value[props.field
|
|
69674
|
+
() => formData.value?.[props.field?.fieldName],
|
|
69640
69675
|
(val) => {
|
|
69641
69676
|
if (val) {
|
|
69642
69677
|
relationEvent(
|
|
@@ -69665,7 +69700,7 @@ const initCompCallEvent = (props, emits, formData) => {
|
|
|
69665
69700
|
(val) => {
|
|
69666
69701
|
if (val) {
|
|
69667
69702
|
doInitCallEvent(props, emits, formData);
|
|
69668
|
-
initRelationEvent(props, val);
|
|
69703
|
+
initRelationEvent(props, val, false);
|
|
69669
69704
|
stop();
|
|
69670
69705
|
}
|
|
69671
69706
|
},
|
|
@@ -69675,7 +69710,7 @@ const initCompCallEvent = (props, emits, formData) => {
|
|
|
69675
69710
|
}
|
|
69676
69711
|
doInitCallEvent(props, emits, formData);
|
|
69677
69712
|
}
|
|
69678
|
-
initRelationEvent(props, formData);
|
|
69713
|
+
initRelationEvent(props, formData, true);
|
|
69679
69714
|
};
|
|
69680
69715
|
const doInitCallEvent = (props, emits, formData) => {
|
|
69681
69716
|
const events = Object.keys(props.field.actions || {});
|
|
@@ -69971,37 +70006,49 @@ const useZIndex = (zIndexOverrides) => {
|
|
|
69971
70006
|
nextZIndex
|
|
69972
70007
|
};
|
|
69973
70008
|
};
|
|
70009
|
+
const handleEvent = (eventName, e, recall) => {
|
|
70010
|
+
if (eventName.includes(".")) {
|
|
70011
|
+
const modifier = eventName.split(".")[1];
|
|
70012
|
+
if (modifier == e.key.toLowerCase()) {
|
|
70013
|
+
console.log("成功触发事件:", eventName);
|
|
70014
|
+
recall && recall(modifier);
|
|
70015
|
+
}
|
|
70016
|
+
} else {
|
|
70017
|
+
recall && recall(eventName);
|
|
70018
|
+
}
|
|
70019
|
+
};
|
|
70020
|
+
const baseEvent = (eventName, recall) => {
|
|
70021
|
+
return function handler(e) {
|
|
70022
|
+
handleEvent(eventName, e, recall);
|
|
70023
|
+
};
|
|
70024
|
+
};
|
|
70025
|
+
const baseRelationEvent = (props, relationDetails, actionName) => {
|
|
70026
|
+
return function handler(e) {
|
|
70027
|
+
handleEvent(actionName, e, (tempName) => {
|
|
70028
|
+
relationEvent(props, relationDetails, e);
|
|
70029
|
+
});
|
|
70030
|
+
};
|
|
70031
|
+
};
|
|
69974
70032
|
function getDynamicEvents(props, recall) {
|
|
69975
70033
|
const events = {};
|
|
69976
70034
|
const actions = props.field.actions;
|
|
69977
70035
|
const actionNames = Object.keys(actions || {});
|
|
69978
|
-
const handleEvent = (eventName, e, subReCall) => {
|
|
69979
|
-
if (eventName.includes(".")) {
|
|
69980
|
-
const modifier = eventName.split(".")[1];
|
|
69981
|
-
if (modifier == e.key.toLowerCase()) {
|
|
69982
|
-
console.log("成功触发事件:", eventName);
|
|
69983
|
-
recall && recall(modifier);
|
|
69984
|
-
subReCall && subReCall(modifier);
|
|
69985
|
-
}
|
|
69986
|
-
} else {
|
|
69987
|
-
recall && recall(eventName);
|
|
69988
|
-
subReCall && subReCall(eventName);
|
|
69989
|
-
}
|
|
69990
|
-
};
|
|
69991
70036
|
actionNames?.forEach((actionName2) => {
|
|
69992
70037
|
if (actionName2.includes(".")) {
|
|
69993
|
-
const
|
|
69994
|
-
events[
|
|
70038
|
+
const baseEventName = actionName2.split(".")[0];
|
|
70039
|
+
events[baseEventName] = baseEvent(actionName2, recall);
|
|
69995
70040
|
} else {
|
|
69996
|
-
events[actionName2] = (
|
|
70041
|
+
events[actionName2] = baseEvent(actionName2, recall);
|
|
69997
70042
|
}
|
|
69998
70043
|
});
|
|
69999
70044
|
const dataRelation = props.field.preps?.dataRelation;
|
|
70000
70045
|
const actionName = dataRelation?.actionName;
|
|
70001
70046
|
if (actionName) {
|
|
70002
|
-
events[actionName] = (
|
|
70003
|
-
|
|
70004
|
-
|
|
70047
|
+
events[actionName] = baseRelationEvent(
|
|
70048
|
+
props,
|
|
70049
|
+
dataRelation?.relationDetails,
|
|
70050
|
+
actionName
|
|
70051
|
+
);
|
|
70005
70052
|
}
|
|
70006
70053
|
return events;
|
|
70007
70054
|
}
|
|
@@ -70553,11 +70600,6 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
70553
70600
|
}
|
|
70554
70601
|
});
|
|
70555
70602
|
|
|
70556
|
-
const help = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
70557
|
-
__proto__: null,
|
|
70558
|
-
default: _sfc_main$1P
|
|
70559
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
70560
|
-
|
|
70561
70603
|
const _hoisted_1$Y = {
|
|
70562
70604
|
key: 2,
|
|
70563
70605
|
style: { "width": "15px" }
|
|
@@ -70763,10 +70805,11 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
70763
70805
|
ref: componentRef,
|
|
70764
70806
|
isSearch: __props.source == 4,
|
|
70765
70807
|
bareFlag: __props.bareFlag,
|
|
70808
|
+
source: __props.source,
|
|
70766
70809
|
field: __props.item,
|
|
70767
70810
|
formData: dataForm.value,
|
|
70768
70811
|
"onUpdate:formData": _cache[0] || (_cache[0] = ($event) => dataForm.value = $event)
|
|
70769
|
-
}, null, 40, ["formInfo", "isSearch", "bareFlag", "field", "formData"])),
|
|
70812
|
+
}, null, 40, ["formInfo", "isSearch", "bareFlag", "source", "field", "formData"])),
|
|
70770
70813
|
__props.item.brotherNodes ? (openBlock(), createElementBlock("div", _hoisted_1$Y)) : createCommentVNode("", true),
|
|
70771
70814
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.brotherNodes, (temp, key) => {
|
|
70772
70815
|
return openBlock(), createElementBlock(Fragment, {
|
|
@@ -70792,7 +70835,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
|
70792
70835
|
|
|
70793
70836
|
/* unplugin-vue-components disabled */
|
|
70794
70837
|
|
|
70795
|
-
const __unplugin_components_0$9 = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["__scopeId", "data-v-
|
|
70838
|
+
const __unplugin_components_0$9 = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["__scopeId", "data-v-88f8539b"]]);
|
|
70796
70839
|
|
|
70797
70840
|
const StarHorseItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
70798
70841
|
__proto__: null,
|
|
@@ -76288,7 +76331,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
76288
76331
|
const starHorseFormListRef = ref(null);
|
|
76289
76332
|
const handleAddDetails = (row, type) => {
|
|
76290
76333
|
if (props.staticColumn == "Y" && type != 2) {
|
|
76291
|
-
dynamicHandleAddForm(row);
|
|
76334
|
+
dynamicHandleAddForm(row, "add");
|
|
76292
76335
|
} else {
|
|
76293
76336
|
dynamicHandleAddRow(row, type);
|
|
76294
76337
|
}
|
|
@@ -76300,7 +76343,11 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
76300
76343
|
if (!dataForm.value[props.batchName]) {
|
|
76301
76344
|
dataForm.value[props.batchName] = [];
|
|
76302
76345
|
}
|
|
76346
|
+
if (type == "edit") {
|
|
76347
|
+
row["starHorseEditing"] = "yes";
|
|
76348
|
+
}
|
|
76303
76349
|
await nextTick();
|
|
76350
|
+
rowDataFormRef.value.setSource("edit" == type ? 2 : 1);
|
|
76304
76351
|
rowDataFormRef.value.setFormData(row);
|
|
76305
76352
|
};
|
|
76306
76353
|
const mergeData = async (type) => {
|
|
@@ -76310,11 +76357,18 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
76310
76357
|
if (!flag) {
|
|
76311
76358
|
return;
|
|
76312
76359
|
}
|
|
76360
|
+
const batchArray = dataForm.value[props.batchName];
|
|
76313
76361
|
let formData = rowDataFormRef.value.getFormData().value;
|
|
76314
|
-
if (formData.
|
|
76315
|
-
|
|
76362
|
+
if (formData.starHorseEditing == "yes") {
|
|
76363
|
+
batchArray.forEach((item, index) => {
|
|
76364
|
+
if (item.xh == formData.xh) {
|
|
76365
|
+
formData.starHorseEditing = "no";
|
|
76366
|
+
batchArray[index] = { ...formData };
|
|
76367
|
+
}
|
|
76368
|
+
});
|
|
76369
|
+
console.log(batchArray);
|
|
76316
76370
|
} else {
|
|
76317
|
-
dataForm.value[props.batchName].push(formData);
|
|
76371
|
+
dataForm.value[props.batchName].push({ ...formData });
|
|
76318
76372
|
}
|
|
76319
76373
|
if (type == "close") {
|
|
76320
76374
|
closeAction();
|
|
@@ -76721,7 +76775,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
76721
76775
|
__props.staticColumn == "Y" ? (openBlock(), createBlock(__unplugin_components_0$a, {
|
|
76722
76776
|
key: 0,
|
|
76723
76777
|
"icon-class": "edit",
|
|
76724
|
-
onClick: ($event) => dynamicHandleAddForm(scope.row),
|
|
76778
|
+
onClick: ($event) => dynamicHandleAddForm(scope.row, "edit"),
|
|
76725
76779
|
title: "编辑"
|
|
76726
76780
|
}, null, 8, ["onClick"])) : createCommentVNode("", true),
|
|
76727
76781
|
createVNode(__unplugin_components_0$a, {
|
|
@@ -76758,7 +76812,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
76758
76812
|
|
|
76759
76813
|
/* unplugin-vue-components disabled */
|
|
76760
76814
|
|
|
76761
|
-
const __unplugin_components_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-
|
|
76815
|
+
const __unplugin_components_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-42d7d5a1"]]);
|
|
76762
76816
|
|
|
76763
76817
|
const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
76764
76818
|
__proto__: null,
|
|
@@ -77248,6 +77302,9 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
77248
77302
|
let defaultDatas = mappingData.defaultDatas;
|
|
77249
77303
|
dataForm.value = { ...defaultDatas, ...data };
|
|
77250
77304
|
};
|
|
77305
|
+
const setSource = (dataSource) => {
|
|
77306
|
+
source.value = dataSource;
|
|
77307
|
+
};
|
|
77251
77308
|
const updateFormData = (data) => {
|
|
77252
77309
|
dataForm.value = { ...dataForm.value, ...data };
|
|
77253
77310
|
};
|
|
@@ -77309,13 +77366,17 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
77309
77366
|
watch(
|
|
77310
77367
|
() => dialogProps.ids,
|
|
77311
77368
|
(val) => {
|
|
77312
|
-
|
|
77313
|
-
|
|
77314
|
-
|
|
77315
|
-
setFormData(dataForm.value);
|
|
77369
|
+
if (val === void 0 || val == null || val == "") {
|
|
77370
|
+
console.log("ids 未定义", val);
|
|
77371
|
+
return;
|
|
77316
77372
|
} else {
|
|
77317
|
-
|
|
77318
|
-
|
|
77373
|
+
if (val == -1) {
|
|
77374
|
+
source.value = 1;
|
|
77375
|
+
setFormData(dataForm.value);
|
|
77376
|
+
} else {
|
|
77377
|
+
source.value = 2;
|
|
77378
|
+
loadData();
|
|
77379
|
+
}
|
|
77319
77380
|
}
|
|
77320
77381
|
},
|
|
77321
77382
|
{
|
|
@@ -77334,7 +77395,8 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
77334
77395
|
tableListRef,
|
|
77335
77396
|
getFields,
|
|
77336
77397
|
getFormFields,
|
|
77337
|
-
validate
|
|
77398
|
+
validate,
|
|
77399
|
+
setSource
|
|
77338
77400
|
});
|
|
77339
77401
|
return (_ctx, _cache) => {
|
|
77340
77402
|
const _component_el_form = ElForm;
|
|
@@ -127553,9 +127615,13 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
127553
127615
|
onMounted(() => {
|
|
127554
127616
|
init();
|
|
127555
127617
|
});
|
|
127556
|
-
watch(
|
|
127557
|
-
|
|
127558
|
-
|
|
127618
|
+
watch(
|
|
127619
|
+
() => props.field,
|
|
127620
|
+
() => {
|
|
127621
|
+
checkMenuStatus();
|
|
127622
|
+
},
|
|
127623
|
+
{ deep: true, immediate: true }
|
|
127624
|
+
);
|
|
127559
127625
|
watch(
|
|
127560
127626
|
() => props.parentField,
|
|
127561
127627
|
() => tableAction(props, buttonControl.value, props.type),
|
|
@@ -129087,7 +129153,8 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
129087
129153
|
parentField: {},
|
|
129088
129154
|
formInfo: {},
|
|
129089
129155
|
parentId: {},
|
|
129090
|
-
callBack: {}
|
|
129156
|
+
callBack: {},
|
|
129157
|
+
source: {}
|
|
129091
129158
|
},
|
|
129092
129159
|
setup(__props) {
|
|
129093
129160
|
const props = __props;
|
|
@@ -129349,7 +129416,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
129349
129416
|
|
|
129350
129417
|
/* unplugin-vue-components disabled */
|
|
129351
129418
|
|
|
129352
|
-
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-
|
|
129419
|
+
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-90a916cb"]]);
|
|
129353
129420
|
|
|
129354
129421
|
const starhorseFormItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
129355
129422
|
__proto__: null,
|
|
@@ -129370,7 +129437,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
129370
129437
|
parentField: {},
|
|
129371
129438
|
formInfo: {},
|
|
129372
129439
|
parentId: {},
|
|
129373
|
-
callBack: {}
|
|
129440
|
+
callBack: {},
|
|
129441
|
+
source: {}
|
|
129374
129442
|
}, {
|
|
129375
129443
|
"formData": {},
|
|
129376
129444
|
"formDataModifiers": {}
|
|
@@ -129454,7 +129522,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
129454
129522
|
|
|
129455
129523
|
/* unplugin-vue-components disabled */
|
|
129456
129524
|
|
|
129457
|
-
const areaItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
129525
|
+
const areaItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-c481f296"]]);
|
|
129458
129526
|
|
|
129459
129527
|
const areaItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
129460
129528
|
__proto__: null,
|
|
@@ -129474,7 +129542,8 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
129474
129542
|
parentField: {},
|
|
129475
129543
|
formInfo: {},
|
|
129476
129544
|
parentId: {},
|
|
129477
|
-
callBack: {}
|
|
129545
|
+
callBack: {},
|
|
129546
|
+
source: {}
|
|
129478
129547
|
},
|
|
129479
129548
|
emits: ["selfFunc", "selectItem"],
|
|
129480
129549
|
setup(__props, { emit: __emit }) {
|
|
@@ -129594,7 +129663,8 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
129594
129663
|
parentField: {},
|
|
129595
129664
|
formInfo: {},
|
|
129596
129665
|
parentId: {},
|
|
129597
|
-
callBack: {}
|
|
129666
|
+
callBack: {},
|
|
129667
|
+
source: {}
|
|
129598
129668
|
}, {
|
|
129599
129669
|
"formData": {},
|
|
129600
129670
|
"formDataModifiers": {}
|
|
@@ -129692,7 +129762,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
129692
129762
|
parentField: {},
|
|
129693
129763
|
formInfo: {},
|
|
129694
129764
|
parentId: {},
|
|
129695
|
-
callBack: {}
|
|
129765
|
+
callBack: {},
|
|
129766
|
+
source: {}
|
|
129696
129767
|
}, {
|
|
129697
129768
|
"formData": {},
|
|
129698
129769
|
"formDataModifiers": {}
|
|
@@ -129878,7 +129949,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
129878
129949
|
|
|
129879
129950
|
/* unplugin-vue-components disabled */
|
|
129880
129951
|
|
|
129881
|
-
const buttonItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-
|
|
129952
|
+
const buttonItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-de366f68"]]);
|
|
129882
129953
|
|
|
129883
129954
|
const buttonItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
129884
129955
|
__proto__: null,
|
|
@@ -129902,7 +129973,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
129902
129973
|
parentField: {},
|
|
129903
129974
|
formInfo: {},
|
|
129904
129975
|
parentId: {},
|
|
129905
|
-
callBack: {}
|
|
129976
|
+
callBack: {},
|
|
129977
|
+
source: {}
|
|
129906
129978
|
}, {
|
|
129907
129979
|
"formData": {},
|
|
129908
129980
|
"formDataModifiers": {}
|
|
@@ -130140,7 +130212,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
130140
130212
|
|
|
130141
130213
|
/* unplugin-vue-components disabled */
|
|
130142
130214
|
|
|
130143
|
-
const cascadeItem = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
130215
|
+
const cascadeItem = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-cebddac7"]]);
|
|
130144
130216
|
|
|
130145
130217
|
const cascadeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
130146
130218
|
__proto__: null,
|
|
@@ -130159,7 +130231,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
130159
130231
|
parentField: {},
|
|
130160
130232
|
formInfo: {},
|
|
130161
130233
|
parentId: {},
|
|
130162
|
-
callBack: {}
|
|
130234
|
+
callBack: {},
|
|
130235
|
+
source: {}
|
|
130163
130236
|
}, {
|
|
130164
130237
|
"formData": {},
|
|
130165
130238
|
"formDataModifiers": {}
|
|
@@ -130253,7 +130326,8 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
130253
130326
|
parentField: {},
|
|
130254
130327
|
formInfo: {},
|
|
130255
130328
|
parentId: {},
|
|
130256
|
-
callBack: {}
|
|
130329
|
+
callBack: {},
|
|
130330
|
+
source: {}
|
|
130257
130331
|
}, {
|
|
130258
130332
|
"formData": {},
|
|
130259
130333
|
"formDataModifiers": {}
|
|
@@ -133032,7 +133106,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
133032
133106
|
parentField: {},
|
|
133033
133107
|
formInfo: {},
|
|
133034
133108
|
parentId: {},
|
|
133035
|
-
callBack: {}
|
|
133109
|
+
callBack: {},
|
|
133110
|
+
source: {}
|
|
133036
133111
|
}, {
|
|
133037
133112
|
"formData": {},
|
|
133038
133113
|
"formDataModifiers": {}
|
|
@@ -133154,7 +133229,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
133154
133229
|
parentField: {},
|
|
133155
133230
|
formInfo: {},
|
|
133156
133231
|
parentId: {},
|
|
133157
|
-
callBack: {}
|
|
133232
|
+
callBack: {},
|
|
133233
|
+
source: {}
|
|
133158
133234
|
}, {
|
|
133159
133235
|
"formData": {},
|
|
133160
133236
|
"formDataModifiers": {}
|
|
@@ -133225,7 +133301,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
133225
133301
|
|
|
133226
133302
|
/* unplugin-vue-components disabled */
|
|
133227
133303
|
|
|
133228
|
-
const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-
|
|
133304
|
+
const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-16e3ccaf"]]);
|
|
133229
133305
|
|
|
133230
133306
|
const datetimeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
133231
133307
|
__proto__: null,
|
|
@@ -133244,7 +133320,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
133244
133320
|
parentField: {},
|
|
133245
133321
|
formInfo: {},
|
|
133246
133322
|
parentId: {},
|
|
133247
|
-
callBack: {}
|
|
133323
|
+
callBack: {},
|
|
133324
|
+
source: {}
|
|
133248
133325
|
},
|
|
133249
133326
|
emits: ["selfFunc", "selectItem"],
|
|
133250
133327
|
setup(__props, { emit: __emit }) {
|
|
@@ -133287,7 +133364,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
133287
133364
|
parentField: {},
|
|
133288
133365
|
formInfo: {},
|
|
133289
133366
|
parentId: {},
|
|
133290
|
-
callBack: {}
|
|
133367
|
+
callBack: {},
|
|
133368
|
+
source: {}
|
|
133291
133369
|
}, {
|
|
133292
133370
|
"formData": {},
|
|
133293
133371
|
"formDataModifiers": {}
|
|
@@ -133468,7 +133546,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
133468
133546
|
|
|
133469
133547
|
/* unplugin-vue-components disabled */
|
|
133470
133548
|
|
|
133471
|
-
const dialogInputItem = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-
|
|
133549
|
+
const dialogInputItem = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-cc7182c1"]]);
|
|
133472
133550
|
|
|
133473
133551
|
const dialogInputItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
133474
133552
|
__proto__: null,
|
|
@@ -133487,7 +133565,8 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
133487
133565
|
parentField: {},
|
|
133488
133566
|
formInfo: {},
|
|
133489
133567
|
parentId: {},
|
|
133490
|
-
callBack: {}
|
|
133568
|
+
callBack: {},
|
|
133569
|
+
source: {}
|
|
133491
133570
|
}, {
|
|
133492
133571
|
"formData": {},
|
|
133493
133572
|
"formDataModifiers": {}
|
|
@@ -133550,7 +133629,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
133550
133629
|
parentField: {},
|
|
133551
133630
|
formInfo: {},
|
|
133552
133631
|
parentId: {},
|
|
133553
|
-
callBack: {}
|
|
133632
|
+
callBack: {},
|
|
133633
|
+
source: {}
|
|
133554
133634
|
}, {
|
|
133555
133635
|
"formData": {},
|
|
133556
133636
|
"formDataModifiers": {}
|
|
@@ -150677,7 +150757,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
150677
150757
|
parentField: {},
|
|
150678
150758
|
formInfo: {},
|
|
150679
150759
|
parentId: {},
|
|
150680
|
-
callBack: {}
|
|
150760
|
+
callBack: {},
|
|
150761
|
+
source: {}
|
|
150681
150762
|
}, {
|
|
150682
150763
|
"formData": {},
|
|
150683
150764
|
"formDataModifiers": {}
|
|
@@ -150770,7 +150851,8 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
150770
150851
|
parentField: {},
|
|
150771
150852
|
formInfo: {},
|
|
150772
150853
|
parentId: {},
|
|
150773
|
-
callBack: {}
|
|
150854
|
+
callBack: {},
|
|
150855
|
+
source: {}
|
|
150774
150856
|
}, {
|
|
150775
150857
|
"formData": {},
|
|
150776
150858
|
"formDataModifiers": {}
|
|
@@ -150927,7 +151009,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
150927
151009
|
|
|
150928
151010
|
/* unplugin-vue-components disabled */
|
|
150929
151011
|
|
|
150930
|
-
const iconItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-
|
|
151012
|
+
const iconItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-001b0103"]]);
|
|
150931
151013
|
|
|
150932
151014
|
const iconItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
150933
151015
|
__proto__: null,
|
|
@@ -150955,7 +151037,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
150955
151037
|
parentField: {},
|
|
150956
151038
|
formInfo: {},
|
|
150957
151039
|
parentId: {},
|
|
150958
|
-
callBack: {}
|
|
151040
|
+
callBack: {},
|
|
151041
|
+
source: {}
|
|
150959
151042
|
}, {
|
|
150960
151043
|
"formData": {},
|
|
150961
151044
|
"formDataModifiers": {}
|
|
@@ -151143,7 +151226,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
151143
151226
|
|
|
151144
151227
|
/* unplugin-vue-components disabled */
|
|
151145
151228
|
|
|
151146
|
-
const imageItem = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-
|
|
151229
|
+
const imageItem = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-d561ca11"]]);
|
|
151147
151230
|
|
|
151148
151231
|
const imageItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
151149
151232
|
__proto__: null,
|
|
@@ -151237,7 +151320,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
151237
151320
|
parentField: {},
|
|
151238
151321
|
formInfo: {},
|
|
151239
151322
|
parentId: {},
|
|
151240
|
-
callBack: { type: Function }
|
|
151323
|
+
callBack: { type: Function },
|
|
151324
|
+
source: {}
|
|
151241
151325
|
}, {
|
|
151242
151326
|
"formData": {},
|
|
151243
151327
|
"formDataModifiers": {}
|
|
@@ -151390,7 +151474,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
151390
151474
|
|
|
151391
151475
|
/* unplugin-vue-components disabled */
|
|
151392
151476
|
|
|
151393
|
-
const inputItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-
|
|
151477
|
+
const inputItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-277d463f"]]);
|
|
151394
151478
|
|
|
151395
151479
|
const inputItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
151396
151480
|
__proto__: null,
|
|
@@ -151574,7 +151658,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
151574
151658
|
|
|
151575
151659
|
/* unplugin-vue-components disabled */
|
|
151576
151660
|
|
|
151577
|
-
const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-
|
|
151661
|
+
const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-c5fe21a2"]]);
|
|
151578
151662
|
|
|
151579
151663
|
const baseJsonItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
151580
151664
|
__proto__: null,
|
|
@@ -151593,7 +151677,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
151593
151677
|
parentField: {},
|
|
151594
151678
|
formInfo: {},
|
|
151595
151679
|
parentId: {},
|
|
151596
|
-
callBack: {}
|
|
151680
|
+
callBack: {},
|
|
151681
|
+
source: {}
|
|
151597
151682
|
}, {
|
|
151598
151683
|
"formData": {},
|
|
151599
151684
|
"formDataModifiers": {}
|
|
@@ -151650,7 +151735,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
151650
151735
|
parentField: {},
|
|
151651
151736
|
formInfo: {},
|
|
151652
151737
|
parentId: {},
|
|
151653
|
-
callBack: {}
|
|
151738
|
+
callBack: {},
|
|
151739
|
+
source: {}
|
|
151654
151740
|
}, {
|
|
151655
151741
|
"formData": {},
|
|
151656
151742
|
"formDataModifiers": {}
|
|
@@ -203179,7 +203265,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
203179
203265
|
parentField: {},
|
|
203180
203266
|
formInfo: {},
|
|
203181
203267
|
parentId: {},
|
|
203182
|
-
callBack: {}
|
|
203268
|
+
callBack: {},
|
|
203269
|
+
source: {}
|
|
203183
203270
|
}, {
|
|
203184
203271
|
"formData": {},
|
|
203185
203272
|
"formDataModifiers": {}
|
|
@@ -203223,7 +203310,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
203223
203310
|
|
|
203224
203311
|
/* unplugin-vue-components disabled */
|
|
203225
203312
|
|
|
203226
|
-
const markdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
203313
|
+
const markdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-e8c73824"]]);
|
|
203227
203314
|
|
|
203228
203315
|
const markdownItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
203229
203316
|
__proto__: null,
|
|
@@ -203247,7 +203334,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
203247
203334
|
parentField: {},
|
|
203248
203335
|
formInfo: {},
|
|
203249
203336
|
parentId: {},
|
|
203250
|
-
callBack: {}
|
|
203337
|
+
callBack: {},
|
|
203338
|
+
source: {}
|
|
203251
203339
|
}, {
|
|
203252
203340
|
"formData": {},
|
|
203253
203341
|
"formDataModifiers": {}
|
|
@@ -203311,7 +203399,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
203311
203399
|
|
|
203312
203400
|
/* unplugin-vue-components disabled */
|
|
203313
203401
|
|
|
203314
|
-
const numberItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-
|
|
203402
|
+
const numberItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-b8e8df9f"]]);
|
|
203315
203403
|
|
|
203316
203404
|
const numberItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
203317
203405
|
__proto__: null,
|
|
@@ -203332,7 +203420,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
203332
203420
|
parentField: {},
|
|
203333
203421
|
formInfo: {},
|
|
203334
203422
|
parentId: {},
|
|
203335
|
-
callBack: {}
|
|
203423
|
+
callBack: {},
|
|
203424
|
+
source: {}
|
|
203336
203425
|
}, {
|
|
203337
203426
|
"formData": {},
|
|
203338
203427
|
"formDataModifiers": {}
|
|
@@ -203456,7 +203545,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
203456
203545
|
|
|
203457
203546
|
/* unplugin-vue-components disabled */
|
|
203458
203547
|
|
|
203459
|
-
const numberRangeItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
203548
|
+
const numberRangeItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-78dc5aa2"]]);
|
|
203460
203549
|
|
|
203461
203550
|
const numberRangeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
203462
203551
|
__proto__: null,
|
|
@@ -203475,7 +203564,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
203475
203564
|
parentField: {},
|
|
203476
203565
|
formInfo: {},
|
|
203477
203566
|
parentId: {},
|
|
203478
|
-
callBack: {}
|
|
203567
|
+
callBack: {},
|
|
203568
|
+
source: {}
|
|
203479
203569
|
}, {
|
|
203480
203570
|
"formData": {},
|
|
203481
203571
|
"formDataModifiers": {}
|
|
@@ -203853,7 +203943,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
203853
203943
|
|
|
203854
203944
|
/* unplugin-vue-components disabled */
|
|
203855
203945
|
|
|
203856
|
-
const pageSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-
|
|
203946
|
+
const pageSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-10cadb61"]]);
|
|
203857
203947
|
|
|
203858
203948
|
const pageSelectItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
203859
203949
|
__proto__: null,
|
|
@@ -203872,7 +203962,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
203872
203962
|
parentField: {},
|
|
203873
203963
|
formInfo: {},
|
|
203874
203964
|
parentId: {},
|
|
203875
|
-
callBack: {}
|
|
203965
|
+
callBack: {},
|
|
203966
|
+
source: {}
|
|
203876
203967
|
}, {
|
|
203877
203968
|
"formData": {},
|
|
203878
203969
|
"formDataModifiers": {}
|
|
@@ -203933,7 +204024,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
203933
204024
|
parentField: {},
|
|
203934
204025
|
formInfo: {},
|
|
203935
204026
|
parentId: {},
|
|
203936
|
-
callBack: {}
|
|
204027
|
+
callBack: {},
|
|
204028
|
+
source: {}
|
|
203937
204029
|
}, {
|
|
203938
204030
|
"formData": {},
|
|
203939
204031
|
"formDataModifiers": {}
|
|
@@ -204040,7 +204132,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
204040
204132
|
parentField: {},
|
|
204041
204133
|
formInfo: {},
|
|
204042
204134
|
parentId: {},
|
|
204043
|
-
callBack: {}
|
|
204135
|
+
callBack: {},
|
|
204136
|
+
source: {}
|
|
204044
204137
|
}, {
|
|
204045
204138
|
"formData": {},
|
|
204046
204139
|
"formDataModifiers": {}
|
|
@@ -204107,7 +204200,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
204107
204200
|
parentField: {},
|
|
204108
204201
|
formInfo: {},
|
|
204109
204202
|
parentId: {},
|
|
204110
|
-
callBack: {}
|
|
204203
|
+
callBack: {},
|
|
204204
|
+
source: {}
|
|
204111
204205
|
}, {
|
|
204112
204206
|
"formData": {},
|
|
204113
204207
|
"formDataModifiers": {}
|
|
@@ -204315,7 +204409,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
204315
204409
|
|
|
204316
204410
|
/* unplugin-vue-components disabled */
|
|
204317
204411
|
|
|
204318
|
-
const selectItem = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
204412
|
+
const selectItem = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-2d4ab92c"]]);
|
|
204319
204413
|
|
|
204320
204414
|
const selectItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
204321
204415
|
__proto__: null,
|
|
@@ -204736,7 +204830,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
204736
204830
|
parentField: {},
|
|
204737
204831
|
formInfo: {},
|
|
204738
204832
|
parentId: {},
|
|
204739
|
-
callBack: {}
|
|
204833
|
+
callBack: {},
|
|
204834
|
+
source: {}
|
|
204740
204835
|
},
|
|
204741
204836
|
emits: ["selfFunc", "selectItem"],
|
|
204742
204837
|
setup(__props, { emit: __emit }) {
|
|
@@ -204884,7 +204979,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
204884
204979
|
|
|
204885
204980
|
/* unplugin-vue-components disabled */
|
|
204886
204981
|
|
|
204887
|
-
const signatureItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
204982
|
+
const signatureItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dd94b6d6"]]);
|
|
204888
204983
|
|
|
204889
204984
|
const signatureItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
204890
204985
|
__proto__: null,
|
|
@@ -204903,7 +204998,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
204903
204998
|
parentField: {},
|
|
204904
204999
|
formInfo: {},
|
|
204905
205000
|
parentId: {},
|
|
204906
|
-
callBack: {}
|
|
205001
|
+
callBack: {},
|
|
205002
|
+
source: {}
|
|
204907
205003
|
}, {
|
|
204908
205004
|
"formData": {},
|
|
204909
205005
|
"formDataModifiers": {}
|
|
@@ -204966,7 +205062,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
204966
205062
|
parentField: {},
|
|
204967
205063
|
formInfo: {},
|
|
204968
205064
|
parentId: {},
|
|
204969
|
-
callBack: {}
|
|
205065
|
+
callBack: {},
|
|
205066
|
+
source: {}
|
|
204970
205067
|
}, {
|
|
204971
205068
|
"formData": {},
|
|
204972
205069
|
"formDataModifiers": {}
|
|
@@ -205034,7 +205131,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
205034
205131
|
parentField: {},
|
|
205035
205132
|
formInfo: {},
|
|
205036
205133
|
parentId: {},
|
|
205037
|
-
callBack: {}
|
|
205134
|
+
callBack: {},
|
|
205135
|
+
source: {}
|
|
205038
205136
|
}, {
|
|
205039
205137
|
"formData": {},
|
|
205040
205138
|
"formDataModifiers": {}
|
|
@@ -205100,7 +205198,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
205100
205198
|
parentField: {},
|
|
205101
205199
|
formInfo: {},
|
|
205102
205200
|
parentId: {},
|
|
205103
|
-
callBack: {}
|
|
205201
|
+
callBack: {},
|
|
205202
|
+
source: {}
|
|
205104
205203
|
}, {
|
|
205105
205204
|
"formData": {},
|
|
205106
205205
|
"formDataModifiers": {}
|
|
@@ -205170,7 +205269,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
205170
205269
|
parentField: {},
|
|
205171
205270
|
formInfo: {},
|
|
205172
205271
|
parentId: {},
|
|
205173
|
-
callBack: {}
|
|
205272
|
+
callBack: {},
|
|
205273
|
+
source: {}
|
|
205174
205274
|
}, {
|
|
205175
205275
|
"formData": {},
|
|
205176
205276
|
"formDataModifiers": {}
|
|
@@ -205248,7 +205348,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
205248
205348
|
parentField: {},
|
|
205249
205349
|
formInfo: {},
|
|
205250
205350
|
parentId: {},
|
|
205251
|
-
callBack: {}
|
|
205351
|
+
callBack: {},
|
|
205352
|
+
source: {}
|
|
205252
205353
|
}, {
|
|
205253
205354
|
"formData": {},
|
|
205254
205355
|
"formDataModifiers": {}
|
|
@@ -205297,7 +205398,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
205297
205398
|
|
|
205298
205399
|
/* unplugin-vue-components disabled */
|
|
205299
205400
|
|
|
205300
|
-
const timeItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
205401
|
+
const timeItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-99def2f8"]]);
|
|
205301
205402
|
|
|
205302
205403
|
const timeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
205303
205404
|
__proto__: null,
|
|
@@ -205316,7 +205417,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
205316
205417
|
parentField: {},
|
|
205317
205418
|
formInfo: {},
|
|
205318
205419
|
parentId: {},
|
|
205319
|
-
callBack: {}
|
|
205420
|
+
callBack: {},
|
|
205421
|
+
source: {}
|
|
205320
205422
|
}, {
|
|
205321
205423
|
"formData": {},
|
|
205322
205424
|
"formDataModifiers": {}
|
|
@@ -205362,7 +205464,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
205362
205464
|
|
|
205363
205465
|
/* unplugin-vue-components disabled */
|
|
205364
205466
|
|
|
205365
|
-
const timePickerItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
205467
|
+
const timePickerItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-458f167a"]]);
|
|
205366
205468
|
|
|
205367
205469
|
const timePickerItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
205368
205470
|
__proto__: null,
|
|
@@ -205381,7 +205483,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
205381
205483
|
parentField: {},
|
|
205382
205484
|
formInfo: {},
|
|
205383
205485
|
parentId: {},
|
|
205384
|
-
callBack: {}
|
|
205486
|
+
callBack: {},
|
|
205487
|
+
source: {}
|
|
205385
205488
|
}, {
|
|
205386
205489
|
"formData": {},
|
|
205387
205490
|
"formDataModifiers": {}
|
|
@@ -205469,7 +205572,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
205469
205572
|
parentField: {},
|
|
205470
205573
|
formInfo: {},
|
|
205471
205574
|
parentId: {},
|
|
205472
|
-
callBack: {}
|
|
205575
|
+
callBack: {},
|
|
205576
|
+
source: {}
|
|
205473
205577
|
}, {
|
|
205474
205578
|
"formData": {},
|
|
205475
205579
|
"formDataModifiers": {}
|
|
@@ -205698,7 +205802,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
205698
205802
|
parentField: {},
|
|
205699
205803
|
formInfo: {},
|
|
205700
205804
|
parentId: {},
|
|
205701
|
-
callBack: {}
|
|
205805
|
+
callBack: {},
|
|
205806
|
+
source: {}
|
|
205702
205807
|
},
|
|
205703
205808
|
emits: ["selfFunc", "selectItem"],
|
|
205704
205809
|
setup(__props, { emit: __emit }) {
|
|
@@ -205744,7 +205849,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
205744
205849
|
parentField: {},
|
|
205745
205850
|
formInfo: {},
|
|
205746
205851
|
parentId: {},
|
|
205747
|
-
callBack: {}
|
|
205852
|
+
callBack: {},
|
|
205853
|
+
source: {}
|
|
205748
205854
|
}, {
|
|
205749
205855
|
"formData": {},
|
|
205750
205856
|
"formDataModifiers": {}
|
|
@@ -205855,7 +205961,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
205855
205961
|
|
|
205856
205962
|
/* unplugin-vue-components disabled */
|
|
205857
205963
|
|
|
205858
|
-
const uploadItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
205964
|
+
const uploadItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-fab47ad8"]]);
|
|
205859
205965
|
|
|
205860
205966
|
const uploadItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
205861
205967
|
__proto__: null,
|
|
@@ -205875,7 +205981,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
205875
205981
|
parentField: {},
|
|
205876
205982
|
formInfo: {},
|
|
205877
205983
|
parentId: {},
|
|
205878
|
-
callBack: {}
|
|
205984
|
+
callBack: {},
|
|
205985
|
+
source: {}
|
|
205879
205986
|
}, {
|
|
205880
205987
|
"formData": {},
|
|
205881
205988
|
"formDataModifiers": {}
|
|
@@ -206035,14 +206142,6 @@ const userItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
|
206035
206142
|
default: _sfc_main$m
|
|
206036
206143
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
206037
206144
|
|
|
206038
|
-
const __variableDynamicImportRuntimeHelper = (glob$1, path$13, segs) => {
|
|
206039
|
-
const v = glob$1[path$13];
|
|
206040
|
-
if (v) return typeof v === "function" ? v() : Promise.resolve(v);
|
|
206041
|
-
return new Promise((_, reject) => {
|
|
206042
|
-
(typeof queueMicrotask === "function" ? queueMicrotask : setTimeout)(reject.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + path$13 + (path$13.split("/").length !== segs ? ". Note that variables only represent file names one level deep." : ""))));
|
|
206043
|
-
});
|
|
206044
|
-
};
|
|
206045
|
-
|
|
206046
206145
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
206047
206146
|
__name: "usercomp-item",
|
|
206048
206147
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -206055,7 +206154,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
206055
206154
|
parentField: {},
|
|
206056
206155
|
formInfo: {},
|
|
206057
206156
|
parentId: {},
|
|
206058
|
-
callBack: {}
|
|
206157
|
+
callBack: {},
|
|
206158
|
+
source: { default: 0 }
|
|
206059
206159
|
}, {
|
|
206060
206160
|
"formData": {},
|
|
206061
206161
|
"formDataModifiers": {}
|
|
@@ -206064,33 +206164,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
206064
206164
|
setup(__props, { emit: __emit }) {
|
|
206065
206165
|
const props = __props;
|
|
206066
206166
|
const formData = useModel(__props, "formData");
|
|
206067
|
-
const currentComponent =
|
|
206167
|
+
const currentComponent = computed(() => props.field["preps"].compName);
|
|
206068
206168
|
const loadComponent = async () => {
|
|
206069
|
-
let compOption = props.field["preps"].compName;
|
|
206070
|
-
if (typeof compOption === "object" && compOption?.__name) {
|
|
206071
|
-
currentComponent.value = compOption;
|
|
206072
|
-
} else if (typeof compOption === "string") {
|
|
206073
|
-
try {
|
|
206074
|
-
let comp = await __variableDynamicImportRuntimeHelper((/* #__PURE__ */ Object.assign({"../../help.vue": () => Promise.resolve().then(() => help)})), `../../${compOption}.vue`, 3);
|
|
206075
|
-
currentComponent.value = comp.default;
|
|
206076
|
-
} catch (e) {
|
|
206077
|
-
console.log(e.message);
|
|
206078
|
-
currentComponent.value = null;
|
|
206079
|
-
}
|
|
206080
|
-
} else {
|
|
206081
|
-
currentComponent.value = null;
|
|
206082
|
-
}
|
|
206083
206169
|
};
|
|
206084
206170
|
onMounted(() => {
|
|
206085
206171
|
loadComponent();
|
|
206086
206172
|
});
|
|
206087
|
-
watch(
|
|
206088
|
-
() => [props.field.preps?.compName, props.field.preps?.name],
|
|
206089
|
-
() => {
|
|
206090
|
-
loadComponent();
|
|
206091
|
-
},
|
|
206092
|
-
{ immediate: false }
|
|
206093
|
-
);
|
|
206094
206173
|
return (_ctx, _cache) => {
|
|
206095
206174
|
const _component_starhorse_form_item = __unplugin_components_0$3;
|
|
206096
206175
|
return openBlock(), createBlock(_component_starhorse_form_item, {
|
|
@@ -206109,8 +206188,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
206109
206188
|
bareFlag: _ctx.bareFlag
|
|
206110
206189
|
}, _ctx.field["preps"], {
|
|
206111
206190
|
dataForm: formData.value,
|
|
206112
|
-
"onUpdate:dataForm": _cache[0] || (_cache[0] = ($event) => formData.value = $event)
|
|
206113
|
-
|
|
206191
|
+
"onUpdate:dataForm": _cache[0] || (_cache[0] = ($event) => formData.value = $event),
|
|
206192
|
+
source: _ctx.source
|
|
206193
|
+
}), null, 16, ["showFormItem", "isDesign", "disabled", "bareFlag", "dataForm", "source"]))
|
|
206114
206194
|
]),
|
|
206115
206195
|
_: 1
|
|
206116
206196
|
}, 8, ["showFormItem", "isDesign", "disabled", "bareFlag", "field", "parentField"]);
|
|
@@ -206136,7 +206216,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
206136
206216
|
parentField: {},
|
|
206137
206217
|
formInfo: {},
|
|
206138
206218
|
parentId: {},
|
|
206139
|
-
callBack: {}
|
|
206219
|
+
callBack: {},
|
|
206220
|
+
source: {}
|
|
206140
206221
|
}, {
|
|
206141
206222
|
"formData": {},
|
|
206142
206223
|
"formDataModifiers": {}
|
|
@@ -206185,7 +206266,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
206185
206266
|
|
|
206186
206267
|
/* unplugin-vue-components disabled */
|
|
206187
206268
|
|
|
206188
|
-
const viewMarkdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
206269
|
+
const viewMarkdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-2ee361a9"]]);
|
|
206189
206270
|
|
|
206190
206271
|
const viewMarkdownItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
206191
206272
|
__proto__: null,
|
|
@@ -207451,7 +207532,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
207451
207532
|
parentField: {},
|
|
207452
207533
|
formInfo: {},
|
|
207453
207534
|
parentId: {},
|
|
207454
|
-
callBack: {}
|
|
207535
|
+
callBack: {},
|
|
207536
|
+
source: {}
|
|
207455
207537
|
}, {
|
|
207456
207538
|
"formData": {},
|
|
207457
207539
|
"formDataModifiers": {}
|
|
@@ -218227,7 +218309,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
218227
218309
|
parentField: {},
|
|
218228
218310
|
formInfo: {},
|
|
218229
218311
|
parentId: {},
|
|
218230
|
-
callBack: {}
|
|
218312
|
+
callBack: {},
|
|
218313
|
+
source: {}
|
|
218231
218314
|
}, {
|
|
218232
218315
|
"formData": {},
|
|
218233
218316
|
"formDataModifiers": {}
|
|
@@ -249050,7 +249133,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
249050
249133
|
parentField: {},
|
|
249051
249134
|
formInfo: {},
|
|
249052
249135
|
parentId: {},
|
|
249053
|
-
callBack: {}
|
|
249136
|
+
callBack: {},
|
|
249137
|
+
source: {}
|
|
249054
249138
|
}, {
|
|
249055
249139
|
"formData": {},
|
|
249056
249140
|
"formDataModifiers": {}
|