@witlink/usercenter 1.2.10 → 1.2.12
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/README.md +4 -0
- package/dist/PageView.9b7c6dd0.mjs +623 -0
- package/dist/{RegionSelect.22f6ce2b.mjs → RegionSelect.a5ce64f6.mjs} +1 -1
- package/dist/{UpOutlined.51d103eb.mjs → UpOutlined.80559baf.mjs} +1 -1
- package/dist/assets/PageView.b838edc4.css +1 -0
- package/dist/{index.82148e83.mjs → index.0baea51e.mjs} +2 -2
- package/dist/{index.16b9f426.mjs → index.0d3c655d.mjs} +1 -1
- package/dist/{index.fc2cb91e.mjs → index.2eb4a77d.mjs} +1 -1
- package/dist/{index.586d21b6.mjs → index.47342403.mjs} +1 -1
- package/dist/{index.037b8a32.mjs → index.553362e6.mjs} +81 -258
- package/dist/{index.78bd26b6.mjs → index.590b463b.mjs} +2 -2
- package/dist/{index.b2c0b675.mjs → index.73a801aa.mjs} +1 -1
- package/dist/{index.a852f389.mjs → index.911c1772.mjs} +1 -1
- package/dist/{index.9968ea14.mjs → index.b6fac584.mjs} +281 -280
- package/dist/{index.c0c28850.mjs → index.dda6c6b1.mjs} +3 -3
- package/dist/{index.86c42458.mjs → index.f542fa73.mjs} +2 -2
- package/dist/usercenter.es.js +6 -5
- package/dist/usercenter.umd.js +31 -28
- package/package.json +1 -1
- package/version.md +3 -1
package/README.md
CHANGED
@@ -22,6 +22,7 @@ import {
|
|
22
22
|
SysOrgan, // 组织架构管理
|
23
23
|
SysRole, // 角色管理
|
24
24
|
SysUser, // 用户管理
|
25
|
+
SysUserInfo, // 个人中心
|
25
26
|
} from '@witlink/usercenter'
|
26
27
|
```
|
27
28
|
|
@@ -36,6 +37,7 @@ const app = createApp(App)
|
|
36
37
|
// i18n 为vue-i18n实例 pinia 为pinia实例
|
37
38
|
// export interface UserCenterOptions {
|
38
39
|
// lang?: LangType
|
40
|
+
// systemId?: 'usercenter' | 'cis' | 'ami3.0'
|
39
41
|
// i18n: any
|
40
42
|
// logoutToUrl: string
|
41
43
|
// pinia?: any
|
@@ -44,6 +46,7 @@ const app = createApp(App)
|
|
44
46
|
|
45
47
|
app.use(UserCenter, {
|
46
48
|
i18n,
|
49
|
+
systemId: 'usercenter' | 'cis' | 'ami3.0', // 系统名称 用于用户中心页面的多语言
|
47
50
|
logoutToUrl: string, // 在当前页面token失效后跳转的地址
|
48
51
|
pinia, // 设置用户中心store 如果在主系统已加载piniaPluginPersistedstate 持久化插件则不需要设置
|
49
52
|
lang: 'zh_CN',
|
@@ -98,6 +101,7 @@ import {
|
|
98
101
|
SysOrgan, // 组织架构管理
|
99
102
|
SysRole, // 角色管理
|
100
103
|
SysUser, // 用户管理
|
104
|
+
SysUserInfo, // 个人中心
|
101
105
|
} from '@witlink/usercenter'
|
102
106
|
|
103
107
|
// 创建路由实例
|
@@ -0,0 +1,623 @@
|
|
1
|
+
import { defineComponent as M, createVNode as u, cloneVNode as Q, ref as A, watch as $, onMounted as Y, resolveComponent as q, openBlock as s, createBlock as x, withCtx as _, createElementBlock as m, Fragment as j, renderList as N, createTextVNode as K, toDisplayString as D, createElementVNode as g, unref as W, createCommentVNode as f, renderSlot as R, normalizeStyle as ee, normalizeClass as te } from "vue";
|
2
|
+
import { useRoute as U } from "vue-router";
|
3
|
+
import { u as F, bf as T, a as S, P as Z, aX as ae, bg as re, t as ne, D as oe, g as le, m as se, ab as G, ai as ce, bh as ie, bi as J, bj as ue, M as de, _ as E, v as me, a0 as be, bc as pe, bd as he, bk as ve } from "./index.553362e6.mjs";
|
4
|
+
import './assets/PageView.b838edc4.css';var ge = globalThis && globalThis.__rest || function(e, a) {
|
5
|
+
var r = {};
|
6
|
+
for (var t in e)
|
7
|
+
Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
8
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
9
|
+
for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
10
|
+
a.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
11
|
+
return r;
|
12
|
+
};
|
13
|
+
const fe = () => ({
|
14
|
+
prefixCls: String,
|
15
|
+
href: String,
|
16
|
+
separator: Z.any,
|
17
|
+
dropdownProps: ae(),
|
18
|
+
overlay: Z.any,
|
19
|
+
onClick: re()
|
20
|
+
}), z = M({
|
21
|
+
compatConfig: {
|
22
|
+
MODE: 3
|
23
|
+
},
|
24
|
+
name: "ABreadcrumbItem",
|
25
|
+
inheritAttrs: !1,
|
26
|
+
__ANT_BREADCRUMB_ITEM: !0,
|
27
|
+
props: fe(),
|
28
|
+
slots: Object,
|
29
|
+
setup(e, a) {
|
30
|
+
let {
|
31
|
+
slots: r,
|
32
|
+
attrs: t,
|
33
|
+
emit: n
|
34
|
+
} = a;
|
35
|
+
const {
|
36
|
+
prefixCls: l
|
37
|
+
} = F("breadcrumb", e), o = (d, v) => {
|
38
|
+
const b = T(r, e, "overlay");
|
39
|
+
return b ? u(ne, S(S({}, e.dropdownProps), {}, {
|
40
|
+
overlay: b,
|
41
|
+
placement: "bottom"
|
42
|
+
}), {
|
43
|
+
default: () => [u("span", {
|
44
|
+
class: `${v}-overlay-link`
|
45
|
+
}, [d, u(oe, null, null)])]
|
46
|
+
}) : d;
|
47
|
+
}, c = (d) => {
|
48
|
+
n("click", d);
|
49
|
+
};
|
50
|
+
return () => {
|
51
|
+
var d;
|
52
|
+
const v = (d = T(r, e, "separator")) !== null && d !== void 0 ? d : "/", b = T(r, e), {
|
53
|
+
class: i,
|
54
|
+
style: h
|
55
|
+
} = t, p = ge(t, ["class", "style"]);
|
56
|
+
let y;
|
57
|
+
return e.href !== void 0 ? y = u("a", S({
|
58
|
+
class: `${l.value}-link`,
|
59
|
+
onClick: c
|
60
|
+
}, p), [b]) : y = u("span", S({
|
61
|
+
class: `${l.value}-link`,
|
62
|
+
onClick: c
|
63
|
+
}, p), [b]), y = o(y, l.value), b != null ? u("li", {
|
64
|
+
class: i,
|
65
|
+
style: h
|
66
|
+
}, [y, v && u("span", {
|
67
|
+
class: `${l.value}-separator`
|
68
|
+
}, [v])]) : null;
|
69
|
+
};
|
70
|
+
}
|
71
|
+
}), ye = (e) => {
|
72
|
+
const {
|
73
|
+
componentCls: a,
|
74
|
+
iconCls: r
|
75
|
+
} = e;
|
76
|
+
return {
|
77
|
+
[a]: G(G({}, ce(e)), {
|
78
|
+
color: e.breadcrumbBaseColor,
|
79
|
+
fontSize: e.breadcrumbFontSize,
|
80
|
+
[r]: {
|
81
|
+
fontSize: e.breadcrumbIconFontSize
|
82
|
+
},
|
83
|
+
ol: {
|
84
|
+
display: "flex",
|
85
|
+
flexWrap: "wrap",
|
86
|
+
margin: 0,
|
87
|
+
padding: 0,
|
88
|
+
listStyle: "none"
|
89
|
+
},
|
90
|
+
a: G({
|
91
|
+
color: e.breadcrumbLinkColor,
|
92
|
+
transition: `color ${e.motionDurationMid}`,
|
93
|
+
padding: `0 ${e.paddingXXS}px`,
|
94
|
+
borderRadius: e.borderRadiusSM,
|
95
|
+
height: e.lineHeight * e.fontSize,
|
96
|
+
display: "inline-block",
|
97
|
+
marginInline: -e.marginXXS,
|
98
|
+
"&:hover": {
|
99
|
+
color: e.breadcrumbLinkColorHover,
|
100
|
+
backgroundColor: e.colorBgTextHover
|
101
|
+
}
|
102
|
+
}, ie(e)),
|
103
|
+
["li:last-child"]: {
|
104
|
+
color: e.breadcrumbLastItemColor,
|
105
|
+
[`& > ${a}-separator`]: {
|
106
|
+
display: "none"
|
107
|
+
}
|
108
|
+
},
|
109
|
+
[`${a}-separator`]: {
|
110
|
+
marginInline: e.breadcrumbSeparatorMargin,
|
111
|
+
color: e.breadcrumbSeparatorColor
|
112
|
+
},
|
113
|
+
[`${a}-link`]: {
|
114
|
+
[`
|
115
|
+
> ${r} + span,
|
116
|
+
> ${r} + a
|
117
|
+
`]: {
|
118
|
+
marginInlineStart: e.marginXXS
|
119
|
+
}
|
120
|
+
},
|
121
|
+
[`${a}-overlay-link`]: {
|
122
|
+
borderRadius: e.borderRadiusSM,
|
123
|
+
height: e.lineHeight * e.fontSize,
|
124
|
+
display: "inline-block",
|
125
|
+
padding: `0 ${e.paddingXXS}px`,
|
126
|
+
marginInline: -e.marginXXS,
|
127
|
+
[`> ${r}`]: {
|
128
|
+
marginInlineStart: e.marginXXS,
|
129
|
+
fontSize: e.fontSizeIcon
|
130
|
+
},
|
131
|
+
"&:hover": {
|
132
|
+
color: e.breadcrumbLinkColorHover,
|
133
|
+
backgroundColor: e.colorBgTextHover,
|
134
|
+
a: {
|
135
|
+
color: e.breadcrumbLinkColorHover
|
136
|
+
}
|
137
|
+
},
|
138
|
+
a: {
|
139
|
+
"&:hover": {
|
140
|
+
backgroundColor: "transparent"
|
141
|
+
}
|
142
|
+
}
|
143
|
+
},
|
144
|
+
[`&${e.componentCls}-rtl`]: {
|
145
|
+
direction: "rtl"
|
146
|
+
}
|
147
|
+
})
|
148
|
+
};
|
149
|
+
}, _e = le("Breadcrumb", (e) => {
|
150
|
+
const a = se(e, {
|
151
|
+
breadcrumbBaseColor: e.colorTextDescription,
|
152
|
+
breadcrumbFontSize: e.fontSize,
|
153
|
+
breadcrumbIconFontSize: e.fontSize,
|
154
|
+
breadcrumbLinkColor: e.colorTextDescription,
|
155
|
+
breadcrumbLinkColorHover: e.colorText,
|
156
|
+
breadcrumbLastItemColor: e.colorText,
|
157
|
+
breadcrumbSeparatorMargin: e.marginXS,
|
158
|
+
breadcrumbSeparatorColor: e.colorTextDescription
|
159
|
+
});
|
160
|
+
return [ye(a)];
|
161
|
+
}), Ae = () => ({
|
162
|
+
prefixCls: String,
|
163
|
+
routes: {
|
164
|
+
type: Array
|
165
|
+
},
|
166
|
+
params: Z.any,
|
167
|
+
separator: Z.any,
|
168
|
+
itemRender: {
|
169
|
+
type: Function
|
170
|
+
}
|
171
|
+
});
|
172
|
+
function Se(e, a) {
|
173
|
+
if (!e.breadcrumbName)
|
174
|
+
return null;
|
175
|
+
const r = Object.keys(a).join("|");
|
176
|
+
return e.breadcrumbName.replace(new RegExp(`:(${r})`, "g"), (n, l) => a[l] || n);
|
177
|
+
}
|
178
|
+
function H(e) {
|
179
|
+
const {
|
180
|
+
route: a,
|
181
|
+
params: r,
|
182
|
+
routes: t,
|
183
|
+
paths: n
|
184
|
+
} = e, l = t.indexOf(a) === t.length - 1, o = Se(a, r);
|
185
|
+
return l ? u("span", null, [o]) : u("a", {
|
186
|
+
href: `#/${n.join("/")}`
|
187
|
+
}, [o]);
|
188
|
+
}
|
189
|
+
const w = M({
|
190
|
+
compatConfig: {
|
191
|
+
MODE: 3
|
192
|
+
},
|
193
|
+
name: "ABreadcrumb",
|
194
|
+
inheritAttrs: !1,
|
195
|
+
props: Ae(),
|
196
|
+
slots: Object,
|
197
|
+
setup(e, a) {
|
198
|
+
let {
|
199
|
+
slots: r,
|
200
|
+
attrs: t
|
201
|
+
} = a;
|
202
|
+
const {
|
203
|
+
prefixCls: n,
|
204
|
+
direction: l
|
205
|
+
} = F("breadcrumb", e), [o, c] = _e(n), d = (i, h) => (i = (i || "").replace(/^\//, ""), Object.keys(h).forEach((p) => {
|
206
|
+
i = i.replace(`:${p}`, h[p]);
|
207
|
+
}), i), v = (i, h, p) => {
|
208
|
+
const y = [...i], O = d(h || "", p);
|
209
|
+
return O && y.push(O), y;
|
210
|
+
}, b = (i) => {
|
211
|
+
let {
|
212
|
+
routes: h = [],
|
213
|
+
params: p = {},
|
214
|
+
separator: y,
|
215
|
+
itemRender: O = H
|
216
|
+
} = i;
|
217
|
+
const L = [];
|
218
|
+
return h.map((I) => {
|
219
|
+
const P = d(I.path, p);
|
220
|
+
P && L.push(P);
|
221
|
+
const C = [...L];
|
222
|
+
let B = null;
|
223
|
+
I.children && I.children.length && (B = u(de, {
|
224
|
+
items: I.children.map((k) => ({
|
225
|
+
key: k.path || k.breadcrumbName,
|
226
|
+
label: O({
|
227
|
+
route: k,
|
228
|
+
params: p,
|
229
|
+
routes: h,
|
230
|
+
paths: v(C, k.path, p)
|
231
|
+
})
|
232
|
+
}))
|
233
|
+
}, null));
|
234
|
+
const V = {
|
235
|
+
separator: y
|
236
|
+
};
|
237
|
+
return B && (V.overlay = B), u(z, S(S({}, V), {}, {
|
238
|
+
key: P || I.breadcrumbName
|
239
|
+
}), {
|
240
|
+
default: () => [O({
|
241
|
+
route: I,
|
242
|
+
params: p,
|
243
|
+
routes: h,
|
244
|
+
paths: C
|
245
|
+
})]
|
246
|
+
});
|
247
|
+
});
|
248
|
+
};
|
249
|
+
return () => {
|
250
|
+
var i;
|
251
|
+
let h;
|
252
|
+
const {
|
253
|
+
routes: p,
|
254
|
+
params: y = {}
|
255
|
+
} = e, O = J(T(r, e)), L = (i = T(r, e, "separator")) !== null && i !== void 0 ? i : "/", I = e.itemRender || r.itemRender || H;
|
256
|
+
p && p.length > 0 ? h = b({
|
257
|
+
routes: p,
|
258
|
+
params: y,
|
259
|
+
separator: L,
|
260
|
+
itemRender: I
|
261
|
+
}) : O.length && (h = O.map((C, B) => (ue(typeof C.type == "object" && (C.type.__ANT_BREADCRUMB_ITEM || C.type.__ANT_BREADCRUMB_SEPARATOR), "Breadcrumb", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"), Q(C, {
|
262
|
+
separator: L,
|
263
|
+
key: B
|
264
|
+
}))));
|
265
|
+
const P = {
|
266
|
+
[n.value]: !0,
|
267
|
+
[`${n.value}-rtl`]: l.value === "rtl",
|
268
|
+
[`${t.class}`]: !!t.class,
|
269
|
+
[c.value]: !0
|
270
|
+
};
|
271
|
+
return o(u("nav", S(S({}, t), {}, {
|
272
|
+
class: P
|
273
|
+
}), [u("ol", null, [h])]));
|
274
|
+
};
|
275
|
+
}
|
276
|
+
});
|
277
|
+
var Oe = globalThis && globalThis.__rest || function(e, a) {
|
278
|
+
var r = {};
|
279
|
+
for (var t in e)
|
280
|
+
Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
281
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
282
|
+
for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
283
|
+
a.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
284
|
+
return r;
|
285
|
+
};
|
286
|
+
const Ie = () => ({
|
287
|
+
prefixCls: String
|
288
|
+
}), X = M({
|
289
|
+
compatConfig: {
|
290
|
+
MODE: 3
|
291
|
+
},
|
292
|
+
name: "ABreadcrumbSeparator",
|
293
|
+
__ANT_BREADCRUMB_SEPARATOR: !0,
|
294
|
+
inheritAttrs: !1,
|
295
|
+
props: Ie(),
|
296
|
+
setup(e, a) {
|
297
|
+
let {
|
298
|
+
slots: r,
|
299
|
+
attrs: t
|
300
|
+
} = a;
|
301
|
+
const {
|
302
|
+
prefixCls: n
|
303
|
+
} = F("breadcrumb", e);
|
304
|
+
return () => {
|
305
|
+
var l;
|
306
|
+
const {
|
307
|
+
separator: o,
|
308
|
+
class: c
|
309
|
+
} = t, d = Oe(t, ["separator", "class"]), v = J((l = r.default) === null || l === void 0 ? void 0 : l.call(r));
|
310
|
+
return u("span", S({
|
311
|
+
class: [`${n.value}-separator`, c]
|
312
|
+
}, d), [v.length > 0 ? v : "/"]);
|
313
|
+
};
|
314
|
+
}
|
315
|
+
});
|
316
|
+
w.Item = z;
|
317
|
+
w.Separator = X;
|
318
|
+
w.install = function(e) {
|
319
|
+
return e.component(w.name, w), e.component(z.name, z), e.component(X.name, X), e;
|
320
|
+
};
|
321
|
+
const Re = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAF0WlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6e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6gqAqYdtzGOWx5C8xUyoQ+50KM9iRAc9GLy2iTXG0hVm+IHQuoGX9in/S1L8RurhaoGVewUf20MYzRPB1QE35BTv2VC2M1vQ3oCDaZOW0KY04J1I5OM6/Oyt0XVfweNXs6FrzuFdA3wXWr0tyGOZbOXyoTy5KmtYSOSqf+Ida+zXXKvbfS/ScP9OVPGx0fTQOqG/1ROJu2xDpvohf/o3XBx3789JAPm5akAbQZKyLsjHkc/P/wmrPI4TWHrHo/sZlnsCPC1qSR5jXMs7+ty7bFiUNtjbA6jfmOMpFvV3T4quXLJB/7JxGWpbl/2z/6wve5vRqjxlq6t0QVyVVqWvfBWh2tX9fS9Z1InTRZnqxt6UPamapu/TPowoOfa+n6bxaPQtqZWGVlv/39u18fXVRWriXEwyzuYn1SmIlnE34a6XezeCtJmDtRqA4S6enEmJ6hE0lh4Fo2lCrlWt26UCo6MdSrUComX3EuZTGC63Ece/zZOMg/vuf0vbOeToyl8QkOYOTlaX88DtDJ4VMWNi5ULBVr/XinUk9lPnQew3FmqFAqpAkzHBheAU3iwCxmjAdfVrWVTv0Hzs4CzJlQQE5ZdXTjxgzC3Hh9ZV4HGsNu5GcAJh/GGpuuci3icwzWEWYwjFGstrYvYBv66gDTF+6WCnFvP/5DF7antIT5EKsLpST3Q5dDmrsnuGlc8xkIl1erK3fTGyuaavMt9IenFbvCtLdhOd4N7UbxMBjdVVwU80rvOU4YrztmnDhdAAAAAElFTkSuQmCC", Ce = { key: 1 }, xe = /* @__PURE__ */ M({
|
322
|
+
__name: "Breadcrumb",
|
323
|
+
setup(e) {
|
324
|
+
const a = U(), r = A(""), t = A([]), n = () => {
|
325
|
+
const l = [];
|
326
|
+
l.push({
|
327
|
+
name: "index",
|
328
|
+
path: "/dashboard/",
|
329
|
+
meta: { title: "\u9996\u9875" }
|
330
|
+
}), r.value = a.name, a.matched.forEach((o) => {
|
331
|
+
l.push(o);
|
332
|
+
}), t.value = l;
|
333
|
+
};
|
334
|
+
return $(a, () => {
|
335
|
+
n();
|
336
|
+
}), Y(() => {
|
337
|
+
n();
|
338
|
+
}), (l, o) => {
|
339
|
+
const c = q("router-link"), d = z, v = w;
|
340
|
+
return s(), x(v, { class: "breadcrumb" }, {
|
341
|
+
default: _(() => [
|
342
|
+
(s(!0), m(j, null, N(t.value, (b, i) => (s(), x(d, { key: i }, {
|
343
|
+
default: _(() => [
|
344
|
+
b.name != r.value ? (s(), x(c, {
|
345
|
+
key: 0,
|
346
|
+
to: { path: b.path }
|
347
|
+
}, {
|
348
|
+
default: _(() => [
|
349
|
+
K(D(b.meta.title), 1)
|
350
|
+
]),
|
351
|
+
_: 2
|
352
|
+
}, 1032, ["to"])) : (s(), m("span", Ce, D(b.meta.title), 1))
|
353
|
+
]),
|
354
|
+
_: 2
|
355
|
+
}, 1024))), 128))
|
356
|
+
]),
|
357
|
+
_: 1
|
358
|
+
});
|
359
|
+
};
|
360
|
+
}
|
361
|
+
}), Me = /* @__PURE__ */ E(xe, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/components/tools/Breadcrumb.vue"]]), we = { class: "page-header" }, De = { class: "page-header-index-wide" }, ze = ["src"], Le = { class: "detail" }, Pe = {
|
362
|
+
key: 0,
|
363
|
+
class: "main"
|
364
|
+
}, Be = { class: "row" }, Te = ["src"], ke = {
|
365
|
+
key: 1,
|
366
|
+
class: "title"
|
367
|
+
}, je = { class: "action" }, Ne = { class: "row" }, We = {
|
368
|
+
key: 0,
|
369
|
+
class: "avatar"
|
370
|
+
}, Ze = {
|
371
|
+
key: 1,
|
372
|
+
class: "headerContent"
|
373
|
+
}, Ee = {
|
374
|
+
key: 2,
|
375
|
+
class: "extra"
|
376
|
+
}, Ge = /* @__PURE__ */ M({
|
377
|
+
name: "PageHeader",
|
378
|
+
__name: "PageHeader",
|
379
|
+
props: {
|
380
|
+
title: {
|
381
|
+
type: String,
|
382
|
+
default: "",
|
383
|
+
required: !1
|
384
|
+
},
|
385
|
+
breadcrumb: {
|
386
|
+
type: Array,
|
387
|
+
default: null,
|
388
|
+
required: !1
|
389
|
+
},
|
390
|
+
logo: {
|
391
|
+
type: String,
|
392
|
+
default: "",
|
393
|
+
required: !1
|
394
|
+
},
|
395
|
+
avatar: {
|
396
|
+
type: String,
|
397
|
+
default: "",
|
398
|
+
required: !1
|
399
|
+
}
|
400
|
+
},
|
401
|
+
setup(e) {
|
402
|
+
const a = e, r = U(), t = A(), n = A([]), l = () => {
|
403
|
+
const o = [];
|
404
|
+
t.value = r.name, r.matched.forEach((c) => {
|
405
|
+
o.push(c);
|
406
|
+
}), n.value = o;
|
407
|
+
};
|
408
|
+
return Y(() => {
|
409
|
+
l();
|
410
|
+
}), $(r, () => {
|
411
|
+
l();
|
412
|
+
}), (o, c) => {
|
413
|
+
const d = z, v = me;
|
414
|
+
return s(), m("div", we, [
|
415
|
+
g("div", De, [
|
416
|
+
g("img", {
|
417
|
+
src: W(Re),
|
418
|
+
alt: "page-header-icon",
|
419
|
+
style: { width: "20px", float: "left", "margin-right": "10px" }
|
420
|
+
}, null, 8, ze),
|
421
|
+
u(W(Me), { class: "breadcrumb" }, {
|
422
|
+
default: _(() => [
|
423
|
+
(s(!0), m(j, null, N(n.value, (b, i) => (s(), x(d, { key: i }, {
|
424
|
+
default: _(() => [
|
425
|
+
g("span", null, D(o.$t(`function._${b.name}`)), 1)
|
426
|
+
]),
|
427
|
+
_: 2
|
428
|
+
}, 1024))), 128))
|
429
|
+
]),
|
430
|
+
_: 1
|
431
|
+
}),
|
432
|
+
g("div", Le, [
|
433
|
+
o.$route.meta.hiddenHeaderContent ? f("v-if", !0) : (s(), m("div", Pe, [
|
434
|
+
g("div", Be, [
|
435
|
+
e.logo ? (s(), m("img", {
|
436
|
+
key: 0,
|
437
|
+
src: a.logo,
|
438
|
+
class: "logo"
|
439
|
+
}, null, 8, Te)) : f("v-if", !0),
|
440
|
+
e.title ? (s(), m("h1", ke, D(a.title), 1)) : f("v-if", !0),
|
441
|
+
g("div", je, [
|
442
|
+
R(o.$slots, "action", {}, void 0, !0)
|
443
|
+
])
|
444
|
+
]),
|
445
|
+
g("div", Ne, [
|
446
|
+
e.avatar ? (s(), m("div", We, [
|
447
|
+
u(v, {
|
448
|
+
src: a.avatar
|
449
|
+
}, null, 8, ["src"])
|
450
|
+
])) : f("v-if", !0),
|
451
|
+
this.$slots.content ? (s(), m("div", Ze, [
|
452
|
+
R(o.$slots, "content", {}, void 0, !0)
|
453
|
+
])) : f("v-if", !0),
|
454
|
+
this.$slots.extra ? (s(), m("div", Ee, [
|
455
|
+
R(o.$slots, "extra", {}, void 0, !0)
|
456
|
+
])) : f("v-if", !0)
|
457
|
+
]),
|
458
|
+
g("div", null, [
|
459
|
+
R(o.$slots, "pageMenu", {}, void 0, !0)
|
460
|
+
])
|
461
|
+
]))
|
462
|
+
])
|
463
|
+
])
|
464
|
+
]);
|
465
|
+
};
|
466
|
+
}
|
467
|
+
});
|
468
|
+
const Xe = /* @__PURE__ */ E(Ge, [["__scopeId", "data-v-10f54392"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/components/page/PageHeader.vue"]]), Ye = { key: 0 }, Fe = {
|
469
|
+
key: 0,
|
470
|
+
style: { "font-size": "14px", color: "rgba(0, 0, 0, 0.65)" }
|
471
|
+
}, Ve = { class: "link" }, He = ["href"], $e = {
|
472
|
+
key: 0,
|
473
|
+
class: "page-menu-search"
|
474
|
+
}, Ue = {
|
475
|
+
key: 1,
|
476
|
+
class: "page-menu-tabs"
|
477
|
+
}, Je = { class: "content" }, Qe = {
|
478
|
+
class: /* @__PURE__ */ te(["page-header-index-wide"])
|
479
|
+
}, qe = /* @__PURE__ */ M({
|
480
|
+
name: "LayoutContent",
|
481
|
+
__name: "PageLayout",
|
482
|
+
props: {
|
483
|
+
desc: {
|
484
|
+
type: String,
|
485
|
+
default: null
|
486
|
+
},
|
487
|
+
logo: {
|
488
|
+
type: String,
|
489
|
+
default: null
|
490
|
+
},
|
491
|
+
title: {
|
492
|
+
type: String,
|
493
|
+
default: null
|
494
|
+
},
|
495
|
+
avatar: {
|
496
|
+
type: String,
|
497
|
+
default: null
|
498
|
+
},
|
499
|
+
linkList: {
|
500
|
+
type: Array,
|
501
|
+
default: null
|
502
|
+
},
|
503
|
+
extraImage: {
|
504
|
+
type: String,
|
505
|
+
default: null
|
506
|
+
},
|
507
|
+
search: {
|
508
|
+
type: Boolean,
|
509
|
+
default: !1
|
510
|
+
},
|
511
|
+
tabs: {
|
512
|
+
type: Object,
|
513
|
+
default: () => ({})
|
514
|
+
},
|
515
|
+
explain: {
|
516
|
+
type: Boolean,
|
517
|
+
default: !0
|
518
|
+
}
|
519
|
+
},
|
520
|
+
setup(e) {
|
521
|
+
return (a, r) => {
|
522
|
+
const t = be, n = pe, l = he;
|
523
|
+
return s(), m("div", {
|
524
|
+
style: ee(a.$route.meta.pageHeader ? null : "margin: -24px -24px 0px;")
|
525
|
+
}, [
|
526
|
+
f(" pageHeader , route meta hideHeader:true on hide "),
|
527
|
+
a.$route.meta.pageHeader ? f("v-if", !0) : (s(), x(Xe, {
|
528
|
+
key: 0,
|
529
|
+
title: e.explain ? e.title : "",
|
530
|
+
logo: e.logo,
|
531
|
+
avatar: e.avatar
|
532
|
+
}, {
|
533
|
+
action: _(() => [
|
534
|
+
R(a.$slots, "action", {}, void 0, !0)
|
535
|
+
]),
|
536
|
+
content: _(() => [
|
537
|
+
R(a.$slots, "content", {}, () => [
|
538
|
+
!this.$slots.headerContent && e.desc && e.explain ? (s(), m("div", Ye, [
|
539
|
+
e.explain ? (s(), m("p", Fe, D(e.desc), 1)) : f("v-if", !0),
|
540
|
+
g("div", Ve, [
|
541
|
+
(s(!0), m(j, null, N(e.linkList, (o, c) => (s(), m("a", {
|
542
|
+
key: c,
|
543
|
+
href: o.href
|
544
|
+
}, [
|
545
|
+
f(' <a-icon :type="link.icon" /> '),
|
546
|
+
g("span", null, D(o.title), 1)
|
547
|
+
], 8, He))), 128))
|
548
|
+
])
|
549
|
+
])) : f("v-if", !0)
|
550
|
+
], !0)
|
551
|
+
]),
|
552
|
+
extra: _(() => [
|
553
|
+
R(a.$slots, "extra", {}, void 0, !0)
|
554
|
+
]),
|
555
|
+
pageMenu: _(() => [
|
556
|
+
e.search ? (s(), m("div", $e, [
|
557
|
+
u(t, {
|
558
|
+
style: { width: "80%", "max-width": "522px" },
|
559
|
+
placeholder: "\u8BF7\u8F93\u5165...",
|
560
|
+
size: "large",
|
561
|
+
enterButton: "\u641C\u7D22"
|
562
|
+
})
|
563
|
+
])) : f("v-if", !0),
|
564
|
+
e.tabs && e.tabs.items ? (s(), m("div", Ue, [
|
565
|
+
u(l, {
|
566
|
+
tabBarStyle: { margin: 0 },
|
567
|
+
onChange: e.tabs.callback,
|
568
|
+
activeKey: e.tabs.active()
|
569
|
+
}, {
|
570
|
+
default: _(() => [
|
571
|
+
(s(!0), m(j, null, N(e.tabs.items, (o) => (s(), x(n, {
|
572
|
+
tab: o.title,
|
573
|
+
key: o.key
|
574
|
+
}, null, 8, ["tab"]))), 128))
|
575
|
+
]),
|
576
|
+
_: 1
|
577
|
+
}, 8, ["onChange", "activeKey"])
|
578
|
+
])) : f("v-if", !0)
|
579
|
+
]),
|
580
|
+
_: 3
|
581
|
+
}, 8, ["title", "logo", "avatar"])),
|
582
|
+
g("div", Je, [
|
583
|
+
g("div", Qe, [
|
584
|
+
R(a.$slots, "default", {}, void 0, !0)
|
585
|
+
])
|
586
|
+
])
|
587
|
+
], 4);
|
588
|
+
};
|
589
|
+
}
|
590
|
+
});
|
591
|
+
const Ke = /* @__PURE__ */ E(qe, [["__scopeId", "data-v-0f10d1a0"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/components/page/PageLayout.vue"]]), et = ["src"], tt = /* @__PURE__ */ M({
|
592
|
+
name: "PageContent",
|
593
|
+
__name: "PageView",
|
594
|
+
setup(e) {
|
595
|
+
const a = A(), r = A([]), t = A(""), n = A(!1), l = A({}), o = () => {
|
596
|
+
const c = a.value.$children[0];
|
597
|
+
c && (r.value = c.linkList, t.value = c.extraImage, n.value = c.search == !0, l.value = c.tabs);
|
598
|
+
};
|
599
|
+
return Y(() => {
|
600
|
+
o();
|
601
|
+
}), (c, d) => (s(), x(W(Ke), {
|
602
|
+
explain: !1,
|
603
|
+
"link-list": r.value,
|
604
|
+
search: n.value,
|
605
|
+
tabs: l.value
|
606
|
+
}, {
|
607
|
+
extra: _(() => [
|
608
|
+
g("img", { src: t.value }, null, 8, et)
|
609
|
+
]),
|
610
|
+
default: _(() => [
|
611
|
+
u(W(ve), {
|
612
|
+
ref_key: "contentRef",
|
613
|
+
ref: a
|
614
|
+
}, null, 512)
|
615
|
+
]),
|
616
|
+
_: 1
|
617
|
+
}, 8, ["link-list", "search", "tabs"]));
|
618
|
+
}
|
619
|
+
});
|
620
|
+
const ot = /* @__PURE__ */ E(tt, [["__scopeId", "data-v-c62cd39a"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/components/layouts/PageView.vue"]]);
|
621
|
+
export {
|
622
|
+
ot as default
|
623
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as n, watch as _, openBlock as b, createElementBlock as w, createVNode as V } from "vue";
|
2
|
-
import { a3 as y, a4 as C, a5 as R, a6 as S, _ as k } from "./index.
|
2
|
+
import { a3 as y, a4 as C, a5 as R, a6 as S, _ as k } from "./index.553362e6.mjs";
|
3
3
|
const D = /* @__PURE__ */ v({
|
4
4
|
__name: "RegionSelect",
|
5
5
|
props: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createVNode as u } from "vue";
|
2
|
-
import { A as l } from "./index.
|
2
|
+
import { A as l } from "./index.553362e6.mjs";
|
3
3
|
var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" };
|
4
4
|
const p = o;
|
5
5
|
function c(r) {
|
@@ -0,0 +1 @@
|
|
1
|
+
.page-header[data-v-10f54392]{background:#fff;padding:16px 32px 0;border-bottom:1px solid #e8e8e8}.page-header .breadcrumb[data-v-10f54392]{margin-bottom:16px}.page-header .detail[data-v-10f54392]{display:flex}.page-header .detail .avatar[data-v-10f54392]{flex:0 1 72px;margin:0 24px 8px 0}.page-header .detail .avatar>span[data-v-10f54392]{border-radius:72px;display:block;width:72px;height:72px}.page-header .detail .main[data-v-10f54392]{width:100%;flex:0 1 auto}.page-header .detail .main .row[data-v-10f54392]{display:flex;width:100%}.page-header .detail .main .row .avatar[data-v-10f54392]{margin-bottom:16px}.page-header .detail .main .title[data-v-10f54392]{font-weight:500;font-size:20px;line-height:28px;color:#000000d9;margin-bottom:16px;flex:auto}.page-header .detail .main .logo[data-v-10f54392]{width:28px;height:28px;border-radius:4px;margin-right:16px}.page-header .detail .main .content[data-v-10f54392],.page-header .detail .main .headerContent[data-v-10f54392]{flex:auto;color:#00000073;line-height:22px}.page-header .detail .main .content .link[data-v-10f54392],.page-header .detail .main .headerContent .link[data-v-10f54392]{margin-top:16px;line-height:24px}.page-header .detail .main .content .link a[data-v-10f54392],.page-header .detail .main .headerContent .link a[data-v-10f54392]{font-size:14px;margin-right:32px}.page-header .detail .main .extra[data-v-10f54392]{flex:0 1 auto;margin-left:88px;min-width:242px;text-align:right}.page-header .detail .main .action[data-v-10f54392]{margin-left:56px;min-width:266px;flex:0 1 auto;text-align:right}.page-header .detail .main .action[data-v-10f54392]:empty{display:none}.mobile .page-header .main .row[data-v-10f54392]{flex-wrap:wrap}.mobile .page-header .main .row .avatar[data-v-10f54392]{flex:0 1 25%;margin:0 2% 8px 0}.mobile .page-header .main .row .content[data-v-10f54392],.mobile .page-header .main .row .headerContent[data-v-10f54392]{flex:0 1 70%}.mobile .page-header .main .row .content .link[data-v-10f54392],.mobile .page-header .main .row .headerContent .link[data-v-10f54392]{margin-top:16px;line-height:24px}.mobile .page-header .main .row .content .link a[data-v-10f54392],.mobile .page-header .main .row .headerContent .link a[data-v-10f54392]{font-size:14px;margin-right:10px}.mobile .page-header .main .row .extra[data-v-10f54392]{flex:1 1 auto;margin-left:0;min-width:0;text-align:right}.mobile .page-header .main .row .action[data-v-10f54392]{margin-left:unset;min-width:266px;flex:0 1 auto;text-align:left;margin-bottom:12px}.mobile .page-header .main .row .action[data-v-10f54392]:empty{display:none}.content[data-v-0f10d1a0]{margin:8px 8px 0}.content .link[data-v-0f10d1a0]{margin-top:16px}.content .link[data-v-0f10d1a0]:not(:empty){margin-bottom:16px}.content .link a[data-v-0f10d1a0]{margin-right:32px;height:24px;line-height:24px;display:inline-block}.content .link a i[data-v-0f10d1a0]{font-size:24px;margin-right:8px;vertical-align:middle}.content .link a span[data-v-0f10d1a0]{height:24px;line-height:24px;display:inline-block;vertical-align:middle}.page-menu-search[data-v-0f10d1a0]{text-align:center;margin-bottom:16px}.page-menu-tabs[data-v-0f10d1a0]{margin-top:48px}.extra-img[data-v-c62cd39a]{margin-top:-60px;text-align:center;width:195px}.extra-img img[data-v-c62cd39a]{width:100%}.mobile .extra-img[data-v-c62cd39a]{margin-top:0;text-align:center;width:96px}.mobile .extra-img img[data-v-c62cd39a]{width:100%}
|