@aplus-frontend/ui 7.19.0-beta.1 → 7.19.0

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 (165) hide show
  1. package/es/src/ag-grid/context.mjs +1 -1
  2. package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  3. package/es/src/ag-grid/editable/form-item.vue.mjs +88 -77
  4. package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
  5. package/es/src/ag-grid/editable/index.vue.mjs +9 -8
  6. package/es/src/ag-grid/editable/interface.d.ts +15 -1
  7. package/es/src/ag-grid/hooks/use-columns.mjs +31 -23
  8. package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
  9. package/es/src/ag-grid/index.vue.d.ts +2 -4
  10. package/es/src/ag-grid/index.vue.mjs +353 -335
  11. package/es/src/ag-grid/interface.d.ts +40 -1
  12. package/es/src/ag-grid/utils.d.ts +18 -0
  13. package/es/src/ag-grid/utils.mjs +39 -18
  14. package/es/src/ap-field/cascader/use-options.d.ts +4 -4
  15. package/es/src/ap-field/date/index.vue.d.ts +0 -1
  16. package/es/src/ap-field/date-range/index.vue.d.ts +0 -1
  17. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  18. package/es/src/ap-field/text/password.vue.d.ts +4 -4
  19. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  20. package/es/src/ap-form/ap-form.vue.d.ts +1 -2
  21. package/es/src/ap-form/ap-form.vue2.mjs +63 -61
  22. package/es/src/ap-form/context.mjs +1 -1
  23. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  24. package/es/src/ap-form/interface.d.ts +4 -0
  25. package/es/src/ap-form/item/index.vue.d.ts +6 -6
  26. package/es/src/ap-form/item-group/helper.mjs +2 -2
  27. package/es/src/ap-form/items/date/index.vue.d.ts +9 -11
  28. package/es/src/ap-form/items/date-range/index.vue.d.ts +13 -15
  29. package/es/src/ap-form/items/number/index.vue.d.ts +2 -3
  30. package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
  31. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
  32. package/es/src/ap-form/provider/context.mjs +1 -1
  33. package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
  34. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  35. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  36. package/es/src/ap-grid/index.vue.d.ts +2 -4
  37. package/es/src/ap-grid/utils/table.mjs +2 -2
  38. package/es/src/ap-list/index.vue.d.ts +2 -4
  39. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  40. package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
  41. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  42. package/es/src/ap-table/components/setting/context.d.ts +1 -1
  43. package/es/src/ap-table/components/setting/context.mjs +1 -1
  44. package/es/src/ap-table/components/setting/modal/index.vue.mjs +127 -117
  45. package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
  46. package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
  47. package/es/src/ap-table/constants.d.ts +20 -22
  48. package/es/src/ap-table/context.mjs +1 -1
  49. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +9 -9
  50. package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
  51. package/es/src/ap-table/hooks/use-table-template-storage.mjs +102 -95
  52. package/es/src/ap-table/utils.mjs +1 -1
  53. package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
  54. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  55. package/es/src/business/ap-download/hooks/index.mjs +1 -1
  56. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  57. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
  58. package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
  59. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  60. package/es/src/business/ap-keep-alive/hook.mjs +1 -1
  61. package/es/src/business/ap-keep-alive/utils.mjs +1 -1
  62. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  63. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  64. package/es/src/business/ap-table-modal/index.d.ts +17 -5
  65. package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  66. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +128 -112
  67. package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  68. package/es/src/business/ap-view/ap-view.vue.d.ts +1 -1
  69. package/es/src/business/ap-view/ap-view.vue2.mjs +87 -81
  70. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  71. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  72. package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
  73. package/es/src/business/ap-view/hooks/use-send-to-url.mjs +46 -30
  74. package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
  75. package/es/src/business/ap-view/index.d.ts +3 -3
  76. package/es/src/business/ap-view/interface.d.ts +7 -1
  77. package/es/src/check-card/context.mjs +1 -1
  78. package/es/src/config-provider/constants.mjs +1 -1
  79. package/es/src/config-provider/hooks/use-locale.mjs +1 -1
  80. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  81. package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
  82. package/es/src/config-provider/hooks/use-token.mjs +1 -1
  83. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  84. package/es/src/editable-table/index.vue.d.ts +2 -4
  85. package/es/src/editable-table/utils.mjs +1 -1
  86. package/es/src/scroll-view/index.vue.d.ts +5 -5
  87. package/es/src/tests/wrapper.d.ts +4 -4
  88. package/es/src/text/context.mjs +1 -1
  89. package/es/src/time-ago/useTimeAgo.mjs +1 -1
  90. package/es/src/type.d.ts +1 -0
  91. package/es/src/utils/slot.mjs +1 -1
  92. package/es/src/version.d.ts +1 -1
  93. package/es/src/version.mjs +1 -1
  94. package/lib/src/ag-grid/editable/form-item.vue.d.ts +2 -4
  95. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  96. package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
  97. package/lib/src/ag-grid/editable/index.vue.js +1 -1
  98. package/lib/src/ag-grid/editable/interface.d.ts +15 -1
  99. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  100. package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
  101. package/lib/src/ag-grid/index.vue.d.ts +2 -4
  102. package/lib/src/ag-grid/index.vue.js +1 -1
  103. package/lib/src/ag-grid/interface.d.ts +40 -1
  104. package/lib/src/ag-grid/utils.d.ts +18 -0
  105. package/lib/src/ag-grid/utils.js +1 -1
  106. package/lib/src/ap-field/cascader/use-options.d.ts +4 -4
  107. package/lib/src/ap-field/date/index.vue.d.ts +0 -1
  108. package/lib/src/ap-field/date-range/index.vue.d.ts +0 -1
  109. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  110. package/lib/src/ap-field/text/password.vue.d.ts +4 -4
  111. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  112. package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
  113. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  114. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
  115. package/lib/src/ap-form/interface.d.ts +4 -0
  116. package/lib/src/ap-form/item/index.vue.d.ts +6 -6
  117. package/lib/src/ap-form/items/date/index.vue.d.ts +9 -11
  118. package/lib/src/ap-form/items/date-range/index.vue.d.ts +13 -15
  119. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -3
  120. package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
  121. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
  122. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
  123. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  124. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  125. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  126. package/lib/src/ap-grid/utils/table.js +1 -1
  127. package/lib/src/ap-list/index.vue.d.ts +2 -4
  128. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  129. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  130. package/lib/src/ap-table/components/setting/context.d.ts +1 -1
  131. package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
  132. package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
  133. package/lib/src/ap-table/constants.d.ts +20 -22
  134. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  135. package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
  136. package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
  137. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  138. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
  139. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  140. package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
  141. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  142. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  143. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  144. package/lib/src/business/ap-table-modal/index.d.ts +17 -5
  145. package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  146. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  147. package/lib/src/business/ap-value-select-card/index.vue.d.ts +2 -4
  148. package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -1
  149. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  150. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
  151. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
  152. package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
  153. package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -1
  154. package/lib/src/business/ap-view/index.d.ts +3 -3
  155. package/lib/src/business/ap-view/interface.d.ts +7 -1
  156. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  157. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  158. package/lib/src/editable-table/index.vue.d.ts +2 -4
  159. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  160. package/lib/src/tests/wrapper.d.ts +4 -4
  161. package/lib/src/time-ago/useTimeAgo.js +1 -1
  162. package/lib/src/type.d.ts +1 -0
  163. package/lib/src/version.d.ts +1 -1
  164. package/lib/src/version.js +1 -1
  165. package/package.json +1 -1
