@fecp/designer 5.5.62 → 5.5.63

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.
@@ -2,7 +2,7 @@
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { getCurrentInstance, computed, ref, onMounted, createVNode, render, nextTick, createBlock, openBlock, normalizeStyle, normalizeClass, unref, withCtx, isRef, createSlots, createElementBlock, createCommentVNode, Fragment, createElementVNode, renderList, renderSlot } from "vue";
5
+ import { getCurrentInstance, computed, ref, onMounted, createVNode, render, nextTick, resolveComponent, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, normalizeStyle, normalizeClass, unref, withCtx, isRef, createSlots, createElementVNode, renderList, renderSlot } from "vue";
6
6
  import { VxeGrid } from "vxe-table";
7
7
  import { createDataSource } from "../../../utils/datasource.mjs";
8
8
  /* empty css */
@@ -119,6 +119,14 @@ const _sfc_main = {
119
119
  //左滑编辑
120
120
  type: Boolean,
121
121
  default: false
122
+ },
123
+ enableFilter: {
124
+ type: Boolean,
125
+ default: false
126
+ },
127
+ filterPlaceholder: {
128
+ type: String,
129
+ default: ""
122
130
  }
123
131
  },
124
132
  emits: [
@@ -420,131 +428,138 @@ const _sfc_main = {
420
428
  }
421
429
  }
