@fecp/designer 5.3.16 → 5.3.18
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 +105 -105
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/layout/aside/index.vue.mjs +3 -3
- package/es/packages/designer/src/packages/form/index.vue.mjs +1 -1
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +9 -2
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/Table.vue.mjs +96 -93
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +1 -1
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +1 -1
- package/lib/designer.css +105 -105
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/layout/aside/index.vue.js +2 -2
- package/lib/packages/designer/src/packages/form/index.vue.js +1 -1
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +9 -2
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/table/Table.vue.js +96 -93
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +1 -1
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { computed, ref, createBlock, openBlock, withCtx, createElementVNode, cre
|
|
|
7
7
|
import emitter from "../../packages/utils/eventBus.mjs";
|
|
8
8
|
import { VueDraggable as lo } from "../../../../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types_sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
|
|
9
9
|
import { Calendar as calendar_default, DeleteFilled as delete_filled_default, Hide as hide_default } from "../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.13_typescript@5.7.3_/node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
10
|
-
import { getEditConfigData, setSelectedItem } from "../../packages/utils/common.mjs";
|
|
10
|
+
import { getEditConfigData, setSelectedItem, cloneDeep } from "../../packages/utils/common.mjs";
|
|
11
11
|
import components$1 from "../../packages/table/aside/index.mjs";
|
|
12
12
|
import components from "../../packages/form/aside/index.mjs";
|
|
13
13
|
import FieldRecycleBin from "./fieldRecycleBin.vue.mjs";
|
|
@@ -63,7 +63,7 @@ const _sfc_main = {
|
|
|
63
63
|
});
|
|
64
64
|
function clone(element) {
|
|
65
65
|
return {
|
|
66
|
-
...element,
|
|
66
|
+
...cloneDeep(element),
|
|
67
67
|
id: Date.now(),
|
|
68
68
|
type: "widgets"
|
|
69
69
|
};
|
|
@@ -207,7 +207,7 @@ const _sfc_main = {
|
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
|
-
const LayoutAside = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
210
|
+
const LayoutAside = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9b4f6b03"]]);
|
|
211
211
|
export {
|
|
212
212
|
LayoutAside as default
|
|
213
213
|
};
|
|
@@ -488,7 +488,7 @@ const _sfc_main = {
|
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
|
-
const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
491
|
+
const formWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fce34df4"]]);
|
|
492
492
|
export {
|
|
493
493
|
formWorkArea as default
|
|
494
494
|
};
|
|
@@ -8,8 +8,8 @@ import { Form } from "../forms/form/index.mjs";
|
|
|
8
8
|
import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
|
|
9
9
|
import { calculate } from "../../utils/formulajs/calculate.mjs";
|
|
10
10
|
import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
11
|
-
/* empty css */
|
|
12
11
|
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
15
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -557,6 +557,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
557
557
|
(_a = button.eventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
|
|
558
558
|
);
|
|
559
559
|
};
|
|
560
|
+
const hasSaveButton = () => {
|
|
561
|
+
var _a, _b;
|
|
562
|
+
return (_b = (_a = localConfig.value.pageFooterConfig) == null ? void 0 : _a.actions) == null ? void 0 : _b.some(
|
|
563
|
+
(item) => item.isApproval
|
|
564
|
+
);
|
|
565
|
+
};
|
|
560
566
|
const handleApprovalEvent = () => {
|
|
561
567
|
return new Promise((resolve, reject) => {
|
|
562
568
|
var _a, _b;
|
|
@@ -920,7 +926,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
920
926
|
getFormItemRef,
|
|
921
927
|
formRef,
|
|
922
928
|
localConfig,
|
|
923
|
-
handleApprovalEvent
|
|
929
|
+
handleApprovalEvent,
|
|
930
|
+
hasSaveButton
|
|
924
931
|
});
|
|
925
932
|
return (_ctx, _cache) => {
|
|
926
933
|
const _component_el_form = ElForm;
|
|
@@ -1005,7 +1012,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1005
1012
|
};
|
|
1006
1013
|
}
|
|
1007
1014
|
});
|
|
1008
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1015
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8929b8a7"]]);
|
|
1009
1016
|
export {
|
|
1010
1017
|
_Form as default
|
|
1011
1018
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
|
|
5
|
-
/* empty css */
|
|
6
5
|
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { openDialog } from "../../dialog/index.mjs";
|
|
9
9
|
import api from "../../../api/index.mjs";
|
|
@@ -562,108 +562,111 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
562
562
|
"data-pkId": localConfig.value.pkId,
|
|
563
563
|
"data-version": "v5"
|
|
564
564
|
}, {
|
|
565
|
-
default: withCtx(() =>
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
"
|
|
584
|
-
|
|
565
|
+
default: withCtx(() => {
|
|
566
|
+
var _a, _b, _c, _d;
|
|
567
|
+
return [
|
|
568
|
+
!configLoading.value ? (openBlock(), createElementBlock("div", {
|
|
569
|
+
key: 0,
|
|
570
|
+
ref_key: "tableContainer",
|
|
571
|
+
ref: tableContainer,
|
|
572
|
+
class: "fec-table-container",
|
|
573
|
+
style: normalizeStyle(
|
|
574
|
+
props.height && props.height > 0 ? { height: `${props.height}px` } : {}
|
|
575
|
+
)
|
|
576
|
+
}, [
|
|
577
|
+
((_b = (_a = localConfig.value) == null ? void 0 : _a.queryConfig) == null ? void 0 : _b.mode) == "fixed" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
578
|
+
createVNode(TableFilter, {
|
|
579
|
+
"query-config": localConfig.value.queryConfig,
|
|
580
|
+
"fields-data": fieldsData.value,
|
|
581
|
+
onSearch: handleFilterSearch,
|
|
582
|
+
onReset: handleFilterReset
|
|
583
|
+
}, null, 8, ["query-config", "fields-data"]),
|
|
584
|
+
createVNode(CustomButtons, {
|
|
585
|
+
"custom-btns": localConfig.value.customBtns,
|
|
586
|
+
localConfig: localConfig.value,
|
|
587
|
+
readonly: __props.readonly,
|
|
588
|
+
isSubTable: __props.titleMode == "label",
|
|
589
|
+
onClick: handleCustomBtnClick,
|
|
590
|
+
hiddenFormData: hiddenFormData.value
|
|
591
|
+
}, null, 8, ["custom-btns", "localConfig", "readonly", "isSubTable", "hiddenFormData"])
|
|
592
|
+
], 64)) : createCommentVNode("", true),
|
|
593
|
+
((_d = (_c = localConfig.value) == null ? void 0 : _c.queryConfig) == null ? void 0 : _d.mode) == "dynamic" ? (openBlock(), createBlock(DynamicQuery, {
|
|
594
|
+
key: 1,
|
|
585
595
|
readonly: __props.readonly,
|
|
586
596
|
isSubTable: __props.titleMode == "label",
|
|
597
|
+
localConfig: localConfig.value,
|
|
598
|
+
"fields-data": fieldsData.value,
|
|
599
|
+
onSearch: handleFilterSearch,
|
|
587
600
|
onClick: handleCustomBtnClick,
|
|
588
601
|
hiddenFormData: hiddenFormData.value
|
|
589
|
-
}, null, 8, ["
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}, 8, ["data", "auto-resize", "height", "export-config", "row-config", "radio-config", "checkbox-config"])
|
|
652
|
-
]),
|
|
653
|
-
isPagination.value ? (openBlock(), createBlock(Pagination, {
|
|
654
|
-
key: 2,
|
|
655
|
-
config: localConfig.value.paginationConfig,
|
|
656
|
-
pagination: displayPagination.value,
|
|
657
|
-
onChange: handlePageChange
|
|
658
|
-
}, null, 8, ["config", "pagination"])) : createCommentVNode("", true)
|
|
659
|
-
], 4)) : createCommentVNode("", true)
|
|
660
|
-
]),
|
|
602
|
+
}, null, 8, ["readonly", "isSubTable", "localConfig", "fields-data", "hiddenFormData"])) : createCommentVNode("", true),
|
|
603
|
+
createElementVNode("div", _hoisted_1, [
|
|
604
|
+
createVNode(unref(VxeTable), {
|
|
605
|
+
ref_key: "tableRef",
|
|
606
|
+
ref: tableRef,
|
|
607
|
+
data: displayData.value,
|
|
608
|
+
"auto-resize": autoResize.value,
|
|
609
|
+
height: tableHeight.value,
|
|
610
|
+
"empty-text": "暂无数据",
|
|
611
|
+
"export-config": unref(exportConfig),
|
|
612
|
+
"row-config": rowConfig.value,
|
|
613
|
+
"radio-config": unref(radioConfig),
|
|
614
|
+
"checkbox-config": unref(checkboxConfig),
|
|
615
|
+
onSortChange: handleSortChange,
|
|
616
|
+
onCheckboxChange: handleCheckboxChange,
|
|
617
|
+
onCheckboxAll: handleCheckboxAll,
|
|
618
|
+
onRadioChange: handleRadioChange
|
|
619
|
+
}, {
|
|
620
|
+
default: withCtx(() => {
|
|
621
|
+
var _a2;
|
|
622
|
+
return [
|
|
623
|
+
createVNode(TableColumn, {
|
|
624
|
+
"fields-data": fieldsData.value,
|
|
625
|
+
"show-index": localConfig.value.showIndex,
|
|
626
|
+
"select-mode": __props.selectMode || localConfig.value.selectMode,
|
|
627
|
+
"is-opt-btns": localConfig.value.isOptBtns,
|
|
628
|
+
"opt-btns": localConfig.value.optBtns,
|
|
629
|
+
"mode-key": currentMode.value,
|
|
630
|
+
modes: localConfig.value.mode,
|
|
631
|
+
"data-source-options": dataSourceOptions.value,
|
|
632
|
+
"dictionary-options": dictionaryOptions.value,
|
|
633
|
+
localConfig: localConfig.value,
|
|
634
|
+
"table-ref": (_a2 = unref(instance)) == null ? void 0 : _a2.proxy,
|
|
635
|
+
"table-data": displayData.value,
|
|
636
|
+
readonly: __props.readonly,
|
|
637
|
+
isDialog: __props.isDialog,
|
|
638
|
+
hiddenFormData: hiddenFormData.value,
|
|
639
|
+
btnRollbackEvent: __props.btnRollbackEvent
|
|
640
|
+
}, createSlots({ _: 2 }, [
|
|
641
|
+
renderList(fieldsData.value, (field) => {
|
|
642
|
+
return {
|
|
643
|
+
name: `cell-${field.fieldName}`,
|
|
644
|
+
fn: withCtx((scope) => [
|
|
645
|
+
renderSlot(_ctx.$slots, `cell-${field.fieldName}`, normalizeProps(guardReactiveProps(scope)), void 0, true)
|
|
646
|
+
])
|
|
647
|
+
};
|
|
648
|
+
})
|
|
649
|
+
]), 1032, ["fields-data", "show-index", "select-mode", "is-opt-btns", "opt-btns", "mode-key", "modes", "data-source-options", "dictionary-options", "localConfig", "table-ref", "table-data", "readonly", "isDialog", "hiddenFormData", "btnRollbackEvent"])
|
|
650
|
+
];
|
|
651
|
+
}),
|
|
652
|
+
_: 3
|
|
653
|
+
}, 8, ["data", "auto-resize", "height", "export-config", "row-config", "radio-config", "checkbox-config"])
|
|
654
|
+
]),
|
|
655
|
+
isPagination.value ? (openBlock(), createBlock(Pagination, {
|
|
656
|
+
key: 2,
|
|
657
|
+
config: localConfig.value.paginationConfig,
|
|
658
|
+
pagination: displayPagination.value,
|
|
659
|
+
onChange: handlePageChange
|
|
660
|
+
}, null, 8, ["config", "pagination"])) : createCommentVNode("", true)
|
|
661
|
+
], 4)) : createCommentVNode("", true)
|
|
662
|
+
];
|
|
663
|
+
}),
|
|
661
664
|
_: 3
|
|
662
665
|
}, 8, ["data-id", "data-name", "data-pkId"]);
|
|
663
666
|
};
|
|
664
667
|
}
|
|
665
668
|
});
|
|
666
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
669
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3badb1f8"]]);
|
|
667
670
|
export {
|
|
668
671
|
_Table as default
|
|
669
672
|
};
|
|
@@ -6,8 +6,8 @@ import "../../../../../node_modules/.pnpm/vxe-table@4.17.47_vue@3.5.13_typescrip
|
|
|
6
6
|
import { CopyDocument as copy_document_default } from "../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.13_typescript@5.7.3_/node_modules/@element-plus/icons-vue/dist/index.mjs";
|
|
7
7
|
import { checkFilterMatch } from "../../utils/parseFilterConfig.mjs";
|
|
8
8
|
import { removeEmptyValues } from "../../utils/common.mjs";
|
|
9
|
-
/* empty css */
|
|
10
9
|
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { reactive } from "vue";
|
|
2
2
|
import { parseRouteParams } from "./parseRouteParams.mjs";
|
|
3
3
|
/* empty css */
|
|
4
|
-
/* empty css */
|
|
5
4
|
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { ElLoading } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/loading/index.mjs";
|
|
8
8
|
import { ElMessage } from "../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/message/index.mjs";
|