@fecp/designer 5.5.65 → 5.5.67

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 (61) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  3. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  4. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  5. package/es/designer/src/packages/form/aside/index.mjs +1 -0
  6. package/es/designer/src/packages/form/property/widgets.vue.mjs +70 -43
  7. package/es/designer.css +508 -49
  8. package/es/packages/mobile/index.mjs +6 -0
  9. package/es/packages/mobile/src/api/index.mjs +8 -0
  10. package/es/packages/mobile/src/components/all.mjs +4 -0
  11. package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
  12. package/es/packages/mobile/src/components/dataDisplay/dataStat/DataStat.vue.mjs +14 -0
  13. package/es/packages/mobile/src/components/dataDisplay/dataStat/index.mjs +10 -0
  14. package/es/packages/mobile/src/components/dataDisplay/menuGrid/MenuGrid.vue.mjs +123 -0
  15. package/es/packages/mobile/src/components/dataDisplay/menuGrid/index.mjs +7 -0
  16. package/es/packages/mobile/src/components/dataDisplay/noticeBar/NoticeBar.vue.mjs +98 -16
  17. package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +2 -4
  18. package/es/packages/mobile/src/components/feedback/quickFilter/QuickFilter.vue.mjs +14 -15
  19. package/es/packages/mobile/src/components/form/search/Search.vue.mjs +4 -4
  20. package/es/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.mjs +1 -1
  21. package/es/packages/mobile/src/components/navigation/navBar/NavBar.vue.mjs +13 -3
  22. package/es/packages/mobile/src/components/navigation/navBar/index.mjs +2 -2
  23. package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +8 -4
  24. package/es/packages/mobile/src/components/navigation/tabbar/index.mjs +2 -2
  25. package/es/packages/mobile/src/index.vue.mjs +138 -0
  26. package/es/packages/mobile/src/page.vue.mjs +117 -0
  27. package/es/packages/mobile/src/utils/eventBus.mjs +5 -0
  28. package/es/packages/mobile/src/utils/pageHistory.mjs +111 -0
  29. package/es/packages/vue/src/components/forms/date/Date.vue.mjs +20 -0
  30. package/es/packages/vue/src/components/forms/form/validation.mjs +1 -1
  31. package/es/packages/vue/src/utils/parseFilterConfig.mjs +25 -0
  32. package/lib/designer/package.json.js +1 -1
  33. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  34. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  35. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  36. package/lib/designer/src/packages/form/aside/index.js +1 -0
  37. package/lib/designer/src/packages/form/property/widgets.vue.js +70 -43
  38. package/lib/designer.css +508 -49
  39. package/lib/packages/mobile/index.js +94 -88
  40. package/lib/packages/mobile/src/api/index.js +8 -0
  41. package/lib/packages/mobile/src/components/all.js +92 -88
  42. package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
  43. package/lib/packages/mobile/src/components/dataDisplay/dataStat/DataStat.vue.js +14 -0
  44. package/lib/packages/mobile/src/components/dataDisplay/dataStat/index.js +10 -0
  45. package/lib/packages/mobile/src/components/dataDisplay/menuGrid/MenuGrid.vue.js +123 -0
  46. package/lib/packages/mobile/src/components/dataDisplay/menuGrid/index.js +7 -0
  47. package/lib/packages/mobile/src/components/dataDisplay/noticeBar/NoticeBar.vue.js +97 -15
  48. package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +2 -4
  49. package/lib/packages/mobile/src/components/feedback/quickFilter/QuickFilter.vue.js +13 -14
  50. package/lib/packages/mobile/src/components/form/search/Search.vue.js +4 -4
  51. package/lib/packages/mobile/src/components/navigation/actionBar/ActionBar.vue.js +1 -1
  52. package/lib/packages/mobile/src/components/navigation/navBar/NavBar.vue.js +13 -3
  53. package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +8 -4
  54. package/lib/packages/mobile/src/index.vue.js +138 -0
  55. package/lib/packages/mobile/src/page.vue.js +117 -0
  56. package/lib/packages/mobile/src/utils/eventBus.js +5 -0
  57. package/lib/packages/mobile/src/utils/pageHistory.js +111 -0
  58. package/lib/packages/vue/src/components/forms/date/Date.vue.js +20 -0
  59. package/lib/packages/vue/src/components/forms/form/validation.js +1 -1
  60. package/lib/packages/vue/src/utils/parseFilterConfig.js +25 -0
  61. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import * as all from "./src/components/all.mjs";
