@web-utils/component 3.0.6 → 3.1.0

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 (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
package/page/index.mjs CHANGED
@@ -1,14 +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 = [];
11
- const s = {
1
+ import { n as t } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const n = {
12
3
  name: "Page",
13
4
  props: {
14
5
  vertical: {
@@ -17,24 +8,21 @@ const s = {
17
8
  },
18
9
  horizontal: Boolean
19
10
  }
20
- }, n = {};
21
- var _ = /* @__PURE__ */ o(
22
- s,
11
+ };
12
+ var l = function() {
13
+ var e = this, a = e._self._c;
14
+ return a("div", { staticClass: "page flex-row flex-item", class: { vertical: e.vertical && !e.horizontal } }, [e._t("default")], 2);
15
+ }, r = [], o = /* @__PURE__ */ t(
16
+ n,
23
17
  l,
24
18
  r,
25
19
  !1,
26
- c,
20
+ null,
27
21
  null,
28
22
  null,
29
23
  null
30
24
  );
31
- function c(e) {
32
- for (let t in n)
33
- this[t] = n[t];
34
- }
35
- const u = /* @__PURE__ */ function() {
36
- return _.exports;
37
- }();
25
+ const c = o.exports;
38
26
  export {
39
- u as default
27
+ c as default
40
28
  };
@@ -1,27 +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 = [];
24
- const s = {
1
+ import { n } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const l = {
25
3
  name: "PageHeader",
26
4
  props: {
27
5
  title: {
@@ -33,24 +11,25 @@ const s = {
33
11
  default: !0
34
12
  }
35
13
  }
36
- }, l = {};
37
- var o = /* @__PURE__ */ a(
38
- s,
14
+ };
15
+ var a = function() {
16
+ var e = this, t = e._self._c;
17
+ return t("div", { staticClass: "egd-header flex-row egd-page-header" }, [e._t("section-title", function() {
18
+ return [t("span", { staticClass: "section-title" }, [e._t("title", function() {
19
+ return [e._v(e._s(e.title))];
20
+ }, { title: e.title })], 2)];
21
+ }, { title: e.title }), t("div", { staticClass: "flex-row flex-item vertical-center" }, [t("div", { class: ["flex-row", "flex-item", "vertical-center", { "align-end": e.alignEnd }] }, [e._t("default")], 2)])], 2);
22
+ }, r = [], i = /* @__PURE__ */ n(
23
+ l,
24
+ a,
39
25
  r,
40
- i,
41
26
  !1,
42
- _,
27
+ null,
43
28
  null,
44
29
  null,
45
30
  null
46
31
  );
47
- function _(e) {
48
- for (let t in l)
49
- this[t] = l[t];
50
- }
51
- const u = /* @__PURE__ */ function() {
52
- return o.exports;
53
- }();
32
+ const c = i.exports;
54
33
  export {
55
- u as default
34
+ c as default
56
35
  };
@@ -1,80 +1,22 @@
1
- var r = (t, a, e) => new Promise((s, i) => {
2
- var u = (n) => {
1
+ var r = (a, t, e) => new Promise((s, n) => {
2
+ var h = (i) => {
3
3
  try {
4
- d(e.next(n));
5
- } catch (o) {
6
- i(o);
4
+ u(e.next(i));
5
+ } catch (d) {
6
+ n(d);
7
7
  }
8
- }, h = (n) => {
8
+ }, o = (i) => {
9
9
  try {
10
- d(e.throw(n));
11
- } catch (o) {
12
- i(o);
10
+ u(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
+ }, u = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(h, o);
15
+ u((e = e.apply(a, t)).next());
16
16
  });
17
17
  import { treeToArray as p, findFirstMatchNode as l } from "@web-utils/core";
18
- import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- var f = function() {
20
- var t = this, a = t.$createElement, e = t._self._c || a;
21
- return e("div", {
22
- staticClass: "egd-container"
23
- }, [t.aside ? e("div", {
24
- staticClass: "egd-aside",
25
- style: {
26
- width: t.asideWidth
27
- }
28
- }, [t._t("aside", function() {
29
- return [e("div", {
30
- staticClass: "egd-main"
31
- }, [t._t("nav-top"), e("div", {
32
- staticClass: "egd-header"
33
- }, [e("span", {
34
- staticClass: "section-title flex-not-shrink"
35
- }, [t._v(t._s(t.sectionTitle))])]), t._t("menu", function() {
36
- return [e("ElTree", {
37
- ref: "menuTree",
38
- attrs: {
39
- data: t.menus,
40
- "default-expand-all": "",
41
- props: t.defaultProps,
42
- "highlight-current": "",
43
- "empty-text": "请配置菜单!",
44
- "default-expanded-keys": t.currentTreeKey,
45
- "node-key": "key"
46
- },
47
- on: {
48
- "node-click": t.onNodeClick
49
- },
50
- scopedSlots: t._u([{
51
- key: "default",
52
- fn: function(s) {
53
- var i = s.data, u = s.node;
54
- return [t._t("tree-node", function() {
55
- return [e("span", [e("i", {
56
- class: i.icon
57
- }), t._v(" " + t._s(i.label))])];
58
- }, {
59
- data: i,
60
- node: u
61
- })];
62
- }
63
- }], null, !0)
64
- })];
65
- })], 2)];
66
- })], 2) : t._e(), e("div", {
67
- staticClass: "page-index-content",
68
- style: {
69
- width: t.aside ? `calc(100% - ${t.asideWidth})` : "100%"
70
- }
71
- }, [t._t("default", function() {
72
- return [e("div", {
73
- staticClass: "page-index-content-empty"
74
- }, [t._v(" " + t._s(t.tips) + " ")])];
75
- })], 2)]);
76
- }, _ = [];
77
- const m = {
18
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
19
+ const f = {
78
20
  name: "PageIndex",
79
21
  props: {
80
22
  menus: {
@@ -124,52 +66,59 @@ const m = {
124
66
  methods: {
125
67
  activeFirstMenu() {
126
68
  return r(this, null, function* () {
127
- if (p(this.menus).map((a) => a.path).filter((a) => a).includes(this.$route.path))
69
+ if (p(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
128
70
  yield this.setCurrentKey(this.$route.path);
129
71
  else {
130
- const a = l(this.menus, (e) => e.path);
131
- a && (yield this.$router.push({ path: a.path, query: a.query }), yield this.setCurrentKey(a.path));
72
+ const t = l(this.menus, (e) => e.path);
73
+ t && (yield this.$router.push({ path: t.path, query: t.query }), yield this.setCurrentKey(t.path));
132
74
  }
133
75
  });
134
76
  },
135
- onNodeClick(t) {
77
+ onNodeClick(a) {
136
78
  return r(this, null, function* () {
137
- t.path && t.path.indexOf("/") > -1 && (yield this.$router.push({ path: t.path, query: t.query })), yield this.setCurrentKey(t.key);
79
+ a.path && a.path.indexOf("/") > -1 && (yield this.$router.push({ path: a.path, query: a.query })), yield this.setCurrentKey(a.key);
138
80
  });
139
81
  },
140
- setCurrentKey(t) {
82
+ setCurrentKey(a) {
141
83
  return r(this, null, function* () {
142
- yield this.$nextTick(), this.$refs.menuTree && this.$refs.menuTree.setCurrentKey(t);
84
+ yield this.$nextTick(), this.$refs.menuTree && this.$refs.menuTree.setCurrentKey(a);
143
85
  });
144
86
  },
145
- beforeRouteUpdate(t, a, e) {
87
+ beforeRouteUpdate(a, t, e) {
146
88
  return r(this, null, function* () {
147
- if (t.path === this.schema) {
148
- const s = l(this.menus, (i) => i.path);
89
+ if (a.path === this.schema) {
90
+ const s = l(this.menus, (n) => n.path);
149
91
  s ? (yield e({ path: s.path, query: s.query }), yield this.setCurrentKey(s.path)) : yield e(!1);
150
92
  } else
151
93
  yield e(), yield this.setCurrentKey(this.$route.path);
152
94
  });
153
95
  }
154
96
  }
155
- }, c = {};
156
- var v = /* @__PURE__ */ y(
157
- m,
97
+ };
98
+ var y = function() {
99
+ var t = this, e = t._self._c;
100
+ return e("div", { staticClass: "egd-container" }, [t.aside ? e("div", { staticClass: "egd-aside", style: { width: t.asideWidth } }, [t._t("aside", function() {
101
+ return [e("div", { staticClass: "egd-main" }, [t._t("nav-top"), e("div", { staticClass: "egd-header" }, [e("span", { staticClass: "section-title flex-not-shrink" }, [t._v(t._s(t.sectionTitle))])]), t._t("menu", function() {
102
+ return [e("ElTree", { ref: "menuTree", attrs: { data: t.menus, "default-expand-all": "", props: t.defaultProps, "highlight-current": "", "empty-text": "请配置菜单!", "default-expanded-keys": t.currentTreeKey, "node-key": "key" }, on: { "node-click": t.onNodeClick }, scopedSlots: t._u([{ key: "default", fn: function({ data: s, node: n }) {
103
+ return [t._t("tree-node", function() {
104
+ return [e("span", [e("i", { class: s.icon }), t._v(" " + t._s(s.label))])];
105
+ }, { data: s, node: n })];
106
+ } }], null, !0) })];
107
+ })], 2)];
108
+ })], 2) : t._e(), e("div", { staticClass: "page-index-content", style: { width: t.aside ? `calc(100% - ${t.asideWidth})` : "100%" } }, [t._t("default", function() {
109
+ return [e("div", { staticClass: "page-index-content-empty" }, [t._v(" " + t._s(t.tips) + " ")])];
110
+ })], 2)]);
111
+ }, _ = [], m = /* @__PURE__ */ c(
158
112
  f,
113
+ y,
159
114
  _,
160
115
  !1,
161
- C,
116
+ null,
162
117
  null,
163
118
  null,
164
119
  null
165
120
  );
166
- function C(t) {
167
- for (let a in c)
168
- this[a] = c[a];
169
- }
170
- const $ = /* @__PURE__ */ function() {
171
- return v.exports;
172
- }();
121
+ const w = m.exports;
173
122
  export {
174
- $ as default
123
+ w as default
175
124
  };
@@ -1,71 +1,22 @@
1
- var i = (t, a, e) => new Promise((n, r) => {
2
- var p = (s) => {
1
+ var i = (s, t, e) => new Promise((a, r) => {
2
+ var p = (n) => {
3
3
  try {
4
- u(e.next(s));
5
- } catch (o) {
6
- r(o);
4
+ u(e.next(n));
5
+ } catch (l) {
6
+ r(l);
7
7
  }
8
- }, h = (s) => {
8
+ }, c = (n) => {
9
9
  try {
10
- u(e.throw(s));
11
- } catch (o) {
12
- r(o);
10
+ u(e.throw(n));
11
+ } catch (l) {
12
+ r(l);
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
+ }, u = (n) => n.done ? a(n.value) : Promise.resolve(n.value).then(p, c);
15
+ u((e = e.apply(s, t)).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", {
22
- scopedSlots: t._u([{
23
- key: "header",
24
- fn: function() {
25
- return [e("PageHeader", {
26
- scopedSlots: t._u([{
27
- key: "section-title",
28
- fn: function() {
29
- return [e("ElTabs", {
30
- on: {
31
- "tab-click": t.tabClick
32
- },
33
- model: {
34
- value: t.activeTab,
35
- callback: function(n) {
36
- t.activeTab = n;
37
- },
38
- expression: "activeTab"
39
- }
40
- }, t._l(t.menus, function(n) {
41
- return e("ElTabPane", {
42
- key: n.path,
43
- attrs: {
44
- label: n.label,
45
- name: `${n.path}`
46
- }
47
- });
48
- }), 1)];
49
- },
50
- proxy: !0
51
- }], null, !1, 412017982)
52
- })];
53
- },
54
- proxy: !0
55
- }], null, !1, 2288233724)
56
- }, [t._t("default", function() {
57
- return [e("EmptyView", {
58
- attrs: {
59
- "empty-tips": t.tips
60
- }
61
- })];
62
- })], 2) : e("EmptyView", {
63
- attrs: {
64
- "empty-tips": "暂无权限!"
65
- }
66
- });
67
- }, y = [];
68
- const _ = {
17
+ import { treeToArray as h, findFirstMatchNode as o } from "@web-utils/core";
18
+ import { n as m } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
19
+ const f = {
69
20
  name: "PageIndexTop",
70
21
  props: {
71
22
  menus: {
@@ -95,47 +46,54 @@ const _ = {
95
46
  methods: {
96
47
  activeFirstMenu() {
97
48
  return i(this, null, function* () {
98
- if (m(this.menus).map((a) => a.path).filter((a) => a).includes(this.$route.path))
49
+ if (h(this.menus).map((t) => t.path).filter((t) => t).includes(this.$route.path))
99
50
  this.activeTab = this.$route.path;
100
51
  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 }));
52
+ const t = o(this.menus, (e) => e.path);
53
+ t && (this.activeTab = t.path, yield this.$router.push({ path: t.path, query: t.query }));
103
54
  }
104
55
  });
105
56
  },
106
- tabClick(t) {
57
+ tabClick(s) {
107
58
  return i(this, null, function* () {
108
- yield this.$router.push(t.name);
59
+ yield this.$router.push(s.name);
109
60
  });
110
61
  },
111
- beforeRouteUpdate(t, a, e) {
62
+ beforeRouteUpdate(s, t, e) {
112
63
  return i(this, null, function* () {
113
- 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);
64
+ if (s.path === this.schema) {
65
+ const a = o(this.menus, (r) => r.path);
66
+ a ? (yield e({ path: a.path, query: a.query }), this.activeTab = a.path) : yield e(!1);
116
67
  } else
117
68
  yield e();
118
69
  });
119
70
  }
120
71
  }
121
- }, l = {};
122
- var v = /* @__PURE__ */ f(
123
- _,
72
+ };
73
+ var d = function() {
74
+ var t = this, e = t._self._c;
75
+ return t.menus && t.menus.length ? e("PageSkeleton", { scopedSlots: t._u([{ key: "header", fn: function() {
76
+ return [e("PageHeader", { scopedSlots: t._u([{ key: "section-title", fn: function() {
77
+ return [e("ElTabs", { on: { "tab-click": t.tabClick }, model: { value: t.activeTab, callback: function(a) {
78
+ t.activeTab = a;
79
+ }, expression: "activeTab" } }, t._l(t.menus, function(a) {
80
+ return e("ElTabPane", { key: a.path, attrs: { label: a.label, name: `${a.path}` } });
81
+ }), 1)];
82
+ }, proxy: !0 }], null, !1, 412017982) })];
83
+ }, proxy: !0 }], null, !1, 2288233724) }, [t._t("default", function() {
84
+ return [e("EmptyView", { attrs: { "empty-tips": t.tips } })];
85
+ })], 2) : e("EmptyView", { attrs: { "empty-tips": "暂无权限!" } });
86
+ }, y = [], _ = /* @__PURE__ */ m(
87
+ f,
124
88
  d,
125
89
  y,
126
90
  !1,
127
- b,
91
+ null,
128
92
  null,
129
93
  null,
130
94
  null
131
95
  );
132
- function b(t) {
133
- for (let a in l)
134
- this[a] = l[a];
135
- }
136
- const g = /* @__PURE__ */ function() {
137
- return v.exports;
138
- }();
96
+ const k = _.exports;
139
97
  export {
140
- g as default
98
+ k as default
141
99
  };
@@ -1,34 +1,16 @@
1
- import l from "@web-utils/component/page";
1
+ import n from "@web-utils/component/page";
2
2
  import "@web-utils/component/page/style.css";
3
- import r from "@web-utils/component/nav-bar";
3
+ import o from "@web-utils/component/nav-bar";
4
4
  import "@web-utils/component/nav-bar/style.css";
5
- import a from "@web-utils/component/page-header";
5
+ import l from "@web-utils/component/page-header";
6
6
  import "@web-utils/component/page-header/style.css";
7
- import { n as s } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
8
- var c = function() {
9
- var e = this, t = e.$createElement, n = e._self._c || t;
10
- return n("Page", {
11
- staticClass: "page-skeleton"
12
- }, [e.header ? e._t("header", function() {
13
- return [e.title ? n("PageHeader", {
14
- attrs: {
15
- title: e.title
16
- }
17
- }) : n("NavBar")];
18
- }) : e._e(), n("div", {
19
- class: ["page-content", {
20
- "flex-column": e.flexColumn,
21
- "flex-row": e.flexRow,
22
- "content-scroll": e.contentScroll
23
- }, e.contentClass]
24
- }, [e._t("default")], 2)], 2);
25
- }, i = [];
26
- const _ = {
7
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
8
+ const r = {
27
9
  name: "PageSkeleton",
28
10
  components: {
29
- Page: l,
30
- NavBar: r,
31
- PageHeader: a
11
+ Page: n,
12
+ NavBar: o,
13
+ PageHeader: l
32
14
  },
33
15
  props: {
34
16
  title: String,
@@ -44,24 +26,27 @@ const _ = {
44
26
  default: !0
45
27
  }
46
28
  }
47
- }, o = {};
48
- var u = /* @__PURE__ */ s(
49
- _,
29
+ };
30
+ var s = function() {
31
+ var e = this, t = e._self._c;
32
+ return t("Page", { staticClass: "page-skeleton" }, [e.header ? e._t("header", function() {
33
+ return [e.title ? t("PageHeader", { attrs: { title: e.title } }) : t("NavBar")];
34
+ }) : e._e(), t("div", { class: [
35
+ "page-content",
36
+ { "flex-column": e.flexColumn, "flex-row": e.flexRow, "content-scroll": e.contentScroll },
37
+ e.contentClass
38
+ ] }, [e._t("default")], 2)], 2);
39
+ }, c = [], _ = /* @__PURE__ */ a(
40
+ r,
41
+ s,
50
42
  c,
51
- i,
52
43
  !1,
53
- f,
44
+ null,
54
45
  null,
55
46
  null,
56
47
  null
57
48
  );
58
- function f(e) {
59
- for (let t in o)
60
- this[t] = o[t];
61
- }
62
- const P = /* @__PURE__ */ function() {
63
- return u.exports;
64
- }();
49
+ const x = _.exports;
65
50
  export {
66
- P as default
51
+ x as default
67
52
  };
@@ -1,58 +1,5 @@
1
- import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
3
- var e = this, l = e.$createElement, t = e._self._c || l;
4
- return t("Page", {
5
- staticClass: "page-skeleton-new",
6
- attrs: {
7
- horizontal: ""
8
- }
9
- }, [t("div", {
10
- staticClass: "page-skeleton-new-left",
11
- style: {
12
- width: e.sidebarWidth
13
- }
14
- }, [e.header ? t("div", {
15
- staticClass: "page-skeleton-new-header",
16
- staticStyle: {
17
- "margin-right": "0"
18
- }
19
- }, [t("span", {
20
- staticClass: "section-title"
21
- }, [e._v(e._s(e.title))])]) : e._e(), t("div", {
22
- staticClass: "flex-item",
23
- staticStyle: {
24
- "border-right": "1px solid #eee"
25
- }
26
- }, [e._t("sidebar-content", function() {
27
- return [e._v(" 侧栏内容 ")];
28
- })], 2)]), t("div", {
29
- staticClass: "page-skeleton-new-right",
30
- style: {
31
- width: `calc(100% - ${e.sidebarWidth})`
32
- }
33
- }, [e.header ? t("div", {
34
- staticClass: "page-skeleton-new-header",
35
- staticStyle: {
36
- "margin-left": "0",
37
- "padding-left": "10px"
38
- }
39
- }, [t("div", {
40
- staticClass: "flex-item flex-row vertical-center"
41
- }, [e._t("header-left")], 2), t("div", {
42
- staticClass: "flex-item flex-row vertical-center"
43
- }, [t("div", {
44
- class: ["flex-row", "flex-item", "vertical-center", "align-end"]
45
- }, [e._t("header-right")], 2)])]) : e._e(), t("div", {
46
- class: ["page-skeleton-new-page-content", "flex-item", {
47
- "flex-column": e.flexColumn,
48
- "flex-row": e.flexRow,
49
- "content-scroll": e.contentScroll
50
- }, e.contentClass]
51
- }, [e._t("default", function() {
52
- return [e._v("内容")];
53
- })], 2)])]);
54
- }, i = [];
55
- const r = {
1
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
+ const a = {
56
3
  name: "PageSkeletonNew",
57
4
  props: {
58
5
  title: {
@@ -75,24 +22,30 @@ const r = {
75
22
  default: "240px"
76
23
  }
77
24
  }
78
- }, n = {};
79
- var o = /* @__PURE__ */ a(
80
- r,
25
+ };
26
+ var n = function() {
27
+ var e = this, t = e._self._c;
28
+ return t("Page", { staticClass: "page-skeleton-new", attrs: { horizontal: "" } }, [t("div", { staticClass: "page-skeleton-new-left", style: { width: e.sidebarWidth } }, [e.header ? t("div", { staticClass: "page-skeleton-new-header", staticStyle: { "margin-right": "0" } }, [t("span", { staticClass: "section-title" }, [e._v(e._s(e.title))])]) : e._e(), t("div", { staticClass: "flex-item", staticStyle: { "border-right": "1px solid #eee" } }, [e._t("sidebar-content", function() {
29
+ return [e._v(" 侧栏内容 ")];
30
+ })], 2)]), t("div", { staticClass: "page-skeleton-new-right", style: { width: `calc(100% - ${e.sidebarWidth})` } }, [e.header ? t("div", { staticClass: "page-skeleton-new-header", staticStyle: { "margin-left": "0", "padding-left": "10px" } }, [t("div", { staticClass: "flex-item flex-row vertical-center" }, [e._t("header-left")], 2), t("div", { staticClass: "flex-item flex-row vertical-center" }, [t("div", { class: ["flex-row", "flex-item", "vertical-center", "align-end"] }, [e._t("header-right")], 2)])]) : e._e(), t("div", { class: [
31
+ "page-skeleton-new-page-content",
32
+ "flex-item",
33
+ { "flex-column": e.flexColumn, "flex-row": e.flexRow, "content-scroll": e.contentScroll },
34
+ e.contentClass
35
+ ] }, [e._t("default", function() {
36
+ return [e._v("内容")];
37
+ })], 2)])]);
38
+ }, s = [], i = /* @__PURE__ */ l(
39
+ a,
40
+ n,
81
41
  s,
82
- i,
83
42
  !1,
84
- c,
43
+ null,
85
44
  null,
86
45
  null,
87
46
  null
88
47
  );
89
- function c(e) {
90
- for (let l in n)
91
- this[l] = n[l];
92
- }
93
- const _ = /* @__PURE__ */ function() {
94
- return o.exports;
95
- }();
48
+ const c = i.exports;
96
49
  export {
97
- _ as default
50
+ c as default
98
51
  };