@web-utils/component 2.70.0 → 3.0.1

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 (189) hide show
  1. package/address-input/index.mjs +16 -14
  2. package/awesome-button/index.mjs +30 -29
  3. package/card/index.mjs +42 -40
  4. package/carousel/index.mjs +27 -25
  5. package/chat/index.mjs +70 -59
  6. package/chunk-file-uploader/index.mjs +594 -35
  7. package/chunk-file-uploader/style.css +1 -1
  8. package/chunks/CountUp.f1a19f35.mjs +124 -0
  9. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
  10. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
  11. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
  12. package/chunks/ElementDialog.d8f3105c.mjs +211 -0
  13. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
  14. package/chunks/EmptyView.e2430422.mjs +51 -0
  15. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
  16. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
  17. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
  18. package/chunks/FormItem.2920ac0c.mjs +45 -0
  19. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
  20. package/chunks/FormItemGroup.41daddb6.mjs +64 -0
  21. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
  22. package/chunks/FyCurd.8acd2983.mjs +548 -0
  23. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
  24. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
  25. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
  26. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
  27. package/chunks/FyForm.0294e494.mjs +439 -0
  28. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
  29. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
  30. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
  31. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
  32. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
  33. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
  34. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
  35. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
  36. package/chunks/IconTemp.42c48e1f.mjs +32 -0
  37. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
  38. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
  39. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
  40. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
  41. package/chunks/Page.81f4b8d9.mjs +32 -0
  42. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
  43. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
  44. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
  45. package/chunks/PageableTable.333cbdc1.mjs +335 -0
  46. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
  47. package/chunks/ResizeObserver.60f728f0.mjs +54 -0
  48. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
  49. package/chunks/TableColumn.8503272e.mjs +106 -0
  50. package/chunks/Toolbar.5c539dbb.mjs +24 -0
  51. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
  52. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
  53. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
  54. package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
  55. package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
  56. package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
  57. package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
  58. package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
  59. package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
  60. package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
  61. package/color-picker/index.mjs +200 -32
  62. package/confirm-button/index.mjs +1 -1
  63. package/confirmable/index.mjs +1 -1
  64. package/count-up/index.mjs +14 -17
  65. package/data-box/index.mjs +36 -33
  66. package/data-card/index.mjs +35 -33
  67. package/data-cardtext/index.mjs +29 -27
  68. package/data-display/index.mjs +37 -34
  69. package/data-icons/index.mjs +32 -29
  70. package/data-imgtext/index.mjs +30 -27
  71. package/data-operatext/index.mjs +41 -39
  72. package/data-panel/index.mjs +39 -36
  73. package/data-pay/index.mjs +26 -22
  74. package/data-price/index.mjs +34 -32
  75. package/data-progress/index.mjs +32 -28
  76. package/data-rotate/index.mjs +38 -35
  77. package/data-table-picker/index.mjs +25 -22
  78. package/data-tabs/index.mjs +35 -32
  79. package/dialog-form/index.mjs +41 -32
  80. package/dynamic-table/index.mjs +47 -42
  81. package/easy-popup/index.mjs +29 -56
  82. package/editable-progress/index.mjs +16 -14
  83. package/editable-tree/index.mjs +129 -476
  84. package/egd-collapse-item/index.mjs +1 -2
  85. package/element-dialog/index.mjs +37 -126
  86. package/empty-view/index.mjs +13 -31
  87. package/flex-column/index.mjs +1 -1
  88. package/flex-item/index.mjs +1 -1
  89. package/flex-row/index.mjs +1 -1
  90. package/flow/index.mjs +105 -40
  91. package/flow-designer/index.mjs +1190 -1114
  92. package/flow-node/index.mjs +15 -47
  93. package/flow-viewer/index.mjs +167 -78
  94. package/form-block/index.mjs +24 -22
  95. package/form-cascader/index.mjs +29 -29
  96. package/form-checkbox-group/index.mjs +76 -31
  97. package/form-date-picker/index.mjs +21 -20
  98. package/form-holder/index.mjs +16 -15
  99. package/form-input/index.mjs +30 -88
  100. package/form-input-email/index.mjs +28 -28
  101. package/form-input-id-card/index.mjs +37 -37
  102. package/form-input-number/index.mjs +219 -59
  103. package/form-input-phone-number/index.mjs +25 -25
  104. package/form-input-tag/index.mjs +160 -38
  105. package/form-input-time/index.mjs +23 -23
  106. package/form-item/index.mjs +15 -144
  107. package/form-item-group/index.mjs +15 -163
  108. package/form-radio-group/index.mjs +39 -38
  109. package/form-select/index.mjs +33 -32
  110. package/form-switch/index.mjs +26 -26
  111. package/form-textarea/index.mjs +26 -26
  112. package/form-view/index.mjs +46 -42
  113. package/fy-array/index.mjs +65 -61
  114. package/fy-cascader/index.mjs +14 -13
  115. package/fy-checkbox/index.mjs +37 -32
  116. package/fy-code/index.mjs +11 -14
  117. package/fy-curd/index.mjs +206 -2795
  118. package/fy-date/index.mjs +16 -57
  119. package/fy-draggable/index.mjs +21 -20
  120. package/fy-dynamic/index.mjs +64 -207
  121. package/fy-empty/index.mjs +12 -29
  122. package/fy-form/index.mjs +178 -732
  123. package/fy-form-design/index.mjs +1738 -1179
  124. package/fy-input/index.mjs +15 -101
  125. package/fy-input-color/index.mjs +17 -66
  126. package/fy-input-icon/index.mjs +21 -116
  127. package/fy-input-map/index.mjs +27 -24
  128. package/fy-input-number/index.mjs +23 -22
  129. package/fy-input-table/index.mjs +22 -18
  130. package/fy-input-tree/index.mjs +32 -28
  131. package/fy-progress/index.mjs +24 -23
  132. package/fy-radio/index.mjs +23 -18
  133. package/fy-rate/index.mjs +16 -49
  134. package/fy-select/index.mjs +29 -122
  135. package/fy-slider/index.mjs +18 -17
  136. package/fy-switch/index.mjs +21 -20
  137. package/fy-tabs/index.mjs +14 -48
  138. package/fy-time/index.mjs +20 -14
  139. package/fy-title/index.mjs +1 -1
  140. package/fy-tree/index.mjs +26 -20
  141. package/fy-u-editor/index.mjs +1 -1
  142. package/fy-upload/index.mjs +76 -74
  143. package/guide-steps/index.mjs +24 -22
  144. package/highlight-j-s/index.mjs +19 -29
  145. package/icon-temp/index.mjs +12 -30
  146. package/iframe-window/index.mjs +19 -18
  147. package/image-cropper/index.mjs +53 -51
  148. package/image-preview/index.mjs +27 -25
  149. package/input-number/index.mjs +63 -172
  150. package/input-number-range/index.mjs +24 -23
  151. package/license/index.mjs +1 -1
  152. package/loading-view/index.mjs +15 -33
  153. package/login/index.mjs +40 -35
  154. package/nav-bar/index.mjs +15 -30
  155. package/notice/index.mjs +19 -18
  156. package/package.json +1 -1
  157. package/page/index.mjs +12 -20
  158. package/page-header/index.mjs +13 -34
  159. package/page-index/index.mjs +34 -33
  160. package/page-index-top/index.mjs +100 -51
  161. package/page-skeleton/index.mjs +18 -35
  162. package/page-skeleton-new/index.mjs +16 -15
  163. package/pageable-table/index.mjs +85 -223
  164. package/pageable-view/index.mjs +34 -33
  165. package/present-view/index.mjs +75 -71
  166. package/record-video/index.mjs +1 -1
  167. package/resize-observer/index.mjs +21 -29
  168. package/search/index.mjs +29 -27
  169. package/search-popover/index.mjs +1 -1
  170. package/sign/index.mjs +1 -1
  171. package/split-pane/index.mjs +40 -45
  172. package/static-pageable-table/index.mjs +20 -18
  173. package/swiper/index.mjs +27 -25
  174. package/table-view/index.mjs +627 -89
  175. package/tag-render/index.mjs +21 -19
  176. package/text-ellipsis/index.mjs +13 -12
  177. package/tinymce-editor/index.mjs +73 -72
  178. package/toolbar/index.mjs +15 -208
  179. package/toolbar-button/index.mjs +32 -57
  180. package/verify/index.mjs +1 -1
  181. package/vue-cron/index.mjs +112 -104
  182. package/watermark/index.mjs +1 -1
  183. package/web-types.json +1 -1
  184. package/x-input-tag/index.mjs +51 -117
  185. package/chunks/FormTemp.7f91629d.mjs +0 -165
  186. package/chunks/confirmable-mixin.817b542f.mjs +0 -116
  187. package/chunks/form-input-mixin.4632ad36.mjs +0 -24
  188. package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
  189. package/chunks/input-number-mixin.41a066be.mjs +0 -60
