@yuku123/z-team-component 0.2.139 → 0.2.141
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/{AdminModuleContent-B1IJbLVN.js → AdminModuleContent-FFU5MUjw.js} +10526 -10697
- package/dist/{ChangeLogView-BVKf3AZn.js → ChangeLogView-C5v5uT8L.js} +1 -1
- package/dist/{ComponentDoc-BIX-e69A.js → ComponentDoc-DnZq0_Rk.js} +1318 -1313
- package/dist/{InvitationManagementPage-DRC_8AiO.js → InvitationManagementPage-dEBNe9_s.js} +1 -1
- package/dist/{OnboardingPage-B4GQTFCS.js → OnboardingPage-BW8WhBg5.js} +2 -2
- package/dist/ScheduledTasks-BaZ0_klE.js +12024 -0
- package/dist/SystemShell-I7vWo1XG.js +858 -0
- package/dist/{admin-logs-DK00NEUv.js → admin-logs-BDPC3Q_Y.js} +5 -5
- package/dist/{api-C_9xZbZr.js → api-BJ5jPWNm.js} +1 -1
- package/dist/{api-DBemNteG.js → api-U9U4zzq_.js} +1 -1
- package/dist/createWorkspaceWsHandler-B6TdD0Oz.js +11757 -0
- package/dist/{index-BGAG77Nt.js → index-BGZV4U3S.js} +1325 -1187
- package/dist/{CollabPersonalHost-BY6RqeQJ.js → index-BPEfgkzE.js} +3 -3
- package/dist/{index-BgCxUeRF.js → index-BXaJSMd0.js} +9 -9
- package/dist/{from-scenario-D8CIJLDn.js → index-Bfw6OE5L.js} +19 -20
- package/dist/index-BlDMnzJF.js +18 -0
- package/dist/{welcome-BBLRGBWu.js → index-BmlFIrWx.js} +1 -1
- package/dist/{build-by-form-CXxXrXvw.js → index-BwhK44Dc.js} +26 -27
- package/dist/{TrainingAdminShell-CgnQM4Nb.js → index-CP5raaOW.js} +780 -792
- package/dist/{docs-A-g6sqaE.js → index-CPpqideA.js} +1 -1
- package/dist/{index-BM6KEb8k.js → index-CToJEufJ.js} +1 -1
- package/dist/{common-Bcnlb4nY.js → index-CVgvlDAT.js} +17 -17
- package/dist/{admin-ryysUJ9z.js → index-CmzTSdmD.js} +30 -31
- package/dist/{Market-C2vkBzDr.js → index-CsNtBWH-.js} +2 -2
- package/dist/index-DIv1OJ_2.js +1840 -0
- package/dist/{chat-DKwMolQV.js → index-DKUg7Evq.js} +28 -29
- package/dist/{index-BlfOXOZM.js → index-DSXVCDf7.js} +9 -9
- package/dist/{OpsWorkbench-D8RF2p4X.js → index-Dd5RE_0a.js} +342 -389
- package/dist/index-DuZrrpXt.js +1298 -0
- package/dist/{from-ticket-D0oQPEf1.js → index-Gn0zdd5m.js} +2 -2
- package/dist/index-WWGxF0UX.js +136 -0
- package/dist/{change-log-CcmXtywx.js → index-XTNGZnrF.js} +1 -1
- package/dist/{KnowledgeGraphTab-BfhDEyvW.js → index-XgaiU13i.js} +1 -1
- package/dist/{scenario-DOpFkfNV.js → index-d6RIzlsj.js} +2 -2
- package/dist/{index-Bs_WMKyt.js → index-kjli87DO.js} +3895 -3964
- package/dist/{phone-BU4g7eHI.js → index-mDjl3m2W.js} +198 -192
- package/dist/{index-Dlf6mERD.js → index-nj-cjKsf.js} +1910 -1950
- package/dist/{WorkBuddyShell-DCrPpMd5.js → index-skl-gjj4.js} +6 -6
- package/dist/index.js +1 -1
- package/dist/instance-D_EP8AQm.js +116 -0
- package/dist/{menuPermission-C4EVCwjs.js → menuPermission-Bhnols4v.js} +3 -3
- package/dist/pages.js +1 -1
- package/dist/{send-default-agent-team-message-1L9Jv1eJ.js → send-default-agent-team-message-0RB1pYex.js} +1 -1
- package/dist/{training-BqYfINRR.js → training-B1eRX8g1.js} +1 -1
- package/dist/{webide-AknolY0B.js → webide-C4ThGZzY.js} +1161 -1317
- package/dist/z-team-component.css +1 -1
- package/package.json +5 -4
- package/dist/CognitionWorkbench-DrDFy5jN.js +0 -139
- package/dist/DevWorkbench-BtiPE_V4.js +0 -228
- package/dist/ProductWorkspace-PSO7Q9m-.js +0 -1323
- package/dist/ScheduledTasks-CoaHVU6e.js +0 -12006
- package/dist/SmartWorkbench-BkdfSgqx.js +0 -1867
- package/dist/SystemShell-CANwRSyW.js +0 -886
- package/dist/SystemWorkbench.module-DpLM0zgA.js +0 -36
- package/dist/createWorkspaceWsHandler-6xyLJ14H.js +0 -12902
- package/dist/instance-B9ZKD5cL.js +0 -186
- package/dist/sso-user-Co71Xi9I.js +0 -43
- /package/dist/{download-B_LJRFsK.js → index-B_LJRFsK.js} +0 -0
- /package/dist/{chatdemo-C815hPWS.js → index-C815hPWS.js} +0 -0
- /package/dist/{portal-QNpTaU--.js → index-QNpTaU--.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as h, useCallback as u } from "react";
|
|
3
|
-
import { S as I, P } from "./webide-
|
|
4
|
-
import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-
|
|
5
|
-
import { w as q, p as z } from "./index-
|
|
3
|
+
import { S as I, P } from "./webide-C4ThGZzY.js";
|
|
4
|
+
import { L as D, P as N, S as H, C as W, E as $, a as j, W as b, b as g, T as B, c as O } from "./ScheduledTasks-BaZ0_klE.js";
|
|
5
|
+
import { w as q, p as z } from "./index-kjli87DO.js";
|
|
6
6
|
import { TodoTab as E } from "@yuku123/z-task-component";
|
|
7
7
|
function J({
|
|
8
8
|
view: s,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import v, { useState as d, useEffect as _, useMemo as h } from "react";
|
|
3
3
|
import { useLocation as N } from "react-router-dom";
|
|
4
|
-
import {
|
|
5
|
-
import { i as K, P as x } from "./index-
|
|
6
|
-
const E = "_banner_2v7mc_1",
|
|
4
|
+
import { H as b, I as g } from "./ComponentDoc-DnZq0_Rk.js";
|
|
5
|
+
import { i as K, P as x } from "./index-DSXVCDf7.js";
|
|
6
|
+
const E = "_banner_2v7mc_1", S = "_dot_2v7mc_18", f = "_text_2v7mc_26", A = "_retry_2v7mc_31", F = "_dismiss_2v7mc_44", P = "_details_2v7mc_57", k = "_method_2v7mc_85", C = "_status_2v7mc_86", D = "_statusNet_2v7mc_87", $ = "_url_2v7mc_88", e = {
|
|
7
7
|
banner: E,
|
|
8
|
-
dot:
|
|
9
|
-
text:
|
|
10
|
-
retry:
|
|
11
|
-
dismiss:
|
|
8
|
+
dot: S,
|
|
9
|
+
text: f,
|
|
10
|
+
retry: A,
|
|
11
|
+
dismiss: F,
|
|
12
12
|
details: P,
|
|
13
13
|
method: k,
|
|
14
14
|
status: C,
|
|
@@ -61,7 +61,7 @@ const E = "_banner_2v7mc_1", F = "_dot_2v7mc_18", S = "_text_2v7mc_26", f = "_re
|
|
|
61
61
|
)
|
|
62
62
|
] });
|
|
63
63
|
};
|
|
64
|
-
class
|
|
64
|
+
class H extends v.Component {
|
|
65
65
|
constructor() {
|
|
66
66
|
super(...arguments), this.state = { error: null, resetKey: this.props.resetKey };
|
|
67
67
|
}
|
|
@@ -89,5 +89,5 @@ class T extends v.Component {
|
|
|
89
89
|
}
|
|
90
90
|
export {
|
|
91
91
|
B as P,
|
|
92
|
-
|
|
92
|
+
H as R
|
|
93
93
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { jsx as r, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import { f as z, r as T } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
-
import {
|
|
4
|
-
import { CheckCircleFilled as
|
|
5
|
-
import { Result as
|
|
6
|
-
import
|
|
7
|
-
import { useState as d, useRef as
|
|
8
|
-
import { useLocation as
|
|
3
|
+
import { u as s, j as D, r as F, k as U, l as W, m as B } from "./ComponentDoc-DnZq0_Rk.js";
|
|
4
|
+
import { CheckCircleFilled as H } from "@ant-design/icons";
|
|
5
|
+
import { Result as G, Button as J, Spin as K } from "antd";
|
|
6
|
+
import O from "query-string";
|
|
7
|
+
import { useState as d, useRef as Q, useCallback as V, useMemo as R, useEffect as E } from "react";
|
|
8
|
+
import { useLocation as X } from "react-router-dom";
|
|
9
9
|
import { h as b } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { u as s, j as V, k as X } from "./ComponentDoc-BIX-e69A.js";
|
|
11
10
|
import { b as Y } from "./mobile-client-O3yr9h6t.js";
|
|
12
|
-
import { s as Z } from "./send-default-agent-team-message-
|
|
13
|
-
function
|
|
14
|
-
const h =
|
|
11
|
+
import { s as Z } from "./send-default-agent-team-message-0RB1pYex.js";
|
|
12
|
+
function pe() {
|
|
13
|
+
const h = X(), f = O.parse(h.search), c = String(
|
|
15
14
|
f.scenarioCode ?? f.scenario_code ?? ""
|
|
16
15
|
).trim(), a = String(
|
|
17
16
|
f.projectName ?? f.project_name ?? ""
|
|
18
|
-
).trim(), i = String(f.input ?? "").trim(), _ = s((e) => e.expandProject), g = s((e) => e.updateCurrentUser), [j, I] = d(!1), [w, y] = d(""), [M, p] = d("正在登录…"), [k, $] = d([]), C =
|
|
17
|
+
).trim(), i = String(f.input ?? "").trim(), _ = s((e) => e.expandProject), g = s((e) => e.updateCurrentUser), [j, I] = d(!1), [w, y] = d(""), [M, p] = d("正在登录…"), [k, $] = d([]), C = Q(!1), u = V((e, t) => {
|
|
19
18
|
$((o) => [...o, e]), p(t);
|
|
20
19
|
}, []), n = R(() => c ? a ? "" : "缺少参数 projectName" : "缺少参数 scenarioCode", [a, c]);
|
|
21
20
|
E(() => {
|
|
@@ -31,7 +30,7 @@ function ue() {
|
|
|
31
30
|
const v = async () => {
|
|
32
31
|
if (e)
|
|
33
32
|
return;
|
|
34
|
-
let l =
|
|
33
|
+
let l = F();
|
|
35
34
|
if ((!l || !U(l)) && !S) {
|
|
36
35
|
S = !0;
|
|
37
36
|
try {
|
|
@@ -43,10 +42,10 @@ function ue() {
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
if (l && U(l)) {
|
|
46
|
-
g(
|
|
45
|
+
g(W(l));
|
|
47
46
|
const m = s.getState().token;
|
|
48
47
|
try {
|
|
49
|
-
const L = await
|
|
48
|
+
const L = await B(m);
|
|
50
49
|
e || g(L);
|
|
51
50
|
} catch {
|
|
52
51
|
!e && m && (localStorage.removeItem("z_team_token"), s.setState({ token: "" }));
|
|
@@ -82,7 +81,7 @@ function ue() {
|
|
|
82
81
|
try {
|
|
83
82
|
const e = s.getState().token;
|
|
84
83
|
p("正在按专家团创建工程…");
|
|
85
|
-
const t = await
|
|
84
|
+
const t = await D(
|
|
86
85
|
{
|
|
87
86
|
name: a,
|
|
88
87
|
description: "",
|
|
@@ -133,13 +132,13 @@ function ue() {
|
|
|
133
132
|
return i && e.push("含首条协作消息"), e.join(" · ");
|
|
134
133
|
}, [i, n, a, c]);
|
|
135
134
|
return w ? /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ r(
|
|
136
|
-
|
|
135
|
+
G,
|
|
137
136
|
{
|
|
138
137
|
status: "error",
|
|
139
138
|
title: "无法创建工程",
|
|
140
139
|
subTitle: w,
|
|
141
140
|
extra: /* @__PURE__ */ r(
|
|
142
|
-
|
|
141
|
+
J,
|
|
143
142
|
{
|
|
144
143
|
type: "primary",
|
|
145
144
|
onClick: () => b.replace("/workspace"),
|
|
@@ -148,7 +147,7 @@ function ue() {
|
|
|
148
147
|
)
|
|
149
148
|
}
|
|
150
149
|
) }) : /* @__PURE__ */ r("div", { className: "from-scenario-page", children: /* @__PURE__ */ x("div", { className: "from-scenario-page__panel", children: [
|
|
151
|
-
/* @__PURE__ */ r(
|
|
150
|
+
/* @__PURE__ */ r(K, { size: "large" }),
|
|
152
151
|
/* @__PURE__ */ r("p", { className: "from-scenario-page__step", children: M }),
|
|
153
152
|
N ? /* @__PURE__ */ r("p", { className: "from-scenario-page__hint", children: N }) : null,
|
|
154
153
|
k.length > 0 ? /* @__PURE__ */ r("ul", { className: "from-scenario-page__done-list", children: k.filter((e) => e.trim().length > 0).map((e, t) => /* @__PURE__ */ x(
|
|
@@ -156,7 +155,7 @@ function ue() {
|
|
|
156
155
|
{
|
|
157
156
|
className: "from-scenario-page__done-item",
|
|
158
157
|
children: [
|
|
159
|
-
/* @__PURE__ */ r(
|
|
158
|
+
/* @__PURE__ */ r(H, { className: "from-scenario-page__done-icon" }),
|
|
160
159
|
/* @__PURE__ */ r("span", { children: e })
|
|
161
160
|
]
|
|
162
161
|
},
|
|
@@ -165,5 +164,5 @@ function ue() {
|
|
|
165
164
|
] }) });
|
|
166
165
|
}
|
|
167
166
|
export {
|
|
168
|
-
|
|
167
|
+
pe as default
|
|
169
168
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const l = "_shell_jc602_6", r = "_frame_jc602_15", s = {
|
|
3
|
+
shell: l,
|
|
4
|
+
frame: r
|
|
5
|
+
};
|
|
6
|
+
function c() {
|
|
7
|
+
return /* @__PURE__ */ e("div", { className: s.shell, children: /* @__PURE__ */ e(
|
|
8
|
+
"iframe",
|
|
9
|
+
{
|
|
10
|
+
src: "/cognition/",
|
|
11
|
+
title: "知识中台",
|
|
12
|
+
className: s.frame
|
|
13
|
+
}
|
|
14
|
+
) });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
c as default
|
|
18
|
+
};
|
|
@@ -365,7 +365,7 @@ const J = "_welcome_1pluv_11", K = "_bgWash_1pluv_57", U = "_bgGrid_1pluv_68", j
|
|
|
365
365
|
{
|
|
366
366
|
icon: "network",
|
|
367
367
|
title: "星型多 Agent 协作",
|
|
368
|
-
desc: "
|
|
368
|
+
desc: "群聊即专家团:每位成员都是真实干活的员工,一件事一人闭环;聊着聊着缺人时系统直接拉入真正的专家。",
|
|
369
369
|
tag: "TeamAgent"
|
|
370
370
|
},
|
|
371
371
|
{
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
|
-
import { f as ie, r as
|
|
3
|
-
import {
|
|
4
|
-
import { CheckCircleFilled as
|
|
5
|
-
import { message as P, Result as
|
|
6
|
-
import
|
|
2
|
+
import { f as ie, r as z } from "./ctc-sso-DtJHC-2M.js";
|
|
3
|
+
import { u as c, E as ne, j as oe, r as le, k as X, l as ce, m as me } from "./ComponentDoc-DnZq0_Rk.js";
|
|
4
|
+
import { CheckCircleFilled as de, QuestionCircleOutlined as ue, CloseOutlined as fe } from "@ant-design/icons";
|
|
5
|
+
import { message as P, Result as pe, Button as D, Spin as G, Input as ge, Image as he } from "antd";
|
|
6
|
+
import be from "query-string";
|
|
7
7
|
import { useState as f, useRef as Y, useMemo as K, useCallback as w, useEffect as V } from "react";
|
|
8
|
-
import { useLocation as
|
|
8
|
+
import { useLocation as _e } from "react-router-dom";
|
|
9
9
|
import { h as W } from "./history-BlrA1eaW.js";
|
|
10
|
-
import { u as c, z as he, j as be, k as _e } from "./ComponentDoc-BIX-e69A.js";
|
|
11
10
|
/* empty css */
|
|
12
11
|
import { b as ye } from "./mobile-client-O3yr9h6t.js";
|
|
13
|
-
import { a as ve, s as we } from "./send-default-agent-team-message-
|
|
12
|
+
import { a as ve, s as we } from "./send-default-agent-team-message-0RB1pYex.js";
|
|
14
13
|
const Ne = 5e3, E = 9, Ce = 10 * 1024 * 1024, Se = /^image\//i, Ie = /\.(png|jpe?g|gif|bmp|webp)$/i;
|
|
15
14
|
function ke(a) {
|
|
16
15
|
return a.type && Se.test(a.type) ? !0 : Ie.test(a.name || "");
|
|
@@ -43,8 +42,8 @@ function Ue(a) {
|
|
|
43
42
|
return a.map((m) => m.file);
|
|
44
43
|
}
|
|
45
44
|
const J = 30;
|
|
46
|
-
function
|
|
47
|
-
const a =
|
|
45
|
+
function ze() {
|
|
46
|
+
const a = _e(), m = be.parse(a.search), o = String(
|
|
48
47
|
m.scenarioCode ?? m.scenario_code ?? ""
|
|
49
48
|
).trim(), p = c((e) => e.expandProject), d = c((e) => e.updateCurrentUser), [N, H] = f(!1), [_, Z] = f(""), [y, U] = f([]), [M, R] = f("form"), [j, T] = f(""), [A, g] = f("正在登录…"), [B, F] = f([]), k = Y(!1), x = Y(y);
|
|
50
49
|
x.current = y;
|
|
@@ -66,7 +65,7 @@ function Xe() {
|
|
|
66
65
|
const u = async () => {
|
|
67
66
|
if (e)
|
|
68
67
|
return;
|
|
69
|
-
let h =
|
|
68
|
+
let h = le();
|
|
70
69
|
if ((!h || !X(h)) && !i) {
|
|
71
70
|
i = !0;
|
|
72
71
|
try {
|
|
@@ -78,10 +77,10 @@ function Xe() {
|
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
if (h && X(h)) {
|
|
81
|
-
d(
|
|
80
|
+
d(ce(h));
|
|
82
81
|
const b = c.getState().token;
|
|
83
82
|
try {
|
|
84
|
-
const se = await
|
|
83
|
+
const se = await me(b);
|
|
85
84
|
e || d(se);
|
|
86
85
|
} catch {
|
|
87
86
|
!e && b && (localStorage.removeItem("z_team_token"), c.setState({ token: "" }));
|
|
@@ -91,11 +90,11 @@ function Xe() {
|
|
|
91
90
|
return;
|
|
92
91
|
}
|
|
93
92
|
if (s >= v) {
|
|
94
|
-
|
|
93
|
+
z();
|
|
95
94
|
return;
|
|
96
95
|
}
|
|
97
96
|
if (r += 1, r >= n) {
|
|
98
|
-
|
|
97
|
+
z();
|
|
99
98
|
return;
|
|
100
99
|
}
|
|
101
100
|
window.setTimeout(() => void u(), 150);
|
|
@@ -113,8 +112,8 @@ function Xe() {
|
|
|
113
112
|
const n = e.slice(0, J), i = c.getState().token;
|
|
114
113
|
try {
|
|
115
114
|
let s = [];
|
|
116
|
-
r.length > 0 && (g("正在上传图片…"), s = await
|
|
117
|
-
const v = ve(e, s), I = await
|
|
115
|
+
r.length > 0 && (g("正在上传图片…"), s = await ne(r));
|
|
116
|
+
const v = ve(e, s), I = await oe(
|
|
118
117
|
{
|
|
119
118
|
name: n,
|
|
120
119
|
description: v,
|
|
@@ -191,7 +190,7 @@ function Xe() {
|
|
|
191
190
|
}, [_, o]);
|
|
192
191
|
if (C || j && M === "form")
|
|
193
192
|
return /* @__PURE__ */ t("div", { className: "build-by-form-page", children: /* @__PURE__ */ t(
|
|
194
|
-
|
|
193
|
+
pe,
|
|
195
194
|
{
|
|
196
195
|
status: "error",
|
|
197
196
|
title: "无法继续",
|
|
@@ -221,17 +220,17 @@ function Xe() {
|
|
|
221
220
|
{
|
|
222
221
|
className: "build-by-form-page__done-item",
|
|
223
222
|
children: [
|
|
224
|
-
/* @__PURE__ */ t(
|
|
223
|
+
/* @__PURE__ */ t(de, { className: "build-by-form-page__done-icon" }),
|
|
225
224
|
/* @__PURE__ */ t("span", { children: e })
|
|
226
225
|
]
|
|
227
226
|
},
|
|
228
227
|
`${r}-${e}`
|
|
229
228
|
)) }) : null
|
|
230
229
|
] }) }) }) });
|
|
231
|
-
const
|
|
230
|
+
const q = !!_.trim();
|
|
232
231
|
return /* @__PURE__ */ t("div", { className: "build-by-form-page", children: /* @__PURE__ */ t("div", { className: "build-by-form-page__shell", children: /* @__PURE__ */ l("div", { className: "build-by-form-page__panel", children: [
|
|
233
232
|
/* @__PURE__ */ l("div", { className: "build-by-form-page__header", children: [
|
|
234
|
-
/* @__PURE__ */ t("div", { className: "build-by-form-page__icon", "aria-hidden": !0, children: /* @__PURE__ */ t(
|
|
233
|
+
/* @__PURE__ */ t("div", { className: "build-by-form-page__icon", "aria-hidden": !0, children: /* @__PURE__ */ t(ue, {}) }),
|
|
235
234
|
/* @__PURE__ */ l("div", { children: [
|
|
236
235
|
/* @__PURE__ */ t("h1", { className: "build-by-form-page__title", children: "描述你的问题" }),
|
|
237
236
|
/* @__PURE__ */ t("p", { className: "build-by-form-page__subtitle", children: "提交后将创建协作空间,并把问题发送给智能体" })
|
|
@@ -247,14 +246,14 @@ function Xe() {
|
|
|
247
246
|
}
|
|
248
247
|
),
|
|
249
248
|
/* @__PURE__ */ t(
|
|
250
|
-
|
|
249
|
+
ge.TextArea,
|
|
251
250
|
{
|
|
252
251
|
id: "build-by-form-question",
|
|
253
252
|
className: "build-by-form-page__textarea",
|
|
254
253
|
value: _,
|
|
255
254
|
onChange: (e) => Z(e.target.value),
|
|
256
255
|
onKeyDown: (e) => {
|
|
257
|
-
(e.metaKey || e.ctrlKey) && e.key === "Enter" &&
|
|
256
|
+
(e.metaKey || e.ctrlKey) && e.key === "Enter" && q && (e.preventDefault(), $());
|
|
258
257
|
},
|
|
259
258
|
placeholder: "请尽量描述清楚现象、期望结果或相关背景…(可在输入框内 Ctrl+V 粘贴图片)",
|
|
260
259
|
autoSize: { minRows: 6, maxRows: 14 },
|
|
@@ -269,7 +268,7 @@ function Xe() {
|
|
|
269
268
|
className: "build-by-form-page__preview-item",
|
|
270
269
|
children: [
|
|
271
270
|
/* @__PURE__ */ t(
|
|
272
|
-
|
|
271
|
+
he,
|
|
273
272
|
{
|
|
274
273
|
src: e.previewUrl,
|
|
275
274
|
alt: "粘贴的图片",
|
|
@@ -284,7 +283,7 @@ function Xe() {
|
|
|
284
283
|
className: "build-by-form-page__preview-remove",
|
|
285
284
|
"aria-label": "移除图片",
|
|
286
285
|
onClick: () => re(e.id),
|
|
287
|
-
children: /* @__PURE__ */ t(
|
|
286
|
+
children: /* @__PURE__ */ t(fe, {})
|
|
288
287
|
}
|
|
289
288
|
)
|
|
290
289
|
]
|
|
@@ -303,7 +302,7 @@ function Xe() {
|
|
|
303
302
|
block: !0,
|
|
304
303
|
size: "large",
|
|
305
304
|
className: "build-by-form-page__submit",
|
|
306
|
-
disabled: !
|
|
305
|
+
disabled: !q,
|
|
307
306
|
onClick: $,
|
|
308
307
|
children: "确认并开始"
|
|
309
308
|
}
|
|
@@ -311,5 +310,5 @@ function Xe() {
|
|
|
311
310
|
] }) }) });
|
|
312
311
|
}
|
|
313
312
|
export {
|
|
314
|
-
|
|
313
|
+
ze as default
|
|
315
314
|
};
|