2
2
  import "./node_modules/@vant/touch-emulator/dist/index.mjs";
3
3
  /* empty css */
4
+ import MobileApp from "./src/index.vue.mjs";
4
5
  import { MobileButton } from "./src/components/base/button/index.mjs";
5
6
  import { MobileIcon } from "./src/components/base/icon/index.mjs";
6
7
  import { MobileCell } from "./src/components/base/cell/index.mjs";
@@ -23,6 +24,8 @@ import { MobileSwipeItem } from "./src/components/dataDisplay/swipeItem/index.mj
23
24
  import { MobileTextEllipsis } from "./src/components/dataDisplay/textEllipsis/index.mjs";
24
25
  import { MobileTimeLine } from "./src/components/dataDisplay/timeLine/index.mjs";
25
26
  import { MobileCardList } from "./src/components/dataDisplay/cardList/index.mjs";
27
+ import { MobileMenuGrid } from "./src/components/dataDisplay/menuGrid/index.mjs";
28
+ import { MobileDataStat } from "./src/components/dataDisplay/dataStat/index.mjs";
26
29
  import { MobileActionSheet } from "./src/components/feedback/actionSheet/index.mjs";
27
30
  import { MobileDropdownMenu } from "./src/components/feedback/dropdownMenu/index.mjs";
28
31
  import { MobileFloatingPanel } from "./src/components/feedback/floatingPanel/index.mjs";
@@ -76,6 +79,7 @@ const index = {
76
79
  for (let c in all) {
77
80
  app.use(all[c]);
78
81
  }
82
+ app.component("FecMobileApp", MobileApp);
79
83
  }
80
84
  };
