@fecp/designer 5.6.26 → 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/components/DocumentParam.vue.mjs +1 -1
- package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
- package/es/designer/src/packages/form/components/H2Wrapper.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/importantDataChange/index.vue.mjs +1 -1
- package/es/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/designer/src/packages/table/TableSetting.vue.mjs +19 -20
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
- package/es/designer/src/packages/table/tableBtn.vue.mjs +72 -16
- package/es/designer.css +205 -117
- 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/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/table/CustomButtons.vue.mjs +51 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +7 -3
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +6 -6
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +1 -1
- package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
- package/lib/designer/src/packages/form/components/H2Wrapper.vue.js +1 -1
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
- package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/packages/importantDataChange/index.vue.js +1 -1
- package/lib/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/designer/src/packages/table/TableSetting.vue.js +19 -20
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
- package/lib/designer/src/packages/table/tableBtn.vue.js +83 -27
- package/lib/designer.css +205 -117
- 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/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/table/CustomButtons.vue.js +51 -2
- package/lib/packages/vue/src/components/table/Table.vue.js +7 -3
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +5 -5
- package/package.json +1 -1
|
@@ -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;
|