@huyooo/ui 0.14.2 → 0.14.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.
@@ -10,7 +10,7 @@ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  /* empty css */
11
11
  import { u as Z } from "./useUploadCos-DGPnLOC9.js";
12
12
  import { g as A } from "./apiClients-CkI47p36.js";
13
- import "./FeedbackModal-5s71W2NO.js";
13
+ import "./FeedbackModal-yVKcsuaE.js";
14
14
  import { Icon as Y } from "@iconify/vue";
15
15
  const H = f({
16
16
  name: "IconDown",
@@ -14,7 +14,7 @@ import { o as V, g as Te } from "./apiClients-CkI47p36.js";
14
14
  /* empty css */
15
15
  import { u as je } from "./useUploadCos-DGPnLOC9.js";
16
16
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- import { M as Ae } from "./MessageList-CaPsDx_o.js";
17
+ import { M as Ae } from "./MessageList-CrCF8mU6.js";
18
18
  import { f as j } from "./index-D56hUMeD.js";
19
19
  import { Bubble as ve, Prompts as Ne, Sender as Pe } from "ant-design-x-vue";
20
20
  import { C as ye } from "./Clipboard-C8ncjaAJ.js";
@@ -3,7 +3,7 @@ import { ref as o, defineComponent as T, openBlock as i, createBlock as C, unref
3
3
  /* empty css */
4
4
  import { U as ee } from "./index-D3Kp6R4z.js";
5
5
  /* empty css */
6
- import { M as q } from "./MessageList-CaPsDx_o.js";
6
+ import { M as q } from "./MessageList-CrCF8mU6.js";
7
7
  import { Spin as te, Breadcrumb as K, BreadcrumbItem as D, Tag as U, Modal as ae } from "@arco-design/web-vue";
8
8
  import { o as x } from "./apiClients-CkI47p36.js";
9
9
  import { TiptapEditor as se, TiptapTitle as ne } from "@huyooo/vue-tiptap";
@@ -1,7 +1,7 @@
1
1
  /* empty css */
2
2
  import "./index-D3Kp6R4z.js";
3
- import { defineComponent as B, ref as L, openBlock as i, createElementBlock as d, renderSlot as o, createVNode as p, unref as m, toDisplayString as $, createCommentVNode as u, normalizeClass as S, createElementVNode as r, createBlock as c, withCtx as l, createTextVNode as f, Fragment as C, renderList as V, createSlots as _, mergeProps as g } from "vue";
4
- import { Spin as M, Empty as T, Tag as k, Button as z } from "@arco-design/web-vue";
3
+ import { defineComponent as B, ref as L, openBlock as i, createElementBlock as r, createVNode as $, unref as m, createCommentVNode as c, normalizeClass as S, createElementVNode as d, renderSlot as a, toDisplayString as w, createBlock as f, withCtx as l, createTextVNode as u, Fragment as C, renderList as T, createSlots as V, mergeProps as g } from "vue";
4
+ import { Spin as M, Empty as _, Tag as k, Button as z } from "@arco-design/web-vue";
5
5
  import { useIntersectionObserver as b } from "@vueuse/core";
6
6
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  /* empty css */
@@ -10,12 +10,9 @@ const N = {
10
10
  key: 0,
11
11
  class: "loading"
12
12
  }, R = {
13
- key: 0,
14
- class: "loading-text"
15
- }, E = {
16
13
  key: 1,
17
14
  class: "none"
18
- }, F = /* @__PURE__ */ B({
15
+ }, E = /* @__PURE__ */ B({
19
16
  __name: "InfiniteLoading",
20
17
  props: {
21
18
  loading: {
@@ -28,7 +25,7 @@ const N = {
28
25
  },
29
26
  loadingText: {
30
27
  type: String,
31
- default: "数据加载中"
28
+ default: "数据加载中..."
32
29
  },
33
30
  finishedText: {
34
31
  type: String,
@@ -45,9 +42,9 @@ const N = {
45
42
  },
46
43
  emits: ["infinite"],
47
44
  setup(e, {
48
- emit: n
45
+ emit: o
49
46
  }) {
50
- const t = e, h = n, y = L(null);
47
+ const t = e, h = o, y = L(null);
51
48
  return b(y, ([{
52
49
  isIntersecting: s
53
50
  }]) => {
@@ -55,31 +52,33 @@ const N = {
55
52
  !t.loading && !t.finished && h("infinite");
56
53
  }, {
57
54
  threshold: t.threshold
58
- }), (s, w) => (i(), d("div", {
55
+ }), (s, p) => (i(), r("div", {
59
56
  ref_key: "container",
60
57
  ref: y,
61
58
  class: "infinite-loading"
62
- }, [e.loading ? (i(), d("div", N, [o(s.$slots, "loading", {}, () => [p(m(M)), e.loadingText ? (i(), d("span", R, $(e.loadingText), 1)) : u("", !0)], !0)])) : u("", !0), e.finished && e.showFinishedText ? (i(), d("div", E, [o(s.$slots, "finished", {}, () => [p(m(T), {
59
+ }, [e.loading ? (i(), r("div", N, [$(m(M), {
60
+ tip: e.loadingText
61
+ }, null, 8, ["tip"])])) : c("", !0), e.finished && e.showFinishedText ? (i(), r("div", R, [$(m(_), {
63
62
  description: e.finishedText
64
- }, null, 8, ["description"])], !0)])) : u("", !0)], 512));
63
+ }, null, 8, ["description"])])) : c("", !0)], 512));
65
64
  }
66
- }), x = /* @__PURE__ */ I(F, [["__scopeId", "data-v-8746a472"]]), A = {
65
+ }), F = /* @__PURE__ */ I(E, [["__scopeId", "data-v-367cd24c"]]), x = {
67
66
  class: "message-item__content"
68
- }, D = {
67
+ }, A = {
69
68
  class: "message-item__header"
70
- }, O = {
69
+ }, D = {
71
70
  class: "message-item__title"
72
- }, P = {
71
+ }, O = {
73
72
  class: "message-item__tags"
74
- }, j = {
73
+ }, P = {
75
74
  class: "message-item__description"
76
- }, q = {
75
+ }, j = {
77
76
  class: "message-item__footer"
78
- }, G = {
77
+ }, q = {
79
78
  class: "message-item__time"
80
- }, H = {
79
+ }, G = {
81
80
  class: "message-item__actions"
82
- }, J = /* @__PURE__ */ B({
81
+ }, H = /* @__PURE__ */ B({
83
82
  __name: "MessageItem",
84
83
  props: {
85
84
  item: {},
@@ -92,69 +91,69 @@ const N = {
92
91
  },
93
92
  emits: ["click"],
94
93
  setup(e) {
95
- return (n, t) => (i(), d("div", {
94
+ return (o, t) => (i(), r("div", {
96
95
  class: S(["message-item", {
97
96
  "message-item--unread": e.showReadStatus && !e.item.read
98
97
  }]),
99
- onClick: t[0] || (t[0] = (h) => n.$emit("click", e.item))
100
- }, [r("div", A, [r("div", D, [e.showReadStatus ? (i(), d("span", {
98
+ onClick: t[0] || (t[0] = (h) => o.$emit("click", e.item))
99
+ }, [d("div", x, [d("div", A, [e.showReadStatus ? (i(), r("span", {
101
100
  key: 0,
102
101
  class: S(["message-item__dot", {
103
102
  "message-item__dot--unread": !e.item.read
104
103
  }])
105
- }, null, 2)) : u("", !0), o(n.$slots, "prefix", {
104
+ }, null, 2)) : c("", !0), a(o.$slots, "prefix", {
106
105
  item: e.item
107
- }, void 0, !0), r("span", O, $(e.item.title), 1), r("div", P, [e.item.pinned ? (i(), c(m(k), {
106
+ }, void 0, !0), d("span", D, w(e.item.title), 1), d("div", O, [e.item.pinned ? (i(), f(m(k), {
108
107
  key: 0,
109
108
  color: "arcoblue",
110
109
  size: "small"
111
110
  }, {
112
- default: l(() => [...t[1] || (t[1] = [f("置顶", -1)])]),
111
+ default: l(() => [...t[1] || (t[1] = [u("置顶", -1)])]),
113
112
  _: 1
114
- })) : u("", !0), o(n.$slots, "tags", {
113
+ })) : c("", !0), a(o.$slots, "tags", {
115
114
  item: e.item
116
- }, () => [e.item.priority === "urgent" ? (i(), c(m(k), {
115
+ }, () => [e.item.priority === "urgent" ? (i(), f(m(k), {
117
116
  key: 0,
118
117
  color: "red",
119
118
  size: "small"
120
119
  }, {
121
- default: l(() => [...t[2] || (t[2] = [f("紧急", -1)])]),
120
+ default: l(() => [...t[2] || (t[2] = [u("紧急", -1)])]),
122
121
  _: 1
123
- })) : e.item.priority === "important" ? (i(), c(m(k), {
122
+ })) : e.item.priority === "important" ? (i(), f(m(k), {
124
123
  key: 1,
125
124
  color: "orange",
126
125
  size: "small"
127
126
  }, {
128
- default: l(() => [...t[3] || (t[3] = [f("重要", -1)])]),
127
+ default: l(() => [...t[3] || (t[3] = [u("重要", -1)])]),
129
128
  _: 1
130
- })) : e.item.priority === "high" ? (i(), c(m(k), {
129
+ })) : e.item.priority === "high" ? (i(), f(m(k), {
131
130
  key: 2,
132
131
  color: "orange",
133
132
  size: "small"
134
133
  }, {
135
- default: l(() => [...t[4] || (t[4] = [f("高", -1)])]),
134
+ default: l(() => [...t[4] || (t[4] = [u("高", -1)])]),
136
135
  _: 1
137
- })) : u("", !0)], !0)])]), r("div", j, [o(n.$slots, "description", {
136
+ })) : c("", !0)], !0)])]), d("div", P, [a(o.$slots, "description", {
138
137
  item: e.item
139
- }, () => [f($(e.item.description), 1)], !0)]), r("div", q, [r("span", G, $(e.item.createAt), 1), o(n.$slots, "footer", {
138
+ }, () => [u(w(e.item.description), 1)], !0)]), d("div", j, [d("span", q, w(e.item.createAt), 1), a(o.$slots, "footer", {
140
139
  item: e.item
141
- }, void 0, !0)])]), r("div", H, [o(n.$slots, "actions", {
140
+ }, void 0, !0)])]), d("div", G, [a(o.$slots, "actions", {
142
141
  item: e.item
143
- }, () => [e.showViewButton ? (i(), c(m(z), {
142
+ }, () => [e.showViewButton ? (i(), f(m(z), {
144
143
  key: 0,
145
144
  type: "text",
146
145
  size: "small"
147
146
  }, {
148
- default: l(() => [...t[5] || (t[5] = [f("查看", -1)])]),
147
+ default: l(() => [...t[5] || (t[5] = [u("查看", -1)])]),
149
148
  _: 1
150
- })) : u("", !0)], !0)])], 2));
149
+ })) : c("", !0)], !0)])], 2));
151
150
  }
152
- }), K = /* @__PURE__ */ I(J, [["__scopeId", "data-v-ca3f3399"]]), Q = {
151
+ }), J = /* @__PURE__ */ I(H, [["__scopeId", "data-v-ca3f3399"]]), K = {
153
152
  class: "message-list"
154
- }, U = {
153
+ }, Q = {
155
154
  key: 0,
156
155
  class: "message-list__empty"
157
- }, W = /* @__PURE__ */ B({
156
+ }, U = /* @__PURE__ */ B({
158
157
  __name: "MessageList",
159
158
  props: {
160
159
  messageList: {},
@@ -173,62 +172,62 @@ const N = {
173
172
  },
174
173
  emits: ["itemClick", "loadMore"],
175
174
  setup(e, {
176
- emit: n
175
+ emit: o
177
176
  }) {
178
- const t = e, h = n;
177
+ const t = e, h = o;
179
178
  function y(s) {
180
179
  h("itemClick", s);
181
180
  }
182
- return (s, w) => (i(), d("div", Q, [t.messageList.length === 0 && !t.loading ? (i(), d("div", U, [p(m(T), {
181
+ return (s, p) => (i(), r("div", K, [t.messageList.length === 0 && !t.loading ? (i(), r("div", Q, [$(m(_), {
183
182
  description: "暂无消息"
184
- })])) : (i(), d(C, {
183
+ })])) : (i(), r(C, {
185
184
  key: 1
186
- }, [(i(!0), d(C, null, V(t.messageList, (v) => (i(), c(K, {
185
+ }, [(i(!0), r(C, null, T(t.messageList, (v) => (i(), f(J, {
187
186
  key: v.id,
188
187
  item: v,
189
188
  "show-read-status": t.showReadStatus,
190
189
  "show-view-button": t.showViewButton,
191
- onClick: (a) => y(v)
192
- }, _({
190
+ onClick: (n) => y(v)
191
+ }, V({
193
192
  _: 2
194
193
  }, [s.$slots.prefix ? {
195
194
  name: "prefix",
196
- fn: l((a) => [o(s.$slots, "prefix", g({
195
+ fn: l((n) => [a(s.$slots, "prefix", g({
197
196
  ref_for: !0
198
- }, a), void 0, !0)]),
197
+ }, n), void 0, !0)]),
199
198
  key: "0"
200
199
  } : void 0, s.$slots.tags ? {
201
200
  name: "tags",
202
- fn: l((a) => [o(s.$slots, "tags", g({
201
+ fn: l((n) => [a(s.$slots, "tags", g({
203
202
  ref_for: !0
204
- }, a), void 0, !0)]),
203
+ }, n), void 0, !0)]),
205
204
  key: "1"
206
205
  } : void 0, s.$slots.description ? {
207
206
  name: "description",
208
- fn: l((a) => [o(s.$slots, "description", g({
207
+ fn: l((n) => [a(s.$slots, "description", g({
209
208
  ref_for: !0
210
- }, a), void 0, !0)]),
209
+ }, n), void 0, !0)]),
211
210
  key: "2"
212
211
  } : void 0, s.$slots.footer ? {
213
212
  name: "footer",
214
- fn: l((a) => [o(s.$slots, "footer", g({
213
+ fn: l((n) => [a(s.$slots, "footer", g({
215
214
  ref_for: !0
216
- }, a), void 0, !0)]),
215
+ }, n), void 0, !0)]),
217
216
  key: "3"
218
217
  } : void 0, s.$slots.actions ? {
219
218
  name: "actions",
220
- fn: l((a) => [o(s.$slots, "actions", g({
219
+ fn: l((n) => [a(s.$slots, "actions", g({
221
220
  ref_for: !0
222
- }, a), void 0, !0)]),
221
+ }, n), void 0, !0)]),
223
222
  key: "4"
224
- } : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), p(x, {
223
+ } : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), $(F, {
225
224
  loading: t.loading,
226
225
  finished: t.finished,
227
- onInfinite: w[0] || (w[0] = (v) => s.$emit("loadMore"))
226
+ onInfinite: p[0] || (p[0] = (v) => s.$emit("loadMore"))
228
227
  }, null, 8, ["loading", "finished"])], 64))]));
229
228
  }
230
- }), ne = /* @__PURE__ */ I(W, [["__scopeId", "data-v-991c4730"]]);
229
+ }), oe = /* @__PURE__ */ I(U, [["__scopeId", "data-v-991c4730"]]);
231
230
  export {
232
- x as I,
233
- ne as M
231
+ F as I,
232
+ oe as M
234
233
  };
@@ -2,7 +2,7 @@ import { defineComponent as f, ref as p, openBlock as t, createElementBlock as i
2
2
  import { Icon as D } from "@iconify/vue";
3
3
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { o as $ } from "./apiClients-CkI47p36.js";
5
- import { D as x } from "./MessageHandle-zityh0Ba.js";
5
+ import { D as x } from "./MessageHandle-rRAQnE-q.js";
6
6
  const b = /* @__PURE__ */ f({
7
7
  __name: "MessageMenuItem",
8
8
  props: {