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