@ucap-llm/ai-ui 1.0.6 → 1.0.8

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/ai-ui.es.js CHANGED
@@ -15496,7 +15496,7 @@ const UC = { class: "ai-chat-body" }, qC = { class: "ai-chat-body-l" }, YC = { c
15496
15496
  value: a.value,
15497
15497
  "onUpdate:value": u[0] || (u[0] = (m) => a.value = m),
15498
15498
  class: "ai-chat-name-input",
15499
- placeholder: "请输入名称",
15499
+ placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
15500
15500
  onClick: u[1] || (u[1] = st(() => {
15501
15501
  }, ["stop"])),
15502
15502
  onBlur: c,
@@ -15512,7 +15512,7 @@ const UC = { class: "ai-chat-body" }, qC = { class: "ai-chat-body-l" }, YC = { c
15512
15512
  oe("div", ZC, [
15513
15513
  e.actions.includes("edit") && e.editable ? (ne(), re("button", {
15514
15514
  key: 0,
15515
- title: "编辑",
15515
+ title: "\u7F16\u8F91",
15516
15516
  disabled: e.disabled || i.value,
15517
15517
  onClick: st(s, ["stop"])
15518
15518
  }, u[5] || (u[5] = [
@@ -15520,7 +15520,7 @@ const UC = { class: "ai-chat-body" }, qC = { class: "ai-chat-body-l" }, YC = { c
15520
15520
  ]), 8, QC)) : De("", !0),
15521
15521
  e.actions.includes("delete") ? (ne(), re("button", {
15522
15522
  key: 1,
15523
- title: "删除",
15523
+ title: "\u5220\u9664",
15524
15524
  onClick: u[2] || (u[2] = st((m) => o("delete"), ["stop"]))
15525
15525
  }, u[6] || (u[6] = [
15526
15526
  oe("i", { class: "ai-icon ai-icon-delete" }, null, -1)
@@ -17373,7 +17373,7 @@ const n2 = {
17373
17373
  // 加载中提示语
17374
17374
  loadingMessage: {
17375
17375
  type: String,
17376
- default: "AI组织语言中"
17376
+ default: "AI\u7EC4\u7EC7\u8BED\u8A00\u4E2D"
17377
17377
  },
17378
17378
  // chat框位置 l: 左侧, r: 右侧
17379
17379
  pos: {
@@ -17459,11 +17459,11 @@ const n2 = {
17459
17459
  var f, p;
17460
17460
  let u = (p = (f = a.value) == null ? void 0 : f.querySelector(".ai-chat-record-content-inner")) == null ? void 0 : p.innerText;
17461
17461
  u && of(u).then(() => {
17462
- r.copyTipType === "message" ? Si.success("复制成功") : (l.value = !0, setTimeout(() => {
17462
+ r.copyTipType === "message" ? Si.success("\u590D\u5236\u6210\u529F") : (l.value = !0, setTimeout(() => {
17463
17463
  l.value = !1;
17464
17464
  }, 1e3));
17465
17465
  }).catch(() => {
17466
- Si.error("复制失败");
17466
+ Si.error("\u590D\u5236\u5931\u8D25");
17467
17467
  });
17468
17468
  }
17469
17469
  return t({
@@ -17527,7 +17527,7 @@ const n2 = {
17527
17527
  e.showCharacterCount && e.status === o.Done ? (ne(), re("div", f2, [
17528
17528
  ie(u.$slots, "characterCountBefore", {}, void 0, !0),
17529
17529
  ie(u.$slots, "characterCount", {}, () => [
17530
- hn("" + kn(c.value) + "个字符", 1)
17530
+ hn("\u5171" + kn(c.value) + "\u4E2A\u5B57\u7B26", 1)
17531
17531
  ], !0),
17532
17532
  ie(u.$slots, "characterCountAfter", {}, void 0, !0)
17533
17533
  ])) : De("", !0)
@@ -17545,7 +17545,7 @@ const n2 = {
17545
17545
  title: Ot(() => [
17546
17546
  oe("span", h2, [
17547
17547
  y(Ut(lo), { style: { "margin-right": "4px", color: "var(--ai-success-color)", "font-size": "14px" } }),
17548
- f[2] || (f[2] = hn(" 已复制 "))
17548
+ f[2] || (f[2] = hn(" \u5DF2\u590D\u5236 "))
17549
17549
  ])
17550
17550
  ]),
17551
17551
  default: Ot(() => [
@@ -17555,7 +17555,7 @@ const n2 = {
17555
17555
  onClick: d
17556
17556
  }, f[3] || (f[3] = [
17557
17557
  oe("i", { class: "action-icon ai-icon ai-icon-copy" }, null, -1),
17558
- hn(" 复制 ")
17558
+ hn(" \u590D\u5236 ")
17559
17559
  ]))) : De("", !0)
17560
17560
  ]),
17561
17561
  _: 1
@@ -17566,7 +17566,7 @@ const n2 = {
17566
17566
  onClick: f[0] || (f[0] = (v) => i("regenerate"))
17567
17567
  }, f[4] || (f[4] = [
17568
17568
  oe("i", { class: "action-icon ai-icon ai-icon-shuaxin" }, null, -1),
17569
- hn(" 重新生成 ")
17569
+ hn(" \u91CD\u65B0\u751F\u6210 ")
17570
17570
  ]))) : De("", !0)
17571
17571
  ], !0),
17572
17572
  ie(u.$slots, "actionsAfter", {}, void 0, !0)
@@ -17577,7 +17577,8 @@ const n2 = {
17577
17577
  ], 2);
17578
17578
  };
17579
17579
  }
17580
- }), v2 = /* @__PURE__ */ Rt(m2, [["__scopeId", "data-v-c4a2983e"]]), vf = [
17580
+ }), v2 = /* @__PURE__ */ Rt(m2, [["__scopeId", "data-v-c4a2983e"]]);
17581
+ const vf = [
17581
17582
  jf,
17582
17583
  tS,
17583
17584
  rS,