@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
|
@@ -7,61 +7,6 @@ import { onUnmounted, onBeforeUnmount, onMounted } from "vue";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
import "../utils/formulajs/functionCore.mjs";
|
|
9
9
|
import { useEventFlow } from "../utils/eventFlow/eventFlowHandler.mjs";
|
|
10
|
-
/* empty css */
|
|
11
|
-
/* empty css */
|
|
12
|
-
/* empty css */
|
|
13
|
-
/* empty css */
|
|
14
|
-
/* empty css */
|
|
15
|
-
import "vxe-table";
|
|
16
|
-
import "xe-utils";
|
|
17
|
-
/* empty css */
|
|
18
|
-
/* empty css */
|
|
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
|
-
import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
|
|
36
|
-
import "../components/forms/text/index.mjs";
|
|
37
|
-
import "../components/forms/select/index.mjs";
|
|
38
|
-
import "../components/forms/multipleSelection/index.mjs";
|
|
39
|
-
import "../components/forms/date/index.mjs";
|
|
40
|
-
import "../components/forms/number/index.mjs";
|
|
41
|
-
/* empty css */
|
|
42
|
-
/* empty css */
|
|
43
|
-
/* empty css */
|
|
44
|
-
/* empty css */
|
|
45
|
-
/* empty css */
|
|
46
|
-
/* empty css */
|
|
47
|
-
import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
|
|
48
|
-
/* empty css */
|
|
49
|
-
import "../utils/eventBus.mjs";
|
|
50
|
-
import "../../../../node_modules/decimal.js/decimal.mjs";
|
|
51
|
-
/* empty css */
|
|
52
|
-
/* empty css */
|
|
53
|
-
import "../../../../node_modules/grid-layout-plus/es/index.mjs";
|
|
54
|
-
import "../components/forms/formItem/index.mjs";
|
|
55
|
-
import "../components/details/header/index.mjs";
|
|
56
|
-
import "../components/details/main/index.mjs";
|
|
57
|
-
import "../components/details/footer/index.mjs";
|
|
58
|
-
/* empty css */
|
|
59
|
-
/* empty css */
|
|
60
|
-
/* empty css */
|
|
61
|
-
/* empty css */
|
|
62
|
-
import "../../../../node_modules/moment/dist/moment.mjs";
|
|
63
|
-
import "../utils/importantDataChange.mjs";
|
|
64
|
-
/* empty css */
|
|
65
10
|
/* empty css */
|
|
66
11
|
/* empty css */
|
|
67
12
|
/* empty css */
|
|
@@ -73,6 +18,7 @@ import "../utils/importantDataChange.mjs";
|
|
|
73
18
|
/* empty css */
|
|
74
19
|
/* empty css */
|
|
75
20
|
/* empty css */
|
|
21
|
+
/* empty css */
|
|
76
22
|
/* empty css */
|
|
77
23
|
function usePageEvents(getOptions) {
|
|
78
24
|
if (typeof getOptions !== "function") {
|
|
@@ -291,19 +291,22 @@ class EventFlowParser {
|
|
|
291
291
|
* 执行动作
|
|
292
292
|
*/
|
|
293
293
|
async executeAction(node) {
|
|
294
|
-
var _a, _b, _c, _d
|
|
294
|
+
var _a, _b, _c, _d;
|
|
295
295
|
const handler = this.actionHandlers[node.actionType];
|
|
296
296
|
if (!handler) {
|
|
297
297
|
throw new Error(`未找到动作处理器: ${node.actionType}`);
|
|
298
298
|
}
|
|
299
|
+
const rawInstance = (_a = this.options) == null ? void 0 : _a.instance;
|
|
300
|
+
const isWrapped = rawInstance && !rawInstance.appContext && rawInstance.instance;
|
|
301
|
+
const instance = isWrapped ? rawInstance.instance : rawInstance;
|
|
299
302
|
const context = {
|
|
300
303
|
parser: this,
|
|
301
|
-
instance
|
|
302
|
-
ctx: (
|
|
303
|
-
customActions: (
|
|
304
|
-
localConfig: (
|
|
304
|
+
instance,
|
|
305
|
+
ctx: (rawInstance == null ? void 0 : rawInstance.proxy) ?? (instance == null ? void 0 : instance.proxy),
|
|
306
|
+
customActions: (_b = this.options) == null ? void 0 : _b.customActions,
|
|
307
|
+
localConfig: (_c = this.options) == null ? void 0 : _c.localConfig,
|
|
305
308
|
components: this.components,
|
|
306
|
-
metadata: (
|
|
309
|
+
metadata: (_d = this.options) == null ? void 0 : _d.metadata
|
|
307
310
|
};
|
|
308
311
|
return await handler(node, this.data, this.fields, context);
|
|
309
312
|
}
|
|
@@ -87,7 +87,7 @@ const widgets = require("../table/property/widgets.vue.js");
|
|
|
87
87
|
require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
88
88
|
;/* empty css */
|
|
89
89
|
;/* empty css */
|
|
90
|
-
;/* empty css
|
|
90
|
+
;/* empty css */
|
|
91
91
|
;/* empty css */
|
|
92
92
|
;/* empty css */
|
|
93
93
|
;/* empty css */
|
|
@@ -31,5 +31,5 @@ const _sfc_main = {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
const H2Wrapper = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
34
|
+
const H2Wrapper = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-c8a07776"]]);
|
|
35
35
|
exports.default = H2Wrapper;
|
|
@@ -15,7 +15,7 @@ const PageFooterSetting = require("./PageFooterSetting.vue.js");
|
|
|
15
15
|
const ComponentPreviewWrapper = require("./components/ComponentPreviewWrapper.vue.js");
|
|
16
16
|
const SubTitle = require("./components/SubTitle.vue.js");
|
|
17
17
|
const H2Wrapper = require("./components/H2Wrapper.vue.js");
|
|
18
|
-
const SubForm =
|
|
18
|
+
const SubForm = require("./components/SubForm.vue.js");
|
|
19
19
|
const approvalHistory = require("./components/approvalHistory.vue.js");
|
|
20
20
|
const SubTable = require("./components/SubTable.vue.js");
|
|
21
21
|
const Document = require("./components/Document.vue.js");
|
|
@@ -9,7 +9,7 @@ const widgets = require("./widgets.vue.js");
|
|
|
9
9
|
const pageHeaderBtn = require("./pageHeaderBtn.vue.js");
|
|
10
10
|
const pageFooterBtn = require("./pageFooterBtn.vue.js");
|
|
11
11
|
const subTitleH2 = require("./subTitleH2.vue.js");
|
|
12
|
-
const subForm =
|
|
12
|
+
const subForm = require("./subForm.vue.js");
|
|
13
13
|
const subTable = require("./subTable.vue.js");
|
|
14
14
|
const blank = require("./blank.vue.js");
|
|
15
15
|
const approvalHistory = require("./approvalHistory.vue.js");
|
|
@@ -160,8 +160,7 @@ const _sfc_main = {
|
|
|
160
160
|
_: 1
|
|
161
161
|
}, 8, ["modelValue"]),
|
|
162
162
|
Vue.unref(tableConfig).selectMode == "multiple" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
|
|
163
|
-
_cache[11] || (_cache[11] = Vue.createElementVNode("
|
|
164
|
-
_cache[12] || (_cache[12] = Vue.createElementVNode("span", { class: "text-label" }, "主键字段", -1)),
|
|
163
|
+
_cache[11] || (_cache[11] = Vue.createElementVNode("span", { class: "text-label" }, "主键字段", -1)),
|
|
165
164
|
Vue.createVNode(_component_el_select, {
|
|
166
165
|
modelValue: Vue.unref(tableConfig).pkFieldName,
|
|
167
166
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => Vue.unref(tableConfig).pkFieldName = $event),
|
|
@@ -203,15 +202,15 @@ const _sfc_main = {
|
|
|
203
202
|
_: 1
|
|
204
203
|
}, 8, ["modelValue"])
|
|
205
204
|
], 64)) : Vue.createCommentVNode("", true),
|
|
206
|
-
_cache[
|
|
207
|
-
_cache[
|
|
205
|
+
_cache[16] || (_cache[16] = Vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
|
|
206
|
+
_cache[17] || (_cache[17] = Vue.createElementVNode("span", { class: "text-label" }, "序号", -1)),
|
|
208
207
|
Vue.createVNode(_component_el_switch, {
|
|
209
208
|
modelValue: Vue.unref(tableConfig).showIndex,
|
|
210
209
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => Vue.unref(tableConfig).showIndex = $event),
|
|
211
210
|
size: "small"
|
|
212
211
|
}, null, 8, ["modelValue"]),
|
|
213
|
-
_cache[
|
|
214
|
-
_cache[
|
|
212
|
+
_cache[18] || (_cache[18] = Vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
|
|
213
|
+
_cache[19] || (_cache[19] = Vue.createElementVNode("span", { class: "text-label" }, "高度", -1)),
|
|
215
214
|
Vue.createVNode(_component_el_radio_group, {
|
|
216
215
|
modelValue: Vue.unref(tableConfig).heightMode,
|
|
217
216
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => Vue.unref(tableConfig).heightMode = $event),
|
|
@@ -219,13 +218,13 @@ const _sfc_main = {
|
|
|
219
218
|
}, {
|
|
220
219
|
default: Vue.withCtx(() => [
|
|
221
220
|
Vue.createVNode(_component_el_radio_button, { value: "auto" }, {
|
|
222
|
-
default: Vue.withCtx(() => _cache[
|
|
221
|
+
default: Vue.withCtx(() => _cache[12] || (_cache[12] = [
|
|
223
222
|
Vue.createTextVNode("自适应")
|
|
224
223
|
])),
|
|
225
224
|
_: 1
|
|
226
225
|
}),
|
|
227
226
|
Vue.createVNode(_component_el_radio_button, { value: "fixed" }, {
|
|
228
|
-
default: Vue.withCtx(() => _cache[
|
|
227
|
+
default: Vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
229
228
|
Vue.createTextVNode("固定")
|
|
230
229
|
])),
|
|
231
230
|
_: 1
|
|
@@ -242,13 +241,13 @@ const _sfc_main = {
|
|
|
242
241
|
"controls-position": "right",
|
|
243
242
|
class: "height-input"
|
|
244
243
|
}, {
|
|
245
|
-
append: Vue.withCtx(() => _cache[
|
|
244
|
+
append: Vue.withCtx(() => _cache[14] || (_cache[14] = [
|
|
246
245
|
Vue.createTextVNode("px")
|
|
247
246
|
])),
|
|
248
247
|
_: 1
|
|
249
248
|
}, 8, ["modelValue"])) : Vue.createCommentVNode("", true),
|
|
250
|
-
_cache[
|
|
251
|
-
_cache[
|
|
249
|
+
_cache[20] || (_cache[20] = Vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
|
|
250
|
+
_cache[21] || (_cache[21] = Vue.createElementVNode("span", { class: "text-label" }, "数据源", -1)),
|
|
252
251
|
Vue.createVNode(_component_el_dropdown, {
|
|
253
252
|
trigger: "click",
|
|
254
253
|
onCommand: handleDataSourceSelect
|
|
@@ -276,7 +275,7 @@ const _sfc_main = {
|
|
|
276
275
|
link: "",
|
|
277
276
|
onClick: handleAddDataSource
|
|
278
277
|
}, {
|
|
279
|
-
default: Vue.withCtx(() => _cache[
|
|
278
|
+
default: Vue.withCtx(() => _cache[15] || (_cache[15] = [
|
|
280
279
|
Vue.createTextVNode(" 新增数据源 ")
|
|
281
280
|
])),
|
|
282
281
|
_: 1
|
|
@@ -313,14 +312,14 @@ const _sfc_main = {
|
|
|
313
312
|
dropdown: Vue.withCtx(() => [
|
|
314
313
|
Vue.unref(sortConfigDropdownVisible) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4, [
|
|
315
314
|
Vue.createElementVNode("div", _hoisted_5, [
|
|
316
|
-
_cache[
|
|
315
|
+
_cache[24] || (_cache[24] = Vue.createElementVNode("span", { class: "sort-tip" }, "以下排序规则从上到下按序执行", -1)),
|
|
317
316
|
Vue.createVNode(_component_el_button, {
|
|
318
317
|
type: "primary",
|
|
319
318
|
size: "small",
|
|
320
319
|
onClick: addSortRule,
|
|
321
320
|
icon: "Plus"
|
|
322
321
|
}, {
|
|
323
|
-
default: Vue.withCtx(() => _cache[
|
|
322
|
+
default: Vue.withCtx(() => _cache[23] || (_cache[23] = [
|
|
324
323
|
Vue.createTextVNode(" 添加排序规则 ")
|
|
325
324
|
])),
|
|
326
325
|
_: 1
|
|
@@ -396,13 +395,13 @@ const _sfc_main = {
|
|
|
396
395
|
}, {
|
|
397
396
|
default: Vue.withCtx(() => [
|
|
398
397
|
Vue.createVNode(_component_el_radio, { value: "asc" }, {
|
|
399
|
-
default: Vue.withCtx(() => _cache[
|
|
398
|
+
default: Vue.withCtx(() => _cache[25] || (_cache[25] = [
|
|
400
399
|
Vue.createTextVNode("升序")
|
|
401
400
|
])),
|
|
402
401
|
_: 1
|
|
403
402
|
}),
|
|
404
403
|
Vue.createVNode(_component_el_radio, { value: "desc" }, {
|
|
405
|
-
default: Vue.withCtx(() => _cache[
|
|
404
|
+
default: Vue.withCtx(() => _cache[26] || (_cache[26] = [
|
|
406
405
|
Vue.createTextVNode("降序")
|
|
407
406
|
])),
|
|
408
407
|
_: 1
|
|
@@ -436,7 +435,7 @@ const _sfc_main = {
|
|
|
436
435
|
size: "small"
|
|
437
436
|
}, {
|
|
438
437
|
default: Vue.withCtx(() => [
|
|
439
|
-
_cache[
|
|
438
|
+
_cache[22] || (_cache[22] = Vue.createTextVNode(" 配置排序 ")),
|
|
440
439
|
Vue.unref(sortRules).length > 0 ? (Vue.openBlock(), Vue.createBlock(_component_el_tag, {
|
|
441
440
|
key: 0,
|
|
442
441
|
size: "small",
|
|
@@ -454,7 +453,7 @@ const _sfc_main = {
|
|
|
454
453
|
]),
|
|
455
454
|
_: 1
|
|
456
455
|
}),
|
|
457
|
-
_cache[
|
|
456
|
+
_cache[28] || (_cache[28] = Vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
|
|
458
457
|
Vue.createVNode(_component_el_dropdown, {
|
|
459
458
|
size: "small",
|
|
460
459
|
"hide-on-click": false,
|
|
@@ -496,7 +495,7 @@ const _sfc_main = {
|
|
|
496
495
|
size: "small"
|
|
497
496
|
}, {
|
|
498
497
|
default: Vue.withCtx(() => [
|
|
499
|
-
_cache[
|
|
498
|
+
_cache[27] || (_cache[27] = Vue.createTextVNode("列显隐 ")),
|
|
500
499
|
Vue.createVNode(_component_el_tag, {
|
|
501
500
|
size: "small",
|
|
502
501
|
type: "primary",
|
|
@@ -524,5 +523,5 @@ const _sfc_main = {
|
|
|
524
523
|
};
|
|
525
524
|
}
|
|
526
525
|
};
|
|
527
|
-
const TableSetting = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
526
|
+
const TableSetting = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3c1e04c6"]]);
|
|
528
527
|
exports.default = TableSetting;
|
|
@@ -4,16 +4,25 @@ require("../../../../node_modules/element-plus/es/index.js");
|
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
|
+
;/* empty css */
|
|
12
|
+
;/* empty css */
|
|
13
|
+
;/* empty css */
|
|
7
14
|
const Vue = require("vue");
|
|
8
15
|
const _default = require("./default.js");
|
|
9
16
|
const vueDraggablePlus = require("../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js");
|
|
10
|
-
const index$
|
|
17
|
+
const index$4 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
11
18
|
const common = require("../utils/common.js");
|
|
12
19
|
;/* empty css */
|
|
13
20
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
14
21
|
const index = require("../../../../node_modules/element-plus/es/components/icon/index.js");
|
|
15
|
-
const index$1 = require("../../../../node_modules/element-plus/es/components/
|
|
16
|
-
const index$
|
|
22
|
+
const index$1 = require("../../../../node_modules/element-plus/es/components/switch/index.js");
|
|
23
|
+
const index$2 = require("../../../../node_modules/element-plus/es/components/select/index.js");
|
|
24
|
+
const index$3 = require("../../../../node_modules/element-plus/es/components/button/index.js");
|
|
25
|
+
const index$5 = require("../../../../node_modules/element-plus/es/components/link/index.js");
|
|
17
26
|
const _hoisted_1 = { class: "table-work-btns" };
|
|
18
27
|
const _hoisted_2 = { class: "left" };
|
|
19
28
|
const _hoisted_3 = {
|
|
@@ -24,9 +33,13 @@ const _hoisted_4 = {
|
|
|
24
33
|
key: 1,
|
|
25
34
|
class: "template-name"
|
|
26
35
|
};
|
|
27
|
-
const _hoisted_5 =
|
|
28
|
-
|
|
29
|
-
|
|
36
|
+
const _hoisted_5 = {
|
|
37
|
+
key: 2,
|
|
38
|
+
class: "setting"
|
|
39
|
+
};
|
|
40
|
+
const _hoisted_6 = ["onMouseenter", "onClick"];
|
|
41
|
+
const _hoisted_7 = { class: "right" };
|
|
42
|
+
const _hoisted_8 = ["onMouseenter", "onClick"];
|
|
30
43
|
const _sfc_main = {
|
|
31
44
|
__name: "tableBtn",
|
|
32
45
|
setup(__props) {
|
|
@@ -35,9 +48,9 @@ const _sfc_main = {
|
|
|
35
48
|
});
|
|
36
49
|
const btnTypeConfig = {
|
|
37
50
|
custom: { type: "primary" },
|
|
38
|
-
refresh: { icon: index$
|
|
39
|
-
export: { icon: index$
|
|
40
|
-
personalize: { icon: index$
|
|
51
|
+
refresh: { icon: index$4.Refresh },
|
|
52
|
+
export: { icon: index$4.Download },
|
|
53
|
+
personalize: { icon: index$4.Setting }
|
|
41
54
|
};
|
|
42
55
|
function getBtnProps(item) {
|
|
43
56
|
const data = btnTypeConfig[item.btnType] || {};
|
|
@@ -48,6 +61,11 @@ const _sfc_main = {
|
|
|
48
61
|
}
|
|
49
62
|
return data;
|
|
50
63
|
}
|
|
64
|
+
const availableFields = Vue.computed(() => {
|
|
65
|
+
var _a;
|
|
66
|
+
const fields = ((_a = editConfigData.value) == null ? void 0 : _a.fieldsData) || [];
|
|
67
|
+
return fields.filter((field) => field.isShow && field.fieldType === "number");
|
|
68
|
+
});
|
|
51
69
|
function addOptBtns(state) {
|
|
52
70
|
const newBtn = {
|
|
53
71
|
id: Date.now(),
|
|
@@ -70,8 +88,11 @@ const _sfc_main = {
|
|
|
70
88
|
return (_ctx, _cache) => {
|
|
71
89
|
const _component_ArrowLeftBold = Vue.resolveComponent("ArrowLeftBold");
|
|
72
90
|
const _component_el_icon = index.ElIcon;
|
|
73
|
-
const
|
|
74
|
-
const
|
|
91
|
+
const _component_el_switch = index$1.ElSwitch;
|
|
92
|
+
const _component_el_option = index$2.ElOption;
|
|
93
|
+
const _component_el_select = index$2.ElSelect;
|
|
94
|
+
const _component_el_button = index$3.ElButton;
|
|
95
|
+
const _component_el_link = index$5.ElLink;
|
|
75
96
|
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
76
97
|
Vue.createElementVNode("div", _hoisted_2, [
|
|
77
98
|
editConfigData.value.showReturn ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3, [
|
|
@@ -83,9 +104,44 @@ const _sfc_main = {
|
|
|
83
104
|
})
|
|
84
105
|
])) : Vue.createCommentVNode("", true),
|
|
85
106
|
editConfigData.value.showTitle ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4, Vue.toDisplayString(editConfigData.value.templateName), 1)) : Vue.createCommentVNode("", true),
|
|
107
|
+
editConfigData.value.selectMode == "multiple" ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_5, [
|
|
108
|
+
_cache[10] || (_cache[10] = Vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
|
|
109
|
+
_cache[11] || (_cache[11] = Vue.createElementVNode("span", { class: "text-label" }, "开启多选合计", -1)),
|
|
110
|
+
Vue.createVNode(_component_el_switch, {
|
|
111
|
+
modelValue: editConfigData.value.showSelectionSummary,
|
|
112
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => editConfigData.value.showSelectionSummary = $event),
|
|
113
|
+
size: "small"
|
|
114
|
+
}, null, 8, ["modelValue"]),
|
|
115
|
+
editConfigData.value.showSelectionSummary ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
|
|
116
|
+
_cache[8] || (_cache[8] = Vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
|
|
117
|
+
_cache[9] || (_cache[9] = Vue.createElementVNode("span", { class: "text-label" }, "合计列", -1)),
|
|
118
|
+
Vue.createVNode(_component_el_select, {
|
|
119
|
+
modelValue: editConfigData.value.selectionSummaryFields,
|
|
120
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => editConfigData.value.selectionSummaryFields = $event),
|
|
121
|
+
multiple: "",
|
|
122
|
+
size: "small",
|
|
123
|
+
style: { "width": "200px" },
|
|
124
|
+
"collapse-tags": "",
|
|
125
|
+
"collapse-tags-tooltip": "",
|
|
126
|
+
placeholder: "请选择要合计的列"
|
|
127
|
+
}, {
|
|
128
|
+
default: Vue.withCtx(() => [
|
|
129
|
+
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(availableFields.value, (field) => {
|
|
130
|
+
return Vue.openBlock(), Vue.createBlock(_component_el_option, {
|
|
131
|
+
key: field.fieldName,
|
|
132
|
+
label: field.label || field.fieldName,
|
|
133
|
+
value: field.fieldName
|
|
134
|
+
}, null, 8, ["label", "value"]);
|
|
135
|
+
}), 128))
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}, 8, ["modelValue"])
|
|
139
|
+
], 64)) : Vue.createCommentVNode("", true),
|
|
140
|
+
_cache[12] || (_cache[12] = Vue.createElementVNode("div", { class: "setting-divider" }, null, -1))
|
|
141
|
+
])) : Vue.createCommentVNode("", true),
|
|
86
142
|
Vue.createVNode(Vue.unref(vueDraggablePlus.VueDraggable), {
|
|
87
143
|
modelValue: editConfigData.value.customBtns.left,
|
|
88
|
-
"onUpdate:modelValue": _cache[
|
|
144
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => editConfigData.value.customBtns.left = $event),
|
|
89
145
|
animation: 150,
|
|
90
146
|
group: { name: "tableBtn" },
|
|
91
147
|
ghostClass: "ghost",
|
|
@@ -96,7 +152,7 @@ const _sfc_main = {
|
|
|
96
152
|
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
97
153
|
class: Vue.normalizeClass(["optBtn", Vue.unref(common.getCurrentClass)(item)]),
|
|
98
154
|
onMouseenter: ($event) => Vue.unref(common.setHoverItem)(item),
|
|
99
|
-
onMouseleave: _cache[
|
|
155
|
+
onMouseleave: _cache[2] || (_cache[2] = ($event) => Vue.unref(common.setHoverItem)()),
|
|
100
156
|
onClick: Vue.withModifiers(($event) => Vue.unref(common.setSelectedItem)(item), ["stop"])
|
|
101
157
|
}, [
|
|
102
158
|
Vue.createVNode(_component_el_button, Vue.mergeProps({
|
|
@@ -113,11 +169,11 @@ const _sfc_main = {
|
|
|
113
169
|
onClick: Vue.withModifiers(($event) => removeOptBtns("left", item), ["stop"])
|
|
114
170
|
}, {
|
|
115
171
|
default: Vue.withCtx(() => [
|
|
116
|
-
Vue.createVNode(Vue.unref(index$
|
|
172
|
+
Vue.createVNode(Vue.unref(index$4.Close))
|
|
117
173
|
]),
|
|
118
174
|
_: 2
|
|
119
175
|
}, 1032, ["onClick"])
|
|
120
|
-
], 42,
|
|
176
|
+
], 42, _hoisted_6);
|
|
121
177
|
}), 256))
|
|
122
178
|
]),
|
|
123
179
|
_: 1
|
|
@@ -126,31 +182,31 @@ const _sfc_main = {
|
|
|
126
182
|
class: "optBtn addLink",
|
|
127
183
|
underline: "never",
|
|
128
184
|
type: "primary",
|
|
129
|
-
icon: Vue.unref(index$
|
|
130
|
-
onClick: _cache[
|
|
185
|
+
icon: Vue.unref(index$4.Plus),
|
|
186
|
+
onClick: _cache[4] || (_cache[4] = Vue.withModifiers(($event) => addOptBtns("left"), ["stop"]))
|
|
131
187
|
}, {
|
|
132
|
-
default: Vue.withCtx(() => _cache[
|
|
188
|
+
default: Vue.withCtx(() => _cache[13] || (_cache[13] = [
|
|
133
189
|
Vue.createTextVNode("按钮")
|
|
134
190
|
])),
|
|
135
191
|
_: 1
|
|
136
192
|
}, 8, ["icon"])
|
|
137
193
|
]),
|
|
138
|
-
Vue.createElementVNode("div",
|
|
194
|
+
Vue.createElementVNode("div", _hoisted_7, [
|
|
139
195
|
Vue.createVNode(_component_el_link, {
|
|
140
196
|
class: "optBtn addLink",
|
|
141
197
|
underline: "never",
|
|
142
198
|
type: "primary",
|
|
143
|
-
icon: Vue.unref(index$
|
|
144
|
-
onClick: _cache[
|
|
199
|
+
icon: Vue.unref(index$4.Plus),
|
|
200
|
+
onClick: _cache[5] || (_cache[5] = Vue.withModifiers(($event) => addOptBtns("right"), ["stop"]))
|
|
145
201
|
}, {
|
|
146
|
-
default: Vue.withCtx(() => _cache[
|
|
202
|
+
default: Vue.withCtx(() => _cache[14] || (_cache[14] = [
|
|
147
203
|
Vue.createTextVNode("按钮")
|
|
148
204
|
])),
|
|
149
205
|
_: 1
|
|
150
206
|
}, 8, ["icon"]),
|
|
151
207
|
Vue.createVNode(Vue.unref(vueDraggablePlus.VueDraggable), {
|
|
152
208
|
modelValue: editConfigData.value.customBtns.right,
|
|
153
|
-
"onUpdate:modelValue": _cache[
|
|
209
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => editConfigData.value.customBtns.right = $event),
|
|
154
210
|
animation: 150,
|
|
155
211
|
group: { name: "tableBtn" },
|
|
156
212
|
ghostClass: "ghost",
|
|
@@ -161,7 +217,7 @@ const _sfc_main = {
|
|
|
161
217
|
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
162
218
|
class: Vue.normalizeClass(["optBtn", Vue.unref(common.getCurrentClass)(item)]),
|
|
163
219
|
onMouseenter: ($event) => Vue.unref(common.setHoverItem)(item),
|
|
164
|
-
onMouseleave: _cache[
|
|
220
|
+
onMouseleave: _cache[6] || (_cache[6] = ($event) => Vue.unref(common.setHoverItem)()),
|
|
165
221
|
onClick: Vue.withModifiers(($event) => Vue.unref(common.setSelectedItem)(item), ["stop"])
|
|
166
222
|
}, [
|
|
167
223
|
Vue.createVNode(_component_el_button, Vue.mergeProps({
|
|
@@ -178,11 +234,11 @@ const _sfc_main = {
|
|
|
178
234
|
onClick: Vue.withModifiers(($event) => removeOptBtns("right", item), ["stop"])
|
|
179
235
|
}, {
|
|
180
236
|
default: Vue.withCtx(() => [
|
|
181
|
-
Vue.createVNode(Vue.unref(index$
|
|
237
|
+
Vue.createVNode(Vue.unref(index$4.Close))
|
|
182
238
|
]),
|
|
183
239
|
_: 2
|
|
184
240
|
}, 1032, ["onClick"])
|
|
185
|
-
], 42,
|
|
241
|
+
], 42, _hoisted_8);
|
|
186
242
|
}), 256))
|
|
187
243
|
]),
|
|
188
244
|
_: 1
|
|
@@ -192,5 +248,5 @@ const _sfc_main = {
|
|
|
192
248
|
};
|
|
193
249
|
}
|
|
194
250
|
};
|
|
195
|
-
const TableBtn = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
251
|
+
const TableBtn = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-08fd854a"]]);
|
|
196
252
|
exports.default = TableBtn;
|