star-horse-lowcode 2.8.10 → 2.8.12
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 +2 -1
- package/dist/assets/index.css +1 -1
- package/dist/index.es.js +233 -234
- package/dist/types/index.d.ts +85 -84
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -64041,6 +64041,25 @@ const zh_CN = {
|
|
|
64041
64041
|
"comp.treeMenu": "树形菜单",
|
|
64042
64042
|
"comp.addData": "添加数据",
|
|
64043
64043
|
"comp.deleteData": "删除数据",
|
|
64044
|
+
/**
|
|
64045
|
+
* JSON Editor Strings
|
|
64046
|
+
*/
|
|
64047
|
+
"jsonEditor.validationError": "JSON格式错误",
|
|
64048
|
+
"jsonEditor.parseError": "JSON解析错误",
|
|
64049
|
+
"jsonEditor.compact": "紧凑",
|
|
64050
|
+
"jsonEditor.form": "表单",
|
|
64051
|
+
"jsonEditor.text": "文本",
|
|
64052
|
+
"jsonEditor.tree": "树形",
|
|
64053
|
+
"jsonEditor.undo": "撤销",
|
|
64054
|
+
"jsonEditor.redo": "重做",
|
|
64055
|
+
"jsonEditor.fix": "修复",
|
|
64056
|
+
"jsonEditor.autoFix": "自动修复",
|
|
64057
|
+
"jsonEditor.filter": "过滤",
|
|
64058
|
+
"jsonEditor.sort": "排序",
|
|
64059
|
+
"jsonEditor.transform": "转换",
|
|
64060
|
+
"jsonEditor.query": "查询",
|
|
64061
|
+
"jsonEditor.structure": "结构",
|
|
64062
|
+
"jsonEditor.preview": "预览",
|
|
64044
64063
|
"comp.underDevelopment": "功能开发中,现在点击提交按钮导出所有数据",
|
|
64045
64064
|
/**
|
|
64046
64065
|
* Additional Component Strings
|
|
@@ -64573,6 +64592,25 @@ const en_US = {
|
|
|
64573
64592
|
"comp.addData": "Add Data",
|
|
64574
64593
|
"comp.deleteData": "Delete Data",
|
|
64575
64594
|
"comp.underDevelopment": "Function under development, now click submit button to export all data",
|
|
64595
|
+
/**
|
|
64596
|
+
* JSON Editor Strings
|
|
64597
|
+
*/
|
|
64598
|
+
"jsonEditor.validationError": "JSON validation error",
|
|
64599
|
+
"jsonEditor.parseError": "JSON parse error",
|
|
64600
|
+
"jsonEditor.compact": "Compact",
|
|
64601
|
+
"jsonEditor.form": "Form",
|
|
64602
|
+
"jsonEditor.text": "Text",
|
|
64603
|
+
"jsonEditor.tree": "Tree",
|
|
64604
|
+
"jsonEditor.undo": "Undo",
|
|
64605
|
+
"jsonEditor.redo": "Redo",
|
|
64606
|
+
"jsonEditor.fix": "Fix",
|
|
64607
|
+
"jsonEditor.autoFix": "Auto fix",
|
|
64608
|
+
"jsonEditor.filter": "Filter",
|
|
64609
|
+
"jsonEditor.sort": "Sort",
|
|
64610
|
+
"jsonEditor.transform": "Transform",
|
|
64611
|
+
"jsonEditor.query": "Query",
|
|
64612
|
+
"jsonEditor.structure": "Structure",
|
|
64613
|
+
"jsonEditor.preview": "Preview",
|
|
64576
64614
|
/**
|
|
64577
64615
|
* Additional Component Strings
|
|
64578
64616
|
*/
|
|
@@ -64737,8 +64775,8 @@ const language$1 = {
|
|
|
64737
64775
|
en_us: en_US
|
|
64738
64776
|
};
|
|
64739
64777
|
const currentLang = window.__starHorseHostLang__ || getLang() || LangType.ZH_CN;
|
|
64740
|
-
currentLang === LangType.EN_US;
|
|
64741
|
-
currentLang === LangType.ZH_CN;
|
|
64778
|
+
const isEn = currentLang === LangType.EN_US;
|
|
64779
|
+
const isZH = currentLang === LangType.ZH_CN;
|
|
64742
64780
|
let langSet = language$1[currentLang];
|
|
64743
64781
|
function i18n(key, ...args) {
|
|
64744
64782
|
const result = langSet[key];
|
|
@@ -73097,8 +73135,8 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
73097
73135
|
cursor: "pointer"
|
|
73098
73136
|
})
|
|
73099
73137
|
]),
|
|
73100
|
-
_:
|
|
73101
|
-
},
|
|
73138
|
+
_: 1
|
|
73139
|
+
}, 8, ["size", "onClick", "title"])
|
|
73102
73140
|
])
|
|
73103
73141
|
]),
|
|
73104
73142
|
footer: withCtx(() => [
|
|
@@ -78138,8 +78176,15 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
78138
78176
|
const formFields = inject("formFields", {});
|
|
78139
78177
|
const loading = ref(null);
|
|
78140
78178
|
const starHorseFormListRef = ref(null);
|
|
78179
|
+
const enterEvent = (event) => {
|
|
78180
|
+
if (event.key === "Enter") {
|
|
78181
|
+
event.preventDefault();
|
|
78182
|
+
mergeData("continue");
|
|
78183
|
+
}
|
|
78184
|
+
};
|
|
78141
78185
|
const handleAddDetails = (row, type) => {
|
|
78142
78186
|
if (props.staticColumn == "Y" && type != 2) {
|
|
78187
|
+
document.addEventListener("keydown", enterEvent);
|
|
78143
78188
|
dynamicHandleAddForm(row, "add");
|
|
78144
78189
|
} else {
|
|
78145
78190
|
dynamicHandleAddRow(row, type);
|
|
@@ -78175,7 +78220,6 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
78175
78220
|
batchArray[index] = Object.assign({}, formData);
|
|
78176
78221
|
}
|
|
78177
78222
|
});
|
|
78178
|
-
console.log(batchArray);
|
|
78179
78223
|
} else {
|
|
78180
78224
|
dataForm.value[props.batchName].push(Object.assign({}, formData));
|
|
78181
78225
|
}
|
|
@@ -78187,6 +78231,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
78187
78231
|
};
|
|
78188
78232
|
const closeAction = () => {
|
|
78189
78233
|
rowDialogVisible.value = false;
|
|
78234
|
+
document.removeEventListener("keydown", enterEvent);
|
|
78190
78235
|
};
|
|
78191
78236
|
const dynamicHandleAddRow = (row, type) => {
|
|
78192
78237
|
if (!dataForm.value[props.batchName]) {
|
|
@@ -78495,6 +78540,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
78495
78540
|
class: "sh-columns",
|
|
78496
78541
|
stripe: true,
|
|
78497
78542
|
virtual: true,
|
|
78543
|
+
"max-height": "400px",
|
|
78498
78544
|
"virtual-scroll-threshold": 10,
|
|
78499
78545
|
"virtual-scroll-options": {
|
|
78500
78546
|
scrollSensitivity: 60,
|
|
@@ -78542,8 +78588,8 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
78542
78588
|
_: 1
|
|
78543
78589
|
})
|
|
78544
78590
|
]),
|
|
78545
|
-
_:
|
|
78546
|
-
},
|
|
78591
|
+
_: 1
|
|
78592
|
+
}, 8, ["onMousedown"])
|
|
78547
78593
|
]),
|
|
78548
78594
|
_: 1
|
|
78549
78595
|
}, 8, ["label"]),
|
|
@@ -78622,7 +78668,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
78622
78668
|
|
|
78623
78669
|
/* unplugin-vue-components disabled */
|
|
78624
78670
|
|
|
78625
|
-
const __unplugin_components_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-
|
|
78671
|
+
const __unplugin_components_0$6 = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-e59cfe57"]]);
|
|
78626
78672
|
|
|
78627
78673
|
const StarHorseFormList = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
78628
78674
|
__proto__: null,
|
|
@@ -124405,17 +124451,12 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
124405
124451
|
props: /* @__PURE__ */ mergeModels({
|
|
124406
124452
|
options: { type: Object },
|
|
124407
124453
|
currentMode: {
|
|
124408
|
-
type:
|
|
124409
|
-
default: "
|
|
124454
|
+
type: Object,
|
|
124455
|
+
default: "text"
|
|
124410
124456
|
},
|
|
124411
124457
|
modeList: {
|
|
124412
124458
|
type: Array,
|
|
124413
|
-
default: () => ["tree", "
|
|
124414
|
-
},
|
|
124415
|
-
// en, es zh-CN, pt-BR, tr, ja, fr-FR, de, ru, ko
|
|
124416
|
-
language: {
|
|
124417
|
-
type: String,
|
|
124418
|
-
default: "zh-CN"
|
|
124459
|
+
default: () => ["tree", "text", "form", "preview"]
|
|
124419
124460
|
}
|
|
124420
124461
|
}, {
|
|
124421
124462
|
"modelValue": {
|
|
@@ -124425,6 +124466,11 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
124425
124466
|
}),
|
|
124426
124467
|
emits: ["update:modelValue"],
|
|
124427
124468
|
setup(__props, { expose: __expose }) {
|
|
124469
|
+
const editorLanguage = computed(() => {
|
|
124470
|
+
if (isEn) return "en";
|
|
124471
|
+
if (isZH) return "zh-CN";
|
|
124472
|
+
return "en";
|
|
124473
|
+
});
|
|
124428
124474
|
const json = useModel(__props, "modelValue");
|
|
124429
124475
|
const queryLanguages = [
|
|
124430
124476
|
"javascript",
|
|
@@ -124450,19 +124496,21 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
124450
124496
|
return openBlock(), createBlock(unref(N$2), {
|
|
124451
124497
|
ref_key: "editor",
|
|
124452
124498
|
ref: editor,
|
|
124453
|
-
mode:
|
|
124499
|
+
mode: __props.currentMode,
|
|
124500
|
+
language: editorLanguage.value,
|
|
124501
|
+
modes: __props.modeList,
|
|
124454
124502
|
json: json.value,
|
|
124455
124503
|
"onUpdate:json": _cache[0] || (_cache[0] = ($event) => json.value = $event),
|
|
124456
124504
|
queryLanguagesIds: queryLanguages,
|
|
124457
124505
|
class: "json-editor"
|
|
124458
|
-
}, null, 8, ["json"]);
|
|
124506
|
+
}, null, 8, ["mode", "language", "modes", "json"]);
|
|
124459
124507
|
};
|
|
124460
124508
|
}
|
|
124461
124509
|
});
|
|
124462
124510
|
|
|
124463
124511
|
/* unplugin-vue-components disabled */
|
|
124464
124512
|
|
|
124465
|
-
const __unplugin_components_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-
|
|
124513
|
+
const __unplugin_components_0$5 = /* @__PURE__ */ _export_sfc(_sfc_main$1w, [["__scopeId", "data-v-f67c3446"]]);
|
|
124466
124514
|
|
|
124467
124515
|
const StarHorseJsonEditor = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
124468
124516
|
__proto__: null,
|
|
@@ -124865,8 +124913,8 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
124865
124913
|
}, null, 8, ["value", "label"]);
|
|
124866
124914
|
}), 128))
|
|
124867
124915
|
]),
|
|
124868
|
-
_:
|
|
124869
|
-
},
|
|
124916
|
+
_: 1
|
|
124917
|
+
}, 8, ["size", "modelValue", "onUpdate:modelValue"]),
|
|
124870
124918
|
_cache[3] || (_cache[3] = createTextVNode(" ", -1))
|
|
124871
124919
|
], 64)) : createCommentVNode("", true),
|
|
124872
124920
|
createVNode(_component_star_horse_item, {
|
|
@@ -124906,8 +124954,8 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
124906
124954
|
}, null, 8, ["value", "label"]);
|
|
124907
124955
|
}), 128))
|
|
124908
124956
|
]),
|
|
124909
|
-
_:
|
|
124910
|
-
},
|
|
124957
|
+
_: 1
|
|
124958
|
+
}, 8, ["size", "modelValue", "onUpdate:modelValue"]),
|
|
124911
124959
|
_cache[4] || (_cache[4] = createTextVNode(" ", -1))
|
|
124912
124960
|
], 64)) : createCommentVNode("", true),
|
|
124913
124961
|
createVNode(_component_star_horse_item, {
|
|
@@ -130010,7 +130058,6 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
130010
130058
|
return (_ctx, _cache) => {
|
|
130011
130059
|
const _component_help = _sfc_main$1P;
|
|
130012
130060
|
const _component_draggable = resolveComponent("draggable");
|
|
130013
|
-
const _component_el_scrollbar = ElScrollbar;
|
|
130014
130061
|
const _component_el_card = ElCard;
|
|
130015
130062
|
const _component_group_container = __unplugin_components_1;
|
|
130016
130063
|
return openBlock(), createBlock(_component_group_container, {
|
|
@@ -130068,48 +130115,40 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
130068
130115
|
}, null, 40, ["field", "isDesign", "showFormItem", "disabled", "formInfo", "parentField", "formData"]))
|
|
130069
130116
|
], 4)
|
|
130070
130117
|
]),
|
|
130071
|
-
_:
|
|
130072
|
-
},
|
|
130118
|
+
_: 1
|
|
130119
|
+
}, 8, ["onAdd", "onDragover", "item-key", "modelValue", "onUpdate:modelValue"])
|
|
130073
130120
|
], 2)
|
|
130074
130121
|
])
|
|
130075
130122
|
]),
|
|
130076
130123
|
default: withCtx(() => [
|
|
130077
|
-
createVNode(
|
|
130078
|
-
|
|
130079
|
-
|
|
130124
|
+
createVNode(_component_draggable, {
|
|
130125
|
+
onAdd: (evt) => onDragAdd(evt, adata["items"]),
|
|
130126
|
+
onDragover: ($event) => checkItem(adata, "body"),
|
|
130127
|
+
class: normalizeClass(["card-design", { "dragging-area": isDragging.value }]),
|
|
130128
|
+
group: "starHorseGroup",
|
|
130129
|
+
animation: "100",
|
|
130130
|
+
"item-key": unref(uuid)(),
|
|
130131
|
+
ghostClass: "ghost",
|
|
130132
|
+
modelValue: adata["items"],
|
|
130133
|
+
"onUpdate:modelValue": ($event) => adata["items"] = $event
|
|
130080
130134
|
}, {
|
|
130081
|
-
|
|
130082
|
-
|
|
130083
|
-
|
|
130084
|
-
|
|
130085
|
-
|
|
130086
|
-
|
|
130087
|
-
|
|
130088
|
-
|
|
130089
|
-
|
|
130090
|
-
|
|
130091
|
-
|
|
130092
|
-
|
|
130093
|
-
|
|
130094
|
-
|
|
130095
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(itemCheck)(item)), {
|
|
130096
|
-
key: item.id,
|
|
130097
|
-
field: item,
|
|
130098
|
-
isDesign: __props.isDesign,
|
|
130099
|
-
disabled: __props.disabled,
|
|
130100
|
-
showFormItem: __props.showFormItem,
|
|
130101
|
-
formInfo: __props.formInfo,
|
|
130102
|
-
parentField: __props.field,
|
|
130103
|
-
formData: formData.value,
|
|
130104
|
-
"onUpdate:formData": _cache[1] || (_cache[1] = ($event) => formData.value = $event)
|
|
130105
|
-
}, null, 40, ["field", "isDesign", "disabled", "showFormItem", "formInfo", "parentField", "formData"]))
|
|
130106
|
-
])
|
|
130107
|
-
]),
|
|
130108
|
-
_: 2
|
|
130109
|
-
}, 1032, ["onAdd", "onDragover", "item-key", "modelValue", "onUpdate:modelValue"])
|
|
130135
|
+
item: withCtx(({ element: item }) => [
|
|
130136
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
130137
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(itemCheck)(item)), {
|
|
130138
|
+
key: item.id,
|
|
130139
|
+
field: item,
|
|
130140
|
+
isDesign: __props.isDesign,
|
|
130141
|
+
disabled: __props.disabled,
|
|
130142
|
+
showFormItem: __props.showFormItem,
|
|
130143
|
+
formInfo: __props.formInfo,
|
|
130144
|
+
parentField: __props.field,
|
|
130145
|
+
formData: formData.value,
|
|
130146
|
+
"onUpdate:formData": _cache[1] || (_cache[1] = ($event) => formData.value = $event)
|
|
130147
|
+
}, null, 40, ["field", "isDesign", "disabled", "showFormItem", "formInfo", "parentField", "formData"]))
|
|
130148
|
+
])
|
|
130110
130149
|
]),
|
|
130111
|
-
_:
|
|
130112
|
-
},
|
|
130150
|
+
_: 1
|
|
130151
|
+
}, 8, ["onAdd", "onDragover", "class", "item-key", "modelValue", "onUpdate:modelValue"])
|
|
130113
130152
|
]),
|
|
130114
130153
|
_: 2
|
|
130115
130154
|
}, 1032, ["shadow"]);
|
|
@@ -130190,7 +130229,6 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
130190
130229
|
);
|
|
130191
130230
|
return (_ctx, _cache) => {
|
|
130192
130231
|
const _component_draggable = resolveComponent("draggable");
|
|
130193
|
-
const _component_el_scrollbar = ElScrollbar;
|
|
130194
130232
|
const _component_el_collapse_item = ElCollapseItem;
|
|
130195
130233
|
const _component_el_collapse = ElCollapse;
|
|
130196
130234
|
const _component_group_container = __unplugin_components_1;
|
|
@@ -130220,41 +130258,33 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
130220
130258
|
])
|
|
130221
130259
|
]),
|
|
130222
130260
|
default: withCtx(() => [
|
|
130223
|
-
createVNode(
|
|
130224
|
-
|
|
130225
|
-
|
|
130261
|
+
createVNode(_component_draggable, {
|
|
130262
|
+
onAdd: (evt) => onDragAdd(evt, adata["items"]),
|
|
130263
|
+
onDragover: ($event) => checkItem(adata),
|
|
130264
|
+
class: normalizeClass(["card-design", { "dragging-area": isDragging.value }]),
|
|
130265
|
+
group: "starHorseGroup",
|
|
130266
|
+
animation: "100",
|
|
130267
|
+
"item-key": unref(uuid)(),
|
|
130268
|
+
ghostClass: "ghost",
|
|
130269
|
+
list: adata["items"]
|
|
130226
130270
|
}, {
|
|
130227
|
-
|
|
130228
|
-
|
|
130229
|
-
|
|
130230
|
-
|
|
130231
|
-
|
|
130232
|
-
|
|
130233
|
-
|
|
130234
|
-
|
|
130235
|
-
|
|
130236
|
-
|
|
130237
|
-
|
|
130238
|
-
|
|
130239
|
-
|
|
130240
|
-
|
|
130241
|
-
key: data.id,
|
|
130242
|
-
field: data,
|
|
130243
|
-
isDesign: __props.isDesign,
|
|
130244
|
-
disabled: __props.disabled,
|
|
130245
|
-
showFormItem: __props.showFormItem,
|
|
130246
|
-
formInfo: __props.formInfo,
|
|
130247
|
-
parentField: __props.field,
|
|
130248
|
-
formData: formData.value,
|
|
130249
|
-
"onUpdate:formData": _cache[0] || (_cache[0] = ($event) => formData.value = $event)
|
|
130250
|
-
}, null, 40, ["field", "isDesign", "disabled", "showFormItem", "formInfo", "parentField", "formData"]))
|
|
130251
|
-
])
|
|
130252
|
-
]),
|
|
130253
|
-
_: 2
|
|
130254
|
-
}, 1032, ["onAdd", "onDragover", "item-key", "list"])
|
|
130271
|
+
item: withCtx(({ element: data }) => [
|
|
130272
|
+
createElementVNode("div", _hoisted_2$u, [
|
|
130273
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(itemCheck)(data)), {
|
|
130274
|
+
key: data.id,
|
|
130275
|
+
field: data,
|
|
130276
|
+
isDesign: __props.isDesign,
|
|
130277
|
+
disabled: __props.disabled,
|
|
130278
|
+
showFormItem: __props.showFormItem,
|
|
130279
|
+
formInfo: __props.formInfo,
|
|
130280
|
+
parentField: __props.field,
|
|
130281
|
+
formData: formData.value,
|
|
130282
|
+
"onUpdate:formData": _cache[0] || (_cache[0] = ($event) => formData.value = $event)
|
|
130283
|
+
}, null, 40, ["field", "isDesign", "disabled", "showFormItem", "formInfo", "parentField", "formData"]))
|
|
130284
|
+
])
|
|
130255
130285
|
]),
|
|
130256
|
-
_:
|
|
130257
|
-
},
|
|
130286
|
+
_: 1
|
|
130287
|
+
}, 8, ["onAdd", "onDragover", "class", "item-key", "list"])
|
|
130258
130288
|
]),
|
|
130259
130289
|
_: 2
|
|
130260
130290
|
}, 1032, ["name"]);
|
|
@@ -130271,7 +130301,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
130271
130301
|
|
|
130272
130302
|
/* unplugin-vue-components disabled */
|
|
130273
130303
|
|
|
130274
|
-
const collapseContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-
|
|
130304
|
+
const collapseContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-2a746e73"]]);
|
|
130275
130305
|
|
|
130276
130306
|
const collapseContainer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
130277
130307
|
__proto__: null,
|
|
@@ -130631,7 +130661,6 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
130631
130661
|
};
|
|
130632
130662
|
return (_ctx, _cache) => {
|
|
130633
130663
|
const _component_draggable = resolveComponent("draggable");
|
|
130634
|
-
const _component_el_scrollbar = ElScrollbar;
|
|
130635
130664
|
const _component_el_tab_pane = ElTabPane;
|
|
130636
130665
|
const _component_el_tabs = ElTabs;
|
|
130637
130666
|
const _component_group_container = __unplugin_components_1;
|
|
@@ -130667,44 +130696,36 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
130667
130696
|
name: adata["tabName"]
|
|
130668
130697
|
}, {
|
|
130669
130698
|
default: withCtx(() => [
|
|
130670
|
-
createVNode(
|
|
130671
|
-
|
|
130672
|
-
|
|
130699
|
+
createVNode(_component_draggable, {
|
|
130700
|
+
onAdd: (evt) => onDragAdd(evt, adata["items"]),
|
|
130701
|
+
onDragover: ($event) => checkItem(adata),
|
|
130702
|
+
class: normalizeClass(["tab-design", { "dragging-area": isDragging.value }]),
|
|
130703
|
+
group: "starHorseGroup",
|
|
130704
|
+
animation: "100",
|
|
130705
|
+
"item-key": unref(uuid)(),
|
|
130706
|
+
ghostClass: "ghost",
|
|
130707
|
+
list: adata["items"]
|
|
130673
130708
|
}, {
|
|
130674
|
-
|
|
130675
|
-
|
|
130676
|
-
|
|
130677
|
-
|
|
130678
|
-
|
|
130679
|
-
|
|
130680
|
-
|
|
130681
|
-
|
|
130682
|
-
|
|
130683
|
-
|
|
130684
|
-
|
|
130685
|
-
|
|
130686
|
-
|
|
130687
|
-
|
|
130688
|
-
|
|
130689
|
-
|
|
130690
|
-
|
|
130691
|
-
key: data.id,
|
|
130692
|
-
field: data,
|
|
130693
|
-
isDesign: __props.isDesign,
|
|
130694
|
-
disabled: __props.disabled,
|
|
130695
|
-
showFormItem: __props.showFormItem,
|
|
130696
|
-
formInfo: __props.formInfo,
|
|
130697
|
-
parentField: __props.field,
|
|
130698
|
-
formData: formData.value,
|
|
130699
|
-
"onUpdate:formData": _cache[0] || (_cache[0] = ($event) => formData.value = $event)
|
|
130700
|
-
}, null, 40, ["field", "isDesign", "disabled", "showFormItem", "formInfo", "parentField", "formData"]))
|
|
130701
|
-
], 4)
|
|
130702
|
-
]),
|
|
130703
|
-
_: 2
|
|
130704
|
-
}, 1032, ["onAdd", "onDragover", "item-key", "list"])
|
|
130709
|
+
item: withCtx(({ element: data }) => [
|
|
130710
|
+
createElementVNode("div", {
|
|
130711
|
+
class: "comp-item",
|
|
130712
|
+
style: normalizeStyle({ marginTop: isContainer(data) ? "25px" : "10px" })
|
|
130713
|
+
}, [
|
|
130714
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(itemCheck)(data)), {
|
|
130715
|
+
key: data.id,
|
|
130716
|
+
field: data,
|
|
130717
|
+
isDesign: __props.isDesign,
|
|
130718
|
+
disabled: __props.disabled,
|
|
130719
|
+
showFormItem: __props.showFormItem,
|
|
130720
|
+
formInfo: __props.formInfo,
|
|
130721
|
+
parentField: __props.field,
|
|
130722
|
+
formData: formData.value,
|
|
130723
|
+
"onUpdate:formData": _cache[0] || (_cache[0] = ($event) => formData.value = $event)
|
|
130724
|
+
}, null, 40, ["field", "isDesign", "disabled", "showFormItem", "formInfo", "parentField", "formData"]))
|
|
130725
|
+
], 4)
|
|
130705
130726
|
]),
|
|
130706
|
-
_:
|
|
130707
|
-
},
|
|
130727
|
+
_: 1
|
|
130728
|
+
}, 8, ["onAdd", "onDragover", "class", "item-key", "list"])
|
|
130708
130729
|
]),
|
|
130709
130730
|
_: 2
|
|
130710
130731
|
}, 1032, ["label", "name"]);
|
|
@@ -130909,8 +130930,8 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
130909
130930
|
}, null, 40, ["field", "showFormItem", "isDesign", "disabled", "formInfo", "parentField", "formData"]))
|
|
130910
130931
|
])
|
|
130911
130932
|
]),
|
|
130912
|
-
_:
|
|
130913
|
-
},
|
|
130933
|
+
_: 1
|
|
130934
|
+
}, 8, ["onAdd", "item-key", "list"])
|
|
130914
130935
|
], 46, _hoisted_4$a);
|
|
130915
130936
|
}), 256))
|
|
130916
130937
|
])
|
|
@@ -249848,76 +249869,68 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
249848
249869
|
const _component_star_horse_icon = __unplugin_components_0$a;
|
|
249849
249870
|
const _component_el_collapse_item = ElCollapseItem;
|
|
249850
249871
|
const _component_el_collapse = ElCollapse;
|
|
249851
|
-
|
|
249852
|
-
return _ctx.item.collapseList?.length > 0 ? (openBlock(), createBlock(_component_el_scrollbar, {
|
|
249872
|
+
return _ctx.item.collapseList?.length > 0 ? (openBlock(), createBlock(_component_el_collapse, mergeProps({
|
|
249853
249873
|
key: 0,
|
|
249854
|
-
|
|
249855
|
-
|
|
249874
|
+
modelValue: _ctx.item.fieldName,
|
|
249875
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.item.fieldName = $event)
|
|
249876
|
+
}, unref(prepsFilter)(_ctx.item.preps), {
|
|
249877
|
+
onChange: _cache[1] || (_cache[1] = (data) => _ctx.item.actions?.["change"]?.(data))
|
|
249878
|
+
}), {
|
|
249856
249879
|
default: withCtx(() => [
|
|
249857
|
-
|
|
249858
|
-
|
|
249859
|
-
|
|
249860
|
-
|
|
249861
|
-
|
|
249862
|
-
|
|
249863
|
-
|
|
249864
|
-
|
|
249865
|
-
|
|
249866
|
-
|
|
249867
|
-
|
|
249868
|
-
|
|
249869
|
-
|
|
249870
|
-
|
|
249871
|
-
|
|
249872
|
-
|
|
249873
|
-
createElementVNode("div", _hoisted_1$6, [
|
|
249874
|
-
createElementVNode("div", _hoisted_2$4, [
|
|
249875
|
-
createTextVNode(toDisplayString(collapseItem.title) + " ", 1),
|
|
249876
|
-
collapseItem.helpMsg ? (openBlock(), createBlock(_component_help, {
|
|
249877
|
-
key: 0,
|
|
249878
|
-
message: collapseItem.helpMsg
|
|
249879
|
-
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
249880
|
-
]),
|
|
249881
|
-
collapseItem.icon ? (openBlock(), createBlock(_component_star_horse_icon, {
|
|
249882
|
-
key: 0,
|
|
249883
|
-
"icon-class": collapseItem.icon
|
|
249884
|
-
}, null, 8, ["icon-class"])) : createCommentVNode("", true)
|
|
249885
|
-
])
|
|
249886
|
-
]),
|
|
249887
|
-
default: withCtx(() => [
|
|
249888
|
-
createVNode(_sfc_main$1y, {
|
|
249889
|
-
source: _ctx.source,
|
|
249890
|
-
compUrl: _ctx.compUrl,
|
|
249891
|
-
compSize: _ctx.compSize,
|
|
249892
|
-
onAddRow: addRow,
|
|
249893
|
-
onRemoveRow: removeRow,
|
|
249894
|
-
objectName: collapseItem.objectName,
|
|
249895
|
-
dataForm: unref(getFormData)(collapseItem, dataForm.value, _ctx.propPrefix, _ctx.dataIndex, key),
|
|
249896
|
-
dataIndex: unref(getDataIndex)(collapseItem, _ctx.propPrefix, _ctx.dataIndex, key),
|
|
249897
|
-
propPrefix: unref(getPrefix)(collapseItem, _ctx.propPrefix, _ctx.dataIndex, key),
|
|
249898
|
-
fieldList: collapseItem,
|
|
249899
|
-
rules: _ctx.rules,
|
|
249900
|
-
subFormFlag: collapseItem.subFormFlag,
|
|
249901
|
-
primaryKey: _ctx.primaryKey
|
|
249902
|
-
}, null, 8, ["source", "compUrl", "compSize", "objectName", "dataForm", "dataIndex", "propPrefix", "fieldList", "rules", "subFormFlag", "primaryKey"])
|
|
249880
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.item.collapseList, (collapseItem, key) => {
|
|
249881
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
249882
|
+
Object.keys(collapseItem).length > 0 ? (openBlock(), createBlock(_component_el_collapse_item, {
|
|
249883
|
+
key: 0,
|
|
249884
|
+
name: collapseItem.tabName || key,
|
|
249885
|
+
disabled: collapseItem.disabled,
|
|
249886
|
+
index: unref(checkObject)(dataForm.value, collapseItem, key, _ctx.dataIndex, _ctx.propPrefix)
|
|
249887
|
+
}, {
|
|
249888
|
+
title: withCtx(() => [
|
|
249889
|
+
createElementVNode("div", _hoisted_1$6, [
|
|
249890
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
249891
|
+
createTextVNode(toDisplayString(collapseItem.title) + " ", 1),
|
|
249892
|
+
collapseItem.helpMsg ? (openBlock(), createBlock(_component_help, {
|
|
249893
|
+
key: 0,
|
|
249894
|
+
message: collapseItem.helpMsg
|
|
249895
|
+
}, null, 8, ["message"])) : createCommentVNode("", true)
|
|
249903
249896
|
]),
|
|
249904
|
-
|
|
249905
|
-
|
|
249906
|
-
|
|
249907
|
-
|
|
249908
|
-
|
|
249909
|
-
|
|
249910
|
-
|
|
249897
|
+
collapseItem.icon ? (openBlock(), createBlock(_component_star_horse_icon, {
|
|
249898
|
+
key: 0,
|
|
249899
|
+
"icon-class": collapseItem.icon
|
|
249900
|
+
}, null, 8, ["icon-class"])) : createCommentVNode("", true)
|
|
249901
|
+
])
|
|
249902
|
+
]),
|
|
249903
|
+
default: withCtx(() => [
|
|
249904
|
+
createVNode(_sfc_main$1y, {
|
|
249905
|
+
source: _ctx.source,
|
|
249906
|
+
compUrl: _ctx.compUrl,
|
|
249907
|
+
compSize: _ctx.compSize,
|
|
249908
|
+
onAddRow: addRow,
|
|
249909
|
+
onRemoveRow: removeRow,
|
|
249910
|
+
objectName: collapseItem.objectName,
|
|
249911
|
+
dataForm: unref(getFormData)(collapseItem, dataForm.value, _ctx.propPrefix, _ctx.dataIndex, key),
|
|
249912
|
+
dataIndex: unref(getDataIndex)(collapseItem, _ctx.propPrefix, _ctx.dataIndex, key),
|
|
249913
|
+
propPrefix: unref(getPrefix)(collapseItem, _ctx.propPrefix, _ctx.dataIndex, key),
|
|
249914
|
+
fieldList: collapseItem,
|
|
249915
|
+
rules: _ctx.rules,
|
|
249916
|
+
subFormFlag: collapseItem.subFormFlag,
|
|
249917
|
+
primaryKey: _ctx.primaryKey
|
|
249918
|
+
}, null, 8, ["source", "compUrl", "compSize", "objectName", "dataForm", "dataIndex", "propPrefix", "fieldList", "rules", "subFormFlag", "primaryKey"])
|
|
249919
|
+
]),
|
|
249920
|
+
_: 2
|
|
249921
|
+
}, 1032, ["name", "disabled", "index"])) : createCommentVNode("", true)
|
|
249922
|
+
], 64);
|
|
249923
|
+
}), 256))
|
|
249911
249924
|
]),
|
|
249912
249925
|
_: 1
|
|
249913
|
-
})) : createCommentVNode("", true);
|
|
249926
|
+
}, 16, ["modelValue"])) : createCommentVNode("", true);
|
|
249914
249927
|
};
|
|
249915
249928
|
}
|
|
249916
249929
|
});
|
|
249917
249930
|
|
|
249918
249931
|
/* unplugin-vue-components disabled */
|
|
249919
249932
|
|
|
249920
|
-
const collapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
249933
|
+
const collapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b3a2b996"]]);
|
|
249921
249934
|
|
|
249922
249935
|
const collapseItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
249923
249936
|
__proto__: null,
|
|
@@ -250136,7 +250149,6 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
250136
250149
|
return (_ctx, _cache) => {
|
|
250137
250150
|
const _component_star_horse_icon = __unplugin_components_0$a;
|
|
250138
250151
|
const _component_star_horse_form_item = _sfc_main$1y;
|
|
250139
|
-
const _component_el_scrollbar = ElScrollbar;
|
|
250140
250152
|
const _component_star_horse_form_table = _sfc_main$1A;
|
|
250141
250153
|
const _component_el_tab_pane = ElTabPane;
|
|
250142
250154
|
return __props.item["disVisible"] ?? Object.keys(__props.item).length > 0 ? (openBlock(), createBlock(_component_el_tab_pane, {
|
|
@@ -250144,7 +250156,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
250144
250156
|
label: __props.item["title"],
|
|
250145
250157
|
name: __props.item.tabName || "tab" + __props.itemKey,
|
|
250146
250158
|
disabled: __props.item.disabled,
|
|
250147
|
-
class: "h-full flex flex-col"
|
|
250159
|
+
class: "h-full flex flex-col w-[99%] mx-auto"
|
|
250148
250160
|
}, {
|
|
250149
250161
|
label: withCtx(() => [
|
|
250150
250162
|
createElementVNode("div", _hoisted_1$4, [
|
|
@@ -250156,29 +250168,22 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
250156
250168
|
])
|
|
250157
250169
|
]),
|
|
250158
250170
|
default: withCtx(() => [
|
|
250159
|
-
__props.parentType == "tab" && __props.item.tableFlag != "Y" || __props.item.formFlag == "Y" ? (openBlock(), createBlock(
|
|
250171
|
+
__props.parentType == "tab" && __props.item.tableFlag != "Y" || __props.item.formFlag == "Y" ? (openBlock(), createBlock(_component_star_horse_form_item, {
|
|
250160
250172
|
key: 0,
|
|
250161
|
-
|
|
250162
|
-
|
|
250163
|
-
|
|
250164
|
-
|
|
250165
|
-
|
|
250166
|
-
|
|
250167
|
-
|
|
250168
|
-
|
|
250169
|
-
|
|
250170
|
-
|
|
250171
|
-
|
|
250172
|
-
|
|
250173
|
-
|
|
250174
|
-
|
|
250175
|
-
rules: __props.rules,
|
|
250176
|
-
subFormFlag: __props.item.subFormFlag,
|
|
250177
|
-
primaryKey: __props.item.primaryKey
|
|
250178
|
-
}, null, 8, ["source", "compUrl", "compSize", "objectName", "dataForm", "dataIndex", "propPrefix", "fieldList", "rules", "subFormFlag", "primaryKey"])
|
|
250179
|
-
]),
|
|
250180
|
-
_: 1
|
|
250181
|
-
})) : __props.parentType == "batch" || __props.item.tableFlag == "Y" ? (openBlock(), createBlock(_component_star_horse_form_table, {
|
|
250173
|
+
source: __props.source,
|
|
250174
|
+
compUrl: __props.compUrl,
|
|
250175
|
+
compSize: __props.compSize,
|
|
250176
|
+
onAddRow: addRow,
|
|
250177
|
+
onRemoveRow: removeRow,
|
|
250178
|
+
objectName: __props.item.objectName,
|
|
250179
|
+
dataForm: unref(getFormData)(__props.item, dataForm.value, __props.propPrefix, __props.dataIndex, __props.itemKey),
|
|
250180
|
+
dataIndex: unref(getDataIndex)(__props.item, __props.propPrefix, __props.dataIndex, __props.itemKey),
|
|
250181
|
+
propPrefix: unref(getPrefix)(__props.item, __props.propPrefix, __props.dataIndex, __props.itemKey),
|
|
250182
|
+
fieldList: __props.item,
|
|
250183
|
+
rules: __props.rules,
|
|
250184
|
+
subFormFlag: __props.item.subFormFlag,
|
|
250185
|
+
primaryKey: __props.item.primaryKey
|
|
250186
|
+
}, null, 8, ["source", "compUrl", "compSize", "objectName", "dataForm", "dataIndex", "propPrefix", "fieldList", "rules", "subFormFlag", "primaryKey"])) : __props.parentType == "batch" || __props.item.tableFlag == "Y" ? (openBlock(), createBlock(_component_star_horse_form_table, {
|
|
250182
250187
|
key: 1,
|
|
250183
250188
|
size: __props.compSize,
|
|
250184
250189
|
onAddRow: addRow,
|
|
@@ -250197,7 +250202,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
250197
250202
|
|
|
250198
250203
|
/* unplugin-vue-components disabled */
|
|
250199
250204
|
|
|
250200
|
-
const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
250205
|
+
const __unplugin_components_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-31409596"]]);
|
|
250201
250206
|
|
|
250202
250207
|
const tabPanelItem = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
250203
250208
|
__proto__: null,
|
|
@@ -250331,7 +250336,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
250331
250336
|
|
|
250332
250337
|
/* unplugin-vue-components disabled */
|
|
250333
250338
|
|
|
250334
|
-
const tabItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
250339
|
+
const tabItem = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-70d5f20d"]]);
|
|
250335
250340
|
|
|
250336
250341
|
const tabItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
250337
250342
|
__proto__: null,
|
|
@@ -250498,7 +250503,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
250498
250503
|
});
|
|
250499
250504
|
return (_ctx, _cache) => {
|
|
250500
250505
|
const _component_star_horse_data_view_items = _sfc_main$1G;
|
|
250501
|
-
const _component_el_scrollbar = ElScrollbar;
|
|
250502
250506
|
const _component_el_collapse_item = ElCollapseItem;
|
|
250503
250507
|
const _component_el_collapse = ElCollapse;
|
|
250504
250508
|
return __props.item.collapseList?.length > 0 ? (openBlock(), createBlock(_component_el_collapse, {
|
|
@@ -250518,19 +250522,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
250518
250522
|
index: unref(checkObject)(dataForm.value, collapseItem, key, __props.dataIndex, "")
|
|
250519
250523
|
}, {
|
|
250520
250524
|
default: withCtx(() => [
|
|
250521
|
-
createVNode(
|
|
250522
|
-
|
|
250523
|
-
|
|
250524
|
-
|
|
250525
|
-
|
|
250526
|
-
|
|
250527
|
-
|
|
250528
|
-
|
|
250529
|
-
subFormFlag: collapseItem.subFormFlag
|
|
250530
|
-
}, null, 8, ["dataForm", "onUpdate:dataForm", "objectName", "commonFormat", "fieldList", "subFormFlag"])
|
|
250531
|
-
]),
|
|
250532
|
-
_: 2
|
|
250533
|
-
}, 1024)
|
|
250525
|
+
createVNode(_component_star_horse_data_view_items, {
|
|
250526
|
+
dataForm: dataForm.value[collapseItem.objectName],
|
|
250527
|
+
"onUpdate:dataForm": ($event) => dataForm.value[collapseItem.objectName] = $event,
|
|
250528
|
+
objectName: collapseItem.objectName,
|
|
250529
|
+
commonFormat: __props.commonFormat,
|
|
250530
|
+
fieldList: collapseItem,
|
|
250531
|
+
subFormFlag: collapseItem.subFormFlag
|
|
250532
|
+
}, null, 8, ["dataForm", "onUpdate:dataForm", "objectName", "commonFormat", "fieldList", "subFormFlag"])
|
|
250534
250533
|
]),
|
|
250535
250534
|
_: 2
|
|
250536
250535
|
}, 1032, ["title", "name", "index"])) : createCommentVNode("", true)
|
|
@@ -250545,7 +250544,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
250545
250544
|
|
|
250546
250545
|
/* unplugin-vue-components disabled */
|
|
250547
250546
|
|
|
250548
|
-
const viewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
250547
|
+
const viewCollapseItem = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a900b0a4"]]);
|
|
250549
250548
|
|
|
250550
250549
|
const viewCollapseItem$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
250551
250550
|
__proto__: null,
|