@huyooo/ui 0.4.13 → 0.4.14

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.
@@ -2,22 +2,22 @@
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { defineComponent as _, createElementBlock as g, openBlock as l, normalizeStyle as L, normalizeClass as H, createElementVNode as d, computed as P, createBlock as v, createCommentVNode as V, createVNode as r, unref as t, withCtx as s, createTextVNode as f, toDisplayString as I, renderSlot as ye, ref as p } from "vue";
6
- import { Tag as ge, Button as F, Avatar as T, Dropdown as _e, Divider as O, Doption as y } from "@arco-design/web-vue";
5
+ import { defineComponent as _, createElementBlock as g, openBlock as l, normalizeStyle as H, normalizeClass as V, createElementVNode as d, computed as P, createBlock as v, createCommentVNode as F, createVNode as r, unref as t, withCtx as s, createTextVNode as f, toDisplayString as h, renderSlot as ye, ref as p } from "vue";
6
+ import { Tag as ge, Button as O, Avatar as T, Dropdown as _e, Divider as q, Doption as y } from "@arco-design/web-vue";
7
7
  import { S as Se } from "./PaySubscriptions-MYoi8Ob_.js";
8
8
  import { R as be } from "./ReferrerReferees-CFwb0s28.js";
9
- import { a as q, u as Ce, c as $e, b as Ie } from "./useAuthkitProps-DB04dGw9.js";
10
- import { u as he } from "./useUserPanelProps-C5W72fZJ.js";
9
+ import { a as E, u as Ce, c as $e, b as he } from "./useAuthkitProps-DB04dGw9.js";
10
+ import { u as Ie } from "./useUserPanelProps-C5W72fZJ.js";
11
11
  import { b as xe, a as Pe } from "./AuthkitAppSetting-iL2SVGkm.js";
12
12
  import { d as Ue } from "./FeedbackModal-QpDXtZBf.js";
13
- import { M as we } from "./MessageHandle-cZ2FXsJ5.js";
13
+ import { M as Be } from "./MessageHandle-cZ2FXsJ5.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
- import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  /* empty css */
18
18
  import { I as $ } from "./index-Cr5RQSnA.js";
