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