@fecp/designer 5.4.78 → 5.4.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/packages/dialog/index.vue.mjs +1 -1
  3. package/es/designer/src/packages/dialog/index.vue2.mjs +1 -1
  4. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  5. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1 -1
  6. package/es/designer/src/packages/form/formSetting.vue.mjs +16 -36
  7. package/es/designer.css +259 -219
  8. package/es/packages/mobile/src/components/base/button/Button.vue.mjs +3 -3
  9. package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +22 -8
  10. package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +1 -1
  11. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +3 -3
  12. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +3 -3
  13. package/es/packages/vue/src/components/forms/h2/H2.vue.mjs +1 -1
  14. package/es/packages/vue/src/components/forms/select/Select.vue.mjs +1 -1
  15. package/es/packages/vue/src/components/forms/text/Text.vue.mjs +1 -1
  16. package/es/packages/vue/src/components/layout/Layout.vue.mjs +8 -15
  17. package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +6 -3
  18. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +25 -8
  19. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +3 -2
  20. package/es/packages/vue/src/components/table/TableFilter.vue.mjs +14 -18
  21. package/es/packages/vue/src/composables/usePageEvents.mjs +1 -1
  22. package/es/packages/vue/src/utils/datasource.mjs +1 -1
  23. package/lib/designer/package.json.js +1 -1
  24. package/lib/designer/src/packages/dialog/index.vue.js +1 -1
  25. package/lib/designer/src/packages/dialog/index.vue2.js +1 -1
  26. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  27. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1 -1
  28. package/lib/designer/src/packages/form/formSetting.vue.js +21 -41
  29. package/lib/designer.css +259 -219
  30. package/lib/packages/mobile/src/components/base/button/Button.vue.js +2 -2
  31. package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +21 -7
  32. package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +1 -1
  33. package/lib/packages/vue/src/components/forms/form/Form.vue.js +3 -3
  34. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +3 -3
  35. package/lib/packages/vue/src/components/forms/h2/H2.vue.js +1 -1
  36. package/lib/packages/vue/src/components/forms/select/Select.vue.js +1 -1
  37. package/lib/packages/vue/src/components/forms/text/Text.vue.js +1 -1
  38. package/lib/packages/vue/src/components/layout/Layout.vue.js +8 -15
  39. package/lib/packages/vue/src/components/table/CustomButtons.vue.js +5 -2
  40. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +24 -7
  41. package/lib/packages/vue/src/components/table/TableColumn.vue.js +3 -2
  42. package/lib/packages/vue/src/components/table/TableFilter.vue.js +18 -22
  43. package/lib/packages/vue/src/composables/usePageEvents.js +1 -1
  44. package/lib/packages/vue/src/utils/datasource.js +1 -1
  45. package/package.json +1 -1
@@ -3,14 +3,14 @@
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import { createBlock, openBlock, normalizeProps, guardReactiveProps, createSlots, renderList, withCtx, renderSlot } from "vue";
6
+ import { createBlock, openBlock, mergeProps, createSlots, renderList, withCtx, renderSlot } from "vue";
7
7
  /* empty css */
8
8
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
9
9
  import { Button } from "../../../../../../node_modules/vant/es/button/index.mjs";
10
10
  const _sfc_main = {};
