@blueking/ai-blueking 2.1.0-beta.3 → 2.1.0-beta.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.
@@ -23676,21 +23676,32 @@ var _A = ["src"], vA = /* @__PURE__ */ x({
23676
23676
  },
23677
23677
  emits: ["click"],
23678
23678
  setup(e, { expose: t, emit: n }) {
23679
- let r = n, i = (e) => {
23680
- r("click", e);
23681
- }, a = le("el");
23679
+ let r = e, i = W(!1), a = n;
23680
+ de(() => r.shortcut?.icon, () => {
23681
+ i.value = !1;
23682
+ }, { immediate: !0 });
23683
+ let s = (e) => {
23684
+ a("click", e);
23685
+ }, c = le("el");
23682
23686
  return t({ get $el() {
23683
- return a.value;
23687
+ return c.value;
23684
23688
  } }), (t, n) => (B(), h("button", {
23685
23689
  ref_key: "el",
23686
- ref: a,
23690
+ ref: c,
23687
23691
  class: P(["ai-shortcut-btn", { "is-menu-mode": e.mode === "menu" }]),
23688
- onClick: n[0] ||= (t) => i(e.shortcut)
23689
- }, [U(t.$slots, "default", {}, () => [e.shortcut?.icon ? (B(), h(o, { key: 0 }, [typeof e.shortcut.icon == "string" ? (B(), h(o, { key: 0 }, [e.shortcut.icon.startsWith("http") ? (B(), h("img", {
23692
+ onClick: n[1] ||= (t) => s(e.shortcut)
23693
+ }, [U(t.$slots, "default", {}, () => [e.shortcut?.icon ? (B(), h(o, { key: 0 }, [typeof e.shortcut.icon == "string" ? (B(), h(o, { key: 0 }, [e.shortcut.icon.startsWith("http") ? (B(), h(o, { key: 0 }, [i.value ? (B(), p(K(KE), {
23694
+ key: 1,
23695
+ class: "ai-shortcut-btn-icon"
23696
+ })) : (B(), h("img", {
23690
23697
  key: 0,
23691
23698
  class: "ai-common-icon ai-shortcut-btn-icon",
23692
- src: e.shortcut.icon
23693
- }, null, 8, _A)) : m("v-if", !0), g("span", { class: P(e.shortcut.icon) }, null, 2)], 64)) : (B(), p(ie(typeof e.shortcut?.icon == "function" ? e.shortcut.icon?.(T) : e.shortcut.icon), {
23699
+ src: e.shortcut.icon,
23700
+ onError: n[0] ||= (e) => i.value = !0
23701
+ }, null, 40, _A))], 64)) : (B(), h("span", {
23702
+ key: 1,
23703
+ class: P(e.shortcut.icon)
23704
+ }, null, 2))], 64)) : (B(), p(ie(typeof e.shortcut?.icon == "function" ? e.shortcut.icon?.(T) : e.shortcut.icon), {
23694
23705
  key: 1,
23695
23706
  class: "ai-shortcut-btn-icon"
23696
23707
  }))], 64)) : e.shortcut && !e.shortcut.components?.length ? (B(), p(K(KE), {
@@ -49451,7 +49462,7 @@ var wH = ["src"], TH = {
49451
49462
  label: X("挂起")
49452
49463
  },
49453
49464
  {
49454
- color: "#DCDEE5",
49465
+ color: "#4D4F56",
49455
49466
  key: "pending",
49456
49467
  label: X("待执行")
49457
49468
  }
@@ -50393,7 +50404,7 @@ var wH = ["src"], TH = {
50393
50404
  "collapseChange"
50394
50405
  ], ["update:selectedShortcut", "update:cite"]),
50395
50406
  setup(e, { expose: t, emit: n }) {
50396
- oe((e) => ({ v4b6807c3: O.value }));
50407
+ oe((e) => ({ v56243ed0: O.value }));
50397
50408
  let r = tT.TabPanel, i = e, a = d(() => ({
50398
50409
  collapsible: !1,
50399
50410
  immediate: !0,