@fecp/designer 5.4.82 → 5.4.84

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.
Files changed (59) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  3. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  4. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  5. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  6. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  7. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  8. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  9. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  10. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  11. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  12. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  13. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  14. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  15. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  16. package/es/designer/src/packages/table/aside/index.mjs +1 -1
  17. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  18. package/es/designer/src/packages/table/index.vue.mjs +17 -166
  19. package/es/designer/src/packages/table/property/widgets.vue.mjs +37 -10
  20. package/es/designer/src/packages/table/queryModule/DynamicModeConfig.vue.mjs +18 -6
  21. package/es/designer/src/packages/utils/datasource.mjs +2 -3
  22. package/es/designer.css +231 -210
  23. package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +1 -1
  24. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +2 -3
  25. package/es/packages/vue/src/components/table/Table.vue.mjs +32 -5
  26. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +6 -5
  27. package/es/packages/vue/src/components/table/TableFilter.vue.mjs +3 -3
  28. package/es/packages/vue/src/utils/datasource.mjs +4 -6
  29. package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +2 -17
  30. package/lib/designer/package.json.js +1 -1
  31. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  32. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  33. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  34. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  35. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  36. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  37. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  38. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  39. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  40. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  41. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  42. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  43. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  44. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  45. package/lib/designer/src/packages/table/aside/index.js +1 -1
  46. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  47. package/lib/designer/src/packages/table/index.vue.js +24 -173
  48. package/lib/designer/src/packages/table/property/widgets.vue.js +37 -10
  49. package/lib/designer/src/packages/table/queryModule/DynamicModeConfig.vue.js +18 -6
  50. package/lib/designer/src/packages/utils/datasource.js +2 -3
  51. package/lib/designer.css +231 -210
  52. package/lib/packages/vue/src/components/forms/h2/H2.vue.js +1 -1
  53. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +2 -3
  54. package/lib/packages/vue/src/components/table/Table.vue.js +38 -11
  55. package/lib/packages/vue/src/components/table/TableColumn.vue.js +6 -5
  56. package/lib/packages/vue/src/components/table/TableFilter.vue.js +3 -3
  57. package/lib/packages/vue/src/utils/datasource.js +4 -6
  58. package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +2 -17
  59. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const version = "5.4.82";
1
+ const version = "5.4.84";
2
2
  const packageJson = {
3
3
  version
4
4
  };
@@ -9,7 +9,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
9
9
  /* empty css */