11
11
  function _sfc_render(_ctx, _cache) {
12
12
  const _component_van_button = Button;
13
- return openBlock(), createBlock(_component_van_button, normalizeProps(guardReactiveProps(_ctx.$attrs)), createSlots({ _: 2 }, [
13
+ return openBlock(), createBlock(_component_van_button, mergeProps({ class: "fec-button" }, _ctx.$attrs), createSlots({ _: 2 }, [
14
14
  renderList(_ctx.$slots, (item, key) => {
15
15
  return {
16
16
  name: key,
@@ -21,7 +21,7 @@ function _sfc_render(_ctx, _cache) {
21
21
  })
22
22
  ]), 1040);
23
23
  }
24
- const _Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-191efc8d"]]);
24
+ const _Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-96b4e696"]]);
25
25
  export {
26
26
  _Button as default
27
27
  };
@@ -3,42 +3,56 @@
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import { createBlock, openBlock, mergeProps, withCtx, createElementBlock, renderSlot, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
6
+ import { computed, createBlock, openBlock, mergeProps, unref, isRef, withCtx, createElementBlock, renderSlot, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
7
7
  import { Tabbar } from "../../../../../../node_modules/vant/es/tabbar/index.mjs";
8
8
  import { TabbarItem } from "../../../../../../node_modules/vant/es/tabbar-item/index.mjs";
9
9
  const _sfc_main = {
10
10
  __name: "Tabbar",
11
11
  props: {
12
+ modelValue: {
13
+ type: Number,
14
+ default: 0
15
+ },
12
16
  tabbarOptions: {
13
17
  type: Array,
14
18
  default: []
15
19
  }
16
20
  },
17
- setup(__props) {
21
+ emits: ["update:modelValue"],
22
+ setup(__props, { emit: __emit }) {
23
+ const props = __props;
24
+ const emit = __emit;
25
+ const activeName = computed({
26
+ get: () => {
27
+ return props.modelValue;
28
+ },
29
+ set: (val) => {
30
+ emit("update:modelValue", val);
31
+ }
32
+ });
18
33
  return (_ctx, _cache) => {
19
34
  const _component_van_tabbar_item = TabbarItem;
20
35
  const _component_van_tabbar = Tabbar;
21
36
  return openBlock(), createBlock(_component_van_tabbar, mergeProps(_ctx.$attrs, {
22
- route: "",
37
+ modelValue: unref(activeName),
38
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
23
39
  fixed: false
24
40
  }), {
25
41
  default: withCtx(() => [
26
42
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabbarOptions, (item) => {
27
43
  return openBlock(), createBlock(_component_van_tabbar_item, {
28
- icon: item.icon,
29
- replace: "",
30
- to: item.to
44
+ icon: item.icon
31
45
  }, {
32
46
  default: withCtx(() => [
33
47
  createTextVNode(toDisplayString(item.title), 1)
34
48
  ]),
35
49
  _: 2
36
- }, 1032, ["icon", "to"]);
50
+ }, 1032, ["icon"]);
37
51
  }), 256)),
38
52
  renderSlot(_ctx.$slots, "default")
39
53
  ]),
40
54
  _: 3
41
- }, 16);
55
+ }, 16, ["modelValue"]);
42
56
  };
43
57
  }
44
58
  };
@@ -9,9 +9,9 @@ import { Form } from "../forms/form/index.mjs";
9
9
  import { parseRouteParams } from "../../utils/parseRouteParams.mjs";
10
10
  import { calculate } from "../../utils/formulajs/calculate.mjs";
11
11
  import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
12
- /* empty css */
13
12
  /* empty css */
14
13
  /* empty css */
14
+ /* empty css */
15
15
  import { loadComponentByPath } from "../../utils/common.mjs";
16
16
  /* empty css */
17
17
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
@@ -117,8 +117,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
117
117
  const dataSourceOptions = ref({});
118
118
  const dictionaryOptions = ref({});
119
119
  const productData = ref({});
120
- const fieldsData = ref({});
121
- const hiddenFields = ref({});
120
+ const fieldsData = ref([]);
121
+ const hiddenFields = ref([]);
122
122
  const rowHeight = ref(1);
123
123
  const pageEvents = props.canPageEvent ? usePageEvents(() => ({
124
124
  pageEventConfig: localConfig.value.pageEventConfig,
@@ -1096,7 +1096,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1096
1096
  };
1097
1097
  }
1098
1098
  });
1099
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-48d4542c"]]);
1099
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2e861481"]]);
1100
1100
  export {
1101
1101
  _Form as default
1102
1102
  };
@@ -160,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
160
160
  prop: __props.config.fieldName,
161
161
  required: __props.config.required,
162
162
  error: __props.error,
163
- "label-width": __props.config.labelMode == "default" ? __props.localConfig.labelWidth || "auto" : "auto"
163
+ "label-width": 160
164
164
  }, createSlots({
165
165
  default: withCtx(() => [
166
166
  __props.config.labelMode != "label" ? (openBlock(), createBlock(resolveDynamicComponent(componentType.value), mergeProps({
@@ -201,11 +201,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
201
201
  }),
202
202
  key: "0"
203
203
  } : void 0
204
- ]), 1032, ["prop", "required", "error", "label-width"]));
204
+ ]), 1032, ["prop", "required", "error"]));
205
205
  };
206
206
  }
207
207
  });