81
85
  export {
@@ -91,6 +95,7 @@ export {
91
95
  MobileCheckboxGroup,
92
96
  MobileCollapse,
93
97
  MobileCollapseItem,
98
+ MobileDataStat,
94
99
  MobileDivider,
95
100
  MobileDropdownMenu,
96
101
  MobileEmpty,
@@ -120,6 +125,7 @@ export {
120
125
  MobileLayout,
121
126
  MobileList,
122
127
  MobileLoading,
128
+ MobileMenuGrid,
123
129
  MobileNavBar,
124
130
  MobileNoticeBar,
125
131
  MobilePagination,
@@ -0,0 +1,8 @@
1
+ const api = {
2
+ getAppById: ($http, id) => {
3
+ return $http.postForm(`${$servers.base}/sysMobileApp/getById`, { id });
4
+ }
5
+ };
6
+ export {
7
+ api as default
8
+ };
@@ -20,6 +20,8 @@ import { MobileSwipeItem } from "./dataDisplay/swipeItem/index.mjs";
20
20
  import { MobileTextEllipsis } from "./dataDisplay/textEllipsis/index.mjs";
21
21
  import { MobileTimeLine } from "./dataDisplay/timeLine/index.mjs";
22
22
  import { MobileCardList } from "./dataDisplay/cardList/index.mjs";
23
+ import { MobileMenuGrid } from "./dataDisplay/menuGrid/index.mjs";
24
+ import { MobileDataStat } from "./dataDisplay/dataStat/index.mjs";
23
25
  import { MobileActionSheet } from "./feedback/actionSheet/index.mjs";
24
26
  import { MobileDropdownMenu } from "./feedback/dropdownMenu/index.mjs";
25
27
  import { MobileFloatingPanel } from "./feedback/floatingPanel/index.mjs";
@@ -77,6 +79,7 @@ export {
77
79
  MobileCheckboxGroup,
78
80
  MobileCollapse,
79
81
  MobileCollapseItem,
82
+ MobileDataStat,
80
83
  MobileDivider,
81
84
  MobileDropdownMenu,
82
85
  MobileEmpty,
@@ -106,6 +109,7 @@ export {
106
109
  MobileLayout,
107
110
  MobileList,
108
111
  MobileLoading,
112
+ MobileMenuGrid,
109
113
  MobileNavBar,
110
114
  MobileNoticeBar,
111
115
  MobilePagination,
@@ -6,13 +6,13 @@
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  import { createBlock, openBlock, withCtx, createVNode, renderSlot } from "vue";
9
+ /* empty css */
10
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
9
11
  /* empty css */
10
12
  /* empty css */
11
13
  /* empty css */
12
14
  /* empty css */
13
15
  /* empty css */
14
- /* empty css */
15
- import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
16
16
  import { SwipeCell } from "../../../../node_modules/vant/es/swipe-cell/index.mjs";
17
17
  import { showConfirmDialog } from "../../../../node_modules/vant/es/dialog/function-call.mjs";
18
18
  import "../../../../node_modules/vant/es/dialog/index.mjs";
@@ -0,0 +1,14 @@
1
+ import { createElementBlock, openBlock, createStaticVNode } from "vue";
2
+ /* empty css */
3
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const _sfc_main = {};
5
+ const _hoisted_1 = { class: "stat-card" };
6
+ function _sfc_render(_ctx, _cache) {
7
+ return openBlock(), createElementBlock("div", _hoisted_1, _cache[0] || (_cache[0] = [
8
+ createStaticVNode('<div class="stat-top" data-v-fa8fbc8a><div class="stat-item" data-v-fa8fbc8a><div class="label" data-v-fa8fbc8a>今日认购金额</div><div class="num" data-v-fa8fbc8a><span class="value" data-v-fa8fbc8a>4,012</span><span class="unit" data-v-fa8fbc8a>万元</span></div></div><div class="stat-item" data-v-fa8fbc8a><div class="label" data-v-fa8fbc8a>今日回款金额</div><div class="num" data-v-fa8fbc8a><span class="value" data-v-fa8fbc8a>1,336</span><span class="unit" data-v-fa8fbc8a>万元</span></div></div><div class="stat-item" data-v-fa8fbc8a><div class="label" data-v-fa8fbc8a>今日交楼金额</div><div class="num" data-v-fa8fbc8a><span class="value" data-v-fa8fbc8a>306</span><span class="unit" data-v-fa8fbc8a>万元</span></div></div></div><div class="detail-row" data-v-fa8fbc8a><div class="detail-left" data-v-fa8fbc8a><div class="detail-group" data-v-fa8fbc8a><div class="detail-label" data-v-fa8fbc8a>实际完成(万元)</div><div class="detail-num" data-v-fa8fbc8a>101.342</div></div><div class="detail-group" data-v-fa8fbc8a><div class="detail-label" data-v-fa8fbc8a>目标金额(万元)</div><div class="detail-num" data-v-fa8fbc8a>223.764</div></div></div><div class="detail-right" data-v-fa8fbc8a><div class="detail-item" data-v-fa8fbc8a><div class="detail-item-top" data-v-fa8fbc8a><div class="detail-item-title" data-v-fa8fbc8a>年度回款(万元)</div><div class="detail-percent" data-v-fa8fbc8a>70%</div></div><div class="detail-kv" data-v-fa8fbc8a><span class="k" data-v-fa8fbc8a>实际</span><span class="v" data-v-fa8fbc8a>342.234</span></div><div class="detail-kv" data-v-fa8fbc8a><span class="k" data-v-fa8fbc8a>目标</span><span class="v" data-v-fa8fbc8a>432.340</span></div></div><div class="detail-item" data-v-fa8fbc8a><div class="detail-item-top" data-v-fa8fbc8a><div class="detail-item-title" data-v-fa8fbc8a>年度回款(万元)</div><div class="detail-percent" data-v-fa8fbc8a>70%</div></div><div class="detail-kv" data-v-fa8fbc8a><span class="k" data-v-fa8fbc8a>实际</span><span class="v" data-v-fa8fbc8a>342.234</span></div><div class="detail-kv" data-v-fa8fbc8a><span class="k" data-v-fa8fbc8a>目标</span><span class="v" data-v-fa8fbc8a>432.340</span></div></div></div></div>', 2)
9
+ ]));
10
+ }
11
+ const _DataStat = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-fa8fbc8a"]]);
12
+ export {
13
+ _DataStat as default
14
+ };
@@ -0,0 +1,10 @@
1
+ import _DataStat from "./DataStat.vue.mjs";
2
+ import install from "../../../utils/install.mjs";
3
+ const MobileDataStat = install.withInstall(
4
+ "MobileDataStat",
5
+ _DataStat
6
+ );
7
+ export {
8
+ MobileDataStat,
9
+ MobileDataStat as default
10
+ };
@@ -0,0 +1,123 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ import { createElementBlock, openBlock, createCommentVNode, createVNode, createElementVNode, toDisplayString, withCtx, Fragment, renderList, createBlock, normalizeClass } from "vue";
7
+ import emitter from "../../../utils/eventBus.mjs";
8
+ /* empty css */
9
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
10
+ import { Grid } from "../../../../node_modules/vant/es/grid/index.mjs";
11
+ import { GridItem } from "../../../../node_modules/vant/es/grid-item/index.mjs";
12
+ import { Icon } from "../../../../node_modules/vant/es/icon/index.mjs";
13
+ const _hoisted_1 = { class: "menu-grid-wrap" };
14
+ const _hoisted_2 = {
15
+ key: 0,
16
+ class: "menu-header"
17
+ };
18
+ const _hoisted_3 = { class: "header-left" };
19
+ const _hoisted_4 = { class: "header-title" };
20
+ const _hoisted_5 = {
21
+ key: 0,
22
+ class: "header-right"
23
+ };
24
+ const _hoisted_6 = { class: "more-btn" };
25
+ const _hoisted_7 = { class: "menu-item" };
26
+ const _hoisted_8 = ["src"];
27
+ const _hoisted_9 = {
28
+ key: 1,
29
+ class: "icon-text"
30
+ };
31
+ const _hoisted_10 = { class: "menu-text" };
32
+ const _sfc_main = {
33
+ __name: "MenuGrid",
34
+ props: {
35
+ title: {
36
+ type: String,
37
+ default: ""
38
+ },
39
+ showHeader: {
40
+ type: Boolean,
41
+ default: true
42
+ },
43
+ showMore: {
44
+ type: Boolean,
45
+ default: true
46
+ },
47
+ moreText: {
48
+ type: String,
49
+ default: ""
50
+ },
51
+ columnNum: {
52
+ type: Number,
53
+ default: 5
54
+ },
55
+ menuItems: {
56
+ type: Array,
57
+ default: () => []
58
+ }
59
+ },
60
+ setup(__props) {
61
+ function clickHandler(item) {
62
+ console.log("🚀 ~ clickHandler ~ item:", item);
63
+ emitter.emit("loadPage", item.pageId);
64
+ }
65
+ return (_ctx, _cache) => {
66
+ const _component_van_icon = Icon;
67
+ const _component_van_grid_item = GridItem;
68
+ const _component_van_grid = Grid;
69
+ return openBlock(), createElementBlock("div", _hoisted_1, [
70
+ __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_2, [
71
+ createElementVNode("div", _hoisted_3, [
72
+ createElementVNode("span", _hoisted_4, toDisplayString(__props.title), 1)
73
+ ]),
74
+ __props.showMore ? (openBlock(), createElementBlock("div", _hoisted_5, [
75
+ createElementVNode("span", _hoisted_6, toDisplayString(__props.moreText), 1),
76
+ createVNode(_component_van_icon, {
77
+ name: "arrow",
78
+ class: "more-icon"
79
+ })
80
+ ])) : createCommentVNode("", true)
81
+ ])) : createCommentVNode("", true),
82
+ createVNode(_component_van_grid, {
83
+ "column-num": __props.columnNum,
84
+ border: "false",
85
+ class: "menu-grid"
86
+ }, {
87
+ default: withCtx(() => [
88
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuItems, (item, index) => {
89
+ return openBlock(), createBlock(_component_van_grid_item, {
90
+ key: index,
91
+ onClick: ($event) => clickHandler(item)
92
+ }, {
93
+ default: withCtx(() => [
94
+ createElementVNode("div", _hoisted_7, [
95
+ createElementVNode("div", {
96
+ class: normalizeClass(["icon-box", item.bgClass || "icon-blue"])
97
+ }, [
98
+ item.iconType === "image" ? (openBlock(), createElementBlock("img", {
99
+ key: 0,
100
+ src: item.icon,
101
+ class: "icon-img"
102
+ }, null, 8, _hoisted_8)) : item.iconText ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(item.iconText), 1)) : (openBlock(), createBlock(_component_van_icon, {
103
+ key: 2,
104
+ name: item.icon || "apps-o"
105
+ }, null, 8, ["name"]))
106
+ ], 2),
107
+ createElementVNode("div", _hoisted_10, toDisplayString(item.label), 1)
108
+ ])
109
+ ]),
110
+ _: 2
111
+ }, 1032, ["onClick"]);
112
+ }), 128))
113
+ ]),
114
+ _: 1
115
+ }, 8, ["column-num"])
116
+ ]);
117
+ };
118
+ }
119
+ };
120
+ const _MenuGrid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bde7e748"]]);
121
+ export {
122
+ _MenuGrid as default
123
+ };
@@ -0,0 +1,7 @@
1
+ import _MenuGrid from "./MenuGrid.vue.mjs";
2
+ import install from "../../../utils/install.mjs";
3
+ const MobileMenuGrid = install.withInstall("MobileMenuGrid", _MenuGrid);
4
+ export {
5
+ MobileMenuGrid,
6
+ MobileMenuGrid as default
7
+ };
@@ -2,24 +2,106 @@
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { createBlock, openBlock, normalizeProps, guardReactiveProps, createSlots, renderList, withCtx, renderSlot } from "vue";
5
+ /* empty css */
6
+ /* empty css */
7
+ import { createElementBlock, openBlock, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, renderSlot } from "vue";
8
+ /* empty css */
6
9
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
7
10
  import { NoticeBar } from "../../../../node_modules/vant/es/notice-bar/index.mjs";