422
430
  return (_ctx, _cache) => {
431
+ const _component_fec_mobile_search = resolveComponent("fec-mobile-search");
423
432
  const _component_van_list = List;
424
433
  const _component_van_cell_group = CellGroup;
425
- return openBlock(), createBlock(_component_van_cell_group, {
426
- class: normalizeClass(["mTableContent", {
427
- notAutoHeight: !__props.autoHeight,
428
- isShadow: __props.isCard && __props.isShadow,
429
- isCard: __props.isCard
430
- }]),
431
- style: normalizeStyle("height:" + unref(compHeight)),
432
- ref_key: "listRef",
433
- ref: listRef,
434
- inset: __props.isCard
435
- }, {
436
- default: withCtx(() => [
437
- createVNode(_component_van_list, {
438
- class: normalizeClass({ fixedHead: __props.isFixedHead }),
439
- loading: unref(loading),
440
- "onUpdate:loading": _cache[0] || (_cache[0] = ($event) => isRef(loading) ? loading.value = $event : null),
441
- error: unref(listError),
442
- "onUpdate:error": _cache[1] || (_cache[1] = ($event) => isRef(listError) ? listError.value = $event : null),
443
- finished: unref(listFinished),
444
- disabled: !__props.scrollLoad || __props.isFixedHead,
445
- offset: 0,
446
- "finished-text": "没有更多了",
447
- "error-text": "请求失败,点击重新加载",
448
- onLoad
449
- }, {
450
- default: withCtx(() => [
451
- createVNode(unref(VxeGrid), {
452
- ref_key: "gridRef",
453
- ref: gridRef,
454
- class: "fec-table",
455
- width: "100%",
456
- "auto-resize": "",
457
- data: unref(tableData),
458
- columns: unref(columnOptions),
459
- size: __props.size,
460
- headerAlign: "center",
461
- footerAlign: "center",
462
- align: "center",
463
- border: __props.border,
464
- round: __props.round || __props.isCard,
465
- stripe: __props.stripe,
466
- height: __props.isFixedHead ? unref(compHeight) : "",
467
- loading: unref(initLoading),
468
- showHeader: __props.showHeader,
469
- onScrollBoundary: onScrollLoads,
470
- virtualYConfig,
471
- onCellClick: cellClickEvent
472
- }, createSlots({
473
- loading: withCtx(() => [
474
- _cache[2] || (_cache[2] = createElementVNode("div", {
475
- class: "custom-loading van-loading van-loading--circular van-list__loading-icon",
476
- "aria-live": "polite",
477
- "aria-busy": "true"
478
- }, [
479
- createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
480
- createElementVNode("svg", {
481
- class: "van-loading__circular",
482
- viewBox: "25 25 50 50"
483
- }, [
484
- createElementVNode("circle", {
485
- cx: "50",
486
- cy: "50",
487
- r: "20",
488
- fill: "none"
489
- })
434
+ return openBlock(), createElementBlock(Fragment, null, [
435
+ __props.enableFilter ? (openBlock(), createBlock(_component_fec_mobile_search, {
436
+ key: 0,
437
+ placeholder: __props.filterPlaceholder
438
+ }, null, 8, ["placeholder"])) : createCommentVNode("", true),
439
+ createVNode(_component_van_cell_group, {
440
+ class: normalizeClass(["mTableContent", {
441
+ notAutoHeight: !__props.autoHeight,
442
+ isShadow: __props.isCard && __props.isShadow,
443
+ isCard: __props.isCard
444
+ }]),
445
+ style: normalizeStyle("height:" + unref(compHeight)),
446
+ ref_key: "listRef",
447
+ ref: listRef,
448
+ inset: __props.isCard
449
+ }, {
450
+ default: withCtx(() => [
451
+ createVNode(_component_van_list, {
452
+ class: normalizeClass({ fixedHead: __props.isFixedHead }),
453
+ loading: unref(loading),
454
+ "onUpdate:loading": _cache[0] || (_cache[0] = ($event) => isRef(loading) ? loading.value = $event : null),
455
+ error: unref(listError),
456
+ "onUpdate:error": _cache[1] || (_cache[1] = ($event) => isRef(listError) ? listError.value = $event : null),
457
+ finished: unref(listFinished),
458
+ disabled: !__props.scrollLoad || __props.isFixedHead,
459
+ offset: 0,
460
+ "finished-text": "没有更多了",
461
+ "error-text": "请求失败,点击重新加载",
462
+ onLoad
463
+ }, {
464
+ default: withCtx(() => [
465
+ createVNode(unref(VxeGrid), {
466
+ ref_key: "gridRef",
467
+ ref: gridRef,
468
+ class: "fec-table",
469
+ width: "100%",
470
+ "auto-resize": "",
471
+ data: unref(tableData),
472
+ columns: unref(columnOptions),
473
+ size: __props.size,
474
+ headerAlign: "center",
475
+ footerAlign: "center",
476
+ align: "center",
477
+ border: __props.border,
478
+ round: __props.round || __props.isCard,
479
+ stripe: __props.stripe,
480
+ height: __props.isFixedHead ? unref(compHeight) : "",
481
+ loading: unref(initLoading),
482
+ showHeader: __props.showHeader,
483
+ onScrollBoundary: onScrollLoads,
484
+ virtualYConfig,
485
+ onCellClick: cellClickEvent
486
+ }, createSlots({
487
+ loading: withCtx(() => [
488
+ _cache[2] || (_cache[2] = createElementVNode("div", {
489
+ class: "custom-loading van-loading van-loading--circular van-list__loading-icon",
490
+ "aria-live": "polite",
491
+ "aria-busy": "true"
492
+ }, [
493
+ createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
494
+ createElementVNode("svg", {
495
+ class: "van-loading__circular",
496
+ viewBox: "25 25 50 50"
497
+ }, [
498
+ createElementVNode("circle", {
499
+ cx: "50",
500
+ cy: "50",
501
+ r: "20",
502
+ fill: "none"
503
+ })
504
+ ])
505
+ ]),
506
+ createElementVNode("span", { class: "van-loading__text" }, "加载中...")
507
+ ], -1))
508
+ ]),
509
+ bottom: withCtx(() => [
510
+ __props.scrollLoad && __props.isFixedHead ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
511
+ unref(finished) ? (openBlock(), createElementBlock("div", _hoisted_1, " 没有更多了 ")) : createCommentVNode("", true),
512
+ unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_2, _cache[3] || (_cache[3] = [
513
+ createElementVNode("div", {
514
+ class: "van-loading van-loading--circular van-list__loading-icon",
515
+ "aria-live": "polite",
516
+ "aria-busy": "true"
517
+ }, [
518
+ createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
519
+ createElementVNode("svg", {
520
+ class: "van-loading__circular",
521
+ viewBox: "25 25 50 50"
522
+ }, [
523
+ createElementVNode("circle", {
524
+ cx: "50",
525
+ cy: "50",
526
+ r: "20",
527
+ fill: "none"
528
+ })
529
+ ])
530
+ ]),
531
+ createElementVNode("span", { class: "van-loading__text" }, "加载中...")
532
+ ], -1)
533
+ ]))) : createCommentVNode("", true),
534
+ unref(error) ? (openBlock(), createElementBlock("div", {
535
+ key: 2,
536
+ class: "van-list__error-text",
537
+ onClick: errReload
538
+ }, " 请求失败,点击重新加载 ")) : createCommentVNode("", true)
539
+ ], 64)) : createCommentVNode("", true)
540
+ ]),
541
+ _: 2
542
+ }, [
543
+ renderList(_ctx.$slots, (item, key) => {
544
+ return {
545
+ name: key,
546
+ fn: withCtx(() => [
547
+ key != "bottom" ? renderSlot(_ctx.$slots, key, { key: 0 }, void 0, true) : createCommentVNode("", true)
490
548
  ])
491
- ]),
492
- createElementVNode("span", { class: "van-loading__text" }, "加载中...")
493
- ], -1))
494
- ]),
495
- bottom: withCtx(() => [
496
- __props.scrollLoad && __props.isFixedHead ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
497
- unref(finished) ? (openBlock(), createElementBlock("div", _hoisted_1, " 没有更多了 ")) : createCommentVNode("", true),
498
- unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_2, _cache[3] || (_cache[3] = [
499
- createElementVNode("div", {
500
- class: "van-loading van-loading--circular van-list__loading-icon",
501
- "aria-live": "polite",
502
- "aria-busy": "true"
503
- }, [
504
- createElementVNode("span", { class: "van-loading__spinner van-loading__spinner--circular" }, [
505
- createElementVNode("svg", {
506
- class: "van-loading__circular",
507
- viewBox: "25 25 50 50"
508
- }, [
509
- createElementVNode("circle", {
510
- cx: "50",
511
- cy: "50",
512
- r: "20",
513
- fill: "none"
514
- })
515
- ])
516
- ]),
517
- createElementVNode("span", { class: "van-loading__text" }, "加载中...")
518
- ], -1)
519
- ]))) : createCommentVNode("", true),
520
- unref(error) ? (openBlock(), createElementBlock("div", {
521
- key: 2,
522
- class: "van-list__error-text",
523
- onClick: errReload
524
- }, " 请求失败,点击重新加载 ")) : createCommentVNode("", true)
525
- ], 64)) : createCommentVNode("", true)
526
- ]),
527
- _: 2
528
- }, [
529
- renderList(_ctx.$slots, (item, key) => {
530
- return {
531
- name: key,
532
- fn: withCtx(() => [
533
- key != "bottom" ? renderSlot(_ctx.$slots, key, { key: 0 }, void 0, true) : createCommentVNode("", true)
534
- ])
535
- };
536
- })
537
- ]), 1032, ["data", "columns", "size", "border", "round", "stripe", "height", "loading", "showHeader"])
538
- ]),
539
- _: 3
540
- }, 8, ["class", "loading", "error", "finished", "disabled"])
541
- ]),
542
- _: 3
543
- }, 8, ["class", "style", "inset"]);
549
+ };
550
+ })
551
+ ]), 1032, ["data", "columns", "size", "border", "round", "stripe", "height", "loading", "showHeader"])
552
+ ]),
553
+ _: 3
554
+ }, 8, ["class", "loading", "error", "finished", "disabled"])
555
+ ]),
556
+ _: 3
557
+ }, 8, ["class", "style", "inset"])
558
+ ], 64);
544
559
  };