208
- const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3657e72b"]]);
208
+ const _FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3a8e5cc4"]]);
209
209
  export {
210
210
  _FormItem as default
211
211
  };
@@ -36,7 +36,7 @@ const _sfc_main = {
36
36
  };
37
37
  }
38
38
  };
39
- const _H2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2e23c430"]]);
39
+ const _H2 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-60bd3722"]]);
40
40
  export {
41
41
  _H2 as default
42
42
  };
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
24
24
  },
25
25
  placeholder: {
26
26
  type: String,
27
- default: "请选择"
27
+ default: ""
28
28
  },
29
29
  disabled: {
30
30
  type: Boolean,
@@ -3,9 +3,9 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import { computed, getCurrentInstance, inject, createElementBlock, openBlock, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
6
- /* empty css */
7
6
  /* empty css */
8
7
  /* empty css */
8
+ /* empty css */
9
9
  import { openDialog } from "../../dialog/index.mjs";
10
10
  /* empty css */
11
11
  /* empty css */
@@ -36,19 +36,13 @@ const _sfc_main = {
36
36
  const formData = ref(props.initFormData);
37
37
  const emit = __emit;
38
38
  const showCard = ref(false);
39
- const isDialog = ref(false);
40
39
  function loaded(option, formData2) {
41
40
  showCard.value = true;
42
- const layoutEl = layoutRowRef.value.$el;
43
- const parentElement = layoutEl.parentElement;
44
- if (parentElement.classList.contains("el-dialog__body")) {
45
- let offsetHeight = parentElement.offsetHeight - 20;
46
- const cols = layoutEl.querySelectorAll(".el-col");
47
- cols.forEach((col) => {
48
- col.style.height = offsetHeight + "px";
49
- });
50
- isDialog.value = true;
51
- }
41
+ let offsetHeight = layoutRowRef.value.$el.offsetHeight;
42
+ const cols = layoutRowRef.value.$el.querySelectorAll(".el-col");
43
+ cols.forEach((col) => {
44
+ col.style.height = offsetHeight + "px";
45
+ });
52
46
  emit("loaded", cloneDeep(formData2));
53
47
  }
54
48
  return (_ctx, _cache) => {
@@ -74,9 +68,8 @@ const _sfc_main = {
74
68
  modelValue: unref(formData),
75
69
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(formData) ? formData.value = $event : null),
76
70
  onLoaded: loaded,
77
- initFormMode: __props.initFormMode,
78
- isDialog: unref(isDialog)
79
- }, null, 8, ["templateKey", "modelValue", "initFormMode", "isDialog"])
71
+ initFormMode: __props.initFormMode
72
+ }, null, 8, ["templateKey", "modelValue", "initFormMode"])
80
73
  ]),
81
74
  _: 1
82
75
  }, 512)
@@ -100,7 +93,7 @@ const _sfc_main = {
100
93
  };
101
94
  }
102
95
  };
103
- const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b2246cdb"]]);
96
+ const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-317e7dd8"]]);
104
97
  export {
105
98
  _Layout as default
106
99
  };
@@ -1,7 +1,7 @@
1
1
  import "../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { computed, resolveDirective, createElementBlock, openBlock, createCommentVNode, createBlock, createVNode, withCtx, unref, toDisplayString, Fragment, renderList, withDirectives, createTextVNode } from "vue";
4
+ import { computed, resolveDirective, createElementBlock, openBlock, createCommentVNode, createBlock, createVNode, withCtx, unref, createElementVNode, createTextVNode, toDisplayString, Fragment, renderList, withDirectives } from "vue";
5
5
  import "../../../../../node_modules/vxe-table/es/components.mjs";
6
6
  import { ArrowLeftBold as arrow_left_bold_default, Search as search_default, Edit as edit_default, Delete as delete_default, Plus as plus_default, Setting as setting_default, Download as download_default, Refresh as refresh_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
7
7
  import { getCurrentVueInstance } from "../../utils/getInstance.mjs";
@@ -123,7 +123,10 @@ const _sfc_main = {
123
123
  _: 1
124
124
  })
125
125
  ])) : createCommentVNode("", true),
