@fecp/designer 5.2.8 → 5.2.10
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/es/designer.css +141 -139
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/packages/form/index.vue.mjs +18 -15
- package/es/packages/designer/src/packages/table/queryModule/DynamicModeConfig.vue.mjs +1 -1
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +11 -11
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +4 -2
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/Table.vue.mjs +11 -2
- package/lib/designer.css +141 -139
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/packages/form/index.vue.js +18 -15
- package/lib/packages/designer/src/packages/table/queryModule/DynamicModeConfig.vue.js +1 -1
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +11 -11
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +4 -2
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +1 -1
- package/lib/packages/vue/src/components/table/Table.vue.js +11 -2
- package/package.json +1 -1
|
@@ -120,18 +120,18 @@ const _sfc_main = {
|
|
|
120
120
|
() => editConfigData.value.labelPosition,
|
|
121
121
|
(labelPosition) => {
|
|
122
122
|
const targetHeight = labelPosition === "top" ? 0.75 : 1;
|
|
123
|
-
const fieldTypes = [
|
|
124
|
-
"subTitle",
|
|
125
|
-
"h2",
|
|
126
|
-
"subForm",
|
|
127
|
-
"subTable",
|
|
128
|
-
"approvalHistory",
|
|
129
|
-
"divider"
|
|
130
|
-
];
|
|
131
123
|
layoutData.value.forEach((item) => {
|
|
132
|
-
var _a;
|
|
133
|
-
if (
|
|
134
|
-
item.h =
|
|
124
|
+
var _a, _b, _c;
|
|
125
|
+
if (["subTitle", "h2", "divider"].includes((_a = item.component) == null ? void 0 : _a.fieldType)) {
|
|
126
|
+
item.h = 1 * targetHeight;
|
|
127
|
+
} else if (["subForm", "subTable", "approvalHistory"].includes(
|
|
128
|
+
(_b = item.component) == null ? void 0 : _b.fieldType
|
|
129
|
+
)) {
|
|
130
|
+
if (((_c = item.component) == null ? void 0 : _c.titleMode) == "none") {
|
|
131
|
+
item.h = 2 * targetHeight;
|
|
132
|
+
} else {
|
|
133
|
+
item.h = 3 * targetHeight;
|
|
134
|
+
}
|
|
135
135
|
}
|
|
136
136
|
});
|
|
137
137
|
gridLayout.value.resizeEvent();
|
|
@@ -224,14 +224,17 @@ const _sfc_main = {
|
|
|
224
224
|
} else if (component.fieldType == "subTitle" || component.fieldType == "h2" || component.fieldType == "divider") {
|
|
225
225
|
finalWH = {
|
|
226
226
|
w: editConfigData.value.columns,
|
|
227
|
-
h: 1,
|
|
227
|
+
h: editConfigData.value.labelPosition == "top" ? 0.75 : 1,
|
|
228
228
|
isResizable: false
|
|
229
229
|
};
|
|
230
230
|
} else if (component.fieldType == "subForm" || component.fieldType == "subTable" || component.fieldType == "approvalHistory") {
|
|
231
|
-
finalWH = {
|
|
231
|
+
finalWH = {
|
|
232
|
+
w: editConfigData.value.columns,
|
|
233
|
+
h: editConfigData.value.labelPosition == "top" ? 1.5 : 2
|
|
234
|
+
};
|
|
232
235
|
}
|
|
233
236
|
const colNum = editConfigData.value.columns;
|
|
234
|
-
const rowHeight = 60;
|
|
237
|
+
const rowHeight = editConfigData.value.labelPosition == "top" ? 90 : 60;
|
|
235
238
|
const margin = 0;
|
|
236
239
|
const cellWidth = (rect.width + margin) / colNum;
|
|
237
240
|
const cellHeight = rowHeight + margin;
|
|
@@ -564,7 +567,7 @@ const _sfc_main = {
|
|
|
564
567
|
};
|
|
565
568
|
}
|
|
566
569
|
};
|
|
567
|
-
const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
570
|
+
const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-838fb4f9"]]);
|
|
568
571
|
export {
|
|
569
572
|
formWorkArea as default
|
|
570
573
|
};
|
|
@@ -486,7 +486,7 @@ const _sfc_main = {
|
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
-
const DynamicModeConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
489
|
+
const DynamicModeConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fd2bf737"]]);
|
|
490
490
|
export {
|
|
491
491
|
DynamicModeConfig as default
|
|
492
492
|
};
|
|
@@ -145,7 +145,7 @@ const _sfc_main = {
|
|
|
145
145
|
};
|
|
146
146
|
const dialogTableRef = ref();
|
|
147
147
|
const handleConfirm = () => {
|
|
148
|
-
var _a, _b, _c, _d, _e;
|
|
148
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
149
149
|
const contentSource = (_a = currentDialogConfig.value) == null ? void 0 : _a.contentSource;
|
|
150
150
|
if (contentSource === "table") {
|
|
151
151
|
if (tableSelectionRows.value.length == 0) {
|
|
@@ -182,20 +182,20 @@ const _sfc_main = {
|
|
|
182
182
|
}
|
|
183
183
|
const callbackEventConfig = currentDialogConfig.value.callbackEventConfig;
|
|
184
184
|
if (callbackEventConfig && Object.keys(callbackEventConfig).length > 0 && ((_e = callbackEventConfig == null ? void 0 : callbackEventConfig.next) == null ? void 0 : _e.id) != "end") {
|
|
185
|
-
const fieldsData = dialogTableRef.value.localConfig.fieldsData;
|
|
186
185
|
executeEventFlow({
|
|
187
186
|
eventFlow: callbackEventConfig,
|
|
188
|
-
fields:
|
|
187
|
+
fields: props.fieldsList,
|
|
189
188
|
instance: props.instance,
|
|
190
|
-
localConfig:
|
|
189
|
+
localConfig: ((_g = (_f = props.componentCtx) == null ? void 0 : _f.$) == null ? void 0 : _g.exposed.localConfig.value) || {},
|
|
191
190
|
components: {
|
|
192
|
-
table: {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
191
|
+
// table: {
|
|
192
|
+
// $: {
|
|
193
|
+
// exposed: dialogTableRef.value,
|
|
194
|
+
// },
|
|
195
|
+
// },
|
|
196
|
+
table: props.componentCtx
|
|
197
197
|
},
|
|
198
|
-
row:
|
|
198
|
+
row: props.formData,
|
|
199
199
|
item: {}
|
|
200
200
|
});
|
|
201
201
|
}
|
|
@@ -410,7 +410,7 @@ const _sfc_main = {
|
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
|
-
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
413
|
+
const DialogRenderer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-871f9831"]]);
|
|
414
414
|
export {
|
|
415
415
|
DialogRenderer as default
|
|
416
416
|
};
|
|
@@ -331,7 +331,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
331
331
|
item.h = item.h * 0;
|
|
332
332
|
} else if (!item.fixedH) {
|
|
333
333
|
item.h = item.h * 60;
|
|
334
|
-
} else
|
|
334
|
+
} else if (item.fixedH) {
|
|
335
|
+
item.h = item.h / (localConfig.value.labelPosition == "top" ? 1.5 : 1);
|
|
336
|
+
}
|
|
335
337
|
return item;
|
|
336
338
|
});
|
|
337
339
|
gridLayoutDataConfig.value = gridLayoutData;
|
|
@@ -680,7 +682,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
680
682
|
};
|
|
681
683
|
}
|
|
682
684
|
});
|
|
683
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
685
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a84aa0ec"]]);
|
|
684
686
|
export {
|
|
685
687
|
_Form as default
|
|
686
688
|
};
|
|
@@ -419,7 +419,7 @@ const _sfc_main = {
|
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
422
|
+
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-59950eea"]]);
|
|
423
423
|
export {
|
|
424
424
|
DynamicQuery as default
|
|
425
425
|
};
|
|
@@ -475,6 +475,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
475
475
|
isShow: false
|
|
476
476
|
}))
|
|
477
477
|
];
|
|
478
|
+
localConfig.value.hiddenFields.forEach((item) => {
|
|
479
|
+
if (!hiddenFormData.value[item.fieldName]) {
|
|
480
|
+
hiddenFormData.value[item.fieldName] = item.value;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
478
483
|
initHandleEvent();
|
|
479
484
|
emit("loaded", option);
|
|
480
485
|
} catch (error) {
|
|
@@ -516,6 +521,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
516
521
|
dataSourceManager.value.destroy();
|
|
517
522
|
}
|
|
518
523
|
});
|
|
524
|
+
const setFormData = (data) => {
|
|
525
|
+
Object.assign(hiddenFormData.value, data);
|
|
526
|
+
};
|
|
519
527
|
__expose({
|
|
520
528
|
tableRef,
|
|
521
529
|
refresh,
|
|
@@ -524,7 +532,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
524
532
|
getSelection,
|
|
525
533
|
clearSelection,
|
|
526
534
|
exportData: handleExport,
|
|
527
|
-
localConfig
|
|
535
|
+
localConfig,
|
|
536
|
+
setFormData
|
|
528
537
|
});
|
|
529
538
|
return (_ctx, _cache) => {
|
|
530
539
|
const _component_el_container = ElContainer;
|
|
@@ -631,7 +640,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
631
640
|
};
|
|
632
641
|
}
|
|
633
642
|
});
|
|
634
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
643
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b8d760e0"]]);
|
|
635
644
|
export {
|
|
636
645
|
_Table as default
|
|
637
646
|
};
|