545
560
  }
546
561
  };
547
- const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cb55356f"]]);
562
+ const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f2f747af"]]);
548
563
  export {
549
564
  _Table as default
550
565
  };
@@ -4,24 +4,40 @@
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
- import { createBlock, openBlock, normalizeProps, guardReactiveProps, createSlots, renderList, withCtx, renderSlot } from "vue";
8
- import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
7
+ import { ref, createBlock, openBlock, unref } from "vue";
9
8
  import { Search } from "../../../../node_modules/vant/es/search/index.mjs";
10
- const _sfc_main = {};
11
- function _sfc_render(_ctx, _cache) {
12
- const _component_van_search = Search;
13
- return openBlock(), createBlock(_component_van_search, normalizeProps(guardReactiveProps(_ctx.$attrs)), createSlots({ _: 2 }, [
14
- renderList(_ctx.$slots, (item, key) => {
15
- return {
16
- name: key,
17
- fn: withCtx(() => [
18
- renderSlot(_ctx.$slots, key)
19
- ])
20
- };
21
- })
22
- ]), 1040);
23
- }
24
- const _Search = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
9
+ const _sfc_main = {
10
+ __name: "Search",
11
+ props: {
12
+ placeholder: {
13
+ type: String,
14
+ default: ""
15
+ }
16
+ },
17
+ setup(__props) {
18
+ const showAction = ref(false);
19
+ function onClickFilter() {
20
+ showAction.value = true;
21
+ }
22
+ function onSearch(val) {
23
+ }
24
+ function onCancel() {
25
+ showAction.value = false;
26
+ }
27
+ return (_ctx, _cache) => {
28
+ const _component_van_search = Search;
29
+ return openBlock(), createBlock(_component_van_search, {
30
+ shape: "round",
31
+ placeholder: __props.placeholder,
32
+ "show-action": unref(showAction),
33
+ clearable: "",
34
+ onSearch,
35
+ onCancel,
36
+ onClickInput: onClickFilter
37
+ }, null, 8, ["placeholder", "show-action"]);
38
+ };
39
+ }
40
+ };
25
41
  export {
26
- _Search as default
42
+ _sfc_main as default
27
43
  };
