@aplus-frontend/ui 0.1.24 → 0.1.26

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 (96) hide show
  1. package/es/index.mjs +58 -55
  2. package/es/src/ap-form/ap-form-item.vue.mjs +26 -26
  3. package/es/src/ap-form/search-form/index.vue.mjs +1 -0
  4. package/es/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
  5. package/es/src/ap-layout/ApInfoLayout.vue.mjs +41 -0
  6. package/es/src/ap-layout/ApInfoLayout.vue2.mjs +4 -0
  7. package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
  8. package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +4 -0
  9. package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +42 -0
  10. package/es/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
  11. package/es/src/ap-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +4 -0
  12. package/es/src/ap-layout/index.d.ts +2 -1
  13. package/es/src/ap-layout/index.mjs +2 -1
  14. package/es/src/ap-layout/interface.d.ts +8 -2
  15. package/es/src/ap-layout/interface.mjs +1 -0
  16. package/es/src/ap-layout/style/ap-info-layout.css +17 -0
  17. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +91 -89
  18. package/es/src/ap-upload/components/Picture.vue2.mjs +114 -112
  19. package/es/src/ap-upload/components/SingleFile.vue2.mjs +10 -7
  20. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +37 -27
  21. package/es/src/business/ap-input-radio/interface.d.ts +4 -3
  22. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
  23. package/es/src/business/ap-ladder/ApLadder.vue.mjs +4 -0
  24. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +176 -0
  25. package/es/src/business/ap-ladder/interface.d.ts +134 -0
  26. package/es/src/business/ap-ladder/interface.mjs +10 -0
  27. package/es/src/business/ap-ladder/style.css +56 -0
  28. package/es/src/business/hooks/index.d.ts +1 -0
  29. package/es/src/business/hooks/index.mjs +3 -1
  30. package/es/src/business/hooks/usePageListApTable.d.ts +25 -3
  31. package/es/src/business/hooks/usePageListApTable.mjs +40 -29
  32. package/es/src/business/hooks/useTableRefresh.d.ts +17 -0
  33. package/es/src/business/hooks/useTableRefresh.mjs +16 -0
  34. package/es/src/business/index.d.ts +719 -9
  35. package/es/src/business/index.mjs +25 -22
  36. package/es/src/components.d.ts +1 -0
  37. package/es/src/index.mjs +206 -203
  38. package/es/src/theme/antd-global-overwrite/aplus/index.css +8 -0
  39. package/es/src/theme/antd-global-overwrite/aplus/table.css +8 -0
  40. package/es/src/theme/ap-ladder/ap-ladder.css +56 -0
  41. package/es/src/theme/ap-layout/ap-info-layout.css +17 -0
  42. package/lib/index.js +1 -1
  43. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  44. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  45. package/lib/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
  46. package/lib/src/ap-layout/ApInfoLayout.vue.js +1 -0
  47. package/lib/src/ap-layout/ApInfoLayout.vue2.js +1 -0
  48. package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
  49. package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +1 -0
  50. package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -0
  51. package/lib/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
  52. package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue2.js → ap-info-layout-aplus/ap-info-layout.vue.js} +1 -1
  53. package/lib/src/ap-layout/index.d.ts +2 -1
  54. package/lib/src/ap-layout/index.js +1 -1
  55. package/lib/src/ap-layout/interface.d.ts +8 -2
  56. package/lib/src/ap-layout/interface.js +1 -0
  57. package/lib/src/ap-layout/style/ap-info-layout.css +17 -0
  58. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  59. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  60. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  61. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  62. package/lib/src/business/ap-input-radio/interface.d.ts +4 -3
  63. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
  64. package/lib/src/business/ap-ladder/ApLadder.vue.js +1 -0
  65. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -0
  66. package/lib/src/business/ap-ladder/interface.d.ts +134 -0
  67. package/lib/src/business/ap-ladder/interface.js +1 -0
  68. package/lib/src/business/ap-ladder/style.css +56 -0
  69. package/lib/src/business/hooks/index.d.ts +1 -0
  70. package/lib/src/business/hooks/index.js +1 -1
  71. package/lib/src/business/hooks/usePageListApTable.d.ts +25 -3
  72. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  73. package/lib/src/business/hooks/useTableRefresh.d.ts +17 -0
  74. package/lib/src/business/hooks/useTableRefresh.js +1 -0
  75. package/lib/src/business/index.d.ts +719 -9
  76. package/lib/src/business/index.js +1 -1
  77. package/lib/src/components.d.ts +1 -0
  78. package/lib/src/index.js +1 -1
  79. package/lib/src/theme/antd-global-overwrite/aplus/index.css +8 -0
  80. package/lib/src/theme/antd-global-overwrite/aplus/table.css +8 -0
  81. package/lib/src/theme/ap-ladder/ap-ladder.css +56 -0
  82. package/lib/src/theme/ap-layout/ap-info-layout.css +17 -0
  83. package/package.json +1 -1
  84. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue2.mjs +0 -4
  85. /package/es/src/ap-layout/{ap-info-layout/ap-info-layout.vue.mjs → ap-info-layout-aplus/ap-info-layout.vue2.mjs} +0 -0
  86. /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
  87. /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.mjs +0 -0
  88. /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.mjs +0 -0
  89. /package/es/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
  90. /package/es/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
  91. /package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue.js → ap-info-layout-aplus/ap-info-layout.vue2.js} +0 -0
  92. /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
  93. /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.js +0 -0
  94. /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.js +0 -0
  95. /package/lib/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
  96. /package/lib/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
