@fecp/designer 5.6.24 → 5.6.27
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/package.json.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/form/components/H2Wrapper.vue.mjs +1 -1
- package/es/designer/src/packages/table/TableSetting.vue.mjs +19 -20
- package/es/designer/src/packages/table/tableBtn.vue.mjs +72 -16
- package/es/designer.css +784 -696
- package/es/node_modules/element-plus/es/components/container/index.mjs +1 -1
- package/es/node_modules/element-plus/es/components/form/index.mjs +1 -1
- package/es/node_modules/element-plus/es/components/input/src/input.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +1 -1
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +7 -7
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +2 -4
- package/es/packages/vue/src/components/forms/form/index.mjs +1 -1
- package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +58 -3
- package/es/packages/vue/src/components/forms/subTable/index.mjs +2 -2
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +2 -1
- package/es/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +51 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +13 -23
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +3 -54
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +6 -6
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -55
- package/es/packages/vue/src/utils/eventFlowParser.mjs +9 -6
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/form/components/H2Wrapper.vue.js +1 -1
- package/lib/designer/src/packages/form/index.vue.js +1 -1
- package/lib/designer/src/packages/form/property/index.vue.js +1 -1
- package/lib/designer/src/packages/table/TableSetting.vue.js +19 -20
- package/lib/designer/src/packages/table/tableBtn.vue.js +83 -27
- package/lib/designer.css +784 -696
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +1 -1
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +6 -6
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +2 -4
- package/lib/packages/vue/src/components/forms/form/index.js +1 -1
- package/lib/packages/vue/src/components/forms/h2/H2.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +57 -2
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +2 -1
- package/lib/packages/vue/src/components/layout/layoutCard/LayoutCard.vue.js +1 -1
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +51 -2
- package/lib/packages/vue/src/components/table/Table.vue.js +13 -23
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +3 -54
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +5 -5
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -55
- package/lib/packages/vue/src/utils/eventFlowParser.js +9 -6
- package/package.json +1 -1
|
@@ -8,13 +8,13 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const Vue = require("vue");
|
|
11
|
-
;/* empty css */
|
|
12
|
-
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
13
11
|
;/* empty css */
|
|
14
12
|
;/* empty css */
|
|
15
13
|
;/* empty css */
|
|
16
14
|
;/* empty css */
|
|
17
15
|
;/* empty css */
|
|
16
|
+
;/* empty css */
|
|
17
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
18
18
|
const index$1 = require("../../../../../../node_modules/vant/es/swipe-cell/index.js");
|
|
19
19
|
const functionCall = require("../../../../../../node_modules/vant/es/dialog/function-call.js");
|
|
20
20
|
require("../../../../../../node_modules/vant/es/dialog/index.js");
|
|
@@ -187,5 +187,5 @@ const _sfc_main = {
|
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
|
-
const _AppDetail = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
190
|
+
const _AppDetail = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-64154720"]]);
|
|
191
191
|
exports.default = _AppDetail;
|
|
@@ -12,8 +12,6 @@ const eventFlowHandler = require("../../utils/eventFlow/eventFlowHandler.js");
|
|
|
12
12
|
;/* empty css */
|
|
13
13
|
;/* empty css */
|
|
14
14
|
const common = require("../../utils/common.js");
|
|
15
|
-
const Table = require("../table/Table.vue.js");
|
|
16
|
-
const Form = ;/* empty css */
|
|
17
15
|
;/* empty css */
|
|
18
16
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
19
17
|
;/* empty css */
|
|
@@ -320,6 +318,8 @@ const _sfc_main = {
|
|
|
320
318
|
}
|
|
321
319
|
return (_ctx, _cache) => {
|
|
322
320
|
var _a;
|
|
321
|
+
const _component_fec_table = Vue.resolveComponent("fec-table");
|
|
322
|
+
const _component_fec_form = Vue.resolveComponent("fec-form");
|
|
323
323
|
const _component_el_button = index$1.ElButton;
|
|
324
324
|
const _component_el_dialog = index.ElDialog;
|
|
325
325
|
return __props.dialogConfig.componentIsDialog ? (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(currentComponent.value), Vue.mergeProps({
|
|
@@ -397,7 +397,7 @@ const _sfc_main = {
|
|
|
397
397
|
style: Vue.normalizeStyle(contentStyle.value)
|
|
398
398
|
}, [
|
|
399
399
|
((_b = __props.dialogConfig) == null ? void 0 : _b.contentSource) === "table" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
|
|
400
|
-
__props.dialogConfig.tableContent === "select" ? (Vue.openBlock(), Vue.createBlock(
|
|
400
|
+
__props.dialogConfig.tableContent === "select" ? (Vue.openBlock(), Vue.createBlock(_component_fec_table, {
|
|
401
401
|
key: 0,
|
|
402
402
|
templateKey: __props.dialogConfig.subTableKey,
|
|
403
403
|
mode: __props.dialogConfig.subTableMode,
|
|
@@ -409,7 +409,7 @@ const _sfc_main = {
|
|
|
409
409
|
onSelectionChange: tableSelectionChange,
|
|
410
410
|
ref_key: "dialogTableRef",
|
|
411
411
|
ref: dialogTableRef
|
|
412
|
-
}, null, 8, ["templateKey", "mode", "hasPagination", "initHiddenData", "readonly", "selectMode"])) : __props.dialogConfig.tableContent === "custom" ? (Vue.openBlock(), Vue.createBlock(
|
|
412
|
+
}, null, 8, ["templateKey", "mode", "hasPagination", "initHiddenData", "readonly", "selectMode"])) : __props.dialogConfig.tableContent === "custom" ? (Vue.openBlock(), Vue.createBlock(_component_fec_table, {
|
|
413
413
|
key: 1,
|
|
414
414
|
initOption: __props.dialogConfig.customTableConfig,
|
|
415
415
|
isDialog: "",
|
|
@@ -421,7 +421,7 @@ const _sfc_main = {
|
|
|
421
421
|
ref_key: "dialogTableRef",
|
|
422
422
|
ref: dialogTableRef
|
|
423
423
|
}, null, 8, ["initOption", "hasPagination", "initHiddenData", "readonly", "selectMode"])) : Vue.createCommentVNode("", true)
|
|
424
|
-
], 64)) : ((_c = __props.dialogConfig) == null ? void 0 : _c.contentSource) === "form" ? (Vue.openBlock(), Vue.createBlock(
|
|
424
|
+
], 64)) : ((_c = __props.dialogConfig) == null ? void 0 : _c.contentSource) === "form" ? (Vue.openBlock(), Vue.createBlock(_component_fec_form, {
|
|
425
425
|
key: 1,
|
|
426
426
|
templateKey: __props.dialogConfig.subFormKey,
|
|
427
427
|
isDialog: "",
|
|
@@ -442,5 +442,5 @@ const _sfc_main = {
|
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
|
-
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
445
|
+
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2b0f2231"]]);
|
|
446
446
|
exports.default = DialogRenderer;
|
|
@@ -23,8 +23,6 @@ const common = require("../../../utils/common.js");
|
|
|
23
23
|
;/* empty css */
|
|
24
24
|
const calculate = require("../../../utils/formulajs/calculate.js");
|
|
25
25
|
const eventFlowHandler = require("../../../utils/eventFlow/eventFlowHandler.js");
|
|
26
|
-
require("../../table/index.js");
|
|
27
|
-
require("./index.js");
|
|
28
26
|
;/* empty css */
|
|
29
27
|
;/* empty css */
|
|
30
28
|
;/* empty css */
|
|
@@ -1334,5 +1332,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1334
1332
|
};
|
|
1335
1333
|
}
|
|
1336
1334
|
});
|
|
1337
|
-
const
|
|
1338
|
-
exports.default =
|
|
1335
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2a14b0ea"]]);
|
|
1336
|
+
exports.default = _Form;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Form$1 = require("./Form.
|
|
3
|
+
const Form$1 = require("./Form.vue.js");
|
|
4
4
|
const install = require("../../../utils/install.js");
|
|
5
5
|
const Form = install.default.withInstall("Form", Form$1.default);
|
|
6
6
|
exports.Form = Form;
|
|
@@ -41,5 +41,5 @@ const _sfc_main = {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
const _H2 = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
44
|
+
const _H2 = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-adabc244"]]);
|
|
45
45
|
exports.default = _H2;
|
|
@@ -8,11 +8,19 @@ const index$2 = require("../subTitle/index.js");
|
|
|
8
8
|
const index = require("../h2/index.js");
|
|
9
9
|
const parseRouteParams = require("../../../utils/parseRouteParams.js");
|
|
10
10
|
const parseFilterConfig = require("../../../utils/parseFilterConfig.js");
|
|
11
|
+
const formatCellValue = require("../../../utils/formatCellValue.js");
|
|
12
|
+
;/* empty css */
|
|
13
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
11
14
|
const index$1 = require("../../../../../../node_modules/element-plus/es/components/button/index.js");
|
|
12
15
|
const _hoisted_1 = {
|
|
13
16
|
key: 0,
|
|
14
17
|
style: { "height": "60px", "position": "relative" }
|
|
15
18
|
};
|
|
19
|
+
const _hoisted_2 = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "selectionSummary"
|
|
22
|
+
};
|
|
23
|
+
const _hoisted_3 = { class: "summary-badge summary-count" };
|
|
16
24
|
const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
17
25
|
inheritAttrs: false
|
|
18
26
|
}, {
|
|
@@ -98,6 +106,35 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
98
106
|
...((_b = subTableOption.value) == null ? void 0 : _b.hiddenFields) || []
|
|
99
107
|
];
|
|
100
108
|
});
|
|
109
|
+
const selectedRows = Vue.ref([]);
|
|
110
|
+
const handleSelectionChange = (rows) => {
|
|
111
|
+
selectedRows.value = rows || [];
|
|
112
|
+
};
|
|
113
|
+
const showSelectionSummary = Vue.computed(() => {
|
|
114
|
+
var _a, _b;
|
|
115
|
+
const selectMode = (_a = subTableOption.value) == null ? void 0 : _a.selectMode;
|
|
116
|
+
return selectMode === "multiple" && ((_b = subTableOption.value) == null ? void 0 : _b.showSelectionSummary);
|
|
117
|
+
});
|
|
118
|
+
const summaryItems = Vue.computed(() => {
|
|
119
|
+
var _a;
|
|
120
|
+
const summaryFields = ((_a = subTableOption.value) == null ? void 0 : _a.selectionSummaryFields) || [];
|
|
121
|
+
if (!summaryFields.length) return [];
|
|
122
|
+
return summaryFields.map((fieldName) => {
|
|
123
|
+
const field = subTableFieldsData.value.find(
|
|
124
|
+
(f) => f.fieldName === fieldName
|
|
125
|
+
);
|
|
126
|
+
if (!field) return null;
|
|
127
|
+
const sum = selectedRows.value.reduce((total, row) => {
|
|
128
|
+
const value = parseFloat(row[fieldName]);
|
|
129
|
+
return total + (isNaN(value) ? 0 : value);
|
|
130
|
+
}, 0);
|
|
131
|
+
return {
|
|
132
|
+
fieldName,
|
|
133
|
+
label: field.label || field.fieldName,
|
|
134
|
+
value: formatCellValue.formatCellValue(sum, field)
|
|
135
|
+
};
|
|
136
|
+
}).filter(Boolean);
|
|
137
|
+
});
|
|
101
138
|
const leftButtons = Vue.computed(() => {
|
|
102
139
|
var _a, _b;
|
|
103
140
|
return (((_b = (_a = subTableOption.value) == null ? void 0 : _a.customBtns) == null ? void 0 : _b.left) || []).filter((item) => {
|
|
@@ -172,7 +209,23 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
172
209
|
Vue.unref(leftButtons) ? {
|
|
173
210
|
name: "left",
|
|
174
211
|
fn: Vue.withCtx(() => [
|
|
175
|
-
|
|
212
|
+
Vue.unref(showSelectionSummary) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
|
|
213
|
+
Vue.createElementVNode("span", _hoisted_3, [
|
|
214
|
+
_cache[0] || (_cache[0] = Vue.createTextVNode("已勾选 ")),
|
|
215
|
+
Vue.createElementVNode("em", null, Vue.toDisplayString(Vue.unref(selectedRows).length || 0), 1),
|
|
216
|
+
_cache[1] || (_cache[1] = Vue.createTextVNode(" 条"))
|
|
217
|
+
]),
|
|
218
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(summaryItems), (item) => {
|
|
219
|
+
return Vue.openBlock(), Vue.createElementBlock("span", {
|
|
220
|
+
key: item.fieldName,
|
|
221
|
+
class: "summary-badge summary-item"
|
|
222
|
+
}, [
|
|
223
|
+
Vue.createTextVNode(Vue.toDisplayString(item.label) + " ", 1),
|
|
224
|
+
Vue.createElementVNode("em", null, Vue.toDisplayString(item.value), 1)
|
|
225
|
+
]);
|
|
226
|
+
}), 128))
|
|
227
|
+
])) : Vue.createCommentVNode("", true),
|
|
228
|
+
__props.formMode != "query" ? (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, { key: 1 }, Vue.renderList(Vue.unref(leftButtons), (btn) => {
|
|
176
229
|
return Vue.openBlock(), Vue.createBlock(_component_el_button, {
|
|
177
230
|
link: "",
|
|
178
231
|
type: "primary",
|
|
@@ -198,6 +251,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
198
251
|
templateKey: __props.config.subTableKey,
|
|
199
252
|
isSubTable: "",
|
|
200
253
|
onHeightLoaded: subTableLoaded,
|
|
254
|
+
onSelectionChange: handleSelectionChange,
|
|
201
255
|
mode: __props.config.subTableMode,
|
|
202
256
|
titleMode: __props.config.titleMode,
|
|
203
257
|
hasPagination: __props.config.isSubTablePagination,
|
|
@@ -215,4 +269,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
215
269
|
};
|
|
216
270
|
}
|
|
217
271
|
});
|
|
218
|
-
|
|
272
|
+
const _SubTable = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8a26081e"]]);
|
|
273
|
+
exports.default = _SubTable;
|
|
@@ -162,6 +162,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
162
162
|
fields: fieldsList,
|
|
163
163
|
instance: {
|
|
164
164
|
instance: {
|
|
165
|
+
...instance,
|
|
165
166
|
proxy: formCtx
|
|
166
167
|
}
|
|
167
168
|
},
|
|
@@ -267,5 +268,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
267
268
|
};
|
|
268
269
|
}
|
|
269
270
|
});
|
|
270
|
-
const _Text = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
271
|
+
const _Text = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-632db1b4"]]);
|
|
271
272
|
exports.default = _Text;
|
|
@@ -8,7 +8,7 @@ const index$2 = require("../../../../../../node_modules/@element-plus/icons-vue/
|
|
|
8
8
|
const index$3 = require("../../dialog/customDialog/index.js");
|
|
9
9
|
const index$4 = require("../../../api/index.js");
|
|
10
10
|
const getInstance = require("../../../utils/getInstance.js");
|
|
11
|
-
const Form =
|
|
11
|
+
const Form = require("../../forms/form/Form.vue.js");
|
|
12
12
|
const Table = require("../../table/Table.vue.js");
|
|
13
13
|
const common = require("../../../utils/common.js");
|
|
14
14
|
;/* empty css */
|
|
@@ -8,6 +8,7 @@ const vxeTable = require("vxe-table");
|
|
|
8
8
|
const index$1 = require("../../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
9
9
|
const getInstance = require("../../utils/getInstance.js");
|
|
10
10
|
const parseFilterConfig = require("../../utils/parseFilterConfig.js");
|
|
11
|
+
const formatCellValue = require("../../utils/formatCellValue.js");
|
|
11
12
|
;/* empty css */
|
|
12
13
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
13
14
|
const index = require("../../../../../node_modules/element-plus/es/components/icon/index.js");
|
|
@@ -17,6 +18,11 @@ const _hoisted_2 = {
|
|
|
17
18
|
key: 1,
|
|
18
19
|
class: "template-name"
|
|
19
20
|
};
|
|
21
|
+
const _hoisted_3 = {
|
|
22
|
+
key: 2,
|
|
23
|
+
class: "selectionSummary"
|
|
24
|
+
};
|
|
25
|
+
const _hoisted_4 = { class: "summary-badge summary-count" };
|
|
20
26
|
const _sfc_main = {
|
|
21
27
|
__name: "CustomButtons",
|
|
22
28
|
props: {
|
|
@@ -42,6 +48,10 @@ const _sfc_main = {
|
|
|
42
48
|
hiddenFormData: {
|
|
43
49
|
type: Object,
|
|
44
50
|
default: {}
|
|
51
|
+
},
|
|
52
|
+
selectedRows: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: () => []
|
|
45
55
|
}
|
|
46
56
|
},
|
|
47
57
|
emits: ["click"],
|
|
@@ -79,6 +89,29 @@ const _sfc_main = {
|
|
|
79
89
|
const hasButtons = Vue.computed(() => {
|
|
80
90
|
return leftButtons.value.length > 0 || rightButtons.value.length > 0;
|
|
81
91
|
});
|
|
92
|
+
const showSelectionSummary = Vue.computed(() => {
|
|
93
|
+
var _a, _b;
|
|
94
|
+
const selectMode = (_a = props.localConfig) == null ? void 0 : _a.selectMode;
|
|
95
|
+
return selectMode === "multiple" && ((_b = props.localConfig) == null ? void 0 : _b.showSelectionSummary);
|
|
96
|
+
});
|
|
97
|
+
const summaryItems = Vue.computed(() => {
|
|
98
|
+
var _a;
|
|
99
|
+
const summaryFields = ((_a = props.localConfig) == null ? void 0 : _a.selectionSummaryFields) || [];
|
|
100
|
+
if (!summaryFields.length) return [];
|
|
101
|
+
return summaryFields.map((fieldName) => {
|
|
102
|
+
const field = fieldsData.value.find((f) => f.fieldName === fieldName);
|
|
103
|
+
if (!field) return null;
|
|
104
|
+
const sum = props.selectedRows.reduce((total, row) => {
|
|
105
|
+
const value = parseFloat(row[fieldName]);
|
|
106
|
+
return total + (isNaN(value) ? 0 : value);
|
|
107
|
+
}, 0);
|
|
108
|
+
return {
|
|
109
|
+
fieldName,
|
|
110
|
+
label: field.label || field.fieldName,
|
|
111
|
+
value: formatCellValue.formatCellValue(sum, field)
|
|
112
|
+
};
|
|
113
|
+
}).filter(Boolean);
|
|
114
|
+
});
|
|
82
115
|
const getBtnIcon = (btnType) => {
|
|
83
116
|
const iconMap = {
|
|
84
117
|
refresh: index$1.Refresh,
|
|
@@ -128,8 +161,24 @@ const _sfc_main = {
|
|
|
128
161
|
_cache[0] || (_cache[0] = Vue.createElementVNode("div", { class: "template-name-line" }, null, -1)),
|
|
129
162
|
Vue.createTextVNode(" " + Vue.toDisplayString(__props.localConfig.templateName), 1)
|
|
130
163
|
])) : Vue.createCommentVNode("", true),
|
|
164
|
+
!__props.isSubTable && showSelectionSummary.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3, [
|
|
165
|
+
Vue.createElementVNode("span", _hoisted_4, [
|
|
166
|
+
_cache[1] || (_cache[1] = Vue.createTextVNode("已勾选 ")),
|
|
167
|
+
Vue.createElementVNode("em", null, Vue.toDisplayString(__props.selectedRows.length || 0), 1),
|
|
168
|
+
_cache[2] || (_cache[2] = Vue.createTextVNode(" 条"))
|
|
169
|
+
]),
|
|
170
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(summaryItems.value, (item) => {
|
|
171
|
+
return Vue.openBlock(), Vue.createElementBlock("span", {
|
|
172
|
+
key: item.fieldName,
|
|
173
|
+
class: "summary-badge summary-item"
|
|
174
|
+
}, [
|
|
175
|
+
Vue.createTextVNode(Vue.toDisplayString(item.label) + " ", 1),
|
|
176
|
+
Vue.createElementVNode("em", null, Vue.toDisplayString(item.value), 1)
|
|
177
|
+
]);
|
|
178
|
+
}), 128))
|
|
179
|
+
])) : Vue.createCommentVNode("", true),
|
|
131
180
|
!__props.readOnly && !__props.isSubTable && hasButtons.value ? (Vue.openBlock(), Vue.createBlock(Vue.unref(vxeTable.VxeToolbar), {
|
|
132
|
-
key:
|
|
181
|
+
key: 3,
|
|
133
182
|
ref: "toolbarRef",
|
|
134
183
|
style: { "flex": "1", "margin-bottom": "0", "padding": "0" }
|
|
135
184
|
}, {
|
|
@@ -173,5 +222,5 @@ const _sfc_main = {
|
|
|
173
222
|
};
|
|
174
223
|
}
|
|
175
224
|
};
|
|
176
|
-
const CustomButtons = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
225
|
+
const CustomButtons = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-d37b4cca"]]);
|
|
177
226
|
exports.default = CustomButtons;
|
|
@@ -25,29 +25,10 @@ const common = require("../../utils/common.js");
|
|
|
25
25
|
;/* empty css */
|
|
26
26
|
require("../../utils/formulajs/functionCore.js");
|
|
27
27
|
const eventFlowHandler = require("../../utils/eventFlow/eventFlowHandler.js");
|
|
28
|
-
const getJsonAsyncUtil = require("../../utils/getJsonAsyncUtil.js");
|
|
29
|
-
const eventBus = require("../../utils/eventBus.js");
|
|
30
|
-
const formatCellValue = require("../../utils/formatCellValue.js");
|
|
31
|
-
const vuex_esmBundler = require("../../../../../node_modules/vuex/dist/vuex.esm-bundler.js");
|
|
32
28
|
;/* empty css */
|
|
33
29
|
;/* empty css */
|
|
34
|
-
;/* empty css */
|
|
35
|
-
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
36
|
-
;/* empty css */
|
|
37
|
-
;/* empty css */
|
|
38
|
-
require("../../../../../node_modules/grid-layout-plus/es/index.js");
|
|
39
|
-
require("../forms/formItem/index.js");
|
|
40
|
-
require("../details/header/index.js");
|
|
41
|
-
require("../details/main/index.js");
|
|
42
|
-
require("../details/footer/index.js");
|
|
43
|
-
;/* empty css */
|
|
44
|
-
;/* empty css */
|
|
45
|
-
;/* empty css */
|
|
46
|
-
;/* empty css */
|
|
47
|
-
require("../../../../../node_modules/moment/dist/moment.js");
|
|
48
|
-
require("../../utils/importantDataChange.js");
|
|
49
|
-
;/* empty css */
|
|
50
30
|
;/* empty css */
|
|
31
|
+
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
51
32
|
;/* empty css */
|
|
52
33
|
;/* empty css */
|
|
53
34
|
;/* empty css */
|
|
@@ -60,6 +41,11 @@ require("../../utils/importantDataChange.js");
|
|
|
60
41
|
;/* empty css */
|
|
61
42
|
;/* empty css */
|
|
62
43
|
;/* empty css */
|
|
44
|
+
const getJsonAsyncUtil = require("../../utils/getJsonAsyncUtil.js");
|
|
45
|
+
const eventBus = require("../../utils/eventBus.js");
|
|
46
|
+
const formatCellValue = require("../../utils/formatCellValue.js");
|
|
47
|
+
const vuex_esmBundler = require("../../../../../node_modules/vuex/dist/vuex.esm-bundler.js");
|
|
48
|
+
;/* empty css */
|
|
63
49
|
const index = require("../../../../../node_modules/element-plus/es/components/container/index.js");
|
|
64
50
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/message/index.js");
|
|
65
51
|
const _hoisted_1 = { class: "fec-vxe-table" };
|
|
@@ -562,10 +548,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
562
548
|
}
|
|
563
549
|
emit("page-change", { pageNo, pageSize });
|
|
564
550
|
};
|
|
551
|
+
const selectedRows = Vue.ref([]);
|
|
565
552
|
const handleCheckboxChange = (checked) => {
|
|
553
|
+
selectedRows.value = checked.records;
|
|
566
554
|
emit("selection-change", checked.records);
|
|
567
555
|
};
|
|
568
556
|
const handleCheckboxAll = (checked) => {
|
|
557
|
+
selectedRows.value = checked.records;
|
|
569
558
|
emit("selection-change", checked.records);
|
|
570
559
|
};
|
|
571
560
|
const handleRadioChange = (checked) => {
|
|
@@ -954,8 +943,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
954
943
|
readonly: __props.readonly,
|
|
955
944
|
isSubTable: __props.titleMode == "label",
|
|
956
945
|
onClick: handleCustomBtnClick,
|
|
957
|
-
hiddenFormData: hiddenFormData.value
|
|
958
|
-
|
|
946
|
+
hiddenFormData: hiddenFormData.value,
|
|
947
|
+
selectedRows: selectedRows.value
|
|
948
|
+
}, null, 8, ["custom-btns", "localConfig", "readonly", "isSubTable", "hiddenFormData", "selectedRows"])
|
|
959
949
|
], 64)) : Vue.createCommentVNode("", true),
|
|
960
950
|
((_d = (_c = localConfig.value) == null ? void 0 : _c.queryConfig) == null ? void 0 : _d.mode) == "dynamic" ? (Vue.openBlock(), Vue.createBlock(DynamicQuery.default, {
|
|
961
951
|
key: 1,
|
|
@@ -1042,5 +1032,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1042
1032
|
};
|
|
1043
1033
|
}
|
|
1044
1034
|
});
|
|
1045
|
-
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1035
|
+
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-80e86615"]]);
|
|
1046
1036
|
exports.default = _Table;
|
|
@@ -15,61 +15,8 @@ const common = require("../../utils/common.js");
|
|
|
15
15
|
;/* empty css */
|
|
16
16
|
require("../../utils/formulajs/functionCore.js");
|
|
17
17
|
const eventFlowHandler = require("../../utils/eventFlow/eventFlowHandler.js");
|
|
18
|
-
;/* empty css */
|
|
19
|
-
;/* empty css */
|
|
20
|
-
;/* empty css */
|
|
21
|
-
;/* empty css */
|
|
22
|
-
;/* empty css */
|
|
23
|
-
require("xe-utils");
|
|
24
|
-
;/* empty css */
|
|
25
|
-
;/* empty css */
|
|
26
|
-
;/* empty css */
|
|
27
|
-
;/* empty css */
|
|
28
|
-
;/* empty css */
|
|
29
|
-
;/* empty css */
|
|
30
|
-
;/* empty css */
|
|
31
|
-
;/* empty css */
|
|
32
|
-
;/* empty css */
|
|
33
|
-
;/* empty css */
|
|
34
|
-
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
35
|
-
;/* empty css */
|
|
36
|
-
;/* empty css */
|
|
37
|
-
;/* empty css */
|
|
38
|
-
;/* empty css */
|
|
39
|
-
;/* empty css */
|
|
40
|
-
;/* empty css */
|
|
41
|
-
;/* empty css */
|
|
42
|
-
require("../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
|
|
43
|
-
require("../forms/text/index.js");
|
|
44
|
-
require("../forms/select/index.js");
|
|
45
|
-
require("../forms/multipleSelection/index.js");
|
|
46
|
-
require("../forms/date/index.js");
|
|
47
|
-
require("../forms/number/index.js");
|
|
48
|
-
;/* empty css */
|
|
49
|
-
;/* empty css */
|
|
50
|
-
;/* empty css */
|
|
51
|
-
;/* empty css */
|
|
52
|
-
;/* empty css */
|
|
53
|
-
;/* empty css */
|
|
54
|
-
require("../../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
55
|
-
;/* empty css */
|
|
56
|
-
require("../../utils/eventBus.js");
|
|
57
|
-
require("../../../../../node_modules/decimal.js/decimal.js");
|
|
58
|
-
;/* empty css */
|
|
59
|
-
;/* empty css */
|
|
60
|
-
require("../../../../../node_modules/grid-layout-plus/es/index.js");
|
|
61
|
-
require("../forms/formItem/index.js");
|
|
62
|
-
require("../details/header/index.js");
|
|
63
|
-
require("../details/main/index.js");
|
|
64
|
-
require("../details/footer/index.js");
|
|
65
|
-
;/* empty css */
|
|
66
|
-
;/* empty css */
|
|
67
|
-
;/* empty css */
|
|
68
|
-
;/* empty css */
|
|
69
|
-
require("../../../../../node_modules/moment/dist/moment.js");
|
|
70
|
-
require("../../utils/importantDataChange.js");
|
|
71
|
-
;/* empty css */
|
|
72
18
|
;/* empty css */
|
|
19
|
+
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
73
20
|
;/* empty css */
|
|
74
21
|
;/* empty css */
|
|
75
22
|
;/* empty css */
|
|
@@ -80,7 +27,9 @@ require("../../utils/importantDataChange.js");
|
|
|
80
27
|
;/* empty css */
|
|
81
28
|
;/* empty css */
|
|
82
29
|
;/* empty css */
|
|
30
|
+
;/* empty css */
|
|
83
31
|
;/* empty css */
|
|
32
|
+
;/* empty css */
|
|
84
33
|
const index = require("../../../../../node_modules/element-plus/es/components/link/index.js");
|
|
85
34
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/icon/index.js");
|
|
86
35
|
const index$3 = require("../../../../../node_modules/element-plus/es/components/button/index.js");
|
|
@@ -54,7 +54,7 @@ const _sfc_main = {
|
|
|
54
54
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
55
55
|
var _a;
|
|
56
56
|
Vue.useCssVars((_ctx) => ({
|
|
57
|
-
"
|
|
57
|
+
"fedf9b3c": `${config.value.collapseRows * 90}px`
|
|
58
58
|
}));
|
|
59
59
|
const props = __props;
|
|
60
60
|
const emit = __emit;
|
|
@@ -185,7 +185,7 @@ const _sfc_main = {
|
|
|
185
185
|
config.value.enabled ? (Vue.openBlock(), Vue.createBlock(_component_el_form, {
|
|
186
186
|
key: 0,
|
|
187
187
|
model: filterValues.value,
|
|
188
|
-
class: "fec-table-filter",
|
|
188
|
+
class: Vue.normalizeClass(["fec-table-filter", { "should-show-toggle": shouldShowToggle.value }]),
|
|
189
189
|
"label-width": "100px",
|
|
190
190
|
"label-position": "right",
|
|
191
191
|
style: Vue.normalizeStyle({ "--column-count": config.value.columnCount }),
|
|
@@ -277,8 +277,8 @@ const _sfc_main = {
|
|
|
277
277
|
])
|
|
278
278
|
]),
|
|
279
279
|
_: 1
|
|
280
|
-
}, 8, ["model", "style"])) : Vue.createCommentVNode("", true),
|
|
281
|
-
shouldShowToggle.value ? (Vue.openBlock(), Vue.createBlock(_component_el_divider, {
|
|
280
|
+
}, 8, ["model", "class", "style"])) : Vue.createCommentVNode("", true),
|
|
281
|
+
config.value.enabled && shouldShowToggle.value ? (Vue.openBlock(), Vue.createBlock(_component_el_divider, {
|
|
282
282
|
key: 1,
|
|
283
283
|
"border-style": "dashed",
|
|
284
284
|
class: "filter-divider"
|
|
@@ -303,5 +303,5 @@ const _sfc_main = {
|
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
|
-
const TableFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
306
|
+
const TableFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-de2e11bc"]]);
|
|
307
307
|
exports.default = TableFilter;
|
|
@@ -9,61 +9,6 @@ const Vue = require("vue");
|
|
|
9
9
|
;/* empty css */
|
|
10
10
|
require("../utils/formulajs/functionCore.js");
|
|
11
11
|
const eventFlowHandler = require("../utils/eventFlow/eventFlowHandler.js");
|
|
12
|
-
;/* empty css */
|
|
13
|
-
;/* empty css */
|
|
14
|
-
;/* empty css */
|
|
15
|
-
;/* empty css */
|
|
16
|
-
;/* empty css */
|
|
17
|
-
require("vxe-table");
|
|
18
|
-
require("xe-utils");
|
|
19
|
-
;/* empty css */
|
|
20
|
-
;/* empty css */
|
|
21
|
-
;/* empty css */
|
|
22
|
-
;/* empty css */
|
|
23
|
-
;/* empty css */
|
|
24
|
-
;/* empty css */
|
|
25
|
-
;/* empty css */
|
|
26
|
-
;/* empty css */
|
|
27
|
-
;/* empty css */
|
|
28
|
-
;/* empty css */
|
|
29
|
-
;/* empty css */
|
|
30
|
-
;/* empty css */
|
|
31
|
-
;/* empty css */
|
|
32
|
-
;/* empty css */
|
|
33
|
-
;/* empty css */
|
|
34
|
-
;/* empty css */
|
|
35
|
-
;/* empty css */
|
|
36
|
-
;/* empty css */
|
|
37
|
-
require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
|
|
38
|
-
require("../components/forms/text/index.js");
|
|
39
|
-
require("../components/forms/select/index.js");
|
|
40
|
-
require("../components/forms/multipleSelection/index.js");
|
|
41
|
-
require("../components/forms/date/index.js");
|
|
42
|
-
require("../components/forms/number/index.js");
|
|
43
|
-
;/* empty css */
|
|
44
|
-
;/* empty css */
|
|
45
|
-
;/* empty css */
|
|
46
|
-
;/* empty css */
|
|
47
|
-
;/* empty css */
|
|
48
|
-
;/* empty css */
|
|
49
|
-
require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
50
|
-
;/* empty css */
|
|
51
|
-
require("../utils/eventBus.js");
|
|
52
|
-
require("../../../../node_modules/decimal.js/decimal.js");
|
|
53
|
-
;/* empty css */
|
|
54
|
-
;/* empty css */
|
|
55
|
-
require("../../../../node_modules/grid-layout-plus/es/index.js");
|
|
56
|
-
require("../components/forms/formItem/index.js");
|
|
57
|
-
require("../components/details/header/index.js");
|
|
58
|
-
require("../components/details/main/index.js");
|
|
59
|
-
require("../components/details/footer/index.js");
|
|
60
|
-
;/* empty css */
|
|
61
|
-
;/* empty css */
|
|
62
|
-
;/* empty css */
|
|
63
|
-
;/* empty css */
|
|
64
|
-
require("../../../../node_modules/moment/dist/moment.js");
|
|
65
|
-
require("../utils/importantDataChange.js");
|
|
66
|
-
;/* empty css */
|
|
67
12
|
;/* empty css */
|
|
68
13
|
;/* empty css */
|
|
69
14
|
;/* empty css */
|
|
@@ -75,6 +20,7 @@ require("../utils/importantDataChange.js");
|
|
|
75
20
|
;/* empty css */
|
|
76
21
|
;/* empty css */
|
|
77
22
|
;/* empty css */
|
|
23
|
+
;/* empty css */
|
|
78
24
|
;/* empty css */
|
|
79
25
|
function usePageEvents(getOptions) {
|
|
80
26
|
if (typeof getOptions !== "function") {
|
|
@@ -293,19 +293,22 @@ class EventFlowParser {
|
|
|
293
293
|
* 执行动作
|
|
294
294
|
*/
|
|
295
295
|
async executeAction(node) {
|
|
296
|
-
var _a, _b, _c, _d
|
|
296
|
+
var _a, _b, _c, _d;
|
|
297
297
|
const handler = this.actionHandlers[node.actionType];
|
|
298
298
|
if (!handler) {
|
|
299
299
|
throw new Error(`未找到动作处理器: ${node.actionType}`);
|
|
300
300
|
}
|
|
301
|
+
const rawInstance = (_a = this.options) == null ? void 0 : _a.instance;
|
|
302
|
+
const isWrapped = rawInstance && !rawInstance.appContext && rawInstance.instance;
|
|
303
|
+
const instance = isWrapped ? rawInstance.instance : rawInstance;
|
|
301
304
|
const context = {
|
|
302
305
|
parser: this,
|
|
303
|
-
instance
|
|
304
|
-
ctx: (
|
|
305
|
-
customActions: (
|
|
306
|
-
localConfig: (
|
|
306
|
+
instance,
|
|
307
|
+
ctx: (rawInstance == null ? void 0 : rawInstance.proxy) ?? (instance == null ? void 0 : instance.proxy),
|
|
308
|
+
customActions: (_b = this.options) == null ? void 0 : _b.customActions,
|
|
309
|
+
localConfig: (_c = this.options) == null ? void 0 : _c.localConfig,
|
|
307
310
|
components: this.components,
|
|
308
|
-
metadata: (
|
|
311
|
+
metadata: (_d = this.options) == null ? void 0 : _d.metadata
|
|
309
312
|
};
|
|
310
313
|
return await handler(node, this.data, this.fields, context);
|
|
311
314
|
}
|