@aplus-frontend/ui 0.3.0 → 0.3.1

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 (129) hide show
  1. package/es/src/ap-action/item/index.vue2.mjs +11 -11
  2. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  3. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
  4. package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
  5. package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
  6. package/es/src/ap-field/date/index.vue.mjs +2 -2
  7. package/es/src/ap-field/date-range/index.vue.mjs +2 -2
  8. package/es/src/ap-field/number/index.vue.mjs +3 -3
  9. package/es/src/ap-field/radio/index.vue.mjs +5 -5
  10. package/es/src/ap-field/rate/index.vue.mjs +4 -4
  11. package/es/src/ap-field/segmented/index.vue.mjs +3 -3
  12. package/es/src/ap-field/select/index.vue.mjs +4 -4
  13. package/es/src/ap-field/slider/index.vue.mjs +3 -3
  14. package/es/src/ap-field/switch/index.vue.mjs +4 -4
  15. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  16. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  17. package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
  18. package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
  19. package/es/src/ap-form/search-form/index.vue.mjs +2 -2
  20. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
  21. package/es/src/ap-list/index.vue.mjs +27 -27
  22. package/es/src/ap-modal/utils/createModal.mjs +10 -10
  23. package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
  24. package/es/src/ap-table/ap-table.vue2.mjs +3 -3
  25. package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
  26. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
  27. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
  28. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
  29. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
  30. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
  31. package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
  32. package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
  33. package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
  34. package/es/src/ap-upload/apUpload.vue.d.ts +57 -8
  35. package/es/src/ap-upload/apUpload.vue.mjs +56 -37
  36. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
  37. package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
  38. package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
  39. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
  40. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  41. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
  42. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
  43. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
  44. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
  45. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
  46. package/es/src/business/ap-group-search/index.d.ts +1 -1
  47. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
  48. package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
  49. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  50. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
  51. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
  52. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
  53. package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
  54. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +1 -1
  55. package/es/src/business/ap-upload-file/interface.d.ts +2 -0
  56. package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
  57. package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
  58. package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
  59. package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
  60. package/es/src/business/batch-input-group/index.vue.mjs +5 -5
  61. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
  62. package/es/src/editable-table/form-item.vue.mjs +3 -3
  63. package/es/src/editable-table/index.vue.mjs +6 -6
  64. package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
  65. package/lib/src/ap-action/item/index.vue2.js +1 -1
  66. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  67. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  68. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  69. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  70. package/lib/src/ap-field/date/index.vue.js +1 -1
  71. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  72. package/lib/src/ap-field/number/index.vue.js +1 -1
  73. package/lib/src/ap-field/radio/index.vue.js +1 -1
  74. package/lib/src/ap-field/rate/index.vue.js +1 -1
  75. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  76. package/lib/src/ap-field/select/index.vue.js +1 -1
  77. package/lib/src/ap-field/slider/index.vue.js +1 -1
  78. package/lib/src/ap-field/switch/index.vue.js +1 -1
  79. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  80. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  81. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  82. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  83. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  84. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
  85. package/lib/src/ap-list/index.vue.js +1 -1
  86. package/lib/src/ap-modal/utils/createModal.js +1 -1
  87. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
  88. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  89. package/lib/src/ap-table/components/index/index.vue2.js +1 -1
  90. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  91. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  92. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  93. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  94. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  95. package/lib/src/ap-table/components/status/index.vue2.js +1 -1
  96. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  97. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  98. package/lib/src/ap-upload/apUpload.vue.d.ts +57 -8
  99. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  100. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  101. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  102. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  103. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  104. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  105. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  106. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  107. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
  108. package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
  109. package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
  110. package/lib/src/business/ap-group-search/index.d.ts +1 -1
  111. package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
  112. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  113. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  114. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  115. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
  116. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  117. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  118. package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
  119. package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
  120. package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
  121. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  122. package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
  123. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  124. package/lib/src/business/batch-input-group/index.vue.js +1 -1
  125. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  126. package/lib/src/editable-table/form-item.vue.js +1 -1
  127. package/lib/src/editable-table/index.vue.js +1 -1
  128. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  129. package/package.json +4 -4
@@ -1,20 +1,20 @@
1
- import { defineComponent as X, inject as c, ref as R, watch as Y, nextTick as Z, openBlock as g, createElementBlock as h, normalizeClass as F, unref as i, createElementVNode as d, renderSlot as ee, Fragment as te, renderList as ne, withDirectives as ae, createVNode as C, createCommentVNode as I, vShow as se, toDisplayString as U } from "vue";
1
+ import { defineComponent as X, inject as c, ref as R, watch as Y, nextTick as Z, openBlock as g, createElementBlock as h, normalizeClass as F, unref as i, createElementVNode as d, renderSlot as ee, Fragment as te, renderList as ne, withDirectives as ae, createVNode as U, createCommentVNode as M, vShow as se, toDisplayString as k } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import { getPath as oe, getName as ie, getReturnData as M } from "../utils/returnData.mjs";
3
+ import { getPath as oe, getName as ie, getReturnData as $ } from "../utils/returnData.mjs";
4
4
  import { CloseOutlined as re, PlusOutlined as ce } from "@ant-design/icons-vue";