@@ -17,3 +17,20 @@
17
17
  .aplus-info-layout-contant {
18
18
  border-bottom-color: #fff;
19
19
  }
20
+ .aplus-ap-info-layout-admin {
21
+ margin: 16px;
22
+ height: calc(100% - 32px);
23
+ overflow: auto;
24
+ }
25
+ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky_box {
26
+ box-shadow: 0 4px 6px 0 rgba(73, 107, 158, 0.1);
27
+ border-bottom: none;
28
+ }
29
+ .aplus-ap-info-layout-admin__sticky_box {
30
+ position: sticky;
31
+ top: 0;
32
+ z-index: 100;
33
+ }
34
+ .aplus-ap-info-layout-admin__sticky_box-bordered {
35
+ border-bottom: 1px solid #e9e9e9;
36
+ }
@@ -1,81 +1,83 @@
1
- import { defineComponent as D, inject as n, ref as M, watch as $, nextTick as j, openBlock as v, createElementBlock as C, normalizeClass as W, unref as s, createVNode as _, withCtx as E, createElementVNode as b, createTextVNode as G, toDisplayString as L, withModifiers as H, createBlock as J, resolveDynamicComponent as K, createCommentVNode as Q } from "vue";
1
+ import { defineComponent as $, inject as n, ref as j, watch as W, nextTick as G, openBlock as x, createElementBlock as C, normalizeClass as H, unref as s, createVNode as _, withCtx as b, createElementVNode as L, createTextVNode as J, toDisplayString as S, withModifiers as K, createBlock as Q, resolveDynamicComponent as V, createCommentVNode as X } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import { getPath as V, getName as X, getReturnData as x } from "../utils/returnData.mjs";
4
- import { useOss as Y, getOssInstance as Z } from "../hooks/useOss.mjs";
5
- import { message as p, Upload as ee, Button as te } from "ant-design-vue";
6
- import { UploadOutlined as oe } from "@ant-design/icons-vue";
7
- import { fileMatchesAccept as ae, getAcceptText as se } from "../utils/accept.mjs";
3
+ import { getPath as Y, getName as Z, getReturnData as y } from "../utils/returnData.mjs";
4
+ import { useOss as ee, getOssInstance as te } from "../hooks/useOss.mjs";
5
+ import { message as c, Upload as oe, Button as ae } from "ant-design-vue";
6
+ import { UploadOutlined as se } from "@ant-design/icons-vue";
7
+ import { fileMatchesAccept as ne, getAcceptText as ie } from "../utils/accept.mjs";
8
8
  import "../styles/multiple-file.css";
