@glodon-aiot/agent-cli-ui 3.5.0-alpha.2 → 3.5.0-alpha.4
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/es/Dialog/AgentChat/HistoryItem/FileItem/index.mjs +52 -48
- package/dist/es/Dialog/AgentChat/HistoryItem/SessionAction/index.mjs +112 -94
- package/dist/es/Dialog/AgentChat/HistoryItem/index.mjs +26 -24
- package/dist/es/Dialog/AgentChat/Tools/SessionListDrawer/HistorySessionList/index.mjs +65 -59
- package/dist/es/Dialog/AgentChat/Tools/UploadKnowledgeFiles/index.mjs +179 -161
- package/dist/es/Dialog/AgentChat/index.mjs +520 -465
- package/dist/es/Dialog/SessionList/index.mjs +105 -114
- package/dist/es/QuillEditor/index.mjs +72 -65
- package/dist/es/ReactTextGenerationUI/components/TextSiders/index.mjs +182 -170
- package/dist/es/components/Recommend/RecommendItem.mjs +20 -18
- package/dist/es/index.mjs +223 -214
- package/dist/es/packages/agent-cli-ui/package.json.mjs +3 -3
- package/dist/es/packages/react-components/dist/es/index.mjs +1 -1
- package/dist/es/src/style.css +1 -1
- package/dist/es/src/style10.css +1 -1
- package/dist/es/src/style11.css +1 -1
- package/dist/es/src/style12.css +1 -1
- package/dist/es/src/style13.css +1 -1
- package/dist/es/src/style14.css +1 -1
- package/dist/es/src/style15.css +1 -1
- package/dist/es/src/style16.css +1 -1
- package/dist/es/src/style17.css +1 -1
- package/dist/es/src/style18.css +1 -1
- package/dist/es/src/style19.css +1 -1
- package/dist/es/src/style20.css +1 -1
- package/dist/es/src/style21.css +1 -1
- package/dist/es/src/style22.css +1 -1
- package/dist/es/src/style23.css +1 -1
- package/dist/es/src/style24.css +1 -1
- package/dist/es/src/style25.css +1 -1
- package/dist/es/src/style26.css +1 -1
- package/dist/es/src/style27.css +1 -1
- package/dist/es/src/style28.css +1 -1
- package/dist/es/src/style29.css +1 -1
- package/dist/es/src/style3.css +1 -1
- package/dist/es/src/style30.css +1 -1
- package/dist/es/src/style31.css +1 -1
- package/dist/es/src/style32.css +1 -1
- package/dist/es/src/style33.css +1 -1
- package/dist/es/src/style4.css +1 -1
- package/dist/es/src/style7.css +1 -1
- package/dist/es/src/style8.css +1 -1
- package/dist/es/src/style9.css +1 -1
- package/dist/es/utils/antdConfig.mjs +15 -0
- package/dist/lib/index.css +1 -1
- package/dist/lib/index.js +57 -57
- package/dist/src/utils/antdConfig.d.ts +7 -0
- package/dist/src/utils/testAntdPrefix.d.ts +3 -0
- package/package.json +3 -3
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
var vt = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var Nt = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
2
|
+
var Z = Object.getOwnPropertySymbols;
|
|
3
|
+
var Nt = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var I = (N, m, e) => m in N ? vt(N, m, { enumerable: !0, configurable: !0, writable: !0, value: e }) : N[m] = e, tt = (N, m) => {
|
|
5
5
|
for (var e in m || (m = {}))
|
|
6
|
-
Nt.call(m, e) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
6
|
+
Nt.call(m, e) && I(N, e, m[e]);
|
|
7
|
+
if (Z)
|
|
8
|
+
for (var e of Z(m))
|
|
9
|
+
ut.call(m, e) && I(N, e, m[e]);
|
|
10
10
|
return N;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var A = (
|
|
12
|
+
var P = (N, m, e) => new Promise((n, b) => {
|
|
13
|
+
var A = (u) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
15
|
+
E(e.next(u));
|
|
16
16
|
} catch (j) {
|
|
17
|
-
|
|
17
|
+
b(j);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, F = (u) => {
|
|
20
20
|
try {
|
|
21
|
-
|
|
21
|
+
E(e.throw(u));
|
|
22
22
|
} catch (j) {
|
|
23
|
-
|
|
23
|
+
b(j);
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
|
|
25
|
+
}, E = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(A, F);
|
|
26
|
+
E((e = e.apply(N, m)).next());
|
|
27
27
|
});
|
|
28
|
-
import { jsx as r, jsxs as
|
|
29
|
-
import { forwardRef as
|
|
30
|
-
import { Button as bt, Typography as Et, Space as
|
|
28
|
+
import { jsx as r, jsxs as M } from "react/jsx-runtime";
|
|
29
|
+
import { forwardRef as gt, useState as x, useContext as kt, useEffect as Y, useImperativeHandle as wt, useMemo as At } from "react";
|
|
30
|
+
import { Button as bt, Typography as Et, Space as et, Popconfirm as at, Input as Ot } from "antd";
|
|
31
31
|
import h from "dayjs";
|
|
32
32
|
import Mt from "classnames";
|
|
33
|
-
import
|
|
33
|
+
import dt from "../../components/Iconfont/index.mjs";
|
|
34
34
|
import jt from "../../context.mjs";
|
|
35
|
-
/* empty css */import { useMemoizedFn as
|
|
36
|
-
import { NET_OPEN_STATUS as
|
|
37
|
-
import { useSessionState as
|
|
38
|
-
const
|
|
35
|
+
/* empty css */import { useMemoizedFn as ot } from "ahooks";
|
|
36
|
+
import { NET_OPEN_STATUS as it } from "../../constant.mjs";
|
|
37
|
+
import { useSessionState as Pt } from "../../hooks/useSessionState.mjs";
|
|
38
|
+
const B = 15, Lt = gt((N, m) => {
|
|
39
39
|
const {
|
|
40
40
|
currentSession: e,
|
|
41
41
|
setCurrentSession: n,
|
|
42
|
-
checkKnowledges:
|
|
42
|
+
checkKnowledges: b,
|
|
43
43
|
application: A,
|
|
44
|
-
networkStatus:
|
|
45
|
-
isShowHeader:
|
|
46
|
-
afterSessionClick:
|
|
44
|
+
networkStatus: F,
|
|
45
|
+
isShowHeader: E = !0,
|
|
46
|
+
afterSessionClick: u,
|
|
47
47
|
sessionId: j
|
|
48
|
-
} = N, [V, _] =
|
|
48
|
+
} = N, [V, _] = x(), {
|
|
49
49
|
agentClient: v,
|
|
50
|
-
mode:
|
|
50
|
+
mode: nt,
|
|
51
51
|
features: a
|
|
52
|
-
} = kt(jt), [
|
|
53
|
-
sessions:
|
|
52
|
+
} = kt(jt), [R, C] = x(b), {
|
|
53
|
+
sessions: L,
|
|
54
54
|
setSessions: S
|
|
55
|
-
} =
|
|
55
|
+
} = Pt(), [K, D] = x(0), [lt, T] = x(""), [ct, z] = x(null), G = ot((t) => {
|
|
56
56
|
t.id && S((d) => [...d.map((l) => {
|
|
57
57
|
var s;
|
|
58
|
-
return ((s = l.data) == null ? void 0 : s.id) === t.id && (l.data =
|
|
58
|
+
return ((s = l.data) == null ? void 0 : s.id) === t.id && (l.data = tt({}, t)), l;
|
|
59
59
|
})].sort((l, s) => {
|
|
60
60
|
var w, k;
|
|
61
|
-
const
|
|
62
|
-
return h((k = s.data) == null ? void 0 : k.createdAt).valueOf() -
|
|
61
|
+
const g = h((w = l.data) == null ? void 0 : w.createdAt).valueOf();
|
|
62
|
+
return h((k = s.data) == null ? void 0 : k.createdAt).valueOf() - g;
|
|
63
63
|
}));
|
|
64
64
|
});
|
|
65
65
|
Y(() => {
|
|
66
|
-
v == null || v.getSessions().then((t) =>
|
|
66
|
+
v == null || v.getSessions().then((t) => P(void 0, null, function* () {
|
|
67
67
|
var d;
|
|
68
|
-
if (S([...t]), !((d = e == null ? void 0 : e.data) != null && d.id) && (t != null && t.length) &&
|
|
68
|
+
if (S([...t]), !((d = e == null ? void 0 : e.data) != null && d.id) && (t != null && t.length) && nt === "inlay") {
|
|
69
69
|
const o = t[0];
|
|
70
70
|
j || n == null || n(o);
|
|
71
71
|
} else
|
|
@@ -73,71 +73,71 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
73
73
|
}));
|
|
74
74
|
}, []), Y(() => {
|
|
75
75
|
var t;
|
|
76
|
-
if (!((t = e == null ? void 0 : e.data) != null && t.id) &&
|
|
76
|
+
if (!((t = e == null ? void 0 : e.data) != null && t.id) && b === void 0) {
|
|
77
77
|
const d = typeof (a == null ? void 0 : a.knowledges) == "object" && a.knowledges.default || void 0;
|
|
78
78
|
C(d);
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
C(
|
|
82
|
-
}, [
|
|
83
|
-
e == null || e.addEventListener("data:updated",
|
|
81
|
+
C(b);
|
|
82
|
+
}, [b]), Y(() => {
|
|
83
|
+
e == null || e.addEventListener("data:updated", G);
|
|
84
84
|
}, [e]), wt(m, () => ({
|
|
85
85
|
create(t) {
|
|
86
|
-
return
|
|
86
|
+
return U(t).then((d) => (n == null || n(d), d));
|
|
87
87
|
},
|
|
88
|
-
list: () => Promise.resolve(
|
|
88
|
+
list: () => Promise.resolve(L)
|
|
89
89
|
}));
|
|
90
|
-
const
|
|
90
|
+
const U = (t) => {
|
|
91
91
|
const d = typeof (a == null ? void 0 : a.connectNetwork) == "object" && typeof (a == null ? void 0 : a.connectNetwork.default) == "boolean" ? a.connectNetwork.default : !1;
|
|
92
|
-
return new Promise((o) =>
|
|
92
|
+
return new Promise((o) => P(void 0, null, function* () {
|
|
93
93
|
var s;
|
|
94
94
|
const f = typeof (a == null ? void 0 : a.promptVariables) == "object" ? (a == null ? void 0 : a.promptVariables.default) || [] : void 0, l = yield v == null ? void 0 : v.loadSession("", {
|
|
95
95
|
name: t == null ? void 0 : t.name,
|
|
96
96
|
// @ts-ignore netOpen入参是number 响应是boolen
|
|
97
97
|
// 只有对话有联网 其它没有
|
|
98
98
|
// 不传netOpen会默认取defaultNetOpen
|
|
99
|
-
netOpen: (A == null ? void 0 : A.type) === 0 ? t != null && t.netOpen ? t.netOpen : d ?
|
|
100
|
-
knowledges: (s = e == null ? void 0 : e.data) != null && s.id ? t == null ? void 0 : t.knowledges :
|
|
99
|
+
netOpen: (A == null ? void 0 : A.type) === 0 ? t != null && t.netOpen ? t.netOpen : d ? it.OPEN : it.CLOSE : void 0,
|
|
100
|
+
knowledges: (s = e == null ? void 0 : e.data) != null && s.id ? t == null ? void 0 : t.knowledges : R,
|
|
101
101
|
promptVariables: f
|
|
102
102
|
});
|
|
103
|
-
l == null || l.addEventListener("data:created", () =>
|
|
104
|
-
S([l, ...
|
|
103
|
+
l == null || l.addEventListener("data:created", () => P(void 0, null, function* () {
|
|
104
|
+
S([l, ...L]), o(l);
|
|
105
105
|
}));
|
|
106
106
|
}));
|
|
107
107
|
}, st = () => {
|
|
108
|
-
|
|
109
|
-
knowledges:
|
|
108
|
+
U({
|
|
109
|
+
knowledges: R
|
|
110
110
|
}).then((t) => {
|
|
111
111
|
n == null || n(t);
|
|
112
112
|
});
|
|
113
113
|
}, rt = (t) => {
|
|
114
|
-
v == null || v.removeSession(t, !0).then(() =>
|
|
114
|
+
v == null || v.removeSession(t, !0).then(() => P(void 0, null, function* () {
|
|
115
115
|
var o, f;
|
|
116
|
-
const d =
|
|
117
|
-
var s,
|
|
118
|
-
return ((s = l.data) == null ? void 0 : s.id) !== ((
|
|
116
|
+
const d = L.filter((l) => {
|
|
117
|
+
var s, g;
|
|
118
|
+
return ((s = l.data) == null ? void 0 : s.id) !== ((g = t.data) == null ? void 0 : g.id);
|
|
119
119
|
});
|
|
120
120
|
((o = t.data) == null ? void 0 : o.id) === ((f = e == null ? void 0 : e.data) == null ? void 0 : f.id) && (d != null && d.length ? n == null || n(d[0]) : n == null || n(null)), S([...d]);
|
|
121
121
|
}));
|
|
122
122
|
}, mt = (t) => {
|
|
123
123
|
var d, o;
|
|
124
|
-
_((d = t.data) == null ? void 0 : d.name), T(""),
|
|
124
|
+
_((d = t.data) == null ? void 0 : d.name), T(""), z(((o = t.data) == null ? void 0 : o.id) || null);
|
|
125
125
|
}, pt = (t) => {
|
|
126
|
-
const d =
|
|
126
|
+
const d = q(V || "");
|
|
127
127
|
if (d) {
|
|
128
128
|
T(d);
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
t.rename(V.trim()), t == null || t.addEventListener("data:updated",
|
|
131
|
+
t.rename(V.trim()), t == null || t.addEventListener("data:updated", G), X();
|
|
132
132
|
}, ht = () => {
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
n == null || n(t),
|
|
133
|
+
X();
|
|
134
|
+
}, X = () => {
|
|
135
|
+
z(null), _(""), T(""), D((t) => t + 1);
|
|
136
|
+
}, q = (t) => !t || t.trim().length === 0 ? "会话名称不能为空" : t.length > B ? `不能超过${B}个字符` : "", ft = (t) => P(void 0, null, function* () {
|
|
137
|
+
n == null || n(t), u == null || u(t);
|
|
138
138
|
}), yt = (t) => {
|
|
139
139
|
const d = t.target.value;
|
|
140
|
-
_(d), T(
|
|
140
|
+
_(d), T(q(d));
|
|
141
141
|
};
|
|
142
142
|
Y(() => {
|
|
143
143
|
var d, o, f, l;
|
|
@@ -146,31 +146,31 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
146
146
|
const t = {};
|
|
147
147
|
typeof (a == null ? void 0 : a.knowledges) == "object" && ((d = a == null ? void 0 : a.knowledges) != null && d.default) && (t.knowledges = (o = a == null ? void 0 : a.knowledges) == null ? void 0 : o.default), typeof (a == null ? void 0 : a.promptVariables) == "object" && ((f = a == null ? void 0 : a.promptVariables) != null && f.default) && (t.promptVariables = (l = a == null ? void 0 : a.promptVariables) == null ? void 0 : l.default), v == null || v.loadSession(e.id, t);
|
|
148
148
|
}, [e]);
|
|
149
|
-
const
|
|
150
|
-
const d = h().endOf("day"), o = d.subtract(1, "day"), f = d.subtract(7, "day"), l = d.subtract(30, "day"), s = [],
|
|
149
|
+
const J = ot((t) => {
|
|
150
|
+
const d = h().endOf("day"), o = d.subtract(1, "day"), f = d.subtract(7, "day"), l = d.subtract(30, "day"), s = [], g = [], O = [], w = [], k = {};
|
|
151
151
|
return t.forEach((c) => {
|
|
152
152
|
var y;
|
|
153
153
|
const i = h((y = c.data) == null ? void 0 : y.createdAt);
|
|
154
154
|
if (i.isAfter(o))
|
|
155
|
-
|
|
155
|
+
g.push(c);
|
|
156
156
|
else if (i.isAfter(f))
|
|
157
|
-
|
|
157
|
+
O.push(c);
|
|
158
158
|
else if (i.isAfter(l))
|
|
159
159
|
w.push(c);
|
|
160
160
|
else {
|
|
161
161
|
const p = i.format("YYYY-MM");
|
|
162
162
|
k[p] || (k[p] = []), k[p].push(c);
|
|
163
163
|
}
|
|
164
|
-
}),
|
|
164
|
+
}), g.length > 0 && s.push({
|
|
165
165
|
title: "今天",
|
|
166
|
-
sessions:
|
|
166
|
+
sessions: g.sort((c, i) => {
|
|
167
167
|
var y, p;
|
|
168
168
|
return h((y = i.data) == null ? void 0 : y.createdAt).valueOf() - h((p = c.data) == null ? void 0 : p.createdAt).valueOf();
|
|
169
169
|
}),
|
|
170
170
|
key: "today"
|
|
171
|
-
}),
|
|
171
|
+
}), O.length > 0 && s.push({
|
|
172
172
|
title: "7天内",
|
|
173
|
-
sessions:
|
|
173
|
+
sessions: O.sort((c, i) => {
|
|
174
174
|
var y, p;
|
|
175
175
|
return h((y = i.data) == null ? void 0 : y.createdAt).valueOf() - h((p = c.data) == null ? void 0 : p.createdAt).valueOf();
|
|
176
176
|
}),
|
|
@@ -184,8 +184,8 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
184
184
|
key: "thirty-days"
|
|
185
185
|
}), Object.keys(k).sort((c, i) => i.localeCompare(c)).forEach((c) => {
|
|
186
186
|
const i = k[c].sort((y, p) => {
|
|
187
|
-
var
|
|
188
|
-
return h((
|
|
187
|
+
var Q, W;
|
|
188
|
+
return h((Q = p.data) == null ? void 0 : Q.createdAt).valueOf() - h((W = y.data) == null ? void 0 : W.createdAt).valueOf();
|
|
189
189
|
});
|
|
190
190
|
s.push({
|
|
191
191
|
title: h(c).format("YYYY年MM月"),
|
|
@@ -193,20 +193,20 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
193
193
|
key: `month-${c}`
|
|
194
194
|
});
|
|
195
195
|
}), s;
|
|
196
|
-
}),
|
|
196
|
+
}), $ = At(() => J(L), [L, J]);
|
|
197
197
|
return /* @__PURE__ */ r("div", {
|
|
198
198
|
className: "bot-session-container",
|
|
199
|
-
children: /* @__PURE__ */
|
|
199
|
+
children: /* @__PURE__ */ M("div", {
|
|
200
200
|
className: "agent-sessions",
|
|
201
|
-
children: [
|
|
201
|
+
children: [E && (a == null ? void 0 : a.siderTitle) && /* @__PURE__ */ r("div", {
|
|
202
202
|
className: "sessions-header",
|
|
203
203
|
children: /* @__PURE__ */ r("div", {
|
|
204
204
|
className: "session-header-title",
|
|
205
205
|
children: (A == null ? void 0 : A.name) || "-"
|
|
206
206
|
})
|
|
207
|
-
}), /* @__PURE__ */
|
|
207
|
+
}), /* @__PURE__ */ M("div", {
|
|
208
208
|
className: "sessions-main",
|
|
209
|
-
children: [
|
|
209
|
+
children: [E && /* @__PURE__ */ r("div", {
|
|
210
210
|
className: "session-header-btn-wrapper",
|
|
211
211
|
children: /* @__PURE__ */ r(bt, {
|
|
212
212
|
className: "session-header-btn",
|
|
@@ -214,18 +214,18 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
214
214
|
type: "primary",
|
|
215
215
|
children: "+ 新会话"
|
|
216
216
|
})
|
|
217
|
-
}),
|
|
217
|
+
}), $ == null ? void 0 : $.map((t) => {
|
|
218
218
|
var d;
|
|
219
|
-
return /* @__PURE__ */
|
|
219
|
+
return /* @__PURE__ */ M("div", {
|
|
220
220
|
className: "session-group",
|
|
221
221
|
children: [/* @__PURE__ */ r("div", {
|
|
222
222
|
className: "group-header",
|
|
223
223
|
style: {
|
|
224
|
-
top:
|
|
224
|
+
top: E ? 48 : 0
|
|
225
225
|
},
|
|
226
226
|
children: t.title
|
|
227
227
|
}), (d = t.sessions) == null ? void 0 : d.map((o) => {
|
|
228
|
-
var f, l, s,
|
|
228
|
+
var f, l, s, g, O, w, k, H, c;
|
|
229
229
|
return /* @__PURE__ */ r("div", {
|
|
230
230
|
className: Mt({
|
|
231
231
|
"session-item": !0,
|
|
@@ -234,7 +234,7 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
234
234
|
onClick: () => ft(o),
|
|
235
235
|
children: /* @__PURE__ */ r("div", {
|
|
236
236
|
className: "session-item-wrapper",
|
|
237
|
-
children: /* @__PURE__ */
|
|
237
|
+
children: /* @__PURE__ */ M("div", {
|
|
238
238
|
className: "session-item-top",
|
|
239
239
|
children: [/* @__PURE__ */ r(Et.Paragraph, {
|
|
240
240
|
className: "item-top-title",
|
|
@@ -249,39 +249,30 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
249
249
|
placement: "topLeft"
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
|
-
children: ((
|
|
253
|
-
}), /* @__PURE__ */
|
|
252
|
+
children: ((g = o.data) == null ? void 0 : g.name) || "-"
|
|
253
|
+
}), /* @__PURE__ */ M(et, {
|
|
254
254
|
children: [/* @__PURE__ */ r("span", {
|
|
255
255
|
className: "item-top-time",
|
|
256
|
-
children: h((
|
|
257
|
-
}), /* @__PURE__ */
|
|
256
|
+
children: h((O = o.data) == null ? void 0 : O.createdAt).format("MM/DD HH:mm:ss")
|
|
257
|
+
}), /* @__PURE__ */ M("div", {
|
|
258
258
|
className: "item-top-action",
|
|
259
259
|
onClick: (i) => i.stopPropagation(),
|
|
260
|
-
children: [/* @__PURE__ */ r(
|
|
260
|
+
children: [/* @__PURE__ */ r(at, {
|
|
261
261
|
open: ct === ((w = o.data) == null ? void 0 : w.id),
|
|
262
262
|
getPopupContainer: (i) => i.parentNode,
|
|
263
263
|
icon: !1,
|
|
264
|
-
title: /* @__PURE__ */
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
status: $ ? "error" : ""
|
|
273
|
-
}), $ && /* @__PURE__ */ r("div", {
|
|
274
|
-
style: {
|
|
275
|
-
color: "#ff4d4f",
|
|
276
|
-
fontSize: "12px",
|
|
277
|
-
marginTop: "4px"
|
|
278
|
-
},
|
|
279
|
-
children: $
|
|
280
|
-
})]
|
|
264
|
+
title: /* @__PURE__ */ r(Ot, {
|
|
265
|
+
placeholder: "请输入内容",
|
|
266
|
+
autoComplete: "off",
|
|
267
|
+
showCount: !0,
|
|
268
|
+
value: V,
|
|
269
|
+
onChange: yt,
|
|
270
|
+
maxLength: B,
|
|
271
|
+
status: lt ? "error" : ""
|
|
281
272
|
}),
|
|
282
273
|
onConfirm: () => pt(o),
|
|
283
274
|
onCancel: ht,
|
|
284
|
-
children: /* @__PURE__ */ r(
|
|
275
|
+
children: /* @__PURE__ */ r(dt, {
|
|
285
276
|
type: "icon-bianji2",
|
|
286
277
|
onClick: () => mt(o),
|
|
287
278
|
className: "icon-action",
|
|
@@ -289,10 +280,10 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
289
280
|
marginRight: "8px"
|
|
290
281
|
}
|
|
291
282
|
})
|
|
292
|
-
}, `edit-${(k = o.data) == null ? void 0 : k.id}-${K}`), /* @__PURE__ */ r(
|
|
283
|
+
}, `edit-${(k = o.data) == null ? void 0 : k.id}-${K}`), /* @__PURE__ */ r(at, {
|
|
293
284
|
getPopupContainer: (i) => i.parentNode,
|
|
294
285
|
icon: !1,
|
|
295
|
-
title: /* @__PURE__ */
|
|
286
|
+
title: /* @__PURE__ */ M(et, {
|
|
296
287
|
direction: "vertical",
|
|
297
288
|
children: [/* @__PURE__ */ r("div", {
|
|
298
289
|
children: "删除确认?"
|
|
@@ -306,14 +297,14 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
306
297
|
onCancel: () => {
|
|
307
298
|
D((i) => i + 1);
|
|
308
299
|
},
|
|
309
|
-
children: /* @__PURE__ */ r(
|
|
300
|
+
children: /* @__PURE__ */ r(dt, {
|
|
310
301
|
style: {
|
|
311
302
|
fontSize: "18px"
|
|
312
303
|
},
|
|
313
304
|
className: "icon-action",
|
|
314
305
|
type: "icon-del"
|
|
315
306
|
})
|
|
316
|
-
}, `delete-${(
|
|
307
|
+
}, `delete-${(H = o.data) == null ? void 0 : H.id}-${K}`)]
|
|
317
308
|
})]
|
|
318
309
|
})]
|
|
319
310
|
})
|
|
@@ -326,7 +317,7 @@ const F = 15, Pt = ut((N, m) => {
|
|
|
326
317
|
})
|
|
327
318
|
});
|
|
328
319
|
});
|
|
329
|
-
|
|
320
|
+
Lt.displayName = "SessionList";
|
|
330
321
|
export {
|
|
331
|
-
|
|
322
|
+
Lt as default
|
|
332
323
|
};
|