@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,17 +1,17 @@
1
- import { defineComponent as Q, computed as y, openBlock as c, createBlock as k, unref as e, mergeProps as W, withCtx as u, renderSlot as X, createElementVNode as s, normalizeClass as l, createElementBlock as g, createVNode as n, createTextVNode as p, toDisplayString as f, resolveDynamicComponent as S, h as $, Fragment as q } from "vue";
2
- import { clearAllFile as I } from "../utils/fileList.mjs";
3
- import C from "../icon/file-icon.vue.mjs";
4
- import L from "../icon/delete-icon.vue.mjs";
5
- import { Form as Y, UploadDragger as Z, TypographyParagraph as N, Progress as ee, Tooltip as B } from "@aplus-frontend/antdv";
6
- import { FormItemInputContext as te } from "@aplus-frontend/antdv/es/form/FormItemContext";
7
- import { useSingleProps as oe } from "../hook/useProps.mjs";
8
- import { useInjectContext as le } from "../hook/useInjectContext.mjs";
9
- import { omit as se } from "lodash-unified";
1
+ import { defineComponent as Q, computed as C, openBlock as m, createBlock as k, unref as e, mergeProps as W, withCtx as u, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z, createElementVNode as s, normalizeClass as l, createElementBlock as g, createVNode as n, createTextVNode as p, toDisplayString as f, resolveDynamicComponent as E, h as P, Fragment as $ } from "vue";
2
+ import { clearSingleFile as ee, clearAllFile as x } from "../utils/fileList.mjs";
3
+ import b from "../icon/file-icon.vue.mjs";
4
+ import F from "../icon/delete-icon.vue.mjs";
5
+ import { Form as te, UploadDragger as oe, TypographyParagraph as I, Progress as le, Tooltip as q } from "@aplus-frontend/antdv";
6
+ import { FormItemInputContext as se } from "@aplus-frontend/antdv/es/form/FormItemContext";
7
+ import { useSingleProps as ne } from "../hook/useProps.mjs";
8
+ import { useInjectContext as ae } from "../hook/useInjectContext.mjs";
9
+ import { omit as ie } from "lodash-unified";
10
10
  import "../../../config-provider/index.mjs";
