@fecp/designer 5.4.79 → 5.4.81

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 (25) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/packages/dialog/index.vue2.mjs +1 -1
  3. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1 -1
  4. package/es/designer/src/packages/form/formSetting.vue.mjs +16 -36
  5. package/es/designer.css +123 -102
  6. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +3 -3
  7. package/es/packages/vue/src/components/forms/select/Select.vue.mjs +1 -1
  8. package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +6 -3
  9. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +25 -8
  10. package/es/packages/vue/src/components/table/Table.vue.mjs +1 -1
  11. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +2 -1
  12. package/es/packages/vue/src/components/table/TableFilter.vue.mjs +14 -18
  13. package/lib/designer/package.json.js +1 -1
  14. package/lib/designer/src/packages/dialog/index.vue2.js +1 -1
  15. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1 -1
  16. package/lib/designer/src/packages/form/formSetting.vue.js +21 -41
  17. package/lib/designer.css +123 -102
  18. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +3 -3
  19. package/lib/packages/vue/src/components/forms/select/Select.vue.js +1 -1
  20. package/lib/packages/vue/src/components/table/CustomButtons.vue.js +5 -2
  21. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +24 -7
  22. package/lib/packages/vue/src/components/table/Table.vue.js +1 -1
  23. package/lib/packages/vue/src/components/table/TableColumn.vue.js +2 -1
  24. package/lib/packages/vue/src/components/table/TableFilter.vue.js +18 -22
  25. package/package.json +1 -1
@@ -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
  };
@@ -831,7 +831,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
831
831
  };
832
832
  }
833
833
  });
834
- const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5e27559e"]]);
834
+ const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d33cfe9f"]]);
835
835
  export {
836
836
  _Table as default
837
837
  };
