star-horse-lowcode 2.8.3 → 2.8.4
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 +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +151 -93
- package/dist/types/index.d.ts +12 -4
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -69492,6 +69492,7 @@ const fieldAssign = (props, relationFields, values) => {
|
|
|
69492
69492
|
const field = props.formInfo?.find((field2) => field2.fieldName == item);
|
|
69493
69493
|
if (field) {
|
|
69494
69494
|
let flag = false;
|
|
69495
|
+
field.formVisible = true;
|
|
69495
69496
|
Object.entries(record).forEach(([key, value]) => {
|
|
69496
69497
|
if (value.includes(field.itemType ?? field.type)) {
|
|
69497
69498
|
field.preps[key] = values;
|
|
@@ -69500,86 +69501,127 @@ const fieldAssign = (props, relationFields, values) => {
|
|
|
69500
69501
|
}
|
|
69501
69502
|
});
|
|
69502
69503
|
if (!flag) {
|
|
69503
|
-
|
|
69504
|
+
if (isJson(values)) {
|
|
69505
|
+
Object.entries(values).forEach(([key, value]) => {
|
|
69506
|
+
field.preps[key] = value;
|
|
69507
|
+
});
|
|
69508
|
+
} else if (!Array.isArray(values)) {
|
|
69509
|
+
field.defaultValue = values;
|
|
69510
|
+
}
|
|
69504
69511
|
}
|
|
69505
69512
|
}
|
|
69506
69513
|
});
|
|
69507
69514
|
};
|
|
69508
69515
|
const dataLinkage = async (props, item, e) => {
|
|
69509
|
-
|
|
69510
|
-
if (!relationFields) {
|
|
69516
|
+
if (item.isWorking) {
|
|
69511
69517
|
return;
|
|
69512
69518
|
}
|
|
69513
|
-
|
|
69514
|
-
|
|
69515
|
-
|
|
69516
|
-
|
|
69517
|
-
|
|
69518
|
-
tempParams.queryParams.push(
|
|
69519
|
-
createCondition(item.matchFieldName, e, item.matchType)
|
|
69520
|
-
);
|
|
69521
|
-
const resultData = await dynamicUrlOperation({
|
|
69522
|
-
preps: {
|
|
69523
|
-
...tempParams
|
|
69519
|
+
item.isWorking = true;
|
|
69520
|
+
try {
|
|
69521
|
+
let { relationFields, params, matchFieldValue } = item;
|
|
69522
|
+
if (!Array.isArray(matchFieldValue)) {
|
|
69523
|
+
matchFieldValue = matchFieldValue ? [matchFieldValue] : [];
|
|
69524
69524
|
}
|
|
69525
|
-
|
|
69526
|
-
|
|
69525
|
+
if (matchFieldValue.length > 0 && !matchFieldValue.includes(item.controlCondition)) {
|
|
69526
|
+
return;
|
|
69527
|
+
}
|
|
69528
|
+
if (!Array.isArray(relationFields)) {
|
|
69529
|
+
relationFields = [relationFields];
|
|
69530
|
+
}
|
|
69531
|
+
const tempParams = { ...params };
|
|
69532
|
+
if (item.controlCondition == "asParamDataLinkage") {
|
|
69533
|
+
tempParams.queryParams = tempParams.queryParams || [];
|
|
69534
|
+
tempParams.queryParams.push(
|
|
69535
|
+
createCondition(item.matchFieldName, e, item.matchType)
|
|
69536
|
+
);
|
|
69537
|
+
}
|
|
69538
|
+
const resultData = await dynamicUrlOperation({
|
|
69539
|
+
preps: {
|
|
69540
|
+
...tempParams
|
|
69541
|
+
}
|
|
69542
|
+
});
|
|
69543
|
+
fieldAssign(props, relationFields, resultData);
|
|
69544
|
+
} finally {
|
|
69545
|
+
item.isWorking = false;
|
|
69546
|
+
}
|
|
69527
69547
|
};
|
|
69528
|
-
const eqDisableOrEditable = (props, item, e
|
|
69529
|
-
let { relationFields,
|
|
69530
|
-
if (
|
|
69548
|
+
const eqDisableOrEditable = (props, item, e) => {
|
|
69549
|
+
let { relationFields, matchFieldValue } = item;
|
|
69550
|
+
if (item.isWorking) {
|
|
69531
69551
|
return;
|
|
69532
69552
|
}
|
|
69533
|
-
if (!Array.isArray(
|
|
69534
|
-
|
|
69553
|
+
if (!Array.isArray(matchFieldValue)) {
|
|
69554
|
+
matchFieldValue = matchFieldValue ? [matchFieldValue] : [];
|
|
69535
69555
|
}
|
|
69536
|
-
|
|
69537
|
-
|
|
69538
|
-
if (
|
|
69539
|
-
|
|
69556
|
+
try {
|
|
69557
|
+
item.isWorking = true;
|
|
69558
|
+
if (!Array.isArray(relationFields)) {
|
|
69559
|
+
relationFields = [relationFields];
|
|
69540
69560
|
}
|
|
69541
|
-
|
|
69561
|
+
relationFields?.forEach(async (sitem) => {
|
|
69562
|
+
const field = props.formInfo?.find(
|
|
69563
|
+
(field2) => field2.fieldName == sitem
|
|
69564
|
+
);
|
|
69565
|
+
if (field) {
|
|
69566
|
+
if (!field.preps) {
|
|
69567
|
+
field.preps = {};
|
|
69568
|
+
}
|
|
69569
|
+
if (item.controlCondition == "eqHide") {
|
|
69570
|
+
field.formVisible = !matchFieldValue.includes(e);
|
|
69571
|
+
} else if (item.controlCondition == "eqVisible") {
|
|
69572
|
+
field.formVisible = matchFieldValue.includes(e);
|
|
69573
|
+
} else if (item.controlCondition == "eqEditable") {
|
|
69574
|
+
field.preps["disabled"] = !matchFieldValue.includes(e);
|
|
69575
|
+
} else if (item.controlCondition == "eqDisable") {
|
|
69576
|
+
field.preps["disabled"] = matchFieldValue.includes(e);
|
|
69577
|
+
}
|
|
69578
|
+
}
|
|
69579
|
+
});
|
|
69580
|
+
} finally {
|
|
69581
|
+
item.isWorking = false;
|
|
69582
|
+
}
|
|
69542
69583
|
};
|
|
69543
69584
|
const assignValue = (props, item, e) => {
|
|
69544
|
-
let { relationFields,
|
|
69545
|
-
if (!relationFields) {
|
|
69546
|
-
return;
|
|
69547
|
-
}
|
|
69585
|
+
let { relationFields, staticDatas } = item;
|
|
69548
69586
|
if (!Array.isArray(relationFields)) {
|
|
69549
69587
|
relationFields = [relationFields];
|
|
69550
69588
|
}
|
|
69551
|
-
fieldAssign(props, relationFields,
|
|
69589
|
+
fieldAssign(props, relationFields, staticDatas);
|
|
69552
69590
|
};
|
|
69553
69591
|
const changeType = (props, item, e) => {
|
|
69554
|
-
let { relationFields
|
|
69555
|
-
if (!relationFields) {
|
|
69556
|
-
return;
|
|
69557
|
-
}
|
|
69592
|
+
let { relationFields } = item;
|
|
69558
69593
|
if (!Array.isArray(relationFields)) {
|
|
69559
69594
|
relationFields = [relationFields];
|
|
69560
69595
|
}
|
|
69561
|
-
relationFields?.forEach(async (
|
|
69562
|
-
const field = props.formInfo?.find(
|
|
69596
|
+
relationFields?.forEach(async (sitem) => {
|
|
69597
|
+
const field = props.formInfo?.find(
|
|
69598
|
+
(field2) => field2.fieldName == sitem
|
|
69599
|
+
);
|
|
69563
69600
|
if (field) {
|
|
69564
|
-
field.itemType =
|
|
69601
|
+
field.itemType = item.staticDatas;
|
|
69565
69602
|
}
|
|
69566
69603
|
});
|
|
69567
69604
|
};
|
|
69568
69605
|
const relationEvent = (props, relationDetails, e, actionName) => {
|
|
69569
69606
|
relationDetails?.forEach((item) => {
|
|
69570
|
-
|
|
69607
|
+
let { controlCondition, relationFields, matchFieldValue } = item;
|
|
69608
|
+
if (!Array.isArray(matchFieldValue)) {
|
|
69609
|
+
matchFieldValue = matchFieldValue ? [matchFieldValue] : [];
|
|
69610
|
+
}
|
|
69611
|
+
if (!relationFields) {
|
|
69612
|
+
return;
|
|
69613
|
+
}
|
|
69571
69614
|
switch (controlCondition) {
|
|
69572
69615
|
//数据联动
|
|
69573
|
-
case "
|
|
69616
|
+
case "eqConditionDataLinkage":
|
|
69617
|
+
case "asParamDataLinkage":
|
|
69574
69618
|
dataLinkage(props, item, e);
|
|
69575
69619
|
break;
|
|
69576
69620
|
case "eqDisable":
|
|
69577
|
-
case "
|
|
69578
|
-
eqDisableOrEditable(props, item, e, true);
|
|
69579
|
-
break;
|
|
69621
|
+
case "eqHide":
|
|
69580
69622
|
case "eqEditable":
|
|
69581
|
-
case "
|
|
69582
|
-
eqDisableOrEditable(props, item, e
|
|
69623
|
+
case "eqVisible":
|
|
69624
|
+
eqDisableOrEditable(props, item, e);
|
|
69583
69625
|
break;
|
|
69584
69626
|
case "assignValue":
|
|
69585
69627
|
assignValue(props, item);
|
|
@@ -69630,13 +69672,13 @@ const checkIsDisabled = (attrs) => {
|
|
|
69630
69672
|
const isImplicitlyDisabled = !attrs?.formData?.[`_${fieldName}Editable`] && field?.preps?.disabled;
|
|
69631
69673
|
return eidtDidsabled === true || isExplicitlyDisabled === true || isImplicitlyDisabled === true;
|
|
69632
69674
|
};
|
|
69633
|
-
const initRelationEvent = (props, formData) => {
|
|
69675
|
+
const initRelationEvent = (props, formData, needWatch) => {
|
|
69634
69676
|
const dataRelation = props.field.preps?.dataRelation;
|
|
69635
69677
|
const actionName = dataRelation?.actionName;
|
|
69636
69678
|
if (actionName) {
|
|
69637
|
-
if (Object.keys(formData.value || {}).length == 0 || !formData.value[props.field
|
|
69679
|
+
if ((Object.keys(formData.value || {}).length == 0 || !formData.value?.[props.field?.fieldName]) && needWatch) {
|
|
69638
69680
|
const stop = watch(
|
|
69639
|
-
() => formData.value[props.field
|
|
69681
|
+
() => formData.value?.[props.field?.fieldName],
|
|
69640
69682
|
(val) => {
|
|
69641
69683
|
if (val) {
|
|
69642
69684
|
relationEvent(
|
|
@@ -69665,7 +69707,7 @@ const initCompCallEvent = (props, emits, formData) => {
|
|
|
69665
69707
|
(val) => {
|
|
69666
69708
|
if (val) {
|
|
69667
69709
|
doInitCallEvent(props, emits, formData);
|
|
69668
|
-
initRelationEvent(props, val);
|
|
69710
|
+
initRelationEvent(props, val, false);
|
|
69669
69711
|
stop();
|
|
69670
69712
|
}
|
|
69671
69713
|
},
|
|
@@ -69675,7 +69717,7 @@ const initCompCallEvent = (props, emits, formData) => {
|
|
|
69675
69717
|
}
|
|
69676
69718
|
doInitCallEvent(props, emits, formData);
|
|
69677
69719
|
}
|
|
69678
|
-
initRelationEvent(props, formData);
|
|
69720
|
+
initRelationEvent(props, formData, true);
|
|
69679
69721
|
};
|
|
69680
69722
|
const doInitCallEvent = (props, emits, formData) => {
|
|
69681
69723
|
const events = Object.keys(props.field.actions || {});
|
|
@@ -69971,37 +70013,49 @@ const useZIndex = (zIndexOverrides) => {
|
|
|
69971
70013
|
nextZIndex
|
|
69972
70014
|
};
|
|
69973
70015
|
};
|
|
70016
|
+
const handleEvent = (eventName, e, recall) => {
|
|
70017
|
+
if (eventName.includes(".")) {
|
|
70018
|
+
const modifier = eventName.split(".")[1];
|
|
70019
|
+
if (modifier == e.key.toLowerCase()) {
|
|
70020
|
+
console.log("成功触发事件:", eventName);
|
|
70021
|
+
recall && recall(modifier);
|
|
70022
|
+
}
|
|
70023
|
+
} else {
|
|
70024
|
+
recall && recall(eventName);
|
|
70025
|
+
}
|
|
70026
|
+
};
|
|
70027
|
+
const baseEvent = (eventName, recall) => {
|
|
70028
|
+
return function handler(e) {
|
|
70029
|
+
handleEvent(eventName, e, recall);
|
|
70030
|
+
};
|
|
70031
|
+
};
|
|
70032
|
+
const baseRelationEvent = (props, relationDetails, actionName) => {
|
|
70033
|
+
return function handler(e) {
|
|
70034
|
+
handleEvent(actionName, e, (tempName) => {
|
|
70035
|
+
relationEvent(props, relationDetails, e);
|
|
70036
|
+
});
|
|
70037
|
+
};
|
|
70038
|
+
};
|
|
69974
70039
|
function getDynamicEvents(props, recall) {
|
|
69975
70040
|
const events = {};
|
|
69976
70041
|
const actions = props.field.actions;
|
|
69977
70042
|
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
70043
|
actionNames?.forEach((actionName2) => {
|
|
69992
70044
|
if (actionName2.includes(".")) {
|
|
69993
|
-
const
|
|
69994
|
-
events[
|
|
70045
|
+
const baseEventName = actionName2.split(".")[0];
|
|
70046
|
+
events[baseEventName] = baseEvent(actionName2, recall);
|
|
69995
70047
|
} else {
|
|
69996
|
-
events[actionName2] = (
|
|
70048
|
+
events[actionName2] = baseEvent(actionName2, recall);
|
|
69997
70049
|
}
|
|
69998
70050
|
});
|
|
69999
70051
|
const dataRelation = props.field.preps?.dataRelation;
|
|
70000
70052
|
const actionName = dataRelation?.actionName;
|
|
70001
70053
|
if (actionName) {
|
|
70002
|
-
events[actionName] = (
|
|
70003
|
-
|
|
70004
|
-
|
|
70054
|
+
events[actionName] = baseRelationEvent(
|
|
70055
|
+
props,
|
|
70056
|
+
dataRelation?.relationDetails,
|
|
70057
|
+
actionName
|
|
70058
|
+
);
|
|
70005
70059
|
}
|
|
70006
70060
|
return events;
|
|
70007
70061
|
}
|
|
@@ -127553,9 +127607,13 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
127553
127607
|
onMounted(() => {
|
|
127554
127608
|
init();
|
|
127555
127609
|
});
|
|
127556
|
-
watch(
|
|
127557
|
-
|
|
127558
|
-
|
|
127610
|
+
watch(
|
|
127611
|
+
() => props.field,
|
|
127612
|
+
() => {
|
|
127613
|
+
checkMenuStatus();
|
|
127614
|
+
},
|
|
127615
|
+
{ deep: true, immediate: true }
|
|
127616
|
+
);
|
|
127559
127617
|
watch(
|
|
127560
127618
|
() => props.parentField,
|
|
127561
127619
|
() => tableAction(props, buttonControl.value, props.type),
|
|
@@ -129349,7 +129407,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
129349
129407
|
|
|
129350
129408
|
/* unplugin-vue-components disabled */
|
|
129351
129409
|
|
|
129352
|
-
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-
|
|
129410
|
+
const __unplugin_components_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-90a916cb"]]);
|
|
129353
129411
|
|
|
129354
129412
|
const starhorseFormItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
129355
129413
|
__proto__: null,
|
|
@@ -129454,7 +129512,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
129454
129512
|
|
|
129455
129513
|
/* unplugin-vue-components disabled */
|
|
129456
129514
|
|
|
129457
|
-
const areaItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-
|
|
129515
|
+
const areaItem = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-c481f296"]]);
|
|
129458
129516
|
|
|
129459
129517
|
const areaItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
129460
129518
|
__proto__: null,
|
|
@@ -129878,7 +129936,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
129878
129936
|
|
|
129879
129937
|
/* unplugin-vue-components disabled */
|
|
129880
129938
|
|
|
129881
|
-
const buttonItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-
|
|
129939
|
+
const buttonItem = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-de366f68"]]);
|
|
129882
129940
|
|
|
129883
129941
|
const buttonItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
129884
129942
|
__proto__: null,
|
|
@@ -130140,7 +130198,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
130140
130198
|
|
|
130141
130199
|
/* unplugin-vue-components disabled */
|
|
130142
130200
|
|
|
130143
|
-
const cascadeItem = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-
|
|
130201
|
+
const cascadeItem = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-cebddac7"]]);
|
|
130144
130202
|
|
|
130145
130203
|
const cascadeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
130146
130204
|
__proto__: null,
|
|
@@ -133225,7 +133283,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
133225
133283
|
|
|
133226
133284
|
/* unplugin-vue-components disabled */
|
|
133227
133285
|
|
|
133228
|
-
const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-
|
|
133286
|
+
const datetimeItem = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-16e3ccaf"]]);
|
|
133229
133287
|
|
|
133230
133288
|
const datetimeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
133231
133289
|
__proto__: null,
|
|
@@ -133468,7 +133526,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
133468
133526
|
|
|
133469
133527
|
/* unplugin-vue-components disabled */
|
|
133470
133528
|
|
|
133471
|
-
const dialogInputItem = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-
|
|
133529
|
+
const dialogInputItem = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-cc7182c1"]]);
|
|
133472
133530
|
|
|
133473
133531
|
const dialogInputItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
133474
133532
|
__proto__: null,
|
|
@@ -150927,7 +150985,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
150927
150985
|
|
|
150928
150986
|
/* unplugin-vue-components disabled */
|
|
150929
150987
|
|
|
150930
|
-
const iconItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-
|
|
150988
|
+
const iconItem = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-001b0103"]]);
|
|
150931
150989
|
|
|
150932
150990
|
const iconItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
150933
150991
|
__proto__: null,
|
|
@@ -151143,7 +151201,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
151143
151201
|
|
|
151144
151202
|
/* unplugin-vue-components disabled */
|
|
151145
151203
|
|
|
151146
|
-
const imageItem = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-
|
|
151204
|
+
const imageItem = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-d561ca11"]]);
|
|
151147
151205
|
|
|
151148
151206
|
const imageItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
151149
151207
|
__proto__: null,
|
|
@@ -151390,7 +151448,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
151390
151448
|
|
|
151391
151449
|
/* unplugin-vue-components disabled */
|
|
151392
151450
|
|
|
151393
|
-
const inputItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-
|
|
151451
|
+
const inputItem = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-277d463f"]]);
|
|
151394
151452
|
|
|
151395
151453
|
const inputItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
151396
151454
|
__proto__: null,
|
|
@@ -151574,7 +151632,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
151574
151632
|
|
|
151575
151633
|
/* unplugin-vue-components disabled */
|
|
151576
151634
|
|
|
151577
|
-
const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-
|
|
151635
|
+
const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-c5fe21a2"]]);
|
|
151578
151636
|
|
|
151579
151637
|
const baseJsonItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
151580
151638
|
__proto__: null,
|
|
@@ -203223,7 +203281,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
203223
203281
|
|
|
203224
203282
|
/* unplugin-vue-components disabled */
|
|
203225
203283
|
|
|
203226
|
-
const markdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-
|
|
203284
|
+
const markdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-e8c73824"]]);
|
|
203227
203285
|
|
|
203228
203286
|
const markdownItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
203229
203287
|
__proto__: null,
|
|
@@ -203311,7 +203369,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
203311
203369
|
|
|
203312
203370
|
/* unplugin-vue-components disabled */
|
|
203313
203371
|
|
|
203314
|
-
const numberItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-
|
|
203372
|
+
const numberItem = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-b8e8df9f"]]);
|
|
203315
203373
|
|
|
203316
203374
|
const numberItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
203317
203375
|
__proto__: null,
|
|
@@ -203456,7 +203514,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
203456
203514
|
|
|
203457
203515
|
/* unplugin-vue-components disabled */
|
|
203458
203516
|
|
|
203459
|
-
const numberRangeItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-
|
|
203517
|
+
const numberRangeItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-78dc5aa2"]]);
|
|
203460
203518
|
|
|
203461
203519
|
const numberRangeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
203462
203520
|
__proto__: null,
|
|
@@ -203853,7 +203911,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
203853
203911
|
|
|
203854
203912
|
/* unplugin-vue-components disabled */
|
|
203855
203913
|
|
|
203856
|
-
const pageSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-
|
|
203914
|
+
const pageSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-10cadb61"]]);
|
|
203857
203915
|
|
|
203858
203916
|
const pageSelectItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
203859
203917
|
__proto__: null,
|
|
@@ -204315,7 +204373,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
204315
204373
|
|
|
204316
204374
|
/* unplugin-vue-components disabled */
|
|
204317
204375
|
|
|
204318
|
-
const selectItem = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-
|
|
204376
|
+
const selectItem = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-2d4ab92c"]]);
|
|
204319
204377
|
|
|
204320
204378
|
const selectItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
204321
204379
|
__proto__: null,
|
|
@@ -204884,7 +204942,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
204884
204942
|
|
|
204885
204943
|
/* unplugin-vue-components disabled */
|
|
204886
204944
|
|
|
204887
|
-
const signatureItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-
|
|
204945
|
+
const signatureItem = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dd94b6d6"]]);
|
|
204888
204946
|
|
|
204889
204947
|
const signatureItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
204890
204948
|
__proto__: null,
|
|
@@ -205297,7 +205355,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
205297
205355
|
|
|
205298
205356
|
/* unplugin-vue-components disabled */
|
|
205299
205357
|
|
|
205300
|
-
const timeItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
205358
|
+
const timeItem = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-99def2f8"]]);
|
|
205301
205359
|
|
|
205302
205360
|
const timeItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
205303
205361
|
__proto__: null,
|
|
@@ -205362,7 +205420,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
205362
205420
|
|
|
205363
205421
|
/* unplugin-vue-components disabled */
|
|
205364
205422
|
|
|
205365
|
-
const timePickerItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-
|
|
205423
|
+
const timePickerItem = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-458f167a"]]);
|
|
205366
205424
|
|
|
205367
205425
|
const timePickerItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
205368
205426
|
__proto__: null,
|
|
@@ -205855,7 +205913,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
205855
205913
|
|
|
205856
205914
|
/* unplugin-vue-components disabled */
|
|
205857
205915
|
|
|
205858
|
-
const uploadItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-
|
|
205916
|
+
const uploadItem = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-fab47ad8"]]);
|
|
205859
205917
|
|
|
205860
205918
|
const uploadItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
205861
205919
|
__proto__: null,
|
|
@@ -206085,7 +206143,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
206085
206143
|
loadComponent();
|
|
206086
206144
|
});
|
|
206087
206145
|
watch(
|
|
206088
|
-
() =>
|
|
206146
|
+
() => props.field.preps?.compName,
|
|
206089
206147
|
() => {
|
|
206090
206148
|
loadComponent();
|
|
206091
206149
|
},
|
|
@@ -206185,7 +206243,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
206185
206243
|
|
|
206186
206244
|
/* unplugin-vue-components disabled */
|
|
206187
206245
|
|
|
206188
|
-
const viewMarkdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
206246
|
+
const viewMarkdownItem = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-2ee361a9"]]);
|
|
206189
206247
|
|
|
206190
206248
|
const viewMarkdownItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
206191
206249
|
__proto__: null,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3404,7 +3404,7 @@ export declare interface RelationDetail {
|
|
|
3404
3404
|
/**
|
|
3405
3405
|
* 控制条件
|
|
3406
3406
|
*/
|
|
3407
|
-
controlCondition: string;
|
|
3407
|
+
controlCondition: "eqConditionDataLinkage" | "asParamDataLinkage" | "eqDisable" | "eqEditable" | "eqHide" | "eqVisible" | "assignValue" | "changeType" | string;
|
|
3408
3408
|
/**
|
|
3409
3409
|
* 关联字段
|
|
3410
3410
|
*/
|
|
@@ -3417,14 +3417,22 @@ export declare interface RelationDetail {
|
|
|
3417
3417
|
* 匹配字段名称
|
|
3418
3418
|
*/
|
|
3419
3419
|
matchFieldName: string;
|
|
3420
|
+
/**
|
|
3421
|
+
* 匹配字段值
|
|
3422
|
+
*/
|
|
3423
|
+
matchFieldValue: Array<string> | string;
|
|
3420
3424
|
/**
|
|
3421
3425
|
* 关联参数
|
|
3422
3426
|
*/
|
|
3423
|
-
params: RedirectParams
|
|
3427
|
+
params: RedirectParams;
|
|
3428
|
+
/**
|
|
3429
|
+
* 关联静态数据,根据不同类型赋值
|
|
3430
|
+
*/
|
|
3431
|
+
staticDatas: SelectOption[] | any;
|
|
3424
3432
|
/**
|
|
3425
|
-
*
|
|
3433
|
+
* 多次事件是否 working
|
|
3426
3434
|
*/
|
|
3427
|
-
|
|
3435
|
+
isWorking: boolean;
|
|
3428
3436
|
}
|
|
3429
3437
|
|
|
3430
3438
|
/**
|
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.
|
|
5
|
+
"version": "2.8.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
|
|
8
8
|
"keywords": [
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@types/jquery": "^3.5.32",
|
|
103
|
-
"@types/node": "^24.
|
|
103
|
+
"@types/node": "^24.3.0",
|
|
104
104
|
"@types/prismjs": "^1.26.5",
|
|
105
105
|
"@types/sortablejs": "^1.15.8",
|
|
106
106
|
"@types/uuid": "^10.0.0",
|