9
- import { useLocale as ne } from "../../config-provider/hooks/use-locale.mjs";
10
- import { useNamespace as ie } from "../../config-provider/hooks/use-namespace.mjs";
11
- const le = { class: "multiple-file-context" }, re = { key: 0 }, pe = { key: 1 }, ke = /* @__PURE__ */ D({
9
+ import { useLocale as re } from "../../config-provider/hooks/use-locale.mjs";
10
+ import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
11
+ const ue = { class: "multiple-file-context" }, pe = { key: 0 }, ce = { key: 1 }, _e = /* @__PURE__ */ $({
12
12
  __name: "MultipleFile",
13
- setup(ue) {
14
- const { t: i } = ne(), { b: U } = ie("ap-upload-multiple-file"), { put: R } = Y(), S = n("theme"), B = n("dirName"), y = n("accept") || "*", A = n("maxSize") ?? 500, I = n("title") || i("ap.apUpload.uploadFile"), g = n("subTitle"), l = n("maxCount") ?? 10, u = n("uploadingCount"), F = n("beforeUpload"), N = n("customRequest"), P = n("getOssAccess"), a = n("value"), d = [], c = n("needName"), f = M(null);
15
- $(
13
+ setup(me) {
14
+ const { t: i } = re(), { b: U } = le("ap-upload-multiple-file"), { put: B } = ee(), I = n("theme"), P = n("dirName"), w = n("accept") || "*", A = n("maxSize") ?? 500, z = n("title") || i("ap.apUpload.uploadFile"), h = n("subTitle"), r = n("maxCount") ?? 10, m = n("uploadingCount"), F = n("beforeUpload"), N = n("customRequest"), R = n("getOssAccess"), a = n("value"), g = [], d = n("needName"), p = j(null);
15
+ W(
16
16
  () => a == null ? void 0 : a.value,
17
17
  function(e) {
18
- !f.value.fileList.length && e && j(() => {
19
- const t = e.map((o) => {
20
- const r = V(c, o), w = X(c, o), k = new File(
21
- [o],
22
- w,
18
+ var t, o;
19
+ !((o = (t = p == null ? void 0 : p.value) == null ? void 0 : t.fileList) != null && o.length) && e && G(() => {
20
+ const l = e.map((u) => {
21
+ const E = Y(d, u), M = Z(d, u), k = new File(
22
+ [u],
23
+ M,
23
24
  {}
24
25
  );
25
- return k.response = r, k.uid = r, k;
26
+ return k.response = E, k.uid = E, k;
26
27
  });
27
- if (l && t.length > l) {
28
- p.warning(
28
+ if (r && l.length > r) {
29
+ c.warning(
29
30
  i("ap.apUpload.fileInitializationException", {
30
- maxCount: l
31
+ maxCount: r
31
32
  })
32
33
  );
33
34
  return;
34
35
  }
35
- t.forEach((o) => {
36
- m.push(o), d.push({
37
- uid: o.uid,
38
- path: o.response
36
+ l.forEach((u) => {
37
+ f.push(u), g.push({
38
+ uid: u.uid,
39
+ path: u.response
39
40
  });
40
- }), f.value.fileList = t;
41
+ }), p.value.fileList = l;
41
42
  });
42
- }
43
+ },
44
+ { immediate: !0 }
43
45
  );
44
- let m = [], T;
45
- function h(e) {
46
+ let f = [], T;
47
+ function v(e) {
46
48
  setTimeout(() => {
47
- const t = f.value.fileList.findIndex(
49
+ const t = p.value.fileList.findIndex(
48
50
  (o) => o.uid === e.uid
49
51
  );
50
- t >= 0 && f.value.fileList.splice(t, 1);
52
+ t >= 0 && p.value.fileList.splice(t, 1);
51
53
  });
52
54
  }
53
- function z(e) {
54
- if (l && l > 1 && m.length >= l)
55
+ function O(e) {
56
+ if (r && r > 1 && f.length >= r)
55
57
  return clearTimeout(T), T = setTimeout(() => {
56
- p.warning(
58
+ c.warning(
57
59
  i("ap.apUpload.maxUploadFiles", {
58
- maxCount: l
60
+ maxCount: r
59
61
  })
60
62
  );
61
- }), h(e), !1;
63
+ }), v(e), !1;
62
64
  if (typeof F == "function") {
63
65
  if (F(e) === !1)
64
- return h(e), !1;
66
+ return v(e), !1;
65
67
  } else {
66
68
  if (e.size > A * 1024 * 1024)
67
- return p.warning(
69
+ return c.warning(
68
70
  i("ap.apUpload.maxUploadFileSize", {
69
71
  maxSize: A
70
72
  })
71
- ), h(e), !1;
72
- if (!ae(e, y))
73
- return p.warning(i("ap.apUpload.fileFormatNotSupported")), h(e), !1;
73
+ ), v(e), !1;
74
+ if (!ne(e, w))
75
+ return c.warning(i("ap.apUpload.fileFormatNotSupported")), v(e), !1;
74
76
  }
75
- l && l === 1 && (m = [], a.value = void 0), m.push(e);
77
+ r && r === 1 && (f = [], a.value = void 0), f.push(e);
76
78
  }
77
- async function O(e) {
78
- if (u.value++, typeof N == "function") {
79
+ async function q(e) {
80
+ if (m.value++, typeof N == "function") {
79
81
  N({
80
82
  onProgress: (t) => {
81
83
  setTimeout(() => {
@@ -85,50 +87,50 @@ const le = { class: "multiple-file-context" }, re = { key: 0 }, pe = { key: 1 },
85
87
  });
86
88
  },
87
89
  onError: (t) => {
88
- p.warning(t || i("ap.apUpload.networkAnomaly")), setTimeout(() => {
90
+ c.warning(t || i("ap.apUpload.networkAnomaly")), setTimeout(() => {
89
91
  e.onError({
90
92
  name: t,
91
93
  message: t
92
94
  });
93
- }), u.value--;
95
+ }), m.value--;
94
96
  },
95
97
  onSuccess: (t) => {
96
98
  setTimeout(() => {
97
99
  e.onSuccess(t);
98
100
  }), a.value ? a.value.push(
99
- x(c, t, e.file.name)
101
+ y(d, t, e.file.name)
100
102
  ) : a.value = [
101
- x(c, t, e.file.name)
102
- ], d.push({
103
+ y(d, t, e.file.name)
104
+ ], g.push({
103
105
  uid: e.file.uid,
104
106
  path: t
105
- }), u.value--;
107
+ }), m.value--;
106
108
  },
107
109
  file: e.file
108
110
  });
109
111
  return;
110
112
  }
111
113
  try {
112
- const t = await Z(P);
113
- e.file.oss = t, R({
114
+ const t = await te(R);
115
+ e.file.oss = t, B({
114
116
  file: e.file,
115
- dirName: B,
117
+ dirName: P,
116
118
  oss: t,
117
119
  successCallBack(o) {
118
120
  e.onSuccess(o), a.value ? a.value.push(
119
- x(c, o, e.file.name)
121
+ y(d, o, e.file.name)
120
122
  ) : a.value = [
121
- x(c, o, e.file.name)
122
- ], d.push({
123
+ y(d, o, e.file.name)
124
+ ], g.push({
123
125
  uid: e.file.uid,
124
126
  path: o
125
- }), u.value--;
127
+ }), m.value--;
126
128
  },
127
129
  errorCallBack(o) {
128
- p.warning(o || i("ap.apUpload.networkAnomaly")), e.onError({
130
+ c.warning(o || i("ap.apUpload.networkAnomaly")), e.onError({
129
131
  name: o,
130
132
  message: o
131
- }), u.value--;
133
+ }), m.value--;
132
134
  },
133
135
  progressCallBack(o) {
134
136
  e.onProgress({
@@ -137,66 +139,66 @@ const le = { class: "multiple-file-context" }, re = { key: 0 }, pe = { key: 1 },
137
139
  }
138
140
  });
139
141
  } catch (t) {
140
- p.warning(
142
+ c.warning(
141
143
  typeof (t == null ? void 0 : t.message) == "string" ? t.message : i("ap.apUpload.networkAnomaly")
142
144
  ), e.onError({
143
145
  name: (t == null ? void 0 : t.message) || i("ap.apUpload.networkAnomaly"),
144
146
  message: (t == null ? void 0 : t.message) || i("ap.apUpload.networkAnomaly")
145
- }), u.value--;
147
+ }), m.value--;
146
148
  }
147
149
  }
148
- function q(e) {
150
+ function D(e) {
149
151
  var o;
150
152
  if (e.response) {
151
153
  if (Array.isArray(a.value)) {
152
- const r = d.findIndex((w) => w.uid === e.uid);
153
- r >= 0 && (a == null || a.value.splice(r, 1), d.splice(r, 1)), a.value.length === 0 && (a.value = void 0);
154
+ const l = g.findIndex((u) => u.uid === e.uid);
155
+ l >= 0 && (a == null || a.value.splice(l, 1), g.splice(l, 1)), a.value.length === 0 && (a.value = void 0);
154
156
  }
155
157
  } else
156
158
  (o = e == null ? void 0 : e.oss) == null || o.pauseUpload();
157
- const t = m.findIndex(
158
- (r) => r.uid === e.uid
159
+ const t = f.findIndex(
160
+ (l) => l.uid === e.uid
159
161
  );
160
- return m.splice(t, 1), Promise.resolve(!0);
162
+ return f.splice(t, 1), Promise.resolve(!0);
161
163
  }
162
- return (e, t) => (v(), C("div", {
163
- class: W({
164
+ return (e, t) => (x(), C("div", {
165
+ class: H({
164
166
  [s(U)()]: !0,
165
- [s(U)("admin")]: s(S) === "admin"
167
+ [s(U)("admin")]: s(I) === "admin"
166
168
  })
167
169
  }, [
168
- _(s(ee), {
170
+ _(s(oe), {
169
171
  ref_key: "uploadRef",
170
- ref: f,
171
- accept: s(y),
172
+ ref: p,
173
+ accept: s(w),
172
174
  multiple: "",
173
- maxCount: s(l),
175
+ maxCount: s(r),
174
176
  progress: {
175
177
  strokeWidth: 3,
176
178
  showInfo: !1,
177
179
  strokeColor: "#0070FF"
178
180
  },
179
- beforeUpload: z,
180
- customRequest: O,
181
- onRemove: q
181
+ beforeUpload: O,
182
+ customRequest: q,
183
+ onRemove: D
182
184
  }, {
183
- default: E(() => [
184
- b("div", le, [
185
- _(s(te), { class: "file-btn" }, {
186
- default: E(() => [
187
- _(s(oe)),
188
- G(" " + L(s(I)), 1)
185
+ default: b(() => [
186
+ L("div", ue, [
187
+ _(s(ae), { class: "file-btn" }, {
188
+ default: b(() => [
189
+ _(s(se)),
190
+ J(" " + S(s(z)), 1)
189
191
  ]),
190
192
  _: 1
191
193
  }),
192
- b("div", {
194
+ L("div", {
193
195
  class: "sub-title",
194
- onClick: t[0] || (t[0] = H(() => {
196
+ onClick: t[0] || (t[0] = K(() => {
195
197
  }, ["stop"]))
196
198
  }, [
197
- typeof s(g) == "string" ? (v(), C("div", re, L(s(g) || `${s(i)("ap.apUpload.supportExtension")}:${s(se)(s(y))}`), 1)) : s(g) ? (v(), C("div", pe, [
198
- (v(), J(K(s(g))))
199
- ])) : Q("", !0)
199
+ typeof s(h) == "string" ? (x(), C("div", pe, S(s(h) || `${s(i)("ap.apUpload.supportExtension")}:${s(ie)(s(w))}`), 1)) : s(h) ? (x(), C("div", ce, [
200
+ (x(), Q(V(s(h))))
201
+ ])) : X("", !0)
200
202
  ])
201
203
  ])
202
204
  ]),
@@ -206,5 +208,5 @@ const le = { class: "multiple-file-context" }, re = { key: 0 }, pe = { key: 1 },
206
208
  }
207
209
  });
208
210
  export {
209
- ke as default
211
+ _e as default
210
212
  };