@fecp/designer 5.2.12 → 5.2.14
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 +161 -119
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/api/index.mjs +3 -0
- package/es/packages/designer/src/components/FieldSetMapping.vue2.mjs +2 -1
- package/es/packages/designer/src/components/ValueSelector.vue2.mjs +2 -2
- package/es/packages/designer/src/layout/header/index.vue.mjs +14 -3
- package/es/packages/designer/src/packages/dataSource/dataSource.vue.mjs +3 -3
- package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +1 -1
- package/es/packages/designer/src/packages/form/headerBtn.vue.mjs +40 -21
- package/es/packages/designer/src/packages/prod/index.vue.mjs +516 -0
- package/es/packages/designer/src/packages/prod/useProdDialog.mjs +16 -0
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +3 -3
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +15 -4
- package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +9 -2
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +64 -2
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +6 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +9 -8
- package/lib/designer.css +161 -119
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/api/index.js +3 -0
- package/lib/packages/designer/src/components/FieldSetMapping.vue2.js +2 -1
- package/lib/packages/designer/src/components/ValueSelector.vue2.js +2 -2
- package/lib/packages/designer/src/layout/header/index.vue.js +14 -3
- package/lib/packages/designer/src/packages/dataSource/dataSource.vue.js +3 -3
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +1 -1
- package/lib/packages/designer/src/packages/form/headerBtn.vue.js +39 -20
- package/lib/packages/designer/src/packages/prod/index.vue.js +516 -0
- package/lib/packages/designer/src/packages/prod/useProdDialog.js +16 -0
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +3 -3
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +15 -4
- package/lib/packages/vue/src/components/forms/h2/H2.vue.js +9 -2
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +64 -2
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +6 -2
- package/lib/packages/vue/src/components/table/Table.vue.js +9 -8
- package/package.json +1 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { inject, computed, ref, createElementBlock, openBlock, Fragment, createCommentVNode, createVNode, createBlock, unref, createSlots, withCtx, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
4
|
import _Table from "../../table/Table.vue.mjs";
|
|
3
5
|
import { SubTitle } from "../subTitle/index.mjs";
|
|
4
6
|
import { H2 } from "../h2/index.mjs";
|
|
5
7
|
import { parseRouteParams } from "../../../utils/parseRouteParams.mjs";
|
|
8
|
+
import { ElButton } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/button/index.mjs";
|
|
6
9
|
const _hoisted_1 = {
|
|
7
10
|
key: 0,
|
|
8
11
|
style: { "height": "60px", "position": "relative" }
|
|
@@ -70,7 +73,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
70
73
|
}
|
|
71
74
|
return {};
|
|
72
75
|
});
|
|
76
|
+
const subTableOption = ref({});
|
|
77
|
+
const customBtns = computed(() => {
|
|
78
|
+
return subTableOption.value.customBtns || {};
|
|
79
|
+
});
|
|
73
80
|
function subTableLoaded(subOption) {
|
|
81
|
+
subTableOption.value = subOption;
|
|
82
|
+
console.log("🚀 ~ subTableLoaded ~ subOption:", subOption);
|
|
74
83
|
const foundItem = props.localConfig.fieldsData.find(
|
|
75
84
|
(item) => item.id == props.config.id
|
|
76
85
|
);
|
|
@@ -81,18 +90,71 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
81
90
|
gridLayout.value.resizeEvent();
|
|
82
91
|
}
|
|
83
92
|
}
|
|
93
|
+
const tableRef = ref();
|
|
94
|
+
const handleClick = (btn, event) => {
|
|
95
|
+
var _a;
|
|
96
|
+
(_a = tableRef.value) == null ? void 0 : _a.handleCustomBtnClick({
|
|
97
|
+
btn,
|
|
98
|
+
event,
|
|
99
|
+
type: "custom"
|
|
100
|
+
});
|
|
101
|
+
};
|
|
84
102
|
return (_ctx, _cache) => {
|
|
103
|
+
const _component_el_button = ElButton;
|
|
85
104
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
86
105
|
__props.config.titleMode != "none" ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
87
106
|
__props.config.titleMode == "label" ? (openBlock(), createBlock(unref(H2), {
|
|
88
107
|
key: 0,
|
|
89
108
|
config: __props.config
|
|
90
|
-
},
|
|
109
|
+
}, createSlots({
|
|
110
|
+
default: withCtx(() => [
|
|
111
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(customBtns).right, (btn) => {
|
|
112
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
113
|
+
btn.btnType == "custom" ? (openBlock(), createBlock(_component_el_button, {
|
|
114
|
+
key: btn.id,
|
|
115
|
+
link: "",
|
|
116
|
+
type: "primary",
|
|
117
|
+
onClick: ($event) => handleClick(btn, $event)
|
|
118
|
+
}, {
|
|
119
|
+
default: withCtx(() => [
|
|
120
|
+
createTextVNode(toDisplayString(btn.label), 1)
|
|
121
|
+
]),
|
|
122
|
+
_: 2
|
|
123
|
+
}, 1032, ["onClick"])) : createCommentVNode("", true)
|
|
124
|
+
], 64);
|
|
125
|
+
}), 256))
|
|
126
|
+
]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, [
|
|
129
|
+
unref(customBtns).left ? {
|
|
130
|
+
name: "left",
|
|
131
|
+
fn: withCtx(() => [
|
|
132
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(customBtns).left, (btn) => {
|
|
133
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
134
|
+
btn.btnType == "custom" ? (openBlock(), createBlock(_component_el_button, {
|
|
135
|
+
key: btn.id,
|
|
136
|
+
link: "",
|
|
137
|
+
type: "primary",
|
|
138
|
+
onClick: ($event) => handleClick(btn, $event)
|
|
139
|
+
}, {
|
|
140
|
+
default: withCtx(() => [
|
|
141
|
+
createTextVNode(toDisplayString(btn.label), 1)
|
|
142
|
+
]),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1032, ["onClick"])) : createCommentVNode("", true)
|
|
145
|
+
], 64);
|
|
146
|
+
}), 256))
|
|
147
|
+
]),
|
|
148
|
+
key: "0"
|
|
149
|
+
} : void 0
|
|
150
|
+
]), 1032, ["config"])) : __props.config.titleMode == "subLabel" ? (openBlock(), createBlock(unref(SubTitle), {
|
|
91
151
|
key: 1,
|
|
92
152
|
config: __props.config
|
|
93
153
|
}, null, 8, ["config"])) : createCommentVNode("", true)
|
|
94
154
|
])) : createCommentVNode("", true),
|
|
95
155
|
createVNode(unref(_Table), {
|
|
156
|
+
ref_key: "tableRef",
|
|
157
|
+
ref: tableRef,
|
|
96
158
|
templateKey: __props.config.subTableKey,
|
|
97
159
|
isSubTable: "",
|
|
98
160
|
onLoaded: subTableLoaded,
|
|
@@ -68,6 +68,10 @@ const _sfc_main = {
|
|
|
68
68
|
fieldsData: {
|
|
69
69
|
type: Array,
|
|
70
70
|
default: () => []
|
|
71
|
+
},
|
|
72
|
+
isSubTable: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: false
|
|
71
75
|
}
|
|
72
76
|
},
|
|
73
77
|
emits: ["click", "search"],
|
|
@@ -295,7 +299,7 @@ const _sfc_main = {
|
|
|
295
299
|
ref: "toolbarRef"
|
|
296
300
|
}, {
|
|
297
301
|
tools: withCtx(() => [
|
|
298
|
-
rightButtons.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(rightButtons.value, (btn) => {
|
|
302
|
+
!__props.isSubTable && rightButtons.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(rightButtons.value, (btn) => {
|
|
299
303
|
return openBlock(), createBlock(_component_el_button, {
|
|
300
304
|
key: btn.id,
|
|
301
305
|
type: getBtnType(btn),
|
|
@@ -419,7 +423,7 @@ const _sfc_main = {
|
|
|
419
423
|
};
|
|
420
424
|
}
|
|
421
425
|
};
|
|
422
|
-
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
426
|
+
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ba091c4f"]]);
|
|
423
427
|
export {
|
|
424
428
|
DynamicQuery as default
|
|
425
429
|
};
|
|
@@ -534,7 +534,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
534
534
|
clearSelection,
|
|
535
535
|
exportData: handleExport,
|
|
536
536
|
localConfig,
|
|
537
|
-
setFormData
|
|
537
|
+
setFormData,
|
|
538
|
+
handleCustomBtnClick
|
|
538
539
|
});
|
|
539
540
|
return (_ctx, _cache) => {
|
|
540
541
|
const _component_el_container = ElContainer;
|
|
@@ -557,15 +558,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
557
558
|
)
|
|
558
559
|
}, [
|
|
559
560
|
localConfig.value.queryConfig.mode == "fixed" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
560
|
-
|
|
561
|
-
key: 0,
|
|
561
|
+
createVNode(TableFilter, {
|
|
562
562
|
"query-config": localConfig.value.queryConfig,
|
|
563
563
|
"fields-data": fieldsData.value,
|
|
564
564
|
onSearch: handleFilterSearch,
|
|
565
565
|
onReset: handleFilterReset
|
|
566
|
-
}, null, 8, ["query-config", "fields-data"])
|
|
567
|
-
!__props.readonly ? (openBlock(), createBlock(CustomButtons, {
|
|
568
|
-
key:
|
|
566
|
+
}, null, 8, ["query-config", "fields-data"]),
|
|
567
|
+
!__props.readonly && !__props.isSubTable ? (openBlock(), createBlock(CustomButtons, {
|
|
568
|
+
key: 0,
|
|
569
569
|
"custom-btns": localConfig.value.customBtns,
|
|
570
570
|
localConfig: localConfig.value,
|
|
571
571
|
onClick: handleCustomBtnClick
|
|
@@ -573,11 +573,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
573
573
|
], 64)) : createCommentVNode("", true),
|
|
574
574
|
localConfig.value.queryConfig.mode == "dynamic" ? (openBlock(), createBlock(DynamicQuery, {
|
|
575
575
|
key: 1,
|
|
576
|
+
isSubTable: __props.isSubTable,
|
|
576
577
|
localConfig: localConfig.value,
|
|
577
578
|
"fields-data": fieldsData.value,
|
|
578
579
|
onSearch: handleFilterSearch,
|
|
579
580
|
onClick: handleCustomBtnClick
|
|
580
|
-
}, null, 8, ["localConfig", "fields-data"])) : createCommentVNode("", true),
|
|
581
|
+
}, null, 8, ["isSubTable", "localConfig", "fields-data"])) : createCommentVNode("", true),
|
|
581
582
|
createElementVNode("div", _hoisted_1, [
|
|
582
583
|
createVNode(unref(VxeTable), {
|
|
583
584
|
ref_key: "tableRef",
|
|
@@ -642,7 +643,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
642
643
|
};
|
|
643
644
|
}
|
|
644
645
|
});
|
|
645
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
646
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d0a13549"]]);
|
|
646
647
|
export {
|
|
647
648
|
_Table as default
|
|
648
649
|
};
|