@fecp/designer 5.3.6 → 5.3.7
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 +196 -239
- package/es/node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config.mjs +1 -1
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/components/FilterConfigDisplay.vue.mjs +2 -3
- package/es/packages/designer/src/components/FormulaEditorInput.vue.mjs +33 -8
- package/es/packages/designer/src/components/ValueSelectorPopover.vue2.mjs +62 -39
- package/es/packages/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +3 -3
- package/es/packages/designer/src/layout/header/index.vue.mjs +1 -1
- package/es/packages/designer/src/packages/advancedFilter/AdvancedFilter.vue2.mjs +4 -4
- package/es/packages/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +34 -28
- package/es/packages/designer/src/packages/dataLinkage/index.vue.mjs +75 -69
- package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +1 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/Dialog.vue.mjs +49 -11
- package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +2 -2
- package/es/packages/designer/src/packages/form/aside/index.mjs +1 -0
- package/es/packages/designer/src/packages/form/components/SubForm.vue.mjs +33 -7
- package/es/packages/designer/src/packages/form/index.vue.mjs +15 -2
- package/es/packages/designer/src/packages/form/property/subForm.vue.mjs +53 -11
- package/es/packages/designer/src/packages/formulaEditor/components/FieldVariable.vue2.mjs +3 -2
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +1 -0
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +16 -5
- package/es/packages/vue/src/components/forms/form/validation.mjs +18 -6
- package/es/packages/vue/src/components/forms/subForm/SubForm.vue.mjs +31 -2
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +2 -0
- package/lib/designer.css +196 -239
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/components/FilterConfigDisplay.vue.js +2 -3
- package/lib/packages/designer/src/components/FormulaEditorInput.vue.js +32 -7
- package/lib/packages/designer/src/components/ValueSelectorPopover.vue2.js +68 -45
- package/lib/packages/designer/src/layout/aside/HiddenFieldDialog.vue.js +3 -3
- package/lib/packages/designer/src/layout/header/index.vue.js +1 -1
- package/lib/packages/designer/src/packages/advancedFilter/AdvancedFilter.vue2.js +4 -4
- package/lib/packages/designer/src/packages/advancedFilter/ValueInput.vue2.js +34 -28
- package/lib/packages/designer/src/packages/dataLinkage/index.vue.js +75 -69
- package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +1 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/Dialog.vue.js +48 -10
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +2 -2
- package/lib/packages/designer/src/packages/form/aside/index.js +1 -0
- package/lib/packages/designer/src/packages/form/components/SubForm.vue.js +33 -7
- package/lib/packages/designer/src/packages/form/index.vue.js +15 -2
- package/lib/packages/designer/src/packages/form/property/subForm.vue.js +53 -11
- package/lib/packages/designer/src/packages/formulaEditor/components/FieldVariable.vue2.js +3 -2
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +1 -0
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +28 -17
- package/lib/packages/vue/src/components/forms/form/validation.js +18 -6
- package/lib/packages/vue/src/components/forms/subForm/SubForm.vue.js +30 -1
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +2 -0
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ const _sfc_main = {
|
|
|
36
36
|
const formatFilterConfigStyled = (config, isRoot = true) => {
|
|
37
37
|
var _a, _b, _c, _d;
|
|
38
38
|
if (!config || !((_a = config.conditions) == null ? void 0 : _a.length) && !((_b = config.groups) == null ? void 0 : _b.length)) {
|
|
39
|
-
return vue.h("span", { class: "no-condition" }, "
|
|
39
|
+
return vue.h("span", { class: "no-condition" }, "");
|
|
40
40
|
}
|
|
41
41
|
const parts = [];
|
|
42
42
|
let firstCondition = true;
|
|
@@ -91,7 +91,6 @@ const _sfc_main = {
|
|
|
91
91
|
} else {
|
|
92
92
|
value = formatValue(condition.showText, condition.operator);
|
|
93
93
|
}
|
|
94
|
-
debugger;
|
|
95
94
|
if (value || value == 0) {
|
|
96
95
|
parts.push(vue.h("span", { class: "field-value" }, value));
|
|
97
96
|
}
|
|
@@ -143,5 +142,5 @@ const _sfc_main = {
|
|
|
143
142
|
};
|
|
144
143
|
}
|
|
145
144
|
};
|
|
146
|
-
const FilterConfigDisplay = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
145
|
+
const FilterConfigDisplay = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-79a3fa24"]]);
|
|
147
146
|
exports.default = FilterConfigDisplay;
|
|
@@ -54,16 +54,41 @@ const _sfc_main = {
|
|
|
54
54
|
});
|
|
55
55
|
const internalFieldList = vue.computed(() => {
|
|
56
56
|
if (props.fieldList && props.fieldList.length > 0) {
|
|
57
|
-
return props.fieldList;
|
|
57
|
+
return filteredFields(props.fieldList);
|
|
58
58
|
}
|
|
59
59
|
const fields = common.getEditConfigDataFields() || [];
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
const hiddenFields = common.getEditConfigData().hiddenFields || [];
|
|
61
|
+
const filtered = filteredFields(
|
|
62
|
+
fields.map((item) => ({
|
|
63
|
+
id: item == null ? void 0 : item.id,
|
|
64
|
+
label: item == null ? void 0 : item.label,
|
|
65
|
+
fieldType: item == null ? void 0 : item.fieldType,
|
|
66
|
+
fieldName: item == null ? void 0 : item.fieldName
|
|
67
|
+
}))
|
|
68
|
+
);
|
|
69
|
+
return [
|
|
70
|
+
...filtered,
|
|
71
|
+
...hiddenFields.map((item) => ({
|
|
72
|
+
id: item == null ? void 0 : item.id,
|
|
73
|
+
label: item == null ? void 0 : item.label,
|
|
74
|
+
fieldType: "hidden",
|
|
75
|
+
fieldName: item == null ? void 0 : item.fieldName
|
|
76
|
+
}))
|
|
77
|
+
];
|
|
66
78
|
});
|
|
79
|
+
function filteredFields(fields) {
|
|
80
|
+
const includeArr = [
|
|
81
|
+
"text",
|
|
82
|
+
"textarea",
|
|
83
|
+
"number",
|
|
84
|
+
"date",
|
|
85
|
+
"select",
|
|
86
|
+
"multipleSelection",
|
|
87
|
+
"radio",
|
|
88
|
+
"checkbox"
|
|
89
|
+
];
|
|
90
|
+
return fields.filter((item) => includeArr.includes(item.fieldType));
|
|
91
|
+
}
|
|
67
92
|
function openDialog() {
|
|
68
93
|
var _a, _b;
|
|
69
94
|
internalFormulaConf.value = {
|
|
@@ -8,9 +8,10 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
8
8
|
require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
|
|
9
9
|
;/* empty css */
|
|
10
10
|
;/* empty css */
|
|
11
|
+
;/* empty css */
|
|
11
12
|
;/* empty css */
|
|
12
13
|
const vue = require("vue");
|
|
13
|
-
const index$
|
|
14
|
+
const index$7 = require("../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.2_vue@3.5.13_typescript@5.7.3_/node_modules/@element-plus/icons-vue/dist/index.js");
|
|
14
15
|
const common = require("../packages/utils/common.js");
|
|
15
16
|
;/* empty css */
|
|
16
17
|
const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
|
|
@@ -18,16 +19,22 @@ const index = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.
|
|
|
18
19
|
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/tabs/index.js");
|
|
19
20
|
const index$2 = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.js");
|
|
20
21
|
const index$3 = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/scrollbar/index.js");
|
|
21
|
-
const index$4 = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/
|
|
22
|
-
const index$5 = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/
|
|
22
|
+
const index$4 = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/empty/index.js");
|
|
23
|
+
const index$5 = require("../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/alert/index.js");
|
|
24
|
+
const index$6 = 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");
|
|
23
25
|
const _hoisted_1 = { class: "value-selector-tabs" };
|
|
24
|
-
const _hoisted_2 = {
|
|
25
|
-
const _hoisted_3 = { class: "field-
|
|
26
|
-
const _hoisted_4 =
|
|
27
|
-
const _hoisted_5 =
|
|
28
|
-
const _hoisted_6 = { class: "field-
|
|
29
|
-
const _hoisted_7 = { class: "
|
|
30
|
-
const _hoisted_8 = {
|
|
26
|
+
const _hoisted_2 = { key: 0 };
|
|
27
|
+
const _hoisted_3 = { class: "field-group-label" };
|
|
28
|
+
const _hoisted_4 = { class: "field-list" };
|
|
29
|
+
const _hoisted_5 = ["onClick"];
|
|
30
|
+
const _hoisted_6 = { class: "field-label" };
|
|
31
|
+
const _hoisted_7 = { class: "field-code" };
|
|
32
|
+
const _hoisted_8 = {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: "no-data"
|
|
35
|
+
};
|
|
36
|
+
const _hoisted_9 = { class: "user-info-list" };
|
|
37
|
+
const _hoisted_10 = { class: "popover-footer" };
|
|
31
38
|
const _sfc_main = {
|
|
32
39
|
__name: "ValueSelectorPopover",
|
|
33
40
|
props: {
|
|
@@ -54,7 +61,7 @@ const _sfc_main = {
|
|
|
54
61
|
const editConfigData = common.getEditConfigData();
|
|
55
62
|
return (editConfigData == null ? void 0 : editConfigData.hiddenFields) || [];
|
|
56
63
|
});
|
|
57
|
-
const
|
|
64
|
+
const filteredFields = vue.computed(() => {
|
|
58
65
|
const formFields = (props.availableFields || []).filter(
|
|
59
66
|
(item) => !item.isHidden
|
|
60
67
|
);
|
|
@@ -68,13 +75,30 @@ const _sfc_main = {
|
|
|
68
75
|
options: [],
|
|
69
76
|
isHidden: true
|
|
70
77
|
}));
|
|
78
|
+
const allFields = [...formFields, ...hiddenFields];
|
|
79
|
+
if (!fieldSearchText.value.trim()) {
|
|
80
|
+
return allFields;
|
|
81
|
+
}
|
|
82
|
+
const searchLower = fieldSearchText.value.trim().toLowerCase();
|
|
83
|
+
return allFields.filter((field) => {
|
|
84
|
+
const label = (field.label || "").toLowerCase();
|
|
85
|
+
const fieldName = (field.fieldName || "").toLowerCase();
|
|
86
|
+
return label.includes(searchLower) || fieldName.includes(searchLower);
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
const groupedFields = vue.computed(() => {
|
|
90
|
+
if (filteredFields.value.length === 0) {
|
|
91
|
+
return [];
|
|
92
|
+
}
|
|
71
93
|
const result = [];
|
|
94
|
+
const formFields = filteredFields.value.filter((item) => !item.isHidden);
|
|
72
95
|
if (formFields.length > 0) {
|
|
73
96
|
result.push({
|
|
74
97
|
groupLabel: "表单字段",
|
|
75
98
|
items: formFields
|
|
76
99
|
});
|
|
77
100
|
}
|
|
101
|
+
const hiddenFields = filteredFields.value.filter((item) => item.isHidden);
|
|
78
102
|
if (hiddenFields.length > 0) {
|
|
79
103
|
result.push({
|
|
80
104
|
groupLabel: "隐藏域",
|
|
@@ -83,15 +107,6 @@ const _sfc_main = {
|
|
|
83
107
|
}
|
|
84
108
|
return result;
|
|
85
109
|
});
|
|
86
|
-
vue.computed(() => {
|
|
87
|
-
if (!fieldSearchText.value) {
|
|
88
|
-
return props.availableFields;
|
|
89
|
-
}
|
|
90
|
-
const searchLower = fieldSearchText.value.toLowerCase();
|
|
91
|
-
return props.availableFields.filter(
|
|
92
|
-
(field) => (field.label || field.fieldName || "").toLowerCase().includes(searchLower) || (field.fieldName || "").toLowerCase().includes(searchLower)
|
|
93
|
-
);
|
|
94
|
-
});
|
|
95
110
|
const selectField = (fieldId) => {
|
|
96
111
|
selectedFieldId.value = fieldId;
|
|
97
112
|
};
|
|
@@ -130,11 +145,12 @@ const _sfc_main = {
|
|
|
130
145
|
}
|
|
131
146
|
});
|
|
132
147
|
return (_ctx, _cache) => {
|
|
133
|
-
const _component_el_button = index$
|
|
148
|
+
const _component_el_button = index$6.ElButton;
|
|
134
149
|
const _component_el_input = index$2.ElInput;
|
|
150
|
+
const _component_el_empty = index$4.ElEmpty;
|
|
135
151
|
const _component_el_scrollbar = index$3.ElScrollbar;
|
|
136
152
|
const _component_el_tab_pane = index$1.ElTabPane;
|
|
137
|
-
const _component_el_alert = index$
|
|
153
|
+
const _component_el_alert = index$5.ElAlert;
|
|
138
154
|
const _component_el_tabs = index$1.ElTabs;
|
|
139
155
|
const _component_el_popover = index.ElPopover;
|
|
140
156
|
return vue.openBlock(), vue.createBlock(_component_el_popover, {
|
|
@@ -149,7 +165,7 @@ const _sfc_main = {
|
|
|
149
165
|
}, {
|
|
150
166
|
reference: vue.withCtx(() => [
|
|
151
167
|
vue.createVNode(_component_el_button, {
|
|
152
|
-
icon: vue.unref(index$
|
|
168
|
+
icon: vue.unref(index$7.Connection),
|
|
153
169
|
disabled: __props.disabled,
|
|
154
170
|
size: "small",
|
|
155
171
|
class: "dev-value-selector-btn"
|
|
@@ -177,25 +193,32 @@ const _sfc_main = {
|
|
|
177
193
|
}, null, 8, ["modelValue"]),
|
|
178
194
|
vue.createVNode(_component_el_scrollbar, { "max-height": "300px" }, {
|
|
179
195
|
default: vue.withCtx(() => [
|
|
180
|
-
(vue.openBlock(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
196
|
+
groupedFields.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
197
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(groupedFields.value, (group) => {
|
|
198
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
199
|
+
key: group.groupLabel
|
|
200
|
+
}, [
|
|
201
|
+
vue.createElementVNode("div", _hoisted_3, vue.toDisplayString(group.groupLabel), 1),
|
|
202
|
+
vue.createElementVNode("ul", _hoisted_4, [
|
|
203
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group.items, (field) => {
|
|
204
|
+
return vue.openBlock(), vue.createElementBlock("li", {
|
|
205
|
+
key: field.id,
|
|
206
|
+
class: vue.normalizeClass(["field-item", { active: selectedFieldId.value === field.id }]),
|
|
207
|
+
onClick: ($event) => selectField(field.id)
|
|
208
|
+
}, [
|
|
209
|
+
vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(field.label || field.fieldName), 1),
|
|
210
|
+
vue.createElementVNode("span", _hoisted_7, "(" + vue.toDisplayString(field.fieldName) + ")", 1)
|
|
211
|
+
], 10, _hoisted_5);
|
|
212
|
+
}), 128))
|
|
213
|
+
])
|
|
214
|
+
]);
|
|
215
|
+
}), 128))
|
|
216
|
+
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
217
|
+
vue.createVNode(_component_el_empty, {
|
|
218
|
+
description: "未找到匹配的字段",
|
|
219
|
+
"image-size": 80
|
|
220
|
+
})
|
|
221
|
+
]))
|
|
199
222
|
]),
|
|
200
223
|
_: 1
|
|
201
224
|
})
|
|
@@ -209,7 +232,7 @@ const _sfc_main = {
|
|
|
209
232
|
default: vue.withCtx(() => [
|
|
210
233
|
vue.createVNode(_component_el_scrollbar, { "max-height": "400px" }, {
|
|
211
234
|
default: vue.withCtx(() => [
|
|
212
|
-
vue.createElementVNode("ul",
|
|
235
|
+
vue.createElementVNode("ul", _hoisted_9, [
|
|
213
236
|
vue.createElementVNode("li", {
|
|
214
237
|
value: "userCode",
|
|
215
238
|
class: vue.normalizeClass(["user-info-item", { active: selectedUserInfoKey.value === "userCode" }]),
|
|
@@ -289,7 +312,7 @@ const _sfc_main = {
|
|
|
289
312
|
_: 1
|
|
290
313
|
}, 8, ["modelValue"])
|
|
291
314
|
]),
|
|
292
|
-
vue.createElementVNode("div",
|
|
315
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
293
316
|
vue.createVNode(_component_el_button, {
|
|
294
317
|
onClick: _cache[9] || (_cache[9] = ($event) => showSelector.value = false)
|
|
295
318
|
}, {
|
|
@@ -314,5 +337,5 @@ const _sfc_main = {
|
|
|
314
337
|
};
|
|
315
338
|
}
|
|
316
339
|
};
|
|
317
|
-
const ValueSelectorPopover = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
340
|
+
const ValueSelectorPopover = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1cc2af93"]]);
|
|
318
341
|
exports.default = ValueSelectorPopover;
|
|
@@ -73,8 +73,8 @@ const _sfc_main = {
|
|
|
73
73
|
setTimeout(() => {
|
|
74
74
|
const cells = document.querySelectorAll(".el-table__body .el-input input");
|
|
75
75
|
if (cells.length > 0) {
|
|
76
|
-
cells[
|
|
77
|
-
cells[
|
|
76
|
+
cells[cells.length - 3].focus();
|
|
77
|
+
cells[cells.length - 3].select();
|
|
78
78
|
}
|
|
79
79
|
}, 100);
|
|
80
80
|
}
|
|
@@ -374,5 +374,5 @@ const _sfc_main = {
|
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
|
-
const HiddenFieldDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
377
|
+
const HiddenFieldDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-396c5fa5"]]);
|
|
378
378
|
exports.default = HiddenFieldDialog;
|
|
@@ -266,8 +266,7 @@ const _sfc_main = {
|
|
|
266
266
|
default: vue.withCtx(() => [
|
|
267
267
|
vue.createVNode(_component_el_form_item, {
|
|
268
268
|
prop: "conditions." + index2 + ".value",
|
|
269
|
-
style: { "width": "100%" }
|
|
270
|
-
size: "default"
|
|
269
|
+
style: { "width": "100%" }
|
|
271
270
|
}, {
|
|
272
271
|
default: vue.withCtx(() => [
|
|
273
272
|
vue.createVNode(ValueInput.default, {
|
|
@@ -280,7 +279,8 @@ const _sfc_main = {
|
|
|
280
279
|
"all-fields": $props.filterFields,
|
|
281
280
|
"is-field": item.isField,
|
|
282
281
|
"onUpdate:isField": ($event) => item.isField = $event,
|
|
283
|
-
"onUpdate:showText": ($event) => item.showText = $event
|
|
282
|
+
"onUpdate:showText": ($event) => item.showText = $event,
|
|
283
|
+
size: "default"
|
|
284
284
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "showText", "field-type", "operator", "field", "all-fields", "is-field", "onUpdate:isField", "onUpdate:showText"])
|
|
285
285
|
]),
|
|
286
286
|
_: 2
|
|
@@ -382,5 +382,5 @@ const _sfc_main = {
|
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
|
-
const AdvancedFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
385
|
+
const AdvancedFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-97b10229"]]);
|
|
386
386
|
exports.default = AdvancedFilter;
|
|
@@ -55,7 +55,8 @@ const _sfc_main = {
|
|
|
55
55
|
field: Object,
|
|
56
56
|
allFields: Array,
|
|
57
57
|
isField: Boolean,
|
|
58
|
-
showText: String
|
|
58
|
+
showText: String,
|
|
59
|
+
size: String
|
|
59
60
|
},
|
|
60
61
|
emits: [
|
|
61
62
|
"update:modelValue",
|
|
@@ -280,8 +281,9 @@ const _sfc_main = {
|
|
|
280
281
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(data) ? data.value = $event : null),
|
|
281
282
|
multiple: vue.unref(isMultiple),
|
|
282
283
|
placeholder: "请选择字段",
|
|
283
|
-
style: { "width": "100%" }
|
|
284
|
-
|
|
284
|
+
style: { "width": "100%" },
|
|
285
|
+
size: __props.size
|
|
286
|
+
}, null, 8, ["modelValue", "multiple", "size"])) : vue.unref(isSelectField) && vue.unref(isRange) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
285
287
|
vue.createVNode(ValueSelector.default, {
|
|
286
288
|
modelValue: vue.unref(rangeMin),
|
|
287
289
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(rangeMin) ? rangeMin.value = $event : null),
|
|
@@ -293,8 +295,9 @@ const _sfc_main = {
|
|
|
293
295
|
modelValue: vue.unref(rangeMax),
|
|
294
296
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(rangeMax) ? rangeMax.value = $event : null),
|
|
295
297
|
placeholder: "请选择最大值字段",
|
|
296
|
-
style: { "width": "50%" }
|
|
297
|
-
|
|
298
|
+
style: { "width": "50%" },
|
|
299
|
+
size: __props.size
|
|
300
|
+
}, null, 8, ["modelValue", "size"])
|
|
298
301
|
])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
299
302
|
vue.unref(isRange) && __props.fieldType === "number" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
300
303
|
vue.createVNode(_component_el_input, {
|
|
@@ -303,9 +306,9 @@ const _sfc_main = {
|
|
|
303
306
|
modelModifiers: { number: true },
|
|
304
307
|
placeholder: "最小值",
|
|
305
308
|
type: "number",
|
|
306
|
-
size:
|
|
309
|
+
size: __props.size,
|
|
307
310
|
style: { "width": "calc(50% - 20px)" }
|
|
308
|
-
}, null, 8, ["modelValue"]),
|
|
311
|
+
}, null, 8, ["modelValue", "size"]),
|
|
309
312
|
_cache[15] || (_cache[15] = vue.createElementVNode("span", { style: { "margin": "0 5px" } }, "-", -1)),
|
|
310
313
|
vue.createVNode(_component_el_input, {
|
|
311
314
|
modelValue: vue.unref(rangeMax),
|
|
@@ -313,44 +316,46 @@ const _sfc_main = {
|
|
|
313
316
|
modelModifiers: { number: true },
|
|
314
317
|
placeholder: "最大值",
|
|
315
318
|
type: "number",
|
|
316
|
-
size:
|
|
319
|
+
size: __props.size,
|
|
317
320
|
style: { "width": "50%" }
|
|
318
|
-
}, null, 8, ["modelValue"])
|
|
321
|
+
}, null, 8, ["modelValue", "size"])
|
|
319
322
|
])) : vue.unref(isRange) && (__props.fieldType === "date" || __props.fieldType === "datetime") ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
320
323
|
vue.createVNode(_component_el_date_picker, {
|
|
321
324
|
modelValue: vue.unref(rangeMin),
|
|
322
325
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(rangeMin) ? rangeMin.value = $event : null),
|
|
323
326
|
type: __props.fieldType === "datetime" ? "datetime" : "date",
|
|
324
327
|
placeholder: "开始日期",
|
|
325
|
-
size:
|
|
328
|
+
size: __props.size,
|
|
326
329
|
style: { "width": "calc(50% - 20px)" },
|
|
327
330
|
"value-format": "YYYYMMDDHHmmss"
|
|
328
|
-
}, null, 8, ["modelValue", "type"]),
|
|
331
|
+
}, null, 8, ["modelValue", "type", "size"]),
|
|
329
332
|
_cache[16] || (_cache[16] = vue.createElementVNode("span", { style: { "margin": "0 5px" } }, "-", -1)),
|
|
330
333
|
vue.createVNode(_component_el_date_picker, {
|
|
331
334
|
modelValue: vue.unref(rangeMax),
|
|
332
335
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.isRef(rangeMax) ? rangeMax.value = $event : null),
|
|
333
336
|
type: __props.fieldType === "datetime" ? "datetime" : "date",
|
|
334
337
|
placeholder: "结束日期",
|
|
335
|
-
size:
|
|
338
|
+
size: __props.size,
|
|
336
339
|
style: { "width": "50%" },
|
|
337
340
|
"value-format": "YYYYMMDDHHmmss"
|
|
338
|
-
}, null, 8, ["modelValue", "type"])
|
|
341
|
+
}, null, 8, ["modelValue", "type", "size"])
|
|
339
342
|
])) : vue.unref(isTagInput) ? (vue.openBlock(), vue.createBlock(_component_el_input_tag, {
|
|
340
343
|
key: 2,
|
|
341
344
|
modelValue: vue.unref(data),
|
|
342
345
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.isRef(data) ? data.value = $event : null),
|
|
343
346
|
trigger: "Space",
|
|
344
347
|
placeholder: "输入后空格或失去焦点添加",
|
|
345
|
-
style: { "width": "100%" }
|
|
346
|
-
|
|
348
|
+
style: { "width": "100%" },
|
|
349
|
+
size: __props.size
|
|
350
|
+
}, null, 8, ["modelValue", "size"])) : __props.fieldType === "select" ? (vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
347
351
|
key: 3,
|
|
348
352
|
modelValue: vue.unref(data),
|
|
349
353
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.isRef(data) ? data.value = $event : null),
|
|
350
354
|
multiple: vue.unref(isMultiple),
|
|
351
355
|
filterable: "",
|
|
352
356
|
placeholder: "请选择",
|
|
353
|
-
style: { "width": "100%" }
|
|
357
|
+
style: { "width": "100%" },
|
|
358
|
+
size: __props.size
|
|
354
359
|
}, {
|
|
355
360
|
default: vue.withCtx(() => [
|
|
356
361
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectOptions), (item) => {
|
|
@@ -362,39 +367,40 @@ const _sfc_main = {
|
|
|
362
367
|
}), 128))
|
|
363
368
|
]),
|
|
364
369
|
_: 1
|
|
365
|
-
}, 8, ["modelValue", "multiple"])) : __props.fieldType === "number" ? (vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
370
|
+
}, 8, ["modelValue", "multiple", "size"])) : __props.fieldType === "number" ? (vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
366
371
|
key: 4,
|
|
367
372
|
modelValue: vue.unref(data),
|
|
368
373
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.isRef(data) ? data.value = $event : null),
|
|
369
374
|
modelModifiers: { number: true },
|
|
370
375
|
type: "number",
|
|
371
376
|
placeholder: "请输入数值",
|
|
372
|
-
size:
|
|
377
|
+
size: __props.size,
|
|
373
378
|
style: { "width": "100%" }
|
|
374
|
-
}, null, 8, ["modelValue"])) : __props.fieldType === "date" ? (vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
379
|
+
}, null, 8, ["modelValue", "size"])) : __props.fieldType === "date" ? (vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
375
380
|
key: 5,
|
|
376
381
|
modelValue: vue.unref(data),
|
|
377
382
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => vue.isRef(data) ? data.value = $event : null),
|
|
378
383
|
type: "date",
|
|
379
384
|
placeholder: "请选择日期",
|
|
380
|
-
size:
|
|
385
|
+
size: __props.size,
|
|
381
386
|
style: { "width": "100%" },
|
|
382
387
|
"value-format": "YYYYMMDD"
|
|
383
|
-
}, null, 8, ["modelValue"])) : __props.fieldType === "datetime" ? (vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
388
|
+
}, null, 8, ["modelValue", "size"])) : __props.fieldType === "datetime" ? (vue.openBlock(), vue.createBlock(_component_el_date_picker, {
|
|
384
389
|
key: 6,
|
|
385
390
|
modelValue: vue.unref(data),
|
|
386
391
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => vue.isRef(data) ? data.value = $event : null),
|
|
387
392
|
type: "datetime",
|
|
388
393
|
placeholder: "请选择日期时间",
|
|
389
|
-
size:
|
|
394
|
+
size: __props.size,
|
|
390
395
|
style: { "width": "100%" },
|
|
391
396
|
"value-format": "YYYYMMDDHHmmss"
|
|
392
|
-
}, null, 8, ["modelValue"])) : __props.fieldType === "boolean" ? (vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
397
|
+
}, null, 8, ["modelValue", "size"])) : __props.fieldType === "boolean" ? (vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
393
398
|
key: 7,
|
|
394
399
|
modelValue: vue.unref(data),
|
|
395
400
|
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => vue.isRef(data) ? data.value = $event : null),
|
|
396
401
|
placeholder: "请选择",
|
|
397
|
-
style: { "width": "100%" }
|
|
402
|
+
style: { "width": "100%" },
|
|
403
|
+
size: __props.size
|
|
398
404
|
}, {
|
|
399
405
|
default: vue.withCtx(() => [
|
|
400
406
|
vue.createVNode(_component_el_option, {
|
|
@@ -407,18 +413,18 @@ const _sfc_main = {
|
|
|
407
413
|
})
|
|
408
414
|
]),
|
|
409
415
|
_: 1
|
|
410
|
-
}, 8, ["modelValue"])) : (vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
416
|
+
}, 8, ["modelValue", "size"])) : (vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
411
417
|
key: 8,
|
|
412
418
|
modelValue: vue.unref(data),
|
|
413
419
|
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => vue.isRef(data) ? data.value = $event : null),
|
|
414
420
|
placeholder: "请输入",
|
|
415
|
-
size:
|
|
421
|
+
size: __props.size,
|
|
416
422
|
style: { "width": "100%" }
|
|
417
|
-
}, null, 8, ["modelValue"]))
|
|
423
|
+
}, null, 8, ["modelValue", "size"]))
|
|
418
424
|
]))
|
|
419
425
|
]));
|
|
420
426
|
};
|
|
421
427
|
}
|
|
422
428
|
};
|
|
423
|
-
const ValueInput = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
429
|
+
const ValueInput = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1df3fcbe"]]);
|
|
424
430
|
exports.default = ValueInput;
|