@@ -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
+ "77d1952d": `${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-7a5f97c4"]]);
290
286
  export {
291
287
  TableFilter as default
292
288
  };
@@ -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.79";
3
+ const version = "5.4.81";
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;
@@ -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;
@@ -6,8 +6,6 @@ require("../../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  ;/* empty css */
8
8
  ;/* empty css */
9
- ;/* empty css */
10
- ;/* empty css */
11
9
  ;/* empty css */
12
10
  ;/* empty css */
13
11
  ;/* empty css */
@@ -20,9 +18,8 @@ const useDataSourceDialog = require("../dataSource/useDataSourceDialog.js");
20
18
  ;/* empty css */
21
19
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
22
20
  const index = require("../../../../node_modules/element-plus/es/components/select/index.js");
23
- const index$1 = require("../../../../node_modules/element-plus/es/components/input-number/index.js");
24
- const index$2 = require("../../../../node_modules/element-plus/es/components/radio/index.js");
25
- const index$3 = require("../../../../node_modules/element-plus/es/components/switch/index.js");
21
+ const index$1 = require("../../../../node_modules/element-plus/es/components/radio/index.js");
22
+ const index$2 = require("../../../../node_modules/element-plus/es/components/switch/index.js");
26
23
  const _hoisted_1 = { class: "form-setting" };
27
24
  const _hoisted_2 = { class: "setting-left" };
28
25
  const _hoisted_3 = { class: "setting-right" };
@@ -55,14 +52,13 @@ const _sfc_main = {
55
52
  return (_ctx, _cache) => {
56
53
  const _component_el_option = index.ElOption;
57
54
  const _component_el_select = index.ElSelect;
58
- const _component_el_input_number = index$1.ElInputNumber;
59
- const _component_el_radio_button = index$2.ElRadioButton;
60
- const _component_el_radio_group = index$2.ElRadioGroup;
61
- const _component_el_switch = index$3.ElSwitch;
55
+ const _component_el_radio_button = index$1.ElRadioButton;
56
+ const _component_el_radio_group = index$1.ElRadioGroup;
57
+ const _component_el_switch = index$2.ElSwitch;
62
58
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
63
59
  vue.createElementVNode("div", _hoisted_1, [
64
60
  vue.createElementVNode("div", _hoisted_2, [
65
- _cache[12] || (_cache[12] = vue.createElementVNode("span", { class: "text-label" }, "列数", -1)),
61
+ _cache[10] || (_cache[10] = vue.createElementVNode("span", { class: "text-label" }, "列数", -1)),
66
62
  vue.createVNode(_component_el_select, {
67
63
  modelValue: formConfig.value.columns,
68
64
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formConfig.value.columns = $event),
@@ -89,44 +85,28 @@ const _sfc_main = {
89
85
  ]),
90
86
  _: 1
91
87
  }, 8, ["modelValue"]),
92
- _cache[13] || (_cache[13] = vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
93
- _cache[14] || (_cache[14] = vue.createElementVNode("span", { class: "text-label" }, "标签宽度", -1)),
94
- vue.createVNode(_component_el_input_number, {
95
- modelValue: formConfig.value.labelWidth,
96
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formConfig.value.labelWidth = $event),
97
- min: 70,
98
- max: 200,
99
- size: "small",
100
- "controls-position": "right",
101
- style: { "width": "80px" }
102
- }, {
103
- append: vue.withCtx(() => _cache[6] || (_cache[6] = [
104
- vue.createTextVNode("px")
105
- ])),
106
- _: 1
107
- }, 8, ["modelValue"]),
108
- _cache[15] || (_cache[15] = vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
109
- _cache[16] || (_cache[16] = vue.createElementVNode("span", { class: "text-label" }, "标签位置", -1)),
88
+ _cache[11] || (_cache[11] = vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
89
+ _cache[12] || (_cache[12] = vue.createElementVNode("span", { class: "text-label" }, "标签位置", -1)),
110
90
  vue.createVNode(_component_el_radio_group, {
111
91
  modelValue: formConfig.value.labelPosition,
112
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formConfig.value.labelPosition = $event),
92
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formConfig.value.labelPosition = $event),
113
93
  size: "small"
114
94
  }, {
115
95
  default: vue.withCtx(() => [
116
96
  vue.createVNode(_component_el_radio_button, { value: "left" }, {
117
- default: vue.withCtx(() => _cache[7] || (_cache[7] = [
97
+ default: vue.withCtx(() => _cache[5] || (_cache[5] = [
118
98
  vue.createTextVNode("左对齐")
119
99
  ])),
120
100
  _: 1
121
101
  }),
122
102
  vue.createVNode(_component_el_radio_button, { value: "right" }, {
123
- default: vue.withCtx(() => _cache[8] || (_cache[8] = [
103
+ default: vue.withCtx(() => _cache[6] || (_cache[6] = [
124
104
  vue.createTextVNode("右对齐")
125
105
  ])),
126
106
  _: 1
127
107
  }),
128
108
  vue.createVNode(_component_el_radio_button, { value: "top" }, {
129
- default: vue.withCtx(() => _cache[9] || (_cache[9] = [
109
+ default: vue.withCtx(() => _cache[7] || (_cache[7] = [
130
110
  vue.createTextVNode("顶部对齐")
131
111
  ])),
132
112
  _: 1
@@ -134,22 +114,22 @@ const _sfc_main = {
134
114
  ]),
135
115
  _: 1
136
116
  }, 8, ["modelValue"]),
137
- _cache[17] || (_cache[17] = vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
138
- _cache[18] || (_cache[18] = vue.createElementVNode("span", { class: "text-label" }, "表单模式", -1)),
117
+ _cache[13] || (_cache[13] = vue.createElementVNode("div", { class: "setting-divider" }, null, -1)),
118
+ _cache[14] || (_cache[14] = vue.createElementVNode("span", { class: "text-label" }, "表单模式", -1)),
139
119
  vue.createVNode(_component_el_radio_group, {
140
120
  modelValue: formConfig.value.formMode,
141
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => formConfig.value.formMode = $event),
121
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => formConfig.value.formMode = $event),
142
122
  size: "small"
143
123
  }, {
144
124
  default: vue.withCtx(() => [
145
125
  vue.createVNode(_component_el_radio_button, { value: "edit" }, {
146
- default: vue.withCtx(() => _cache[10] || (_cache[10] = [
126
+ default: vue.withCtx(() => _cache[8] || (_cache[8] = [
147
127
  vue.createTextVNode("编辑")
148
128
  ])),
149
129
  _: 1
150
130
  }),
151
131
  vue.createVNode(_component_el_radio_button, { value: "query" }, {
152
- default: vue.withCtx(() => _cache[11] || (_cache[11] = [
132
+ default: vue.withCtx(() => _cache[9] || (_cache[9] = [
153
133
  vue.createTextVNode("查看")
154
134
  ])),
155
135
  _: 1
@@ -159,21 +139,21 @@ const _sfc_main = {
159
139
  }, 8, ["modelValue"])
160
140
  ]),
161
141
  vue.createElementVNode("div", _hoisted_3, [
162
- _cache[19] || (_cache[19] = vue.createElementVNode("span", { class: "text-label" }, "显示字段名", -1)),
142
+ _cache[15] || (_cache[15] = vue.createElementVNode("span", { class: "text-label" }, "显示字段名", -1)),
163
143
  vue.createVNode(_component_el_switch, {
164
144
  modelValue: formConfig.value.showFieldName,
165
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => formConfig.value.showFieldName = $event),
145
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => formConfig.value.showFieldName = $event),
166
146
  size: "small"
167
147
  }, null, 8, ["modelValue"])
168
148
  ])
169
149
  ]),
170
150
  vue.createVNode(vue.unref(DataSourceDialog), {
171
151
  modelValue: vue.unref(dataSourceDialogVisible),
172
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.isRef(dataSourceDialogVisible) ? dataSourceDialogVisible.value = $event : null)
152
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(dataSourceDialogVisible) ? dataSourceDialogVisible.value = $event : null)
173
153
  }, null, 8, ["modelValue"])
174
154
  ], 64);
175
155
  };
176
156
  }
177
157
  };
178
- const FormSetting = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-cc559ca7"]]);
158
+ const FormSetting = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-37091686"]]);
179
159
  exports.default = FormSetting;