@huyooo/ui 0.4.9 → 0.4.11
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/dist/{AuthkitAppSetting-D4uAa2Ni.js → AuthkitAppSetting-B_ddDZoJ.js} +451 -432
- package/dist/{AuthkitAuthorize-WTE1sCbr.js → AuthkitAuthorize-DEGTLm9-.js} +33 -33
- package/dist/{CustomTable-Cd6RiAPX.js → CustomTable-DbiCOvmO.js} +209 -205
- package/dist/{FeedbackFeedBackItem-DYUIzqYg.js → FeedbackFeedBackItem-D1JwJFBF.js} +2 -2
- package/dist/{FeedbackFeedBackModal-DKgZZ8OR.js → FeedbackFeedBackModal-DOocV38w.js} +597 -596
- package/dist/InfiniteLoading-BOurBPUR.js +66 -0
- package/dist/{Menu-2SePYCYT.js → Menu-MZJINp6f.js} +32 -32
- package/dist/{MessageHandle-C9nSNw5A.js → MessageHandle-cZ2FXsJ5.js} +220 -260
- package/dist/{PaySubscriptions-CFKM4gyf.js → PaySubscriptions-MYoi8Ob_.js} +1 -1
- package/dist/{ReferrerReferees-q8H-v-Hq.js → ReferrerReferees-CFwb0s28.js} +49 -49
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-DqfW_OJJ.js → Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js} +1 -1
- package/dist/{UserPanel-xh-QbW8U.js → UserPanel-BhAJ5Dya.js} +167 -168
- package/dist/api/Authkit/Users.d.ts +5 -4
- package/dist/api/Authkit/auth.d.ts +5 -4
- package/dist/authkit.js +3 -3
- package/dist/common.js +9 -9
- package/dist/components/InfiniteLoading.vue.d.ts +40 -4
- package/dist/components/Upload/Upload.vue.d.ts +2 -2
- package/dist/components/User/UserAvatar.vue.d.ts +1 -1
- package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -1
- package/dist/composables/Authkit/useAuthkitProps.d.ts +5 -0
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +143 -1
- package/dist/composables/usePolling.d.ts +27 -0
- package/dist/composables/useUserPanelProps.d.ts +27 -5
- package/dist/composables.js +3 -3
- package/dist/feedback.js +2 -2
- package/dist/index.js +47 -47
- package/dist/message.d.ts +1 -1
- package/dist/message.js +9 -8
- package/dist/pay.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api.d.ts +133 -0
- package/dist/upload.js +2 -2
- package/dist/useAuthkitProps-DXXCuvZp.js +325 -0
- package/dist/{useUploadCos-DpOqkozy.js → useUploadCos-B8D9lYIk.js} +1486 -1489
- package/dist/useUserPanelProps-C5W72fZJ.js +54 -0
- package/dist/user.js +2 -2
- package/dist/utils/authkit.d.ts +7 -1
- package/dist/utils/configHelper.d.ts +17 -0
- package/dist/utils/errorHandler.d.ts +32 -0
- package/dist/utils/index.d.ts +11 -1
- package/package.json +1 -1
- package/dist/components/Message/MessageInfiniteLoading.vue.d.ts +0 -29
- package/dist/useAuthkitProps-DwKPhFjM.js +0 -283
- package/dist/useUserPanelProps-Dt9zkMJw.js +0 -14
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { Message as Ie, Space as Ee, Image as Ae, Avatar as
|
|
6
|
-
import { M as
|
|
4
|
+
import { defineComponent as B, createElementBlock as R, openBlock as S, normalizeStyle as ne, normalizeClass as Ce, createElementVNode as P, computed as G, ref as L, createBlock as T, unref as y, withCtx as h, createVNode as E, createCommentVNode as j, Fragment as z, createTextVNode as q, toDisplayString as M, onUnmounted as je, h as ve, renderList as we, nextTick as K } from "vue";
|
|
5
|
+
import { Message as Ie, Space as Ee, Image as Ae, Avatar as Le, Descriptions as Me, DescriptionsItem as se, Tag as ee, Spin as ze, Button as pe, Form as Ve, FormItem as ue, Input as We, Select as He, Option as Ye, Textarea as Ke, Breadcrumb as Ge, BreadcrumbItem as ge, Modal as Xe, Drawer as Ze } from "@arco-design/web-vue";
|
|
6
|
+
import { M as Je } from "./Menu-MZJINp6f.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
|
-
import { api as
|
|
12
|
+
import { api as W } from "@huyooo/api";
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { r as
|
|
15
|
+
import { r as Qe, a as et, u as tt } from "./useUploadCos-B8D9lYIk.js";
|
|
16
|
+
import { u as nt } from "./useUserPanelProps-C5W72fZJ.js";
|
|
16
17
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
const lt = D({
|
|
18
|
+
import { I as rt } from "./InfiniteLoading-BOurBPUR.js";
|
|
19
|
+
import { a as te, C as ot } from "./CustomTable-DbiCOvmO.js";
|
|
20
|
+
import { Bubble as Ue, Prompts as at, Sender as it } from "ant-design-x-vue";
|
|
21
|
+
import { Icon as $e } from "@iconify/vue";
|
|
22
|
+
import { c as lt, g as st } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
23
|
+
import { _ as Te, g as Fe, i as Re } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
24
|
+
const ut = B({
|
|
25
25
|
name: "IconExclamationCircle",
|
|
26
26
|
props: {
|
|
27
27
|
size: {
|
|
@@ -50,45 +50,45 @@ const lt = D({
|
|
|
50
50
|
setup(e, {
|
|
51
51
|
emit: u
|
|
52
52
|
}) {
|
|
53
|
-
const r =
|
|
53
|
+
const r = Fe("icon"), i = G(() => [r, `${r}-exclamation-circle`, {
|
|
54
54
|
[`${r}-spin`]: e.spin
|
|
55
|
-
}]),
|
|
55
|
+
}]), p = G(() => {
|
|
56
56
|
const n = {};
|
|
57
|
-
return e.size && (n.fontSize =
|
|
57
|
+
return e.size && (n.fontSize = Re(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
|
|
58
58
|
});
|
|
59
59
|
return {
|
|
60
|
-
cls:
|
|
61
|
-
innerStyle:
|
|
60
|
+
cls: i,
|
|
61
|
+
innerStyle: p,
|
|
62
62
|
onClick: (n) => {
|
|
63
63
|
u("click", n);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}),
|
|
68
|
-
function
|
|
69
|
-
return
|
|
67
|
+
}), ct = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
68
|
+
function dt(e, u, r, i, p, a) {
|
|
69
|
+
return S(), R("svg", {
|
|
70
70
|
viewBox: "0 0 48 48",
|
|
71
71
|
fill: "none",
|
|
72
72
|
xmlns: "http://www.w3.org/2000/svg",
|
|
73
73
|
stroke: "currentColor",
|
|
74
74
|
class: Ce(e.cls),
|
|
75
|
-
style:
|
|
75
|
+
style: ne(e.innerStyle),
|
|
76
76
|
"stroke-width": e.strokeWidth,
|
|
77
77
|
"stroke-linecap": e.strokeLinecap,
|
|
78
78
|
"stroke-linejoin": e.strokeLinejoin,
|
|
79
79
|
onClick: u[0] || (u[0] = (...n) => e.onClick && e.onClick(...n))
|
|
80
|
-
}, u[1] || (u[1] = [
|
|
80
|
+
}, u[1] || (u[1] = [P("path", {
|
|
81
81
|
d: "M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"
|
|
82
|
-
}, null, -1)]), 14,
|
|
82
|
+
}, null, -1)]), 14, ct);
|
|
83
83
|
}
|
|
84
|
-
var ce = /* @__PURE__ */
|
|
84
|
+
var ce = /* @__PURE__ */ Te(ut, [["render", dt]]);
|
|
85
85
|
const be = Object.assign(ce, {
|
|
86
86
|
install: (e, u) => {
|
|
87
87
|
var r;
|
|
88
|
-
const
|
|
89
|
-
e.component(
|
|
88
|
+
const i = (r = u == null ? void 0 : u.iconPrefix) != null ? r : "";
|
|
89
|
+
e.component(i + ce.name, ce);
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), ft = B({
|
|
92
92
|
name: "IconLink",
|
|
93
93
|
props: {
|
|
94
94
|
size: {
|
|
@@ -117,58 +117,58 @@ const be = Object.assign(ce, {
|
|
|
117
117
|
setup(e, {
|
|
118
118
|
emit: u
|
|
119
119
|
}) {
|
|
120
|
-
const r =
|
|
120
|
+
const r = Fe("icon"), i = G(() => [r, `${r}-link`, {
|
|
121
121
|
[`${r}-spin`]: e.spin
|
|
122
|
-
}]),
|
|
122
|
+
}]), p = G(() => {
|
|
123
123
|
const n = {};
|
|
124
|
-
return e.size && (n.fontSize =
|
|
124
|
+
return e.size && (n.fontSize = Re(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
|
|
125
125
|
});
|
|
126
126
|
return {
|
|
127
|
-
cls:
|
|
128
|
-
innerStyle:
|
|
127
|
+
cls: i,
|
|
128
|
+
innerStyle: p,
|
|
129
129
|
onClick: (n) => {
|
|
130
130
|
u("click", n);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
}),
|
|
135
|
-
function
|
|
136
|
-
return
|
|
134
|
+
}), pt = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
135
|
+
function yt(e, u, r, i, p, a) {
|
|
136
|
+
return S(), R("svg", {
|
|
137
137
|
viewBox: "0 0 48 48",
|
|
138
138
|
fill: "none",
|
|
139
139
|
xmlns: "http://www.w3.org/2000/svg",
|
|
140
140
|
stroke: "currentColor",
|
|
141
141
|
class: Ce(e.cls),
|
|
142
|
-
style:
|
|
142
|
+
style: ne(e.innerStyle),
|
|
143
143
|
"stroke-width": e.strokeWidth,
|
|
144
144
|
"stroke-linecap": e.strokeLinecap,
|
|
145
145
|
"stroke-linejoin": e.strokeLinejoin,
|
|
146
146
|
onClick: u[0] || (u[0] = (...n) => e.onClick && e.onClick(...n))
|
|
147
|
-
}, u[1] || (u[1] = [
|
|
147
|
+
}, u[1] || (u[1] = [P("path", {
|
|
148
148
|
d: "m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"
|
|
149
|
-
}, null, -1)]), 14,
|
|
149
|
+
}, null, -1)]), 14, pt);
|
|
150
150
|
}
|
|
151
|
-
var de = /* @__PURE__ */
|
|
152
|
-
const
|
|
151
|
+
var de = /* @__PURE__ */ Te(ft, [["render", yt]]);
|
|
152
|
+
const mt = Object.assign(de, {
|
|
153
153
|
install: (e, u) => {
|
|
154
154
|
var r;
|
|
155
|
-
const
|
|
156
|
-
e.component(
|
|
155
|
+
const i = (r = u == null ? void 0 : u.iconPrefix) != null ? r : "";
|
|
156
|
+
e.component(i + de.name, de);
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
159
|
-
randomUUID:
|
|
158
|
+
}), vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), he = {
|
|
159
|
+
randomUUID: vt
|
|
160
160
|
};
|
|
161
161
|
function ke(e, u, r) {
|
|
162
|
-
var
|
|
162
|
+
var p;
|
|
163
163
|
if (he.randomUUID && !e)
|
|
164
164
|
return he.randomUUID();
|
|
165
165
|
e = e || {};
|
|
166
|
-
const
|
|
167
|
-
if (
|
|
166
|
+
const i = e.random ?? ((p = e.rng) == null ? void 0 : p.call(e)) ?? Qe();
|
|
167
|
+
if (i.length < 16)
|
|
168
168
|
throw new Error("Random bytes length must be >= 16");
|
|
169
|
-
return
|
|
169
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, et(i);
|
|
170
170
|
}
|
|
171
|
-
var
|
|
171
|
+
var Oe = { exports: {} };
|
|
172
172
|
/*!
|
|
173
173
|
* clipboard.js v2.0.11
|
|
174
174
|
* https://clipboardjs.com/
|
|
@@ -176,9 +176,9 @@ var qe = { exports: {} };
|
|
|
176
176
|
* Licensed MIT © Zeno Rocha
|
|
177
177
|
*/
|
|
178
178
|
(function(e, u) {
|
|
179
|
-
(function(
|
|
180
|
-
e.exports =
|
|
181
|
-
})(
|
|
179
|
+
(function(i, p) {
|
|
180
|
+
e.exports = p();
|
|
181
|
+
})(lt, function() {
|
|
182
182
|
return (
|
|
183
183
|
/******/
|
|
184
184
|
function() {
|
|
@@ -191,126 +191,126 @@ var qe = { exports: {} };
|
|
|
191
191
|
default: function() {
|
|
192
192
|
return (
|
|
193
193
|
/* binding */
|
|
194
|
-
|
|
194
|
+
De
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
|
-
var o = t(279),
|
|
199
|
-
function
|
|
198
|
+
var o = t(279), c = /* @__PURE__ */ t.n(o), d = t(370), _ = /* @__PURE__ */ t.n(d), I = t(817), $ = /* @__PURE__ */ t.n(I);
|
|
199
|
+
function w(b) {
|
|
200
200
|
try {
|
|
201
|
-
return document.execCommand(
|
|
201
|
+
return document.execCommand(b);
|
|
202
202
|
} catch {
|
|
203
203
|
return !1;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
var
|
|
207
|
-
var
|
|
208
|
-
return
|
|
209
|
-
},
|
|
210
|
-
function A(
|
|
211
|
-
var
|
|
212
|
-
|
|
206
|
+
var x = function(s) {
|
|
207
|
+
var l = $()(s);
|
|
208
|
+
return w("cut"), l;
|
|
209
|
+
}, f = x;
|
|
210
|
+
function A(b) {
|
|
211
|
+
var s = document.documentElement.getAttribute("dir") === "rtl", l = document.createElement("textarea");
|
|
212
|
+
l.style.fontSize = "12pt", l.style.border = "0", l.style.padding = "0", l.style.margin = "0", l.style.position = "absolute", l.style[s ? "right" : "left"] = "-9999px";
|
|
213
213
|
var m = window.pageYOffset || document.documentElement.scrollTop;
|
|
214
|
-
return
|
|
214
|
+
return l.style.top = "".concat(m, "px"), l.setAttribute("readonly", ""), l.value = b, l;
|
|
215
215
|
}
|
|
216
|
-
var F = function(
|
|
217
|
-
var m = A(
|
|
218
|
-
|
|
219
|
-
var
|
|
220
|
-
return
|
|
221
|
-
},
|
|
222
|
-
var
|
|
216
|
+
var F = function(s, l) {
|
|
217
|
+
var m = A(s);
|
|
218
|
+
l.container.appendChild(m);
|
|
219
|
+
var g = $()(m);
|
|
220
|
+
return w("copy"), m.remove(), g;
|
|
221
|
+
}, re = function(s) {
|
|
222
|
+
var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
223
223
|
container: document.body
|
|
224
224
|
}, m = "";
|
|
225
|
-
return typeof
|
|
226
|
-
},
|
|
227
|
-
function
|
|
225
|
+
return typeof s == "string" ? m = F(s, l) : s instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(s == null ? void 0 : s.type) ? m = F(s.value, l) : (m = $()(s), w("copy")), m;
|
|
226
|
+
}, v = re;
|
|
227
|
+
function U(b) {
|
|
228
228
|
"@babel/helpers - typeof";
|
|
229
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
230
|
-
return typeof
|
|
231
|
-
} :
|
|
232
|
-
return
|
|
233
|
-
},
|
|
229
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? U = function(l) {
|
|
230
|
+
return typeof l;
|
|
231
|
+
} : U = function(l) {
|
|
232
|
+
return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
|
|
233
|
+
}, U(b);
|
|
234
234
|
}
|
|
235
|
-
var
|
|
236
|
-
var
|
|
235
|
+
var k = function() {
|
|
236
|
+
var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = s.action, m = l === void 0 ? "copy" : l, g = s.container, C = s.target, N = s.text;
|
|
237
237
|
if (m !== "copy" && m !== "cut")
|
|
238
238
|
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
239
|
-
if (
|
|
240
|
-
if (
|
|
241
|
-
if (m === "copy" &&
|
|
239
|
+
if (C !== void 0)
|
|
240
|
+
if (C && U(C) === "object" && C.nodeType === 1) {
|
|
241
|
+
if (m === "copy" && C.hasAttribute("disabled"))
|
|
242
242
|
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
243
|
-
if (m === "cut" && (
|
|
243
|
+
if (m === "cut" && (C.hasAttribute("readonly") || C.hasAttribute("disabled")))
|
|
244
244
|
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
245
245
|
} else
|
|
246
246
|
throw new Error('Invalid "target" value, use a valid Element');
|
|
247
247
|
if (N)
|
|
248
|
-
return
|
|
249
|
-
container:
|
|
248
|
+
return v(N, {
|
|
249
|
+
container: g
|
|
250
250
|
});
|
|
251
|
-
if (
|
|
252
|
-
return m === "cut" ?
|
|
253
|
-
container:
|
|
251
|
+
if (C)
|
|
252
|
+
return m === "cut" ? f(C) : v(C, {
|
|
253
|
+
container: g
|
|
254
254
|
});
|
|
255
|
-
},
|
|
256
|
-
function
|
|
255
|
+
}, D = k;
|
|
256
|
+
function O(b) {
|
|
257
257
|
"@babel/helpers - typeof";
|
|
258
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
259
|
-
return typeof
|
|
260
|
-
} :
|
|
261
|
-
return
|
|
262
|
-
},
|
|
258
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? O = function(l) {
|
|
259
|
+
return typeof l;
|
|
260
|
+
} : O = function(l) {
|
|
261
|
+
return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
|
|
262
|
+
}, O(b);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
if (!(
|
|
264
|
+
function X(b, s) {
|
|
265
|
+
if (!(b instanceof s))
|
|
266
266
|
throw new TypeError("Cannot call a class as a function");
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
for (var
|
|
270
|
-
var m = l
|
|
271
|
-
m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(
|
|
268
|
+
function V(b, s) {
|
|
269
|
+
for (var l = 0; l < s.length; l++) {
|
|
270
|
+
var m = s[l];
|
|
271
|
+
m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(b, m.key, m);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
return
|
|
274
|
+
function me(b, s, l) {
|
|
275
|
+
return s && V(b.prototype, s), l && V(b, l), b;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
if (typeof
|
|
277
|
+
function oe(b, s) {
|
|
278
|
+
if (typeof s != "function" && s !== null)
|
|
279
279
|
throw new TypeError("Super expression must either be null or a function");
|
|
280
|
-
|
|
280
|
+
b.prototype = Object.create(s && s.prototype, {
|
|
281
281
|
constructor: {
|
|
282
|
-
value:
|
|
282
|
+
value: b,
|
|
283
283
|
writable: !0,
|
|
284
284
|
configurable: !0
|
|
285
285
|
}
|
|
286
|
-
}),
|
|
286
|
+
}), s && Z(b, s);
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
290
|
-
return m.__proto__ =
|
|
291
|
-
},
|
|
288
|
+
function Z(b, s) {
|
|
289
|
+
return Z = Object.setPrototypeOf || function(m, g) {
|
|
290
|
+
return m.__proto__ = g, m;
|
|
291
|
+
}, Z(b, s);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
var
|
|
293
|
+
function ae(b) {
|
|
294
|
+
var s = Pe();
|
|
295
295
|
return function() {
|
|
296
|
-
var m =
|
|
297
|
-
if (
|
|
298
|
-
var
|
|
299
|
-
|
|
296
|
+
var m = J(b), g;
|
|
297
|
+
if (s) {
|
|
298
|
+
var C = J(this).constructor;
|
|
299
|
+
g = Reflect.construct(m, arguments, C);
|
|
300
300
|
} else
|
|
301
|
-
|
|
302
|
-
return ie(this,
|
|
301
|
+
g = m.apply(this, arguments);
|
|
302
|
+
return ie(this, g);
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
|
-
function ie(
|
|
306
|
-
return
|
|
305
|
+
function ie(b, s) {
|
|
306
|
+
return s && (O(s) === "object" || typeof s == "function") ? s : Y(b);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
if (
|
|
308
|
+
function Y(b) {
|
|
309
|
+
if (b === void 0)
|
|
310
310
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
311
|
-
return
|
|
311
|
+
return b;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Pe() {
|
|
314
314
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
315
315
|
if (typeof Proxy == "function") return !0;
|
|
316
316
|
try {
|
|
@@ -320,28 +320,28 @@ var qe = { exports: {} };
|
|
|
320
320
|
return !1;
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
325
|
-
return
|
|
326
|
-
},
|
|
323
|
+
function J(b) {
|
|
324
|
+
return J = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
|
|
325
|
+
return l.__proto__ || Object.getPrototypeOf(l);
|
|
326
|
+
}, J(b);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
var
|
|
330
|
-
if (
|
|
331
|
-
return
|
|
328
|
+
function le(b, s) {
|
|
329
|
+
var l = "data-clipboard-".concat(b);
|
|
330
|
+
if (s.hasAttribute(l))
|
|
331
|
+
return s.getAttribute(l);
|
|
332
332
|
}
|
|
333
|
-
var
|
|
334
|
-
|
|
335
|
-
var
|
|
336
|
-
function
|
|
337
|
-
var
|
|
338
|
-
return
|
|
333
|
+
var Be = /* @__PURE__ */ function(b) {
|
|
334
|
+
oe(l, b);
|
|
335
|
+
var s = ae(l);
|
|
336
|
+
function l(m, g) {
|
|
337
|
+
var C;
|
|
338
|
+
return X(this, l), C = s.call(this), C.resolveOptions(g), C.listenClick(m), C;
|
|
339
339
|
}
|
|
340
|
-
return
|
|
340
|
+
return me(l, [{
|
|
341
341
|
key: "resolveOptions",
|
|
342
342
|
value: function() {
|
|
343
|
-
var
|
|
344
|
-
this.action = typeof
|
|
343
|
+
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
344
|
+
this.action = typeof g.action == "function" ? g.action : this.defaultAction, this.target = typeof g.target == "function" ? g.target : this.defaultTarget, this.text = typeof g.text == "function" ? g.text : this.defaultText, this.container = O(g.container) === "object" ? g.container : document.body;
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
347
|
* Adds a click event listener to the passed trigger.
|
|
@@ -349,10 +349,10 @@ var qe = { exports: {} };
|
|
|
349
349
|
*/
|
|
350
350
|
}, {
|
|
351
351
|
key: "listenClick",
|
|
352
|
-
value: function(
|
|
353
|
-
var
|
|
354
|
-
this.listener =
|
|
355
|
-
return
|
|
352
|
+
value: function(g) {
|
|
353
|
+
var C = this;
|
|
354
|
+
this.listener = _()(g, "click", function(N) {
|
|
355
|
+
return C.onClick(N);
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
358
|
/**
|
|
@@ -361,19 +361,19 @@ var qe = { exports: {} };
|
|
|
361
361
|
*/
|
|
362
362
|
}, {
|
|
363
363
|
key: "onClick",
|
|
364
|
-
value: function(
|
|
365
|
-
var
|
|
364
|
+
value: function(g) {
|
|
365
|
+
var C = g.delegateTarget || g.currentTarget, N = this.action(C) || "copy", Q = D({
|
|
366
366
|
action: N,
|
|
367
367
|
container: this.container,
|
|
368
|
-
target: this.target(
|
|
369
|
-
text: this.text(
|
|
368
|
+
target: this.target(C),
|
|
369
|
+
text: this.text(C)
|
|
370
370
|
});
|
|
371
|
-
this.emit(
|
|
371
|
+
this.emit(Q ? "success" : "error", {
|
|
372
372
|
action: N,
|
|
373
|
-
text:
|
|
374
|
-
trigger:
|
|
373
|
+
text: Q,
|
|
374
|
+
trigger: C,
|
|
375
375
|
clearSelection: function() {
|
|
376
|
-
|
|
376
|
+
C && C.focus(), window.getSelection().removeAllRanges();
|
|
377
377
|
}
|
|
378
378
|
});
|
|
379
379
|
}
|
|
@@ -383,8 +383,8 @@ var qe = { exports: {} };
|
|
|
383
383
|
*/
|
|
384
384
|
}, {
|
|
385
385
|
key: "defaultAction",
|
|
386
|
-
value: function(
|
|
387
|
-
return
|
|
386
|
+
value: function(g) {
|
|
387
|
+
return le("action", g);
|
|
388
388
|
}
|
|
389
389
|
/**
|
|
390
390
|
* Default `target` lookup function.
|
|
@@ -392,10 +392,10 @@ var qe = { exports: {} };
|
|
|
392
392
|
*/
|
|
393
393
|
}, {
|
|
394
394
|
key: "defaultTarget",
|
|
395
|
-
value: function(
|
|
396
|
-
var
|
|
397
|
-
if (
|
|
398
|
-
return document.querySelector(
|
|
395
|
+
value: function(g) {
|
|
396
|
+
var C = le("target", g);
|
|
397
|
+
if (C)
|
|
398
|
+
return document.querySelector(C);
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* Allow fire programmatically a copy action
|
|
@@ -409,8 +409,8 @@ var qe = { exports: {} };
|
|
|
409
409
|
* Default `text` lookup function.
|
|
410
410
|
* @param {Element} trigger
|
|
411
411
|
*/
|
|
412
|
-
value: function(
|
|
413
|
-
return
|
|
412
|
+
value: function(g) {
|
|
413
|
+
return le("text", g);
|
|
414
414
|
}
|
|
415
415
|
/**
|
|
416
416
|
* Destroy lifecycle.
|
|
@@ -422,11 +422,11 @@ var qe = { exports: {} };
|
|
|
422
422
|
}
|
|
423
423
|
}], [{
|
|
424
424
|
key: "copy",
|
|
425
|
-
value: function(
|
|
426
|
-
var
|
|
425
|
+
value: function(g) {
|
|
426
|
+
var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
427
427
|
container: document.body
|
|
428
428
|
};
|
|
429
|
-
return
|
|
429
|
+
return v(g, C);
|
|
430
430
|
}
|
|
431
431
|
/**
|
|
432
432
|
* Allow fire programmatically a cut action
|
|
@@ -435,8 +435,8 @@ var qe = { exports: {} };
|
|
|
435
435
|
*/
|
|
436
436
|
}, {
|
|
437
437
|
key: "cut",
|
|
438
|
-
value: function(
|
|
439
|
-
return
|
|
438
|
+
value: function(g) {
|
|
439
|
+
return f(g);
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
442
442
|
* Returns the support of the given action, or all actions if no action is
|
|
@@ -446,13 +446,13 @@ var qe = { exports: {} };
|
|
|
446
446
|
}, {
|
|
447
447
|
key: "isSupported",
|
|
448
448
|
value: function() {
|
|
449
|
-
var
|
|
450
|
-
return
|
|
451
|
-
N = N && !!document.queryCommandSupported(
|
|
449
|
+
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], C = typeof g == "string" ? [g] : g, N = !!document.queryCommandSupported;
|
|
450
|
+
return C.forEach(function(Q) {
|
|
451
|
+
N = N && !!document.queryCommandSupported(Q);
|
|
452
452
|
}), N;
|
|
453
453
|
}
|
|
454
|
-
}]),
|
|
455
|
-
}(
|
|
454
|
+
}]), l;
|
|
455
|
+
}(c()), De = Be;
|
|
456
456
|
}
|
|
457
457
|
),
|
|
458
458
|
/***/
|
|
@@ -464,11 +464,11 @@ var qe = { exports: {} };
|
|
|
464
464
|
var t = Element.prototype;
|
|
465
465
|
t.matches = t.matchesSelector || t.mozMatchesSelector || t.msMatchesSelector || t.oMatchesSelector || t.webkitMatchesSelector;
|
|
466
466
|
}
|
|
467
|
-
function o(
|
|
468
|
-
for (;
|
|
469
|
-
if (typeof
|
|
470
|
-
return
|
|
471
|
-
|
|
467
|
+
function o(c, d) {
|
|
468
|
+
for (; c && c.nodeType !== n; ) {
|
|
469
|
+
if (typeof c.matches == "function" && c.matches(d))
|
|
470
|
+
return c;
|
|
471
|
+
c = c.parentNode;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
a.exports = o;
|
|
@@ -479,25 +479,25 @@ var qe = { exports: {} };
|
|
|
479
479
|
/***/
|
|
480
480
|
function(a, n, t) {
|
|
481
481
|
var o = t(828);
|
|
482
|
-
function
|
|
483
|
-
var A =
|
|
484
|
-
return
|
|
482
|
+
function c(I, $, w, x, f) {
|
|
483
|
+
var A = _.apply(this, arguments);
|
|
484
|
+
return I.addEventListener(w, A, f), {
|
|
485
485
|
destroy: function() {
|
|
486
|
-
|
|
486
|
+
I.removeEventListener(w, A, f);
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
function
|
|
491
|
-
return typeof
|
|
492
|
-
return
|
|
490
|
+
function d(I, $, w, x, f) {
|
|
491
|
+
return typeof I.addEventListener == "function" ? c.apply(null, arguments) : typeof w == "function" ? c.bind(null, document).apply(null, arguments) : (typeof I == "string" && (I = document.querySelectorAll(I)), Array.prototype.map.call(I, function(A) {
|
|
492
|
+
return c(A, $, w, x, f);
|
|
493
493
|
}));
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
return function(
|
|
497
|
-
|
|
495
|
+
function _(I, $, w, x) {
|
|
496
|
+
return function(f) {
|
|
497
|
+
f.delegateTarget = o(f.target, $), f.delegateTarget && x.call(I, f);
|
|
498
498
|
};
|
|
499
499
|
}
|
|
500
|
-
a.exports =
|
|
500
|
+
a.exports = d;
|
|
501
501
|
}
|
|
502
502
|
),
|
|
503
503
|
/***/
|
|
@@ -521,44 +521,44 @@ var qe = { exports: {} };
|
|
|
521
521
|
370: (
|
|
522
522
|
/***/
|
|
523
523
|
function(a, n, t) {
|
|
524
|
-
var o = t(879),
|
|
525
|
-
function
|
|
526
|
-
if (!
|
|
524
|
+
var o = t(879), c = t(438);
|
|
525
|
+
function d(w, x, f) {
|
|
526
|
+
if (!w && !x && !f)
|
|
527
527
|
throw new Error("Missing required arguments");
|
|
528
|
-
if (!o.string(
|
|
528
|
+
if (!o.string(x))
|
|
529
529
|
throw new TypeError("Second argument must be a String");
|
|
530
|
-
if (!o.fn(
|
|
530
|
+
if (!o.fn(f))
|
|
531
531
|
throw new TypeError("Third argument must be a Function");
|
|
532
|
-
if (o.node(
|
|
533
|
-
return
|
|
534
|
-
if (o.nodeList(
|
|
535
|
-
return
|
|
536
|
-
if (o.string(
|
|
537
|
-
return
|
|
532
|
+
if (o.node(w))
|
|
533
|
+
return _(w, x, f);
|
|
534
|
+
if (o.nodeList(w))
|
|
535
|
+
return I(w, x, f);
|
|
536
|
+
if (o.string(w))
|
|
537
|
+
return $(w, x, f);
|
|
538
538
|
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
return
|
|
540
|
+
function _(w, x, f) {
|
|
541
|
+
return w.addEventListener(x, f), {
|
|
542
542
|
destroy: function() {
|
|
543
|
-
|
|
543
|
+
w.removeEventListener(x, f);
|
|
544
544
|
}
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
|
-
function
|
|
548
|
-
return Array.prototype.forEach.call(
|
|
549
|
-
A.addEventListener(
|
|
547
|
+
function I(w, x, f) {
|
|
548
|
+
return Array.prototype.forEach.call(w, function(A) {
|
|
549
|
+
A.addEventListener(x, f);
|
|
550
550
|
}), {
|
|
551
551
|
destroy: function() {
|
|
552
|
-
Array.prototype.forEach.call(
|
|
553
|
-
A.removeEventListener(
|
|
552
|
+
Array.prototype.forEach.call(w, function(A) {
|
|
553
|
+
A.removeEventListener(x, f);
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return
|
|
558
|
+
function $(w, x, f) {
|
|
559
|
+
return c(document.body, w, x, f);
|
|
560
560
|
}
|
|
561
|
-
a.exports =
|
|
561
|
+
a.exports = d;
|
|
562
562
|
}
|
|
563
563
|
),
|
|
564
564
|
/***/
|
|
@@ -570,12 +570,12 @@ var qe = { exports: {} };
|
|
|
570
570
|
if (t.nodeName === "SELECT")
|
|
571
571
|
t.focus(), o = t.value;
|
|
572
572
|
else if (t.nodeName === "INPUT" || t.nodeName === "TEXTAREA") {
|
|
573
|
-
var
|
|
574
|
-
|
|
573
|
+
var c = t.hasAttribute("readonly");
|
|
574
|
+
c || t.setAttribute("readonly", ""), t.select(), t.setSelectionRange(0, t.value.length), c || t.removeAttribute("readonly"), o = t.value;
|
|
575
575
|
} else {
|
|
576
576
|
t.hasAttribute("contenteditable") && t.focus();
|
|
577
|
-
var
|
|
578
|
-
|
|
577
|
+
var d = window.getSelection(), _ = document.createRange();
|
|
578
|
+
_.selectNodeContents(t), d.removeAllRanges(), d.addRange(_), o = d.toString();
|
|
579
579
|
}
|
|
580
580
|
return o;
|
|
581
581
|
}
|
|
@@ -589,42 +589,42 @@ var qe = { exports: {} };
|
|
|
589
589
|
function n() {
|
|
590
590
|
}
|
|
591
591
|
n.prototype = {
|
|
592
|
-
on: function(t, o,
|
|
593
|
-
var
|
|
594
|
-
return (
|
|
592
|
+
on: function(t, o, c) {
|
|
593
|
+
var d = this.e || (this.e = {});
|
|
594
|
+
return (d[t] || (d[t] = [])).push({
|
|
595
595
|
fn: o,
|
|
596
|
-
ctx:
|
|
596
|
+
ctx: c
|
|
597
597
|
}), this;
|
|
598
598
|
},
|
|
599
|
-
once: function(t, o,
|
|
600
|
-
var
|
|
601
|
-
function
|
|
602
|
-
|
|
599
|
+
once: function(t, o, c) {
|
|
600
|
+
var d = this;
|
|
601
|
+
function _() {
|
|
602
|
+
d.off(t, _), o.apply(c, arguments);
|
|
603
603
|
}
|
|
604
|
-
return
|
|
604
|
+
return _._ = o, this.on(t, _, c);
|
|
605
605
|
},
|
|
606
606
|
emit: function(t) {
|
|
607
|
-
var o = [].slice.call(arguments, 1),
|
|
608
|
-
for (
|
|
609
|
-
|
|
607
|
+
var o = [].slice.call(arguments, 1), c = ((this.e || (this.e = {}))[t] || []).slice(), d = 0, _ = c.length;
|
|
608
|
+
for (d; d < _; d++)
|
|
609
|
+
c[d].fn.apply(c[d].ctx, o);
|
|
610
610
|
return this;
|
|
611
611
|
},
|
|
612
612
|
off: function(t, o) {
|
|
613
|
-
var
|
|
614
|
-
if (
|
|
615
|
-
for (var
|
|
616
|
-
|
|
617
|
-
return
|
|
613
|
+
var c = this.e || (this.e = {}), d = c[t], _ = [];
|
|
614
|
+
if (d && o)
|
|
615
|
+
for (var I = 0, $ = d.length; I < $; I++)
|
|
616
|
+
d[I].fn !== o && d[I].fn._ !== o && _.push(d[I]);
|
|
617
|
+
return _.length ? c[t] = _ : delete c[t], this;
|
|
618
618
|
}
|
|
619
619
|
}, a.exports = n, a.exports.TinyEmitter = n;
|
|
620
620
|
}
|
|
621
621
|
)
|
|
622
622
|
/******/
|
|
623
|
-
},
|
|
624
|
-
function
|
|
625
|
-
if (
|
|
626
|
-
return
|
|
627
|
-
var n =
|
|
623
|
+
}, i = {};
|
|
624
|
+
function p(a) {
|
|
625
|
+
if (i[a])
|
|
626
|
+
return i[a].exports;
|
|
627
|
+
var n = i[a] = {
|
|
628
628
|
/******/
|
|
629
629
|
// no module.id needed
|
|
630
630
|
/******/
|
|
@@ -633,10 +633,10 @@ var qe = { exports: {} };
|
|
|
633
633
|
exports: {}
|
|
634
634
|
/******/
|
|
635
635
|
};
|
|
636
|
-
return r[a](n, n.exports,
|
|
636
|
+
return r[a](n, n.exports, p), n.exports;
|
|
637
637
|
}
|
|
638
638
|
return function() {
|
|
639
|
-
|
|
639
|
+
p.n = function(a) {
|
|
640
640
|
var n = a && a.__esModule ? (
|
|
641
641
|
/******/
|
|
642
642
|
function() {
|
|
@@ -648,44 +648,44 @@ var qe = { exports: {} };
|
|
|
648
648
|
return a;
|
|
649
649
|
}
|
|
650
650
|
);
|
|
651
|
-
return
|
|
651
|
+
return p.d(n, {
|
|
652
652
|
a: n
|
|
653
653
|
}), n;
|
|
654
654
|
};
|
|
655
655
|
}(), function() {
|
|
656
|
-
|
|
656
|
+
p.d = function(a, n) {
|
|
657
657
|
for (var t in n)
|
|
658
|
-
|
|
658
|
+
p.o(n, t) && !p.o(a, t) && Object.defineProperty(a, t, {
|
|
659
659
|
enumerable: !0,
|
|
660
660
|
get: n[t]
|
|
661
661
|
});
|
|
662
662
|
};
|
|
663
663
|
}(), function() {
|
|
664
|
-
|
|
664
|
+
p.o = function(a, n) {
|
|
665
665
|
return Object.prototype.hasOwnProperty.call(a, n);
|
|
666
666
|
};
|
|
667
|
-
}(),
|
|
667
|
+
}(), p(686);
|
|
668
668
|
}().default
|
|
669
669
|
);
|
|
670
670
|
});
|
|
671
|
-
})(
|
|
672
|
-
var
|
|
673
|
-
const
|
|
671
|
+
})(Oe);
|
|
672
|
+
var gt = Oe.exports;
|
|
673
|
+
const bt = /* @__PURE__ */ st(gt), ht = (e) => ({
|
|
674
674
|
toClipboard(u, r) {
|
|
675
|
-
return new Promise((
|
|
676
|
-
const a = document.createElement("button"), n = new
|
|
675
|
+
return new Promise((i, p) => {
|
|
676
|
+
const a = document.createElement("button"), n = new bt(a, {
|
|
677
677
|
text: () => u,
|
|
678
678
|
action: () => "copy",
|
|
679
679
|
container: r !== void 0 ? r : document.body
|
|
680
680
|
});
|
|
681
681
|
n.on("success", (t) => {
|
|
682
|
-
n.destroy(),
|
|
682
|
+
n.destroy(), i(t);
|
|
683
683
|
}), n.on("error", (t) => {
|
|
684
|
-
n.destroy(),
|
|
684
|
+
n.destroy(), p(t);
|
|
685
685
|
}), document.body.appendChild(a), a.click(), document.body.removeChild(a);
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
-
}),
|
|
688
|
+
}), kt = /* @__PURE__ */ B({
|
|
689
689
|
__name: "FeedbackClipboard",
|
|
690
690
|
props: {
|
|
691
691
|
value: {
|
|
@@ -700,30 +700,30 @@ const vt = /* @__PURE__ */ it(mt), gt = (e) => ({
|
|
|
700
700
|
},
|
|
701
701
|
setup(e) {
|
|
702
702
|
const u = e, r = L(!1), {
|
|
703
|
-
toClipboard:
|
|
704
|
-
} =
|
|
705
|
-
async function
|
|
703
|
+
toClipboard: i
|
|
704
|
+
} = ht();
|
|
705
|
+
async function p() {
|
|
706
706
|
try {
|
|
707
|
-
await
|
|
707
|
+
await i(u.value), Ie.success(u.message || "复制成功"), r.value = !0;
|
|
708
708
|
} catch (a) {
|
|
709
709
|
console.error(a);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
return (a, n) => (
|
|
712
|
+
return (a, n) => (S(), T(y($e), {
|
|
713
713
|
class: "icon",
|
|
714
714
|
icon: "mingcute:copy-2-line",
|
|
715
|
-
onClick:
|
|
715
|
+
onClick: p
|
|
716
716
|
}));
|
|
717
717
|
}
|
|
718
|
-
}),
|
|
718
|
+
}), qe = /* @__PURE__ */ H(kt, [["__scopeId", "data-v-fd869964"]]), _t = /* @__PURE__ */ B({
|
|
719
719
|
__name: "FeedbackRefresh",
|
|
720
720
|
setup(e) {
|
|
721
|
-
return (u, r) => (
|
|
721
|
+
return (u, r) => (S(), T(y($e), {
|
|
722
722
|
class: "icon",
|
|
723
723
|
icon: "mingcute:refresh-2-line"
|
|
724
724
|
}));
|
|
725
725
|
}
|
|
726
|
-
}),
|
|
726
|
+
}), xt = /* @__PURE__ */ H(_t, [["__scopeId", "data-v-a03acfef"]]), St = ["src"], _e = /* @__PURE__ */ B({
|
|
727
727
|
__name: "FeedbackBubbleEnd",
|
|
728
728
|
props: {
|
|
729
729
|
value: {
|
|
@@ -759,48 +759,48 @@ const vt = /* @__PURE__ */ it(mt), gt = (e) => ({
|
|
|
759
759
|
setup(e, {
|
|
760
760
|
emit: u
|
|
761
761
|
}) {
|
|
762
|
-
const r = e,
|
|
763
|
-
function
|
|
764
|
-
|
|
762
|
+
const r = e, i = u;
|
|
763
|
+
function p() {
|
|
764
|
+
i("refresh");
|
|
765
765
|
}
|
|
766
|
-
return (a, n) => (
|
|
766
|
+
return (a, n) => (S(), T(y(Ue), {
|
|
767
767
|
placement: "end",
|
|
768
|
-
style:
|
|
768
|
+
style: ne(r.bubbleStyle),
|
|
769
769
|
styles: {
|
|
770
770
|
content: {
|
|
771
771
|
padding: r.type === "image" ? "0px" : void 0
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
774
|
}, {
|
|
775
|
-
avatar: h(() => [
|
|
776
|
-
default: h(() => [
|
|
775
|
+
avatar: h(() => [E(y(Le), null, {
|
|
776
|
+
default: h(() => [P("img", {
|
|
777
777
|
alt: "avatar",
|
|
778
778
|
src: r.avatarUrl
|
|
779
|
-
}, null, 8,
|
|
779
|
+
}, null, 8, St)]),
|
|
780
780
|
_: 1
|
|
781
781
|
})]),
|
|
782
|
-
message: h(() => [r.type === "text" ? (
|
|
782
|
+
message: h(() => [r.type === "text" ? (S(), R(z, {
|
|
783
783
|
key: 0
|
|
784
|
-
}, [
|
|
784
|
+
}, [q(M(r.value), 1)], 64)) : r.type === "image" ? (S(), T(y(Ae), {
|
|
785
785
|
key: 1,
|
|
786
786
|
width: "100",
|
|
787
787
|
src: r.value,
|
|
788
788
|
"show-loader": ""
|
|
789
|
-
}, null, 8, ["src"])) :
|
|
790
|
-
footer: h(() => [
|
|
791
|
-
default: h(() => [r.showClipboard && r.type === "text" ? (
|
|
789
|
+
}, null, 8, ["src"])) : j("", !0)]),
|
|
790
|
+
footer: h(() => [E(y(Ee), null, {
|
|
791
|
+
default: h(() => [r.showClipboard && r.type === "text" ? (S(), T(qe, {
|
|
792
792
|
key: 0,
|
|
793
793
|
value: e.value
|
|
794
|
-
}, null, 8, ["value"])) :
|
|
794
|
+
}, null, 8, ["value"])) : j("", !0), r.showRefresh ? (S(), T(xt, {
|
|
795
795
|
key: 1,
|
|
796
|
-
onClick:
|
|
797
|
-
})) :
|
|
796
|
+
onClick: p
|
|
797
|
+
})) : j("", !0)]),
|
|
798
798
|
_: 1
|
|
799
799
|
})]),
|
|
800
800
|
_: 1
|
|
801
801
|
}, 8, ["style", "styles"]));
|
|
802
802
|
}
|
|
803
|
-
}),
|
|
803
|
+
}), Ct = ["src"], xe = /* @__PURE__ */ B({
|
|
804
804
|
__name: "FeedbackBubbleStart",
|
|
805
805
|
props: {
|
|
806
806
|
value: {
|
|
@@ -833,84 +833,120 @@ const vt = /* @__PURE__ */ it(mt), gt = (e) => ({
|
|
|
833
833
|
emit: u
|
|
834
834
|
}) {
|
|
835
835
|
const r = e;
|
|
836
|
-
return (
|
|
836
|
+
return (i, p) => (S(), T(y(Ue), {
|
|
837
837
|
placement: "start",
|
|
838
|
-
style:
|
|
838
|
+
style: ne(r.bubbleStyle),
|
|
839
839
|
styles: {
|
|
840
840
|
content: {
|
|
841
841
|
padding: r.type === "image" ? "0px" : void 0
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
}, {
|
|
845
|
-
avatar: h(() => [
|
|
846
|
-
default: h(() => [
|
|
845
|
+
avatar: h(() => [E(y(Le), null, {
|
|
846
|
+
default: h(() => [P("img", {
|
|
847
847
|
alt: "avatar",
|
|
848
848
|
src: r.avatarUrl
|
|
849
|
-
}, null, 8,
|
|
849
|
+
}, null, 8, Ct)]),
|
|
850
850
|
_: 1
|
|
851
851
|
})]),
|
|
852
|
-
message: h(() => [r.type === "text" ? (
|
|
852
|
+
message: h(() => [r.type === "text" ? (S(), R(z, {
|
|
853
853
|
key: 0
|
|
854
|
-
}, [
|
|
854
|
+
}, [q(M(r.value), 1)], 64)) : r.type === "image" ? (S(), T(y(Ae), {
|
|
855
855
|
key: 1,
|
|
856
856
|
width: "100",
|
|
857
857
|
src: r.value,
|
|
858
858
|
"show-loader": ""
|
|
859
|
-
}, null, 8, ["src"])) :
|
|
860
|
-
footer: h(() => [
|
|
861
|
-
default: h(() => [r.showClipboard && r.type === "text" ? (
|
|
859
|
+
}, null, 8, ["src"])) : j("", !0)]),
|
|
860
|
+
footer: h(() => [E(y(Ee), null, {
|
|
861
|
+
default: h(() => [r.showClipboard && r.type === "text" ? (S(), T(qe, {
|
|
862
862
|
key: 0,
|
|
863
863
|
value: r.value
|
|
864
|
-
}, null, 8, ["value"])) :
|
|
864
|
+
}, null, 8, ["value"])) : j("", !0)]),
|
|
865
865
|
_: 1
|
|
866
866
|
})]),
|
|
867
867
|
_: 1
|
|
868
868
|
}, 8, ["style", "styles"]));
|
|
869
869
|
}
|
|
870
870
|
});
|
|
871
|
-
function
|
|
872
|
-
|
|
871
|
+
function wt(e, u = {}) {
|
|
872
|
+
const {
|
|
873
|
+
interval: r = 2e3,
|
|
874
|
+
immediate: i = !1,
|
|
875
|
+
autoStart: p = !1
|
|
876
|
+
} = u, a = L(!1);
|
|
877
|
+
let n = null;
|
|
878
|
+
async function t() {
|
|
879
|
+
try {
|
|
880
|
+
await e();
|
|
881
|
+
} catch (_) {
|
|
882
|
+
console.error("轮询回调执行失败:", _);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
function o() {
|
|
886
|
+
if (a.value) {
|
|
887
|
+
console.warn("轮询已在运行中");
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
a.value = !0, i && t(), n = setInterval(t, r);
|
|
891
|
+
}
|
|
892
|
+
function c() {
|
|
893
|
+
n && (clearInterval(n), n = null), a.value = !1;
|
|
894
|
+
}
|
|
895
|
+
function d() {
|
|
896
|
+
c(), o();
|
|
897
|
+
}
|
|
898
|
+
return p && o(), je(() => {
|
|
899
|
+
c();
|
|
900
|
+
}), {
|
|
901
|
+
isPolling: a,
|
|
902
|
+
start: o,
|
|
903
|
+
stop: c,
|
|
904
|
+
restart: d
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
function It(e, u) {
|
|
908
|
+
return W({
|
|
873
909
|
url: `${e}/restfulApi/feedbackCenter/create`,
|
|
874
910
|
method: "post",
|
|
875
911
|
data: u
|
|
876
912
|
});
|
|
877
913
|
}
|
|
878
|
-
function
|
|
879
|
-
return
|
|
914
|
+
function Et(e, u) {
|
|
915
|
+
return W({
|
|
880
916
|
url: `${e}/restfulApi/feedbackCenter/findOne`,
|
|
881
917
|
method: "post",
|
|
882
918
|
data: u
|
|
883
919
|
});
|
|
884
920
|
}
|
|
885
|
-
function
|
|
886
|
-
return
|
|
921
|
+
function At(e, u) {
|
|
922
|
+
return W({
|
|
887
923
|
url: `${e}/restfulApi/feedbackCenter/own`,
|
|
888
924
|
method: "post",
|
|
889
925
|
data: u
|
|
890
926
|
});
|
|
891
927
|
}
|
|
892
928
|
function Se(e, u) {
|
|
893
|
-
return
|
|
929
|
+
return W({
|
|
894
930
|
url: `${e}/restfulApi/feedbackCenter/update/messages`,
|
|
895
931
|
method: "post",
|
|
896
932
|
data: u
|
|
897
933
|
});
|
|
898
934
|
}
|
|
899
|
-
function
|
|
900
|
-
return
|
|
935
|
+
function Lt(e, u) {
|
|
936
|
+
return W({
|
|
901
937
|
url: `${e}/restfulApi/messages/list/incremental`,
|
|
902
938
|
method: "post",
|
|
903
939
|
data: u
|
|
904
940
|
});
|
|
905
941
|
}
|
|
906
|
-
function
|
|
907
|
-
return
|
|
942
|
+
function Ut(e, u) {
|
|
943
|
+
return W({
|
|
908
944
|
url: `${e}/restfulApi/messages/list`,
|
|
909
945
|
method: "post",
|
|
910
946
|
data: u
|
|
911
947
|
});
|
|
912
948
|
}
|
|
913
|
-
const
|
|
949
|
+
const ye = [{
|
|
914
950
|
key: "bugReports",
|
|
915
951
|
label: "问题报告"
|
|
916
952
|
}, {
|
|
@@ -922,7 +958,7 @@ const pe = [{
|
|
|
922
958
|
}, {
|
|
923
959
|
key: "generalOpinions",
|
|
924
960
|
label: "一般意见"
|
|
925
|
-
}],
|
|
961
|
+
}], Ne = [{
|
|
926
962
|
key: "newFeedback",
|
|
927
963
|
label: "新建反馈"
|
|
928
964
|
}, {
|
|
@@ -931,14 +967,14 @@ const pe = [{
|
|
|
931
967
|
}, {
|
|
932
968
|
key: "done",
|
|
933
969
|
label: "已解决"
|
|
934
|
-
}],
|
|
970
|
+
}], $t = {
|
|
935
971
|
class: "FeedBackDetails"
|
|
936
|
-
},
|
|
972
|
+
}, Tt = {
|
|
937
973
|
class: "content"
|
|
938
|
-
},
|
|
974
|
+
}, Ft = {
|
|
939
975
|
key: 1,
|
|
940
976
|
class: "Bubbles"
|
|
941
|
-
},
|
|
977
|
+
}, Rt = /* @__PURE__ */ B({
|
|
942
978
|
__name: "FeedbackFeedBackDetails",
|
|
943
979
|
props: {
|
|
944
980
|
id: {
|
|
@@ -973,10 +1009,10 @@ const pe = [{
|
|
|
973
1009
|
}
|
|
974
1010
|
},
|
|
975
1011
|
setup(e) {
|
|
976
|
-
function u(
|
|
977
|
-
return
|
|
1012
|
+
function u(v) {
|
|
1013
|
+
return v === "inProgress" ? "orangered" : v === "done" ? "green" : "arcoblue";
|
|
978
1014
|
}
|
|
979
|
-
const r = L(""),
|
|
1015
|
+
const r = L(""), i = L(!1), p = [{
|
|
980
1016
|
key: "1",
|
|
981
1017
|
label: "如何补充更多信息",
|
|
982
1018
|
description: "请详细描述您的问题或需求,以便我们更好地为您服务。",
|
|
@@ -997,33 +1033,31 @@ const pe = [{
|
|
|
997
1033
|
}
|
|
998
1034
|
})
|
|
999
1035
|
}], a = L(null);
|
|
1000
|
-
function n(
|
|
1001
|
-
for (;
|
|
1002
|
-
const
|
|
1003
|
-
if ((
|
|
1004
|
-
return
|
|
1005
|
-
|
|
1036
|
+
function n(v) {
|
|
1037
|
+
for (; v; ) {
|
|
1038
|
+
const k = window.getComputedStyle(v).overflowY;
|
|
1039
|
+
if ((k === "auto" || k === "scroll") && v.scrollHeight > v.clientHeight)
|
|
1040
|
+
return v;
|
|
1041
|
+
v = v.parentElement;
|
|
1006
1042
|
}
|
|
1007
1043
|
return null;
|
|
1008
1044
|
}
|
|
1009
1045
|
const t = () => {
|
|
1010
|
-
var
|
|
1011
|
-
(
|
|
1046
|
+
var v;
|
|
1047
|
+
(v = a.value) == null || v.focus({
|
|
1012
1048
|
cursor: "end"
|
|
1013
|
-
}),
|
|
1014
|
-
var
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1017
|
-
top:
|
|
1049
|
+
}), K(() => {
|
|
1050
|
+
var D;
|
|
1051
|
+
const U = (D = a.value) == null ? void 0 : D.$el, k = n(U || null);
|
|
1052
|
+
k && k.scrollTo({
|
|
1053
|
+
top: k.scrollHeight,
|
|
1018
1054
|
behavior: "smooth"
|
|
1019
1055
|
});
|
|
1020
1056
|
});
|
|
1021
1057
|
}, o = e;
|
|
1022
|
-
function
|
|
1058
|
+
function c() {
|
|
1023
1059
|
}
|
|
1024
|
-
const
|
|
1025
|
-
let T = null;
|
|
1026
|
-
const _ = L({
|
|
1060
|
+
const d = L(!1), _ = L([]), I = L(void 0), $ = L({
|
|
1027
1061
|
id: void 0,
|
|
1028
1062
|
title: "",
|
|
1029
1063
|
description: "",
|
|
@@ -1031,225 +1065,218 @@ const pe = [{
|
|
|
1031
1065
|
status: "done",
|
|
1032
1066
|
reply: "",
|
|
1033
1067
|
createAt: ""
|
|
1034
|
-
}),
|
|
1068
|
+
}), w = () => {
|
|
1035
1069
|
const {
|
|
1036
|
-
uploadFile:
|
|
1037
|
-
} =
|
|
1070
|
+
uploadFile: v
|
|
1071
|
+
} = tt({
|
|
1038
1072
|
appId: o.appId,
|
|
1039
1073
|
bucketId: o.bucketId,
|
|
1040
1074
|
baseURL: o.prefixUrl,
|
|
1041
1075
|
bucket: o.bucket,
|
|
1042
1076
|
region: o.region
|
|
1043
|
-
}),
|
|
1044
|
-
|
|
1045
|
-
var
|
|
1046
|
-
const
|
|
1047
|
-
if (
|
|
1048
|
-
|
|
1077
|
+
}), U = document.createElement("input");
|
|
1078
|
+
U.type = "file", U.accept = "image/*", U.style.display = "none", document.body.append(U), U.addEventListener("change", async (k) => {
|
|
1079
|
+
var X;
|
|
1080
|
+
const O = (X = k.target.files) == null ? void 0 : X[0];
|
|
1081
|
+
if (O) {
|
|
1082
|
+
i.value = !0;
|
|
1049
1083
|
try {
|
|
1050
|
-
|
|
1051
|
-
file:
|
|
1052
|
-
onFileFinish(
|
|
1053
|
-
const
|
|
1084
|
+
v({
|
|
1085
|
+
file: O,
|
|
1086
|
+
onFileFinish(V, me, oe) {
|
|
1087
|
+
const ae = {
|
|
1054
1088
|
messageId: ke(),
|
|
1055
1089
|
senderRole: o.senderRole,
|
|
1056
1090
|
type: "image",
|
|
1057
|
-
key:
|
|
1058
|
-
},
|
|
1091
|
+
key: oe.Key
|
|
1092
|
+
}, ie = {
|
|
1059
1093
|
id: o.id,
|
|
1060
|
-
message:
|
|
1094
|
+
message: ae
|
|
1061
1095
|
};
|
|
1062
|
-
Se(o.prefixUrl,
|
|
1063
|
-
data:
|
|
1096
|
+
Se(o.prefixUrl, ie).then(({
|
|
1097
|
+
data: Y
|
|
1064
1098
|
}) => {
|
|
1065
|
-
|
|
1099
|
+
_.value.push(Y.message), typeof Y.message.seq == "number" && (I.value = Y.message.seq), K(() => {
|
|
1066
1100
|
t();
|
|
1067
|
-
}),
|
|
1101
|
+
}), i.value = !1;
|
|
1068
1102
|
}).catch(() => {
|
|
1069
|
-
|
|
1103
|
+
i.value = !1;
|
|
1070
1104
|
});
|
|
1071
1105
|
},
|
|
1072
|
-
onError(
|
|
1073
|
-
console.error("上传图片失败"),
|
|
1106
|
+
onError(V) {
|
|
1107
|
+
console.error("上传图片失败"), i.value = !1;
|
|
1074
1108
|
}
|
|
1075
1109
|
});
|
|
1076
|
-
} catch (
|
|
1077
|
-
console.error("上传图片失败",
|
|
1110
|
+
} catch (V) {
|
|
1111
|
+
console.error("上传图片失败", V), i.value = !1;
|
|
1078
1112
|
}
|
|
1079
1113
|
}
|
|
1080
|
-
|
|
1081
|
-
}),
|
|
1114
|
+
U.remove();
|
|
1115
|
+
}), U.click();
|
|
1082
1116
|
};
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1085
|
-
const
|
|
1117
|
+
function x(v) {
|
|
1118
|
+
i.value = !0;
|
|
1119
|
+
const k = {
|
|
1086
1120
|
messageId: ke(),
|
|
1087
1121
|
senderRole: o.senderRole,
|
|
1088
1122
|
type: "text",
|
|
1089
|
-
content:
|
|
1090
|
-
},
|
|
1123
|
+
content: v
|
|
1124
|
+
}, D = {
|
|
1091
1125
|
id: o.id,
|
|
1092
|
-
message:
|
|
1126
|
+
message: k
|
|
1093
1127
|
};
|
|
1094
|
-
Se(o.prefixUrl,
|
|
1095
|
-
data:
|
|
1128
|
+
Se(o.prefixUrl, D).then(({
|
|
1129
|
+
data: O
|
|
1096
1130
|
}) => {
|
|
1097
|
-
|
|
1131
|
+
i.value = !1, _.value.push(O.message), typeof O.message.seq == "number" && (I.value = O.message.seq), K(() => {
|
|
1098
1132
|
t();
|
|
1099
1133
|
}), r.value = "";
|
|
1100
1134
|
}).catch(() => {
|
|
1101
|
-
|
|
1135
|
+
i.value = !1;
|
|
1102
1136
|
});
|
|
1103
1137
|
}
|
|
1104
|
-
function
|
|
1105
|
-
|
|
1138
|
+
function f() {
|
|
1139
|
+
x(r.value);
|
|
1106
1140
|
}
|
|
1107
|
-
function
|
|
1108
|
-
|
|
1141
|
+
function A() {
|
|
1142
|
+
d.value = !0, Et(o.prefixUrl, {
|
|
1109
1143
|
id: o.id
|
|
1110
1144
|
}).then(async ({
|
|
1111
|
-
data:
|
|
1145
|
+
data: v
|
|
1112
1146
|
}) => {
|
|
1113
|
-
|
|
1147
|
+
d.value = !1, $.value = v, v.messages && v.messages.length > 0 && (_.value = v.messages, I.value = v.messages.at(-1).seq);
|
|
1114
1148
|
}).catch(() => {
|
|
1115
|
-
|
|
1149
|
+
d.value = !1;
|
|
1116
1150
|
});
|
|
1117
1151
|
}
|
|
1118
|
-
function
|
|
1119
|
-
|
|
1152
|
+
function F() {
|
|
1153
|
+
Lt(o.prefixUrl, {
|
|
1120
1154
|
id: o.id,
|
|
1121
|
-
lastSeq:
|
|
1155
|
+
lastSeq: I.value
|
|
1122
1156
|
}).then(async ({
|
|
1123
|
-
data:
|
|
1157
|
+
data: v
|
|
1124
1158
|
}) => {
|
|
1125
|
-
|
|
1159
|
+
v && v.messages && v.messages.length > 0 && (_.value.push(...v.messages), I.value = v.messages.at(-1).seq, K(() => {
|
|
1126
1160
|
t();
|
|
1127
1161
|
}));
|
|
1128
1162
|
}).catch(() => {
|
|
1129
1163
|
});
|
|
1130
1164
|
}
|
|
1131
|
-
function
|
|
1132
|
-
|
|
1165
|
+
function re() {
|
|
1166
|
+
d.value = !0, Ut(o.prefixUrl, {
|
|
1133
1167
|
id: o.id
|
|
1134
1168
|
}).then(async ({
|
|
1135
|
-
data:
|
|
1169
|
+
data: v
|
|
1136
1170
|
}) => {
|
|
1137
|
-
|
|
1171
|
+
d.value = !1, v && v.messages && v.messages.length > 0 && (_.value.push(...v.messages), I.value = v.messages.at(-1).seq, K(() => {
|
|
1138
1172
|
t();
|
|
1139
1173
|
}));
|
|
1140
1174
|
}).catch(() => {
|
|
1141
|
-
|
|
1175
|
+
d.value = !1;
|
|
1142
1176
|
});
|
|
1143
1177
|
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
}
|
|
1149
|
-
function ae() {
|
|
1150
|
-
T && (clearInterval(T), T = null);
|
|
1151
|
-
}
|
|
1152
|
-
return je(() => {
|
|
1153
|
-
ae();
|
|
1154
|
-
}), Y(), F(), X(), (b, $) => (k(), R("div", At, [I(p(Me), {
|
|
1178
|
+
return wt(F, {
|
|
1179
|
+
interval: 2e3,
|
|
1180
|
+
autoStart: !0
|
|
1181
|
+
}), A(), re(), (v, U) => (S(), R("div", $t, [E(y(Me), {
|
|
1155
1182
|
title: "基本信息"
|
|
1156
1183
|
}, {
|
|
1157
|
-
title: h(() =>
|
|
1184
|
+
title: h(() => U[1] || (U[1] = [P("div", {
|
|
1158
1185
|
class: "title"
|
|
1159
1186
|
}, "沟通记录", -1)])),
|
|
1160
|
-
default: h(() => [
|
|
1187
|
+
default: h(() => [E(y(se), {
|
|
1161
1188
|
label: "标题:",
|
|
1162
1189
|
span: 3
|
|
1163
1190
|
}, {
|
|
1164
|
-
default: h(() => [
|
|
1191
|
+
default: h(() => [q(M($.value.title), 1)]),
|
|
1165
1192
|
_: 1
|
|
1166
|
-
}),
|
|
1193
|
+
}), E(y(se), {
|
|
1167
1194
|
label: "反馈类型:",
|
|
1168
1195
|
span: 1
|
|
1169
1196
|
}, {
|
|
1170
|
-
default: h(() => [
|
|
1197
|
+
default: h(() => [E(y(ee), {
|
|
1171
1198
|
color: "arcoblue"
|
|
1172
1199
|
}, {
|
|
1173
1200
|
default: h(() => {
|
|
1174
|
-
var
|
|
1175
|
-
return [
|
|
1201
|
+
var k;
|
|
1202
|
+
return [q(M((k = y(te)(y(ye), $.value.type)) == null ? void 0 : k.label), 1)];
|
|
1176
1203
|
}),
|
|
1177
1204
|
_: 1
|
|
1178
1205
|
})]),
|
|
1179
1206
|
_: 1
|
|
1180
|
-
}),
|
|
1207
|
+
}), E(y(se), {
|
|
1181
1208
|
label: "状态:",
|
|
1182
1209
|
span: 1
|
|
1183
1210
|
}, {
|
|
1184
|
-
default: h(() => [
|
|
1185
|
-
color: u(
|
|
1211
|
+
default: h(() => [E(y(ee), {
|
|
1212
|
+
color: u($.value.status)
|
|
1186
1213
|
}, {
|
|
1187
1214
|
default: h(() => {
|
|
1188
|
-
var
|
|
1189
|
-
return [
|
|
1215
|
+
var k;
|
|
1216
|
+
return [q(M((k = y(te)(y(Ne), $.value.status)) == null ? void 0 : k.label), 1)];
|
|
1190
1217
|
}),
|
|
1191
1218
|
_: 1
|
|
1192
1219
|
}, 8, ["color"])]),
|
|
1193
1220
|
_: 1
|
|
1194
1221
|
})]),
|
|
1195
1222
|
_: 1
|
|
1196
|
-
}),
|
|
1223
|
+
}), P("div", Tt, [U[2] || (U[2] = P("div", {
|
|
1197
1224
|
class: "title"
|
|
1198
|
-
}, "沟通记录", -1)),
|
|
1225
|
+
}, "沟通记录", -1)), E(y(ze), {
|
|
1199
1226
|
class: "messageContent",
|
|
1200
|
-
loading:
|
|
1227
|
+
loading: d.value
|
|
1201
1228
|
}, {
|
|
1202
|
-
default: h(() => [
|
|
1229
|
+
default: h(() => [_.value.length == 0 ? (S(), T(y(at), {
|
|
1203
1230
|
key: 0,
|
|
1204
1231
|
title: "☕️ 温馨提示!",
|
|
1205
|
-
items:
|
|
1232
|
+
items: p,
|
|
1206
1233
|
wrap: "",
|
|
1207
1234
|
vertical: !1,
|
|
1208
|
-
onOnItemClick:
|
|
1209
|
-
})) : (
|
|
1210
|
-
key:
|
|
1211
|
-
}, [
|
|
1235
|
+
onOnItemClick: c
|
|
1236
|
+
})) : (S(), R("div", Ft, [(S(!0), R(z, null, we(_.value, (k, D) => (S(), R(z, {
|
|
1237
|
+
key: D
|
|
1238
|
+
}, [k.type === "text" ? (S(), R(z, {
|
|
1212
1239
|
key: 0
|
|
1213
|
-
}, [
|
|
1240
|
+
}, [k.senderRole !== o.senderRole ? (S(), T(xe, {
|
|
1214
1241
|
key: 0,
|
|
1215
|
-
value:
|
|
1216
|
-
type:
|
|
1217
|
-
"avatar-url":
|
|
1218
|
-
}, null, 8, ["value", "type", "avatar-url"])) : (
|
|
1242
|
+
value: k.content,
|
|
1243
|
+
type: k.type,
|
|
1244
|
+
"avatar-url": k.senderInfo.avatarUrl
|
|
1245
|
+
}, null, 8, ["value", "type", "avatar-url"])) : (S(), T(_e, {
|
|
1219
1246
|
key: 1,
|
|
1220
|
-
value:
|
|
1221
|
-
"avatar-url":
|
|
1222
|
-
type:
|
|
1223
|
-
}, null, 8, ["value", "avatar-url", "type"]))], 64)) : (
|
|
1247
|
+
value: k.content,
|
|
1248
|
+
"avatar-url": k.senderInfo.avatarUrl,
|
|
1249
|
+
type: k.type
|
|
1250
|
+
}, null, 8, ["value", "avatar-url", "type"]))], 64)) : (S(), R(z, {
|
|
1224
1251
|
key: 1
|
|
1225
|
-
}, [
|
|
1252
|
+
}, [k.senderRole !== o.senderRole ? (S(), T(xe, {
|
|
1226
1253
|
key: 0,
|
|
1227
|
-
type:
|
|
1228
|
-
value:
|
|
1254
|
+
type: k.type,
|
|
1255
|
+
value: k.url,
|
|
1229
1256
|
"avatar-text": "S",
|
|
1230
|
-
"avatar-url":
|
|
1231
|
-
}, null, 8, ["type", "value", "avatar-url"])) : (
|
|
1257
|
+
"avatar-url": k.senderInfo.avatarUrl
|
|
1258
|
+
}, null, 8, ["type", "value", "avatar-url"])) : (S(), T(_e, {
|
|
1232
1259
|
key: 1,
|
|
1233
|
-
type:
|
|
1234
|
-
value:
|
|
1235
|
-
"avatar-url":
|
|
1236
|
-
}, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))])),
|
|
1260
|
+
type: k.type,
|
|
1261
|
+
value: k.url,
|
|
1262
|
+
"avatar-url": k.senderInfo.avatarUrl
|
|
1263
|
+
}, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))])), E(y(it), {
|
|
1237
1264
|
ref_key: "senderRef",
|
|
1238
1265
|
ref: a,
|
|
1239
1266
|
value: r.value,
|
|
1240
|
-
"onUpdate:value":
|
|
1267
|
+
"onUpdate:value": U[0] || (U[0] = (k) => r.value = k),
|
|
1241
1268
|
placeholder: "请输入你要咨询的问题?",
|
|
1242
|
-
loading:
|
|
1269
|
+
loading: i.value,
|
|
1243
1270
|
"allow-speech": !1,
|
|
1244
|
-
"read-only":
|
|
1245
|
-
onSubmit:
|
|
1271
|
+
"read-only": i.value,
|
|
1272
|
+
onSubmit: f
|
|
1246
1273
|
}, {
|
|
1247
|
-
prefix: h(() => [
|
|
1274
|
+
prefix: h(() => [E(y(pe), {
|
|
1248
1275
|
type: "text",
|
|
1249
1276
|
class: "IconLink",
|
|
1250
|
-
onClick:
|
|
1277
|
+
onClick: w
|
|
1251
1278
|
}, {
|
|
1252
|
-
icon: h(() => [
|
|
1279
|
+
icon: h(() => [E(y(mt))]),
|
|
1253
1280
|
_: 1
|
|
1254
1281
|
})]),
|
|
1255
1282
|
_: 1
|
|
@@ -1257,9 +1284,22 @@ const pe = [{
|
|
|
1257
1284
|
_: 1
|
|
1258
1285
|
}, 8, ["loading"])])]));
|
|
1259
1286
|
}
|
|
1260
|
-
}),
|
|
1287
|
+
}), Ot = /* @__PURE__ */ H(Rt, [["__scopeId", "data-v-a5d73724"]]);
|
|
1288
|
+
function fe(e, u) {
|
|
1289
|
+
const {
|
|
1290
|
+
config: r
|
|
1291
|
+
} = nt(), i = r.value[e];
|
|
1292
|
+
return i !== void 0 ? i : {
|
|
1293
|
+
appId: "",
|
|
1294
|
+
bucketId: "",
|
|
1295
|
+
prefixUrl: "/api",
|
|
1296
|
+
bucket: "",
|
|
1297
|
+
region: "ap-beijing"
|
|
1298
|
+
}[e];
|
|
1299
|
+
}
|
|
1300
|
+
const qt = {
|
|
1261
1301
|
class: "FeedBackFrom"
|
|
1262
|
-
},
|
|
1302
|
+
}, Nt = /* @__PURE__ */ B({
|
|
1263
1303
|
__name: "FeedbackFeedBackFrom",
|
|
1264
1304
|
props: {
|
|
1265
1305
|
appId: {
|
|
@@ -1275,40 +1315,40 @@ const pe = [{
|
|
|
1275
1315
|
setup(e, {
|
|
1276
1316
|
emit: u
|
|
1277
1317
|
}) {
|
|
1278
|
-
const r = u,
|
|
1318
|
+
const r = u, i = L(), p = L(!1), a = e, n = L({
|
|
1279
1319
|
id: void 0,
|
|
1280
1320
|
title: "",
|
|
1281
1321
|
type: "bugReports",
|
|
1282
1322
|
description: "",
|
|
1283
1323
|
screenshots: []
|
|
1284
1324
|
});
|
|
1285
|
-
L([]), a.appId;
|
|
1325
|
+
L([]), a.appId, fe("bucketId"), fe("bucket"), fe("region");
|
|
1286
1326
|
function t() {
|
|
1287
|
-
|
|
1327
|
+
i.value.validate().then((o) => {
|
|
1288
1328
|
if (!o) {
|
|
1289
|
-
|
|
1290
|
-
const
|
|
1329
|
+
p.value = !0, console.log("create");
|
|
1330
|
+
const c = {
|
|
1291
1331
|
title: n.value.title,
|
|
1292
1332
|
type: n.value.type,
|
|
1293
1333
|
description: n.value.description,
|
|
1294
1334
|
screenshots: n.value.screenshots
|
|
1295
1335
|
};
|
|
1296
|
-
|
|
1297
|
-
|
|
1336
|
+
It(a.prefixUrl, c).then(() => {
|
|
1337
|
+
p.value = !1, Ie.success("新建反馈成功"), r("confirm");
|
|
1298
1338
|
}).catch(() => {
|
|
1299
|
-
|
|
1339
|
+
p.value = !1;
|
|
1300
1340
|
});
|
|
1301
1341
|
}
|
|
1302
1342
|
});
|
|
1303
1343
|
}
|
|
1304
|
-
return (o,
|
|
1344
|
+
return (o, c) => (S(), R("div", qt, [E(y(Ve), {
|
|
1305
1345
|
ref_key: "formRef",
|
|
1306
|
-
ref:
|
|
1346
|
+
ref: i,
|
|
1307
1347
|
model: n.value,
|
|
1308
1348
|
"auto-label-width": "",
|
|
1309
1349
|
layout: "vertical"
|
|
1310
1350
|
}, {
|
|
1311
|
-
default: h(() => [
|
|
1351
|
+
default: h(() => [E(y(ue), {
|
|
1312
1352
|
field: "title",
|
|
1313
1353
|
label: "标题",
|
|
1314
1354
|
rules: [{
|
|
@@ -1316,13 +1356,13 @@ const pe = [{
|
|
|
1316
1356
|
message: "请输入标题"
|
|
1317
1357
|
}]
|
|
1318
1358
|
}, {
|
|
1319
|
-
default: h(() => [
|
|
1359
|
+
default: h(() => [E(y(We), {
|
|
1320
1360
|
modelValue: n.value.title,
|
|
1321
|
-
"onUpdate:modelValue":
|
|
1361
|
+
"onUpdate:modelValue": c[0] || (c[0] = (d) => n.value.title = d),
|
|
1322
1362
|
placeholder: "请输入标题"
|
|
1323
1363
|
}, null, 8, ["modelValue"])]),
|
|
1324
1364
|
_: 1
|
|
1325
|
-
}),
|
|
1365
|
+
}), E(y(ue), {
|
|
1326
1366
|
field: "type",
|
|
1327
1367
|
label: "反馈类型",
|
|
1328
1368
|
rules: [{
|
|
@@ -1330,22 +1370,22 @@ const pe = [{
|
|
|
1330
1370
|
message: "请选择反馈类型"
|
|
1331
1371
|
}]
|
|
1332
1372
|
}, {
|
|
1333
|
-
default: h(() => [
|
|
1373
|
+
default: h(() => [E(y(He), {
|
|
1334
1374
|
modelValue: n.value.type,
|
|
1335
|
-
"onUpdate:modelValue":
|
|
1375
|
+
"onUpdate:modelValue": c[1] || (c[1] = (d) => n.value.type = d),
|
|
1336
1376
|
placeholder: "请选择反馈类型"
|
|
1337
1377
|
}, {
|
|
1338
|
-
default: h(() => [(
|
|
1339
|
-
key:
|
|
1340
|
-
value:
|
|
1378
|
+
default: h(() => [(S(!0), R(z, null, we(y(ye), (d, _) => (S(), T(y(Ye), {
|
|
1379
|
+
key: _,
|
|
1380
|
+
value: d.key
|
|
1341
1381
|
}, {
|
|
1342
|
-
default: h(() => [
|
|
1382
|
+
default: h(() => [q(M(d.label), 1)]),
|
|
1343
1383
|
_: 2
|
|
1344
1384
|
}, 1032, ["value"]))), 128))]),
|
|
1345
1385
|
_: 1
|
|
1346
1386
|
}, 8, ["modelValue"])]),
|
|
1347
1387
|
_: 1
|
|
1348
|
-
}),
|
|
1388
|
+
}), E(y(ue), {
|
|
1349
1389
|
field: "description",
|
|
1350
1390
|
label: "问题描述",
|
|
1351
1391
|
rules: [{
|
|
@@ -1353,9 +1393,9 @@ const pe = [{
|
|
|
1353
1393
|
message: "请输入问题描述"
|
|
1354
1394
|
}]
|
|
1355
1395
|
}, {
|
|
1356
|
-
default: h(() => [
|
|
1396
|
+
default: h(() => [E(y(Ke), {
|
|
1357
1397
|
modelValue: n.value.description,
|
|
1358
|
-
"onUpdate:modelValue":
|
|
1398
|
+
"onUpdate:modelValue": c[2] || (c[2] = (d) => n.value.description = d),
|
|
1359
1399
|
placeholder: "请输入问题描述",
|
|
1360
1400
|
"allow-clear": "",
|
|
1361
1401
|
"auto-size": {
|
|
@@ -1363,62 +1403,24 @@ const pe = [{
|
|
|
1363
1403
|
}
|
|
1364
1404
|
}, null, 8, ["modelValue"])]),
|
|
1365
1405
|
_: 1
|
|
1366
|
-
}),
|
|
1367
|
-
loading:
|
|
1406
|
+
}), j("", !0), E(y(pe), {
|
|
1407
|
+
loading: p.value,
|
|
1368
1408
|
type: "primary",
|
|
1369
1409
|
onClick: t
|
|
1370
1410
|
}, {
|
|
1371
|
-
default: h(() =>
|
|
1411
|
+
default: h(() => c[3] || (c[3] = [q(" 提交 ")])),
|
|
1372
1412
|
_: 1,
|
|
1373
1413
|
__: [3]
|
|
1374
1414
|
}, 8, ["loading"])]),
|
|
1375
1415
|
_: 1
|
|
1376
1416
|
}, 8, ["model"])]));
|
|
1377
1417
|
}
|
|
1378
|
-
}),
|
|
1379
|
-
key: 0,
|
|
1380
|
-
class: "loading"
|
|
1381
|
-
}, Nt = {
|
|
1382
|
-
key: 1,
|
|
1383
|
-
class: "none"
|
|
1384
|
-
}, Bt = /* @__PURE__ */ D({
|
|
1385
|
-
__name: "InfiniteLoading",
|
|
1386
|
-
props: {
|
|
1387
|
-
loading: {
|
|
1388
|
-
type: Boolean,
|
|
1389
|
-
default: () => !1
|
|
1390
|
-
},
|
|
1391
|
-
finished: {
|
|
1392
|
-
type: Boolean,
|
|
1393
|
-
default: () => !1
|
|
1394
|
-
}
|
|
1395
|
-
},
|
|
1396
|
-
emits: ["infinite"],
|
|
1397
|
-
setup(e, {
|
|
1398
|
-
emit: u
|
|
1399
|
-
}) {
|
|
1400
|
-
const r = e, s = u, y = L(null);
|
|
1401
|
-
return nt(y, ([{
|
|
1402
|
-
isIntersecting: a
|
|
1403
|
-
}]) => {
|
|
1404
|
-
a && // 当loading和finished的值都为false时,就通知父组件调用方法继续向后台请求数据
|
|
1405
|
-
!r.loading && !r.finished && (console.log(a, "isIntersecting"), s("infinite"));
|
|
1406
|
-
}, {
|
|
1407
|
-
threshold: 0
|
|
1408
|
-
}), (a, n) => (k(), R("div", {
|
|
1409
|
-
ref_key: "container",
|
|
1410
|
-
ref: y,
|
|
1411
|
-
class: "infinite-loading"
|
|
1412
|
-
}, [e.loading ? (k(), R("div", qt, [I(p(Le), {
|
|
1413
|
-
tip: "数据加载中..."
|
|
1414
|
-
})])) : q("", !0), e.finished ? (k(), R("div", Nt, [q("", !0)])) : q("", !0)], 512));
|
|
1415
|
-
}
|
|
1416
|
-
}), Dt = /* @__PURE__ */ H(Bt, [["__scopeId", "data-v-c415f923"]]), Pt = {
|
|
1418
|
+
}), Pt = /* @__PURE__ */ H(Nt, [["__scopeId", "data-v-cfd11c62"]]), Bt = {
|
|
1417
1419
|
class: "messages"
|
|
1418
|
-
},
|
|
1420
|
+
}, Dt = {
|
|
1419
1421
|
key: 1,
|
|
1420
1422
|
class: "list"
|
|
1421
|
-
},
|
|
1423
|
+
}, jt = /* @__PURE__ */ B({
|
|
1422
1424
|
__name: "FeedbackFeedBackList",
|
|
1423
1425
|
props: {
|
|
1424
1426
|
appId: {
|
|
@@ -1446,18 +1448,18 @@ const pe = [{
|
|
|
1446
1448
|
setup(e, {
|
|
1447
1449
|
emit: u
|
|
1448
1450
|
}) {
|
|
1449
|
-
const r = e,
|
|
1451
|
+
const r = e, i = L(!0), p = L([]), a = L(!1), n = L(!1), t = L(""), o = L({
|
|
1450
1452
|
total: 0,
|
|
1451
1453
|
current: 1,
|
|
1452
1454
|
pageSize: 10
|
|
1453
1455
|
});
|
|
1454
|
-
function
|
|
1455
|
-
|
|
1456
|
+
function c() {
|
|
1457
|
+
i.value = !0;
|
|
1456
1458
|
}
|
|
1457
|
-
function
|
|
1458
|
-
console.log(
|
|
1459
|
+
function d(x) {
|
|
1460
|
+
console.log(x, "record"), t.value = x.id, i.value = !1;
|
|
1459
1461
|
}
|
|
1460
|
-
const
|
|
1462
|
+
const _ = [{
|
|
1461
1463
|
dataIndex: "id",
|
|
1462
1464
|
slotName: "id",
|
|
1463
1465
|
title: "ID",
|
|
@@ -1497,105 +1499,105 @@ const pe = [{
|
|
|
1497
1499
|
fixed: "right",
|
|
1498
1500
|
minWidth: 80
|
|
1499
1501
|
}];
|
|
1500
|
-
function
|
|
1501
|
-
return
|
|
1502
|
+
function I(x) {
|
|
1503
|
+
return x === "inProgress" ? "orangered" : x === "done" ? "green" : "arcoblue";
|
|
1502
1504
|
}
|
|
1503
|
-
function
|
|
1504
|
-
a.value = !0,
|
|
1505
|
+
function $() {
|
|
1506
|
+
a.value = !0, At(r.prefixUrl, {
|
|
1505
1507
|
current: o.value.current,
|
|
1506
1508
|
pageSize: o.value.pageSize
|
|
1507
1509
|
}).then(async ({
|
|
1508
|
-
data:
|
|
1510
|
+
data: x
|
|
1509
1511
|
}) => {
|
|
1510
|
-
a.value = !1,
|
|
1512
|
+
a.value = !1, x.items.forEach((f) => {
|
|
1511
1513
|
const A = {
|
|
1512
|
-
id:
|
|
1513
|
-
title:
|
|
1514
|
-
description:
|
|
1515
|
-
reply:
|
|
1516
|
-
type:
|
|
1517
|
-
status:
|
|
1518
|
-
createAt:
|
|
1514
|
+
id: f.id,
|
|
1515
|
+
title: f.title,
|
|
1516
|
+
description: f.description,
|
|
1517
|
+
reply: f.reply,
|
|
1518
|
+
type: f.type,
|
|
1519
|
+
status: f.status,
|
|
1520
|
+
createAt: f.createAt
|
|
1519
1521
|
};
|
|
1520
|
-
|
|
1521
|
-
}), o.value.total =
|
|
1522
|
+
p.value.push(A);
|
|
1523
|
+
}), o.value.total = x.count, o.value.current++, x.items.length === 0 && (n.value = !0);
|
|
1522
1524
|
}).catch(() => {
|
|
1523
1525
|
a.value = !1;
|
|
1524
1526
|
});
|
|
1525
1527
|
}
|
|
1526
|
-
function
|
|
1527
|
-
|
|
1528
|
+
function w() {
|
|
1529
|
+
$();
|
|
1528
1530
|
}
|
|
1529
|
-
return (
|
|
1531
|
+
return (x, f) => (S(), R("div", Bt, [i.value ? j("", !0) : (S(), T(y(Ge), {
|
|
1530
1532
|
key: 0,
|
|
1531
1533
|
style: {
|
|
1532
1534
|
"margin-bottom": "10px",
|
|
1533
1535
|
cursor: "pointer"
|
|
1534
1536
|
}
|
|
1535
1537
|
}, {
|
|
1536
|
-
default: h(() => [
|
|
1538
|
+
default: h(() => [E(y(ge), {
|
|
1537
1539
|
style: {
|
|
1538
1540
|
padding: "0px"
|
|
1539
1541
|
},
|
|
1540
|
-
onClick:
|
|
1542
|
+
onClick: c
|
|
1541
1543
|
}, {
|
|
1542
|
-
default: h(() =>
|
|
1544
|
+
default: h(() => f[0] || (f[0] = [q("我的反馈")])),
|
|
1543
1545
|
_: 1,
|
|
1544
1546
|
__: [0]
|
|
1545
|
-
}),
|
|
1547
|
+
}), E(y(ge), {
|
|
1546
1548
|
style: {
|
|
1547
1549
|
padding: "0px"
|
|
1548
1550
|
}
|
|
1549
1551
|
}, {
|
|
1550
|
-
default: h(() =>
|
|
1552
|
+
default: h(() => f[1] || (f[1] = [q("反馈详情")])),
|
|
1551
1553
|
_: 1,
|
|
1552
1554
|
__: [1]
|
|
1553
1555
|
})]),
|
|
1554
1556
|
_: 1
|
|
1555
|
-
})),
|
|
1556
|
-
columns:
|
|
1557
|
-
data:
|
|
1557
|
+
})), i.value ? (S(), R("div", Dt, [E(ot, {
|
|
1558
|
+
columns: _,
|
|
1559
|
+
data: p.value,
|
|
1558
1560
|
loading: a.value,
|
|
1559
1561
|
pagination: null
|
|
1560
1562
|
}, {
|
|
1561
1563
|
type: h(({
|
|
1562
1564
|
record: A
|
|
1563
|
-
}) => [
|
|
1565
|
+
}) => [E(y(ee), {
|
|
1564
1566
|
color: "arcoblue"
|
|
1565
1567
|
}, {
|
|
1566
1568
|
default: h(() => {
|
|
1567
1569
|
var F;
|
|
1568
|
-
return [
|
|
1570
|
+
return [q(M((F = y(te)(y(ye), A.type)) == null ? void 0 : F.label), 1)];
|
|
1569
1571
|
}),
|
|
1570
1572
|
_: 2
|
|
1571
1573
|
}, 1024)]),
|
|
1572
1574
|
status: h(({
|
|
1573
1575
|
record: A
|
|
1574
|
-
}) => [
|
|
1575
|
-
color:
|
|
1576
|
+
}) => [E(y(ee), {
|
|
1577
|
+
color: I(A.status)
|
|
1576
1578
|
}, {
|
|
1577
1579
|
default: h(() => {
|
|
1578
1580
|
var F;
|
|
1579
|
-
return [
|
|
1581
|
+
return [q(M((F = y(te)(y(Ne), A.status)) == null ? void 0 : F.label), 1)];
|
|
1580
1582
|
}),
|
|
1581
1583
|
_: 2
|
|
1582
1584
|
}, 1032, ["color"])]),
|
|
1583
1585
|
actions: h(({
|
|
1584
1586
|
record: A
|
|
1585
|
-
}) => [
|
|
1587
|
+
}) => [E(y(pe), {
|
|
1586
1588
|
type: "text",
|
|
1587
|
-
onClick: (F) =>
|
|
1589
|
+
onClick: (F) => d(A)
|
|
1588
1590
|
}, {
|
|
1589
|
-
default: h(() =>
|
|
1591
|
+
default: h(() => f[2] || (f[2] = [q("查看")])),
|
|
1590
1592
|
_: 2,
|
|
1591
1593
|
__: [2]
|
|
1592
1594
|
}, 1032, ["onClick"])]),
|
|
1593
1595
|
_: 1
|
|
1594
|
-
}, 8, ["data", "loading"]),
|
|
1596
|
+
}, 8, ["data", "loading"]), E(rt, {
|
|
1595
1597
|
loading: a.value,
|
|
1596
1598
|
finished: n.value,
|
|
1597
|
-
onInfinite:
|
|
1598
|
-
}, null, 8, ["loading", "finished"])])) : (
|
|
1599
|
+
onInfinite: w
|
|
1600
|
+
}, null, 8, ["loading", "finished"])])) : (S(), T(Ot, {
|
|
1599
1601
|
key: 2,
|
|
1600
1602
|
id: t.value,
|
|
1601
1603
|
"app-id": r.appId,
|
|
@@ -1606,13 +1608,13 @@ const pe = [{
|
|
|
1606
1608
|
region: r.region
|
|
1607
1609
|
}, null, 8, ["id", "app-id", "prefix-url", "bucket-id", "bucket", "region"]))]));
|
|
1608
1610
|
}
|
|
1609
|
-
}),
|
|
1611
|
+
}), Mt = /* @__PURE__ */ H(jt, [["__scopeId", "data-v-44e93219"]]), zt = {
|
|
1610
1612
|
class: "content"
|
|
1611
|
-
},
|
|
1613
|
+
}, Vt = {
|
|
1612
1614
|
class: "left"
|
|
1613
|
-
},
|
|
1615
|
+
}, Wt = {
|
|
1614
1616
|
class: "right"
|
|
1615
|
-
},
|
|
1617
|
+
}, Ht = /* @__PURE__ */ B({
|
|
1616
1618
|
__name: "FeedbackFeedBackModal",
|
|
1617
1619
|
props: {
|
|
1618
1620
|
appId: {
|
|
@@ -1641,11 +1643,11 @@ const pe = [{
|
|
|
1641
1643
|
expose: u,
|
|
1642
1644
|
emit: r
|
|
1643
1645
|
}) {
|
|
1644
|
-
const
|
|
1646
|
+
const i = L(!1), p = e, a = r;
|
|
1645
1647
|
function n() {
|
|
1646
1648
|
a("cancel");
|
|
1647
1649
|
}
|
|
1648
|
-
const t = L(["FeedbackList"]), o = L(["功能变更"]),
|
|
1650
|
+
const t = L(["FeedbackList"]), o = L(["功能变更"]), c = L([{
|
|
1649
1651
|
name: "我的反馈",
|
|
1650
1652
|
path: "FeedbackList",
|
|
1651
1653
|
meta: {
|
|
@@ -1657,25 +1659,25 @@ const pe = [{
|
|
|
1657
1659
|
meta: {
|
|
1658
1660
|
icon: "mingcute:cube-3d-fill"
|
|
1659
1661
|
}
|
|
1660
|
-
}]),
|
|
1661
|
-
function
|
|
1662
|
+
}]), d = L(!1), _ = G(() => t.value.length !== 0 ? t.value[0] : "");
|
|
1663
|
+
function I() {
|
|
1662
1664
|
t.value = ["FeedbackList"];
|
|
1663
1665
|
}
|
|
1664
|
-
function
|
|
1665
|
-
|
|
1666
|
+
function $() {
|
|
1667
|
+
d.value = !1;
|
|
1666
1668
|
}
|
|
1667
|
-
function
|
|
1668
|
-
const F =
|
|
1669
|
-
console.log(F, A, "lokokoko"), t.value = [F], o.value =
|
|
1669
|
+
function w(f, A) {
|
|
1670
|
+
const F = f.path;
|
|
1671
|
+
console.log(F, A, "lokokoko"), t.value = [F], o.value = f.name;
|
|
1670
1672
|
}
|
|
1671
|
-
function
|
|
1672
|
-
|
|
1673
|
+
function x(f) {
|
|
1674
|
+
i.value = f;
|
|
1673
1675
|
}
|
|
1674
1676
|
return u({
|
|
1675
|
-
setData:
|
|
1676
|
-
}), (
|
|
1677
|
-
visible:
|
|
1678
|
-
"onUpdate:visible": A[1] || (A[1] = (F) =>
|
|
1677
|
+
setData: x
|
|
1678
|
+
}), (f, A) => (S(), T(y(Xe), {
|
|
1679
|
+
visible: i.value,
|
|
1680
|
+
"onUpdate:visible": A[1] || (A[1] = (F) => i.value = F),
|
|
1679
1681
|
loading: !1,
|
|
1680
1682
|
"body-class": "AppMessagebodyClass",
|
|
1681
1683
|
"mask-closable": !1,
|
|
@@ -1685,47 +1687,46 @@ const pe = [{
|
|
|
1685
1687
|
"hide-title": !1,
|
|
1686
1688
|
onCancel: n
|
|
1687
1689
|
}, {
|
|
1688
|
-
default: h(() => [
|
|
1690
|
+
default: h(() => [P("div", zt, [P("div", Vt, [E(Je, {
|
|
1689
1691
|
"selected-keys": t.value,
|
|
1690
1692
|
"onUpdate:selectedKeys": A[0] || (A[0] = (F) => t.value = F),
|
|
1691
|
-
menus:
|
|
1692
|
-
onChange:
|
|
1693
|
-
}, null, 8, ["selected-keys", "menus"])]),
|
|
1693
|
+
menus: c.value,
|
|
1694
|
+
onChange: w
|
|
1695
|
+
}, null, 8, ["selected-keys", "menus"])]), P("div", Wt, [_.value === "FeedbackList" ? (S(), T(Mt, {
|
|
1694
1696
|
key: 0,
|
|
1695
|
-
"app-id":
|
|
1696
|
-
"prefix-url":
|
|
1697
|
-
"bucket-id":
|
|
1698
|
-
bucket:
|
|
1699
|
-
region:
|
|
1700
|
-
}, null, 8, ["app-id", "prefix-url", "bucket-id", "bucket", "region"])) :
|
|
1697
|
+
"app-id": p.appId,
|
|
1698
|
+
"prefix-url": p.prefixUrl,
|
|
1699
|
+
"bucket-id": p.bucketId,
|
|
1700
|
+
bucket: p.bucket,
|
|
1701
|
+
region: p.region
|
|
1702
|
+
}, null, 8, ["app-id", "prefix-url", "bucket-id", "bucket", "region"])) : j("", !0), _.value === "CreateFeedback" ? (S(), T(Pt, {
|
|
1701
1703
|
key: 1,
|
|
1702
|
-
"app-id":
|
|
1703
|
-
"prefix-url":
|
|
1704
|
-
onConfirm:
|
|
1705
|
-
}, null, 8, ["app-id", "prefix-url"])) :
|
|
1704
|
+
"app-id": p.appId,
|
|
1705
|
+
"prefix-url": p.prefixUrl,
|
|
1706
|
+
onConfirm: I
|
|
1707
|
+
}, null, 8, ["app-id", "prefix-url"])) : j("", !0)])]), E(y(Ze), {
|
|
1706
1708
|
width: 400,
|
|
1707
|
-
visible:
|
|
1709
|
+
visible: d.value,
|
|
1708
1710
|
"unmount-on-close": "",
|
|
1709
1711
|
footer: !1,
|
|
1710
1712
|
title: `${o.value}详情`,
|
|
1711
|
-
onCancel:
|
|
1713
|
+
onCancel: $
|
|
1712
1714
|
}, {
|
|
1713
|
-
default: h(() => A[2] || (A[2] = [
|
|
1715
|
+
default: h(() => A[2] || (A[2] = [P("div", null, " You can customize modal body text by the current situation. This modal will be closed immediately once you press the OK button. ", -1)])),
|
|
1714
1716
|
_: 1,
|
|
1715
1717
|
__: [2]
|
|
1716
1718
|
}, 8, ["visible", "title"])]),
|
|
1717
1719
|
_: 1
|
|
1718
1720
|
}, 8, ["visible"]));
|
|
1719
1721
|
}
|
|
1720
|
-
}),
|
|
1722
|
+
}), bn = /* @__PURE__ */ H(Ht, [["__scopeId", "data-v-ea23d687"]]);
|
|
1721
1723
|
export {
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
kt as R,
|
|
1724
|
+
qe as C,
|
|
1725
|
+
Ot as F,
|
|
1726
|
+
xt as R,
|
|
1726
1727
|
_e as _,
|
|
1727
1728
|
xe as a,
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1729
|
+
Pt as b,
|
|
1730
|
+
Mt as c,
|
|
1731
|
+
bn as d
|
|
1731
1732
|
};
|