10
10
  import { computed, ref, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
11
11
  import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
12
- import ValueSelector from "./ValueSelector.vue2.mjs";
12
+ import ValueSelector from "./ValueSelector.vue.mjs";
13
13
  import api from "../api/index.mjs";
14
14
  /* empty css */
15
15
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -4,7 +4,7 @@ import "../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
5
  import { computed, createElementBlock, openBlock, createBlock, unref, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
6
6
  import { Plus as plus_default, Delete as delete_default } from "../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
7
- import ValueSelector from "./ValueSelector.vue2.mjs";
7
+ import ValueSelector from "./ValueSelector.vue.mjs";
8
8
  /* empty css */
9
9
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.mjs";
10
10
  import { ElButton } from "../../../node_modules/element-plus/es/components/button/index.mjs";
@@ -16,7 +16,7 @@ import { Plus as plus_default, RefreshRight as refresh_right_default, Delete as
16
16
  import { getEditConfigData, getEditingType, cloneDeep, getEditConfigDataFields } from "../../packages/utils/common.mjs";
17
17
  import { defaultProperty } from "../../packages/form/aside/index.mjs";
18
18
  import { defaultProperty as defaultProperty$1 } from "../../packages/table/aside/index.mjs";
19
- import ValueSelector from "../../components/ValueSelector.vue2.mjs";
19
+ import ValueSelector from "../../components/ValueSelector.vue.mjs";
20
20
  /* empty css */
21
21
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
22
22
  import { ElDialog } from "../../../../node_modules/element-plus/es/components/dialog/index.mjs";
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.mjs";
14
14
  import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
15
15
  import { computed, watch, ref, createElementBlock, unref, openBlock, createBlock, isRef, createVNode, createElementVNode, withCtx, Fragment, renderList } from "vue";
16
16
  import { useVModel } from "../../../../node_modules/@vueuse/core/dist/index.mjs";
17
- import ValueSelector from "../../components/ValueSelector.vue2.mjs";
17
+ import ValueSelector from "../../components/ValueSelector.vue.mjs";
18
18
  import api from "../../api/index.mjs";
19
19
  import { getEditConfigDataSources } from "../utils/common.mjs";
20
20
  import { createDataSource } from "../utils/datasource.mjs";
@@ -30,7 +30,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs
30
30
  /* empty css */
31
31
  /* empty css */
32
32
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
33
- /* empty css */
33
+ /* empty css */
34
34
  import "../../axios/config.mjs";
35
35
  import "../../../../_virtual/FileSaver.min.mjs";
36
36
  import "../../../../_virtual/index.mjs";
@@ -1,4 +1,4 @@
1
- import DialogDialog from "./index.vue.mjs";
1
+ import DialogDialog from "./index.vue2.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogDialog() {
4
4
  const dialogDialogVisible = ref(false);
@@ -84,7 +84,7 @@ import widgets from "../table/property/widgets.vue.mjs";
84
84
  import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
85
85
  /* empty css */
86
86
  /* empty css */
87
- /* empty css */
87
+ /* empty css */
88
88
  /* empty css */
89
89
  /* empty css */
90
90
  /* empty css */
@@ -1,4 +1,4 @@
1
- import DialogGlobalDialog from "./index.vue.mjs";
1
+ import DialogGlobalDialog from "./index.vue2.mjs";
2
2
  import { ref } from "vue";
3
3
  function useDialogGlobalDialog() {
4
4
  const dialogGlobalDialogVisible = ref(false);
@@ -4,7 +4,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
5
  import { createElementBlock, openBlock, Fragment, createVNode, withCtx } from "vue";
6
6
  import RiskSchemeSelector from "../../../../components/RiskSchemeSelector.vue2.mjs";
7
- import ValueSelector from "../../../../components/ValueSelector.vue2.mjs";
7
+ import ValueSelector from "../../../../components/ValueSelector.vue.mjs";
8
8
  import ParamsConfig from "../../../../components/ParamsConfig.vue2.mjs";
9
9
  import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
10
10
  import { ElSwitch } from "../../../../../../node_modules/element-plus/es/components/switch/index.mjs";
@@ -11,7 +11,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
11
11
  import { computed, ref, watch, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment } from "vue";
12
12
  import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
13
13
  import emitter from "../../utils/eventBus.mjs";
14
- import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
14
+ import ValueSelector from "../../../components/ValueSelector.vue.mjs";
15
15
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
16
16
  import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
17
17
  import { ElInput } from "../../../../../node_modules/element-plus/es/components/input/index.mjs";
@@ -17,7 +17,7 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
17
17
  import { computed, ref, createBlock, openBlock, withCtx, createVNode, createTextVNode, createElementBlock, Fragment, renderList } from "vue";
18
18
  import { getCurrentItem } from "../../utils/common.mjs";
19
19
  import "../../utils/eventBus.mjs";
20
- import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
20
+ import ValueSelector from "../../../components/ValueSelector.vue.mjs";
21
21
  import api from "../../../api/index.mjs";
22
22
  import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
23
23
  /* empty css */
@@ -12,7 +12,7 @@ import { computed, ref, createBlock, openBlock, unref, isRef, withCtx, createVNo
12
12
  import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
13
13
  import TemplateSelector from "../../../components/TemplateSelector.vue2.mjs";
14
14
  import emitter from "../../utils/eventBus.mjs";
15
- import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
15
+ import ValueSelector from "../../../components/ValueSelector.vue.mjs";
16
16
  import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
17
17
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
18
18
  import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
@@ -52,8 +52,8 @@ import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
52
52
  import "../../../components/TemplateSelector.vue.mjs";
53
53
  import "../../table/default.mjs";
54
54
  /* empty css */
55
- /* empty css */
56
- /* empty css */
55
+ /* empty css */
56
+ /* empty css */
57
57
  import "../../../store/index.mjs";
58
58
  /* empty css */
59
59
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
@@ -14,7 +14,7 @@ import "../../../../node_modules/element-plus/es/index.mjs";
14
14
  import { useModel, ref, watch, computed, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, createTextVNode, unref } from "vue";
15
15
  import { Plus as plus_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
16
16
  import { getEditConfigData, getEditConfigDataFields, setEditConfigData } from "../utils/common.mjs";
17
- import ValueSelector from "../../components/ValueSelector.vue2.mjs";
17
+ import ValueSelector from "../../components/ValueSelector.vue.mjs";
18
18
  import api from "../../api/index.mjs";
19
19
  /* empty css */
20
20
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -11,7 +11,7 @@ const defaultProperty = {
11
11
  align: "center",
12
12
  isOverflowWrap: true,
13
13
  isShow: true,
14
- canSort: true
14
+ sortRule: "none"
15
15
  };
16
16
  const components = [
17
17
  {
@@ -45,7 +45,7 @@ import { Connection as connection_default, Grid as grid_default, ChatLineSquare
45
45
  /* empty css */
46
46
  import "../../store/index.mjs";
47
47
  /* empty css */
48
- /* empty css */
48
+ /* empty css */
49
49
  /* empty css */
50
50
  /* empty css */
51
51
  /* empty css */
@@ -2,23 +2,13 @@ import "../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- /* empty css */
6
- /* empty css */
7
- /* empty css */
8
- /* empty css */
9
- import "../../../../node_modules/element-plus/theme-chalk/el-dropdown-menu.css.mjs";
10
- /* empty css */
11
- /* empty css */
12
- /* empty css */
13
- /* empty css */
14
- /* empty css */
15
5
  /* empty css */
16
6
  /* empty css */
17
7
  /* empty css */
18
8
  import { computed, ref, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, unref, createCommentVNode, createBlock, withCtx, renderList, withDirectives, normalizeStyle, withModifiers, normalizeClass, createTextVNode, toDisplayString, vShow } from "vue";
19
9
  import { defaultOptBtn } from "./default.mjs";
20
10
  import { VueDraggable as lo } from "../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.mjs";
21
- import { Setting as setting_default, Hide as hide_default, Delete as delete_default, Plus as plus_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
11
+ import { Hide as hide_default, Delete as delete_default, Plus as plus_default } from "../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
22
12
  import TableSetting from "./TableSetting.vue.mjs";
23
13
  import QueryModule from "./queryModule/index.vue.mjs";
24
14
  import TablePagination from "./tablePagination.vue.mjs";
@@ -33,9 +23,6 @@ import { ElRadio } from "../../../../node_modules/element-plus/es/components/rad
33
23
  import { ElScrollbar } from "../../../../node_modules/element-plus/es/components/scrollbar/index.mjs";
34
24
  import { ElIcon } from "../../../../node_modules/element-plus/es/components/icon/index.mjs";
35
25
  import { ElLink } from "../../../../node_modules/element-plus/es/components/link/index.mjs";
36
- import { ElDropdown, ElDropdownMenu } from "../../../../node_modules/element-plus/es/components/dropdown/index.mjs";
37
- import { ElSelect, ElOption } from "../../../../node_modules/element-plus/es/components/select/index.mjs";
38
- import { ElInputNumber } from "../../../../node_modules/element-plus/es/components/input-number/index.mjs";
39
26
  import { ElTag } from "../../../../node_modules/element-plus/es/components/tag/index.mjs";
40
27
  import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
41
28
  const _hoisted_1 = { class: "table-work-area" };
@@ -54,19 +41,7 @@ const _hoisted_7 = { class: "widgets" };
54
41
  const _hoisted_8 = { class: "field-label" };
55
42
  const _hoisted_9 = { key: 1 };
56
43
  const _hoisted_10 = { class: "quick-operation" };
57
- const _hoisted_11 = { class: "quick-setting-panel" };
58
- const _hoisted_12 = { class: "setting-row" };
59
- const _hoisted_13 = { class: "setting-row" };
60
- const _hoisted_14 = {
61
- key: 0,
62
- class: "setting-row"
63
- };
64
- const _hoisted_15 = {
65
- key: 1,
66
- class: "setting-row"
67
- };
68
- const _hoisted_16 = { class: "setting-row" };
69
- const _hoisted_17 = { class: "widgets" };
44
+ const _hoisted_11 = { class: "widgets" };
70
45
  const _sfc_main = {
71
46
  __name: "index",
72
47
  setup(__props) {
@@ -96,13 +71,7 @@ const _sfc_main = {
96
71
  const tableOptions = computed(() => {
97
72
  return getEditConfigData();
98
73
  });
99
- const dropdownVisibleMap = ref(/* @__PURE__ */ new Map());
100
- function getDropdownVisible(itemId) {
101
- return dropdownVisibleMap.value.get(itemId) || false;
102
- }
103
- function setDropdownVisible(itemId, visible) {
104
- dropdownVisibleMap.value.set(itemId, visible);
105
- }
74
+ ref(/* @__PURE__ */ new Map());
106
75
  function addOptBtns() {
107
76
  tableOptions.value.optBtns.push({
108
77
  id: Date.now(),
@@ -171,11 +140,6 @@ const _sfc_main = {
171
140
  const _component_el_icon = ElIcon;
172
141
  const _component_el_link = ElLink;
173
142
  const _component_CopyDocument = resolveComponent("CopyDocument");
174
- const _component_el_option = ElOption;
175
- const _component_el_select = ElSelect;
176
- const _component_el_input_number = ElInputNumber;
177
- const _component_el_dropdown_menu = ElDropdownMenu;
178
- const _component_el_dropdown = ElDropdown;
179
143
  const _component_el_scrollbar = ElScrollbar;
180
144
  const _component_el_tag = ElTag;
181
145
  return openBlock(), createElementBlock(Fragment, null, [
@@ -233,7 +197,15 @@ const _sfc_main = {
233
197
  }, [
234
198
  createElementVNode("div", _hoisted_7, [
235
199
  createTextVNode(toDisplayString(item.label) + " ", 1),
236
- item.canSort ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
200
+ item.sortRule == "static" ? (openBlock(), createBlock(_component_el_icon, { key: 0 }, {
201
+ default: withCtx(() => [
202
+ createVNode(_component_DCaret)
203
+ ]),
204
+ _: 1
205
+ })) : item.sortRule == "server" ? (openBlock(), createBlock(_component_el_icon, {
206
+ key: 1,
207
+ style: { "color": "#8dd0f0" }
208
+ }, {
237
209
  default: withCtx(() => [
238
210
  createVNode(_component_DCaret)
239
211
  ]),
@@ -260,127 +232,6 @@ const _sfc_main = {
260
232
  })) : createCommentVNode("", true)
261
233
  ]),
262
234
  createElementVNode("div", _hoisted_10, [
263
- createVNode(_component_el_dropdown, {
264
- "max-height": 500,
265
- "popper-class": `quick-operation-dropdown-${item.id}`,
266
- trigger: "click",
267
- placement: "bottom",
268
- "hide-on-click": false,
269
- onVisibleChange: (visible) => setDropdownVisible(item.id, visible)
270
- }, {
271
- dropdown: withCtx(() => [
272
- getDropdownVisible(item.id) ? (openBlock(), createBlock(_component_el_dropdown_menu, { key: 0 }, {
273
- default: withCtx(() => [
274
- createElementVNode("div", _hoisted_11, [
275
- createElementVNode("div", _hoisted_12, [
276
- _cache[6] || (_cache[6] = createElementVNode("span", { class: "setting-label" }, "对齐:", -1)),
277
- createVNode(_component_el_select, {
278
- modelValue: item.align,
279
- "onUpdate:modelValue": ($event) => item.align = $event,
280
- size: "small",
281
- class: "setting-select",
282
- "append-to": `.quick-operation-dropdown-${item.id}`
283
- }, {
284
- default: withCtx(() => [
285
- createVNode(_component_el_option, {
286
- label: "左对齐",
287
- value: "left"
288
- }),
289
- createVNode(_component_el_option, {
290
- label: "居中",
291
- value: "center"
292
- }),
293
- createVNode(_component_el_option, {
294
- label: "右对齐",
295
- value: "right"
296
- })
297
- ]),
298
- _: 2
299
- }, 1032, ["modelValue", "onUpdate:modelValue", "append-to"])
300
- ]),
301
- createElementVNode("div", _hoisted_13, [
302
- _cache[7] || (_cache[7] = createElementVNode("span", { class: "setting-label" }, "宽度:", -1)),
303
- createVNode(_component_el_select, {
304
- modelValue: item.widthMode,
305
- "onUpdate:modelValue": ($event) => item.widthMode = $event,
306
- size: "small",
307
- class: "setting-select",
308
- "append-to": `.quick-operation-dropdown-${item.id}`
309
- }, {
310
- default: withCtx(() => [
311
- createVNode(_component_el_option, {
312
- label: "自适应",
313
- value: "auto"
314
- }),
315
- createVNode(_component_el_option, {
316
- label: "固定",
317
- value: "fixed"
318
- })
319
- ]),
320
- _: 2
321
- }, 1032, ["modelValue", "onUpdate:modelValue", "append-to"])
322
- ]),
323
- item.widthMode === "fixed" ? (openBlock(), createElementBlock("div", _hoisted_14, [
324
- _cache[8] || (_cache[8] = createElementVNode("span", { class: "setting-label" }, "固定:", -1)),
325
- createVNode(_component_el_input_number, {
326
- modelValue: item.width,
327
- "onUpdate:modelValue": ($event) => item.width = $event,
328
- size: "small",
329
- min: 50,
330
- max: 500,
331
- "controls-position": "right",
332
- class: "setting-input"
333
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
334
- ])) : createCommentVNode("", true),
335
- item.widthMode === "auto" ? (openBlock(), createElementBlock("div", _hoisted_15, [
336
- _cache[9] || (_cache[9] = createElementVNode("span", { class: "setting-label" }, "最小:", -1)),
337
- createVNode(_component_el_input_number, {
338
- modelValue: item.minWidth,
339
- "onUpdate:modelValue": ($event) => item.minWidth = $event,
340
- size: "small",
341
- min: 80,
342
- max: 500,
343
- "controls-position": "right",
344
- class: "setting-input"
345
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
346
- ])) : createCommentVNode("", true),
347
- createElementVNode("div", _hoisted_16, [
348
- createVNode(_component_el_checkbox, {
349
- modelValue: item.canSort,
350
- "onUpdate:modelValue": ($event) => item.canSort = $event,
351
- label: "排序",
352
- size: "small"
353
- }, null, 8, ["modelValue", "onUpdate:modelValue"]),
354
- createVNode(_component_el_checkbox, {
355
- modelValue: item.isFixed,
356
- "onUpdate:modelValue": ($event) => item.isFixed = $event,
357
- label: "固定",
358
- size: "small"
359
- }, null, 8, ["modelValue", "onUpdate:modelValue"]),
360
- createVNode(_component_el_checkbox, {
361
- modelValue: item.canCopy,
362
- "onUpdate:modelValue": ($event) => item.canCopy = $event,
363
- label: "复制",
364
- size: "small"
365
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
366
- ])
367
- ])
368
- ]),
369
- _: 2
370
- }, 1024)) : createCommentVNode("", true)
371
- ]),
372
- default: withCtx(() => [
373
- createVNode(_component_el_icon, {
374
- class: normalizeClass(["setting-icon", { "is-active": getDropdownVisible(item.id) }])
375
- }, {
376
- default: withCtx(() => [
377
- createVNode(unref(setting_default))
378
- ]),
379
- _: 2
380
- }, 1032, ["class"])
381
- ]),
382
- _: 2
383
- }, 1032, ["popper-class", "onVisibleChange"]),
384
235
  getVisibleColCount() > 1 ? (openBlock(), createBlock(_component_el_icon, {
385
236
  key: 0,
386
237
  class: "icon-action setting-icon",
@@ -409,20 +260,20 @@ const _sfc_main = {
409
260
  ]),
410
261
  _: 1
411
262
  }, 8, ["modelValue"]),
412
- _cache[10] || (_cache[10] = createElementVNode("div", { class: "widgets-opt-tools" }, null, -1))
263
+ _cache[6] || (_cache[6] = createElementVNode("div", { class: "widgets-opt-tools" }, null, -1))
413
264
  ]),
414
265
  _: 1
415
266
  }),
416
267
  createElementVNode("div", {
417
268
  class: normalizeClass(["table-item table-btn", { close: !unref(tableOptions).isOptBtns }])
418
269
  }, [
419
- createElementVNode("div", _hoisted_17, [
270
+ createElementVNode("div", _hoisted_11, [
420
271
  createVNode(_component_el_checkbox, {
421
272
  class: "isOptBtns",
422
273
  modelValue: unref(tableOptions).isOptBtns,
423
274
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(tableOptions).isOptBtns = $event)
424
275
  }, null, 8, ["modelValue"]),
425
- _cache[12] || (_cache[12] = createElementVNode("span", { class: "widgets-label" }, "操作", -1)),
276
+ _cache[8] || (_cache[8] = createElementVNode("span", { class: "widgets-label" }, "操作", -1)),
426
277
  createVNode(_component_el_link, {
427
278
  class: "addLink",
428
279
  underline: "never",
@@ -430,7 +281,7 @@ const _sfc_main = {
430
281
  icon: unref(plus_default),
431
282
  onClick: withModifiers(addOptBtns, ["stop"])
432
283
  }, {
433
- default: withCtx(() => _cache[11] || (_cache[11] = [
284
+ default: withCtx(() => _cache[7] || (_cache[7] = [
434
285
  createTextVNode("按钮")
435
286
  ])),
436
287
  _: 1
@@ -472,7 +323,7 @@ const _sfc_main = {
472
323
  };
473
324
  }
474
325
  };
475
- const tableWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-55479df2"]]);
326
+ const tableWorkArea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4248fdc3"]]);
476
327
  export {
477
328
  tableWorkArea as default
478
329
  };
@@ -456,22 +456,49 @@ const _sfc_main = {
456
456
  ]),
457
457
  _: 1
458
458
  }),
459
+ createVNode(_component_el_form_item, { label: "字段排序" }, {
460
+ default: withCtx(() => [
461
+ createVNode(_component_el_radio_group, {
462
+ modelValue: unref(currentItem).sortRule,
463
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => unref(currentItem).sortRule = $event),
464
+ size: "small"
465
+ }, {
466
+ default: withCtx(() => [
467
+ createVNode(_component_el_radio_button, { value: "none" }, {
468
+ default: withCtx(() => _cache[27] || (_cache[27] = [
469
+ createTextVNode("无")
470
+ ])),
471
+ _: 1
472
+ }),
473
+ createVNode(_component_el_radio_button, { value: "static" }, {
474
+ default: withCtx(() => _cache[28] || (_cache[28] = [
475
+ createTextVNode("前台排序")
476
+ ])),
477
+ _: 1
478
+ }),
479
+ createVNode(_component_el_radio_button, { value: "server" }, {
480
+ default: withCtx(() => _cache[29] || (_cache[29] = [
481
+ createTextVNode("后台排序")
482
+ ])),
483
+ _: 1
484
+ })
485
+ ]),
486
+ _: 1
487
+ }, 8, ["modelValue"])
488
+ ]),
489
+ _: 1
490
+ }),
459
491
  createVNode(_component_el_form_item, { label: "其他" }, {
460
492
  default: withCtx(() => [
461
493
  createVNode(_component_el_checkbox, {
462
- modelValue: unref(currentItem).canSort,
463
- "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => unref(currentItem).canSort = $event),
464
- label: "排序"
494
+ modelValue: unref(currentItem).isFixed,
495
+ "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => unref(currentItem).isFixed = $event),
496
+ label: "左侧固定"
465
497
  }, null, 8, ["modelValue"]),
466
498
  createVNode(_component_el_checkbox, {
467
499
  modelValue: unref(currentItem).canCopy,
468
- "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => unref(currentItem).canCopy = $event),
500
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => unref(currentItem).canCopy = $event),
469
501
  label: "复制"
470
- }, null, 8, ["modelValue"]),
471
- createVNode(_component_el_checkbox, {
472
- modelValue: unref(currentItem).isFixed,
473
- "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => unref(currentItem).isFixed = $event),
474
- label: "左侧固定"
475
502
  }, null, 8, ["modelValue"])
476
503
  ]),
477
504
  _: 1
@@ -488,7 +515,7 @@ const _sfc_main = {
488
515
  };
489
516
  }
490
517
  };
491
- const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1b079e6c"]]);
518
+ const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ee9264c8"]]);
492
519
  export {
493
520
  widgets as default
494
521
  };
@@ -301,10 +301,22 @@ const _sfc_main = {
301
301
  createElementVNode("div", _hoisted_6, [
302
302
  __props.enabled ? (openBlock(), createElementBlock("div", _hoisted_7, [
303
303
  createVNode(_component_el_input, {
304
- placeholder: "请输入关键词搜索...",
305
- class: "search-input",
306
- "prefix-icon": unref(search_default)
307
- }, createSlots({ _: 2 }, [
304
+ placeholder: "请输入查询条件",
305
+ class: "search-input"
306
+ }, createSlots({
307
+ suffix: withCtx(() => [
308
+ createVNode(_component_el_icon, {
309
+ class: "el-input__icon",
310
+ style: { "cursor": "pointer" }
311
+ }, {
312
+ default: withCtx(() => [
313
+ createVNode(unref(search_default))
314
+ ]),
315
+ _: 1
316
+ })
317
+ ]),
318
+ _: 2
319
+ }, [
308
320
  dynamicConfig.value.advancedSearch ? {
309
321
  name: "append",
310
322
  fn: withCtx(() => [
@@ -317,7 +329,7 @@ const _sfc_main = {
317
329
  ]),
318
330
  key: "0"
319
331
  } : void 0
320
- ]), 1032, ["prefix-icon"])
332
+ ]), 1024)
321
333
  ])) : createCommentVNode("", true),
322
334
  createVNode(unref(lo), {
323
335
  modelValue: editConfigData.value.customBtns.right,
@@ -494,7 +506,7 @@ const _sfc_main = {
494
506
  };
495
507
  }
496
508
  };
497
- const DynamicModeConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-69373462"]]);
509
+ const DynamicModeConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f2c50fdc"]]);
498
510
  export {
499
511
  DynamicModeConfig as default
500
512
  };
@@ -219,10 +219,9 @@ class DataSourceManager {
219
219
  }
220
220
  } else {
221
221
  if (existingIndex > -1) {
222
- this.sortRules[existingIndex].order = order;
223
- } else {
224
- this.sortRules.push({ field, order });
222
+ this.sortRules.splice(existingIndex, 1);
225
223
  }
224
+ this.sortRules.unshift({ field, order });
226
225
  }
227
226
  }
228
227
  /**