126
- __props.localConfig.showTitle ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(__props.localConfig.templateName), 1)) : createCommentVNode("", true),
126
+ __props.localConfig.showTitle ? (openBlock(), createElementBlock("div", _hoisted_2, [
127
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "template-name-line" }, null, -1)),
128
+ createTextVNode(" " + toDisplayString(__props.localConfig.templateName), 1)
129
+ ])) : createCommentVNode("", true),
127
130
  !__props.readOnly && !__props.isSubTable && hasButtons.value ? (openBlock(), createBlock(unref(VxeToolbar), {
128
131
  key: 2,
129
132
  ref: "toolbarRef",
@@ -169,7 +172,7 @@ const _sfc_main = {
169
172
  };
170
173
  }
171
174
  };
172
- const CustomButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7610c2d4"]]);
175
+ const CustomButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8d29fa72"]]);
173
176
  export {
174
177
  CustomButtons as default
175
178
  };
@@ -15,7 +15,7 @@ import "../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.
15
15
  /* empty css */
16
16
  /* empty css */
17
17
  import "../../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
18
- import { computed, ref, watch, resolveDirective, createElementBlock, openBlock, createElementVNode, createVNode, createCommentVNode, withCtx, unref, toDisplayString, Fragment, renderList, createBlock, createSlots, createTextVNode, withDirectives, normalizeStyle, resolveDynamicComponent, mergeProps, vShow } from "vue";
18
+ import { computed, ref, watch, resolveDirective, createElementBlock, openBlock, createElementVNode, createVNode, createCommentVNode, withCtx, unref, createTextVNode, toDisplayString, Fragment, renderList, createBlock, createSlots, withDirectives, normalizeStyle, resolveDynamicComponent, mergeProps, vShow } from "vue";
19
19
  import { ArrowLeftBold as arrow_left_bold_default, Search as search_default, Edit as edit_default, Delete as delete_default, Plus as plus_default, Setting as setting_default, Download as download_default, Refresh as refresh_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
20
20
  import "../../../../../node_modules/vxe-table/es/components.mjs";
21
21
  import { Text } from "../forms/text/index.mjs";
@@ -276,7 +276,10 @@ const _sfc_main = {
276
276
  _: 1
277
277
  })
278
278
  ])) : createCommentVNode("", true),
279
- __props.localConfig.showTitle ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(__props.localConfig.templateName), 1)) : createCommentVNode("", true),
279
+ __props.localConfig.showTitle ? (openBlock(), createElementBlock("div", _hoisted_4, [
280
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "template-name-line" }, null, -1)),
281
+ createTextVNode(" " + toDisplayString(__props.localConfig.templateName), 1)
282
+ ])) : createCommentVNode("", true),
280
283
  queryConfig.value.enabled && tabConfigs.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
281
284
  createVNode(_component_el_tabs, {
282
285
  modelValue: activeTab.value,
@@ -300,11 +303,25 @@ const _sfc_main = {
300
303
  createVNode(_component_el_input, {
301
304
  modelValue: searchInputValue.value,
302
305
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInputValue.value = $event),
303
- placeholder: "请输入关键词搜索...",
306
+ placeholder: "请输入查询条件",
304
307
  class: "search-input",
305
- "prefix-icon": unref(search_default),
308
+ clearable: "",
306
309
  onKeyup: onSearchInputKeyup
307
- }, createSlots({ _: 2 }, [
310
+ }, createSlots({
311
+ suffix: withCtx(() => [
312
+ createVNode(_component_el_icon, {
313
+ class: "el-input__icon",
314
+ style: { "cursor": "pointer" },
315
+ onClick: handleSearch
316
+ }, {
317
+ default: withCtx(() => [
318
+ createVNode(unref(search_default))
319
+ ]),
320
+ _: 1
321
+ })
322
+ ]),
323
+ _: 2
324
+ }, [
308
325
  dynamicConfig.value.advancedSearch ? {
309
326
  name: "append",
310
327
  fn: withCtx(() => [
@@ -320,7 +337,7 @@ const _sfc_main = {
320
337
  ]),
321
338
  key: "0"
322
339
  } : void 0
323
- ]), 1032, ["modelValue", "prefix-icon"])
340
+ ]), 1032, ["modelValue"])
324
341
  ])) : createCommentVNode("", true),
