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