11
- import { useGlobalConfig as O } from "../../../config-provider/hooks/use-global-config.mjs";
12
- import { useLocale as ne } from "../../../config-provider/hooks/use-locale.mjs";
13
- import { useNamespace as ie } from "../../../config-provider/hooks/use-namespace.mjs";
14
- const ke = /* @__PURE__ */ Q({
11
+ import { useGlobalConfig as B } from "../../../config-provider/hooks/use-global-config.mjs";
12
+ import { useLocale as re } from "../../../config-provider/hooks/use-locale.mjs";
13
+ import { useNamespace as ue } from "../../../config-provider/hooks/use-namespace.mjs";
14
+ const Ie = /* @__PURE__ */ Q({
15
15
  __name: "ap-upload-single",
16
16
  props: {
17
17
  dirName: {},
@@ -22,36 +22,38 @@ const ke = /* @__PURE__ */ Q({
22
22
  accept: { default: "*" },
23
23
  beforeUpload: {},
24
24
  customRequest: {},
25
+ maxSizeErrorMsg: {},
26
+ acceptErrorMsg: {},
25
27
  title: { type: [Object, String, Number, Boolean, null, Array] },
26
28
  subTitle: { type: [Object, String, Number, Boolean, null, Array] }
27
29
  },
28
30
  emits: ["update:fileList"],
29
- setup(R, { emit: T }) {
31
+ setup(O, { emit: T }) {
30
32
  var D;
31
- const j = te.useInject(), E = y(() => j.status), d = R, P = T, b = Y.useInjectFormItemContext(), m = y({
33
+ const U = se.useInject(), j = C(() => U.status), d = O, z = T, y = te.useInjectFormItemContext(), c = C({
32
34
  get() {
33
35
  return d.fileList || [];
34
36
  },
35
- set(i) {
36
- P("update:fileList", i), b == null || b.onFieldChange();
37
+ set(a) {
38
+ z("update:fileList", a), y == null || y.onFieldChange();
37
39
  }
38
- }), o = y(() => {
39
- var i;
40
- return (i = m.value) == null ? void 0 : i[0];
41
- }), z = O("apUpload"), { t: V, lang: _ } = ne(), {
42
- title: M,
40
+ }), o = C(() => {
41
+ var a;
42
+ return (a = c.value) == null ? void 0 : a[0];
43
+ }), R = B("apUpload"), { t: M, lang: V } = re(), {
44
+ title: _,
43
45
  subTitle: h,
44
46
  beforeUpload: G,
45
47
  customRequest: H
46
- } = oe(d), J = H;
47
- le(
48
+ } = ne(d), J = H;
49
+ ae(
50
+ M,
48
51
  V,
49
- _,
50
- (d == null ? void 0 : d.getOssAccess) ?? ((D = z.value) == null ? void 0 : D.getOssAccess)
52
+ (d == null ? void 0 : d.getOssAccess) ?? ((D = R.value) == null ? void 0 : D.getOssAccess)
51
53
  );
52
- const { b: U, e: t } = ie("ap-upload-single"), x = O("uiMode");
53
- function K(i) {
54
- return se(i, [
54
+ const { b: N, e: t } = ue("ap-upload-single"), S = B("uiMode");
55
+ function K(a) {
56
+ return ie(a, [
55
57
  "dirName",
56
58
  "needName",
57
59
  "getOssAccess",
@@ -60,40 +62,42 @@ const ke = /* @__PURE__ */ Q({
60
62
  "subTitle"
61
63
  ]);
62
64
  }
63
- return (i, a) => (c(), k(e(Z), W({
64
- maxCount: 1,
65
- showUploadList: !1,
66
- disabled: !!o.value && [void 0, "uploading", "error", "success", "done"].includes(o.value.status)
67
- }, {
68
- ...i.$attrs,
65
+ return (a, i) => (m(), k(e(oe), W({
66
+ ...a.$attrs,
69
67
  ...K(d)
70
68
  }, {
71
- "file-list": m.value,
72
- "onUpdate:fileList": a[3] || (a[3] = (v) => m.value = v),
73
- class: [e(U)(), `${e(U)()}-affix-wrapper-status-${E.value}`],
74
- beforeUpload: e(G),
75
- customRequest: e(J)
69
+ "file-list": c.value,
70
+ "onUpdate:fileList": i[3] || (i[3] = (v) => c.value = v),
71
+ "max-count": 1,
72
+ "show-upload-list": !1,
73
+ disabled: !!o.value && [void 0, "uploading", "error", "success", "done"].includes(o.value.status),
74
+ class: [e(N)(), `${e(N)()}-affix-wrapper-status-${j.value}`],
75
+ "before-upload": e(G),
76
+ "custom-request": e(J)
76
77
  }), {
77
78
  default: u(() => [
78
- X(i.$slots, "default", {}, () => {
79
- var v, F, w, A;
79
+ X(a.$slots, "default", Y(Z({
80
+ file: o.value,
81
+ clear: () => o.value && e(ee)(o.value, c.value, { maxCount: 1 })
82
+ })), () => {
83
+ var v, L, w, A;
80
84
  return [
81
85
  s("div", {
82
86
  class: l([e(t)("content")])
83
87
  }, [
84
- (v = o.value) != null && v.status && ["uploading"].includes(o.value.status) ? (c(), g("div", {
88
+ (v = o.value) != null && v.status && ["uploading"].includes(o.value.status) ? (m(), g("div", {
85
89
  key: 0,
86
90
  class: l([e(t)("content-file"), e(t)("content-ing")])
87
91
  }, [
88
92
  s("div", {
89
93
  class: l([e(t)("content-file-icon")])
90
94
  }, [
91
- n(C)
95
+ n(b)
92
96
  ], 2),
93
97
  s("div", {
94
98
  class: l([e(t)("content-file-name"), e(t)("content-ing-name")])
95
99
  }, [
96
- n(e(N), {
100
+ n(e(I), {
97
101
  ellipsis: { rows: 2 },
98
102
  tooltip: o.value.error
99
103
  }, {
@@ -102,33 +106,33 @@ const ke = /* @__PURE__ */ Q({
102
106
  ]),
103
107
  _: 1
104
108
  }, 8, ["tooltip"]),
105
- n(e(ee), {
109
+ n(e(le), {
106
110
  percent: o.value.percent || 0,
107
111
  size: 4,
108
- showInfo: !1,
109
- trailColor: e(x) === "admin" ? "#D9D9D9" : "#DEE4ED",
110
- strokeColor: e(x) === "admin" ? "#34B77C" : "#0070FF"
111
- }, null, 8, ["percent", "trailColor", "strokeColor"])
112
+ "show-info": !1,
113
+ "trail-color": e(S) === "admin" ? "#D9D9D9" : "#DEE4ED",
114
+ "stroke-color": e(S) === "admin" ? "#34B77C" : "#0070FF"
115
+ }, null, 8, ["percent", "trail-color", "stroke-color"])
112
116
  ], 2),
113
117
  s("div", {
114
118
  class: l([e(t)("content-file-delete")]),
115
- onClick: a[0] || (a[0] = (r) => e(I)(m.value))
119
+ onClick: i[0] || (i[0] = (r) => e(x)(c.value))
116
120
  }, [
117
- n(L)
121
+ n(F)
118
122
  ], 2)
119
- ], 2)) : (F = o.value) != null && F.status && ["error"].includes(o.value.status) ? (c(), g("div", {
123
+ ], 2)) : (L = o.value) != null && L.status && ["error"].includes(o.value.status) ? (m(), g("div", {
120
124
  key: 1,
121
125
  class: l([e(t)("content-file"), e(t)("content-error")])
122
126
  }, [
123
127
  s("div", {
124
128
  class: l([e(t)("content-file-icon")])
125
129
  }, [
126
- n(C)
130
+ n(b)
127
131
  ], 2),
128
132
  s("div", {
129
133
  class: l([e(t)("content-file-name"), e(t)("content-error-name")])
130
134
  }, [
131
- n(e(B), null, {
135
+ n(e(q), null, {
132
136
  title: u(() => {
133
137
  var r;
134
138
  return [
@@ -136,7 +140,7 @@ const ke = /* @__PURE__ */ Q({
136
140
  ];
137
141
  }),
138
142
  default: u(() => [
139
- n(e(N), {
143
+ n(e(I), {
140
144
  ellipsis: { rows: 2 },
141
145
  tooltip: o.value.error
142
146
  }, {
@@ -151,23 +155,23 @@ const ke = /* @__PURE__ */ Q({
151
155
  ], 2),
152
156
  s("div", {
153
157
  class: l([e(t)("content-file-delete")]),
154
- onClick: a[1] || (a[1] = (r) => e(I)(m.value))
158
+ onClick: i[1] || (i[1] = (r) => e(x)(c.value))
155
159
  }, [
156
- n(L)
160
+ n(F)
157
161
  ], 2)
158
- ], 2)) : o.value && ((w = o.value) == null ? void 0 : w.status) === void 0 || (A = o.value) != null && A.status && ["success", "done"].includes(o.value.status) ? (c(), g("div", {
162
+ ], 2)) : o.value && ((w = o.value) == null ? void 0 : w.status) === void 0 || (A = o.value) != null && A.status && ["success", "done"].includes(o.value.status) ? (m(), g("div", {
159
163
  key: 2,
160
164
  class: l([e(t)("content-file"), e(t)("content-done")])
161
165
  }, [
162
166
  s("div", {
163
167
  class: l([e(t)("content-file-icon")])
164
168
  }, [
165
- n(C)
169
+ n(b)
166
170
  ], 2),
167
171
  s("div", {
168
172
  class: l([e(t)("content-file-name"), e(t)("content-done-name")])
169
173
  }, [
170
- n(e(B), null, {
174
+ n(e(q), null, {
171
175
  title: u(() => {
172
176
  var r;
173
177
  return [
@@ -175,7 +179,7 @@ const ke = /* @__PURE__ */ Q({
175
179
  ];
176
180
  }),
177
181
  default: u(() => [
178
- n(e(N), {
182
+ n(e(I), {
179
183
  ellipsis: { rows: 2 },
180
184
  tooltip: o.value.error
181
185
  }, {
@@ -190,28 +194,28 @@ const ke = /* @__PURE__ */ Q({
190
194
  ], 2),
191
195
  s("div", {
192
196
  class: l([e(t)("content-file-delete")]),
193
- onClick: a[2] || (a[2] = (r) => e(I)(m.value))
197
+ onClick: i[2] || (i[2] = (r) => e(x)(c.value))
194
198
  }, [
195
- n(L)
199
+ n(F)
196
200
  ], 2)
197
- ], 2)) : (c(), g("div", {
201
+ ], 2)) : (m(), g("div", {
198
202
  key: 3,
199
203
  class: l([e(t)("content-empty")])
200
204
  }, [
201
205
  s("div", {
202
206
  class: l([e(t)("content-empty-icon")])
203
207
  }, [
204
- n(C)
208
+ n(b)
205
209
  ], 2),
206
210
  s("div", {
207
211
  class: l([e(t)("content-empty-title")])
208
212
  }, [
209
- (c(), k(S($(q, [e(M)]))))
213
+ (m(), k(E(P($, [e(_)]))))
210
214
  ], 2),
211
215
  s("div", {
212
216
  class: l([e(t)("content-empty-sub-title")])
213
217
  }, [
214
- (c(), k(S($(q, [e(h)]))))
218
+ (m(), k(E(P($, [e(h)]))))
215
219
  ], 2)
216
220
  ], 2))
217
221
  ], 2)
@@ -219,9 +223,9 @@ const ke = /* @__PURE__ */ Q({
219
223
  })
220
224
  ]),
221
225
  _: 3
222
- }, 16, ["disabled", "file-list", "class", "beforeUpload", "customRequest"]));
226
+ }, 16, ["file-list", "disabled", "class", "before-upload", "custom-request"]));
223
227
  }
224
228
  });
225
229
  export {
226
- ke as default
230
+ Ie as default
227
231
  };
@@ -1,12 +1,12 @@
1
- import { computed as l } from "vue";
1
+ import { computed as m } from "vue";
2
2
  import { getAcceptText as d } from "../utils/accept.mjs";
3
3
  import "../../../config-provider/index.mjs";
4
- import { uploadBeforeUpload as f, uploadCustomRequest as U } from "../utils/upload.mjs";
5
- import { useLocale as o } from "../../../config-provider/hooks/use-locale.mjs";
4
+ import { uploadBeforeUpload as o, uploadCustomRequest as f } from "../utils/upload.mjs";
5
+ import { useLocale as U } from "../../../config-provider/hooks/use-locale.mjs";
6
6
  function z(e) {
7
- const { t: c } = o(), m = l(
7
+ const { t: c } = U(), l = m(
8
8
  () => e.title || c("ap.apUpload.clickOrDragUpload")
9
- ), i = l(
9
+ ), i = m(
10
10
  () => e.subTitle || `${c("ap.apUpload.supportExtension")}:${d(e.accept)},${c(
11
11
  "ap.apUpload.maxWarnUploadFileSize",
12
12
  {
@@ -16,11 +16,11 @@ function z(e) {
16
16
  );
17
17
  function n(t, a) {
18
18
  var u;
19
- return e != null && e.beforeUpload ? (u = e == null ? void 0 : e.beforeUpload) == null ? void 0 : u.call(e, t, a) : f(t, a, e);
19
+ return o(t, a, e) && (((u = e == null ? void 0 : e.beforeUpload) == null ? void 0 : u.call(e, t, a)) ?? !0);
20
20
  }
21
- return { title: m, subTitle: i, beforeUpload: n, customRequest: (t) => {
21
+ return { title: l, subTitle: i, beforeUpload: n, customRequest: (t) => {
22
22
  var a, u;
23
- e != null && e.customRequest ? (a = e == null ? void 0 : e.customRequest) == null || a.call(e, t) : (u = U) == null || u(t, e);
23
+ e != null && e.customRequest ? (a = e == null ? void 0 : e.customRequest) == null || a.call(e, t) : (u = f) == null || u(t, e);
24
24
  } };
25
25
  }
26
26
  export {
@@ -9,7 +9,7 @@ const r = {}, s = {
9
9
  };
10
10
  function p(a, t) {
11
11
  return o(), i("svg", s, t[0] || (t[0] = [
12
- e('<defs><clipPath id="master_svg0_693_19001"><rect x="0" y="0" width="56" height="56" rx="7"></rect></clipPath><linearGradient x1="0.5" y1="0" x2="0.5" y2="0.7987817525863647" id="master_svg1_693_19025"><stop offset="0%" stop-color="#AED1FF" stop-opacity="1"></stop><stop offset="100%" stop-color="#74B1FF" stop-opacity="1"></stop></linearGradient><linearGradient x1="0.5" y1="0" x2="0.5" y2="1" id="master_svg2_693_19014"><stop offset="0.7142857182770967%" stop-color="#DBEBFF" stop-opacity="1"></stop><stop offset="100%" stop-color="#98C5FF" stop-opacity="1"></stop></linearGradient></defs><g clip-path="url(#master_svg0_693_19001)"><g><g><path d="M49.4644,10.22729L35.1706,10.22729C34.2282,10.22729,33.316,9.89456,32.595,9.287759999999999L29.1746,6.4093C28.0931,5.499102,26.7249,5,25.3113,5L5.5,5C3.29086,5,1.5,6.79086,1.5,9L1.5,45L54.4995,45L54.5,15.2852C54.5,12.49165,52.2455,10.22729,49.4644,10.22729Z" fill="url(#master_svg1_693_19025)" fill-opacity="1"></path></g><g><path d="M10.5,13L45.5,13C46.6046,13,47.5,13.895431,47.5,15L47.5,35.9999L8.5,36L8.5,15C8.5,13.895431,9.395431,13,10.5,13" fill="#FFFFFF" fill-opacity="0.30000001192092896"></path></g><g><path d="M8.5,17L47.5,17C48.6046,17,49.5,17.895431,49.5,19L49.5,41.9998L6.5,42L6.5,19C6.5,17.895431,7.395431,17,8.5,17" fill="#F9FCFF" fill-opacity="1"></path></g><g><rect x="14.5" y="21" width="15" height="2" rx="1" fill="#8DBFFF" fill-opacity="0.30000001192092896"></rect></g><g><rect x="14.5" y="27" width="28" height="2" rx="1" fill="#8DBFFF" fill-opacity="0.6000000238418579"></rect></g><g><path d="M1.5,37L1.5,48C1.5,50.2091,3.29086,52,5.5,52L50.5,52C52.7091,52,54.5,50.2091,54.5,48L54.5,37C54.5,35.34315,53.1569,34,51.5,34L4.5,34C2.84315,34,1.5,35.34315,1.5,37Z" fill="url(#master_svg2_693_19014)" fill-opacity="1"></path></g></g></g>', 2)
12
+ e('<defs><clipPath id="master_svg0_693_19001"><rect x="0" y="0" width="56" height="56" rx="7"></rect></clipPath><linearGradient id="master_svg1_693_19025" x1="0.5" y1="0" x2="0.5" y2="0.7987817525863647"><stop offset="0%" stop-color="#AED1FF" stop-opacity="1"></stop><stop offset="100%" stop-color="#74B1FF" stop-opacity="1"></stop></linearGradient><linearGradient id="master_svg2_693_19014" x1="0.5" y1="0" x2="0.5" y2="1"><stop offset="0.7142857182770967%" stop-color="#DBEBFF" stop-opacity="1"></stop><stop offset="100%" stop-color="#98C5FF" stop-opacity="1"></stop></linearGradient></defs><g clip-path="url(#master_svg0_693_19001)"><g><g><path d="M49.4644,10.22729L35.1706,10.22729C34.2282,10.22729,33.316,9.89456,32.595,9.287759999999999L29.1746,6.4093C28.0931,5.499102,26.7249,5,25.3113,5L5.5,5C3.29086,5,1.5,6.79086,1.5,9L1.5,45L54.4995,45L54.5,15.2852C54.5,12.49165,52.2455,10.22729,49.4644,10.22729Z" fill="url(#master_svg1_693_19025)" fill-opacity="1"></path></g><g><path d="M10.5,13L45.5,13C46.6046,13,47.5,13.895431,47.5,15L47.5,35.9999L8.5,36L8.5,15C8.5,13.895431,9.395431,13,10.5,13" fill="#FFFFFF" fill-opacity="0.30000001192092896"></path></g><g><path d="M8.5,17L47.5,17C48.6046,17,49.5,17.895431,49.5,19L49.5,41.9998L6.5,42L6.5,19C6.5,17.895431,7.395431,17,8.5,17" fill="#F9FCFF" fill-opacity="1"></path></g><g><rect x="14.5" y="21" width="15" height="2" rx="1" fill="#8DBFFF" fill-opacity="0.30000001192092896"></rect></g><g><rect x="14.5" y="27" width="28" height="2" rx="1" fill="#8DBFFF" fill-opacity="0.6000000238418579"></rect></g><g><path d="M1.5,37L1.5,48C1.5,50.2091,3.29086,52,5.5,52L50.5,52C52.7091,52,54.5,50.2091,54.5,48L54.5,37C54.5,35.34315,53.1569,34,51.5,34L4.5,34C2.84315,34,1.5,35.34315,1.5,37Z" fill="url(#master_svg2_693_19014)" fill-opacity="1"></path></g></g></g>', 2)
13
13
  ]));
14
14
  }
15
15
  const g = /* @__PURE__ */ l(r, [["render", p]]);
@@ -21,6 +21,8 @@ export type ApUploadBaseProps<T = any> = {
21
21
  accept?: string;
22
22
  beforeUpload?: (file: ApUploadFile<T>, fileList: ApUploadFile<T>[]) => boolean | Promise<boolean>;
23
23
  customRequest?: ApUploadCustomRequest;
24
+ maxSizeErrorMsg?: string;
25
+ acceptErrorMsg?: string;
24
26
  };
25
27
  export type ApUploadSingleProps<T = any> = ApUploadBaseProps<T> & {
26
28
  title?: VNodeChild;
@@ -1,5 +1,5 @@
1
1
  import { ApUploadFile } from '../interface';
2
- export declare function clearSingleFile(file: ApUploadFile, fileList: ApUploadFile[], props?: {
2
+ export declare function clearSingleFile(file?: ApUploadFile | undefined, fileList?: ApUploadFile[], props?: {
3
3
  maxCount?: number;
4
4
  }): void;
5
- export declare function clearAllFile(fileList: ApUploadFile[]): void;
5
+ export declare function clearAllFile(fileList?: ApUploadFile[]): void;
@@ -1,16 +1,16 @@
1
- function e(t, n, u) {
2
- var c;
3
- t.status === "uploading" && ((c = t.ossDestroy) == null || c.call(t));
4
- const a = n.findIndex((d) => d.uid === t.uid);
5
- a > -1 && (n.splice(a, 1), u != null && u.maxCount && n.length >= u.maxCount && n.splice(u.maxCount));
1
+ function x(n, u, a) {
2
+ var d;
3
+ (n == null ? void 0 : n.status) === "uploading" && ((d = n == null ? void 0 : n.ossDestroy) == null || d.call(n));
4
+ const c = u == null ? void 0 : u.findIndex((o) => o.uid === (n == null ? void 0 : n.uid));
5
+ c !== void 0 && c > -1 && (u == null || u.splice(c, 1), a != null && a.maxCount && u && (u == null ? void 0 : u.length) >= a.maxCount && (u == null || u.splice(a.maxCount)));
6
6
  }
7
- function o(t) {
8
- t.forEach((n) => {
9
- var u;
10
- n.status === "uploading" && ((u = n.ossDestroy) == null || u.call(n));
11
- }), t.splice(0);
7
+ function g(n) {
8
+ n == null || n.forEach((u) => {
9
+ var a;
10
+ u.status === "uploading" && ((a = u.ossDestroy) == null || a.call(u));
11
+ }), n == null || n.splice(0);
12
12
  }
13
13
  export {
14
- o as clearAllFile,
15
- e as clearSingleFile
14
+ g as clearAllFile,
15
+ x as clearSingleFile
16
16
  };
@@ -6,5 +6,8 @@ export declare function uploadBeforeUpload(file: ApUploadFile, fileList: ApUploa
6
6
  maxSize?: number;
7
7
  maxCount?: number;
8
8
  accept?: string;
9
+ maxCountErrorMsg?: string;
10
+ maxSizeErrorMsg?: string;
11
+ acceptErrorMsg?: string;
9
12
  }): boolean;
10
13
  export declare const uploadCustomRequest: ApUploadCustomRequest;
@@ -1,52 +1,52 @@
1
- import { message as r } from "@aplus-frontend/antdv";
2
- import { fileMatchesAccept as g } from "./accept.mjs";
3
- import { getOssInstance as U } from "../hook/useOss.mjs";
1
+ import { message as g } from "@aplus-frontend/antdv";
2
+ import { fileMatchesAccept as U } from "./accept.mjs";
3
+ import { getOssInstance as C } from "../hook/useOss.mjs";
4
4
  let u;
5
- function w(e) {
5
+ function S(e) {
6
6
  u = e;
7
7
  }
8
8
  function x(e, n, a) {
9
9
  e.status = n, e.error = a;
10
10
  }
11
- function z(e, n, a) {
11
+ function w(e, n, a) {
12
12
  if (a != null && a.maxCount && a.maxCount > 1 && n.length >= a.maxCount) {
13
- const t = u("ap.apUpload.maxUploadPicture", {
13
+ const t = (a == null ? void 0 : a.maxCountErrorMsg) || u("ap.apUpload.maxUploadFiles", {
14
14
  maxCount: a.maxCount
15
15
  });
16
- return r.warning(t), x(e, "error", t), !1;
16
+ return g.warning(t), x(e, "error", t), !1;
17
17
  }
18
18
  if (a != null && a.maxSize && ((e == null ? void 0 : e.size) || 0) > (a == null ? void 0 : a.maxSize) * 1024 * 1024) {
19
- const t = u("ap.apUpload.maxUploadFileSize", {
19
+ const t = (a == null ? void 0 : a.maxSizeErrorMsg) || u("ap.apUpload.maxUploadFileSize", {
20
20
  maxSize: a == null ? void 0 : a.maxSize
21
21
  });
22
- return r.warning(t), x(e, "error", t), !1;
22
+ return g.warning(t), x(e, "error", t), !1;
23
23
  }
24
- if (!g(e, a.accept)) {
25
- const t = u("ap.apUpload.fileFormatNotSupported");
26
- return r.warning(t), x(e, "error", t), !1;
24
+ if (!U(e, a.accept)) {
25
+ const t = (a == null ? void 0 : a.acceptErrorMsg) || u("ap.apUpload.fileFormatNotSupported");
26
+ return g.warning(t), x(e, "error", t), !1;
27
27
  }
28
28
  return !0;
29
29
  }
30
- const S = async (e, n) => {
31
- const { file: a, onError: t, onProgress: i, onSuccess: d } = e;
30
+ const h = async (e, n) => {
31
+ const { file: a, onError: t, onProgress: i, onSuccess: l } = e;
32
32
  try {
33
- const c = await U(), m = await (c == null ? void 0 : c.put({
33
+ const c = await C(), m = await (c == null ? void 0 : c.put({
34
34
  dirName: n == null ? void 0 : n.dirName,
35
35
  fileName: a == null ? void 0 : a.name,
36
36
  data: a,
37
- progressCallBack: (l) => {
37
+ progressCallBack: (d) => {
38
38
  i == null || i({
39
- percent: l
39
+ percent: d
40
40
  });
41
41
  }
42
42
  }));
43
43
  if (m.status === 204)
44
44
  return;
45
45
  if (m.status === 200) {
46
- const { saveUrl: l } = m;
47
- d == null || d({
46
+ const { saveUrl: d } = m;
47
+ l == null || l({
48
48
  fileName: a == null ? void 0 : a.name,
49
- path: l
49
+ path: d
50
50
  });
51
51
  } else
52
52
  t == null || t((m == null ? void 0 : m.message) || u("ap.apUpload.networkAnomaly"));
@@ -56,7 +56,7 @@ const S = async (e, n) => {
56
56
  };
57
57
  export {
58
58
  x as changeFileStatus,
59
- w as injectUtilUpload,
60
- z as uploadBeforeUpload,
61
- S as uploadCustomRequest
59
+ S as injectUtilUpload,
60
+ w as uploadBeforeUpload,
61
+ h as uploadCustomRequest
62
62
  };
@@ -150,12 +150,11 @@ const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ O({
150
150
  style: z(e.style),
151
151
  options: U.value,
152
152
  value: k.value,
153
- "onUpdate:value": j,
154
153
  "allow-clear": !1,
155
- "dropdown-match-select-width": !1
154
+ "dropdown-match-select-width": !1,
155
+ "onUpdate:value": j
156
156
  }, null, 8, ["style", "options", "value"])) : K("", !0),
157
157
  s(n(J), M(
158
- { style: e.inputStyle },
159
158
  n(D)(l, [
160
159
  "style",
161
160
  "value",
@@ -167,10 +166,11 @@ const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ O({
167
166
  {
168
167
  ref_key: "inputRef",
169
168
  ref: d,
169
+ style: e.inputStyle,
170
170
  value: w.value,
171
+ placeholder: R.value,
171
172
  onInput: E,
172
- onBlur: L,
173
- placeholder: R.value
173
+ onBlur: L
174
174
  }
175
175
  ), {
176
176
  suffix: A(() => [
@@ -1,5 +1,5 @@
1
- import { defineComponent as V, ref as y, openBlock as N, createElementBlock as k, normalizeClass as l, unref as e, createVNode as p, withCtx as i, createElementVNode as A } from "vue";
2
- import { Popover as w, Textarea as L } from "@aplus-frontend/antdv";
1
+ import { defineComponent as V, ref as y, openBlock as k, createElementBlock as A, normalizeClass as l, unref as e, createVNode as p, withCtx as i, createElementVNode as w } from "vue";
2
+ import { Popover as L, Textarea as N } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
4
  import { IconApAdLineScreen as P } from "@aplus-frontend/icon";
5
5
  import "../../../hooks/index.mjs";
@@ -16,8 +16,8 @@ const j = /* @__PURE__ */ V({
16
16
  },
17
17
  emits: ["update:value"],
18
18
  setup(m, { emit: f }) {
19
- const n = m, d = f, { value: v, updateValue: g } = z(n, d), a = y(), h = (t) => n._parent || t, { t: C } = B();
20
- function _(t) {
19
+ const n = m, d = f, { value: v, updateValue: g } = z(n, d), a = y(), h = (t) => n._parent || t, { t: _ } = B();
20
+ function C(t) {
21
21
  var u;
22
22
  const o = t.target.value || "", r = o.replace(/[\n,]+/g, `
23
23
  `);
@@ -32,30 +32,30 @@ const j = /* @__PURE__ */ V({
32
32
  t || (o = n.onClose) == null || o.call(n);
33
33
  }
34
34
  const { b: c, e: b, em: I } = E("batch-input-group-popover-input");
35
- return (t, o) => (N(), k("div", {
35
+ return (t, o) => (k(), A("div", {
36
36
  class: l(e(c)())
37
37
  }, [
38
- p(e(w), {
39
- overlayClassName: e(b)("popover"),
38
+ p(e(L), {
39
+ "overlay-class-name": e(b)("popover"),
40
40
  "get-popup-container": h,
41
41
  trigger: "click",
42
42
  placement: "bottomLeft",
43
43
  onOpenChange: x
44
44
  }, {
45
45
  content: i(() => [
46
- A("div", {
46
+ w("div", {
47
47
  class: l(e(I)("popover", "content"))
48
48
  }, [
49
- p(e(L), {
50
- placeholder: e(C)("ap.batchInputGroup.popoverInputPlaceholder"),
49
+ p(e(N), {
50
+ ref_key: "textAreaRef",
51
+ ref: a,
52
+ placeholder: e(_)("ap.batchInputGroup.popoverInputPlaceholder"),
51
53
  bordered: !1,
52
54
  rows: 10,
53
55
  value: e(v),
54
- onInput: _,
55
- ref_key: "textAreaRef",
56
- ref: a,
57
56
  "allow-clear": !1,
58
- "auto-size": !1
57
+ "auto-size": !1,
58
+ onInput: C
59
59
  }, null, 8, ["placeholder", "value"])
60
60
  ], 2)
61
61
  ]),
@@ -65,7 +65,7 @@ const j = /* @__PURE__ */ V({
65
65
  }, null, 8, ["class"])
66
66
  ]),
67
67
  _: 1
68
- }, 8, ["overlayClassName"])
68
+ }, 8, ["overlay-class-name"])
69
69
  ], 2));
70
70
  }
71
71
  });
@@ -195,11 +195,11 @@ const ce = /* @__PURE__ */ z({
195
195
  label: e.label
196
196
  }), {
197
197
  default: g(() => [H(n(Q), x(n(w)(l, ["name", "maxLength", "onChange"]), {
198
+ ref_key: "tableRef",
199
+ ref: i,
198
200
  class: n(L)(),
199
201
  columns: n(V),
200
- "data-source": u.value,
201
- ref_key: "tableRef",
202
- ref: i
202
+ "data-source": u.value
203
203
  }), W({
204
204
  _: 2
205
205
  }, [$(n(w)(D, ["headerCell"]), (r, a) => ({
@@ -210,22 +210,22 @@ const Ce = /* @__PURE__ */ W({
210
210
  clear: U,
211
211
  setTableData: K
212
212
  }), (e, t) => (q(), J(o(p), {
213
+ ref_key: "formRef",
214
+ ref: s,
213
215
  "initial-values": {
214
216
  [n.name]: o(u)
215
- },
216
- ref_key: "formRef",
217
- ref: s
217
+ }
218
218
  }, {
219
219
  default: c(() => [b(o(p).FormItem, {
220
220
  name: e.name,
221
221
  "no-style": ""
222
222
  }, {
223
223
  default: c(() => [b(o(ae), Q(o(F)(n, ["name", "value", "onUpdate:value", "maxLength", "onChange"]), {
224
+ ref_key: "tableRef",
225
+ ref: v,
224
226
  class: o(L)(),
225
227
  columns: o(k),
226
- "data-source": o(u),
227
- ref_key: "tableRef",
228
- ref: v
228
+ "data-source": o(u)
229
229
  }), X({
230
230
  _: 2
231
231
  }, [Y(o(F)(T, ["headerCell"]), (l, a) => ({