5
- import { useOss as ue, getOssInstance as $ } from "../hooks/useOss.mjs";
5
+ import { useOss as ue, getOssInstance as I } from "../hooks/useOss.mjs";
6
6
  import { fileMatchesAccept as le, getAcceptText as pe } from "../utils/accept.mjs";
7
7
  import { message as m, Progress as de } from "@aplus-frontend/antdv";
8
8
  import { omit as me } from "lodash-unified";
9
9
  import { useLocale as fe } from "../../config-provider/hooks/use-locale.mjs";
10
10
  import { useNamespace as ge } from "../../config-provider/hooks/use-namespace.mjs";
11
- const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture-item-box" }, ye = ["src"], _e = { class: "picture-item-shadow" }, we = ["onClick"], Ce = {
11
+ const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture-item-box" }, ye = ["src"], _e = { class: "picture-item-shadow" }, we = ["onClick"], Ue = {
12
12
  key: 0,
13
13
  class: "picture-item-uploading"
14
- }, Ue = { class: "picture-title" }, ke = { key: 0 }, Se = { key: 1 }, De = /* @__PURE__ */ X({
14
+ }, ke = { class: "picture-title" }, Ce = { key: 0 }, Se = { key: 1 }, De = /* @__PURE__ */ X({
15
15
  __name: "Picture",
16
16
  setup(Ee, { expose: T }) {
17
- const { t: u } = fe(), { b: k } = ge("ap-upload-picture"), { put: D } = ue(), O = c("theme"), B = c("dirName"), _ = c("accept") || "image/*", w = c("maxSize") ?? 5, S = c("title"), l = c("maxCount") ?? 10, v = c("uploadingCount"), E = c("beforeUpload"), b = c("customRequest"), z = c("getOssAccess"), L = c("maxSizeErrorMsg"), q = c("maxCountErrorMsg"), V = c("acceptErrorMsg"), x = R(null), r = c("value"), y = c("needName");
17
+ const { t: u } = fe(), { b: C } = ge("ap-upload-picture"), { put: D } = ue(), O = c("theme"), B = c("dirName"), _ = c("accept") || "image/*", w = c("maxSize") ?? 5, S = c("title"), l = c("maxCount") ?? 10, v = c("uploadingCount"), E = c("beforeUpload"), b = c("customRequest"), z = c("getOssAccess"), L = c("maxSizeErrorMsg"), q = c("maxCountErrorMsg"), V = c("acceptErrorMsg"), x = R(null), r = c("value"), y = c("needName");
18
18
  let s = R([]);
19
19
  const f = [];
20
20
  Y(
@@ -33,7 +33,7 @@ const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture
33
33
  Z(async () => {
34
34
  const a = [];
35
35
  for (let t of e) {
36
- const n = oe(y, t), o = ie(y, t), p = await $(z), Q = await p.getSignatureUrl(n), W = {
36
+ const n = oe(y, t), o = ie(y, t), p = await I(z), Q = await p.getSignatureUrl(n), W = {
37
37
  ...typeof t == "string" ? {} : t,
38
38
  ...new File([t], o, {}),
39
39
  uid: `${(/* @__PURE__ */ new Date()).getTime()}-${Math.random()}`,
@@ -125,7 +125,7 @@ const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture
125
125
  const n = s.value.find((o) => o.uid === e.uid);
126
126
  n && (n.status = "success", n.path = t), r.value = [
127
127
  ...r.value || [],
128
- M(y, t, a.name)
128
+ $(y, t, a.name)
129
129
  ], f.push({
130
130
  uid: e.uid,
131
131
  path: t
@@ -136,7 +136,7 @@ const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture
136
136
  return;
137
137
  }
138
138
  try {
139
- const t = await $(z);
139
+ const t = await I(z);
140
140
  e.oss = t, s.value.push(e), D({
141
141
  file: a,
142
142
  dirName: B,
@@ -145,7 +145,7 @@ const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture
145
145
  const o = s.value.find((p) => p.uid === e.uid);
146
146
  o && (o.status = "success", o.path = n), r.value = [
147
147
  ...r.value || [],
148
- M(y, n, a.name)
148
+ $(y, n, a.name)
149
149
  ], f.push({
150
150
  uid: e.uid,
151
151
  path: n
@@ -189,15 +189,15 @@ const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture
189
189
  }
190
190
  return (e, a) => (g(), h("div", {
191
191
  class: F({
192
- [i(k)()]: !0,
193
- [i(k)("admin")]: i(O) === "admin"
192
+ [i(C)()]: !0,
193
+ [i(C)("admin")]: i(O) === "admin"
194
194
  })
195
195
  }, [
196
196
  d("input", {
197
- style: { display: "none" },
198
- type: "file",
199
197
  ref_key: "fileRef",
200
198
  ref: x,
199
+ style: { display: "none" },
200
+ type: "file",
201
201
  accept: i(_),
202
202
  onChange: G
203
203
  }, null, 40, he),
@@ -228,17 +228,17 @@ const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture
228
228
  class: "picture-item-close",
229
229
  onClick: (n) => P(t)
230
230
  }, [
231
- C(i(re))
231
+ U(i(re))
232
232
  ], 8, we),
233
- t.status === "uploading" ? (g(), h("div", Ce, [
234
- C(i(de), {
233
+ t.status === "uploading" ? (g(), h("div", Ue, [
234
+ U(i(de), {
235
235
  percent: t.percent,
236
- strokeColor: "#ffffff",
237
- trailColor: "rgba(255, 255, 255, 0.3)",
236
+ "stroke-color": "#ffffff",
237
+ "trail-color": "rgba(255, 255, 255, 0.3)",
238
238
  size: 4,
239
- showInfo: !1
239
+ "show-info": !1
240
240
  }, null, 8, ["percent"])
241
- ])) : I("", !0)
241
+ ])) : M("", !0)
242
242
  ], 512), [
243
243
  [se, t.status === "uploading"]
244
244
  ])
@@ -250,12 +250,12 @@ const he = ["accept"], ve = { class: "picture-context" }, xe = { class: "picture
250
250
  class: "picture-upload",
251
251
  onClick: j
252
252
  }, [
253
- C(i(ce)),
254
- d("div", null, U(i(u)("ap.apUpload.update")), 1)
255
- ])) : I("", !0)
253
+ U(i(ce)),
254
+ d("div", null, k(i(u)("ap.apUpload.update")), 1)
255
+ ])) : M("", !0)
256
256
  ]),
257
- d("div", Ue, [
258
- i(S) ? (g(), h("div", ke, U(i(S)), 1)) : (g(), h("div", Se, U(`${i(u)("ap.apUpload.supportExtension")}:${i(pe)(i(_))},${i(u)(
257
+ d("div", ke, [
258
+ i(S) ? (g(), h("div", Ce, k(i(S)), 1)) : (g(), h("div", Se, k(`${i(u)("ap.apUpload.supportExtension")}:${i(pe)(i(_))},${i(u)(
259
259
  "ap.apUpload.maxUploadPictureSize",
260
260
  { maxSize: i(w) }
261
261
  )}`), 1))
@@ -1,23 +1,23 @@
1
1
  import { defineComponent as ne, inject as s, ref as h, watch as oe, computed as le, openBlock as _, createElementBlock as x, normalizeClass as se, unref as a, createElementVNode as i, toDisplayString as z, createCommentVNode as A, normalizeStyle as re, createBlock as ie, withModifiers as ce, createVNode as ue } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import { getName as pe, getReturnData as $ } from "../utils/returnData.mjs";
3
+ import { getName as pe, getReturnData as q } from "../utils/returnData.mjs";
4
4
  import { useOss as ve, useOssInit as de } from "../hooks/useOss.mjs";
5
5
  import { fileMatchesAccept as fe, getAcceptText as me } from "../utils/accept.mjs";
6
6
  import { message as u, Progress as ge } from "@aplus-frontend/antdv";
7
7
  import { DeleteOutlined as he } from "@ant-design/icons-vue";
8
- import q from "../assets/single-file-icon.png.mjs";
8
+ import I from "../assets/single-file-icon.png.mjs";
9
9
  import { useLocale as _e } from "../../config-provider/hooks/use-locale.mjs";
10
10
  import { useNamespace as ke } from "../../config-provider/hooks/use-namespace.mjs";
11
11
  const ye = ["accept"], we = {
12
12
  key: 0,
13
13
  class: "state-un"
14
- }, De = ["src"], Ce = { class: "state-un-title" }, Ue = { class: "state-un-subtitle" }, Fe = {
14
+ }, De = ["src"], Ue = { class: "state-un-title" }, Fe = { class: "state-un-subtitle" }, Ce = {
15
15
  key: 1,
16
16
  class: "state-ing"
17
- }, Ee = { class: "left" }, Se = ["src"], Ne = { class: "center" }, xe = { class: "center-progress" }, $e = /* @__PURE__ */ ne({
17
+ }, Ee = { class: "left" }, Se = ["src"], Ne = { class: "center" }, xe = { class: "center-progress" }, qe = /* @__PURE__ */ ne({
18
18
  __name: "SingleFile",
19
19
  setup(ze, { expose: j }) {
20
- const { t: r } = _e(), { b: k } = ke("ap-upload-single-file"), { put: G, client: b } = ve(), y = s("theme"), W = s("dirName"), w = s("accept") || "*", D = s("maxSize") ?? 500, H = s("title") || r("ap.apUpload.clickOrDragUpload"), C = s("subTitle"), n = s("value"), U = s("needName"), p = s("uploadingCount"), B = s("beforeUpload"), R = s("customRequest"), J = s("getOssAccess"), K = s("maxSizeErrorMsg"), Q = s("acceptErrorMsg"), o = h(null);
20
+ const { t: r } = _e(), { b: k } = ke("ap-upload-single-file"), { put: G, client: b } = ve(), y = s("theme"), W = s("dirName"), w = s("accept") || "*", D = s("maxSize") ?? 500, H = s("title") || r("ap.apUpload.clickOrDragUpload"), U = s("subTitle"), n = s("value"), F = s("needName"), p = s("uploadingCount"), B = s("beforeUpload"), R = s("customRequest"), J = s("getOssAccess"), K = s("maxSizeErrorMsg"), Q = s("acceptErrorMsg"), o = h(null);
21
21
  oe(
22
22
  () => n == null ? void 0 : n.value,
23
23
  function(e) {
@@ -27,7 +27,7 @@ const ye = ["accept"], we = {
27
27
  );
28
28
  function M(e) {
29
29
  e ? setTimeout(() => {
30
- const t = pe(U, e);
30
+ const t = pe(F, e);
31
31
  l.value = 3, o.value = new File([e], t, {}), n.value = e;
32
32
  }) : (l.value = 1, o.value = null, n.value = void 0);
33
33
  }
@@ -49,20 +49,20 @@ const ye = ["accept"], we = {
49
49
  function V(e) {
50
50
  if (e.preventDefault(), e.stopPropagation(), l.value !== 1)
51
51
  return;
52
- var t = e.dataTransfer, c = [], L = 0, I = t.files.length;
52
+ var t = e.dataTransfer, c = [], L = 0, $ = t.files.length;
53
53
  function v() {
54
- L === I - 1 && Z(c), L++;
54
+ L === $ - 1 && Z(c), L++;
55
55
  }
56
56
  if (t.items !== void 0)
57
- for (var F = 0; F < t.items.length; F++) {
58
- var E = t.items[F];
57
+ for (var C = 0; C < t.items.length; C++) {
58
+ var E = t.items[C];
59
59
  if (E.kind === "file" && E.webkitGetAsEntry().isFile) {
60
60
  var ae = E.getAsFile();
61
61
  c.push(ae), v();
62
62
  }
63
63
  }
64
64
  else
65
- for (let N = 0; N < I; N++) {
65
+ for (let N = 0; N < $; N++) {
66
66
  var g = t.files[N];
67
67
  if (g.type)
68
68
  c.push(g), v();
@@ -118,8 +118,8 @@ const ye = ["accept"], we = {
118
118
  u.warning(t || r("ap.apUpload.networkAnomaly")), l.value = 1, o.value = null, p.value--;
119
119
  },
120
120
  onSuccess: (t) => {
121
- n.value = $(
122
- U,
121
+ n.value = q(
122
+ F,
123
123
  t,
124
124
  o.value.name
125
125
  ), l.value = 3, p.value--;
@@ -134,8 +134,8 @@ const ye = ["accept"], we = {
134
134
  dirName: W,
135
135
  oss: b,
136
136
  successCallBack(t) {
137
- n.value = $(
138
- U,
137
+ n.value = q(
138
+ F,
139
139
  t,
140
140
  o.value.name
141
141
  ), l.value = 3, p.value--;
@@ -172,28 +172,28 @@ const ye = ["accept"], we = {
172
172
  onDrop: V
173
173
  }, [
174
174
  i("input", {
175
- style: { display: "none" },
176
- type: "file",
177
175
  ref_key: "fileRef",
178
176
  ref: m,
177
+ style: { display: "none" },
178
+ type: "file",
179
179
  accept: a(w),
180
180
  onChange: ee
181
181
  }, null, 40, ye),
182
182
  l.value === 1 ? (_(), x("div", we, [
183
183
  i("img", {
184
184
  class: "state-un-icon",
185
- src: a(q)
185
+ src: a(I)
186
186
  }, null, 8, De),
187
- i("div", Ce, z(a(H)), 1),
188
- i("div", Ue, z(typeof a(C) == "string" && a(C).length > 0 ? a(C) : `${a(r)("ap.apUpload.supportExtension")}:${a(me)(
187
+ i("div", Ue, z(a(H)), 1),
188
+ i("div", Fe, z(typeof a(U) == "string" && a(U).length > 0 ? a(U) : `${a(r)("ap.apUpload.supportExtension")}:${a(me)(
189
189
  a(w)
190
190
  )},${a(r)("ap.apUpload.maxWarnUploadFileSize", {
191
191
  maxSize: a(D)
192
192
  })}`), 1)
193
193
  ])) : A("", !0),
194
- [2, 3].includes(l.value) ? (_(), x("div", Fe, [
194
+ [2, 3].includes(l.value) ? (_(), x("div", Ce, [
195
195
  i("div", Ee, [
196
- i("img", { src: a(q) }, null, 8, Se)
196
+ i("img", { src: a(I) }, null, 8, Se)
197
197
  ]),
198
198
  i("div", Ne, [
199
199
  i("div", {
@@ -207,10 +207,10 @@ const ye = ["accept"], we = {
207
207
  key: 0,
208
208
  percent: f.value,
209
209
  size: 4,
210
- showInfo: !1,
211
- trailColor: a(y) === "admin" ? "#D9D9D9" : "#DEE4ED",
212
- strokeColor: a(y) === "admin" ? "#34B77C" : "#0070FF"
213
- }, null, 8, ["percent", "trailColor", "strokeColor"]))
210
+ "show-info": !1,
211
+ "trail-color": a(y) === "admin" ? "#D9D9D9" : "#DEE4ED",
212
+ "stroke-color": a(y) === "admin" ? "#34B77C" : "#0070FF"
213
+ }, null, 8, ["percent", "trail-color", "stroke-color"]))
214
214
  ])
215
215
  ]),
216
216
  i("div", {
@@ -225,5 +225,5 @@ const ye = ["accept"], we = {
225
225
  }
226
226
  });
227
227
  export {
228
- $e as default
228
+ qe as default
229
229
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as T, computed as d, ref as V, openBlock as s, createElementBlock as u, mergeProps as S, unref as t, renderSlot as p, createVNode as g, withCtx as v, createElementVNode as c, normalizeClass as n, createBlock as N, createCommentVNode as h, Fragment as j, renderList as D, createSlots as E, createTextVNode as M, toDisplayString as U } from "vue";
2
- import z from "./icons/file-icon.vue.mjs";
3
- import { Tooltip as G, TypographyText as P } from "@aplus-frontend/antdv";
4
- import { IconVariantDownload as q } from "@aplus-frontend/icon";
5
- import { LoadingOutlined as H } from "@ant-design/icons-vue";
1
+ import { defineComponent as T, computed as d, ref as V, openBlock as s, createElementBlock as u, mergeProps as S, unref as t, renderSlot as p, createVNode as g, withCtx as v, createElementVNode as c, normalizeClass as n, createBlock as C, createCommentVNode as h, Fragment as j, renderList as D, createSlots as E, createTextVNode as U, toDisplayString as z } from "vue";
2
+ import G from "./icons/file-icon.vue.mjs";
3
+ import { Tooltip as P, TypographyText as q } from "@aplus-frontend/antdv";
4
+ import { IconVariantDownload as H } from "@aplus-frontend/icon";
5
+ import { LoadingOutlined as J } from "@ant-design/icons-vue";
6
6
  import "../ap-title/ApTitle.vue.mjs";
7
7
  import "../../ap-download/ap-download.vue2.mjs";
8
8
  import "../../config-provider/index.mjs";
9
- import { getFileInfo as J } from "./utils/index.mjs";
10
- import { useNamespace as K } from "../../config-provider/hooks/use-namespace.mjs";
9
+ import { getFileInfo as K } from "./utils/index.mjs";
10
+ import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
11
11
  import { useLocale as Q } from "../../config-provider/hooks/use-locale.mjs";
12
12
  import { useGlobalConfig as w } from "../../config-provider/hooks/use-global-config.mjs";
13
13
  import R from "../ap-title/ApTitle.vue2.mjs";
@@ -23,38 +23,38 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
23
23
  column: { default: 2 },
24
24
  isFileAreaBorder: { type: Boolean, default: !1 }
25
25
  },
26
- setup(O) {
27
- const { b: $, e: i, em: C } = K("ap-appendix"), { t: y } = Q(), e = O, x = w("apUpload"), k = w(
26
+ setup($) {
27
+ const { b: x, e: a, em: k } = M("ap-appendix"), { t: y } = Q(), e = $, B = w("apUpload"), N = w(
28
28
  "downloadCenterTriggerConfig"
29
29
  ), f = d(
30
- () => J(e == null ? void 0 : e.needName, (e == null ? void 0 : e.fileList) ?? [])
31
- ), B = d(
30
+ () => K(e == null ? void 0 : e.needName, (e == null ? void 0 : e.fileList) ?? [])
31
+ ), b = d(
32
32
  () => {
33
33
  var l;
34
- return e.getOssAccess || ((l = x.value) == null ? void 0 : l.getOssAccess);
34
+ return e.getOssAccess || ((l = B.value) == null ? void 0 : l.getOssAccess);
35
35
  }
36
36
  ), F = d(
37
37
  () => !(Array.isArray(f.value) && f.value.length)
38
- ), a = V([]), b = d(() => e.title || y("ap.apAppendix.appendix"));
38
+ ), i = V([]), O = d(() => e.title || y("ap.apAppendix.appendix"));
39
39
  async function I(l, m) {
40
- var o, L;
41
- if (!(a.value.findIndex((r) => r === m) > -1)) {
42
- a.value = [...a.value, m];
40
+ var o, A;
41
+ if (!(i.value.findIndex((r) => r === m) > -1)) {
42
+ i.value = [...i.value, m];
43
43
  try {
44
- if ((o = k.value) != null && o.trigger) {
44
+ if ((o = N.value) != null && o.trigger) {
45
45
  let r = [l].map((_) => ({
46
46
  objectName: _.path,
47
47
  fileName: _.fileName
48
48
  }));
49
- await ((L = k.value) == null ? void 0 : L.trigger(r));
49
+ await ((A = N.value) == null ? void 0 : A.trigger(r));
50
50
  }
51
51
  } finally {
52
- a.value = a.value.filter((r) => r !== m);
52
+ i.value = i.value.filter((r) => r !== m);
53
53
  }
54
54
  }
55
55
  }
56
56
  return (l, m) => (s(), u("div", S({
57
- class: [t($)()]
57
+ class: [t(x)()]
58
58
  }, {
59
59
  ...l.$attrs
60
60
  }, {
@@ -66,12 +66,12 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
66
66
  fileList: e.fileList
67
67
  }, () => [
68
68
  g(R, {
69
- title: b.value,
70
- helpMessage: e == null ? void 0 : e.tooltip
69
+ title: O.value,
70
+ "help-message": e == null ? void 0 : e.tooltip
71
71
  }, {
72
72
  suffix: v(() => [
73
73
  c("div", {
74
- class: n([t(i)("suffix")])
74
+ class: n([t(a)("suffix")])
75
75
  }, [
76
76
  p(l.$slots, "titleSuffix", {
77
77
  fileList: e.fileList
@@ -79,23 +79,23 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
79
79
  p(l.$slots, "titleDownloadAllBtn", {
80
80
  fileList: e.fileList
81
81
  }, () => [
82
- F.value ? h("", !0) : (s(), N(W, {
82
+ F.value ? h("", !0) : (s(), C(W, {
83
83
  key: 0,
84
- class: n([t(i)("download-all")]),
84
+ class: n([t(a)("download-all")]),
85
85
  text: t(y)("ap.apAppendix.downloadAll"),
86
- getOssAccess: B.value,
87
- fileName: f.value
86
+ "get-oss-access": b.value,
87
+ "file-name": f.value
88
88
  }, {
89
89
  icon: v(() => [
90
- g(t(q))
90
+ g(t(H))
91
91
  ]),
92
92
  _: 1
93
- }, 8, ["class", "text", "getOssAccess", "fileName"]))
93
+ }, 8, ["class", "text", "get-oss-access", "file-name"]))
94
94
  ])
95
95
  ], 2)
96
96
  ]),
97
97
  _: 3
98
- }, 8, ["title", "helpMessage"])
98
+ }, 8, ["title", "help-message"])
99
99
  ]),
100
100
  p(l.$slots, "fileArea", {
101
101
  fileList: e.fileList
@@ -103,50 +103,50 @@ const X = ["onClick"], de = /* @__PURE__ */ T({
103
103
  F.value ? h("", !0) : (s(), u("div", {
104
104
  key: 0,
105
105
  class: n({
106
- [t(i)("file-area")]: !0,
107
- [t(C)("file-area", "border")]: !!e.isFileAreaBorder
106
+ [t(a)("file-area")]: !0,
107
+ [t(k)("file-area", "border")]: !!e.isFileAreaBorder
108
108
  })
109
109
  }, [
110
110
  c("div", {
111
- class: n([t(i)("file-area-content")])
111
+ class: n([t(a)("file-area-content")])
112
112
  }, [
113
- (s(!0), u(j, null, D(f.value, (A, o) => (s(), u("div", {
113
+ (s(!0), u(j, null, D(f.value, (L, o) => (s(), u("div", {
114
+ key: o,
114
115
  class: n({
115
- [t(i)("file-area-content-item")]: !0,
116
- [t(C)("file-area-content-item", "loading")]: a.value.includes(o)
117
- }),
118
- key: o
116
+ [t(a)("file-area-content-item")]: !0,
117
+ [t(k)("file-area-content-item", "loading")]: i.value.includes(o)
118
+ })
119
119
  }, [
120
- g(t(G), null, E({
120
+ g(t(P), null, E({
121
121
  default: v(() => [
122
122
  c("div", {
123
123
  class: n({
124
- [t(i)("file-area-content-item-content")]: !0,
125
- [t(i)("file-area-content-item--loading-content")]: a.value.includes(o)
124
+ [t(a)("file-area-content-item-content")]: !0,
125
+ [t(a)("file-area-content-item--loading-content")]: i.value.includes(o)
126
126
  }),
127
- onClick: (L) => I(A, o)
127
+ onClick: (A) => I(L, o)
128
128
  }, [
129
129
  c("div", {
130
- class: n([t(i)("file-area-content-item-icon")])
130
+ class: n([t(a)("file-area-content-item-icon")])
131
131
  }, [
132
- a.value.includes(o) ? (s(), N(t(H), { key: 0 })) : (s(), N(z, { key: 1 }))
132
+ i.value.includes(o) ? (s(), C(t(J), { key: 0 })) : (s(), C(G, { key: 1 }))
133
133
  ], 2),
134
134
  c("div", {
135
- class: n([t(i)("file-area-content-item-file-name")])
135
+ class: n([t(a)("file-area-content-item-file-name")])
136
136
  }, [
137
- g(t(P), {
137
+ g(t(q), {
138
138
  ellipsis: "",
139
- content: A.fileName
139
+ content: L.fileName
140
140
  }, null, 8, ["content"])
141
141
  ], 2)
142
142
  ], 10, X)
143
143
  ]),
144
144
  _: 2
145
145
  }, [
146
- a.value.includes(o) ? void 0 : {
146
+ i.value.includes(o) ? void 0 : {
147
147
  name: "title",
148
148
  fn: v(() => [
149
- M(U(t(y)("ap.apAppendix.downloadFile")), 1)
149
+ U(z(t(y)("ap.apAppendix.downloadFile")), 1)
150
150
  ]),
151
151
  key: "0"
152
152
  }
@@ -18,7 +18,7 @@ const ee = /* @__PURE__ */ A({
18
18
  menuList: {}
19
19
  },
20
20
  setup(P) {
21
- const { b: i } = S("ap-batch-action-group"), { t: L } = F(), e = P, _ = O("uiMode"), { hasPermission: g } = M(), p = n(
21
+ const { b: i } = S("ap-batch-action-group"), { t: _ } = F(), e = P, g = O("uiMode"), { hasPermission: k } = M(), p = n(
22
22
  () => {
23
23
  var t;
24
24
  return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.dropdownType) || "default";
@@ -31,24 +31,24 @@ const ee = /* @__PURE__ */ A({
31
31
  ), f = n(
32
32
  () => {
33
33
  var t;
34
- return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || L("ap.apApBatchActionGroup.batchOperation");
34
+ return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.content) || _("ap.apApBatchActionGroup.batchOperation");
35
35
  }
36
- ), k = n(() => (e == null ? void 0 : e.selectedRows) || []), d = n(
36
+ ), B = n(() => (e == null ? void 0 : e.selectedRows) || []), d = n(
37
37
  () => {
38
38
  var t;
39
- return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? k.value.length === 0 : !1);
39
+ return ((t = e == null ? void 0 : e.buttonProps) == null ? void 0 : t.disabled) ?? (Array.isArray(e.selectedRows) ? B.value.length === 0 : !1);
40
40
  }
41
- ), B = n(() => {
41
+ ), L = n(() => {
42
42
  const t = {
43
43
  aplus: "#0070FF",
44
44
  admin: "#34b77c"
45
45
  };
46
- return u.value === "borderLink" ? d.value ? void 0 : t[_.value] || t.aplus : void 0;
46
+ return u.value === "borderLink" ? d.value ? void 0 : t[g.value] || t.aplus : void 0;
47
47
  }), l = n(() => {
48
48
  var t;
49
49
  return ((t = e == null ? void 0 : e.menuList) == null ? void 0 : t.filter((o) => {
50
50
  let s = o == null ? void 0 : o.ifShow;
51
- return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () => g(o.auth)), (s == null ? void 0 : s()) ?? !0;
51
+ return !(o != null && o.ifShow) && (o != null && o.auth) && (s = () => k(o.auth)), (s == null ? void 0 : s()) ?? !0;
52
52
  })) || [];
53
53
  });
54
54
  function b() {
@@ -68,12 +68,12 @@ const ee = /* @__PURE__ */ A({
68
68
  overlay: r(() => [
69
69
  c(w, m({
70
70
  ...e
71
- }, { menuList: l.value }), null, 16, ["menuList"])
71
+ }, { "menu-list": l.value }), null, 16, ["menu-list"])
72
72
  ]),
73
73
  default: r(() => [
74
74
  C("span", {
75
75
  style: D({
76
- color: B.value
76
+ color: L.value
77
77
  })
78
78
  }, h(f.value), 5)
79
79
  ]),
@@ -86,7 +86,7 @@ const ee = /* @__PURE__ */ A({
86
86
  overlay: r(() => [
87
87
  c(w, m({
88
88
  ...e
89
- }, { menuList: l.value }), null, 16, ["menuList"])
89
+ }, { "menu-list": l.value }), null, 16, ["menu-list"])
90
90
  ]),
91
91
  default: r(() => [
92
92
  c(a(E), R(T({
@@ -85,8 +85,8 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
85
85
  y.value ? (a(), g(t(Q), {
86
86
  key: 0,
87
87
  size: "small",
88
- onClick: d[0] || (d[0] = (i) => R()),
89
- style: { "font-size": "12px", "padding-left": "16px" }
88
+ style: { "font-size": "12px", "padding-left": "16px" },
89
+ onClick: d[0] || (d[0] = (i) => R())
90
90
  }, {
91
91
  default: m(() => [
92
92
  b("span", {
@@ -101,10 +101,10 @@ const Z = ["onClick"], pe = /* @__PURE__ */ W({
101
101
  ]),
102
102
  message: m(() => [
103
103
  b("div", {
104
- style: c({ ...D.value, ...e.contentStyle }),
105
- class: s(t(o)("alertContent")),
106
104
  ref_key: "ellipsisBoxRef",
107
- ref: u
105
+ ref: u,
106
+ style: c({ ...D.value, ...e.contentStyle }),
107
+ class: s(t(o)("alertContent"))
108
108
  }, [
109
109
  N(e.$slots, "default", {}, () => [
110
110
  t(E)(e.prefix) ? (a(), n("span", {
@@ -32,33 +32,33 @@ const oe = /* @__PURE__ */ B({
32
32
  return b.value ? "" : t[_.value] || t.aplus;
33
33
  }), b = l(() => !!(e != null && e.disabled)), A = l(() => (e == null ? void 0 : e.successMessage) === !0 ? n("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), G = {
34
34
  textAlign: "center"
35
- }, c = D(!1), w = l(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = l(() => {
35
+ }, c = D(!1), v = l(() => (e == null ? void 0 : e.selectedRowKeys) || []), P = l(() => {
36
36
  let t = e == null ? void 0 : e.ifShow;
37
37
  return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => C(e.auth)), (t == null ? void 0 : t()) ?? !0;
38
38
  });
39
39
  async function k({ key: t }) {
40
- var v, h;
41
- const { getRequestParams: u, request: o } = e || {};
40
+ var w, h;
41
+ const { getRequestParams: r, request: o } = e || {};
42
42
  let d = {};
43
43
  t === i.SELECT ? d = {
44
- [(e == null ? void 0 : e.idKey) || "ids"]: w.value
45
- } : t === i.ALL && (d = (u == null ? void 0 : u()) || {});
46
- const p = ((v = e == null ? void 0 : e.getInitialParams) == null ? void 0 : v.call(e)) || {};
44
+ [(e == null ? void 0 : e.idKey) || "ids"]: v.value
45
+ } : t === i.ALL && (d = (r == null ? void 0 : r()) || {});
46
+ const p = ((w = e == null ? void 0 : e.getInitialParams) == null ? void 0 : w.call(e)) || {};
47
47
  try {
48
48
  c.value = !0;
49
- let r = {
49
+ let u = {
50
50
  ...d,
51
51
  ...p
52
52
  };
53
- r = ((h = e == null ? void 0 : e.beforeRequest) == null ? void 0 : h.call(e, r)) || r, await O(async () => await (o == null ? void 0 : o(r))), e != null && e.successMessage && I.success(A.value);
53
+ u = ((h = e == null ? void 0 : e.beforeRequest) == null ? void 0 : h.call(e, u)) || u, await O(async () => await (o == null ? void 0 : o(u))), e != null && e.successMessage && I.success(A.value);
54
54
  } finally {
55
55
  c.value = !1;
56
56
  }
57
57
  }
58
- return (t, u) => P.value ? (m(), f(a(V), {
58
+ return (t, r) => P.value ? (m(), f(a(V), {
59
59
  key: 0,
60
60
  class: K([a(S)()]),
61
- overlayStyle: G,
61
+ "overlay-style": G,
62
62
  disabled: b.value
63
63
  }, {
64
64
  overlay: s(() => [
@@ -68,7 +68,7 @@ const oe = /* @__PURE__ */ B({
68
68
  return [
69
69
  (m(), f(a(M), {
70
70
  key: a(i).SELECT,
71
- disabled: ((o = w.value) == null ? void 0 : o.length) === 0
71
+ disabled: ((o = v.value) == null ? void 0 : o.length) === 0
72
72
  }, {
73
73
  default: s(() => [
74
74
  g(x(a(n)("ap.apExportGroup.exportSelected")), 1)
@@ -5,9 +5,9 @@ declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
6
6
  slots: {
7
7
  search?(_: {
8
+ key: SelectValue;
8
9
  value: any;
9
10
  change: (e: any) => void;
10
- key: SelectValue;
11
11
  }): any;
12
12
  };
13
13
  refs: {