@@ -1,96 +1,96 @@
1
- import { defineComponent as oe, inject as s, ref as te, watch as se, nextTick as ae, createElementBlock as N, openBlock as y, normalizeClass as ne, unref as a, createVNode as k, withCtx as U, createElementVNode as S, createTextVNode as re, toDisplayString as D, withModifiers as ie, createCommentVNode as le, createBlock as ce, resolveDynamicComponent as ue } from "vue";
2
- import { UploadOutlined as pe } from "@ant-design/icons-vue";
3
- import { message as p, Upload as me, Button as de } from "@aplus-frontend/antdv";
4
- import { IconApAdLineDownload as fe } from "@aplus-frontend/icon";
5
- import { ApFilePreview as ge } from "../../ap-file-preview/index.mjs";
1
+ import { defineComponent as ne, inject as s, ref as re, watch as ie, nextTick as le, createElementBlock as N, openBlock as g, normalizeClass as ce, unref as a, createVNode as h, withCtx as w, createElementVNode as D, createTextVNode as L, toDisplayString as U, withModifiers as ue, createCommentVNode as pe, createBlock as z, resolveDynamicComponent as B, createSlots as de } from "vue";
2
+ import { UploadOutlined as me } from "@ant-design/icons-vue";
3
+ import { message as d, Upload as fe, Button as we, Tooltip as ge } from "@aplus-frontend/antdv";
4
+ import { IconApAdLineDownload as he } from "@aplus-frontend/icon";
5
+ import { ApFilePreview as ve } from "../../ap-file-preview/index.mjs";
6
6
  import "../../../config-provider/index.mjs";
