fec-dev-designer 1.0.4 → 1.1.0
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/config-dev.js +7 -5
- package/es/node_modules/@element-plus/icons-vue/dist/index.js +126 -92
- package/es/node_modules/element-plus/es/components/result/index.js +7 -0
- package/es/node_modules/element-plus/es/components/result/src/result.js +34 -0
- package/es/node_modules/element-plus/es/components/result/src/result2.js +93 -0
- package/es/node_modules/element-plus/theme-chalk/el-result.css.js +4 -0
- package/es/src/api/index.js +5 -5
- package/es/src/components/EventConfigButton.vue.js +2 -2
- package/es/src/components/FieldSetMapping.vue.js +211 -0
- package/es/src/components/FieldSetMapping.vue2.js +4 -0
- package/es/src/components/FormulaEditorInput.vue.js +43 -38
- package/es/src/components/JsonDataDrawer.vue.js +1 -1
- package/es/src/components/OnlyFLowConfigButton.vue.js +102 -0
- package/es/src/components/OnlyFLowConfigButton.vue2.js +4 -0
- package/es/src/components/OptionConfig.vue.js +1 -1
- package/es/src/components/TemplateSelector.vue.js +45 -45
- package/es/src/components/ValueSelector.vue2.js +30 -24
- package/es/src/components/ValueSelectorPopover.vue2.js +1 -1
- package/es/src/layout/aside/index.vue.js +64 -60
- package/es/src/layout/index.vue.js +91 -54
- package/es/src/packages/dataSource/dataSource.vue.js +122 -118
- package/es/src/packages/dialog/index.vue.js +718 -0
- package/es/src/packages/dialog/index.vue2.js +4 -0
- package/es/src/packages/dialog/useDialogDialog.js +15 -0
- package/es/src/packages/event/index.vue2.js +1 -1
- package/es/src/packages/event/onlyFlow.vue.js +91 -0
- package/es/src/packages/event/onlyFlow.vue2.js +4 -0
- package/es/src/packages/event/useOnlyFlowDialog.js +15 -0
- package/es/src/packages/eventFlow/dialog/action/Dialog.vue.js +48 -0
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +29 -20
- package/es/src/packages/eventFlow/dialog/action/config.js +12 -11
- package/es/src/packages/form/PageFooterSetting.vue.js +53 -58
- package/es/src/packages/form/aside/index.js +20 -4
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +70 -52
- package/es/src/packages/form/default.js +20 -19
- package/es/src/packages/form/formSetting.vue.js +72 -50
- package/es/src/packages/form/headerBtn.vue.js +84 -65
- package/es/src/packages/form/index.vue.js +247 -202
- package/es/src/packages/form/property/blank.vue.js +62 -0
- package/es/src/packages/form/property/index.vue.js +21 -20
- package/es/src/packages/form/property/pageFooterBtn.vue.js +39 -39
- package/es/src/packages/form/property/subTable.vue.js +61 -52
- package/es/src/packages/form/property/widgets.vue.js +385 -200
- package/es/src/packages/table/aside/index.js +1 -0
- package/es/src/packages/table/default.js +9 -1
- package/es/src/packages/table/headerBtn.vue.js +72 -54
- package/es/src/packages/table/property/widgets.vue.js +96 -85
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +6 -6
- package/es/src/packages/table/tablePagination.vue.js +37 -45
- package/es/src/packages/table/tableSetting.vue.js +197 -196
- package/es/src/packages/utils/common.js +44 -35
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,71 +3,71 @@ import "../../../node_modules/element-plus/theme-chalk/el-checkbox.css.js";
|
|
|
3
3
|
import "../../../node_modules/element-plus/theme-chalk/el-empty.css.js";
|
|
4
4
|
import "../../../node_modules/element-plus/theme-chalk/el-radio.css.js";
|
|
5
5
|
import "../../../node_modules/element-plus/theme-chalk/el-tag.css.js";
|
|
6
|
-
import "../../../node_modules/element-plus/theme-chalk/el-option.css.js";
|
|
7
|
-
import "../../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
|
|
8
|
-
import "../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
9
|
-
import "../../../node_modules/element-plus/theme-chalk/el-popper.css.js";
|
|
10
|
-
import "../../../node_modules/element-plus/theme-chalk/el-select.css.js";
|
|
11
6
|
import "../../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
12
7
|
import "../../../node_modules/element-plus/theme-chalk/el-button-group.css.js";
|
|
8
|
+
import "../../../node_modules/element-plus/theme-chalk/el-popper.css.js";
|
|
9
|
+
import "../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
13
10
|
import "../../../node_modules/element-plus/theme-chalk/el-dropdown.css.js";
|
|
14
11
|
import "../../../node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js";
|
|
15
12
|
import "../../../node_modules/element-plus/theme-chalk/el-dropdown-item.css.js";
|
|
16
13
|
import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
17
14
|
import "../../../node_modules/element-plus/theme-chalk/el-input-number.css.js";
|
|
18
15
|
import "../../../node_modules/element-plus/theme-chalk/el-switch.css.js";
|
|
16
|
+
import "../../../node_modules/element-plus/theme-chalk/el-option.css.js";
|
|
17
|
+
import "../../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
|
|
18
|
+
import "../../../node_modules/element-plus/theme-chalk/el-select.css.js";
|
|
19
19
|
import "../../../node_modules/element-plus/theme-chalk/el-radio-group.css.js";
|
|
20
20
|
import "../../../node_modules/element-plus/theme-chalk/el-radio-button.css.js";
|
|
21
|
-
import { ref as Q, computed as
|
|
21
|
+
import { ref as Q, computed as c, openBlock as s, createElementBlock as m, Fragment as g, createElementVNode as i, createVNode as n, unref as l, withCtx as o, createTextVNode as d, renderList as b, createBlock as _, createCommentVNode as k, toDisplayString as V, normalizeClass as W, isRef as T } from "vue";
|
|
22
22
|
import { getEditConfigData as X } from "../utils/common.js";
|
|
23
|
-
import { Plus as Y, Coin as Z,
|
|
24
|
-
import { useDataSourceDialog as
|
|
25
|
-
import { VueDraggable as
|
|
23
|
+
import { Plus as Y, Coin as Z, Rank as h, Delete as ee, Filter as le, Hide as te } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
24
|
+
import { useDataSourceDialog as oe } from "../dataSource/useDataSourceDialog.js";
|
|
25
|
+
import { VueDraggable as ne } from "../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js";
|
|
26
26
|
import "./tableSetting.vue2.js";
|
|
27
27
|
import ae from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
28
|
-
import { ElRadioButton as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { ElEmpty as
|
|
28
|
+
import { ElRadioButton as ie, ElRadioGroup as de, ElRadio as se } from "../../../node_modules/element-plus/es/components/radio/index.js";
|
|
29
|
+
import { ElOption as re, ElSelect as ue } from "../../../node_modules/element-plus/es/components/select/index.js";
|
|
30
|
+
import { ElSwitch as me } from "../../../node_modules/element-plus/es/components/switch/index.js";
|
|
31
|
+
import { ElInputNumber as pe } from "../../../node_modules/element-plus/es/components/input-number/index.js";
|
|
32
|
+
import { ElButton as fe } from "../../../node_modules/element-plus/es/components/button/index.js";
|
|
33
|
+
import { ElDropdownItem as ge, ElDropdownMenu as _e, ElDropdown as ve } from "../../../node_modules/element-plus/es/components/dropdown/index.js";
|
|
34
|
+
import { ElTag as Ve } from "../../../node_modules/element-plus/es/components/tag/index.js";
|
|
35
|
+
import { ElIcon as ce } from "../../../node_modules/element-plus/es/components/icon/index.js";
|
|
36
|
+
import { ElEmpty as be } from "../../../node_modules/element-plus/es/components/empty/index.js";
|
|
37
37
|
import { ElCheckbox as ke } from "../../../node_modules/element-plus/es/components/checkbox/index.js";
|
|
38
|
-
const ye = { class: "table-setting" },
|
|
38
|
+
const ye = { class: "table-setting" }, Se = { class: "setting-left" }, we = { class: "setting-right" }, De = {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "sort-panel"
|
|
41
|
-
},
|
|
41
|
+
}, xe = { class: "sort-header" }, Ee = { class: "sort-rules-list" }, ze = { class: "drag-handle" }, Ce = { class: "col-display-btn" }, Ue = { style: { "text-align": "left", "max-height": "300px", "overflow-y": "auto" } }, Ne = {
|
|
42
42
|
__name: "tableSetting",
|
|
43
|
-
setup(
|
|
44
|
-
const
|
|
45
|
-
get: () =>
|
|
46
|
-
set: (
|
|
47
|
-
|
|
43
|
+
setup(Re) {
|
|
44
|
+
const z = Q(!1), { dataSourceDialogVisible: S, openDataSourceDialog: P, DataSourceDialog: $ } = oe(), a = c(() => X()), C = c(() => a.value.dataSources || []), w = c({
|
|
45
|
+
get: () => a.value.dataSourceId,
|
|
46
|
+
set: (r) => {
|
|
47
|
+
a.value.dataSourceId = r;
|
|
48
48
|
}
|
|
49
|
-
}), U =
|
|
49
|
+
}), U = c(() => {
|
|
50
50
|
if (!w.value)
|
|
51
51
|
return "";
|
|
52
|
-
const
|
|
52
|
+
const r = C.value.find(
|
|
53
53
|
(e) => e.id === w.value
|
|
54
54
|
);
|
|
55
|
-
return
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
}, u =
|
|
59
|
-
get: () =>
|
|
60
|
-
set: (
|
|
61
|
-
|
|
55
|
+
return r ? r.name : "";
|
|
56
|
+
}), A = () => {
|
|
57
|
+
P();
|
|
58
|
+
}, u = c({
|
|
59
|
+
get: () => a.value.sortRules || [],
|
|
60
|
+
set: (r) => {
|
|
61
|
+
a.value.sortRules = r;
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
function
|
|
65
|
-
return
|
|
64
|
+
function N() {
|
|
65
|
+
return a.value.fieldsData.filter((r) => r.isShow).length;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
67
|
+
function G(r) {
|
|
68
|
+
r != "add" && (a.value.dataSourceId = r);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function H() {
|
|
71
71
|
u.value = [
|
|
72
72
|
...u.value,
|
|
73
73
|
{
|
|
@@ -76,34 +76,34 @@ const ye = { class: "table-setting" }, we = { class: "setting-left" }, De = { cl
|
|
|
76
76
|
}
|
|
77
77
|
];
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
u.value = u.value.filter((e,
|
|
79
|
+
function L(r) {
|
|
80
|
+
u.value = u.value.filter((e, f) => f !== r);
|
|
81
81
|
}
|
|
82
|
-
return (
|
|
83
|
-
const
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
modelValue: l(
|
|
89
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
82
|
+
return (r, e) => {
|
|
83
|
+
const f = ie, D = de, R = re, I = ue, O = me, j = pe, v = fe, x = ge, M = _e, E = ve, B = Ve, q = ce, F = se, J = be, K = ke;
|
|
84
|
+
return s(), m(g, null, [
|
|
85
|
+
i("div", ye, [
|
|
86
|
+
i("div", Se, [
|
|
87
|
+
n(D, {
|
|
88
|
+
modelValue: l(a).selectMode,
|
|
89
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l(a).selectMode = t),
|
|
90
90
|
size: "small"
|
|
91
91
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
|
|
94
|
-
default:
|
|
92
|
+
default: o(() => [
|
|
93
|
+
n(f, { value: "none" }, {
|
|
94
|
+
default: o(() => [...e[8] || (e[8] = [
|
|
95
95
|
d("无", -1)
|
|
96
96
|
])]),
|
|
97
97
|
_: 1
|
|
98
98
|
}),
|
|
99
|
-
|
|
100
|
-
default:
|
|
99
|
+
n(f, { value: "single" }, {
|
|
100
|
+
default: o(() => [...e[9] || (e[9] = [
|
|
101
101
|
d("单选", -1)
|
|
102
102
|
])]),
|
|
103
103
|
_: 1
|
|
104
104
|
}),
|
|
105
|
-
|
|
106
|
-
default:
|
|
105
|
+
n(f, { value: "multiple" }, {
|
|
106
|
+
default: o(() => [...e[10] || (e[10] = [
|
|
107
107
|
d("多选", -1)
|
|
108
108
|
])]),
|
|
109
109
|
_: 1
|
|
@@ -111,36 +111,48 @@ const ye = { class: "table-setting" }, we = { class: "setting-left" }, De = { cl
|
|
|
111
111
|
]),
|
|
112
112
|
_: 1
|
|
113
113
|
}, 8, ["modelValue"]),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
114
|
+
l(a).selectMode == "multiple" ? (s(), m(g, { key: 0 }, [
|
|
115
|
+
e[11] || (e[11] = i("div", { class: "setting-divider" }, null, -1)),
|
|
116
|
+
e[12] || (e[12] = i("span", { class: "text-label" }, "主键字段", -1)),
|
|
117
|
+
n(I, {
|
|
118
|
+
modelValue: l(a).pkFieldName,
|
|
119
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l(a).pkFieldName = t),
|
|
120
|
+
size: "small",
|
|
121
|
+
style: { width: "100px" }
|
|
122
|
+
}, {
|
|
123
|
+
default: o(() => [
|
|
124
|
+
(s(!0), m(g, null, b(l(a).fieldsData, (t) => (s(), _(R, {
|
|
125
|
+
key: t.fieldName,
|
|
126
|
+
label: t.label,
|
|
127
|
+
value: t.fieldName
|
|
128
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["modelValue"])
|
|
132
|
+
], 64)) : k("", !0),
|
|
133
|
+
e[17] || (e[17] = i("div", { class: "setting-divider" }, null, -1)),
|
|
134
|
+
e[18] || (e[18] = i("span", { class: "text-label" }, "序号", -1)),
|
|
135
|
+
n(O, {
|
|
136
|
+
modelValue: l(a).showIndex,
|
|
137
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => l(a).showIndex = t),
|
|
126
138
|
size: "small"
|
|
127
139
|
}, null, 8, ["modelValue"]),
|
|
128
|
-
e[19] || (e[19] =
|
|
129
|
-
e[20] || (e[20] =
|
|
130
|
-
|
|
131
|
-
modelValue: l(
|
|
132
|
-
"onUpdate:modelValue": e[3] || (e[3] = (
|
|
140
|
+
e[19] || (e[19] = i("div", { class: "setting-divider" }, null, -1)),
|
|
141
|
+
e[20] || (e[20] = i("span", { class: "text-label" }, "高度", -1)),
|
|
142
|
+
n(D, {
|
|
143
|
+
modelValue: l(a).heightMode,
|
|
144
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => l(a).heightMode = t),
|
|
133
145
|
size: "small"
|
|
134
146
|
}, {
|
|
135
|
-
default:
|
|
136
|
-
|
|
137
|
-
default:
|
|
147
|
+
default: o(() => [
|
|
148
|
+
n(f, { value: "auto" }, {
|
|
149
|
+
default: o(() => [...e[13] || (e[13] = [
|
|
138
150
|
d("自适应", -1)
|
|
139
151
|
])]),
|
|
140
152
|
_: 1
|
|
141
153
|
}),
|
|
142
|
-
|
|
143
|
-
default:
|
|
154
|
+
n(f, { value: "fixed" }, {
|
|
155
|
+
default: o(() => [...e[14] || (e[14] = [
|
|
144
156
|
d("固定", -1)
|
|
145
157
|
])]),
|
|
146
158
|
_: 1
|
|
@@ -148,48 +160,48 @@ const ye = { class: "table-setting" }, we = { class: "setting-left" }, De = { cl
|
|
|
148
160
|
]),
|
|
149
161
|
_: 1
|
|
150
162
|
}, 8, ["modelValue"]),
|
|
151
|
-
l(
|
|
152
|
-
key:
|
|
153
|
-
modelValue: l(
|
|
154
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
|
163
|
+
l(a).heightMode === "fixed" ? (s(), _(j, {
|
|
164
|
+
key: 1,
|
|
165
|
+
modelValue: l(a).height,
|
|
166
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => l(a).height = t),
|
|
155
167
|
min: 100,
|
|
156
168
|
size: "small",
|
|
157
169
|
"controls-position": "right",
|
|
158
170
|
class: "height-input"
|
|
159
171
|
}, {
|
|
160
|
-
append:
|
|
172
|
+
append: o(() => [...e[15] || (e[15] = [
|
|
161
173
|
d("px", -1)
|
|
162
174
|
])]),
|
|
163
175
|
_: 1
|
|
164
|
-
}, 8, ["modelValue"])) :
|
|
165
|
-
e[21] || (e[21] =
|
|
166
|
-
e[22] || (e[22] =
|
|
167
|
-
|
|
176
|
+
}, 8, ["modelValue"])) : k("", !0),
|
|
177
|
+
e[21] || (e[21] = i("div", { class: "setting-divider" }, null, -1)),
|
|
178
|
+
e[22] || (e[22] = i("span", { class: "text-label" }, "数据源", -1)),
|
|
179
|
+
n(E, {
|
|
168
180
|
trigger: "click",
|
|
169
|
-
onCommand:
|
|
181
|
+
onCommand: G
|
|
170
182
|
}, {
|
|
171
|
-
dropdown:
|
|
172
|
-
|
|
173
|
-
default:
|
|
174
|
-
(
|
|
175
|
-
key:
|
|
176
|
-
command:
|
|
183
|
+
dropdown: o(() => [
|
|
184
|
+
n(M, null, {
|
|
185
|
+
default: o(() => [
|
|
186
|
+
(s(!0), m(g, null, b(l(C), (t) => (s(), _(x, {
|
|
187
|
+
key: t.id,
|
|
188
|
+
command: t.id
|
|
177
189
|
}, {
|
|
178
|
-
default:
|
|
179
|
-
d(
|
|
190
|
+
default: o(() => [
|
|
191
|
+
d(V(t.name), 1)
|
|
180
192
|
]),
|
|
181
193
|
_: 2
|
|
182
194
|
}, 1032, ["command"]))), 128)),
|
|
183
|
-
|
|
184
|
-
default:
|
|
185
|
-
|
|
195
|
+
n(x, { command: "add" }, {
|
|
196
|
+
default: o(() => [
|
|
197
|
+
n(v, {
|
|
186
198
|
type: "primary",
|
|
187
199
|
size: "small",
|
|
188
200
|
icon: l(Y),
|
|
189
201
|
link: "",
|
|
190
|
-
onClick:
|
|
202
|
+
onClick: A
|
|
191
203
|
}, {
|
|
192
|
-
default:
|
|
204
|
+
default: o(() => [...e[16] || (e[16] = [
|
|
193
205
|
d(" 新增数据源 ", -1)
|
|
194
206
|
])]),
|
|
195
207
|
_: 1
|
|
@@ -201,14 +213,14 @@ const ye = { class: "table-setting" }, we = { class: "setting-left" }, De = { cl
|
|
|
201
213
|
_: 1
|
|
202
214
|
})
|
|
203
215
|
]),
|
|
204
|
-
default:
|
|
205
|
-
|
|
216
|
+
default: o(() => [
|
|
217
|
+
n(v, {
|
|
206
218
|
icon: l(Z),
|
|
207
219
|
size: "small",
|
|
208
220
|
class: W(["data-source-btn", { "is-configured": l(w) }])
|
|
209
221
|
}, {
|
|
210
|
-
default:
|
|
211
|
-
d(
|
|
222
|
+
default: o(() => [
|
|
223
|
+
d(V(l(U) ? `已配置 (${l(U)})` : "配置数据源"), 1)
|
|
212
224
|
]),
|
|
213
225
|
_: 1
|
|
214
226
|
}, 8, ["icon", "class"])
|
|
@@ -216,89 +228,79 @@ const ye = { class: "table-setting" }, we = { class: "setting-left" }, De = { cl
|
|
|
216
228
|
_: 1
|
|
217
229
|
})
|
|
218
230
|
]),
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
icon: l(h),
|
|
222
|
-
size: "small"
|
|
223
|
-
}, {
|
|
224
|
-
default: t(() => [...e[23] || (e[23] = [
|
|
225
|
-
d("配置事件", -1)
|
|
226
|
-
])]),
|
|
227
|
-
_: 1
|
|
228
|
-
}, 8, ["icon"]),
|
|
229
|
-
e[30] || (e[30] = a("div", { class: "setting-divider" }, null, -1)),
|
|
230
|
-
o(z, {
|
|
231
|
+
i("div", we, [
|
|
232
|
+
n(E, {
|
|
231
233
|
trigger: "click",
|
|
232
234
|
"popper-class": "sort-config-dropdown",
|
|
233
|
-
onVisibleChange: e[6] || (e[6] = (
|
|
235
|
+
onVisibleChange: e[6] || (e[6] = (t) => z.value = t)
|
|
234
236
|
}, {
|
|
235
|
-
dropdown:
|
|
236
|
-
l(
|
|
237
|
-
|
|
238
|
-
e[
|
|
239
|
-
|
|
237
|
+
dropdown: o(() => [
|
|
238
|
+
l(z) ? (s(), m("div", De, [
|
|
239
|
+
i("div", xe, [
|
|
240
|
+
e[25] || (e[25] = i("span", { class: "sort-tip" }, "以下排序规则从上到下按序执行", -1)),
|
|
241
|
+
n(v, {
|
|
240
242
|
type: "primary",
|
|
241
243
|
size: "small",
|
|
242
|
-
onClick:
|
|
244
|
+
onClick: H,
|
|
243
245
|
icon: "Plus"
|
|
244
246
|
}, {
|
|
245
|
-
default:
|
|
247
|
+
default: o(() => [...e[24] || (e[24] = [
|
|
246
248
|
d(" 添加排序规则 ", -1)
|
|
247
249
|
])]),
|
|
248
250
|
_: 1
|
|
249
251
|
})
|
|
250
252
|
]),
|
|
251
|
-
|
|
252
|
-
|
|
253
|
+
i("div", Ee, [
|
|
254
|
+
n(l(ne), {
|
|
253
255
|
modelValue: l(u),
|
|
254
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
256
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => T(u) ? u.value = t : null),
|
|
255
257
|
animation: 150,
|
|
256
258
|
handle: ".drag-handle"
|
|
257
259
|
}, {
|
|
258
|
-
default:
|
|
259
|
-
(
|
|
260
|
-
key:
|
|
260
|
+
default: o(() => [
|
|
261
|
+
(s(!0), m(g, null, b(l(u), (t, y) => (s(), m("div", {
|
|
262
|
+
key: y,
|
|
261
263
|
class: "sort-rule-item"
|
|
262
264
|
}, [
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
default:
|
|
266
|
-
|
|
265
|
+
i("div", ze, [
|
|
266
|
+
n(q, null, {
|
|
267
|
+
default: o(() => [
|
|
268
|
+
n(l(h))
|
|
267
269
|
]),
|
|
268
270
|
_: 1
|
|
269
271
|
})
|
|
270
272
|
]),
|
|
271
|
-
|
|
272
|
-
modelValue:
|
|
273
|
-
"onUpdate:modelValue": (
|
|
273
|
+
n(I, {
|
|
274
|
+
modelValue: t.field,
|
|
275
|
+
"onUpdate:modelValue": (p) => t.field = p,
|
|
274
276
|
size: "small",
|
|
275
277
|
placeholder: "选择字段",
|
|
276
278
|
style: { width: "150px" },
|
|
277
279
|
"append-to": ".sort-config-dropdown"
|
|
278
280
|
}, {
|
|
279
|
-
default:
|
|
280
|
-
(
|
|
281
|
-
key:
|
|
282
|
-
label:
|
|
283
|
-
value:
|
|
281
|
+
default: o(() => [
|
|
282
|
+
(s(!0), m(g, null, b(l(a).fieldsData, (p) => (s(), _(R, {
|
|
283
|
+
key: p.id,
|
|
284
|
+
label: p.label,
|
|
285
|
+
value: p.fieldName
|
|
284
286
|
}, null, 8, ["label", "value"]))), 128))
|
|
285
287
|
]),
|
|
286
288
|
_: 1
|
|
287
289
|
}, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
288
|
-
|
|
289
|
-
modelValue:
|
|
290
|
-
"onUpdate:modelValue": (
|
|
290
|
+
n(D, {
|
|
291
|
+
modelValue: t.order,
|
|
292
|
+
"onUpdate:modelValue": (p) => t.order = p,
|
|
291
293
|
size: "small"
|
|
292
294
|
}, {
|
|
293
|
-
default:
|
|
294
|
-
|
|
295
|
-
default:
|
|
295
|
+
default: o(() => [
|
|
296
|
+
n(F, { value: "asc" }, {
|
|
297
|
+
default: o(() => [...e[26] || (e[26] = [
|
|
296
298
|
d("升序", -1)
|
|
297
299
|
])]),
|
|
298
300
|
_: 1
|
|
299
301
|
}),
|
|
300
|
-
|
|
301
|
-
default:
|
|
302
|
+
n(F, { value: "desc" }, {
|
|
303
|
+
default: o(() => [...e[27] || (e[27] = [
|
|
302
304
|
d("降序", -1)
|
|
303
305
|
])]),
|
|
304
306
|
_: 1
|
|
@@ -306,72 +308,71 @@ const ye = { class: "table-setting" }, we = { class: "setting-left" }, De = { cl
|
|
|
306
308
|
]),
|
|
307
309
|
_: 1
|
|
308
310
|
}, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
309
|
-
|
|
310
|
-
icon: l(
|
|
311
|
+
n(v, {
|
|
312
|
+
icon: l(ee),
|
|
311
313
|
link: "",
|
|
312
314
|
type: "danger",
|
|
313
315
|
class: "delete-btn",
|
|
314
|
-
onClick: (
|
|
316
|
+
onClick: (p) => L(y)
|
|
315
317
|
}, null, 8, ["icon", "onClick"])
|
|
316
318
|
]))), 128))
|
|
317
319
|
]),
|
|
318
320
|
_: 1
|
|
319
321
|
}, 8, ["modelValue"]),
|
|
320
|
-
l(u).length === 0 ? (
|
|
322
|
+
l(u).length === 0 ? (s(), _(J, {
|
|
321
323
|
key: 0,
|
|
322
324
|
description: "暂无排序规则",
|
|
323
325
|
"image-size": 60
|
|
324
|
-
})) :
|
|
326
|
+
})) : k("", !0)
|
|
325
327
|
])
|
|
326
|
-
])) :
|
|
328
|
+
])) : k("", !0)
|
|
327
329
|
]),
|
|
328
|
-
default:
|
|
329
|
-
|
|
330
|
-
icon: l(
|
|
330
|
+
default: o(() => [
|
|
331
|
+
n(v, {
|
|
332
|
+
icon: l(le),
|
|
331
333
|
size: "small"
|
|
332
334
|
}, {
|
|
333
|
-
default:
|
|
334
|
-
e[
|
|
335
|
-
l(u).length > 0 ? (
|
|
335
|
+
default: o(() => [
|
|
336
|
+
e[23] || (e[23] = d(" 配置排序 ", -1)),
|
|
337
|
+
l(u).length > 0 ? (s(), _(B, {
|
|
336
338
|
key: 0,
|
|
337
339
|
size: "small",
|
|
338
340
|
type: "primary",
|
|
339
341
|
class: "sort-count-tag"
|
|
340
342
|
}, {
|
|
341
|
-
default:
|
|
342
|
-
d(
|
|
343
|
+
default: o(() => [
|
|
344
|
+
d(V(l(u).length), 1)
|
|
343
345
|
]),
|
|
344
346
|
_: 1
|
|
345
|
-
})) :
|
|
347
|
+
})) : k("", !0)
|
|
346
348
|
]),
|
|
347
349
|
_: 1
|
|
348
350
|
}, 8, ["icon"])
|
|
349
351
|
]),
|
|
350
352
|
_: 1
|
|
351
353
|
}),
|
|
352
|
-
e[
|
|
353
|
-
|
|
354
|
+
e[29] || (e[29] = i("div", { class: "setting-divider" }, null, -1)),
|
|
355
|
+
n(E, {
|
|
354
356
|
size: "small",
|
|
355
357
|
"hide-on-click": !1,
|
|
356
358
|
trigger: "click"
|
|
357
359
|
}, {
|
|
358
|
-
dropdown:
|
|
359
|
-
|
|
360
|
-
default:
|
|
361
|
-
|
|
362
|
-
(
|
|
363
|
-
key:
|
|
360
|
+
dropdown: o(() => [
|
|
361
|
+
n(M, null, {
|
|
362
|
+
default: o(() => [
|
|
363
|
+
i("div", Ue, [
|
|
364
|
+
(s(!0), m(g, null, b(l(a).fieldsData, (t) => (s(), _(x, {
|
|
365
|
+
key: t.id,
|
|
364
366
|
class: "optCol"
|
|
365
367
|
}, {
|
|
366
|
-
default:
|
|
367
|
-
|
|
368
|
-
modelValue:
|
|
369
|
-
"onUpdate:modelValue": (
|
|
370
|
-
disabled:
|
|
371
|
-
size: "small"
|
|
368
|
+
default: o(() => [
|
|
369
|
+
n(K, {
|
|
370
|
+
modelValue: t.isShow,
|
|
371
|
+
"onUpdate:modelValue": (y) => t.isShow = y,
|
|
372
|
+
disabled: t.isShow && N() === 1
|
|
372
373
|
}, {
|
|
373
|
-
default:
|
|
374
|
-
d(
|
|
374
|
+
default: o(() => [
|
|
375
|
+
d(V(t.label), 1)
|
|
375
376
|
]),
|
|
376
377
|
_: 2
|
|
377
378
|
}, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])
|
|
@@ -383,21 +384,21 @@ const ye = { class: "table-setting" }, we = { class: "setting-left" }, De = { cl
|
|
|
383
384
|
_: 1
|
|
384
385
|
})
|
|
385
386
|
]),
|
|
386
|
-
default:
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
icon: l(
|
|
387
|
+
default: o(() => [
|
|
388
|
+
i("div", Ce, [
|
|
389
|
+
n(v, {
|
|
390
|
+
icon: l(te),
|
|
390
391
|
size: "small"
|
|
391
392
|
}, {
|
|
392
|
-
default:
|
|
393
|
-
e[
|
|
394
|
-
|
|
393
|
+
default: o(() => [
|
|
394
|
+
e[28] || (e[28] = d("列显隐 ", -1)),
|
|
395
|
+
n(B, {
|
|
395
396
|
size: "small",
|
|
396
397
|
type: "primary",
|
|
397
398
|
class: "col-count"
|
|
398
399
|
}, {
|
|
399
|
-
default:
|
|
400
|
-
d(
|
|
400
|
+
default: o(() => [
|
|
401
|
+
d(V(N()) + "/" + V(l(a).fieldsData.length), 1)
|
|
401
402
|
]),
|
|
402
403
|
_: 1
|
|
403
404
|
})
|
|
@@ -410,14 +411,14 @@ const ye = { class: "table-setting" }, we = { class: "setting-left" }, De = { cl
|
|
|
410
411
|
})
|
|
411
412
|
])
|
|
412
413
|
]),
|
|
413
|
-
|
|
414
|
-
modelValue: l(
|
|
415
|
-
"onUpdate:modelValue": e[7] || (e[7] = (
|
|
414
|
+
n(l($), {
|
|
415
|
+
modelValue: l(S),
|
|
416
|
+
"onUpdate:modelValue": e[7] || (e[7] = (t) => T(S) ? S.value = t : null)
|
|
416
417
|
}, null, 8, ["modelValue"])
|
|
417
418
|
], 64);
|
|
418
419
|
};
|
|
419
420
|
}
|
|
420
|
-
},
|
|
421
|
+
}, _l = /* @__PURE__ */ ae(Ne, [["__scopeId", "data-v-7571b44a"]]);
|
|
421
422
|
export {
|
|
422
|
-
|
|
423
|
+
_l as default
|
|
423
424
|
};
|