@@ -1,6 +1,6 @@
1
- import _Search from "./Search.vue.mjs";
1
+ import _sfc_main from "./Search.vue.mjs";
2
2
  import install from "../../../utils/install.mjs";
3
- const MobileSearch = install.withInstall("MobileSearch", _Search);
3
+ const MobileSearch = install.withInstall("MobileSearch", _sfc_main);
4
4
  export {
5
5
  MobileSearch,
6
6
  MobileSearch as default
@@ -247,10 +247,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
247
247
  hiddenFields.value.forEach((field) => {
248
248
  if (field.fieldName) {
249
249
  if (typeof field.value == "object") {
250
- const value = parseSingleParamValue(field.value, defaultData, [
251
- ...fieldsData.value,
252
- ...hiddenFields.value
253
- ]);
250
+ const value = parseSingleParamValue(
251
+ field.value || field.defaultValue,
252
+ defaultData,
253
+ [...fieldsData.value, ...hiddenFields.value]
254
+ );
254
255
  if (value) {
255
256
  defaultData[field.fieldName] = value;
256
257
  }
@@ -1010,7 +1011,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1010
1011
  if (fecFormRef.value.$el.closest(".fec-layout-row")) {
1011
1012
  return "top";
1012
1013
  } else {
1013
- return "right";
1014
+ if (!props.isDialog) {
1015
+ return "right";
1016
+ } else {
1017
+ return "";
1018
+ }
1014
1019
  }
1015
1020
  } else {
1016
1021
  return "";
@@ -1038,8 +1043,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1038
1043
  if (changedFields.length > 0) {
1039
1044
  applyLinkageEffectsForChangedFields(changedFields);
1040
1045
  }
1041
- getFormData();
1042
- debugger;
1043
1046
  prevFormData.value = { ...formData.value };
1044
1047
  emit("update:modelValue", getFormData());
1045
1048
  },
@@ -1210,7 +1213,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1210
1213
  };
1211
1214
  }
1212
1215
  });
1213
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-92949886"]]);
1216
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5127d7fd"]]);
1214
1217
  export {
1215
1218
  _Form as default
1216
1219
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.62";
3
+ const version = "5.5.63";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = Vue.ref(false);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = Vue.ref(false);
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
54
54
  require("../../../components/TemplateSelector.vue.js");
55
55
  require("../../table/default.js");
56
56
  ;/* empty css */
57
- ;/* empty css */
58
- ;/* empty css */
57
+ ;/* empty css */
58
+ ;/* empty css */
59
59
  require("../../../store/index.js");
60
60
  ;/* empty css */
61
61
  const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");