19
- import { _ as E, g as K, i as W } from "./plugin-vue_export-helper-LjDO2Zua.js";
20
- const Be = _({
19
+ import { _ as K, g as W, i as G } from "./plugin-vue_export-helper-LjDO2Zua.js";
20
+ const we = _({
21
21
  name: "IconExport",
22
22
  props: {
23
23
  size: {
@@ -46,11 +46,11 @@ const Be = _({
46
46
  setup(e, {
47
47
  emit: n
48
48
  }) {
49
- const i = K("icon"), a = P(() => [i, `${i}-export`, {
49
+ const i = W("icon"), a = P(() => [i, `${i}-export`, {
50
50
  [`${i}-spin`]: e.spin
51
51
  }]), c = P(() => {
52
52
  const o = {};
53
- return e.size && (o.fontSize = W(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
53
+ return e.size && (o.fontSize = G(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
54
54
  });
55
55
  return {
56
56
  cls: a,
@@ -67,8 +67,8 @@ function Me(e, n, i, a, c, m) {
67
67
  fill: "none",
68
68
  xmlns: "http://www.w3.org/2000/svg",
69
69
  stroke: "currentColor",
70
- class: H(e.cls),
71
- style: L(e.innerStyle),
70
+ class: V(e.cls),
71
+ style: H(e.innerStyle),
72
72
  "stroke-width": e.strokeWidth,
73
73
  "stroke-linecap": e.strokeLinecap,
74
74
  "stroke-linejoin": e.strokeLinejoin,
@@ -77,12 +77,12 @@ function Me(e, n, i, a, c, m) {
77
77
  d: "M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"
78
78
  }, null, -1)]), 14, De);
79
79
  }
80
- var w = /* @__PURE__ */ E(Be, [["render", Me]]);
81
- const Re = Object.assign(w, {
80
+ var B = /* @__PURE__ */ K(we, [["render", Me]]);
81
+ const Re = Object.assign(B, {
82
82
  install: (e, n) => {
83
83
  var i;
84
84
  const a = (i = n == null ? void 0 : n.iconPrefix) != null ? i : "";
85
- e.component(a + w.name, w);
85
+ e.component(a + B.name, B);
86
86
  }
87
87
  }), Ae = _({
88
88
  name: "IconLaunch",
@@ -113,11 +113,11 @@ const Re = Object.assign(w, {
113
113
  setup(e, {
114
114
  emit: n
115
115
  }) {
116
- const i = K("icon"), a = P(() => [i, `${i}-launch`, {
116
+ const i = W("icon"), a = P(() => [i, `${i}-launch`, {
117
117
  [`${i}-spin`]: e.spin
118
118
  }]), c = P(() => {
119
119
  const o = {};
120
- return e.size && (o.fontSize = W(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
120
+ return e.size && (o.fontSize = G(e.size) ? `${e.size}px` : e.size), e.rotate && (o.transform = `rotate(${e.rotate}deg)`), o;
121
121
  });
122
122
  return {
123
123
  cls: a,
@@ -134,8 +134,8 @@ function Ne(e, n, i, a, c, m) {
134
134
  fill: "none",
135
135
  stroke: "currentColor",
136
136
  xmlns: "http://www.w3.org/2000/svg",
137
- class: H(e.cls),
138
- style: L(e.innerStyle),
137
+ class: V(e.cls),
138
+ style: H(e.innerStyle),
139
139
  "stroke-width": e.strokeWidth,
140
140
  "stroke-linecap": e.strokeLinecap,
141
141
  "stroke-linejoin": e.strokeLinejoin,
@@ -144,12 +144,12 @@ function Ne(e, n, i, a, c, m) {
144
144
  d: "M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"
145
145
  }, null, -1)]), 14, ze);
146
146
  }
147
- var B = /* @__PURE__ */ E(Ae, [["render", Ne]]);
148
- const je = Object.assign(B, {
147
+ var w = /* @__PURE__ */ K(Ae, [["render", Ne]]);
148
+ const je = Object.assign(w, {
149
149
  install: (e, n) => {
150
150
  var i;
151
151
  const a = (i = n == null ? void 0 : n.iconPrefix) != null ? i : "";
152
- e.component(a + B.name, B);
152
+ e.component(a + w.name, w);
153
153
  }
154
154
  }), Le = {
155
155
  class: "pricing"
@@ -187,9 +187,9 @@ const je = Object.assign(B, {
187
187
  "border-radius": "6px"
188
188
  }
189
189
  }, {
190
- default: s(() => [f(I(i.currentVersionName), 1)]),
190
+ default: s(() => [f(h(i.currentVersionName), 1)]),
191
191
  _: 1
192
- })]), i.canUpgrade ? (l(), v(t(F), {
192
+ })]), i.canUpgrade ? (l(), v(t(O), {
193
193
  key: 0,
194
194
  type: "primary",
195
195
  size: "mini",
@@ -199,9 +199,9 @@ const je = Object.assign(B, {
199
199
  default: s(() => o[1] || (o[1] = [f(" 升级 ")])),
200
200
  _: 1,
201
201
  __: [1]
202
- })) : V("", !0)]), d("span", null, "有效期至: " + I(i.expireDate), 1)]));
202
+ })) : F("", !0)]), d("span", null, "有效期至: " + h(i.expireDate), 1)]));
203
203
  }
204
- }), Te = /* @__PURE__ */ h(Fe, [["__scopeId", "data-v-1e32fa72"]]), Oe = {
204
+ }), Oe = /* @__PURE__ */ I(Fe, [["__scopeId", "data-v-1e32fa72"]]), Te = {
205
205
  class: "userInfo"
206
206
  }, qe = {
207
207
  key: 0,
@@ -220,13 +220,13 @@ const je = Object.assign(B, {
220
220
  },
221
221
  setup(e) {
222
222
  const n = e;
223
- return (i, a) => (l(), g("div", Oe, [n.nickname ? (l(), g("span", qe, I(n.nickname), 1)) : V("", !0), r(t(T), {
223
+ return (i, a) => (l(), g("div", Te, [n.nickname ? (l(), g("span", qe, h(n.nickname), 1)) : F("", !0), r(t(T), {
224
224
  "image-url": n.avatar,
225
225
  size: 32,
226
226
  "object-fit": "cover"
227
227
  }, null, 8, ["image-url"])]));
228
228
  }
229
- }), Ke = /* @__PURE__ */ h(Ee, [["__scopeId", "data-v-a7a47cc4"]]), We = {
229
+ }), Ke = /* @__PURE__ */ I(Ee, [["__scopeId", "data-v-a7a47cc4"]]), We = {
230
230
  class: "userInfo"
231
231
  }, Ge = {
232
232
  class: "extra"
@@ -256,9 +256,9 @@ const je = Object.assign(B, {
256
256
  "image-url": n.avatarUrl,
257
257
  size: 42,
258
258
  "object-fit": "cover"
259
- }, null, 8, ["image-url"]), d("div", Ge, [d("span", Je, I(n.nickname), 1), d("span", Qe, I(n.email), 1)])]));
259
+ }, null, 8, ["image-url"]), d("div", Ge, [d("span", Je, h(n.nickname), 1), d("span", Qe, h(n.email), 1)])]));
260
260
  }
261
- }), Ye = /* @__PURE__ */ h(Xe, [["__scopeId", "data-v-611a1dda"]]), Ze = {
261
+ }), Ye = /* @__PURE__ */ I(Xe, [["__scopeId", "data-v-611a1dda"]]), Ze = {
262
262
  class: "dropdownContent"
263
263
  }, et = {
264
264
  class: "header"
@@ -270,7 +270,7 @@ const je = Object.assign(B, {
270
270
  }) {
271
271
  const i = n, {
272
272
  userProfile: a
273
- } = q();
273
+ } = E();
274
274
  function c() {
275
275
  i("toSignIn");
276
276
  }
@@ -285,11 +285,11 @@ const je = Object.assign(B, {
285
285
  "avatar-url": (k = t(a)) == null ? void 0 : k.avatarUrl,
286
286
  nickname: (S = t(a)) == null ? void 0 : S.nickname,
287
287
  email: (b = t(a)) == null ? void 0 : b.email
288
- }, null, 8, ["avatar-url", "nickname", "email"]), r(Te, {
288
+ }, null, 8, ["avatar-url", "nickname", "email"]), r(Oe, {
289
289
  currentVersionName: "免费版本",
290
290
  "expire-date": "2025-01-01",
291
291
  "can-upgrade": !0
292
- })]), r(t(O), {
292
+ })]), r(t(q), {
293
293
  style: {
294
294
  margin: "10px 0px"
295
295
  }
@@ -302,7 +302,7 @@ const je = Object.assign(B, {
302
302
  }, null, 8, ["avatar"])];
303
303
  }),