7
- import { randomStr as we } from "../../../utils/index.mjs";
8
- import { useOss as he, getOssInstance as L } from "../hooks/useOss.mjs";
9
- import ve from "../style/index.mjs";
10
- import { fileMatchesAccept as xe, getAcceptText as ye } from "../utils/accept.mjs";
11
- import { getPath as ke, getName as be, getReturnData as z } from "../utils/returnData.mjs";
12
- import { useGlobalConfig as Ce } from "../../../config-provider/hooks/use-global-config.mjs";
13
- import { useLocale as Ne } from "../../../config-provider/hooks/use-locale.mjs";
14
- import { useNamespace as Ue } from "../../../config-provider/hooks/use-namespace.mjs";
15
- const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 }, $e = /* @__PURE__ */ oe({
7
+ import { randomStr as xe } from "../../../utils/index.mjs";
8
+ import { useOss as ye, getOssInstance as O } from "../hooks/useOss.mjs";
9
+ import ke from "../style/index.mjs";
10
+ import { fileMatchesAccept as be, getAcceptText as Ce } from "../utils/accept.mjs";
11
+ import { getPath as _e, getName as Ne, getReturnData as V } from "../utils/returnData.mjs";
12
+ import { useGlobalConfig as Ue } from "../../../config-provider/hooks/use-global-config.mjs";
13
+ import { useLocale as Ee } from "../../../config-provider/hooks/use-locale.mjs";
14
+ import { useNamespace as Fe } from "../../../config-provider/hooks/use-namespace.mjs";
15
+ const Ae = { class: "multiple-file-context" }, Te = { key: 0 }, Pe = { key: 1 }, He = /* @__PURE__ */ ne({
16
16
  __name: "MultipleFile",
17
- setup(Ae, { expose: B }) {
18
- const E = Ce(
17
+ setup(Re, { expose: q }) {
18
+ const E = Ue(
19
19
  "downloadCenterTriggerConfig"
20
- ), { t: i } = Ne(), { b: O } = Ue("ap-upload-multiple-file"), V = ve("ap-upload"), { put: q } = he(), j = s("dirName"), $ = s("baseDirName"), b = s("accept") || "*", _ = s("maxSize") ?? 500, G = s("title") || i("ap.apUpload.uploadFile"), f = s("subTitle"), l = s("maxCount") ?? 10, m = s("uploadingCount"), F = s("beforeUpload"), A = s("customRequest"), g = s("getOssAccess"), W = s("maxSizeErrorMsg"), H = s("maxCountErrorMsg"), J = s("acceptErrorMsg"), P = s("onRemove"), C = s("showUploadErrorMsg"), T = s("bucket"), K = s("showDownload") ?? !0, w = s("showPreview") ?? !0, r = s("value"), c = [], h = s("needName"), d = te(null);
21
- se(
22
- () => r?.value,
20
+ ), { t: r } = Ee(), { b: j } = Fe("ap-upload-multiple-file"), $ = ke("ap-upload"), { put: G } = ye(), W = s("dirName"), H = s("baseDirName"), C = s("accept") || "*", F = s("maxSize") ?? 500, J = s("title") || r("ap.apUpload.uploadFile"), v = s("subTitle"), l = s("maxCount") ?? 10, m = s("uploadingCount"), A = s("beforeUpload"), T = s("customRequest"), x = s("getOssAccess"), K = s("maxSizeErrorMsg"), Q = s("maxCountErrorMsg"), X = s("acceptErrorMsg"), P = s("onRemove"), _ = s("showUploadErrorMsg"), R = s("bucket"), Y = s("showDownload") ?? !0, c = s("showPreview") ?? !0, i = s("value"), u = [], y = s("needName"), f = re(null);
21
+ ie(
22
+ () => i?.value,
23
23
  function(e) {
24
- !d?.value?.fileList?.length && e && I(e);
24
+ !f?.value?.fileList?.length && e && I(e);
25
25
  },
26
26
  { immediate: !0 }
27
27
  );
28
28
  function I(e) {
29
29
  if (!e) {
30
- u = [], d.value.fileList = [], r.value = void 0, c.splice(0, c.length);
30
+ p = [], f.value.fileList = [], i.value = void 0, u.splice(0, u.length);
31
31
  return;
32
32
  }
33
- ae(() => {
33
+ le(() => {
34
34
  const o = e.map((t) => {
35
- const n = ke(h, t), M = be(h, t), x = new File(
35
+ const n = _e(y, t), M = Ne(y, t), b = new File(
36
36
  [t],
37
37
  M,
38
38
  {}
39
39
  );
40
- return x.response = n, x.uid = we(18), x.status = "done", x;
40
+ return b.response = n, b.uid = xe(18), b.status = "done", b;
41
41
  });
42
42
  if (l && o.length > l) {
43
- p.warning(
44
- i("ap.apUpload.fileInitializationException", {
43
+ d.warning(
44
+ r("ap.apUpload.fileInitializationException", {
45
45
  maxCount: l
46
46
  })
47
47
  );
48
48
  return;
49
49
  }
50
50
  o.forEach((t) => {
51
- u.push(t), c.push({
51
+ p.push(t), u.push({
52
52
  uid: t.uid,
53
53
  path: t.response
54
54
  });
55
- }), d.value.fileList = o, r.value = e;
55
+ }), f.value.fileList = o, i.value = e;
56
56
  });
57
57
  }
58
- B({ setValue: I });
59
- let u = [], R;
60
- function v(e) {
58
+ q({ setValue: I });
59
+ let p = [], S;
60
+ function k(e) {
61
61
  setTimeout(() => {
62
- const o = d.value.fileList.findIndex(
62
+ const o = f.value.fileList.findIndex(
63
63
  (t) => t.uid === e.uid
64
64
  );
65
- o >= 0 && d.value.fileList.splice(o, 1);
65
+ o >= 0 && f.value.fileList.splice(o, 1);
66
66
  });
67
67
  }
68
- async function Q(e) {
69
- if (l && l > 1 && u.length >= l)
70
- return clearTimeout(R), R = setTimeout(() => {
71
- p.warning(
72
- H || i("ap.apUpload.maxUploadFiles", {
68
+ async function Z(e) {
69
+ if (l && l > 1 && p.length >= l)
70
+ return clearTimeout(S), S = setTimeout(() => {
71
+ d.warning(
72
+ Q || r("ap.apUpload.maxUploadFiles", {
73
73
  maxCount: l
74
74
  })
75
75
  );
76
- }), v(e), !1;
77
- if (e.size > _ * 1024 * 1024)
78
- return p.warning(
79
- W || i("ap.apUpload.maxUploadFileSize", {
80
- maxSize: _
76
+ }), k(e), !1;
77
+ if (e.size > F * 1024 * 1024)
78
+ return d.warning(
79
+ K || r("ap.apUpload.maxUploadFileSize", {
80
+ maxSize: F
81
81
  })
82
- ), v(e), !1;
83
- if (!xe(e, b))
84
- return p.warning(
85
- J || i("ap.apUpload.fileFormatNotSupported")
86
- ), v(e), !1;
87
- if (typeof F == "function" && await F(e) === !1)
88
- return v(e), !1;
89
- l && l === 1 && (u = [], r.value = void 0), u.push(e);
82
+ ), k(e), !1;
83
+ if (!be(e, C))
84
+ return d.warning(
85
+ X || r("ap.apUpload.fileFormatNotSupported")
86
+ ), k(e), !1;
87
+ if (typeof A == "function" && await A(e) === !1)
88
+ return k(e), !1;
89
+ l && l === 1 && (p = [], i.value = void 0), p.push(e);
90
90
  }
91
- async function X(e) {
92
- if (m.value++, typeof A == "function") {
93
- A({
91
+ async function ee(e) {
92
+ if (m.value++, typeof T == "function") {
93
+ T({
94
94
  onProgress: (o) => {
95
95
  setTimeout(() => {
96
96
  e.onProgress({
@@ -99,7 +99,7 @@ const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 },
99
99
  });
100
100
  },
101
101
  onError: (o) => {
102
- C && p.warning(o || i("ap.apUpload.networkAnomaly")), setTimeout(() => {
102
+ _ && d.warning(o || r("ap.apUpload.networkAnomaly")), setTimeout(() => {
103
103
  e.onError({
104
104
  name: o,
105
105
  message: o
@@ -109,10 +109,10 @@ const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 },
109
109
  onSuccess: (o) => {
110
110
  setTimeout(() => {
111
111
  e.onSuccess(o);
112
- }), r.value = [
113
- ...r.value || [],
114
- z(h, o, e.file.name)
115
- ], c.push({
112
+ }), i.value = [
113
+ ...i.value || [],
114
+ V(y, o, e.file.name)
115
+ ], u.push({
116
116
  uid: e.file.uid,
117
117
  path: o
118
118
  }), m.value--;
@@ -122,22 +122,22 @@ const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 },
122
122
  return;
123
123
  }
124
124
  try {
125
- const o = await (T ? g(T) : g()), t = await L(async () => o);
126
- e.file.oss = t, q({
125
+ const o = await (R ? x(R) : x()), t = await O(async () => o);
126
+ e.file.oss = t, G({
127
127
  file: e.file,
128
- dirName: j,
128
+ dirName: W,
129
129
  oss: t,
130
130
  successCallBack(n) {
131
- e.onSuccess(n), r.value = [
132
- ...r.value || [],
133
- z(h, n, e.file.name)
134
- ], c.push({
131
+ e.onSuccess(n), i.value = [
132
+ ...i.value || [],
133
+ V(y, n, e.file.name)
134
+ ], u.push({
135
135
  uid: e.file.uid,
136
136
  path: n
137
137
  }), m.value--;
138
138
  },
139
139
  errorCallBack(n) {
140
- C && p.warning(n || i("ap.apUpload.networkAnomaly")), e.onError({
140
+ _ && d.warning(n || r("ap.apUpload.networkAnomaly")), e.onError({
141
141
  name: n,
142
142
  message: n
143
143
  }), m.value--;
@@ -147,32 +147,32 @@ const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 },
147
147
  percent: n
148
148
  });
149
149
  },
150
- baseDirName: $,
150
+ baseDirName: H,
151
151
  bucket: o?.bucket
152
152
  });
153
153
  } catch (o) {
154
- C && p.warning(
155
- typeof o?.message == "string" ? o.message : i("ap.apUpload.networkAnomaly")
154
+ _ && d.warning(
155
+ typeof o?.message == "string" ? o.message : r("ap.apUpload.networkAnomaly")
156
156
  ), e.onError({
157
- name: o?.message || i("ap.apUpload.networkAnomaly"),
158
- message: o?.message || i("ap.apUpload.networkAnomaly")
157
+ name: o?.message || r("ap.apUpload.networkAnomaly"),
158
+ message: o?.message || r("ap.apUpload.networkAnomaly")
159
159
  }), m.value--;
160
160
  }
161
161
  }
162
- function Y(e) {
162
+ function oe(e) {
163
163
  if (P && P?.(e), e.response) {
164
- if (Array.isArray(r.value)) {
165
- const t = c.findIndex((n) => n.uid === e.uid);
166
- t >= 0 && (r?.value.splice(t, 1), c.splice(t, 1)), r.value.length === 0 && (r.value = void 0);
164
+ if (Array.isArray(i.value)) {
165
+ const t = u.findIndex((n) => n.uid === e.uid);
166
+ t >= 0 && (i?.value.splice(t, 1), u.splice(t, 1)), i.value.length === 0 && (i.value = void 0);
167
167
  }
168
168
  } else
169
169
  e?.oss?.pauseUpload();
170
- const o = u.findIndex(
170
+ const o = p.findIndex(
171
171
  (t) => t.uid === e.uid
172
172
  );
173
- return u.splice(o, 1), Promise.resolve(!0);
173
+ return p.splice(o, 1), Promise.resolve(!0);
174
174
  }
175
- const Z = async (e) => {
175
+ const te = async (e) => {
176
176
  if (E.value?.trigger) {
177
177
  let o = [e].map((t) => ({
178
178
  objectName: t.response,
@@ -181,8 +181,8 @@ const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 },
181
181
  E.value?.trigger?.(o);
182
182
  } else {
183
183
  const o = e.response?.match(/^([^:]+):(.*)$/), t = o?.[1], n = o?.[2] ?? e.response;
184
- (await L(
185
- () => t ? g?.(t) : g?.()
184
+ (await O(
185
+ () => t ? x?.(t) : x?.()
186
186
  )).downloadFile([
187
187
  {
188
188
  path: n,
@@ -190,22 +190,22 @@ const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 },
190
190
  }
191
191
  ]);
192
192
  }
193
- }, ee = (e) => {
194
- (typeof w == "function" ? w(e) : w) && ge.createFilePreviewModal({
193
+ }, se = (e) => {
194
+ (typeof c == "function" ? c(e) : c) && ve.createFilePreviewModal({
195
195
  src: e.response,
196
196
  fileName: e.name
197
197
  });
198
- };
199
- return (e, o) => (y(), N("div", {
200
- class: ne({
201
- [a(O)()]: !0,
202
- [a(V) ?? ""]: !0
198
+ }, ae = (e) => (typeof c == "function" ? c(e) : c) ? ["done"].includes(e.status) : !1;
199
+ return (e, o) => (g(), N("div", {
200
+ class: ce({
201
+ [a(j)()]: !0,
202
+ [a($) ?? ""]: !0
203
203
  })
204
204
  }, [
205
- k(a(me), {
205
+ h(a(fe), {
206
206
  ref_key: "uploadRef",
207
- ref: d,
208
- accept: a(b),
207
+ ref: f,
208
+ accept: a(C),
209
209
  multiple: "",
210
210
  "max-count": a(l),
211
211
  progress: {
@@ -213,37 +213,53 @@ const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 },
213
213
  showInfo: !1,
214
214
  strokeColor: "#0070FF"
215
215
  },
216
- "before-upload": Q,
217
- "custom-request": X,
216
+ "before-upload": Z,
217
+ "custom-request": ee,
218
218
  "show-upload-list": {
219
- showDownloadIcon: a(K),
219
+ showDownloadIcon: a(Y),
220
220
  showRemoveIcon: !0,
221
- showPreviewIcon: a(w)
221
+ showPreviewIcon: a(c)
222
222
  },
223
- onPreview: ee,
224
- onRemove: Y,
225
- onDownload: Z
223
+ onPreview: se,
224
+ onRemove: oe,
225
+ onDownload: te
226
226
  }, {
227
- downloadIcon: U(() => [
228
- k(a(fe), { class: "anticon anticon-vertical-align-bottom" })
227
+ downloadIcon: w(() => [
228
+ h(a(he), { class: "anticon anticon-vertical-align-bottom" })
229
229
  ]),
230
- default: U(() => [
231
- S("div", Ee, [
232
- k(a(de), { class: "file-btn" }, {
233
- default: U(() => [
234
- k(a(pe)),
235
- re(" " + D(a(G)), 1)
230
+ itemRender: w(({ originNode: t, file: n }) => [
231
+ h(a(ge), null, de({
232
+ default: w(() => [
233
+ (g(), z(B(t)))
234
+ ]),
235
+ _: 2
236
+ }, [
237
+ ae(n) ? {
238
+ name: "title",
239
+ fn: w(() => [
240
+ L(U(a(r)("ap.apAppendix.previewFile")), 1)
241
+ ]),
242
+ key: "0"
243
+ } : void 0
244
+ ]), 1024)
245
+ ]),
246
+ default: w(() => [
247
+ D("div", Ae, [
248
+ h(a(we), { class: "file-btn" }, {
249
+ default: w(() => [
250
+ h(a(me)),
251
+ L(" " + U(a(J)), 1)
236
252
  ]),
237
253
  _: 1
238
254
  }),
239
- S("div", {
255
+ D("div", {
240
256
  class: "sub-title",
241
- onClick: o[0] || (o[0] = ie(() => {
257
+ onClick: o[0] || (o[0] = ue(() => {
242
258
  }, ["stop"]))
243
259
  }, [
244
- typeof a(f) == "string" ? (y(), N("div", _e, D(a(f) || `${a(i)("ap.apUpload.supportExtension")}:${a(ye)(a(b))}`), 1)) : a(f) ? (y(), N("div", Fe, [
245
- (y(), ce(ue(a(f))))
246
- ])) : le("", !0)
260
+ typeof a(v) == "string" ? (g(), N("div", Te, U(a(v) || `${a(r)("ap.apUpload.supportExtension")}:${a(Ce)(a(C))}`), 1)) : a(v) ? (g(), N("div", Pe, [
261
+ (g(), z(B(a(v))))
262
+ ])) : pe("", !0)
247
263
  ])
248
264
  ])
249
265
  ]),
@@ -253,5 +269,5 @@ const Ee = { class: "multiple-file-context" }, _e = { key: 0 }, Fe = { key: 1 },
253
269
  }
254
270
  });
255
271
  export {
256
- $e as default
272
+ He as default
257
273
  };
@@ -1,5 +1,5 @@
1
1
  import { ApValueSelectCardProps, ApValueSelectCardOption } from './interface';
2
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
2
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, ComputedRef, VNode } from 'vue';
3
3
  declare const _default: <T extends Record<string, any> = Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onChange?: ((keys: (string | number)[]) => any) | undefined;
@@ -45,9 +45,7 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
45
45
  (e: "remove", key: string | number): void;
46
46
  (e: "highlight", keys: (string | number)[]): void;
47
47
  };
48
- }>) => VNode<RendererNode, RendererElement, {
49
- [key: string]: any;
50
- }> & {
48
+ }>) => VNode & {
51
49
  __ctx?: Awaited<typeof __VLS_setup>;
52
50
  };
53
51
  export default _default;
@@ -4,7 +4,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
4
4
  declare const _default: DefineComponent<ApViewProps, {
5
5
  setFirstDefaultSystemView: (value: boolean) => void;
6
6
  setInitToUrl: (value: boolean) => void;
7
- mountedData: Recordable;
7
+ getMountedData: () => Recordable;
8
8
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApViewProps> & Readonly<{}>, {
9
9
  manual: boolean;
10
10
  maxViewNum: number;