@opentiny/tiny-robot 0.3.0-alpha.13 → 0.3.0-alpha.15

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.
@@ -1,8 +1,8 @@
1
- import { defineComponent as m, useCssVars as v, useModel as c, computed as _, createElementBlock as w, openBlock as g, createElementVNode as n, renderSlot as r, createVNode as d, unref as a } from "vue";
2
- import { A as h, b as $, c as b } from "../tiny-robot-svgs.js";
3
- import u from "../icon-button/index.js";
4
- import { _ as C } from "../_plugin-vue_export-helper.js";
5
- const z = { class: "tr-container" }, B = { class: "tr-container__header" }, k = { class: "tr-container__header-operations" }, y = { class: "tr-container__footer" }, E = /* @__PURE__ */ m({
1
+ import { defineComponent as v, useCssVars as m, useModel as d, computed as _, createElementBlock as w, openBlock as g, createElementVNode as o, renderSlot as r, createVNode as u, unref as a } from "vue";
2
+ import { m as h, G as $, x as C } from "../tiny-robot-svgs.js";
3
+ import c from "../icon-button/index.js";
4
+ import { _ as b } from "../_plugin-vue_export-helper.js";
5
+ const z = { class: "tr-container" }, B = { class: "tr-container__header" }, k = { class: "tr-container__header-operations" }, x = { class: "tr-container__footer" }, y = /* @__PURE__ */ v({
6
6
  __name: "index",
7
7
  props: {
8
8
  show: { type: Boolean, required: !0 },
@@ -11,50 +11,50 @@ const z = { class: "tr-container" }, B = { class: "tr-container__header" }, k =
11
11
  fullscreenModifiers: {}
12
12
  },
13
13
  emits: ["update:show", "update:fullscreen"],
14
- setup(o) {
15
- v((t) => ({
16
- "1daf37f2": s.value ? "0" : "unset",
17
- "0679141a": s.value ? "unset" : "var(--tr-container-width)",
18
- "234493b2": l.value ? "var(--tr-z-index-fixed)" : "-1",
19
- "0c2ba509": l.value ? "1" : "0"
14
+ setup(n) {
15
+ m((t) => ({
16
+ "12c6880d": s.value ? "0" : "unset",
17
+ dbe5f3c0: s.value ? "unset" : "var(--tr-container-width)",
18
+ "676af261": l.value ? "var(--tr-z-index-fixed)" : "-1",
19
+ "19e9bbe2": l.value ? "1" : "0"
20
20
  }));
21
- const l = c(o, "show"), s = c(o, "fullscreen"), f = _(() => s.value ? h : $);
21
+ const l = d(n, "show"), s = d(n, "fullscreen"), f = _(() => s.value ? h : $);
22
22
  return (t, e) => (g(), w("div", z, [
23
- e[3] || (e[3] = n("div", { class: "tr-container__dragging-bar-wrapper" }, [
24
- n("div", { class: "tr-container__dragging-bar" })
23
+ e[3] || (e[3] = o("div", { class: "tr-container__dragging-bar-wrapper" }, [
24
+ o("div", { class: "tr-container__dragging-bar" })
25
25
  ], -1)),
26
- n("div", B, [
26
+ o("div", B, [
27
27
  r(t.$slots, "title", {}, () => [
28
- e[2] || (e[2] = n("h3", { class: "tr-container__title" }, "OpenTiny NEXT", -1))
29
- ]),
30
- n("div", k, [
31
- r(t.$slots, "operations"),
32
- d(a(u), {
28
+ e[2] || (e[2] = o("h3", { class: "tr-container__title" }, "OpenTiny NEXT", -1))
29
+ ], !0),
30
+ o("div", k, [
31
+ r(t.$slots, "operations", {}, void 0, !0),
32
+ u(a(c), {
33
33
  size: "28",
34
34
  "svg-size": "20",
35
35
  icon: f.value,
36
36
  onClick: e[0] || (e[0] = (p) => t.$emit("update:fullscreen", !s.value))
37
37
  }, null, 8, ["icon"]),
38
- d(a(u), {
38
+ u(a(c), {
39
39
  size: "28",
40
40
  "svg-size": "20",
41
- icon: a(b),
41
+ icon: a(C),
42
42
  onClick: e[1] || (e[1] = (p) => t.$emit("update:show", !1))
43
43
  }, null, 8, ["icon"])
44
44
  ])
45
45
  ]),
46
- r(t.$slots, "default"),
47
- n("div", y, [
48
- r(t.$slots, "footer")
46
+ r(t.$slots, "default", {}, void 0, !0),
47
+ o("div", x, [
48
+ r(t.$slots, "footer", {}, void 0, !0)
49
49
  ])
50
50
  ]));
51
51
  }
52
- }), i = /* @__PURE__ */ C(E, [["__scopeId", "data-v-6a9b9126"]]);
52
+ }), i = /* @__PURE__ */ b(y, [["__scopeId", "data-v-3fa99833"]]);
53
53
  i.name = "TrContainer";
54
- const I = function(o) {
55
- o.component(i.name, i);
54
+ const E = function(n) {
55
+ n.component(i.name, i);
56
56
  };
57
- i.install = I;
57
+ i.install = E;
58
58
  export {
59
59
  i as default
60
60
  };
@@ -1,45 +1,45 @@
1
- import { defineComponent as X, ref as C, computed as z, onMounted as D, watch as O, createElementBlock as a, openBlock as t, createCommentVNode as k, Fragment as E, renderList as S, toDisplayString as y, createVNode as h, unref as l, nextTick as Y, createElementVNode as d, createBlock as _, withCtx as f, createTextVNode as q, resolveDynamicComponent as A } from "vue";
2
- import { f as T, d as N, C as j, B as H, Y as J, p as K } from "../tiny-robot-svgs.js";
1
+ import { defineComponent as V, ref as E, computed as P, onMounted as z, watch as D, createElementBlock as a, openBlock as t, createCommentVNode as k, Fragment as I, renderList as S, toDisplayString as g, createVNode as h, unref as l, nextTick as J, createElementVNode as p, createBlock as d, withCtx as f, createTextVNode as q, resolveDynamicComponent as C } from "vue";
2
+ import { g as T, a as N, b as j, J as H, t as K, O as Q } from "../tiny-robot-svgs.js";
3
3
  import { B as R } from "../index5.js";
4
- import $, { ActionGroupItem as V } from "../action-group/index.js";
5
- import Q from "../icon-button/index.js";
6
- import { _ as P } from "../_plugin-vue_export-helper.js";
7
- const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__ */ X({
4
+ import $, { ActionGroupItem as O } from "../action-group/index.js";
5
+ import U from "../icon-button/index.js";
6
+ import { _ as X } from "../_plugin-vue_export-helper.js";
7
+ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__ */ V({
8
8
  __name: "SourceList",
9
9
  props: {
10
10
  sources: {},
11
11
  linesLimit: { default: Number.MAX_SAFE_INTEGER }
12
12
  },
13
13
  setup(b) {
14
- const m = b, e = C(!1), g = C([]), c = C(null), L = () => {
15
- Y(() => {
16
- const u = g.value.slice(0, m.sources.length).map((o) => (o == null ? void 0 : o.offsetTop) || 0), n = Array.from(new Set(u));
14
+ const m = b, e = E(!1), y = E([]), c = E(null), L = () => {
15
+ J(() => {
16
+ const u = y.value.slice(0, m.sources.length).map((o) => (o == null ? void 0 : o.offsetTop) || 0), n = Array.from(new Set(u));
17
17
  if (n.length > m.linesLimit) {
18
18
  const o = n[m.linesLimit - 1], s = u.lastIndexOf(o);
19
19
  c.value = s;
20
20
  } else
21
21
  c.value = null;
22
22
  });
23
- }, x = z(() => m.sources.length - (c.value || 0));
24
- D(L), O(() => m.sources, L);
25
- const p = (u, n) => {
26
- u && (g.value[n] = u);
23
+ }, A = P(() => m.sources.length - (c.value || 0));
24
+ z(L), D(() => m.sources, L);
25
+ const _ = (u, n) => {
26
+ u && (y.value[n] = u);
27
27
  };
28
- return (u, n) => (t(), a("div", U, [
29
- (t(!0), a(E, null, S(m.sources, (o, s) => (t(), a(E, { key: s }, [
28
+ return (u, n) => (t(), a("div", W, [
29
+ (t(!0), a(I, null, S(m.sources, (o, s) => (t(), a(I, { key: s }, [
30
30
  !c.value || e.value || s < c.value ? (t(), a("a", {
31
31
  key: 0,
32
32
  class: "pill",
33
33
  href: o.link,
34
34
  target: "_blank",
35
35
  ref_for: !0,
36
- ref: (r) => p(r, s)
37
- }, y(o.label), 9, W)) : k("", !0),
36
+ ref: (r) => _(r, s)
37
+ }, g(o.label), 9, Y)) : k("", !0),
38
38
  c.value && !e.value && s === c.value ? (t(), a("span", {
39
39
  key: 1,
40
40
  class: "pill",
41
41
  onClick: n[0] || (n[0] = (r) => e.value = !0)
42
- }, y(x.value) + "+ ", 1)) : k("", !0)
42
+ }, g(A.value) + "+ ", 1)) : k("", !0)
43
43
  ], 64))), 128)),
44
44
  e.value ? (t(), a("span", {
45
45
  key: 0,
@@ -50,10 +50,10 @@ const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__
50
50
  ])) : k("", !0)
51
51
  ]));
52
52
  }
53
- }), ee = /* @__PURE__ */ P(Z, [["__scopeId", "data-v-c5fbb560"]]), te = { class: "tr-feedback" }, se = { class: "tr-feedback__operations" }, oe = { class: "tr-feedback__operations-left" }, ne = { key: 1 }, le = { class: "tr-feedback__operations-right" }, ae = {
53
+ }), ee = /* @__PURE__ */ X(Z, [["__scopeId", "data-v-c5fbb560"]]), te = { class: "tr-feedback" }, se = { class: "tr-feedback__operations" }, oe = { class: "tr-feedback__operations-left" }, ne = { key: 1 }, le = { class: "tr-feedback__operations-right" }, ae = {
54
54
  key: 0,
55
55
  class: "tr-feedback__footer"
56
- }, re = { key: 0 }, ie = /* @__PURE__ */ X({
56
+ }, re = { key: 0 }, ie = /* @__PURE__ */ V({
57
57
  __name: "index",
58
58
  props: {
59
59
  operations: {},
@@ -65,26 +65,26 @@ const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__
65
65
  },
66
66
  emits: ["operation", "action"],
67
67
  setup(b, { emit: m }) {
68
- const e = b, g = {
69
- copy: K,
70
- refresh: J,
68
+ const e = b, y = {
69
+ copy: Q,
70
+ refresh: K,
71
71
  like: H,
72
72
  dislike: j
73
73
  }, c = m, L = (n) => {
74
74
  var o, s, r;
75
75
  (r = (s = (o = e.operations) == null ? void 0 : o.find((v) => v.name === n)) == null ? void 0 : s.onClick) == null || r.call(s), c("operation", n);
76
- }, x = (n) => {
76
+ }, A = (n) => {
77
77
  var o, s, r;
78
78
  (r = (s = (o = e.actions) == null ? void 0 : o.find((v) => v.name === n)) == null ? void 0 : s.onClick) == null || r.call(s), c("action", n);
79
- }, p = C(!1), u = () => {
80
- p.value = !p.value;
79
+ }, _ = E(!1), u = () => {
80
+ _.value = !_.value;
81
81
  };
82
82
  return (n, o) => {
83
- var s, r, v, B, w, F, M, G;
83
+ var s, r, v, w, B, F, M, G;
84
84
  return t(), a("div", te, [
85
- d("div", se, [
86
- d("div", oe, [
87
- (s = e.operations) != null && s.length ? (t(), _(l($), {
85
+ p("div", se, [
86
+ p("div", oe, [
87
+ (s = e.operations) != null && s.length ? (t(), d(l($), {
88
88
  key: 0,
89
89
  "max-num": e.operationsLimit,
90
90
  "drop-down-show-label-only": !0,
@@ -99,7 +99,7 @@ const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__
99
99
  class: "tr-feedback__operations-more-btn"
100
100
  }, {
101
101
  default: f(() => [
102
- o[0] || (o[0] = d("span", null, "更多", -1)),
102
+ o[0] || (o[0] = p("span", null, "更多", -1)),
103
103
  h(l(N))
104
104
  ]),
105
105
  _: 1,
@@ -107,7 +107,7 @@ const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__
107
107
  })
108
108
  ]),
109
109
  default: f(() => [
110
- (t(!0), a(E, null, S(e.operations, (i) => (t(), _(l(V), {
110
+ (t(!0), a(I, null, S(e.operations, (i) => (t(), d(l(O), {
111
111
  key: i.name,
112
112
  name: i.name,
113
113
  label: i.label
@@ -119,7 +119,7 @@ const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__
119
119
  size: "mini"
120
120
  }, {
121
121
  default: f(() => [
122
- q(y(i.label), 1)
122
+ q(g(i.label), 1)
123
123
  ]),
124
124
  _: 2
125
125
  }, 1024)
@@ -129,32 +129,32 @@ const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__
129
129
  ]),
130
130
  _: 1
131
131
  }, 8, ["max-num"])) : (r = e.sources) != null && r.length ? (t(), a("div", ne, [
132
- d("span", {
132
+ p("span", {
133
133
  class: "tr-feedback__source",
134
134
  onClick: u
135
135
  }, [
136
- d("span", null, y((v = e.sources) == null ? void 0 : v.length) + "条来源", 1),
137
- (t(), _(A(p.value ? l(T) : l(N))))
136
+ p("span", null, g((v = e.sources) == null ? void 0 : v.length) + "条来源", 1),
137
+ (t(), d(C(_.value ? l(T) : l(N))))
138
138
  ])
139
139
  ])) : k("", !0)
140
140
  ]),
141
- d("div", le, [
141
+ p("div", le, [
142
142
  h(l($), {
143
143
  "max-num": e.actionsLimit,
144
144
  "show-tooltip": !0,
145
- onItemClick: x
145
+ onItemClick: A
146
146
  }, {
147
147
  default: f(() => [
148
- (t(!0), a(E, null, S(e.actions, (i) => (t(), _(l(V), {
148
+ (t(!0), a(I, null, S(e.actions, (i) => (t(), d(l(O), {
149
149
  key: i.name,
150
150
  name: i.name,
151
151
  label: i.label
152
152
  }, {
153
153
  default: f(() => [
154
- typeof i.icon == "string" ? (t(), _(l(Q), {
154
+ typeof i.icon == "string" ? (t(), d(l(U), {
155
155
  key: 0,
156
- icon: g[i.icon]
157
- }, null, 8, ["icon"])) : (t(), _(A(i.icon), { key: 1 }))
156
+ icon: y[i.icon]
157
+ }, null, 8, ["icon"])) : (t(), d(C(i.icon), { key: 1 }))
158
158
  ]),
159
159
  _: 2
160
160
  }, 1032, ["name", "label"]))), 128))
@@ -163,17 +163,17 @@ const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__
163
163
  }, 8, ["max-num"])
164
164
  ])
165
165
  ]),
166
- (B = e.operations) != null && B.length && ((w = e.sources) != null && w.length) || p.value && e.sources ? (t(), a("div", ae, [
166
+ (w = e.operations) != null && w.length && ((B = e.sources) != null && B.length) || _.value && e.sources ? (t(), a("div", ae, [
167
167
  (F = e.operations) != null && F.length && ((M = e.sources) != null && M.length) ? (t(), a("div", re, [
168
- d("span", {
168
+ p("span", {
169
169
  class: "tr-feedback__source",
170
170
  onClick: u
171
171
  }, [
172
- d("span", null, y((G = e.sources) == null ? void 0 : G.length) + "条来源", 1),
173
- (t(), _(A(p.value ? l(T) : l(N))))
172
+ p("span", null, g((G = e.sources) == null ? void 0 : G.length) + "条来源", 1),
173
+ (t(), d(C(_.value ? l(T) : l(N))))
174
174
  ])
175
175
  ])) : k("", !0),
176
- p.value && e.sources ? (t(), _(l(ee), {
176
+ _.value && e.sources ? (t(), d(l(ee), {
177
177
  key: 1,
178
178
  sources: e.sources,
179
179
  "lines-limit": e.sourcesLinesLimit
@@ -182,12 +182,12 @@ const U = { class: "tr-feedback__source-list" }, W = ["href"], Z = /* @__PURE__
182
182
  ]);
183
183
  };
184
184
  }
185
- }), I = /* @__PURE__ */ P(ie, [["__scopeId", "data-v-cc6ef316"]]);
186
- I.name = "TrFeedback";
185
+ }), x = /* @__PURE__ */ X(ie, [["__scopeId", "data-v-cc6ef316"]]);
186
+ x.name = "TrFeedback";
187
187
  const ce = function(b) {
188
- b.component(I.name, I);
188
+ b.component(x.name, x);
189
189
  };
190
- I.install = ce;
190
+ x.install = ce;
191
191
  export {
192
- I as default
192
+ x as default
193
193
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as q, mergeModels as E, useModel as G, watch as g, ref as i, computed as $, createElementBlock as a, openBlock as l, createElementVNode as C, Fragment as I, renderList as S, createCommentVNode as _, normalizeClass as x, createBlock as B, resolveDynamicComponent as b, toDisplayString as D, nextTick as H } from "vue";
2
- import { d as X } from "../tiny-robot-svgs.js";
2
+ import { a as X } from "../tiny-robot-svgs.js";
3
3
  import { e as j, o as J } from "../index3.js";
4
4
  import { _ as K } from "../_plugin-vue_export-helper.js";
5
5
  const P = ["onClick"], Q = {
@@ -1,11 +1,11 @@
1
- import { defineComponent as Q, createElementBlock as u, openBlock as n, normalizeStyle as X, normalizeClass as D, createElementVNode as p, toDisplayString as k, createVNode as m, unref as e, ref as G, watchEffect as Y, nextTick as Z, mergeModels as N, useCssVars as q, computed as h, useModel as P, createCommentVNode as E, Fragment as T, renderList as $, createBlock as R, withDirectives as ee, mergeProps as te, withCtx as H, withModifiers as S, vModelText as re } from "vue";
2
- import { a as oe, Q as se, u as ae, v as ne, c as ie } from "../tiny-robot-svgs.js";
1
+ import { defineComponent as V, createElementBlock as u, openBlock as n, normalizeStyle as J, normalizeClass as D, createElementVNode as p, toDisplayString as k, createVNode as m, unref as e, ref as G, watchEffect as Y, nextTick as Z, mergeModels as N, useCssVars as q, computed as h, useModel as P, createCommentVNode as B, Fragment as T, renderList as E, createBlock as R, withDirectives as ee, mergeProps as te, withCtx as H, withModifiers as S, vModelText as re } from "vue";
2
+ import { B as oe, e as se, k as ae, X as ne, x as ie } from "../tiny-robot-svgs.js";
3
3
  import { I as le } from "../index6.js";
4
4
  import { T as U } from "../index2.js";
5
- import B from "../icon-button/index.js";
5
+ import $ from "../icon-button/index.js";
6
6
  import { o as ce } from "../index3.js";
7
- import { _ as V } from "../_plugin-vue_export-helper.js";
8
- const ue = /* @__PURE__ */ Q({
7
+ import { _ as M } from "../_plugin-vue_export-helper.js";
8
+ const ue = /* @__PURE__ */ V({
9
9
  __name: "item-tag",
10
10
  props: {
11
11
  text: {},
@@ -16,12 +16,12 @@ const ue = /* @__PURE__ */ Q({
16
16
  const t = i;
17
17
  return (a, _) => (n(), u("div", {
18
18
  class: D(["tr-history__item-tag", t.type]),
19
- style: X(t.style)
19
+ style: J(t.style)
20
20
  }, [
21
21
  p("span", null, k(t.text), 1)
22
22
  ], 6));
23
23
  }
24
- }), de = /* @__PURE__ */ V(ue, [["__scopeId", "data-v-346767bb"]]), _e = { class: "tr-history__empty" }, pe = { class: "tr-history__empty-icon" }, he = { class: "tr-history__empty-text" }, me = /* @__PURE__ */ Q({
24
+ }), de = /* @__PURE__ */ M(ue, [["__scopeId", "data-v-346767bb"]]), _e = { class: "tr-history__empty" }, pe = { class: "tr-history__empty-icon" }, he = { class: "tr-history__empty-text" }, me = /* @__PURE__ */ V({
25
25
  __name: "search-empty",
26
26
  props: {
27
27
  text: { default: "暂无内容" }
@@ -35,7 +35,7 @@ const ue = /* @__PURE__ */ Q({
35
35
  p("span", he, k(t.text), 1)
36
36
  ]));
37
37
  }
38
- }), ve = /* @__PURE__ */ V(me, [["__scopeId", "data-v-b21f5bc0"]]), ye = (i) => {
38
+ }), ve = /* @__PURE__ */ M(me, [["__scopeId", "data-v-b21f5bc0"]]), ye = (i) => {
39
39
  const t = G(), a = (l) => {
40
40
  t.value = {
41
41
  id: l.id,
@@ -78,7 +78,7 @@ const ue = /* @__PURE__ */ Q({
78
78
  }, xe = { class: "tr-history__content" }, Ce = {
79
79
  key: 0,
80
80
  class: "tr-history__group-title"
81
- }, Te = ["onClick"], Ie = { class: "tr-history__item-title" }, we = { class: "tr-history__item-actions" }, Ee = { class: "tr-history__close" }, $e = /* @__PURE__ */ Q({
81
+ }, Te = ["onClick"], Ie = { class: "tr-history__item-title" }, we = { class: "tr-history__item-actions" }, Be = { class: "tr-history__close" }, Ee = /* @__PURE__ */ V({
82
82
  __name: "index",
83
83
  props: /* @__PURE__ */ N({
84
84
  tabTitle: {},
@@ -106,23 +106,23 @@ const ue = /* @__PURE__ */ Q({
106
106
  var s;
107
107
  const o = typeof ((s = c[0]) == null ? void 0 : s.group);
108
108
  return o === "string" || o === "symbol";
109
- }, I = h(() => Array.isArray(a.data) ? a.data || [] : a.data[g.value] || []), w = Symbol("NO_GROUP"), M = h(() => {
109
+ }, I = h(() => Array.isArray(a.data) ? a.data || [] : a.data[g.value] || []), w = Symbol("NO_GROUP"), O = h(() => {
110
110
  const c = I.value;
111
111
  return l(c) ? c : [{ group: w, items: c }];
112
- }), x = h(() => a.searchBar ? M.value.map((o) => ({
112
+ }), x = h(() => a.searchBar ? O.value.map((o) => ({
113
113
  ...o,
114
114
  items: o.items.filter((s) => a.searchFn(v.value || "", s))
115
- })).filter((o) => o.items.length > 0) : M.value), L = h(() => x.value.length === 0 ? !1 : x.value[0].group === w ? x.value[0].items.length > 0 : !0), z = (c) => {
115
+ })).filter((o) => o.items.length > 0) : O.value), L = h(() => x.value.length === 0 ? !1 : x.value[0].group === w ? x.value[0].items.length > 0 : !0), z = (c) => {
116
116
  var o;
117
117
  c.id !== ((o = C.value) == null ? void 0 : o.id) && r("item-click", c);
118
118
  }, W = () => {
119
119
  r("close");
120
- }, F = (c) => {
120
+ }, X = (c) => {
121
121
  r("item-delete", c);
122
- }, { editingItem: C, handleEdit: j, handleEditorInputRef: J, handleKeyDown: O } = ye(r);
122
+ }, { editingItem: C, handleEdit: F, handleEditorInputRef: j, handleKeyDown: Q } = ye(r);
123
123
  return (c, o) => (n(), u("div", fe, [
124
124
  p("div", ke, [
125
- (n(!0), u(T, null, $(y.value, (s) => (n(), u("div", {
125
+ (n(!0), u(T, null, E(y.value, (s) => (n(), u("div", {
126
126
  key: s.id,
127
127
  class: D(["tr-history__tab", { active: g.value === s.id }]),
128
128
  onClick: (d) => _.value = s.id
@@ -136,16 +136,16 @@ const ue = /* @__PURE__ */ Q({
136
136
  "prefix-icon": e(se),
137
137
  clearable: ""
138
138
  }, null, 8, ["modelValue", "placeholder", "prefix-icon"])
139
- ])) : E("", !0),
139
+ ])) : B("", !0),
140
140
  p("div", xe, [
141
- L.value ? (n(!0), u(T, { key: 0 }, $(x.value, (s) => (n(), u("div", {
141
+ L.value ? (n(!0), u(T, { key: 0 }, E(x.value, (s) => (n(), u("div", {
142
142
  key: s.group,
143
143
  class: "tr-history__group"
144
144
  }, [
145
145
  s.group !== e(w) ? (n(), u("div", Ce, [
146
146
  p("span", null, k(s.group), 1)
147
- ])) : E("", !0),
148
- (n(!0), u(T, null, $(s.items, (d) => {
147
+ ])) : B("", !0),
148
+ (n(!0), u(T, null, E(s.items, (d) => {
149
149
  var A;
150
150
  return n(), u("div", {
151
151
  key: `${d.id}-${d.title}`,
@@ -157,7 +157,7 @@ const ue = /* @__PURE__ */ Q({
157
157
  d.tag ? (n(), R(e(de), te({
158
158
  key: 0,
159
159
  class: "tr-history__item-tag"
160
- }, { ref_for: !0 }, d.tag), null, 16)) : E("", !0),
160
+ }, { ref_for: !0 }, d.tag), null, 16)) : B("", !0),
161
161
  p("div", we, [
162
162
  m(e(U), {
163
163
  content: "编辑",
@@ -166,9 +166,9 @@ const ue = /* @__PURE__ */ Q({
166
166
  "open-delay": 500
167
167
  }, {
168
168
  default: H(() => [
169
- m(e(B), {
169
+ m(e($), {
170
170
  icon: e(ae),
171
- onClick: S((f) => e(j)(d), ["stop"])
171
+ onClick: S((f) => e(F)(d), ["stop"])
172
172
  }, null, 8, ["icon", "onClick"])
173
173
  ]),
174
174
  _: 2
@@ -180,9 +180,9 @@ const ue = /* @__PURE__ */ Q({
180
180
  "open-delay": 500
181
181
  }, {
182
182
  default: H(() => [
183
- m(e(B), {
183
+ m(e($), {
184
184
  icon: e(ne),
185
- onClick: S((f) => F(d), ["stop"])
185
+ onClick: S((f) => X(d), ["stop"])
186
186
  }, null, 8, ["icon", "onClick"])
187
187
  ]),
188
188
  _: 2
@@ -193,9 +193,9 @@ const ue = /* @__PURE__ */ Q({
193
193
  "onUpdate:modelValue": o[1] || (o[1] = (f) => e(C).title = f),
194
194
  class: "tr-history__item-edit",
195
195
  ref_for: !0,
196
- ref: e(J),
196
+ ref: e(j),
197
197
  onKeydown: o[2] || (o[2] = //@ts-ignore
198
- (...f) => e(O) && e(O)(...f))
198
+ (...f) => e(Q) && e(Q)(...f))
199
199
  }, null, 544)), [
200
200
  [re, e(C).title]
201
201
  ])
@@ -206,8 +206,8 @@ const ue = /* @__PURE__ */ Q({
206
206
  text: v.value ? "暂无搜索结果" : "暂无内容"
207
207
  }, null, 8, ["text"]))
208
208
  ]),
209
- p("div", Ee, [
210
- m(e(B), {
209
+ p("div", Be, [
210
+ m(e($), {
211
211
  icon: e(ie),
212
212
  rounded: "",
213
213
  onClick: W
@@ -215,11 +215,11 @@ const ue = /* @__PURE__ */ Q({
215
215
  ])
216
216
  ]));
217
217
  }
218
- }), K = /* @__PURE__ */ V($e, [["__scopeId", "data-v-8aa5fd59"]]), Be = function(i) {
218
+ }), K = /* @__PURE__ */ M(Ee, [["__scopeId", "data-v-8aa5fd59"]]), $e = function(i) {
219
219
  i.component("TrHistory", K);
220
220
  }, Ne = {
221
221
  ...K,
222
- install: Be,
222
+ install: $e,
223
223
  name: "TrHistory"
224
224
  };
225
225
  export {