325
342
  !__props.readOnly && !__props.isSubTable && rightButtons.value.length > 0 ? (openBlock(), createBlock(unref(VxeToolbar), {
326
343
  key: 1,
@@ -410,7 +427,7 @@ const _sfc_main = {
410
427
  style: { "flex": "1" },
411
428
  clearable: ""
412
429
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
413
- _cache[2] || (_cache[2] = createElementVNode("span", null, "-", -1)),
430
+ _cache[3] || (_cache[3] = createElementVNode("span", null, "-", -1)),
414
431
  createVNode(_component_el_input_number, {
415
432
  modelValue: filterValues.value[`${field.fieldId}_max`],
416
433
  "onUpdate:modelValue": ($event) => filterValues.value[`${field.fieldId}_max`] = $event,
@@ -453,7 +470,7 @@ const _sfc_main = {
453
470
  };
454
471
  }
455
472
  };
456
- const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d11a831a"]]);
473
+ const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-349ed4c5"]]);
457
474
  export {
458
475
  DynamicQuery as default
459
476
  };
@@ -7,10 +7,10 @@ import "../../../../../node_modules/vxe-table/es/components.mjs";
7
7
  import { CopyDocument as copy_document_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
8
8
  import { checkFilterMatch } from "../../utils/parseFilterConfig.mjs";
9
9
  import { removeEmptyValues } from "../../utils/common.mjs";
10
- /* empty css */
11
10
  /* empty css */
12
11
  /* empty css */
13
12
  /* empty css */
13
+ /* empty css */
14
14
  /* empty css */
15
15
  import "./index.mjs";
16
16
  import "../forms/form/index.mjs";
@@ -391,6 +391,7 @@ const _sfc_main = {
391
391
  field.isLink ? (openBlock(), createBlock(_component_el_link, {
392
392
  key: 1,
393
393
  type: "primary",
394
+ underline: false,
394
395
  onClick: ($event) => handleButtonClick(row, field, field.linkConfig)
395
396
  }, {
396
397
  default: withCtx(() => [
@@ -445,7 +446,7 @@ const _sfc_main = {
445
446
  };
446
447
  }
447
448
  };
448
- const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-77be03fc"]]);
449
+ const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-25279910"]]);
449
450
  export {
450
451
  TableColumn as default
451
452
  };
@@ -10,8 +10,8 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import "../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs";
13
- import { useCssVars, computed, ref, watch, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, normalizeStyle, withCtx, createElementVNode, normalizeClass, renderList, withDirectives, createVNode, resolveDynamicComponent, mergeProps, vShow, unref, createTextVNode, toDisplayString } from "vue";
14
- import { Search as search_default, Refresh as refresh_default, DArrowRight as d_arrow_right_default, DArrowLeft as d_arrow_left_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
13
+ import { useCssVars, computed, ref, watch, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, normalizeStyle, withCtx, createElementVNode, normalizeClass, renderList, withDirectives, createVNode, resolveDynamicComponent, mergeProps, vShow, createTextVNode, toDisplayString, unref } from "vue";
14
+ import { DArrowRight as d_arrow_right_default, DArrowLeft as d_arrow_left_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
15
15
  import { Text } from "../forms/text/index.mjs";
16
16
  import { Select } from "../forms/select/index.mjs";
17
17
  import { MultipleSelection } from "../forms/multipleSelection/index.mjs";
@@ -30,6 +30,7 @@ const _hoisted_1 = {
30
30
  key: 1,
31
31
  style: { "display": "flex", "align-items": "center", "gap": "8px", "width": "100%" }
32
32
  };
33
+ const _hoisted_2 = { class: "filter-actions inline el-col el-col-4" };
33
34
  const _sfc_main = {
34
35
  __name: "TableFilter",
35
36
  props: {
@@ -45,7 +46,7 @@ const _sfc_main = {
45
46
  emits: ["search", "reset"],
46
47
  setup(__props, { expose: __expose, emit: __emit }) {
47
48
  useCssVars((_ctx) => ({
48
- "129ad2ff": `${config.value.collapseRows * 90}px`
49
+ "13ca2eb8": `${config.value.collapseRows * 90}px`
49
50
  }));
50
51
  const props = __props;
51
52
  const emit = __emit;
@@ -78,7 +79,7 @@ const _sfc_main = {
78
79
  const maxVisibleFields = config.value.columnCount * config.value.collapseRows;
79
80
  return fieldCount > maxVisibleFields;
80
81
  });
81
- const isSingleLine = computed(() => {
82
+ computed(() => {
82
83
  const totalRows = Math.ceil(
83
84
  completeFilterFields.value.length / config.value.columnCount
84
85
  );
@@ -221,9 +222,7 @@ const _sfc_main = {
221
222
  "onUpdate:modelValue": ($event) => filterValues.value[field.fieldId] = $event,
222
223
  config: { ...field, eventHandlers: {} },
223
224
  ref_for: true
224
- }, getComponentConfig(field), {
225
- placeholder: getPlaceholder(field)
226
- }), null, 16, ["modelValue", "onUpdate:modelValue", "config", "placeholder"]))
225
+ }, getComponentConfig(field)), null, 16, ["modelValue", "onUpdate:modelValue", "config"]))
227
226
  ]),
228
227
  _: 2
229
228
  }, 1032, ["label"])
@@ -235,29 +234,26 @@ const _sfc_main = {
235
234
  ]);
236
235
  }), 128))
237
236
  ], 2),
