@fecp/designer 5.4.78 → 5.4.80
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/dialog/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialog/index.vue2.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1 -1
- package/es/designer/src/packages/form/formSetting.vue.mjs +16 -36
- package/es/designer.css +259 -219
- package/es/packages/mobile/src/components/base/button/Button.vue.mjs +3 -3
- package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +22 -8
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +3 -3
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +3 -3
- package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/select/Select.vue.mjs +1 -1
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
- package/es/packages/vue/src/components/layout/Layout.vue.mjs +8 -15
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +6 -3
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +25 -8
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +3 -2
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +14 -18
- package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/vue/src/utils/datasource.mjs +1 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialog/index.vue.js +1 -1
- package/lib/designer/src/packages/dialog/index.vue2.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1 -1
- package/lib/designer/src/packages/form/formSetting.vue.js +21 -41
- package/lib/designer.css +259 -219
- package/lib/packages/mobile/src/components/base/button/Button.vue.js +2 -2
- package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +21 -7
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +3 -3
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +3 -3
- package/lib/packages/vue/src/components/forms/h2/H2.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/select/Select.vue.js +1 -1
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
- package/lib/packages/vue/src/components/layout/Layout.vue.js +8 -15
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +5 -2
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +24 -7
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +3 -2
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +18 -22
- package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
- package/lib/packages/vue/src/utils/datasource.js +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ const index = require("../../../../../../node_modules/vant/es/button/index.js");
|
|
|
12
12
|
const _sfc_main = {};
|
|
13
13
|
function _sfc_render(_ctx, _cache) {
|
|
14
14
|
const _component_van_button = index.Button;
|
|
15
|
-
return vue.openBlock(), vue.createBlock(_component_van_button, vue.
|
|
15
|
+
return vue.openBlock(), vue.createBlock(_component_van_button, vue.mergeProps({ class: "fec-button" }, _ctx.$attrs), vue.createSlots({ _: 2 }, [
|
|
16
16
|
vue.renderList(_ctx.$slots, (item, key) => {
|
|
17
17
|
return {
|
|
18
18
|
name: key,
|
|
@@ -23,5 +23,5 @@ function _sfc_render(_ctx, _cache) {
|
|
|
23
23
|
})
|
|
24
24
|
]), 1040);
|
|
25
25
|
}
|
|
26
|
-
const _Button = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
26
|
+
const _Button = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-96b4e696"]]);
|
|
27
27
|
exports.default = _Button;
|
|
@@ -11,36 +11,50 @@ const index$1 = require("../../../../../../node_modules/vant/es/tabbar-item/inde
|
|
|
11
11
|
const _sfc_main = {
|
|
12
12
|
__name: "Tabbar",
|
|
13
13
|
props: {
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: Number,
|
|
16
|
+
default: 0
|
|
17
|
+
},
|
|
14
18
|
tabbarOptions: {
|
|
15
19
|
type: Array,
|
|
16
20
|
default: []
|
|
17
21
|
}
|
|
18
22
|
},
|
|
19
|
-
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
const activeName = vue.computed({
|
|
28
|
+
get: () => {
|
|
29
|
+
return props.modelValue;
|
|
30
|
+
},
|
|
31
|
+
set: (val) => {
|
|
32
|
+
emit("update:modelValue", val);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
20
35
|
return (_ctx, _cache) => {
|
|
21
36
|
const _component_van_tabbar_item = index$1.TabbarItem;
|
|
22
37
|
const _component_van_tabbar = index.Tabbar;
|
|
23
38
|
return vue.openBlock(), vue.createBlock(_component_van_tabbar, vue.mergeProps(_ctx.$attrs, {
|
|
24
|
-
|
|
39
|
+
modelValue: vue.unref(activeName),
|
|
40
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(activeName) ? activeName.value = $event : null),
|
|
25
41
|
fixed: false
|
|
26
42
|
}), {
|
|
27
43
|
default: vue.withCtx(() => [
|
|
28
44
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.tabbarOptions, (item) => {
|
|
29
45
|
return vue.openBlock(), vue.createBlock(_component_van_tabbar_item, {
|
|
30
|
-
icon: item.icon
|
|
31
|
-
replace: "",
|
|
32
|
-
to: item.to
|
|
46
|
+
icon: item.icon
|
|
33
47
|
}, {
|
|
34
48
|
default: vue.withCtx(() => [
|
|
35
49
|
vue.createTextVNode(vue.toDisplayString(item.title), 1)
|
|
36
50
|
]),
|
|
37
51
|
_: 2
|
|
38
|
-
}, 1032, ["icon"
|
|
52
|
+
}, 1032, ["icon"]);
|
|
39
53
|
}), 256)),
|
|
40
54
|
vue.renderSlot(_ctx.$slots, "default")
|
|
41
55
|
]),
|
|
42
56
|
_: 3
|
|
43
|
-
}, 16);
|
|
57
|
+
}, 16, ["modelValue"]);
|
|
44
58
|
};
|
|
45
59
|
}
|
|
46
60
|
};
|
|
@@ -11,9 +11,9 @@ const index$2 = require("../forms/form/index.js");
|
|
|
11
11
|
const parseRouteParams = require("../../utils/parseRouteParams.js");
|
|
12
12
|
const calculate = require("../../utils/formulajs/calculate.js");
|
|
13
13
|
const eventFlowHandler = require("../../utils/eventFlow/eventFlowHandler.js");
|
|
14
|
-
;/* empty css */
|
|
15
14
|
;/* empty css */
|
|
16
15
|
;/* empty css */
|
|
16
|
+
;/* empty css */
|
|
17
17
|
const common = require("../../utils/common.js");
|
|
18
18
|
;/* empty css */
|
|
19
19
|
const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
@@ -119,8 +119,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
119
119
|
const dataSourceOptions = vue.ref({});
|
|
120
120
|
const dictionaryOptions = vue.ref({});
|
|
121
121
|
const productData = vue.ref({});
|
|
122
|
-
const fieldsData = vue.ref(
|
|
123
|
-
const hiddenFields = vue.ref(
|
|
122
|
+
const fieldsData = vue.ref([]);
|
|
123
|
+
const hiddenFields = vue.ref([]);
|
|
124
124
|
const rowHeight = vue.ref(1);
|
|
125
125
|
const pageEvents = props.canPageEvent ? usePageEvents.usePageEvents(() => ({
|
|
126
126
|
pageEventConfig: localConfig.value.pageEventConfig,
|
|
@@ -1098,5 +1098,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
1100
|
});
|
|
1101
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1101
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-2e861481"]]);
|
|
1102
1102
|
exports.default = _Form;
|
|
@@ -162,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
162
162
|
prop: __props.config.fieldName,
|
|
163
163
|
required: __props.config.required,
|
|
164
164
|
error: __props.error,
|
|
165
|
-
"label-width":
|
|
165
|
+
"label-width": 160
|
|
166
166
|
}, vue.createSlots({
|
|
167
167
|
default: vue.withCtx(() => [
|
|
168
168
|
__props.config.labelMode != "label" ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(componentType.value), vue.mergeProps({
|
|
@@ -203,9 +203,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
203
203
|
}),
|
|
204
204
|
key: "0"
|
|
205
205
|
} : void 0
|
|
206
|
-
]), 1032, ["prop", "required", "error"
|
|
206
|
+
]), 1032, ["prop", "required", "error"]));
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
|
-
const _FormItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
210
|
+
const _FormItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3a8e5cc4"]]);
|
|
211
211
|
exports.default = _FormItem;
|
|
@@ -38,5 +38,5 @@ const _sfc_main = {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
const _H2 = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
41
|
+
const _H2 = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-60bd3722"]]);
|
|
42
42
|
exports.default = _H2;
|
|
@@ -5,9 +5,9 @@ require("../../../../../../node_modules/element-plus/es/index.js");
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
const vue = require("vue");
|
|
8
|
-
;/* empty css */
|
|
9
8
|
;/* empty css */
|
|
10
9
|
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
11
|
const index$3 = require("../../dialog/index.js");
|
|
12
12
|
;/* empty css */
|
|
13
13
|
;/* empty css */
|
|
@@ -38,19 +38,13 @@ const _sfc_main = {
|
|
|
38
38
|
const formData = vue.ref(props.initFormData);
|
|
39
39
|
const emit = __emit;
|
|
40
40
|
const showCard = vue.ref(false);
|
|
41
|
-
const isDialog = vue.ref(false);
|
|
42
41
|
function loaded(option, formData2) {
|
|
43
42
|
showCard.value = true;
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
cols.forEach((col) => {
|
|
50
|
-
col.style.height = offsetHeight + "px";
|
|
51
|
-
});
|
|
52
|
-
isDialog.value = true;
|
|
53
|
-
}
|
|
43
|
+
let offsetHeight = layoutRowRef.value.$el.offsetHeight;
|
|
44
|
+
const cols = layoutRowRef.value.$el.querySelectorAll(".el-col");
|
|
45
|
+
cols.forEach((col) => {
|
|
46
|
+
col.style.height = offsetHeight + "px";
|
|
47
|
+
});
|
|
54
48
|
emit("loaded", common.cloneDeep(formData2));
|
|
55
49
|
}
|
|
56
50
|
return (_ctx, _cache) => {
|
|
@@ -76,9 +70,8 @@ const _sfc_main = {
|
|
|
76
70
|
modelValue: vue.unref(formData),
|
|
77
71
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(formData) ? formData.value = $event : null),
|
|
78
72
|
onLoaded: loaded,
|
|
79
|
-
initFormMode: __props.initFormMode
|
|
80
|
-
|
|
81
|
-
}, null, 8, ["templateKey", "modelValue", "initFormMode", "isDialog"])
|
|
73
|
+
initFormMode: __props.initFormMode
|
|
74
|
+
}, null, 8, ["templateKey", "modelValue", "initFormMode"])
|
|
82
75
|
]),
|
|
83
76
|
_: 1
|
|
84
77
|
}, 512)
|
|
@@ -102,5 +95,5 @@ const _sfc_main = {
|
|
|
102
95
|
};
|
|
103
96
|
}
|
|
104
97
|
};
|
|
105
|
-
const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
98
|
+
const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-317e7dd8"]]);
|
|
106
99
|
exports.default = _Layout;
|
|
@@ -125,7 +125,10 @@ const _sfc_main = {
|
|
|
125
125
|
_: 1
|
|
126
126
|
})
|
|
127
127
|
])) : vue.createCommentVNode("", true),
|
|
128
|
-
__props.localConfig.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2,
|
|
128
|
+
__props.localConfig.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
129
|
+
_cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "template-name-line" }, null, -1)),
|
|
130
|
+
vue.createTextVNode(" " + vue.toDisplayString(__props.localConfig.templateName), 1)
|
|
131
|
+
])) : vue.createCommentVNode("", true),
|
|
129
132
|
!__props.readOnly && !__props.isSubTable && hasButtons.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.VxeToolbar), {
|
|
130
133
|
key: 2,
|
|
131
134
|
ref: "toolbarRef",
|
|
@@ -171,5 +174,5 @@ const _sfc_main = {
|
|
|
171
174
|
};
|
|
172
175
|
}
|
|
173
176
|
};
|
|
174
|
-
const CustomButtons = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
177
|
+
const CustomButtons = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8d29fa72"]]);
|
|
175
178
|
exports.default = CustomButtons;
|
|
@@ -278,7 +278,10 @@ const _sfc_main = {
|
|
|
278
278
|
_: 1
|
|
279
279
|
})
|
|
280
280
|
])) : vue.createCommentVNode("", true),
|
|
281
|
-
__props.localConfig.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4,
|
|
281
|
+
__props.localConfig.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
|
|
282
|
+
_cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "template-name-line" }, null, -1)),
|
|
283
|
+
vue.createTextVNode(" " + vue.toDisplayString(__props.localConfig.templateName), 1)
|
|
284
|
+
])) : vue.createCommentVNode("", true),
|
|
282
285
|
queryConfig.value.enabled && tabConfigs.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
283
286
|
vue.createVNode(_component_el_tabs, {
|
|
284
287
|
modelValue: activeTab.value,
|
|
@@ -302,11 +305,25 @@ const _sfc_main = {
|
|
|
302
305
|
vue.createVNode(_component_el_input, {
|
|
303
306
|
modelValue: searchInputValue.value,
|
|
304
307
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInputValue.value = $event),
|
|
305
|
-
placeholder: "
|
|
308
|
+
placeholder: "请输入查询条件",
|
|
306
309
|
class: "search-input",
|
|
307
|
-
"
|
|
310
|
+
clearable: "",
|
|
308
311
|
onKeyup: onSearchInputKeyup
|
|
309
|
-
}, vue.createSlots({
|
|
312
|
+
}, vue.createSlots({
|
|
313
|
+
suffix: vue.withCtx(() => [
|
|
314
|
+
vue.createVNode(_component_el_icon, {
|
|
315
|
+
class: "el-input__icon",
|
|
316
|
+
style: { "cursor": "pointer" },
|
|
317
|
+
onClick: handleSearch
|
|
318
|
+
}, {
|
|
319
|
+
default: vue.withCtx(() => [
|
|
320
|
+
vue.createVNode(vue.unref(index$1.Search))
|
|
321
|
+
]),
|
|
322
|
+
_: 1
|
|
323
|
+
})
|
|
324
|
+
]),
|
|
325
|
+
_: 2
|
|
326
|
+
}, [
|
|
310
327
|
dynamicConfig.value.advancedSearch ? {
|
|
311
328
|
name: "append",
|
|
312
329
|
fn: vue.withCtx(() => [
|
|
@@ -322,7 +339,7 @@ const _sfc_main = {
|
|
|
322
339
|
]),
|
|
323
340
|
key: "0"
|
|
324
341
|
} : void 0
|
|
325
|
-
]), 1032, ["modelValue"
|
|
342
|
+
]), 1032, ["modelValue"])
|
|
326
343
|
])) : vue.createCommentVNode("", true),
|
|
327
344
|
!__props.readOnly && !__props.isSubTable && rightButtons.value.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(index$5.VxeToolbar), {
|
|
328
345
|
key: 1,
|
|
@@ -412,7 +429,7 @@ const _sfc_main = {
|
|
|
412
429
|
style: { "flex": "1" },
|
|
413
430
|
clearable: ""
|
|
414
431
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
415
|
-
_cache[
|
|
432
|
+
_cache[3] || (_cache[3] = vue.createElementVNode("span", null, "-", -1)),
|
|
416
433
|
vue.createVNode(_component_el_input_number, {
|
|
417
434
|
modelValue: filterValues.value[`${field.fieldId}_max`],
|
|
418
435
|
"onUpdate:modelValue": ($event) => filterValues.value[`${field.fieldId}_max`] = $event,
|
|
@@ -455,5 +472,5 @@ const _sfc_main = {
|
|
|
455
472
|
};
|
|
456
473
|
}
|
|
457
474
|
};
|
|
458
|
-
const DynamicQuery = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
475
|
+
const DynamicQuery = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-349ed4c5"]]);
|
|
459
476
|
exports.default = DynamicQuery;
|
|
@@ -9,10 +9,10 @@ require("../../../../../node_modules/vxe-table/es/components.js");
|
|
|
9
9
|
const index$3 = require("../../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
10
10
|
const parseFilterConfig = require("../../utils/parseFilterConfig.js");
|
|
11
11
|
const common = require("../../utils/common.js");
|
|
12
|
-
;/* empty css */
|
|
13
12
|
;/* empty css */
|
|
14
13
|
;/* empty css */
|
|
15
14
|
;/* empty css */
|
|
15
|
+
;/* empty css */
|
|
16
16
|
;/* empty css */
|
|
17
17
|
require("./index.js");
|
|
18
18
|
require("../forms/form/index.js");
|
|
@@ -393,6 +393,7 @@ const _sfc_main = {
|
|
|
393
393
|
field.isLink ? (vue.openBlock(), vue.createBlock(_component_el_link, {
|
|
394
394
|
key: 1,
|
|
395
395
|
type: "primary",
|
|
396
|
+
underline: false,
|
|
396
397
|
onClick: ($event) => handleButtonClick(row, field, field.linkConfig)
|
|
397
398
|
}, {
|
|
398
399
|
default: vue.withCtx(() => [
|
|
@@ -447,5 +448,5 @@ const _sfc_main = {
|
|
|
447
448
|
};
|
|
448
449
|
}
|
|
449
450
|
};
|
|
450
|
-
const TableColumn = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
451
|
+
const TableColumn = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-25279910"]]);
|
|
451
452
|
exports.default = TableColumn;
|
|
@@ -13,7 +13,7 @@ require("../../../../../node_modules/element-plus/es/index.js");
|
|
|
13
13
|
;/* empty css */
|
|
14
14
|
require("../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
|
|
15
15
|
const vue = require("vue");
|
|
16
|
-
const index$
|
|
16
|
+
const index$6 = require("../../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
17
17
|
const index$b = require("../forms/text/index.js");
|
|
18
18
|
const index$7 = require("../forms/select/index.js");
|
|
19
19
|
const index$8 = require("../forms/multipleSelection/index.js");
|
|
@@ -26,12 +26,13 @@ const index = require("../../../../../node_modules/element-plus/es/components/fo
|
|
|
26
26
|
const index$1 = require("../../../../../node_modules/element-plus/es/components/date-picker/index.js");
|
|
27
27
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/input-number/index.js");
|
|
28
28
|
const index$3 = require("../../../../../node_modules/element-plus/es/components/button/index.js");
|
|
29
|
-
const index$
|
|
30
|
-
const index$
|
|
29
|
+
const index$4 = require("../../../../../node_modules/element-plus/es/components/divider/index.js");
|
|
30
|
+
const index$5 = require("../../../../../node_modules/element-plus/es/components/icon/index.js");
|
|
31
31
|
const _hoisted_1 = {
|
|
32
32
|
key: 1,
|
|
33
33
|
style: { "display": "flex", "align-items": "center", "gap": "8px", "width": "100%" }
|
|
34
34
|
};
|
|
35
|
+
const _hoisted_2 = { class: "filter-actions inline el-col el-col-4" };
|
|
35
36
|
const _sfc_main = {
|
|
36
37
|
__name: "TableFilter",
|
|
37
38
|
props: {
|
|
@@ -47,7 +48,7 @@ const _sfc_main = {
|
|
|
47
48
|
emits: ["search", "reset"],
|
|
48
49
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
49
50
|
vue.useCssVars((_ctx) => ({
|
|
50
|
-
"
|
|
51
|
+
"13ca2eb8": `${config.value.collapseRows * 90}px`
|
|
51
52
|
}));
|
|
52
53
|
const props = __props;
|
|
53
54
|
const emit = __emit;
|
|
@@ -80,7 +81,7 @@ const _sfc_main = {
|
|
|
80
81
|
const maxVisibleFields = config.value.columnCount * config.value.collapseRows;
|
|
81
82
|
return fieldCount > maxVisibleFields;
|
|
82
83
|
});
|
|
83
|
-
|
|
84
|
+
vue.computed(() => {
|
|
84
85
|
const totalRows = Math.ceil(
|
|
85
86
|
completeFilterFields.value.length / config.value.columnCount
|
|
86
87
|
);
|
|
@@ -162,8 +163,8 @@ const _sfc_main = {
|
|
|
162
163
|
const _component_el_form_item = index.ElFormItem;
|
|
163
164
|
const _component_el_button = index$3.ElButton;
|
|
164
165
|
const _component_el_form = index.ElForm;
|
|
165
|
-
const _component_el_icon = index$
|
|
166
|
-
const _component_el_divider = index$
|
|
166
|
+
const _component_el_icon = index$5.ElIcon;
|
|
167
|
+
const _component_el_divider = index$4.ElDivider;
|
|
167
168
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
168
169
|
config.value.enabled ? (vue.openBlock(), vue.createBlock(_component_el_form, {
|
|
169
170
|
key: 0,
|
|
@@ -223,9 +224,7 @@ const _sfc_main = {
|
|
|
223
224
|
"onUpdate:modelValue": ($event) => filterValues.value[field.fieldId] = $event,
|
|
224
225
|
config: { ...field, eventHandlers: {} },
|
|
225
226
|
ref_for: true
|
|
226
|
-
}, getComponentConfig(field),
|
|
227
|
-
placeholder: getPlaceholder(field)
|
|
228
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "config", "placeholder"]))
|
|
227
|
+
}, getComponentConfig(field)), null, 16, ["modelValue", "onUpdate:modelValue", "config"]))
|
|
229
228
|
]),
|
|
230
229
|
_: 2
|
|
231
230
|
}, 1032, ["label"])
|
|
@@ -237,29 +236,26 @@ const _sfc_main = {
|
|
|
237
236
|
]);
|
|
238
237
|
}), 128))
|
|
239
238
|
], 2),
|
|
240
|
-
vue.createElementVNode("div",
|
|
241
|
-
class: vue.normalizeClass(["filter-actions", { inline: isSingleLine.value }])
|
|
242
|
-
}, [
|
|
239
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
243
240
|
vue.createVNode(_component_el_button, {
|
|
244
241
|
type: "primary",
|
|
245
|
-
onClick: handleSearch
|
|
246
|
-
icon: vue.unref(index$4.Search)
|
|
242
|
+
onClick: handleSearch
|
|
247
243
|
}, {
|
|
248
244
|
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
249
245
|
vue.createTextVNode("搜索")
|
|
250
246
|
])),
|
|
251
247
|
_: 1
|
|
252
|
-
}
|
|
248
|
+
}),
|
|
253
249
|
vue.createVNode(_component_el_button, {
|
|
254
|
-
|
|
255
|
-
|
|
250
|
+
type: "primary",
|
|
251
|
+
onClick: handleReset
|
|
256
252
|
}, {
|
|
257
253
|
default: vue.withCtx(() => _cache[2] || (_cache[2] = [
|
|
258
254
|
vue.createTextVNode("重置")
|
|
259
255
|
])),
|
|
260
256
|
_: 1
|
|
261
|
-
}
|
|
262
|
-
]
|
|
257
|
+
})
|
|
258
|
+
])
|
|
263
259
|
]),
|
|
264
260
|
_: 1
|
|
265
261
|
}, 8, ["model", "style"])) : vue.createCommentVNode("", true),
|
|
@@ -276,7 +272,7 @@ const _sfc_main = {
|
|
|
276
272
|
vue.createElementVNode("span", null, vue.toDisplayString(isCollapsed.value ? "更多筛选项" : "收起"), 1),
|
|
277
273
|
vue.createVNode(_component_el_icon, { style: { "transform": "rotate(90deg)" } }, {
|
|
278
274
|
default: vue.withCtx(() => [
|
|
279
|
-
isCollapsed.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
275
|
+
isCollapsed.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.DArrowRight), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(index$6.DArrowLeft), { key: 1 }))
|
|
280
276
|
]),
|
|
281
277
|
_: 1
|
|
282
278
|
})
|
|
@@ -288,5 +284,5 @@ const _sfc_main = {
|
|
|
288
284
|
};
|
|
289
285
|
}
|
|
290
286
|
};
|
|
291
|
-
const TableFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
287
|
+
const TableFilter = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-73e7d5aa"]]);
|
|
292
288
|
exports.default = TableFilter;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
;/* empty css */
|
|
5
|
-
;/* empty css */
|
|
6
5
|
;/* empty css */
|
|
7
6
|
;/* empty css */
|
|
8
7
|
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
;/* empty css */
|
|
11
11
|
require("../components/table/index.js");
|
|
@@ -4,9 +4,9 @@ const vue = require("vue");
|
|
|
4
4
|
const parseRouteParams = require("./parseRouteParams.js");
|
|
5
5
|
require("../../../../node_modules/element-plus/es/index.js");
|
|
6
6
|
;/* empty css */
|
|
7
|
-
;/* empty css */
|
|
8
7
|
;/* empty css */
|
|
9
8
|
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
10
|
const index = require("../../../../node_modules/element-plus/es/components/loading/index.js");
|
|
11
11
|
const index$1 = require("../../../../node_modules/element-plus/es/components/message/index.js");
|
|
12
12
|
class DataSourceManager {
|