304
304
  _: 3
305
- })) : (l(), v(t(F), {
305
+ })) : (l(), v(t(O), {
306
306
  key: 0,
307
307
  type: "primary",
308
308
  class: "handle",
@@ -313,7 +313,7 @@ const je = Object.assign(B, {
313
313
  __: [0]
314
314
  }));
315
315
  }
316
- }), nt = /* @__PURE__ */ h(tt, [["__scopeId", "data-v-8f2cb031"]]), ot = {
316
+ }), nt = /* @__PURE__ */ I(tt, [["__scopeId", "data-v-8f2cb031"]]), ot = {
317
317
  class: "UserPanel"
318
318
  }, it = /* @__PURE__ */ _({
319
319
  __name: "UserPanel",
@@ -327,24 +327,24 @@ const je = Object.assign(B, {
327
327
  bucket: S,
328
328
  region: b,
329
329
  appId: D
330
- } = he(), {
330
+ } = Ie(), {
331
331
  fetchUserProfile: M,
332
- userProfile: G
333
- } = q(), {
332
+ userProfile: R
333
+ } = E(), {
334
334
  addSignInCallback: J
335
335
  } = Ce();
336
- localStorage.getItem("jwtToken") && M();
337
- const R = p(), A = p(Symbol("key")), z = p(), N = p(), Q = p(Symbol("key")), X = p(), Y = p(Symbol("key"));
338
- function Z(j) {
336
+ R.value || M();
337
+ const A = p(), z = p(Symbol("key")), N = p(), j = p(), Q = p(Symbol("key")), X = p(), Y = p(Symbol("key"));
338
+ function Z(L) {
339
339
  }
340
- function ee(j) {
340
+ function ee(L) {
341
341
  }
342
342
  const C = $e(), {
343
343
  show: te
344
- } = Ie();
344
+ } = he();
345
345
  C.appId.value = D.value, C.prefixUrl.value = o.value, C.bucketId.value = k.value, C.bucket.value = S.value, C.region.value = b.value;
346
346
  function ne() {
347
- A.value = Symbol("key");
347
+ z.value = Symbol("key");
348
348
  }
349
349
  const U = p(), x = p(Symbol("key"));
350
350
  function oe() {
@@ -375,24 +375,24 @@ const je = Object.assign(B, {
375
375
  U.value.setData(null, !0);
376
376
  }
377
377
  function pe() {
378
- z.value.openNotification();
378
+ N.value.openNotification();
379
379
  }
380
380
  function de() {
381
- N.value.setData(null, !0);
381
+ j.value.setData(null, !0);
382
382
  }
383
383
  function fe() {
384
384
  i.value.setData(!0);
385
385
  }
386
386
  function me() {
387
- R.value.setData(!0);
387
+ A.value.setData(!0);
388
388
  }
389
389
  function ke() {
390
390
  m("toHomePage");
391
391
  }
392
392
  async function ve() {
393
- G.value = null, localStorage.removeItem("jwtToken"), m("signOut");
393
+ R.value = null, localStorage.removeItem("jwtToken"), m("signOut");
394
394
  }
395
- return (j, u) => (l(), g("div", ot, [r(nt, {
395
+ return (L, u) => (l(), g("div", ot, [r(nt, {
396
396
  onToSignIn: re
397
397
  }, {
398
398
  DoptionList: s(() => [r(t(y), {
@@ -435,7 +435,7 @@ const je = Object.assign(B, {
435
435
  icon: s(() => u[4] || (u[4] = [f("邀请 ")])),
436
436
  default: s(() => [r(t($))]),
437
437
  _: 1
438
- }), r(t(O), {
438
+ }), r(t(q), {
439
439
  style: {
440
440
  margin: "10px 0px"
441
441
  }
@@ -465,13 +465,13 @@ const je = Object.assign(B, {
465
465
  onCancel: le
466
466
  })), (l(), v(be, {
467
467
  ref_key: "RefereesRef",
468
- ref: R,
469
- key: A.value,
468
+ ref: A,
469
+ key: z.value,
470
470
  "prefix-url": t(o),
471
471
  onCancel: ne
472
472
  }, null, 8, ["prefix-url"])), (l(), v(Se, {
473
473
  ref_key: "SubscriptionsRef",
474
- ref: N,
474
+ ref: j,
475
475
  key: Q.value,
476
476
  title: "订阅详情",
477
477
  onConfirm: oe,
@@ -483,9 +483,9 @@ const je = Object.assign(B, {
483
483
  size: "large",
484
484
  onToPrivacyPolicy: Z,
485
485
  onToUserServiceAgreement: ee
486
- })), r(we, {
486
+ })), r(Be, {
487
487
  ref_key: "MessageHandleRef",
488
- ref: z,
488
+ ref: N,
489
489
  "prefix-url": t(o)
490
490
  }, null, 8, ["prefix-url"]), (l(), v(Ue, {
491
491
  ref_key: "FeedBackModalRef",
@@ -500,9 +500,9 @@ const je = Object.assign(B, {
500
500
  onCancel: ae
501
501
  }, null, 8, ["app-id", "prefix-url", "bucket-id", "bucket", "region"]))]));
502
502
  }
503
- }), ht = /* @__PURE__ */ h(it, [["__scopeId", "data-v-717262cd"]]);
503
+ }), ht = /* @__PURE__ */ I(it, [["__scopeId", "data-v-0e5a02cf"]]);
504
504
  export {
505
- Te as S,
505
+ Oe as S,
506
506
  ht as U,
507
507
  nt as a,
508
508
  Ke as b,
package/dist/common.js CHANGED
@@ -3,7 +3,7 @@ import { C as t, G as n, S as p, W as m } from "./WidthContainer-D795bWdT.js";
3
3
  import { C as i, E as u } from "./CustomTable-DbiCOvmO.js";
4
4
  import { I as x } from "./InfiniteLoading-BOurBPUR.js";
5
5
  import { M as d, a as U } from "./Menu-MZJINp6f.js";
6
- import { S as I, b, c as S, a as g, U as v } from "./UserPanel-CsWfMpZO.js";
6
+ import { S as I, b, c as S, a as g, U as v } from "./UserPanel-pfGX77rG.js";
7
7
  import { S as B } from "./PaySubscriptions-MYoi8Ob_.js";
8
8
  import { R as P } from "./ReferrerReferees-CFwb0s28.js";
9
9
  import { _ as G } from "./Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js";
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { C as ds, a as us } from "./CollapseItem-Cw1vcdLu.js";
13
13
  import { C as As, G as cs, S as Ls, W as hs } from "./WidthContainer-D795bWdT.js";
14
14
  import { C as fs, E as ks } from "./CustomTable-DbiCOvmO.js";
15
15
  import { M as ls, a as bs } from "./Menu-MZJINp6f.js";
16
- import { S as Ms, b as Ss, c as Fs, a as xs, U as Is, S as Us } from "./UserPanel-CsWfMpZO.js";
16
+ import { S as Ms, b as Ss, c as Fs, a as xs, U as Is, S as Us } from "./UserPanel-pfGX77rG.js";
17
17
  import { S as Bs, S as Ns } from "./PaySubscriptions-MYoi8Ob_.js";
18
18
  import { R as ws, R as Ds } from "./ReferrerReferees-CFwb0s28.js";
19
19
  import { _ as vs } from "./Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js";