238
- createElementVNode("div", {
239
- class: normalizeClass(["filter-actions", { inline: isSingleLine.value }])
240
- }, [
237
+ createElementVNode("div", _hoisted_2, [
241
238
  createVNode(_component_el_button, {
242
239
  type: "primary",
243
- onClick: handleSearch,
244
- icon: unref(search_default)
240
+ onClick: handleSearch
245
241
  }, {
246
242
  default: withCtx(() => _cache[1] || (_cache[1] = [
247
243
  createTextVNode("搜索")
248
244
  ])),
249
245
  _: 1
250
- }, 8, ["icon"]),
246
+ }),
251
247
  createVNode(_component_el_button, {
252
- onClick: handleReset,
253
- icon: unref(refresh_default)
248
+ type: "primary",
249
+ onClick: handleReset
254
250
  }, {
255
251
  default: withCtx(() => _cache[2] || (_cache[2] = [
256
252
  createTextVNode("重置")
257
253
  ])),
258
254
  _: 1
259
- }, 8, ["icon"])
260
- ], 2)
255
+ })
256
+ ])
261
257
  ]),
262
258
  _: 1
263
259
  }, 8, ["model", "style"])) : createCommentVNode("", true),
@@ -286,7 +282,7 @@ const _sfc_main = {
286
282
  };
287
283
  }
288
284
  };
289
- const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ea506656"]]);
285
+ const TableFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-73e7d5aa"]]);
290
286
  export {
291
287
  TableFilter as default
292
288
  };
@@ -1,9 +1,9 @@
1
1
  import { onUnmounted, onBeforeUnmount, onMounted } from "vue";
2
2
  /* empty css */
3
- /* empty css */
4
3
  /* empty css */
5
4
  /* empty css */
6
5
  /* empty css */
6
+ /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  import "../components/table/index.mjs";
@@ -2,9 +2,9 @@ import { reactive } from "vue";
2
2
  import { parseRouteParams } from "./parseRouteParams.mjs";
3
3
  import "../../../../node_modules/element-plus/es/index.mjs";
4
4
  /* empty css */
5
- /* empty css */
6
5
  /* empty css */
7
6
  /* empty css */
7
+ /* empty css */
8
8
  import { ElLoading } from "../../../../node_modules/element-plus/es/components/loading/index.mjs";
9
9
  import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
10
10
  class DataSourceManager {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.4.78";
3
+ const version = "5.4.80";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -984,5 +984,5 @@ const _sfc_main = {
984
984
  };
985
985
  }
986
986
  };
987
- const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-24bfc32a"]]);
987
+ const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-47900630"]]);
988
988
  exports.default = DialogDialog;
@@ -984,5 +984,5 @@ const _sfc_main = {
984
984
  };
985
985
  }
986
986
  };
987
- const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-24bfc32a"]]);
987
+ const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-47900630"]]);
988
988
  exports.default = DialogDialog;
@@ -1031,5 +1031,5 @@ const _sfc_main = {
1031
1031
  };
1032
1032
  }
1033
1033
  };
1034
- const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e641bf90"]]);
1034
+ const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-60556147"]]);
1035
1035
  exports.default = DialogGlobalDialog;
@@ -1031,5 +1031,5 @@ const _sfc_main = {
1031
1031
  };
1032
1032
  }
1033
1033
  };
1034
- const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e641bf90"]]);
1034
+ const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-60556147"]]);
1035
1035
  exports.default = DialogGlobalDialog;