@huyooo/ui 0.4.9 → 0.4.11

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.
Files changed (47) hide show
  1. package/dist/{AuthkitAppSetting-D4uAa2Ni.js → AuthkitAppSetting-B_ddDZoJ.js} +451 -432
  2. package/dist/{AuthkitAuthorize-WTE1sCbr.js → AuthkitAuthorize-DEGTLm9-.js} +33 -33
  3. package/dist/{CustomTable-Cd6RiAPX.js → CustomTable-DbiCOvmO.js} +209 -205
  4. package/dist/{FeedbackFeedBackItem-DYUIzqYg.js → FeedbackFeedBackItem-D1JwJFBF.js} +2 -2
  5. package/dist/{FeedbackFeedBackModal-DKgZZ8OR.js → FeedbackFeedBackModal-DOocV38w.js} +597 -596
  6. package/dist/InfiniteLoading-BOurBPUR.js +66 -0
  7. package/dist/{Menu-2SePYCYT.js → Menu-MZJINp6f.js} +32 -32
  8. package/dist/{MessageHandle-C9nSNw5A.js → MessageHandle-cZ2FXsJ5.js} +220 -260
  9. package/dist/{PaySubscriptions-CFKM4gyf.js → PaySubscriptions-MYoi8Ob_.js} +1 -1
  10. package/dist/{ReferrerReferees-q8H-v-Hq.js → ReferrerReferees-CFwb0s28.js} +49 -49
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DqfW_OJJ.js → Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js} +1 -1
  12. package/dist/{UserPanel-xh-QbW8U.js → UserPanel-BhAJ5Dya.js} +167 -168
  13. package/dist/api/Authkit/Users.d.ts +5 -4
  14. package/dist/api/Authkit/auth.d.ts +5 -4
  15. package/dist/authkit.js +3 -3
  16. package/dist/common.js +9 -9
  17. package/dist/components/InfiniteLoading.vue.d.ts +40 -4
  18. package/dist/components/Upload/Upload.vue.d.ts +2 -2
  19. package/dist/components/User/UserAvatar.vue.d.ts +1 -1
  20. package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
  21. package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -1
  22. package/dist/composables/Authkit/useAuthkitProps.d.ts +5 -0
  23. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +143 -1
  24. package/dist/composables/usePolling.d.ts +27 -0
  25. package/dist/composables/useUserPanelProps.d.ts +27 -5
  26. package/dist/composables.js +3 -3
  27. package/dist/feedback.js +2 -2
  28. package/dist/index.js +47 -47
  29. package/dist/message.d.ts +1 -1
  30. package/dist/message.js +9 -8
  31. package/dist/pay.js +1 -1
  32. package/dist/referrer.js +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/api.d.ts +133 -0
  35. package/dist/upload.js +2 -2
  36. package/dist/useAuthkitProps-DXXCuvZp.js +325 -0
  37. package/dist/{useUploadCos-DpOqkozy.js → useUploadCos-B8D9lYIk.js} +1486 -1489
  38. package/dist/useUserPanelProps-C5W72fZJ.js +54 -0
  39. package/dist/user.js +2 -2
  40. package/dist/utils/authkit.d.ts +7 -1
  41. package/dist/utils/configHelper.d.ts +17 -0
  42. package/dist/utils/errorHandler.d.ts +32 -0
  43. package/dist/utils/index.d.ts +11 -1
  44. package/package.json +1 -1
  45. package/dist/components/Message/MessageInfiniteLoading.vue.d.ts +0 -29
  46. package/dist/useAuthkitProps-DwKPhFjM.js +0 -283
  47. package/dist/useUserPanelProps-Dt9zkMJw.js +0 -14
@@ -8,7 +8,7 @@ import { Modal as V, Popconfirm as U, Button as E, Tag as g } from "@arco-design
8
8
  import { api as _ } from "@huyooo/api";
9
9
  import { u as H } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
10
10
  import { u as $ } from "./useTableHandle-DKUIdSSh.js";
