@huyooo/ui 1.0.2 → 1.0.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.
- package/dist/AuthkitAppSetting-BN8-xgNq.js +2674 -0
- package/dist/{Contact-M6iyuyNL.js → Contact-DBH8CyKp.js} +105 -113
- package/dist/CustomTable-BzGfaAVH.js +276 -0
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
- package/dist/LandingPageDescription-BczWZHKy.js +12 -0
- package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-r-t3H1X0.js} +87 -88
- package/dist/LandingPageSectionHeader-CVAqc7bx.js +137 -0
- package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-DhKpOj5F.js} +300 -309
- package/dist/LegalDocViewer-DlaLKGyX.js +2501 -0
- package/dist/Menu-uCexrsKP.js +199 -0
- package/dist/MessageHandle-mEkCsv9e.js +1173 -0
- package/dist/MessageList-Ce-_LNTk.js +244 -0
- package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
- package/dist/PricingPlans-DoWP5aX7.js +427 -0
- package/dist/ReferrerReferees-DgygiIiE.js +237 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
- package/dist/WidthContainer-PeWkCK0p.js +721 -0
- package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
- package/dist/authkit.d.ts +6 -2
- package/dist/authkit.js +53 -44
- package/dist/common/authProviderIcons.d.ts +12 -0
- package/dist/common/globalConfig.d.ts +5 -0
- package/dist/common/tableColumnWidths.d.ts +11 -0
- package/dist/common.js +3 -3
- package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
- package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
- package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
- package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
- package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
- package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
- package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
- package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
- package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
- package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
- package/dist/components/CustomTable.vue.d.ts +27 -1
- package/dist/components/Ellipsis.vue.d.ts +2 -6
- package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
- package/dist/components/Gradientbackground.vue.d.ts +2 -2
- package/dist/components/HeaderMenus.vue.d.ts +4 -1
- package/dist/components/InfiniteLoading.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
- package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
- package/dist/components/Menu.vue.d.ts +2 -1
- package/dist/components/MenuItem.vue.d.ts +3 -1
- package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
- package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
- package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
- package/dist/components/Message/MessageList.vue.d.ts +4 -3
- package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
- package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
- package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
- package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
- package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
- package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
- package/dist/components/Message/messageBody/types.d.ts +7 -0
- package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
- package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
- package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
- package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
- package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
- package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
- package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
- package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
- package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
- package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
- package/dist/composables/Authkit/useOauth.d.ts +17 -4
- package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
- package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
- package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
- package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
- package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
- package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
- package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
- package/dist/composables/useInfiniteList.d.ts +19 -0
- package/dist/composables/useMessageNotifications.d.ts +3 -6
- package/dist/composables.d.ts +4 -2
- package/dist/composables.js +50 -45
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +12 -11
- package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
- package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
- package/dist/landingPage.js +21 -21
- package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
- package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
- package/dist/legalDocs/index.d.ts +7 -0
- package/dist/legalDocs/isConfigured.d.ts +7 -0
- package/dist/legalDocs/open.d.ts +3 -0
- package/dist/legalDocs/resolveAppId.d.ts +8 -0
- package/dist/legalDocs/resolveTarget.d.ts +4 -0
- package/dist/legalDocs/types.d.ts +12 -0
- package/dist/main.js +320 -308
- package/dist/message.d.ts +3 -0
- package/dist/message.js +301 -21
- package/dist/pay.d.ts +1 -1
- package/dist/pay.js +14 -17
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +1385 -328
- package/dist/types/api/billing.generated.d.ts +907 -76
- package/dist/types/api/ones.generated.d.ts +131 -2
- package/dist/types/api.d.ts +1 -0
- package/dist/types/app.d.ts +10 -0
- package/dist/types/user.d.ts +1 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
- package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
- package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
- package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
- package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
- package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
- package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
- package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
- package/dist/useRoutePermission-CEiya9AM.js +218 -0
- package/dist/useSEO-CDWxbk8B.js +221 -0
- package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
- package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/userMenuModal-D-nDaYqM.js +66 -0
- package/dist/utils/apiMiddlewares.d.ts +5 -5
- package/dist/utils/apiResponse.d.ts +11 -0
- package/dist/utils/authProviderIcon.d.ts +3 -0
- package/dist/utils/authkit.d.ts +20 -7
- package/dist/utils/formatPoints.d.ts +8 -0
- package/dist/utils/messageNotificationContent.d.ts +4 -0
- package/dist/utils/messageTextLink.d.ts +9 -0
- package/dist/utils/passkeySupport.d.ts +8 -0
- package/dist/utils/pointsFlowTypes.d.ts +10 -0
- package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
- package/dist/utils/refundStatusDisplay.d.ts +1 -0
- package/dist/utils/subscriptionDisplay.d.ts +7 -0
- package/dist/utils/userDisplay.d.ts +41 -0
- package/package.json +11 -3
- package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
- package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
- package/dist/CustomTable-CCOQxfxr.js +0 -279
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
- package/dist/LandingPageFAQ-CZJXvor9.js +0 -80
- package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
- package/dist/Menu-Cy2ZPeaz.js +0 -170
- package/dist/MessageHandle-BG12aX0i.js +0 -924
- package/dist/MessageList-CrCF8mU6.js +0 -233
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
- package/dist/PaySubscriptions-C3KiTsQS.js +0 -1241
- package/dist/PricingPlans-uwlFiiJx.js +0 -404
- package/dist/ReferrerReferees-Zb5Bd-_e.js +0 -106
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-QWUNRjGh.js +0 -520
- package/dist/WidthContainer-BVBk0kJN.js +0 -688
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
- package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
- package/dist/index-D3Kp6R4z.js +0 -4
- package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
- package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
- package/dist/useLegalLinks-Cwr45PBT.js +0 -60
- package/dist/useRoutePermission-CaWtjLRA.js +0 -212
- package/dist/useSEO-BSMQdBR9.js +0 -158
- package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
- package/dist/useTableHandle-BdujaiNX.js +0 -69
- /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { ref as z, computed as I, readonly as V, defineComponent as b, openBlock as i, createElementBlock as v, normalizeClass as M, createElementVNode as m, createCommentVNode as k, renderSlot as r, toDisplayString as B, createBlock as g, unref as f, withCtx as l, createTextVNode as c, createVNode as N, Fragment as S, renderList as L, createSlots as _, mergeProps as p } from "vue";
|
|
2
|
+
import { o as C } from "./apiClients-BcXOLuYu.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { I as E } from "./userMenuModal-D-nDaYqM.js";
|
|
5
|
+
import { Tag as $, Button as P, Empty as U } from "@arco-design/web-vue";
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
+
const n = z({
|
|
10
|
+
changelog: 0,
|
|
11
|
+
event: 0,
|
|
12
|
+
message: 0,
|
|
13
|
+
notice: 0
|
|
14
|
+
});
|
|
15
|
+
let h = null;
|
|
16
|
+
function D() {
|
|
17
|
+
n.value = {
|
|
18
|
+
changelog: 0,
|
|
19
|
+
event: 0,
|
|
20
|
+
message: 0,
|
|
21
|
+
notice: 0
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
async function T() {
|
|
25
|
+
return h || (h = (async () => {
|
|
26
|
+
var w, s, y, d;
|
|
27
|
+
const [e, o, t, u] = await Promise.all([C.messageCenter.messageNotifications.statistics.post({}), C.messageCenter.noticeNotifications.own.post({
|
|
28
|
+
current: 1,
|
|
29
|
+
pageSize: 1,
|
|
30
|
+
where: {
|
|
31
|
+
read: !1
|
|
32
|
+
}
|
|
33
|
+
}), C.messageCenter.changelogNotifications.own.post({
|
|
34
|
+
current: 1,
|
|
35
|
+
pageSize: 1,
|
|
36
|
+
where: {
|
|
37
|
+
read: !1
|
|
38
|
+
}
|
|
39
|
+
}), C.messageCenter.eventNotifications.own.post({
|
|
40
|
+
current: 1,
|
|
41
|
+
pageSize: 1,
|
|
42
|
+
where: {
|
|
43
|
+
read: !1
|
|
44
|
+
}
|
|
45
|
+
})]);
|
|
46
|
+
e.error || (n.value.message = typeof ((w = e.data) == null ? void 0 : w.unread) == "number" ? e.data.unread : 0), o.error || (n.value.notice = typeof ((s = o.data) == null ? void 0 : s.count) == "number" ? o.data.count : 0), t.error || (n.value.changelog = typeof ((y = t.data) == null ? void 0 : y.count) == "number" ? t.data.count : 0), u.error || (n.value.event = typeof ((d = u.data) == null ? void 0 : d.count) == "number" ? u.data.count : 0);
|
|
47
|
+
})().finally(() => {
|
|
48
|
+
h = null;
|
|
49
|
+
}), h);
|
|
50
|
+
}
|
|
51
|
+
const A = I(() => n.value.changelog + n.value.event + n.value.message + n.value.notice), F = {
|
|
52
|
+
ChangelogNotifications: "changelog",
|
|
53
|
+
EventNotifications: "event",
|
|
54
|
+
MessageNotifications: "message",
|
|
55
|
+
NoticeNotifications: "notice"
|
|
56
|
+
};
|
|
57
|
+
function j(e) {
|
|
58
|
+
const o = F[e];
|
|
59
|
+
return o ? n.value[o] : 0;
|
|
60
|
+
}
|
|
61
|
+
function me() {
|
|
62
|
+
return {
|
|
63
|
+
counts: V(n),
|
|
64
|
+
messageCenterUnreadTotal: A,
|
|
65
|
+
refreshMessageCenterBadgeCounts: T,
|
|
66
|
+
resetMessageCenterBadgeCounts: D,
|
|
67
|
+
resolveMessageCenterMenuBadge: j
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
const q = {
|
|
71
|
+
class: "message-item__content"
|
|
72
|
+
}, G = {
|
|
73
|
+
class: "message-item__header"
|
|
74
|
+
}, H = {
|
|
75
|
+
class: "message-item__title"
|
|
76
|
+
}, J = {
|
|
77
|
+
class: "message-item__tags"
|
|
78
|
+
}, K = {
|
|
79
|
+
class: "message-item__description"
|
|
80
|
+
}, O = {
|
|
81
|
+
class: "message-item__footer"
|
|
82
|
+
}, Q = {
|
|
83
|
+
class: "message-item__time"
|
|
84
|
+
}, W = {
|
|
85
|
+
class: "message-item__actions"
|
|
86
|
+
}, X = /* @__PURE__ */ b({
|
|
87
|
+
__name: "MessageItem",
|
|
88
|
+
props: {
|
|
89
|
+
item: {},
|
|
90
|
+
showReadStatus: {
|
|
91
|
+
type: Boolean
|
|
92
|
+
},
|
|
93
|
+
showViewButton: {
|
|
94
|
+
type: Boolean
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
emits: ["click"],
|
|
98
|
+
setup(e) {
|
|
99
|
+
return (o, t) => (i(), v("div", {
|
|
100
|
+
class: M(["message-item", {
|
|
101
|
+
"message-item--unread": e.showReadStatus && !e.item.read
|
|
102
|
+
}]),
|
|
103
|
+
onClick: t[0] || (t[0] = (u) => o.$emit("click", e.item))
|
|
104
|
+
}, [m("div", q, [m("div", G, [e.showReadStatus ? (i(), v("span", {
|
|
105
|
+
key: 0,
|
|
106
|
+
class: M(["message-item__dot", {
|
|
107
|
+
"message-item__dot--unread": !e.item.read
|
|
108
|
+
}])
|
|
109
|
+
}, null, 2)) : k("", !0), r(o.$slots, "prefix", {
|
|
110
|
+
item: e.item
|
|
111
|
+
}, void 0, !0), m("span", H, B(e.item.title), 1), m("div", J, [e.item.pinned ? (i(), g(f($), {
|
|
112
|
+
key: 0,
|
|
113
|
+
color: "arcoblue",
|
|
114
|
+
size: "small"
|
|
115
|
+
}, {
|
|
116
|
+
default: l(() => [...t[1] || (t[1] = [c("置顶", -1)])]),
|
|
117
|
+
_: 1
|
|
118
|
+
})) : k("", !0), r(o.$slots, "tags", {
|
|
119
|
+
item: e.item
|
|
120
|
+
}, () => [e.item.priority === "urgent" ? (i(), g(f($), {
|
|
121
|
+
key: 0,
|
|
122
|
+
color: "red",
|
|
123
|
+
size: "small"
|
|
124
|
+
}, {
|
|
125
|
+
default: l(() => [...t[2] || (t[2] = [c("紧急", -1)])]),
|
|
126
|
+
_: 1
|
|
127
|
+
})) : e.item.priority === "important" ? (i(), g(f($), {
|
|
128
|
+
key: 1,
|
|
129
|
+
color: "orange",
|
|
130
|
+
size: "small"
|
|
131
|
+
}, {
|
|
132
|
+
default: l(() => [...t[3] || (t[3] = [c("重要", -1)])]),
|
|
133
|
+
_: 1
|
|
134
|
+
})) : e.item.priority === "high" ? (i(), g(f($), {
|
|
135
|
+
key: 2,
|
|
136
|
+
color: "orange",
|
|
137
|
+
size: "small"
|
|
138
|
+
}, {
|
|
139
|
+
default: l(() => [...t[4] || (t[4] = [c("高", -1)])]),
|
|
140
|
+
_: 1
|
|
141
|
+
})) : k("", !0)], !0)])]), m("div", K, [r(o.$slots, "description", {
|
|
142
|
+
item: e.item
|
|
143
|
+
}, () => [c(B(e.item.description), 1)], !0)]), m("div", O, [m("span", Q, B(e.item.createAt), 1), r(o.$slots, "footer", {
|
|
144
|
+
item: e.item
|
|
145
|
+
}, void 0, !0)])]), m("div", W, [r(o.$slots, "actions", {
|
|
146
|
+
item: e.item
|
|
147
|
+
}, () => [e.showViewButton ? (i(), g(f(P), {
|
|
148
|
+
key: 0,
|
|
149
|
+
type: "text",
|
|
150
|
+
size: "small"
|
|
151
|
+
}, {
|
|
152
|
+
default: l(() => [...t[5] || (t[5] = [c("查看", -1)])]),
|
|
153
|
+
_: 1
|
|
154
|
+
})) : k("", !0)], !0)])], 2));
|
|
155
|
+
}
|
|
156
|
+
}), Y = /* @__PURE__ */ R(X, [["__scopeId", "data-v-ca3f3399"]]), Z = {
|
|
157
|
+
class: "message-list"
|
|
158
|
+
}, x = {
|
|
159
|
+
key: 0,
|
|
160
|
+
class: "message-list__empty"
|
|
161
|
+
}, ee = /* @__PURE__ */ b({
|
|
162
|
+
__name: "MessageList",
|
|
163
|
+
props: {
|
|
164
|
+
messageList: {},
|
|
165
|
+
loading: {
|
|
166
|
+
type: Boolean
|
|
167
|
+
},
|
|
168
|
+
finished: {
|
|
169
|
+
type: Boolean
|
|
170
|
+
},
|
|
171
|
+
showReadStatus: {
|
|
172
|
+
type: Boolean
|
|
173
|
+
},
|
|
174
|
+
showViewButton: {
|
|
175
|
+
type: Boolean
|
|
176
|
+
},
|
|
177
|
+
emptyDescription: {
|
|
178
|
+
default: "暂无消息"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
emits: ["itemClick", "loadMore"],
|
|
182
|
+
setup(e, {
|
|
183
|
+
emit: o
|
|
184
|
+
}) {
|
|
185
|
+
const t = e, u = o;
|
|
186
|
+
function w(s) {
|
|
187
|
+
u("itemClick", s);
|
|
188
|
+
}
|
|
189
|
+
return (s, y) => (i(), v("div", Z, [t.messageList.length === 0 && !t.loading ? (i(), v("div", x, [N(f(U), {
|
|
190
|
+
description: t.emptyDescription
|
|
191
|
+
}, null, 8, ["description"])])) : (i(), v(S, {
|
|
192
|
+
key: 1
|
|
193
|
+
}, [(i(!0), v(S, null, L(t.messageList, (d) => (i(), g(Y, {
|
|
194
|
+
key: d.id,
|
|
195
|
+
item: d,
|
|
196
|
+
"show-read-status": t.showReadStatus,
|
|
197
|
+
"show-view-button": t.showViewButton,
|
|
198
|
+
onClick: (a) => w(d)
|
|
199
|
+
}, _({
|
|
200
|
+
_: 2
|
|
201
|
+
}, [s.$slots.prefix ? {
|
|
202
|
+
name: "prefix",
|
|
203
|
+
fn: l((a) => [r(s.$slots, "prefix", p({
|
|
204
|
+
ref_for: !0
|
|
205
|
+
}, a), void 0, !0)]),
|
|
206
|
+
key: "0"
|
|
207
|
+
} : void 0, s.$slots.tags ? {
|
|
208
|
+
name: "tags",
|
|
209
|
+
fn: l((a) => [r(s.$slots, "tags", p({
|
|
210
|
+
ref_for: !0
|
|
211
|
+
}, a), void 0, !0)]),
|
|
212
|
+
key: "1"
|
|
213
|
+
} : void 0, s.$slots.description ? {
|
|
214
|
+
name: "description",
|
|
215
|
+
fn: l((a) => [r(s.$slots, "description", p({
|
|
216
|
+
ref_for: !0
|
|
217
|
+
}, a), void 0, !0)]),
|
|
218
|
+
key: "2"
|
|
219
|
+
} : void 0, s.$slots.footer ? {
|
|
220
|
+
name: "footer",
|
|
221
|
+
fn: l((a) => [r(s.$slots, "footer", p({
|
|
222
|
+
ref_for: !0
|
|
223
|
+
}, a), void 0, !0)]),
|
|
224
|
+
key: "3"
|
|
225
|
+
} : void 0, s.$slots.actions ? {
|
|
226
|
+
name: "actions",
|
|
227
|
+
fn: l((a) => [r(s.$slots, "actions", p({
|
|
228
|
+
ref_for: !0
|
|
229
|
+
}, a), void 0, !0)]),
|
|
230
|
+
key: "4"
|
|
231
|
+
} : void 0]), 1032, ["item", "show-read-status", "show-view-button", "onClick"]))), 128)), N(E, {
|
|
232
|
+
loading: t.loading,
|
|
233
|
+
finished: t.finished,
|
|
234
|
+
onInfinite: y[0] || (y[0] = (d) => s.$emit("loadMore"))
|
|
235
|
+
}, null, 8, ["loading", "finished"])], 64))]));
|
|
236
|
+
}
|
|
237
|
+
}), de = /* @__PURE__ */ R(ee, [["__scopeId", "data-v-6e67bdb5"]]);
|
|
238
|
+
export {
|
|
239
|
+
de as M,
|
|
240
|
+
T as a,
|
|
241
|
+
A as m,
|
|
242
|
+
D as r,
|
|
243
|
+
me as u
|
|
244
|
+
};
|