@fecp/designer 5.4.81 → 5.4.83
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/table/aside/index.mjs +1 -1
- package/es/designer/src/packages/table/index.vue.mjs +17 -166
- package/es/designer/src/packages/table/property/widgets.vue.mjs +37 -10
- package/es/designer/src/packages/table/queryModule/DynamicModeConfig.vue.mjs +18 -6
- package/es/designer/src/packages/utils/datasource.mjs +2 -3
- package/es/designer.css +231 -210
- package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +2 -3
- package/es/packages/vue/src/components/table/Table.vue.mjs +32 -5
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +6 -5
- package/es/packages/vue/src/components/table/TableFilter.vue.mjs +3 -3
- package/es/packages/vue/src/utils/datasource.mjs +4 -6
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/table/aside/index.js +1 -1
- package/lib/designer/src/packages/table/index.vue.js +24 -173
- package/lib/designer/src/packages/table/property/widgets.vue.js +37 -10
- package/lib/designer/src/packages/table/queryModule/DynamicModeConfig.vue.js +18 -6
- package/lib/designer/src/packages/utils/datasource.js +2 -3
- package/lib/designer.css +231 -210
- package/lib/packages/vue/src/components/forms/h2/H2.vue.js +1 -1
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +2 -3
- package/lib/packages/vue/src/components/table/Table.vue.js +38 -11
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +6 -5
- package/lib/packages/vue/src/components/table/TableFilter.vue.js +3 -3
- package/lib/packages/vue/src/utils/datasource.js +4 -6
- package/package.json +1 -1
|
@@ -310,8 +310,7 @@ const _sfc_main = {
|
|
|
310
310
|
}, createSlots({
|
|
311
311
|
suffix: withCtx(() => [
|
|
312
312
|
createVNode(_component_el_icon, {
|
|
313
|
-
class: "el-input__icon",
|
|
314
|
-
style: { "cursor": "pointer" },
|
|
313
|
+
class: "el-input__icon search",
|
|
315
314
|
onClick: handleSearch
|
|
316
315
|
}, {
|
|
317
316
|
default: withCtx(() => [
|
|
@@ -470,7 +469,7 @@ const _sfc_main = {
|
|
|
470
469
|
};
|
|
471
470
|
}
|
|
472
471
|
};
|
|
473
|
-
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
472
|
+
const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fe7f988e"]]);
|
|
474
473
|
export {
|
|
475
474
|
DynamicQuery as default
|
|
476
475
|
};
|
|
@@ -7,6 +7,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { ref, getCurrentInstance, computed, reactive, watch, onMounted, onUnmounted, createBlock, openBlock, normalizeClass, withCtx, createElementBlock, createCommentVNode, normalizeStyle, createElementVNode, Fragment, createVNode, unref, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
9
9
|
import "../../../../../node_modules/vxe-table/es/components.mjs";
|
|
10
|
+
import XEUtils from "../../../../../_virtual/index2.mjs";
|
|
10
11
|
/* empty css */
|
|
11
12
|
import { createDataSource } from "../../utils/datasource.mjs";
|
|
12
13
|
import Pagination from "./Pagination.vue.mjs";
|
|
@@ -144,13 +145,26 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
144
145
|
}));
|
|
145
146
|
const dataSourceOptions = ref({});
|
|
146
147
|
const dictionaryOptions = ref({});
|
|
148
|
+
const staticSortData = ref({});
|
|
147
149
|
const displayData = computed(() => {
|
|
148
150
|
var _a;
|
|
149
151
|
if (props.tableData && props.tableData.length > 0) {
|
|
150
|
-
return props.tableData;
|
|
152
|
+
return sortDataWithStaticRules(props.tableData);
|
|
151
153
|
}
|
|
152
|
-
|
|
154
|
+
const data = ((_a = dataSourceManager.value) == null ? void 0 : _a.getData().list) || [];
|
|
155
|
+
return sortDataWithStaticRules(data);
|
|
153
156
|
});
|
|
157
|
+
const sortDataWithStaticRules = (data) => {
|
|
158
|
+
if (!data || data.length === 0) return data;
|
|
159
|
+
const sortFields = Object.keys(staticSortData.value);
|
|
160
|
+
if (sortFields.length === 0) return data;
|
|
161
|
+
const mockList = data.map((item) => ({ ...item }));
|
|
162
|
+
const fields = sortFields.map((field) => ({
|
|
163
|
+
field,
|
|
164
|
+
order: staticSortData.value[field]
|
|
165
|
+
}));
|
|
166
|
+
return XEUtils.orderBy(mockList, fields);
|
|
167
|
+
};
|
|
154
168
|
const isPagination = computed(() => {
|
|
155
169
|
var _a;
|
|
156
170
|
if (props.isSubTable || props.isDialog) {
|
|
@@ -442,9 +456,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
442
456
|
};
|
|
443
457
|
const handleSortChange = ({ property, order }) => {
|
|
444
458
|
const orderValue = order ? order.replace("ending", "") : "";
|
|
445
|
-
|
|
459
|
+
const field = fieldsData.value.find((item) => item.fieldName == property);
|
|
460
|
+
if ((field == null ? void 0 : field.sortRule) == "server") {
|
|
446
461
|
dataSourceManager.value.updateSort(property, orderValue);
|
|
447
462
|
tableDataFetch();
|
|
463
|
+
} else if ((field == null ? void 0 : field.sortRule) == "static") {
|
|
464
|
+
if (orderValue) {
|
|
465
|
+
staticSortData.value[property] = orderValue;
|
|
466
|
+
} else {
|
|
467
|
+
delete staticSortData.value[property];
|
|
468
|
+
}
|
|
448
469
|
}
|
|
449
470
|
emit("sort-change", { field: property, order: orderValue });
|
|
450
471
|
};
|
|
@@ -580,6 +601,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
580
601
|
range: true,
|
|
581
602
|
reserve: true
|
|
582
603
|
});
|
|
604
|
+
const sortConfig = reactive({
|
|
605
|
+
multiple: true,
|
|
606
|
+
chronological: true,
|
|
607
|
+
remote: true
|
|
608
|
+
});
|
|
583
609
|
const handlePersonalize = () => {
|
|
584
610
|
if (tableRef.value) {
|
|
585
611
|
tableRef.value.openCustom();
|
|
@@ -775,6 +801,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
775
801
|
"row-config": rowConfig.value,
|
|
776
802
|
"radio-config": unref(radioConfig),
|
|
777
803
|
"checkbox-config": unref(checkboxConfig),
|
|
804
|
+
"sort-config": unref(sortConfig),
|
|
778
805
|
"show-footer": summaryConfig.value.enabled,
|
|
779
806
|
"footer-data": footerData.value,
|
|
780
807
|
onSortChange: handleSortChange,
|
|
@@ -815,7 +842,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
815
842
|
];
|
|
816
843
|
}),
|
|
817
844
|
_: 3
|
|
818
|
-
}, 8, ["data", "auto-resize", "height", "export-config", "row-config", "radio-config", "checkbox-config", "show-footer", "footer-data"])
|
|
845
|
+
}, 8, ["data", "auto-resize", "height", "export-config", "row-config", "radio-config", "checkbox-config", "sort-config", "show-footer", "footer-data"])
|
|
819
846
|
]),
|
|
820
847
|
isPagination.value ? (openBlock(), createBlock(Pagination, {
|
|
821
848
|
key: 2,
|
|
@@ -831,7 +858,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
831
858
|
};
|
|
832
859
|
}
|
|
833
860
|
});
|
|
834
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
861
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-578f27a6"]]);
|
|
835
862
|
export {
|
|
836
863
|
_Table as default
|
|
837
864
|
};
|
|
@@ -376,11 +376,12 @@ const _sfc_main = {
|
|
|
376
376
|
fixed: field.isFixed ? "left" : void 0,
|
|
377
377
|
align: field.align,
|
|
378
378
|
"header-align": field.headerAlign,
|
|
379
|
-
sortable: field.
|
|
379
|
+
sortable: field.sortRule && field.sortRule != "none",
|
|
380
380
|
resizable: false,
|
|
381
381
|
"show-header-overflow": "",
|
|
382
382
|
"show-footer-overflow": "",
|
|
383
|
-
"show-overflow": field.isOverflowWrap ? false : "title"
|
|
383
|
+
"show-overflow": field.isOverflowWrap ? false : "title",
|
|
384
|
+
"header-class-name": field.sortRule == "server" ? "serverSort" : ""
|
|
384
385
|
}, {
|
|
385
386
|
default: withCtx(({ row }) => [
|
|
386
387
|
renderSlot(_ctx.$slots, `cell-${field.fieldName}`, {
|
|
@@ -391,7 +392,7 @@ const _sfc_main = {
|
|
|
391
392
|
field.isLink ? (openBlock(), createBlock(_component_el_link, {
|
|
392
393
|
key: 1,
|
|
393
394
|
type: "primary",
|
|
394
|
-
underline:
|
|
395
|
+
underline: "never",
|
|
395
396
|
onClick: ($event) => handleButtonClick(row, field, field.linkConfig)
|
|
396
397
|
}, {
|
|
397
398
|
default: withCtx(() => [
|
|
@@ -415,7 +416,7 @@ const _sfc_main = {
|
|
|
415
416
|
], true)
|
|
416
417
|
]),
|
|
417
418
|
_: 2
|
|
418
|
-
}, 1032, ["field", "title", "width", "min-width", "fixed", "align", "header-align", "sortable", "show-overflow"]);
|
|
419
|
+
}, 1032, ["field", "title", "width", "min-width", "fixed", "align", "header-align", "sortable", "show-overflow", "header-class-name"]);
|
|
419
420
|
}), 128)),
|
|
420
421
|
!__props.readonly && shouldShowOptColumn.value ? (openBlock(), createBlock(unref(VxeColumn), {
|
|
421
422
|
key: 3,
|
|
@@ -446,7 +447,7 @@ const _sfc_main = {
|
|
|
446
447
|
};
|
|
447
448
|
}
|
|
448
449
|
};
|
|
449
|
-
const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
450
|
+
const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5138d230"]]);
|
|
450
451
|
export {
|
|
451
452
|
TableColumn as default
|
|
452
453
|
};
|
|
@@ -46,7 +46,7 @@ const _sfc_main = {
|
|
|
46
46
|
emits: ["search", "reset"],
|
|
47
47
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
48
48
|
useCssVars((_ctx) => ({
|
|
49
|
-
"
|
|
49
|
+
"0b02222c": `${config.value.collapseRows * 90}px`
|
|
50
50
|
}));
|
|
51
51
|
const props = __props;
|
|
52
52
|
const emit = __emit;
|
|
@@ -240,7 +240,7 @@ const _sfc_main = {
|
|
|
240
240
|
onClick: handleSearch
|
|
241
241
|
}, {
|
|
242
242
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
243
|
-
createTextVNode("
|
|
243
|
+
createTextVNode("查询")
|
|
244
244
|
])),
|
|
245
245
|
_: 1
|
|
246
246
|
}),
|
|
@@ -282,7 +282,7 @@ const _sfc_main = {
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
|
-
const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
285
|
+
const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b60de83e"]]);
|
|
286
286
|
export {
|
|
287
287
|
TableFilter as default
|
|
288
288
|
};
|
|
@@ -255,19 +255,17 @@ class DataSourceManager {
|
|
|
255
255
|
* 更新排序
|
|
256
256
|
*/
|
|
257
257
|
updateSort(field, order) {
|
|
258
|
-
const existingIndex = this.sortRules.findIndex(
|
|
259
|
-
|
|
260
|
-
);
|
|
258
|
+
const existingIndex = this.sortRules.findIndex((rule) => rule.field === field);
|
|
259
|
+
debugger;
|
|
261
260
|
if (!order) {
|
|
262
261
|
if (existingIndex > -1) {
|
|
263
262
|
this.sortRules.splice(existingIndex, 1);
|
|
264
263
|
}
|
|
265
264
|
} else {
|
|
266
265
|
if (existingIndex > -1) {
|
|
267
|
-
this.sortRules
|
|
268
|
-
} else {
|
|
269
|
-
this.sortRules.push({ field, order });
|
|
266
|
+
this.sortRules.splice(existingIndex, 1);
|
|
270
267
|
}
|
|
268
|
+
this.sortRules.unshift({ field, order });
|
|
271
269
|
}
|
|
272
270
|
}
|
|
273
271
|
/**
|
|
@@ -4,23 +4,13 @@ require("../../../../node_modules/element-plus/es/index.js");
|
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
|
-
;/* empty css */
|
|
8
|
-
;/* empty css */
|
|
9
|
-
;/* empty css */
|
|
10
|
-
;/* empty css */
|
|
11
|
-
require("../../../../node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js");
|
|
12
|
-
;/* empty css */
|
|
13
|
-
;/* empty css */
|
|
14
|
-
;/* empty css */
|
|
15
|
-
;/* empty css */
|
|
16
|
-
;/* empty css */
|
|
17
7
|
;/* empty css */
|
|
18
8
|
;/* empty css */
|
|
19
9
|
;/* empty css */
|
|
20
10
|
const vue = require("vue");
|
|
21
11
|
const _default = require("./default.js");
|
|
22
12
|
const vueDraggablePlus = require("../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js");
|
|
23
|
-
const index$
|
|
13
|
+
const index$6 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
24
14
|
const TableSetting = require("./TableSetting.vue.js");
|
|
25
15
|
const index = ;/* empty css */
|
|
26
16
|
const tablePagination = require("./tablePagination.vue.js");
|
|
@@ -35,11 +25,8 @@ const index$2 = require("../../../../node_modules/element-plus/es/components/rad
|
|
|
35
25
|
const index$3 = require("../../../../node_modules/element-plus/es/components/scrollbar/index.js");
|
|
36
26
|
const index$4 = require("../../../../node_modules/element-plus/es/components/icon/index.js");
|
|
37
27
|
const index$5 = require("../../../../node_modules/element-plus/es/components/link/index.js");
|
|
38
|
-
const index$
|
|
39
|
-
const index$8 = require("../../../../node_modules/element-plus/es/components/
|
|
40
|
-
const index$9 = require("../../../../node_modules/element-plus/es/components/input-number/index.js");
|
|
41
|
-
const index$a = require("../../../../node_modules/element-plus/es/components/tag/index.js");
|
|
42
|
-
const index$b = require("../../../../node_modules/element-plus/es/components/message/index.js");
|
|
28
|
+
const index$7 = require("../../../../node_modules/element-plus/es/components/tag/index.js");
|
|
29
|
+
const index$8 = require("../../../../node_modules/element-plus/es/components/message/index.js");
|
|
43
30
|
const _hoisted_1 = { class: "table-work-area" };
|
|
44
31
|
const _hoisted_2 = {
|
|
45
32
|
key: 0,
|
|
@@ -56,19 +43,7 @@ const _hoisted_7 = { class: "widgets" };
|
|
|
56
43
|
const _hoisted_8 = { class: "field-label" };
|
|
57
44
|
const _hoisted_9 = { key: 1 };
|
|
58
45
|
const _hoisted_10 = { class: "quick-operation" };
|
|
59
|
-
const _hoisted_11 = { class: "
|
|
60
|
-
const _hoisted_12 = { class: "setting-row" };
|
|
61
|
-
const _hoisted_13 = { class: "setting-row" };
|
|
62
|
-
const _hoisted_14 = {
|
|
63
|
-
key: 0,
|
|
64
|
-
class: "setting-row"
|
|
65
|
-
};
|
|
66
|
-
const _hoisted_15 = {
|
|
67
|
-
key: 1,
|
|
68
|
-
class: "setting-row"
|
|
69
|
-
};
|
|
70
|
-
const _hoisted_16 = { class: "setting-row" };
|
|
71
|
-
const _hoisted_17 = { class: "widgets" };
|
|
46
|
+
const _hoisted_11 = { class: "widgets" };
|
|
72
47
|
const _sfc_main = {
|
|
73
48
|
__name: "index",
|
|
74
49
|
setup(__props) {
|
|
@@ -98,13 +73,7 @@ const _sfc_main = {
|
|
|
98
73
|
const tableOptions = vue.computed(() => {
|
|
99
74
|
return common.getEditConfigData();
|
|
100
75
|
});
|
|
101
|
-
|
|
102
|
-
function getDropdownVisible(itemId) {
|
|
103
|
-
return dropdownVisibleMap.value.get(itemId) || false;
|
|
104
|
-
}
|
|
105
|
-
function setDropdownVisible(itemId, visible) {
|
|
106
|
-
dropdownVisibleMap.value.set(itemId, visible);
|
|
107
|
-
}
|
|
76
|
+
vue.ref(/* @__PURE__ */ new Map());
|
|
108
77
|
function addOptBtns() {
|
|
109
78
|
tableOptions.value.optBtns.push({
|
|
110
79
|
id: Date.now(),
|
|
@@ -145,7 +114,7 @@ const _sfc_main = {
|
|
|
145
114
|
if (filterIndex !== -1) {
|
|
146
115
|
tableOptions.value.queryConfig.filterFields.splice(filterIndex, 1);
|
|
147
116
|
}
|
|
148
|
-
index$
|
|
117
|
+
index$8.ElMessage.success("字段已移至回收站");
|
|
149
118
|
}
|
|
150
119
|
common.setSelectedItem();
|
|
151
120
|
}
|
|
@@ -173,13 +142,8 @@ const _sfc_main = {
|
|
|
173
142
|
const _component_el_icon = index$4.ElIcon;
|
|
174
143
|
const _component_el_link = index$5.ElLink;
|
|
175
144
|
const _component_CopyDocument = vue.resolveComponent("CopyDocument");
|
|
176
|
-
const _component_el_option = index$8.ElOption;
|
|
177
|
-
const _component_el_select = index$8.ElSelect;
|
|
178
|
-
const _component_el_input_number = index$9.ElInputNumber;
|
|
179
|
-
const _component_el_dropdown_menu = index$6.ElDropdownMenu;
|
|
180
|
-
const _component_el_dropdown = index$6.ElDropdown;
|
|
181
145
|
const _component_el_scrollbar = index$3.ElScrollbar;
|
|
182
|
-
const _component_el_tag = index$
|
|
146
|
+
const _component_el_tag = index$7.ElTag;
|
|
183
147
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
184
148
|
vue.createVNode(vue.unref(index.default)),
|
|
185
149
|
vue.createVNode(TableSetting.default),
|
|
@@ -235,7 +199,15 @@ const _sfc_main = {
|
|
|
235
199
|
}, [
|
|
236
200
|
vue.createElementVNode("div", _hoisted_7, [
|
|
237
201
|
vue.createTextVNode(vue.toDisplayString(item.label) + " ", 1),
|
|
238
|
-
item.
|
|
202
|
+
item.sortRule == "static" ? (vue.openBlock(), vue.createBlock(_component_el_icon, { key: 0 }, {
|
|
203
|
+
default: vue.withCtx(() => [
|
|
204
|
+
vue.createVNode(_component_DCaret)
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
})) : item.sortRule == "server" ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
208
|
+
key: 1,
|
|
209
|
+
style: { "color": "#8dd0f0" }
|
|
210
|
+
}, {
|
|
239
211
|
default: vue.withCtx(() => [
|
|
240
212
|
vue.createVNode(_component_DCaret)
|
|
241
213
|
]),
|
|
@@ -262,134 +234,13 @@ const _sfc_main = {
|
|
|
262
234
|
})) : vue.createCommentVNode("", true)
|
|
263
235
|
]),
|
|
264
236
|
vue.createElementVNode("div", _hoisted_10, [
|
|
265
|
-
vue.createVNode(_component_el_dropdown, {
|
|
266
|
-
"max-height": 500,
|
|
267
|
-
"popper-class": `quick-operation-dropdown-${item.id}`,
|
|
268
|
-
trigger: "click",
|
|
269
|
-
placement: "bottom",
|
|
270
|
-
"hide-on-click": false,
|
|
271
|
-
onVisibleChange: (visible) => setDropdownVisible(item.id, visible)
|
|
272
|
-
}, {
|
|
273
|
-
dropdown: vue.withCtx(() => [
|
|
274
|
-
getDropdownVisible(item.id) ? (vue.openBlock(), vue.createBlock(_component_el_dropdown_menu, { key: 0 }, {
|
|
275
|
-
default: vue.withCtx(() => [
|
|
276
|
-
vue.createElementVNode("div", _hoisted_11, [
|
|
277
|
-
vue.createElementVNode("div", _hoisted_12, [
|
|
278
|
-
_cache[6] || (_cache[6] = vue.createElementVNode("span", { class: "setting-label" }, "对齐:", -1)),
|
|
279
|
-
vue.createVNode(_component_el_select, {
|
|
280
|
-
modelValue: item.align,
|
|
281
|
-
"onUpdate:modelValue": ($event) => item.align = $event,
|
|
282
|
-
size: "small",
|
|
283
|
-
class: "setting-select",
|
|
284
|
-
"append-to": `.quick-operation-dropdown-${item.id}`
|
|
285
|
-
}, {
|
|
286
|
-
default: vue.withCtx(() => [
|
|
287
|
-
vue.createVNode(_component_el_option, {
|
|
288
|
-
label: "左对齐",
|
|
289
|
-
value: "left"
|
|
290
|
-
}),
|
|
291
|
-
vue.createVNode(_component_el_option, {
|
|
292
|
-
label: "居中",
|
|
293
|
-
value: "center"
|
|
294
|
-
}),
|
|
295
|
-
vue.createVNode(_component_el_option, {
|
|
296
|
-
label: "右对齐",
|
|
297
|
-
value: "right"
|
|
298
|
-
})
|
|
299
|
-
]),
|
|
300
|
-
_: 2
|
|
301
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "append-to"])
|
|
302
|
-
]),
|
|
303
|
-
vue.createElementVNode("div", _hoisted_13, [
|
|
304
|
-
_cache[7] || (_cache[7] = vue.createElementVNode("span", { class: "setting-label" }, "宽度:", -1)),
|
|
305
|
-
vue.createVNode(_component_el_select, {
|
|
306
|
-
modelValue: item.widthMode,
|
|
307
|
-
"onUpdate:modelValue": ($event) => item.widthMode = $event,
|
|
308
|
-
size: "small",
|
|
309
|
-
class: "setting-select",
|
|
310
|
-
"append-to": `.quick-operation-dropdown-${item.id}`
|
|
311
|
-
}, {
|
|
312
|
-
default: vue.withCtx(() => [
|
|
313
|
-
vue.createVNode(_component_el_option, {
|
|
314
|
-
label: "自适应",
|
|
315
|
-
value: "auto"
|
|
316
|
-
}),
|
|
317
|
-
vue.createVNode(_component_el_option, {
|
|
318
|
-
label: "固定",
|
|
319
|
-
value: "fixed"
|
|
320
|
-
})
|
|
321
|
-
]),
|
|
322
|
-
_: 2
|
|
323
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "append-to"])
|
|
324
|
-
]),
|
|
325
|
-
item.widthMode === "fixed" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_14, [
|
|
326
|
-
_cache[8] || (_cache[8] = vue.createElementVNode("span", { class: "setting-label" }, "固定:", -1)),
|
|
327
|
-
vue.createVNode(_component_el_input_number, {
|
|
328
|
-
modelValue: item.width,
|
|
329
|
-
"onUpdate:modelValue": ($event) => item.width = $event,
|
|
330
|
-
size: "small",
|
|
331
|
-
min: 50,
|
|
332
|
-
max: 500,
|
|
333
|
-
"controls-position": "right",
|
|
334
|
-
class: "setting-input"
|
|
335
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
336
|
-
])) : vue.createCommentVNode("", true),
|
|
337
|
-
item.widthMode === "auto" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, [
|
|
338
|
-
_cache[9] || (_cache[9] = vue.createElementVNode("span", { class: "setting-label" }, "最小:", -1)),
|
|
339
|
-
vue.createVNode(_component_el_input_number, {
|
|
340
|
-
modelValue: item.minWidth,
|
|
341
|
-
"onUpdate:modelValue": ($event) => item.minWidth = $event,
|
|
342
|
-
size: "small",
|
|
343
|
-
min: 80,
|
|
344
|
-
max: 500,
|
|
345
|
-
"controls-position": "right",
|
|
346
|
-
class: "setting-input"
|
|
347
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
348
|
-
])) : vue.createCommentVNode("", true),
|
|
349
|
-
vue.createElementVNode("div", _hoisted_16, [
|
|
350
|
-
vue.createVNode(_component_el_checkbox, {
|
|
351
|
-
modelValue: item.canSort,
|
|
352
|
-
"onUpdate:modelValue": ($event) => item.canSort = $event,
|
|
353
|
-
label: "排序",
|
|
354
|
-
size: "small"
|
|
355
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
356
|
-
vue.createVNode(_component_el_checkbox, {
|
|
357
|
-
modelValue: item.isFixed,
|
|
358
|
-
"onUpdate:modelValue": ($event) => item.isFixed = $event,
|
|
359
|
-
label: "固定",
|
|
360
|
-
size: "small"
|
|
361
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
362
|
-
vue.createVNode(_component_el_checkbox, {
|
|
363
|
-
modelValue: item.canCopy,
|
|
364
|
-
"onUpdate:modelValue": ($event) => item.canCopy = $event,
|
|
365
|
-
label: "复制",
|
|
366
|
-
size: "small"
|
|
367
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
368
|
-
])
|
|
369
|
-
])
|
|
370
|
-
]),
|
|
371
|
-
_: 2
|
|
372
|
-
}, 1024)) : vue.createCommentVNode("", true)
|
|
373
|
-
]),
|
|
374
|
-
default: vue.withCtx(() => [
|
|
375
|
-
vue.createVNode(_component_el_icon, {
|
|
376
|
-
class: vue.normalizeClass(["setting-icon", { "is-active": getDropdownVisible(item.id) }])
|
|
377
|
-
}, {
|
|
378
|
-
default: vue.withCtx(() => [
|
|
379
|
-
vue.createVNode(vue.unref(index$7.Setting))
|
|
380
|
-
]),
|
|
381
|
-
_: 2
|
|
382
|
-
}, 1032, ["class"])
|
|
383
|
-
]),
|
|
384
|
-
_: 2
|
|
385
|
-
}, 1032, ["popper-class", "onVisibleChange"]),
|
|
386
237
|
getVisibleColCount() > 1 ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
387
238
|
key: 0,
|
|
388
239
|
class: "icon-action setting-icon",
|
|
389
240
|
onClick: vue.withModifiers(($event) => handleHide(item), ["stop"])
|
|
390
241
|
}, {
|
|
391
242
|
default: vue.withCtx(() => [
|
|
392
|
-
vue.createVNode(vue.unref(index$
|
|
243
|
+
vue.createVNode(vue.unref(index$6.Hide))
|
|
393
244
|
]),
|
|
394
245
|
_: 2
|
|
395
246
|
}, 1032, ["onClick"])) : vue.createCommentVNode("", true),
|
|
@@ -399,7 +250,7 @@ const _sfc_main = {
|
|
|
399
250
|
onClick: vue.withModifiers(($event) => deleteWidgets(item), ["stop"])
|
|
400
251
|
}, {
|
|
401
252
|
default: vue.withCtx(() => [
|
|
402
|
-
vue.createVNode(vue.unref(index$
|
|
253
|
+
vue.createVNode(vue.unref(index$6.Delete))
|
|
403
254
|
]),
|
|
404
255
|
_: 2
|
|
405
256
|
}, 1032, ["onClick"])) : vue.createCommentVNode("", true)
|
|
@@ -411,28 +262,28 @@ const _sfc_main = {
|
|
|
411
262
|
]),
|
|
412
263
|
_: 1
|
|
413
264
|
}, 8, ["modelValue"]),
|
|
414
|
-
_cache[
|
|
265
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("div", { class: "widgets-opt-tools" }, null, -1))
|
|
415
266
|
]),
|
|
416
267
|
_: 1
|
|
417
268
|
}),
|
|
418
269
|
vue.createElementVNode("div", {
|
|
419
270
|
class: vue.normalizeClass(["table-item table-btn", { close: !vue.unref(tableOptions).isOptBtns }])
|
|
420
271
|
}, [
|
|
421
|
-
vue.createElementVNode("div",
|
|
272
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
422
273
|
vue.createVNode(_component_el_checkbox, {
|
|
423
274
|
class: "isOptBtns",
|
|
424
275
|
modelValue: vue.unref(tableOptions).isOptBtns,
|
|
425
276
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(tableOptions).isOptBtns = $event)
|
|
426
277
|
}, null, 8, ["modelValue"]),
|
|
427
|
-
_cache[
|
|
278
|
+
_cache[8] || (_cache[8] = vue.createElementVNode("span", { class: "widgets-label" }, "操作", -1)),
|
|
428
279
|
vue.createVNode(_component_el_link, {
|
|
429
280
|
class: "addLink",
|
|
430
281
|
underline: "never",
|
|
431
282
|
type: "primary",
|
|
432
|
-
icon: vue.unref(index$
|
|
283
|
+
icon: vue.unref(index$6.Plus),
|
|
433
284
|
onClick: vue.withModifiers(addOptBtns, ["stop"])
|
|
434
285
|
}, {
|
|
435
|
-
default: vue.withCtx(() => _cache[
|
|
286
|
+
default: vue.withCtx(() => _cache[7] || (_cache[7] = [
|
|
436
287
|
vue.createTextVNode("按钮")
|
|
437
288
|
])),
|
|
438
289
|
_: 1
|
|
@@ -474,5 +325,5 @@ const _sfc_main = {
|
|
|
474
325
|
};
|
|
475
326
|
}
|
|
476
327
|
};
|
|
477
|
-
const tableWorkArea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
328
|
+
const tableWorkArea = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4248fdc3"]]);
|
|
478
329
|
exports.default = tableWorkArea;
|
|
@@ -458,22 +458,49 @@ const _sfc_main = {
|
|
|
458
458
|
]),
|
|
459
459
|
_: 1
|
|
460
460
|
}),
|
|
461
|
+
vue.createVNode(_component_el_form_item, { label: "字段排序" }, {
|
|
462
|
+
default: vue.withCtx(() => [
|
|
463
|
+
vue.createVNode(_component_el_radio_group, {
|
|
464
|
+
modelValue: vue.unref(currentItem).sortRule,
|
|
465
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => vue.unref(currentItem).sortRule = $event),
|
|
466
|
+
size: "small"
|
|
467
|
+
}, {
|
|
468
|
+
default: vue.withCtx(() => [
|
|
469
|
+
vue.createVNode(_component_el_radio_button, { value: "none" }, {
|
|
470
|
+
default: vue.withCtx(() => _cache[27] || (_cache[27] = [
|
|
471
|
+
vue.createTextVNode("无")
|
|
472
|
+
])),
|
|
473
|
+
_: 1
|
|
474
|
+
}),
|
|
475
|
+
vue.createVNode(_component_el_radio_button, { value: "static" }, {
|
|
476
|
+
default: vue.withCtx(() => _cache[28] || (_cache[28] = [
|
|
477
|
+
vue.createTextVNode("前台排序")
|
|
478
|
+
])),
|
|
479
|
+
_: 1
|
|
480
|
+
}),
|
|
481
|
+
vue.createVNode(_component_el_radio_button, { value: "server" }, {
|
|
482
|
+
default: vue.withCtx(() => _cache[29] || (_cache[29] = [
|
|
483
|
+
vue.createTextVNode("后台排序")
|
|
484
|
+
])),
|
|
485
|
+
_: 1
|
|
486
|
+
})
|
|
487
|
+
]),
|
|
488
|
+
_: 1
|
|
489
|
+
}, 8, ["modelValue"])
|
|
490
|
+
]),
|
|
491
|
+
_: 1
|
|
492
|
+
}),
|
|
461
493
|
vue.createVNode(_component_el_form_item, { label: "其他" }, {
|
|
462
494
|
default: vue.withCtx(() => [
|
|
463
495
|
vue.createVNode(_component_el_checkbox, {
|
|
464
|
-
modelValue: vue.unref(currentItem).
|
|
465
|
-
"onUpdate:modelValue": _cache[
|
|
466
|
-
label: "
|
|
496
|
+
modelValue: vue.unref(currentItem).isFixed,
|
|
497
|
+
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => vue.unref(currentItem).isFixed = $event),
|
|
498
|
+
label: "左侧固定"
|
|
467
499
|
}, null, 8, ["modelValue"]),
|
|
468
500
|
vue.createVNode(_component_el_checkbox, {
|
|
469
501
|
modelValue: vue.unref(currentItem).canCopy,
|
|
470
|
-
"onUpdate:modelValue": _cache[
|
|
502
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => vue.unref(currentItem).canCopy = $event),
|
|
471
503
|
label: "复制"
|
|
472
|
-
}, null, 8, ["modelValue"]),
|
|
473
|
-
vue.createVNode(_component_el_checkbox, {
|
|
474
|
-
modelValue: vue.unref(currentItem).isFixed,
|
|
475
|
-
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => vue.unref(currentItem).isFixed = $event),
|
|
476
|
-
label: "左侧固定"
|
|
477
504
|
}, null, 8, ["modelValue"])
|
|
478
505
|
]),
|
|
479
506
|
_: 1
|
|
@@ -490,5 +517,5 @@ const _sfc_main = {
|
|
|
490
517
|
};
|
|
491
518
|
}
|
|
492
519
|
};
|
|
493
|
-
const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
520
|
+
const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ee9264c8"]]);
|
|
494
521
|
exports.default = widgets;
|
|
@@ -303,10 +303,22 @@ const _sfc_main = {
|
|
|
303
303
|
vue.createElementVNode("div", _hoisted_6, [
|
|
304
304
|
__props.enabled ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
305
305
|
vue.createVNode(_component_el_input, {
|
|
306
|
-
placeholder: "
|
|
307
|
-
class: "search-input"
|
|
308
|
-
|
|
309
|
-
|
|
306
|
+
placeholder: "请输入查询条件",
|
|
307
|
+
class: "search-input"
|
|
308
|
+
}, vue.createSlots({
|
|
309
|
+
suffix: vue.withCtx(() => [
|
|
310
|
+
vue.createVNode(_component_el_icon, {
|
|
311
|
+
class: "el-input__icon",
|
|
312
|
+
style: { "cursor": "pointer" }
|
|
313
|
+
}, {
|
|
314
|
+
default: vue.withCtx(() => [
|
|
315
|
+
vue.createVNode(vue.unref(index$1.Search))
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
})
|
|
319
|
+
]),
|
|
320
|
+
_: 2
|
|
321
|
+
}, [
|
|
310
322
|
dynamicConfig.value.advancedSearch ? {
|
|
311
323
|
name: "append",
|
|
312
324
|
fn: vue.withCtx(() => [
|
|
@@ -319,7 +331,7 @@ const _sfc_main = {
|
|
|
319
331
|
]),
|
|
320
332
|
key: "0"
|
|
321
333
|
} : void 0
|
|
322
|
-
]),
|
|
334
|
+
]), 1024)
|
|
323
335
|
])) : vue.createCommentVNode("", true),
|
|
324
336
|
vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable), {
|
|
325
337
|
modelValue: editConfigData.value.customBtns.right,
|
|
@@ -496,5 +508,5 @@ const _sfc_main = {
|
|
|
496
508
|
};
|
|
497
509
|
}
|
|
498
510
|
};
|
|
499
|
-
const DynamicModeConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
511
|
+
const DynamicModeConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-f2c50fdc"]]);
|
|
500
512
|
exports.default = DynamicModeConfig;
|