fec-dev-designer 5.1.2 → 5.1.3
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/node_modules/element-plus/{dist/locale → es/locale/lang}/zh-cn.js +0 -1
- package/es/src/components/FieldSetMapping.vue.js +245 -108
- package/es/src/components/TemplateSelector.vue.js +101 -81
- package/es/src/layout/aside/HiddenFieldDialog.vue.js +313 -0
- package/es/src/{packages/form → layout/aside}/fieldRecycleBin.vue.js +72 -64
- package/es/src/layout/aside/index.vue.js +47 -50
- package/es/src/layout/index.vue.js +81 -76
- package/es/src/packages/dialog/index.vue.js +41 -38
- package/es/src/packages/form/aside/index.js +2 -1
- package/es/src/packages/form/demo.js +8064 -0
- package/es/src/packages/form/headerBtn.vue.js +120 -99
- package/es/src/packages/form/index.vue.js +187 -171
- package/es/src/packages/table/index.vue.js +191 -155
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +76 -77
- package/es/src/packages/table/queryModule/index.vue.js +108 -91
- package/es/src/packages/utils/common.js +33 -29
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/es/src/packages/form/HiddenFieldDialog.vue.js +0 -258
- /package/es/src/{packages/form → layout/aside}/HiddenFieldDialog.vue2.js +0 -0
- /package/es/src/{packages/form → layout/aside}/fieldRecycleBin.vue2.js +0 -0
|
@@ -11,7 +11,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tag.css.js";
|
|
|
11
11
|
import "../../../../node_modules/element-plus/theme-chalk/el-option.css.js";
|
|
12
12
|
import "../../../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
|
|
13
13
|
import "../../../../node_modules/element-plus/theme-chalk/el-select.css.js";
|
|
14
|
-
import { computed as
|
|
14
|
+
import { computed as _, reactive as q, watch as A, openBlock as u, createElementBlock as b, createElementVNode as y, createVNode as i, withCtx as r, unref as d, normalizeStyle as H, Fragment as P, renderList as G, createBlock as p, withModifiers as h, normalizeClass as k, toDisplayString as J, createTextVNode as x } from "vue";
|
|
15
15
|
import { VueDraggable as K } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js";
|
|
16
16
|
import { Close as Q, Search as W, Refresh as X } from "../../../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
17
17
|
import { getEditConfigData as Y, setHoverItem as N, setSelectedItem as Z, getCurrentClass as F } from "../../utils/common.js";
|
|
@@ -21,8 +21,8 @@ import { ElIcon as te } from "../../../../node_modules/element-plus/es/component
|
|
|
21
21
|
import { ElInput as oe } from "../../../../node_modules/element-plus/es/components/input/index.js";
|
|
22
22
|
import { ElOption as le, ElSelect as ne } from "../../../../node_modules/element-plus/es/components/select/index.js";
|
|
23
23
|
import { ElDatePicker as ae } from "../../../../node_modules/element-plus/es/components/date-picker/index.js";
|
|
24
|
-
import { ElFormItem as se, ElForm as
|
|
25
|
-
import { ElButton as
|
|
24
|
+
import { ElFormItem as se, ElForm as me } from "../../../../node_modules/element-plus/es/components/form/index.js";
|
|
25
|
+
import { ElButton as ie } from "../../../../node_modules/element-plus/es/components/button/index.js";
|
|
26
26
|
const re = { class: "fixed-mode-config" }, de = { class: "filter-form-section" }, ce = { class: "form-item-label" }, ue = {
|
|
27
27
|
__name: "FixedModeConfig",
|
|
28
28
|
props: {
|
|
@@ -33,45 +33,44 @@ const re = { class: "fixed-mode-config" }, de = { class: "filter-form-section" }
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["update:modelValue"],
|
|
35
35
|
setup(T, { emit: E }) {
|
|
36
|
-
const I = T,
|
|
36
|
+
const I = T, U = E, v = _(() => Y()), c = _({
|
|
37
37
|
get: () => I.modelValue,
|
|
38
|
-
set: (t) =>
|
|
39
|
-
}),
|
|
38
|
+
set: (t) => U("update:modelValue", t)
|
|
39
|
+
}), V = _(() => {
|
|
40
40
|
var t, e;
|
|
41
|
-
return ((e = (t =
|
|
42
|
-
}),
|
|
43
|
-
function
|
|
44
|
-
var n;
|
|
45
|
-
return
|
|
41
|
+
return ((e = (t = v.value) == null ? void 0 : t.queryConfig) == null ? void 0 : e.columnCount) || 3;
|
|
42
|
+
}), D = _(() => c.value.length <= V.value), a = q({});
|
|
43
|
+
function l(t) {
|
|
44
|
+
var s, n;
|
|
45
|
+
return [
|
|
46
|
+
...((s = v.value) == null ? void 0 : s.fieldsData) || [],
|
|
47
|
+
...((n = v.value) == null ? void 0 : n.hiddenFields) || []
|
|
48
|
+
].find((f) => f.id == t.fieldId);
|
|
46
49
|
}
|
|
47
|
-
function
|
|
48
|
-
const e =
|
|
50
|
+
function g(t) {
|
|
51
|
+
const e = l(t);
|
|
49
52
|
return (e == null ? void 0 : e.label) || "";
|
|
50
53
|
}
|
|
51
54
|
A(
|
|
52
|
-
|
|
55
|
+
c,
|
|
53
56
|
(t) => {
|
|
54
|
-
t.forEach((
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
+
t.forEach((s) => {
|
|
58
|
+
const n = l(s);
|
|
59
|
+
n && !(n.fieldName in a) && (a[n.fieldName] = n.fieldType == "daterange" ? [] : "");
|
|
57
60
|
});
|
|
58
|
-
const e = t.map((
|
|
59
|
-
const
|
|
60
|
-
return
|
|
61
|
+
const e = t.map((s) => {
|
|
62
|
+
const n = l(s);
|
|
63
|
+
return n == null ? void 0 : n.fieldName;
|
|
61
64
|
}).filter(Boolean);
|
|
62
|
-
Object.keys(
|
|
63
|
-
e.includes(
|
|
65
|
+
Object.keys(a).forEach((s) => {
|
|
66
|
+
e.includes(s) || delete a[s];
|
|
64
67
|
});
|
|
65
68
|
},
|
|
66
69
|
{ immediate: !0, deep: !0 }
|
|
67
|
-
)
|
|
68
|
-
var n;
|
|
69
|
-
const t = ((n = y.value) == null ? void 0 : n.fieldsData) || [], e = m.value.map((l) => l.fieldId);
|
|
70
|
-
return t.filter((l) => !e.includes(l.id));
|
|
71
|
-
});
|
|
70
|
+
);
|
|
72
71
|
function S(t) {
|
|
73
|
-
const e =
|
|
74
|
-
e !== -1 &&
|
|
72
|
+
const e = c.value.findIndex((s) => s.id == t.id);
|
|
73
|
+
e !== -1 && c.value.splice(e, 1);
|
|
75
74
|
}
|
|
76
75
|
function w(t) {
|
|
77
76
|
return ["text", "textarea", "number"].includes(t.fieldType);
|
|
@@ -95,84 +94,84 @@ const re = { class: "fixed-mode-config" }, de = { class: "filter-form-section" }
|
|
|
95
94
|
function L() {
|
|
96
95
|
}
|
|
97
96
|
return (t, e) => {
|
|
98
|
-
const
|
|
97
|
+
const s = te, n = oe, f = le, z = ne, O = ae, R = se, j = me, C = ie;
|
|
99
98
|
return u(), b("div", re, [
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
y("div", de, [
|
|
100
|
+
i(j, {
|
|
102
101
|
ref: "formRef",
|
|
103
|
-
model:
|
|
102
|
+
model: a,
|
|
104
103
|
class: "filter-form",
|
|
105
104
|
"label-width": "80px"
|
|
106
105
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
|
|
109
|
-
modelValue:
|
|
110
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) =>
|
|
106
|
+
default: r(() => [
|
|
107
|
+
i(d(K), {
|
|
108
|
+
modelValue: c.value,
|
|
109
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => c.value = o),
|
|
111
110
|
animation: 150,
|
|
112
111
|
group: { name: "filterFields" },
|
|
113
112
|
ghostClass: "ghost",
|
|
114
113
|
class: "form-items-draggable",
|
|
115
|
-
style: H({ "--column-count":
|
|
114
|
+
style: H({ "--column-count": V.value })
|
|
116
115
|
}, {
|
|
117
|
-
default:
|
|
118
|
-
(u(!0), b(P, null, G(
|
|
116
|
+
default: r(() => [
|
|
117
|
+
(u(!0), b(P, null, G(c.value, (o) => (u(), p(R, {
|
|
119
118
|
key: o.id,
|
|
120
|
-
label:
|
|
121
|
-
onMouseenter: (
|
|
122
|
-
onMouseleave: e[0] || (e[0] = (
|
|
123
|
-
onClick:
|
|
124
|
-
class:
|
|
119
|
+
label: g(o),
|
|
120
|
+
onMouseenter: (m) => d(N)(o),
|
|
121
|
+
onMouseleave: e[0] || (e[0] = (m) => d(N)()),
|
|
122
|
+
onClick: h((m) => d(Z)(o), ["stop"]),
|
|
123
|
+
class: k(d(F)(o))
|
|
125
124
|
}, {
|
|
126
|
-
label:
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
label: r(() => [
|
|
126
|
+
y("div", ce, [
|
|
127
|
+
y("span", null, J(g(o)), 1)
|
|
129
128
|
])
|
|
130
129
|
]),
|
|
131
|
-
default:
|
|
132
|
-
|
|
130
|
+
default: r(() => [
|
|
131
|
+
i(s, {
|
|
133
132
|
class: "delete-icon",
|
|
134
|
-
onClick:
|
|
133
|
+
onClick: h((m) => S(o), ["stop"])
|
|
135
134
|
}, {
|
|
136
|
-
default:
|
|
137
|
-
|
|
135
|
+
default: r(() => [
|
|
136
|
+
i(d(Q))
|
|
138
137
|
]),
|
|
139
138
|
_: 1
|
|
140
139
|
}, 8, ["onClick"]),
|
|
141
|
-
w(
|
|
140
|
+
w(l(o)) ? (u(), p(n, {
|
|
142
141
|
key: 0,
|
|
143
|
-
modelValue:
|
|
144
|
-
"onUpdate:modelValue": (
|
|
142
|
+
modelValue: a[l(o).fieldName],
|
|
143
|
+
"onUpdate:modelValue": (m) => a[l(o).fieldName] = m,
|
|
145
144
|
class: "filter-item"
|
|
146
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : M(
|
|
145
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : M(l(o)) ? (u(), p(z, {
|
|
147
146
|
key: 1,
|
|
148
|
-
modelValue:
|
|
149
|
-
"onUpdate:modelValue": (
|
|
147
|
+
modelValue: a[l(o).fieldName],
|
|
148
|
+
"onUpdate:modelValue": (m) => a[l(o).fieldName] = m,
|
|
150
149
|
class: "filter-item"
|
|
151
150
|
}, {
|
|
152
|
-
default:
|
|
153
|
-
|
|
151
|
+
default: r(() => [
|
|
152
|
+
i(f, {
|
|
154
153
|
label: "选项1",
|
|
155
154
|
value: "1"
|
|
156
155
|
}),
|
|
157
|
-
|
|
156
|
+
i(f, {
|
|
158
157
|
label: "选项2",
|
|
159
158
|
value: "2"
|
|
160
159
|
})
|
|
161
160
|
]),
|
|
162
161
|
_: 1
|
|
163
|
-
}, 8, ["modelValue", "onUpdate:modelValue"])) : B(
|
|
162
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])) : B(l(o)) ? (u(), p(O, {
|
|
164
163
|
key: 2,
|
|
165
|
-
modelValue:
|
|
166
|
-
"onUpdate:modelValue": (
|
|
164
|
+
modelValue: a[l(o).fieldName],
|
|
165
|
+
"onUpdate:modelValue": (m) => a[l(o).fieldName] = m,
|
|
167
166
|
type: "daterange",
|
|
168
167
|
"range-separator": "至",
|
|
169
168
|
"start-placeholder": "开始日期",
|
|
170
169
|
"end-placeholder": "结束日期",
|
|
171
170
|
class: "filter-item"
|
|
172
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (u(),
|
|
171
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (u(), p(n, {
|
|
173
172
|
key: 3,
|
|
174
|
-
modelValue:
|
|
175
|
-
"onUpdate:modelValue": (
|
|
173
|
+
modelValue: a[l(o).fieldName],
|
|
174
|
+
"onUpdate:modelValue": (m) => a[l(o).fieldName] = m,
|
|
176
175
|
class: "filter-item"
|
|
177
176
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
178
177
|
]),
|
|
@@ -185,25 +184,25 @@ const re = { class: "fixed-mode-config" }, de = { class: "filter-form-section" }
|
|
|
185
184
|
_: 1
|
|
186
185
|
}, 8, ["model"])
|
|
187
186
|
]),
|
|
188
|
-
|
|
189
|
-
class:
|
|
187
|
+
y("div", {
|
|
188
|
+
class: k(["fixed-search-btn", { inline: D.value }])
|
|
190
189
|
}, [
|
|
191
|
-
|
|
192
|
-
icon:
|
|
190
|
+
i(C, {
|
|
191
|
+
icon: d(W),
|
|
193
192
|
type: "primary",
|
|
194
193
|
onClick: $
|
|
195
194
|
}, {
|
|
196
|
-
default:
|
|
195
|
+
default: r(() => [...e[2] || (e[2] = [
|
|
197
196
|
x("搜索", -1)
|
|
198
197
|
])]),
|
|
199
198
|
_: 1
|
|
200
199
|
}, 8, ["icon"]),
|
|
201
|
-
|
|
202
|
-
icon:
|
|
200
|
+
i(C, {
|
|
201
|
+
icon: d(X),
|
|
203
202
|
onClick: L,
|
|
204
203
|
class: "reset-btn"
|
|
205
204
|
}, {
|
|
206
|
-
default:
|
|
205
|
+
default: r(() => [...e[3] || (e[3] = [
|
|
207
206
|
x("重置", -1)
|
|
208
207
|
])]),
|
|
209
208
|
_: 1
|
|
@@ -212,7 +211,7 @@ const re = { class: "fixed-mode-config" }, de = { class: "filter-form-section" }
|
|
|
212
211
|
]);
|
|
213
212
|
};
|
|
214
213
|
}
|
|
215
|
-
}, Oe = /* @__PURE__ */ ee(ue, [["__scopeId", "data-v-
|
|
214
|
+
}, Oe = /* @__PURE__ */ ee(ue, [["__scopeId", "data-v-82d670b1"]]);
|
|
216
215
|
export {
|
|
217
216
|
Oe as default
|
|
218
217
|
};
|
|
@@ -6,6 +6,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
|
6
6
|
import "../../../../node_modules/element-plus/theme-chalk/el-dropdown.css.js";
|
|
7
7
|
import "../../../../node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js";
|
|
8
8
|
import "../../../../node_modules/element-plus/theme-chalk/el-dropdown-item.css.js";
|
|
9
|
+
import "../../../../node_modules/element-plus/theme-chalk/el-checkbox.css.js";
|
|
9
10
|
import "../../../../node_modules/element-plus/theme-chalk/el-tag.css.js";
|
|
10
11
|
import "../../../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
11
12
|
import "../../../../node_modules/element-plus/theme-chalk/el-input-number.css.js";
|
|
@@ -14,179 +15,195 @@ import "../../../../node_modules/element-plus/theme-chalk/el-option-group.css.js
|
|
|
14
15
|
import "../../../../node_modules/element-plus/theme-chalk/el-select.css.js";
|
|
15
16
|
import "../../../../node_modules/element-plus/theme-chalk/el-divider.css.js";
|
|
16
17
|
import "../../../../node_modules/element-plus/theme-chalk/el-switch.css.js";
|
|
17
|
-
import { computed as
|
|
18
|
-
import { Plus as
|
|
19
|
-
import { getEditConfigData as
|
|
20
|
-
import
|
|
18
|
+
import { computed as v, openBlock as a, createElementBlock as u, createElementVNode as r, createVNode as l, withCtx as i, Fragment as g, renderList as I, createBlock as f, toDisplayString as x, createCommentVNode as c, unref as N, createTextVNode as C } from "vue";
|
|
19
|
+
import { Plus as B } from "../../../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
20
|
+
import { getEditConfigData as F } from "../../utils/common.js";
|
|
21
|
+
import h from "./FixedModeConfig.vue.js";
|
|
21
22
|
import "./index.vue2.js";
|
|
22
|
-
import
|
|
23
|
-
import { ElSwitch as
|
|
23
|
+
import M from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
24
|
+
import { ElSwitch as S } from "../../../../node_modules/element-plus/es/components/switch/index.js";
|
|
24
25
|
import { ElDivider as T } from "../../../../node_modules/element-plus/es/components/divider/index.js";
|
|
25
26
|
import { ElOption as R, ElSelect as A } from "../../../../node_modules/element-plus/es/components/select/index.js";
|
|
26
27
|
import { ElInputNumber as L } from "../../../../node_modules/element-plus/es/components/input-number/index.js";
|
|
27
28
|
import { ElTag as O } from "../../../../node_modules/element-plus/es/components/tag/index.js";
|
|
28
29
|
import { ElButton as P } from "../../../../node_modules/element-plus/es/components/button/index.js";
|
|
29
|
-
import {
|
|
30
|
-
|
|
30
|
+
import { ElCheckbox as Q } from "../../../../node_modules/element-plus/es/components/checkbox/index.js";
|
|
31
|
+
import { ElDropdownItem as W, ElDropdownMenu as j, ElDropdown as G } from "../../../../node_modules/element-plus/es/components/dropdown/index.js";
|
|
32
|
+
const H = { class: "table-query-config" }, J = { class: "config-row" }, K = { class: "add-field-label" }, X = {
|
|
31
33
|
key: 1,
|
|
32
34
|
class: "empty-state"
|
|
33
|
-
},
|
|
35
|
+
}, Y = {
|
|
34
36
|
__name: "index",
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
setup(Z) {
|
|
38
|
+
const n = v(() => F()), t = v(() => F().queryConfig), y = v(() => {
|
|
39
|
+
var e, d;
|
|
40
|
+
return [
|
|
41
|
+
...((e = n.value) == null ? void 0 : e.fieldsData) || [],
|
|
42
|
+
...((d = n.value) == null ? void 0 : d.hiddenFields) || []
|
|
43
|
+
];
|
|
40
44
|
});
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
function w(p, e) {
|
|
46
|
+
if (n.value.queryConfig || (n.value.queryConfig = {}), n.value.queryConfig.filterFields || (n.value.queryConfig.filterFields = []), e)
|
|
47
|
+
n.value.queryConfig.filterFields.push({
|
|
48
|
+
id: Date.now(),
|
|
49
|
+
fieldId: p.id,
|
|
50
|
+
type: "filterWidgets",
|
|
51
|
+
queryType: "fuzzy"
|
|
52
|
+
});
|
|
53
|
+
else {
|
|
54
|
+
const d = n.value.queryConfig.filterFields.findIndex(
|
|
55
|
+
(m) => m.fieldId == p.id
|
|
56
|
+
);
|
|
57
|
+
d !== -1 && n.value.queryConfig.filterFields.splice(d, 1);
|
|
58
|
+
}
|
|
44
59
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return (u, e) => {
|
|
54
|
-
const r = M, i = T, a = R, p = A, E = L, k = O, q = P, b = Q, D = W, z = j;
|
|
55
|
-
return n(), f("div", G, [
|
|
56
|
-
s("div", H, [
|
|
57
|
-
e[9] || (e[9] = s("span", { class: "config-label" }, "开启筛选", -1)),
|
|
58
|
-
o(r, {
|
|
59
|
-
modelValue: l.value.enabled,
|
|
60
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.value.enabled = t),
|
|
60
|
+
return (p, e) => {
|
|
61
|
+
const d = S, m = T, s = R, b = A, k = L, E = O, q = P, D = Q, V = W, z = j, U = G;
|
|
62
|
+
return a(), u("div", H, [
|
|
63
|
+
r("div", J, [
|
|
64
|
+
e[9] || (e[9] = r("span", { class: "config-label" }, "开启筛选", -1)),
|
|
65
|
+
l(d, {
|
|
66
|
+
modelValue: t.value.enabled,
|
|
67
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => t.value.enabled = o),
|
|
61
68
|
size: "small"
|
|
62
69
|
}, null, 8, ["modelValue"]),
|
|
63
|
-
|
|
64
|
-
e[10] || (e[10] =
|
|
65
|
-
|
|
66
|
-
modelValue:
|
|
67
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
70
|
+
l(m, { direction: "vertical" }),
|
|
71
|
+
e[10] || (e[10] = r("span", { class: "config-label" }, "筛选模式", -1)),
|
|
72
|
+
l(b, {
|
|
73
|
+
modelValue: t.value.mode,
|
|
74
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => t.value.mode = o),
|
|
68
75
|
size: "small",
|
|
69
76
|
style: { width: "120px" }
|
|
70
77
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
|
|
78
|
+
default: i(() => [
|
|
79
|
+
l(s, {
|
|
73
80
|
label: "固定列",
|
|
74
81
|
value: "fixed"
|
|
75
82
|
})
|
|
76
83
|
]),
|
|
77
84
|
_: 1
|
|
78
85
|
}, 8, ["modelValue"]),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
e[7] || (e[7] =
|
|
82
|
-
|
|
83
|
-
modelValue:
|
|
84
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
86
|
+
t.value.mode === "fixed" ? (a(), u(g, { key: 0 }, [
|
|
87
|
+
l(m, { direction: "vertical" }),
|
|
88
|
+
e[7] || (e[7] = r("span", { class: "config-label" }, "筛选列数", -1)),
|
|
89
|
+
l(b, {
|
|
90
|
+
modelValue: t.value.columnCount,
|
|
91
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => t.value.columnCount = o),
|
|
85
92
|
size: "small",
|
|
86
93
|
style: { width: "100px" }
|
|
87
94
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
|
|
95
|
+
default: i(() => [
|
|
96
|
+
l(s, {
|
|
90
97
|
label: "一列",
|
|
91
98
|
value: 1
|
|
92
99
|
}),
|
|
93
|
-
|
|
100
|
+
l(s, {
|
|
94
101
|
label: "二列",
|
|
95
102
|
value: 2
|
|
96
103
|
}),
|
|
97
|
-
|
|
104
|
+
l(s, {
|
|
98
105
|
label: "三列",
|
|
99
106
|
value: 3
|
|
100
107
|
}),
|
|
101
|
-
|
|
108
|
+
l(s, {
|
|
102
109
|
label: "四列",
|
|
103
110
|
value: 4
|
|
104
111
|
})
|
|
105
112
|
]),
|
|
106
113
|
_: 1
|
|
107
114
|
}, 8, ["modelValue"]),
|
|
108
|
-
|
|
109
|
-
e[8] || (e[8] =
|
|
110
|
-
|
|
111
|
-
modelValue:
|
|
112
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
115
|
+
l(m, { direction: "vertical" }),
|
|
116
|
+
e[8] || (e[8] = r("span", { class: "config-label" }, "收起行数", -1)),
|
|
117
|
+
l(k, {
|
|
118
|
+
modelValue: t.value.collapseRows,
|
|
119
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => t.value.collapseRows = o),
|
|
113
120
|
min: 1,
|
|
114
121
|
size: "small",
|
|
115
122
|
"controls-position": "right",
|
|
116
123
|
style: { width: "80px" }
|
|
117
124
|
}, null, 8, ["modelValue"]),
|
|
118
|
-
|
|
119
|
-
|
|
125
|
+
l(m, { direction: "vertical" }),
|
|
126
|
+
l(U, {
|
|
120
127
|
trigger: "click",
|
|
121
128
|
placement: "bottom",
|
|
122
|
-
|
|
129
|
+
"hide-on-click": !1
|
|
123
130
|
}, {
|
|
124
|
-
dropdown:
|
|
125
|
-
|
|
126
|
-
default:
|
|
127
|
-
(
|
|
128
|
-
key:
|
|
129
|
-
command:
|
|
130
|
-
disabled: F(t)
|
|
131
|
+
dropdown: i(() => [
|
|
132
|
+
l(z, null, {
|
|
133
|
+
default: i(() => [
|
|
134
|
+
(a(!0), u(g, null, I(y.value, (o) => (a(), f(V, {
|
|
135
|
+
key: o.id,
|
|
136
|
+
command: o
|
|
131
137
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
138
|
+
default: i(() => [
|
|
139
|
+
l(D, {
|
|
140
|
+
modelValue: o.isFilter,
|
|
141
|
+
"onUpdate:modelValue": (_) => o.isFilter = _,
|
|
142
|
+
onChange: (_) => {
|
|
143
|
+
w(o, _);
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
default: i(() => [
|
|
147
|
+
r("span", K, x(o.label), 1)
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
134
151
|
]),
|
|
135
152
|
_: 2
|
|
136
|
-
}, 1032, ["command"
|
|
137
|
-
y.value.length === 0 ? (
|
|
153
|
+
}, 1032, ["command"]))), 128)),
|
|
154
|
+
y.value.length === 0 ? (a(), f(V, {
|
|
138
155
|
key: 0,
|
|
139
156
|
disabled: ""
|
|
140
157
|
}, {
|
|
141
|
-
default:
|
|
142
|
-
|
|
158
|
+
default: i(() => [...e[6] || (e[6] = [
|
|
159
|
+
r("span", {
|
|
143
160
|
class: "add-field-label",
|
|
144
161
|
style: { "text-align": "center" }
|
|
145
162
|
}, "暂无可用字段", -1)
|
|
146
163
|
])]),
|
|
147
164
|
_: 1
|
|
148
|
-
})) :
|
|
165
|
+
})) : c("", !0)
|
|
149
166
|
]),
|
|
150
167
|
_: 1
|
|
151
168
|
})
|
|
152
169
|
]),
|
|
153
|
-
default:
|
|
154
|
-
|
|
170
|
+
default: i(() => [
|
|
171
|
+
l(q, {
|
|
155
172
|
size: "small",
|
|
156
|
-
icon: N(
|
|
173
|
+
icon: N(B)
|
|
157
174
|
}, {
|
|
158
|
-
default:
|
|
159
|
-
e[5] || (e[5] =
|
|
160
|
-
|
|
175
|
+
default: i(() => [
|
|
176
|
+
e[5] || (e[5] = C("新增筛选 ", -1)),
|
|
177
|
+
t.value.filterFields.length > 0 ? (a(), f(E, {
|
|
161
178
|
key: 0,
|
|
162
179
|
size: "small",
|
|
163
180
|
type: "primary",
|
|
164
181
|
style: { "margin-left": "6px", height: "16px", padding: "0 5px" }
|
|
165
182
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
|
|
183
|
+
default: i(() => [
|
|
184
|
+
C(x(t.value.filterFields.length), 1)
|
|
168
185
|
]),
|
|
169
186
|
_: 1
|
|
170
|
-
})) :
|
|
187
|
+
})) : c("", !0)
|
|
171
188
|
]),
|
|
172
189
|
_: 1
|
|
173
190
|
}, 8, ["icon"])
|
|
174
191
|
]),
|
|
175
192
|
_: 1
|
|
176
193
|
})
|
|
177
|
-
], 64)) :
|
|
194
|
+
], 64)) : c("", !0)
|
|
178
195
|
]),
|
|
179
|
-
|
|
180
|
-
|
|
196
|
+
t.value.enabled ? (a(), u(g, { key: 0 }, [
|
|
197
|
+
t.value.mode === "fixed" ? (a(), f(h, {
|
|
181
198
|
key: 0,
|
|
182
|
-
modelValue:
|
|
183
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
184
|
-
}, null, 8, ["modelValue"])) :
|
|
185
|
-
], 64)) : (
|
|
199
|
+
modelValue: t.value.filterFields,
|
|
200
|
+
"onUpdate:modelValue": e[4] || (e[4] = (o) => t.value.filterFields = o)
|
|
201
|
+
}, null, 8, ["modelValue"])) : c("", !0)
|
|
202
|
+
], 64)) : (a(), u("div", X, "未开启筛选功能"))
|
|
186
203
|
]);
|
|
187
204
|
};
|
|
188
205
|
}
|
|
189
|
-
},
|
|
206
|
+
}, Ue = /* @__PURE__ */ M(Y, [["__scopeId", "data-v-29ad1881"]]);
|
|
190
207
|
export {
|
|
191
|
-
|
|
208
|
+
Ue as default
|
|
192
209
|
};
|