package/nav-bar/index.mjs CHANGED
@@ -1,21 +1,6 @@
1
- import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var r = function() {
3
- var t = this, e = t.$createElement, n = t._self._c || e;
4
- return n("div", {
5
- staticClass: "nav-bar"
6
- }, [t.showBack ? n("ElButton", {
7
- attrs: {
8
- type: "text",
9
- icon: "el-icon-arrow-left"
10
- },
11
- on: {
12
- click: t.goBack
13
- }
14
- }, [t._v(" 返回 ")]) : t._e(), t.$slots.right ? n("div", {
15
- staticClass: "flex-item flex-row-column vertical-center"
16
- }, [t._t("right")], 2) : t._e()], 1);
17
- }, s = [];
18
- const c = {
1
+ import { s as n, r as e } from "../chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs";
2
+ import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ const a = {
19
4
  name: "NavBar",
20
5
  props: {
21
6
  onGoBack: Function,
@@ -29,24 +14,24 @@ const c = {
29
14
  this.onGoBack ? this.onGoBack() : this.$router.back();
30
15
  }
31
16
  }
32
- }, o = {};
33
- var l = /* @__PURE__ */ a(
34
- c,
35
- r,
36
- s,
17
+ }, t = {};
18
+ var r = /* @__PURE__ */ s(
19
+ a,
20
+ e,
21
+ n,
37
22
  !1,
38
- i,
23
+ c,
39
24
  null,
40
25
  null,
41
26
  null
42
27
  );
43
- function i(t) {
44
- for (let e in o)
45
- this[e] = o[e];
28
+ function c(i) {
29
+ for (let o in t)
30
+ this[o] = t[o];
46
31
  }
47
- const u = /* @__PURE__ */ function() {
48
- return l.exports;
32
+ const _ = /* @__PURE__ */ function() {
33
+ return r.exports;
49
34
  }();
50
35
  export {
51
- u as default
36
+ _ as default
52
37
  };
package/notice/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var o = function() {
3
- var t = this, a = t.$createElement, e = t._self._c || a;
1
+ import l from "element-ui/lib/tag";
2
+ import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ var c = function() {
4
+ var t = this, n = t.$createElement, e = t._self._c || n;
4
5
  return e("div", {
5
6
  staticClass: "avue-notice"
6
7
  }, [t._l(t.data, function(s, r) {
@@ -8,7 +9,7 @@ var o = function() {
8
9
  key: r,
9
10
  staticClass: "avue-notice__item",
10
11
  on: {
11
- click: function(v) {
12
+ click: function(g) {
12
13
  return t.click(s);
13
14
  }
14
15
  }
@@ -27,7 +28,7 @@ var o = function() {
27
28
  staticClass: "avue-notice__name"
28
29
  }, [t._v(t._s(s[t.titleKey]))]), s[t.tagKey] ? e("span", {
29
30
  staticClass: "avue-notice__tag"
30
- }, [e("ElTag", {
31
+ }, [e(l, {
31
32
  attrs: {
32
33
  size: "small",
33
34
  type: t.getType(s[t.statusKey])
@@ -47,14 +48,14 @@ var o = function() {
47
48
  click: t.handleClick
48
49
  }
49
50
  }, [t._v("加载更多")])], 2);
50
- }, c = [];
51
+ }, u = [];
51
52
  const i = {
52
53
  img: "img",
53
54
  title: "title",
54
55
  subtile: "title",
55
56
  tag: "tag",
56
57
  status: "status"
57
- }, u = {
58
+ }, _ = {
58
59
  name: "Notice",
59
60
  props: {
60
61
  finish: {
@@ -120,24 +121,24 @@ const i = {
120
121
  return "success";
121
122
  }
122
123
  }
123
- }, n = {};
124
- var _ = /* @__PURE__ */ l(
125
- u,
126
- o,
124
+ }, a = {};
125
+ var p = /* @__PURE__ */ o(
126
+ _,
127
127
  c,
128
+ u,
128
129
  !1,
129
- p,
130
+ v,
130
131
  null,
131
132
  null,
132
133
  null
133
134
  );
134
- function p(t) {
135
- for (let a in n)
136
- this[a] = n[a];
135
+ function v(t) {
136
+ for (let n in a)
137
+ this[n] = a[n];
137
138
  }
138
- const d = /* @__PURE__ */ function() {
139
- return _.exports;
139
+ const m = /* @__PURE__ */ function() {
140
+ return p.exports;
140
141
  }();
141
142
  export {
142
- d as default
143
+ m as default
143
144
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/component",
3
3
  "description": "Web Components",
4
- "version": "2.70.0",
4
+ "version": "3.0.1",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
package/page/index.mjs CHANGED
@@ -1,13 +1,5 @@
1
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var l = function() {
3
- var e = this, t = e.$createElement, a = e._self._c || t;
4
- return a("div", {
5
- staticClass: "page flex-row flex-item",
6
- class: {
7
- vertical: e.vertical && !e.horizontal
8
- }
9
- }, [e._t("default")], 2);
10
- }, r = [];
1
+ import { s as o, r as t } from "../chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs";
2
+ import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
11
3
  const s = {
12
4
  name: "Page",
13
5
  props: {
@@ -18,23 +10,23 @@ const s = {
18
10
  horizontal: Boolean
19
11
  }
20
12
  }, n = {};
21
- var _ = /* @__PURE__ */ o(
13
+ var a = /* @__PURE__ */ r(
22
14
  s,
23
- l,
24
- r,
15
+ t,
16
+ o,
25
17
  !1,
26
- c,
18
+ l,
27
19
  null,
28
20
  null,
29
21
  null
30
22
  );
31
- function c(e) {
32
- for (let t in n)
33
- this[t] = n[t];
23
+ function l(c) {
24
+ for (let e in n)
25
+ this[e] = n[e];
34
26
  }
35
- const u = /* @__PURE__ */ function() {
36
- return _.exports;
27
+ const _ = /* @__PURE__ */ function() {
28
+ return a.exports;
37
29
  }();
38
30
  export {
39
- u as default
31
+ _ as default
40
32
  };
@@ -1,26 +1,5 @@
1
- import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var r = function() {
3
- var e = this, t = e.$createElement, n = e._self._c || t;
4
- return n("div", {
5
- staticClass: "egd-header flex-row egd-page-header"
6
- }, [e._t("section-title", function() {
7
- return [n("span", {
8
- staticClass: "section-title"
9
- }, [e._t("title", function() {
10
- return [e._v(e._s(e.title))];
11
- }, {
12
- title: e.title
13
- })], 2)];
14
- }, {
15
- title: e.title
16
- }), n("div", {
17
- staticClass: "flex-row flex-item vertical-center"
18
- }, [n("div", {
19
- class: ["flex-row", "flex-item", "vertical-center", {
20
- "align-end": e.alignEnd
21
- }]
22
- }, [e._t("default")], 2)])], 2);
23
- }, i = [];
1
+ import { s as n, r as o } from "../chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs";
2
+ import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
24
3
  const s = {
25
4
  name: "PageHeader",
26
5
  props: {
@@ -33,24 +12,24 @@ const s = {
33
12
  default: !0
34
13
  }
35
14
  }
36
- }, l = {};
37
- var o = /* @__PURE__ */ a(
15
+ }, t = {};
16
+ var a = /* @__PURE__ */ r(
38
17
  s,
39
- r,
40
- i,
18
+ o,
19
+ n,
41
20
  !1,
42
- _,
21
+ l,
43
22
  null,
44
23
  null,
45
24
  null
46
25
  );
47
- function _(e) {
48
- for (let t in l)
49
- this[t] = l[t];
26
+ function l(i) {
27
+ for (let e in t)
28
+ this[e] = t[e];
50
29
  }
51
- const u = /* @__PURE__ */ function() {
52
- return o.exports;
30
+ const c = /* @__PURE__ */ function() {
31
+ return a.exports;
53
32
  }();
54
33
  export {
55
- u as default
34
+ c as default
56
35
  };
@@ -1,22 +1,23 @@
1
- var r = (t, a, e) => new Promise((s, i) => {
2
- var u = (n) => {
1
+ var r = (t, a, e) => new Promise((s, n) => {
2
+ var u = (i) => {
3
3
  try {
4
- d(e.next(n));
5
- } catch (o) {
6
- i(o);
4
+ o(e.next(i));
5
+ } catch (d) {
6
+ n(d);
7
7
  }
8
- }, h = (n) => {
8
+ }, h = (i) => {
9
9
  try {
10
- d(e.throw(n));
11
- } catch (o) {
12
- i(o);
10
+ o(e.throw(i));
11
+ } catch (d) {
12
+ n(d);
13
13
  }
14
- }, d = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(u, h);
15
- d((e = e.apply(t, a)).next());
14
+ }, o = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(u, h);
15
+ o((e = e.apply(t, a)).next());
16
16
  });
17
- import { treeToArray as p, findFirstMatchNode as l } from "@web-utils/core";
17
+ import { treeToArray as p, findFirstMatchNode as c } from "@web-utils/core";
18
+ import f from "element-ui/lib/tree";
18
19
  import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- var f = function() {
20
+ var _ = function() {
20
21
  var t = this, a = t.$createElement, e = t._self._c || a;
21
22
  return e("div", {
22
23
  staticClass: "egd-container"
@@ -33,7 +34,7 @@ var f = function() {
33
34
  }, [e("span", {
34
35
  staticClass: "section-title flex-not-shrink"
35
36
  }, [t._v(t._s(t.sectionTitle))])]), t._t("menu", function() {
36
- return [e("ElTree", {
37
+ return [e(f, {
37
38
  ref: "menuTree",
38
39
  attrs: {
39
40
  data: t.menus,
@@ -50,13 +51,13 @@ var f = function() {
50
51
  scopedSlots: t._u([{
51
52
  key: "default",
52
53
  fn: function(s) {
53
- var i = s.data, u = s.node;
54
+ var n = s.data, u = s.node;
54
55
  return [t._t("tree-node", function() {
55
56
  return [e("span", [e("i", {
56
- class: i.icon
57
- }), t._v(" " + t._s(i.label))])];
57
+ class: n.icon
58
+ }), t._v(" " + t._s(n.label))])];
58
59
  }, {
59
- data: i,
60
+ data: n,
60
61
  node: u
61
62
  })];
62
63
  }
@@ -73,8 +74,8 @@ var f = function() {
73
74
  staticClass: "page-index-content-empty"
74
75
  }, [t._v(" " + t._s(t.tips) + " ")])];
75
76
  })], 2)]);
76
- }, _ = [];
77
- const m = {
77
+ }, m = [];
78
+ const v = {
78
79
  name: "PageIndex",
79
80
  props: {
80
81
  menus: {
@@ -127,7 +128,7 @@ const m = {
127
128
  if (p(this.menus).map((a) => a.path).filter((a) => a).includes(this.$route.path))
128
129
  yield this.setCurrentKey(this.$route.path);
129
130
  else {
130
- const a = l(this.menus, (e) => e.path);
131
+ const a = c(this.menus, (e) => e.path);
131
132
  a && (yield this.$router.push({ path: a.path, query: a.query }), yield this.setCurrentKey(a.path));
132
133
  }
133
134
  });
@@ -145,31 +146,31 @@ const m = {
145
146
  beforeRouteUpdate(t, a, e) {
146
147
  return r(this, null, function* () {
147
148
  if (t.path === this.schema) {
148
- const s = l(this.menus, (i) => i.path);
149
+ const s = c(this.menus, (n) => n.path);
149
150
  s ? (yield e({ path: s.path, query: s.query }), yield this.setCurrentKey(s.path)) : yield e(!1);
150
151
  } else
151
152
  yield e(), yield this.setCurrentKey(this.$route.path);
152
153
  });
153
154
  }
154
155
  }
155
- }, c = {};
156
- var v = /* @__PURE__ */ y(
157
- m,
158
- f,
156
+ }, l = {};
157
+ var C = /* @__PURE__ */ y(
158
+ v,
159
159
  _,
160
+ m,
160
161
  !1,
161
- C,
162
+ g,
162
163
  null,
163
164
  null,
164
165
  null
165
166
  );
166
- function C(t) {
167
- for (let a in c)
168
- this[a] = c[a];
167
+ function g(t) {
168
+ for (let a in l)
169
+ this[a] = l[a];
169
170
  }
170
- const $ = /* @__PURE__ */ function() {
171
- return v.exports;
171
+ const k = /* @__PURE__ */ function() {
172
+ return C.exports;
172
173
  }();
173
174
  export {
174
- $ as default
175
+ k as default
175
176
  };
@@ -1,48 +1,97 @@
1
- var i = (t, a, e) => new Promise((n, r) => {
2
- var p = (s) => {
1
+ var s = (t, e, n) => new Promise((a, r) => {
2
+ var f = (o) => {
3
3
  try {
4
- u(e.next(s));
5
- } catch (o) {
6
- r(o);
4
+ i(n.next(o));
5
+ } catch (u) {
6
+ r(u);
7
7
  }
8
- }, h = (s) => {
8
+ }, h = (o) => {
9
9
  try {
10
- u(e.throw(s));
11
- } catch (o) {
12
- r(o);
10
+ i(n.throw(o));
11
+ } catch (u) {
12
+ r(u);
13
13
  }
14
- }, u = (s) => s.done ? n(s.value) : Promise.resolve(s.value).then(p, h);
15
- u((e = e.apply(t, a)).next());
14
+ }, i = (o) => o.done ? a(o.value) : Promise.resolve(o.value).then(f, h);
15
+ i((n = n.apply(t, e)).next());
16
16
  });
17
- import { treeToArray as m, findFirstMatchNode as c } from "@web-utils/core";
18
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- var d = function() {
20
- var t = this, a = t.$createElement, e = t._self._c || a;
21
- return t.menus && t.menus.length ? e("PageSkeleton", {
17
+ import { treeToArray as d, findFirstMatchNode as l } from "@web-utils/core";
18
+ import { _ as p } from "../chunks/EmptyView.e2430422.mjs";
19
+ import v from "element-ui/lib/tab-pane";
20
+ import y from "element-ui/lib/tabs";
21
+ import { s as g, r as b, _ as $ } from "../chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs";
22
+ import x from "@web-utils/component/page";
23
+ import "@web-utils/component/page/style.css";
24
+ import S from "@web-utils/component/nav-bar";
25
+ import "@web-utils/component/nav-bar/style.css";
26
+ import T from "@web-utils/component/page-header";
27
+ import "@web-utils/component/page-header/style.css";
28
+ import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
29
+ const k = {
30
+ name: "PageSkeleton",
31
+ components: {
32
+ Page: x,
33
+ NavBar: S,
34
+ PageHeader: T
35
+ },
36
+ props: {
37
+ title: String,
38
+ flexColumn: Boolean,
39
+ flexRow: Boolean,
40
+ header: {
41
+ type: Boolean,
42
+ default: !0
43
+ },
44
+ contentClass: String,
45
+ contentScroll: {
46
+ type: Boolean,
47
+ default: !0
48
+ }
49
+ }
50
+ }, c = {};
51
+ var w = /* @__PURE__ */ _(
52
+ k,
53
+ b,
54
+ g,
55
+ !1,
56
+ F,
57
+ null,
58
+ null,
59
+ null
60
+ );
61
+ function F(t) {
62
+ for (let e in c)
63
+ this[e] = c[e];
64
+ }
65
+ const M = /* @__PURE__ */ function() {
66
+ return w.exports;
67
+ }();
68
+ var B = function() {
69
+ var t = this, e = t.$createElement, n = t._self._c || e;
70
+ return t.menus && t.menus.length ? n(M, {
22
71
  scopedSlots: t._u([{
23
72
  key: "header",
24
73
  fn: function() {
25
- return [e("PageHeader", {
74
+ return [n($, {
26
75
  scopedSlots: t._u([{
27
76
  key: "section-title",
28
77
  fn: function() {
29
- return [e("ElTabs", {
78
+ return [n(y, {
30
79
  on: {
31
80
  "tab-click": t.tabClick
32
81
  },
33
82
  model: {
34
83
  value: t.activeTab,
35
- callback: function(n) {
36
- t.activeTab = n;
84
+ callback: function(a) {
85
+ t.activeTab = a;
37
86
  },
38
87
  expression: "activeTab"
39
88
  }
40
- }, t._l(t.menus, function(n) {
41
- return e("ElTabPane", {
42
- key: n.path,
89
+ }, t._l(t.menus, function(a) {
90
+ return n(v, {
91
+ key: a.path,
43
92
  attrs: {
44
- label: n.label,
45
- name: `${n.path}`
93
+ label: a.label,
94
+ name: `${a.path}`
46
95
  }
47
96
  });
48
97
  }), 1)];
@@ -54,18 +103,18 @@ var d = function() {
54
103
  proxy: !0
55
104
  }], null, !1, 2288233724)
56
105
  }, [t._t("default", function() {
57
- return [e("EmptyView", {
106
+ return [n(p, {
58
107
  attrs: {
59
108
  "empty-tips": t.tips
60
109
  }
61
110
  })];
62
- })], 2) : e("EmptyView", {
111
+ })], 2) : n(p, {
63
112
  attrs: {
64
113
  "empty-tips": "暂无权限!"
65
114
  }
66
115
  });
67
- }, y = [];
68
- const _ = {
116
+ }, C = [];
117
+ const P = {
69
118
  name: "PageIndexTop",
70
119
  props: {
71
120
  menus: {
@@ -94,48 +143,48 @@ const _ = {
94
143
  },
95
144
  methods: {
96
145
  activeFirstMenu() {
97
- return i(this, null, function* () {
98
- if (m(this.menus).map((a) => a.path).filter((a) => a).includes(this.$route.path))
146
+ return s(this, null, function* () {
147
+ if (d(this.menus).map((e) => e.path).filter((e) => e).includes(this.$route.path))
99
148
  this.activeTab = this.$route.path;
100
149
  else {
101
- const a = c(this.menus, (e) => e.path);
102
- a && (this.activeTab = a.path, yield this.$router.push({ path: a.path, query: a.query }));
150
+ const e = l(this.menus, (n) => n.path);
151
+ e && (this.activeTab = e.path, yield this.$router.push({ path: e.path, query: e.query }));
103
152
  }
104
153
  });
105
154
  },
106
155
  tabClick(t) {
107
- return i(this, null, function* () {
156
+ return s(this, null, function* () {
108
157
  yield this.$router.push(t.name);
109
158
  });
110
159
  },
111
- beforeRouteUpdate(t, a, e) {
112
- return i(this, null, function* () {
160
+ beforeRouteUpdate(t, e, n) {
161
+ return s(this, null, function* () {
113
162
  if (t.path === this.schema) {
114
- const n = c(this.menus, (r) => r.path);
115
- n ? (yield e({ path: n.path, query: n.query }), this.activeTab = n.path) : yield e(!1);
163
+ const a = l(this.menus, (r) => r.path);
164
+ a ? (yield n({ path: a.path, query: a.query }), this.activeTab = a.path) : yield n(!1);
116
165
  } else
117
- yield e();
166
+ yield n();
118
167
  });
119
168
  }
120
169
  }
121
- }, l = {};
122
- var v = /* @__PURE__ */ f(
123
- _,
124
- d,
125
- y,
170
+ }, m = {};
171
+ var q = /* @__PURE__ */ _(
172
+ P,
173
+ B,
174
+ C,
126
175
  !1,
127
- b,
176
+ I,
128
177
  null,
129
178
  null,
130
179
  null
131
180
  );
132
- function b(t) {
133
- for (let a in l)
134
- this[a] = l[a];
181
+ function I(t) {
182
+ for (let e in m)
183
+ this[e] = m[e];
135
184
  }
136
- const g = /* @__PURE__ */ function() {
137
- return v.exports;
185
+ const O = /* @__PURE__ */ function() {
186
+ return q.exports;
138
187
  }();
139
188
  export {
140
- g as default
189
+ O as default
141
190
  };