11
- import { C as j, f as y } from "./CustomTable-Cd6RiAPX.js";
11
+ import { C as j, a as y } from "./CustomTable-DbiCOvmO.js";
12
12
  import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  function F(c) {
14
14
  return _({
@@ -2,20 +2,20 @@
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { defineComponent as z, ref as b, createBlock as A, openBlock as R, unref as o, withCtx as l, createVNode as x, createTextVNode as s, toDisplayString as u } from "vue";
6
- import { Modal as T, Tag as D } from "@arco-design/web-vue";
7
- import { api as P } from "@huyooo/api";
8
- import { u as U } from "./useTableHandle-DKUIdSSh.js";
9
- import { C as B, f } from "./CustomTable-Cd6RiAPX.js";
10
- import { _ as O } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- function V(p, c) {
12
- return P({
5
+ import { defineComponent as A, ref as v, createBlock as R, openBlock as z, unref as t, withCtx as l, createVNode as b, createTextVNode as s, toDisplayString as u } from "vue";
6
+ import { Modal as P, Tag as T } from "@arco-design/web-vue";
7
+ import { api as D } from "@huyooo/api";
8
+ import { u as O } from "./useTableHandle-DKUIdSSh.js";
9
+ import { C as U, f as B, a as x } from "./CustomTable-DbiCOvmO.js";
10
+ import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ function q(p, c) {
12
+ return D({
13
13
  url: `${p}/restfulApi/referrer/referees`,
14
14
  method: "post",
15
15
  data: c
16
16
  });
17
17
  }
18
- const q = [{
18
+ const E = [{
19
19
  key: "searchEngine",
20
20
  label: "搜索引擎"
21
21
  }, {
@@ -35,7 +35,7 @@ const q = [{
35
35
  key: "forbidden",
36
36
  label: "禁用",
37
37
  color: "red"
38
- }], E = /* @__PURE__ */ z({
38
+ }], H = /* @__PURE__ */ A({
39
39
  __name: "ReferrerReferees",
40
40
  props: {
41
41
  prefixUrl: {
@@ -48,11 +48,11 @@ const q = [{
48
48
  expose: c,
49
49
  emit: _
50
50
  }) {
51
- const k = p, C = _, {
52
- pagination: a,
53
- dataSource: m,
54
- setPage: g
55
- } = U("被推荐人"), y = [{
51
+ const k = p, y = _, {
52
+ pagination: o,
53
+ dataSource: d,
54
+ setPage: m
55
+ } = O("被推荐人"), C = [{
56
56
  dataIndex: "id",
57
57
  slotName: "id",
58
58
  title: "ID",
@@ -101,37 +101,37 @@ const q = [{
101
101
  ellipsis: !0,
102
102
  tooltip: !0,
103
103
  minWidth: 180
104
- }], i = b(!1);
105
- function d() {
106
- i.value = !0, V(k.prefixUrl, {
107
- current: a.value.current,
108
- pageSize: a.value.pageSize
104
+ }], i = v(!1);
105
+ function f() {
106
+ i.value = !0, q(k.prefixUrl, {
107
+ current: o.value.current,
108
+ pageSize: o.value.pageSize
109
109
  }).then(({
110
- data: e
110
+ data: a
111
111
  }) => {
112
- console.log(e, "datadatadata"), i.value = !1, m.value = e.items, a.value.total = e.count;
112
+ i.value = !1, d.value = a.items, o.value.total = a.count;
113
113
  }).catch(() => {
114
114
  i.value = !1;
115
115
  });
116
116
  }
117
- function N(e) {
118
- console.log(e, "pagesize"), g(e, a.value.pageSize), d();
117
+ function N(a) {
118
+ m(a, o.value.pageSize), f();
119
119
  }
120
- function S(e) {
121
- console.log(e, "pagesize"), g(a.value.current, e), d();
120
+ function S(a) {
121
+ m(o.value.current, a), f();
122
122
  }
123
- const n = b(!1);
123
+ const n = v(!1);
124
124
  function W() {
125
- n.value = !1, console.log("handleClose"), C("cancel");
125
+ n.value = !1, y("cancel");
126
126
  }
127
- function w(e) {
128
- n.value = e, d();
127
+ function w(a) {
128
+ n.value = a, f();
129
129
  }
130
130
  return c({
131
131
  setData: w
132
- }), (e, h) => (R(), A(o(T), {
132
+ }), (a, g) => (z(), R(t(P), {
133
133
  visible: n.value,
134
- "onUpdate:visible": h[0] || (h[0] = (t) => n.value = t),
134
+ "onUpdate:visible": g[0] || (g[0] = (e) => n.value = e),
135
135
  title: "被推荐人详情",
136
136
  width: "60%",
137
137
  "ok-loading": i.value,
@@ -140,36 +140,36 @@ const q = [{
140
140
  "unmount-on-close": "",
141
141
  onCancel: W
142
142
  }, {
143
- default: l(() => [x(B, {
144
- columns: y,
145
- data: o(m),
143
+ default: l(() => [b(U, {
144
+ columns: C,
145
+ data: t(d),
146
146
  loading: i.value,
147
- pagination: o(a),
147
+ pagination: t(o),
148
148
  onPageChange: N,
149
149
  onPageSizeChange: S
150
150
  }, {
151
151
  email: l(({
152
- record: t
153
- }) => [s(u(t.refereeInfo.email || "-"), 1)]),
152
+ record: e
153
+ }) => [s(u(e.refereeInfo.email || "-"), 1)]),
154
154
  phone: l(({
155
- record: t
156
- }) => [s(u(t.refereeInfo.phone || "-"), 1)]),
155
+ record: e
156
+ }) => [s(u(e.refereeInfo.phone || "-"), 1)]),
157
157
  source: l(({
158
- record: t
158
+ record: e
159
159
  }) => {
160
160
  var r;
161
- return [s(u((r = o(f)(o(q), t.refereeInfo.source)) == null ? void 0 : r.label), 1)];
161
+ return [s(u((r = t(x)(t(E), e.refereeInfo.source)) == null ? void 0 : r.label), 1)];
162
162
  }),
163
163
  status: l(({
164
- record: t
164
+ record: e
165
165
  }) => {
166
166
  var r;
167
- return [x(o(D), {
168
- color: (r = o(f)(o(I), t.refereeInfo.status)) == null ? void 0 : r.color
167
+ return [b(t(T), {
168
+ color: (r = t(B)(t(I), e.refereeInfo.status)) == null ? void 0 : r.color
169
169
  }, {
170
170
  default: l(() => {
171
- var v;
172
- return [s(u((v = o(f)(o(I), t.refereeInfo.status)) == null ? void 0 : v.label), 1)];
171
+ var h;
172
+ return [s(u((h = t(x)(t(I), e.refereeInfo.status)) == null ? void 0 : h.label), 1)];
173
173
  }),
174
174
  _: 2
175
175
  }, 1032, ["color"])];
@@ -179,7 +179,7 @@ const q = [{
179
179
  _: 1
180
180
  }, 8, ["visible", "ok-loading"]));
181
181
  }
182
- }), X = /* @__PURE__ */ O(E, [["__scopeId", "data-v-d4f2360e"]]);
182
+ }), Y = /* @__PURE__ */ V(H, [["__scopeId", "data-v-7c1e3175"]]);
183
183
  export {
184
- X as R
184
+ Y as R
185
185
  };
@@ -5,7 +5,7 @@
5
5
  /* empty css */
6
6
  import { defineComponent as k, createBlock as q, openBlock as y, unref as S, mergeProps as I, createSlots as F, withCtx as p, renderSlot as u } from "vue";
7
7
  import { Upload as U } from "@arco-design/web-vue";
8
- import { u as h } from "./useUploadCos-DpOqkozy.js";
8
+ import { u as h } from "./useUploadCos-B8D9lYIk.js";
9
9
  const j = /* @__PURE__ */ k({
10
10
  __name: "Upload",
11
11
  props: {