@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.
- package/address-input/index.mjs +20 -57
- package/affix/index.mjs +26 -47
- package/aside-menu/index.mjs +18 -43
- package/avatar/index.mjs +27 -49
- package/awesome-button/index.mjs +35 -43
- package/capsule-tab/index.mjs +16 -34
- package/card/index.mjs +21 -76
- package/carousel/index.mjs +14 -49
- package/chat/index.mjs +104 -414
- package/chunk-file-uploader/index.mjs +21 -38
- package/chunks/FormTemp.aa57efb4.mjs +125 -0
- package/code-mirror-editor/index.mjs +69 -79
- package/color-picker/index.mjs +29 -60
- package/comment/index.mjs +17 -48
- package/confirm-button/index.mjs +11 -19
- package/confirmable/index.mjs +12 -20
- package/context-menu/index.mjs +42 -144
- package/count-up/index.mjs +18 -25
- package/custom-scrollbar/index.mjs +13 -22
- package/data-box/index.mjs +15 -66
- package/data-card/index.mjs +16 -65
- package/data-cardtext/index.mjs +16 -52
- package/data-display/index.mjs +18 -62
- package/data-icons/index.mjs +16 -68
- package/data-imgtext/index.mjs +18 -79
- package/data-operatext/index.mjs +18 -75
- package/data-panel/index.mjs +16 -63
- package/data-pay/index.mjs +20 -122
- package/data-price/index.mjs +18 -60
- package/data-progress/index.mjs +16 -67
- package/data-rotate/index.mjs +16 -66
- package/data-table-picker/index.mjs +25 -88
- package/data-tabs/index.mjs +16 -64
- package/dialog-form/index.mjs +48 -94
- package/dynamic-table/index.mjs +43 -127
- package/e-charts/index.mjs +21 -34
- package/easy-popup/index.mjs +35 -61
- package/editable-progress/index.mjs +22 -77
- package/editable-tree/index.mjs +235 -546
- package/egd-collapse/index.mjs +13 -26
- package/egd-collapse-item/index.mjs +27 -87
- package/element-dialog/index.mjs +69 -133
- package/empty-view/index.mjs +13 -33
- package/error-view/index.mjs +14 -34
- package/flex-column/index.mjs +15 -23
- package/flex-item/index.mjs +18 -26
- package/flex-row/index.mjs +23 -31
- package/flex-scroller/index.mjs +16 -27
- package/flow/index.mjs +70 -110
- package/flow-designer/index.mjs +1215 -4804
- package/flow-node/index.mjs +15 -51
- package/flow-viewer/index.mjs +64 -89
- package/form-block/index.mjs +43 -62
- package/form-button/index.mjs +10 -18
- package/form-cascader/index.mjs +49 -100
- package/form-checkbox-group/index.mjs +43 -110
- package/form-date-picker/index.mjs +51 -97
- package/form-holder/index.mjs +25 -42
- package/form-input/index.mjs +40 -90
- package/form-input-email/index.mjs +35 -79
- package/form-input-id-card/index.mjs +40 -87
- package/form-input-number/index.mjs +42 -102
- package/form-input-phone-number/index.mjs +34 -75
- package/form-input-tag/index.mjs +31 -73
- package/form-input-time/index.mjs +42 -87
- package/form-item/index.mjs +70 -89
- package/form-item-config-provider/index.mjs +12 -20
- package/form-item-group/index.mjs +46 -65
- package/form-radio-group/index.mjs +50 -108
- package/form-select/index.mjs +44 -95
- package/form-switch/index.mjs +38 -85
- package/form-textarea/index.mjs +31 -75
- package/form-view/index.mjs +112 -260
- package/fy-array/index.mjs +35 -121
- package/fy-article/index.mjs +12 -43
- package/fy-cascader/index.mjs +26 -67
- package/fy-checkbox/index.mjs +27 -77
- package/fy-code/index.mjs +19 -33
- package/fy-curd/index.mjs +810 -2017
- package/fy-date/index.mjs +18 -59
- package/fy-draggable/index.mjs +81 -140
- package/fy-dynamic/index.mjs +85 -204
- package/fy-empty/index.mjs +14 -35
- package/fy-form/index.mjs +254 -571
- package/fy-form-design/index.mjs +1489 -6084
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +34 -104
- package/fy-input-color/index.mjs +22 -67
- package/fy-input-icon/index.mjs +37 -122
- package/fy-input-map/index.mjs +57 -149
- package/fy-input-number/index.mjs +18 -53
- package/fy-input-table/index.mjs +36 -102
- package/fy-input-tree/index.mjs +51 -138
- package/fy-progress/index.mjs +12 -31
- package/fy-radio/index.mjs +20 -51
- package/fy-rate/index.mjs +18 -51
- package/fy-select/index.mjs +49 -134
- package/fy-slider/index.mjs +19 -52
- package/fy-switch/index.mjs +18 -48
- package/fy-tabs/index.mjs +19 -51
- package/fy-time/index.mjs +22 -62
- package/fy-title/index.mjs +14 -25
- package/fy-tree/index.mjs +74 -216
- package/fy-u-editor/index.mjs +50 -64
- package/fy-upload/index.mjs +167 -338
- package/guide-steps/index.mjs +33 -53
- package/highlight-j-s/index.mjs +13 -27
- package/icon-card/index.mjs +12 -36
- package/icon-temp/index.mjs +12 -34
- package/iframe-window/index.mjs +13 -40
- package/image-cropper/index.mjs +46 -171
- package/image-preview/index.mjs +54 -168
- package/image-viewer/index.mjs +24 -50
- package/index.css +1 -0
- package/index.mjs +3973 -501
- package/input-number/index.mjs +84 -173
- package/input-number-range/index.mjs +20 -70
- package/j-s-x-component/index.mjs +3 -3
- package/keep-view-alive/index.mjs +47 -55
- package/keyboard/index.mjs +100 -113
- package/license/index.mjs +34 -51
- package/loading-view/index.mjs +14 -34
- package/login/index.mjs +33 -161
- package/monaco-editor/index.mjs +13 -21
- package/name-avatar/index.mjs +13 -32
- package/nav-bar/index.mjs +12 -31
- package/not-implement/index.mjs +14 -25
- package/notice/index.mjs +32 -80
- package/package.json +1 -1
- package/page/index.mjs +11 -23
- package/page-header/index.mjs +16 -37
- package/page-index/index.mjs +42 -93
- package/page-index-top/index.mjs +42 -84
- package/page-skeleton/index.mjs +24 -39
- package/page-skeleton-new/index.mjs +21 -68
- package/pageable-table/index.mjs +105 -227
- package/pageable-view/index.mjs +30 -83
- package/photo-swipe/index.mjs +62 -87
- package/present-view/index.mjs +114 -267
- package/queue/index.mjs +14 -29
- package/record-video/index.mjs +29 -66
- package/resize-observer/index.mjs +18 -30
- package/search/index.mjs +47 -81
- package/search-popover/index.mjs +57 -329
- package/sign/index.mjs +43 -60
- package/sign-panel/index.mjs +40 -151
- package/skeleton/index.mjs +18 -44
- package/split-pane/index.mjs +45 -129
- package/stateful/index.mjs +18 -26
- package/static-pageable-table/index.mjs +18 -44
- package/swiper/index.mjs +53 -94
- package/tab/index.mjs +13 -39
- package/tab-item/index.mjs +23 -37
- package/table-column/index.mjs +27 -35
- package/table-view/index.mjs +89 -209
- package/tag-render/index.mjs +34 -69
- package/text-ellipsis/index.mjs +22 -47
- package/tinymce-editor/index.mjs +174 -285
- package/toolbar/index.mjs +21 -42
- package/toolbar-button/index.mjs +25 -54
- package/verify/index.mjs +16 -29
- package/vue-cron/index.mjs +272 -1089
- package/vue-qr-code/index.mjs +19 -27
- package/vue-quill-editor/index.mjs +15 -27
- package/vue-tags-input/index.mjs +104 -224
- package/vue-tree-select/index.mjs +595 -742
- package/vue-video-player/index.mjs +42 -57
- package/watermark/index.mjs +27 -35
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +50 -112
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- /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
|
|
2
|
-
|
|
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
|
-
}
|
|
21
|
-
var
|
|
22
|
-
|
|
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
|
-
|
|
20
|
+
null,
|
|
27
21
|
null,
|
|
28
22
|
null,
|
|
29
23
|
null
|
|
30
24
|
);
|
|
31
|
-
|
|
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
|
-
|
|
27
|
+
c as default
|
|
40
28
|
};
|
package/page-header/index.mjs
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
|
-
import { n
|
|
2
|
-
|
|
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
|
-
}
|
|
37
|
-
var
|
|
38
|
-
|
|
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
|
-
|
|
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
|
-
|
|
34
|
+
c as default
|
|
56
35
|
};
|
package/page-index/index.mjs
CHANGED
|
@@ -1,80 +1,22 @@
|
|
|
1
|
-
var r = (
|
|
2
|
-
var
|
|
1
|
+
var r = (a, t, e) => new Promise((s, n) => {
|
|
2
|
+
var h = (i) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
|
|
4
|
+
u(e.next(i));
|
|
5
|
+
} catch (d) {
|
|
6
|
+
n(d);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, o = (i) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
|
|
10
|
+
u(e.throw(i));
|
|
11
|
+
} catch (d) {
|
|
12
|
+
n(d);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
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
|
|
19
|
-
|
|
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((
|
|
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
|
|
131
|
-
|
|
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(
|
|
77
|
+
onNodeClick(a) {
|
|
136
78
|
return r(this, null, function* () {
|
|
137
|
-
|
|
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(
|
|
82
|
+
setCurrentKey(a) {
|
|
141
83
|
return r(this, null, function* () {
|
|
142
|
-
yield this.$nextTick(), this.$refs.menuTree && this.$refs.menuTree.setCurrentKey(
|
|
84
|
+
yield this.$nextTick(), this.$refs.menuTree && this.$refs.menuTree.setCurrentKey(a);
|
|
143
85
|
});
|
|
144
86
|
},
|
|
145
|
-
beforeRouteUpdate(
|
|
87
|
+
beforeRouteUpdate(a, t, e) {
|
|
146
88
|
return r(this, null, function* () {
|
|
147
|
-
if (
|
|
148
|
-
const s = l(this.menus, (
|
|
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
|
-
}
|
|
156
|
-
var
|
|
157
|
-
|
|
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
|
-
|
|
116
|
+
null,
|
|
162
117
|
null,
|
|
163
118
|
null,
|
|
164
119
|
null
|
|
165
120
|
);
|
|
166
|
-
|
|
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
|
-
|
|
123
|
+
w as default
|
|
175
124
|
};
|
package/page-index-top/index.mjs
CHANGED
|
@@ -1,71 +1,22 @@
|
|
|
1
|
-
var i = (
|
|
2
|
-
var p = (
|
|
1
|
+
var i = (s, t, e) => new Promise((a, r) => {
|
|
2
|
+
var p = (n) => {
|
|
3
3
|
try {
|
|
4
|
-
u(e.next(
|
|
5
|
-
} catch (
|
|
6
|
-
r(
|
|
4
|
+
u(e.next(n));
|
|
5
|
+
} catch (l) {
|
|
6
|
+
r(l);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, c = (n) => {
|
|
9
9
|
try {
|
|
10
|
-
u(e.throw(
|
|
11
|
-
} catch (
|
|
12
|
-
r(
|
|
10
|
+
u(e.throw(n));
|
|
11
|
+
} catch (l) {
|
|
12
|
+
r(l);
|
|
13
13
|
}
|
|
14
|
-
}, u = (
|
|
15
|
-
u((e = e.apply(
|
|
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
|
|
18
|
-
import { n as
|
|
19
|
-
|
|
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 (
|
|
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
|
|
102
|
-
|
|
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(
|
|
57
|
+
tabClick(s) {
|
|
107
58
|
return i(this, null, function* () {
|
|
108
|
-
yield this.$router.push(
|
|
59
|
+
yield this.$router.push(s.name);
|
|
109
60
|
});
|
|
110
61
|
},
|
|
111
|
-
beforeRouteUpdate(
|
|
62
|
+
beforeRouteUpdate(s, t, e) {
|
|
112
63
|
return i(this, null, function* () {
|
|
113
|
-
if (
|
|
114
|
-
const
|
|
115
|
-
|
|
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
|
-
}
|
|
122
|
-
var
|
|
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
|
-
|
|
91
|
+
null,
|
|
128
92
|
null,
|
|
129
93
|
null,
|
|
130
94
|
null
|
|
131
95
|
);
|
|
132
|
-
|
|
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
|
-
|
|
98
|
+
k as default
|
|
141
99
|
};
|
package/page-skeleton/index.mjs
CHANGED
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "@web-utils/component/page";
|
|
2
2
|
import "@web-utils/component/page/style.css";
|
|
3
|
-
import
|
|
3
|
+
import o from "@web-utils/component/nav-bar";
|
|
4
4
|
import "@web-utils/component/nav-bar/style.css";
|
|
5
|
-
import
|
|
5
|
+
import l from "@web-utils/component/page-header";
|
|
6
6
|
import "@web-utils/component/page-header/style.css";
|
|
7
|
-
import { n as
|
|
8
|
-
|
|
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:
|
|
30
|
-
NavBar:
|
|
31
|
-
PageHeader:
|
|
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
|
-
}
|
|
48
|
-
var
|
|
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
|
-
|
|
44
|
+
null,
|
|
54
45
|
null,
|
|
55
46
|
null,
|
|
56
47
|
null
|
|
57
48
|
);
|
|
58
|
-
|
|
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
|
-
|
|
51
|
+
x as default
|
|
67
52
|
};
|
|
@@ -1,58 +1,5 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
|
|
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
|
-
}
|
|
79
|
-
var
|
|
80
|
-
|
|
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
|
-
|
|
43
|
+
null,
|
|
85
44
|
null,
|
|
86
45
|
null,
|
|
87
46
|
null
|
|
88
47
|
);
|
|
89
|
-
|
|
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
|
-
|
|
50
|
+
c as default
|
|
98
51
|
};
|