8
- const _sfc_main = {};
9
- function _sfc_render(_ctx, _cache) {
10
- const _component_van_notice_bar = NoticeBar;
11
- return openBlock(), createBlock(_component_van_notice_bar, normalizeProps(guardReactiveProps(_ctx.$attrs)), createSlots({ _: 2 }, [
12
- renderList(_ctx.$slots, (item, key) => {
13
- return {
14
- name: key,
15
- fn: withCtx(() => [
16
- renderSlot(_ctx.$slots, key)
17
- ])
18
- };
19
- })
20
- ]), 1040);
21
- }
22
- const _NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
11
+ import { Swipe } from "../../../../node_modules/vant/es/swipe/index.mjs";
12
+ import { SwipeItem } from "../../../../node_modules/vant/es/swipe-item/index.mjs";
13
+ const _hoisted_1 = { class: "notice-wrap" };
14
+ const _hoisted_2 = { class: "notice-label" };
15
+ const _hoisted_3 = ["src"];
16
+ const _hoisted_4 = {
17
+ key: 1,
18
+ class: "label-text"
19
+ };
20
+ const _hoisted_5 = { class: "notice-title" };
21
+ const _hoisted_6 = { class: "title-text" };
22
+ const _hoisted_7 = { class: "notice-time" };
23
+ const _sfc_main = {
24
+ __name: "NoticeBar",
25
+ props: {
26
+ labelImage: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ noticeList: {
31
+ type: Array,
32
+ default: () => [
33
+ {
34
+ title: "集团公告 客研体系和品牌升级项目定义会...",
35
+ time: "2020-09-02 11:31"
36
+ },
37
+ {
38
+ title: "关于中秋节放假安排的通知...",
39
+ time: "2020-09-01 09:00"
40
+ }
41
+ ]
42
+ }
43
+ },
44
+ setup(__props) {
45
+ return (_ctx, _cache) => {
46
+ const _component_van_swipe_item = SwipeItem;
47
+ const _component_van_swipe = Swipe;
48
+ const _component_van_notice_bar = NoticeBar;
49
+ return openBlock(), createElementBlock("div", _hoisted_1, [
50
+ createVNode(_component_van_notice_bar, {
51
+ scrollable: false,
52
+ class: "notice-bar",
53
+ background: "#FFF"
54
+ }, {
55
+ "left-icon": withCtx(() => [
56
+ createElementVNode("div", _hoisted_2, [
57
+ renderSlot(_ctx.$slots, "label-image", {}, () => [
58
+ __props.labelImage ? (openBlock(), createElementBlock("img", {
59
+ key: 0,
60
+ src: __props.labelImage,
61
+ class: "label-img"
62
+ }, null, 8, _hoisted_3)) : (openBlock(), createElementBlock("div", _hoisted_4, _cache[0] || (_cache[0] = [
63
+ createElementVNode("span", { class: "text-top" }, "公告", -1),
64
+ createElementVNode("span", { class: "text-bottom" }, "事项", -1)
65
+ ])))
66
+ ], true)
67
+ ]),
68
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "divider" }, null, -1))
69
+ ]),
70
+ default: withCtx(() => [
71
+ createVNode(_component_van_swipe, {
72
+ vertical: "",
73
+ class: "notice-swipe",
74
+ autoplay: 3e3,
75
+ touchable: false,
76
+ "show-indicators": false
77
+ }, {
78
+ default: withCtx(() => [
79
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.noticeList, (item, index) => {
80
+ return openBlock(), createBlock(_component_van_swipe_item, {
81
+ key: index,
82
+ class: "notice-item"
83
+ }, {
84
+ default: withCtx(() => [
85
+ createElementVNode("div", _hoisted_5, [
86
+ _cache[2] || (_cache[2] = createElementVNode("span", { class: "dot" }, null, -1)),
87
+ createElementVNode("span", _hoisted_6, toDisplayString(item.title), 1)
88
+ ]),
89
+ createElementVNode("div", _hoisted_7, toDisplayString(item.time), 1)
90
+ ]),
91
+ _: 2
92
+ }, 1024);
93
+ }), 128))
94
+ ]),
95
+ _: 1
96
+ })
97
+ ]),
98
+ _: 3
99
+ })
100
+ ]);
101
+ };
102
+ }
103
+ };
104
+ const _NoticeBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2b72b4f6"]]);
23
105
  export {
24
106
  _NoticeBar as default
25
107
  };
@@ -436,9 +436,7 @@ const _sfc_main = {
436
436
  }
437
437
  }
438
438
  const quickFilterConfig = computed(() => {
439
- const list = props.columns.filter((item) => {
440
- return props.quickFilter.includes(item.fieldName);
441
- });
439
+ const list = props.quickFilter.map((fieldName) => props.columns.find((col) => col.fieldName == fieldName)).filter(Boolean);
442
440
  return list;
443
441
  });
444
442
  return (_ctx, _cache) => {
@@ -576,7 +574,7 @@ const _sfc_main = {
576
574
  };
577
575
  }
578
576
  };
579
- const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6b4a4429"]]);
577
+ const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ee91bb34"]]);
580
578
  export {
581
579
  _Table as default
582
580
  };
@@ -8,7 +8,7 @@
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { computed, ref, createBlock, createCommentVNode, unref, openBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createVNode, createTextVNode } from "vue";
11
+ import { ref, createBlock, createCommentVNode, openBlock, withCtx, createElementBlock, Fragment, renderList, unref, createElementVNode, normalizeClass, toDisplayString, createVNode, createTextVNode } from "vue";
12
12
  /* empty css */
13
13
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
14
14
  import { DropdownMenu } from "../../../../node_modules/vant/es/dropdown-menu/index.mjs";
@@ -40,7 +40,6 @@ const _sfc_main = {
40
40
  setup(__props, { emit: __emit }) {
41
41
  const props = __props;
42
42
  const emit = __emit;
43
- const filterDataComputed = computed(() => props.filterData);
44
43
  const activeSelections = ref({});
45
44
  const confirmedSelections = ref({});
46
45
  const itemRefs = ref({});
@@ -56,7 +55,7 @@ const _sfc_main = {
56
55
  if (!activeSelections.value[fieldName]) {
57
56
  activeSelections.value[fieldName] = [];
58
57
  }
59
- const filter = filterDataComputed.value.find((f) => f.fieldName === fieldName);
58
+ const filter = props.filterData.find((f) => f.fieldName === fieldName);
60
59
  const isMultiple = (filter == null ? void 0 : filter.dataType) === "multiple";
61
60
  if (isMultiple) {
62
61
  const idx = activeSelections.value[fieldName].indexOf(value);
@@ -91,13 +90,13 @@ const _sfc_main = {
91
90
  };
92
91
  const allFilterRef = ref(null);
93
92
  const resetAllFilters = () => {
94
- filterDataComputed.value.forEach((filter) => {
93
+ props.filterData.forEach((filter) => {
95
94
  activeSelections.value[filter.fieldName] = [];
96
95
  });
97
96
  };
98
97
  const confirmAllFilters = () => {
99
98
  var _a;
100
- filterDataComputed.value.forEach((filter) => {
99
+ props.filterData.forEach((filter) => {
101
100
  confirmedSelections.value[filter.fieldName] = [
102
101
  ...activeSelections.value[filter.fieldName] || []
103
102
  ];
@@ -112,7 +111,7 @@ const _sfc_main = {
112
111
  };
113
112
  const emitChange = () => {
114
113
  const result = [];
115
- filterDataComputed.value.forEach((filter) => {
114
+ props.filterData.forEach((filter) => {
116
115
  const values = confirmedSelections.value[filter.fieldName] || [];
117
116
  if (values.length > 0) {
118
117
  result.push({
@@ -129,15 +128,15 @@ const _sfc_main = {
129
128
  const _component_van_button = Button;
130
129
  const _component_van_dropdown_item = DropdownItem;
131
130
  const _component_van_dropdown_menu = DropdownMenu;
132
- return unref(filterDataComputed).length > 0 ? (openBlock(), createBlock(_component_van_dropdown_menu, {
131
+ return __props.filterData.length > 0 ? (openBlock(), createBlock(_component_van_dropdown_menu, {
133
132
  key: 0,
134
133
  "auto-locate": "",
135
134
  class: "fec-quick-filter"
136
135
  }, {
137
136
  default: withCtx(() => [
138
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(filterDataComputed), (filter) => {
137
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.filterData, (filter, index) => {
139
138
  return openBlock(), createBlock(_component_van_dropdown_item, {
140
- key: filter.fieldName,
139
+ key: `${filter.label}-${index}`,
141
140
  ref_for: true,
142
141
  ref: (el) => unref(itemRefs)[filter.fieldName] = el,
143
142
  onOpen: ($event) => dropdownItemOpen(filter.fieldName)
@@ -185,7 +184,7 @@ const _sfc_main = {
185
184
  _: 2
186
185
  }, 1032, ["onOpen"]);
187
186
  }), 128)),
188
- unref(filterDataComputed).length > 0 ? (openBlock(), createBlock(_component_van_dropdown_item, {
187
+ __props.filterData.length > 0 ? (openBlock(), createBlock(_component_van_dropdown_item, {
189
188
  key: 0,
190
189
  ref_key: "allFilterRef",
191
190
  ref: allFilterRef,
@@ -193,16 +192,16 @@ const _sfc_main = {
193
192
  }, {
194
193
  default: withCtx(() => [
195
194
  createElementVNode("div", _hoisted_7, [
196
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(filterDataComputed), (filter) => {
195
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.filterData, (filter, index) => {
197
196
  return openBlock(), createElementBlock("div", {
198
- key: filter.fieldName,
197
+ key: `all-${filter.label}-${index}`,
199
198
  class: "filter-group"
200
199
  }, [
201
200
  createElementVNode("h3", _hoisted_8, toDisplayString(filter.label), 1),
202
201
  createElementVNode("div", _hoisted_9, [
203
- (openBlock(true), createElementBlock(Fragment, null, renderList(filter.options, (item) => {
202
+ (openBlock(true), createElementBlock(Fragment, null, renderList(filter.options, (item, optIndex) => {
204
203
  return openBlock(), createElementBlock("div", {
205
- key: item.id || item.value,
204
+ key: `${filter.label}-${item.value}-${optIndex}`,
206
205
  class: normalizeClass(["tag-item", {
207
206
  active: isOptionSelected(filter.fieldName, item.value)
208
207
  }]),
@@ -243,7 +242,7 @@ const _sfc_main = {
243
242
  };
244
243
  }
245
244
  };
246
- const QuickFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-65884e09"]]);
245
+ const QuickFilter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3e7ddf36"]]);
247
246
  export {
248
247
  QuickFilter as default
249
248
  };
@@ -47,14 +47,14 @@ const _sfc_main = {
47
47
  emit("filterChange", result);
48
48
  }
49
49
  const filterData = ref([]);
50
+ const fieldDataSources = /* @__PURE__ */ new Set();
51
+ const dictionaryKeys = /* @__PURE__ */ new Set();
52
+ const dataSourceOptions = ref({});
53
+ const dictionaryOptions = ref({});
50
54
  const loadFieldDataSources = async () => {
51
55
  var _a, _b;
52
56
  const optionsDatas = [];
53
57
  const fields = props.filterConfig;
54
- const fieldDataSources = /* @__PURE__ */ new Set();
55
- const dictionaryKeys = /* @__PURE__ */ new Set();
56
- const dataSourceOptions = ref({});
57
- const dictionaryOptions = ref({});
58
58
  for (const component of fields) {
59
59
  const { optionSource, dataSourceValue, dictionaryValue } = component.optionConfig;
60
60
  if (optionSource === "dataSource" && dataSourceValue) {
@@ -36,7 +36,7 @@ const _sfc_main = {
36
36
  };
37
37
  }
38
38
  };
39
- const _ActionBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-44eb199a"]]);
39
+ const _ActionBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ac26522e"]]);
40
40
  export {
41
41
  _ActionBar as default
42
42
  };
@@ -3,6 +3,10 @@
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import { createBlock, openBlock, mergeProps, createSlots, renderList, withCtx, renderSlot } from "vue";
6
+ import { pageHistory } from "../../../utils/pageHistory.mjs";
7
+ import emitter from "../../../utils/eventBus.mjs";
8
+ /* empty css */
9
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
6
10
  import { NavBar } from "../../../../node_modules/vant/es/nav-bar/index.mjs";
7
11
  const _sfc_main = {
8
12
  __name: "NavBar",
@@ -25,7 +29,12 @@ const _sfc_main = {
25
29
  }
26
30
  },
27
31
  setup(__props) {
28
- const onClickLeft = () => history.back();
32
+ const onClickLeft = () => {
33
+ const prevPage = pageHistory.back();
34
+ if (prevPage) {
35
+ emitter.emit("loadPage", prevPage.id);
36
+ }
37
+ };
29
38
  return (_ctx, _cache) => {
30
39
  const _component_van_nav_bar = NavBar;
31
40
  return openBlock(), createBlock(_component_van_nav_bar, mergeProps(_ctx.$attrs, {
@@ -41,7 +50,7 @@ const _sfc_main = {
41
50
  return {
42
51
  name: key,
43
52
  fn: withCtx(() => [
44
- renderSlot(_ctx.$slots, key)
53
+ renderSlot(_ctx.$slots, key, {}, void 0, true)
45
54
  ])
46
55
  };
47
56
  })
@@ -49,6 +58,7 @@ const _sfc_main = {
49
58
  };
50
59
  }
51
60
  };
61
+ const _NavBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6340561"]]);
52
62
  export {
53
- _sfc_main as default
63
+ _NavBar as default
54
64
  };
@@ -1,6 +1,6 @@
1
- import _sfc_main from "./NavBar.vue.mjs";
1
+ import _NavBar from "./NavBar.vue.mjs";
2
2
  import install from "../../../utils/install.mjs";
3
- const MobileNavBar = install.withInstall("MobileNavBar", _sfc_main);
3
+ const MobileNavBar = install.withInstall("MobileNavBar", _NavBar);
4
4
  export {
5
5
  MobileNavBar,
6
6
  MobileNavBar as default
@@ -4,6 +4,8 @@
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import { computed, createBlock, openBlock, mergeProps, unref, isRef, withCtx, createElementBlock, renderSlot, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
7
+ /* empty css */
8
+ import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
7
9
  import { Tabbar } from "../../../../node_modules/vant/es/tabbar/index.mjs";
8
10
  import { TabbarItem } from "../../../../node_modules/vant/es/tabbar-item/index.mjs";
9
11
  const _sfc_main = {
@@ -42,21 +44,23 @@ const _sfc_main = {
42
44
  default: withCtx(() => [
43
45
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabbarOptions, (item) => {
44
46
  return openBlock(), createBlock(_component_van_tabbar_item, {
45
- icon: item.icon
47
+ icon: item.icon,
48
+ name: item.pageId
46
49
  }, {
47
50
  default: withCtx(() => [
48
51
  createTextVNode(toDisplayString(item.title), 1)
49
52
  ]),
50
53
  _: 2
51
- }, 1032, ["icon"]);
54
+ }, 1032, ["icon", "name"]);
52
55
  }), 256)),
53
- renderSlot(_ctx.$slots, "default")
56
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
54
57
  ]),
55
58
  _: 3
56
59
  }, 16, ["modelValue"]);
57
60
  };
58
61
  }
59
62
  };
63
+ const _Tabbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-04abcf62"]]);
60
64
  export {
61
- _sfc_main as default
65
+ _Tabbar as default
62
66
  };
@@ -1,6 +1,6 @@
1
- import _sfc_main from "./Tabbar.vue.mjs";
1
+ import _Tabbar from "./Tabbar.vue.mjs";
2
2
  import install from "../../../utils/install.mjs";
3
- const MobileTabbar = install.withInstall("MobileTabbar", _sfc_main);
3
+ const MobileTabbar = install.withInstall("MobileTabbar", _Tabbar);
4
4
  export {
5
5
  MobileTabbar,
6
6
  MobileTabbar as default