@aplus-frontend/ui 7.12.3 → 7.12.4
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.
- package/es/src/ag-grid/index.vue.mjs +33 -31
- package/es/src/business/ap-upload/apUpload.vue.d.ts +19 -0
- package/es/src/business/ap-upload/apUpload.vue.mjs +38 -30
- package/es/src/business/ap-upload/apUploadTypes.d.ts +9 -0
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +89 -89
- package/es/src/business/batch-input-group/index.vue.mjs +67 -72
- package/es/src/business/batch-input-group/interface.d.ts +3 -0
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +65 -43
- package/es/src/business/batch-input-group/style/index.mjs +9 -9
- package/es/src/check-card/style/index.mjs +1 -1
- package/es/src/config-provider/config-provider.mjs +33 -32
- package/es/src/config-provider/hooks/use-global-config.mjs +40 -37
- package/es/src/utils/cssinjs/utils.d.ts +1 -0
- package/es/src/utils/cssinjs/utils.mjs +9 -9
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +19 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +9 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +3 -0
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -3
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/utils/cssinjs/utils.d.ts +1 -0
- package/lib/src/utils/cssinjs/utils.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as fo, useSlots as go, ref as M, toRef as F, unref as t, computed as n, nextTick as
|
|
1
|
+
import { defineComponent as fo, useSlots as go, ref as M, toRef as F, unref as t, computed as n, nextTick as N, watch as G, createElementBlock as L, openBlock as C, normalizeStyle as O, normalizeClass as g, createCommentVNode as se, createElementVNode as B, createVNode as ie, mergeProps as W, createSlots as wo, withCtx as ue, Fragment as So, renderList as ho, createBlock as H, resolveDynamicComponent as Co, renderSlot as de, withDirectives as yo, vShow as Ro } from "vue";
|
|
2
2
|
import { AG_GRID_LOCALE_EN as vo, AG_GRID_LOCALE_CN as bo } from "@ag-grid-community/locale";
|
|
3
3
|
import { Spin as Mo, Pagination as Fo } from "@aplus-frontend/antdv";
|
|
4
4
|
import { useToken as Bo } from "@aplus-frontend/antdv/es/theme/internal";
|
|
5
5
|
import { ModuleRegistry as ko, ValidationModule as xo, ColumnAutoSizeModule as Io, PinnedRowModule as Ao, RowAutoHeightModule as No, RowStyleModule as To, CellSpanModule as Do, CellStyleModule as Eo, TooltipModule as Po, RowSelectionModule as Ko, LocaleModule as Vo, ValueCacheModule as zo, GridStateModule as Go, ColumnApiModule as Lo, RowApiModule as Oo, CellApiModule as Wo, RenderApiModule as Ho, EventApiModule as Uo, ScrollApiModule as _o, ClientSideRowModelApiModule as jo, ClientSideRowModelModule as $o } from "ag-grid-community";
|
|
6
6
|
import { AgGridVue as qo } from "ag-grid-vue3";
|
|
7
|
-
import { isUndefined as k, isFunction as
|
|
7
|
+
import { isUndefined as k, isFunction as T } from "lodash-unified";
|
|
8
8
|
import { DEFAULT_ROW_SELECTION_CONFIG as ce, sizeReverseMap as Jo, sizeMap as Qo } from "../ap-grid/constants.mjs";
|
|
9
9
|
import { useProvideApTable as Xo } from "../ap-table/context.mjs";
|
|
10
10
|
import { useTablePaging as Yo } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
@@ -181,10 +181,10 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
181
181
|
return;
|
|
182
182
|
const r = e.getColumnState()?.map((l) => ({ ...l, sort: null }));
|
|
183
183
|
e.applyColumnState({ state: r });
|
|
184
|
-
},
|
|
184
|
+
}, D = M(!0), Ne = n(() => wt(o.manual) ? o.manual : et(U.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
|
|
185
185
|
formRef: S,
|
|
186
|
-
submit:
|
|
187
|
-
reset:
|
|
186
|
+
submit: E,
|
|
187
|
+
reset: P,
|
|
188
188
|
data: m,
|
|
189
189
|
tableProps: J,
|
|
190
190
|
handleTableChangeOptional: Q,
|
|
@@ -196,7 +196,7 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
196
196
|
getLastParams: Pe
|
|
197
197
|
} = Yo({
|
|
198
198
|
async request(e) {
|
|
199
|
-
if (R = !1, h.value && !h.value.preserveSelectedRowKeys && k(o.dataSource) && !
|
|
199
|
+
if (R = !1, h.value && !h.value.preserveSelectedRowKeys && k(o.dataSource) && !D.value && z(), D.value && (D.value = !1), !k(o.dataSource)) {
|
|
200
200
|
const l = e.pageSize * (e.current - 1);
|
|
201
201
|
return {
|
|
202
202
|
data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(l, l + e.pageSize)) || [],
|
|
@@ -230,7 +230,7 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
230
230
|
), {
|
|
231
231
|
select: ze,
|
|
232
232
|
unSelect: Ge,
|
|
233
|
-
selectedRows:
|
|
233
|
+
selectedRows: K,
|
|
234
234
|
selectedRowKeys: Le,
|
|
235
235
|
clearAll: Oe,
|
|
236
236
|
selectMultiByKeys: We,
|
|
@@ -254,25 +254,25 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
254
254
|
hideDisabledCheckboxes: e.hideDisabled ?? !1
|
|
255
255
|
};
|
|
256
256
|
});
|
|
257
|
-
function
|
|
258
|
-
return
|
|
257
|
+
function V(e) {
|
|
258
|
+
return T(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
|
|
259
259
|
}
|
|
260
260
|
const A = ({
|
|
261
261
|
api: e = s.value
|
|
262
262
|
}) => {
|
|
263
263
|
if (o.onUpdate?.(), !h.value)
|
|
264
264
|
return;
|
|
265
|
-
const r =
|
|
265
|
+
const r = K.value || [];
|
|
266
266
|
R = !1;
|
|
267
267
|
const l = [];
|
|
268
268
|
e.forEachNode((i) => {
|
|
269
|
-
const v = i.data, u =
|
|
270
|
-
r.find((f) =>
|
|
269
|
+
const v = i.data, u = V(v), p = i.isSelected();
|
|
270
|
+
r.find((f) => V(f) === u) ? !p && l.push(i) : p && i.setSelected(!1);
|
|
271
271
|
}), e.setNodesSelected({ nodes: l, newValue: !0 }), setTimeout(() => {
|
|
272
272
|
R = !0;
|
|
273
273
|
}, 0);
|
|
274
274
|
}, $e = (e) => {
|
|
275
|
-
R && (e.node.isSelected() ? ze(e.data) : Ge(e.data),
|
|
275
|
+
R && (e.node.isSelected() ? ze(e.data) : Ge(e.data), T(h.value?.tooltip) && e.api.refreshCells({
|
|
276
276
|
rowNodes: [e.node],
|
|
277
277
|
// todo: 取消硬编码
|
|
278
278
|
columns: ["ag-Grid-SelectionColumn"],
|
|
@@ -280,11 +280,11 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
280
280
|
}));
|
|
281
281
|
}, qe = () => {
|
|
282
282
|
R = !0;
|
|
283
|
-
},
|
|
283
|
+
}, z = () => {
|
|
284
284
|
Oe(), s.value?.deselectAll();
|
|
285
285
|
};
|
|
286
286
|
function Je(e) {
|
|
287
|
-
We(e),
|
|
287
|
+
We(e), N(() => {
|
|
288
288
|
A({});
|
|
289
289
|
});
|
|
290
290
|
}
|
|
@@ -299,12 +299,12 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
299
299
|
} : {};
|
|
300
300
|
});
|
|
301
301
|
function Xe(e) {
|
|
302
|
-
He(e),
|
|
302
|
+
He(e), N(() => {
|
|
303
303
|
A({});
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
function Ye(e) {
|
|
307
|
-
Ue(e),
|
|
307
|
+
Ue(e), N(() => {
|
|
308
308
|
A({});
|
|
309
309
|
});
|
|
310
310
|
}
|
|
@@ -371,9 +371,9 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
371
371
|
dataSource: n(() => t(m).records),
|
|
372
372
|
getSearchFormValues: Z,
|
|
373
373
|
setSearchFormValues: ee,
|
|
374
|
-
submit:
|
|
374
|
+
submit: E,
|
|
375
375
|
submitWith: X,
|
|
376
|
-
reset:
|
|
376
|
+
reset: P,
|
|
377
377
|
refresh: Y,
|
|
378
378
|
getSearchFormSorterItems: oe,
|
|
379
379
|
setSearchFormSorterItems: te,
|
|
@@ -397,10 +397,10 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
397
397
|
};
|
|
398
398
|
function lo(e) {
|
|
399
399
|
const r = e.data;
|
|
400
|
-
return
|
|
400
|
+
return V(r);
|
|
401
401
|
}
|
|
402
402
|
function ao(e, r) {
|
|
403
|
-
(
|
|
403
|
+
(T(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, r);
|
|
404
404
|
}
|
|
405
405
|
function no(e, r) {
|
|
406
406
|
s.value?.ensureColumnVisible(e, r);
|
|
@@ -422,7 +422,7 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
422
422
|
j.value.getRowClass?.(e)
|
|
423
423
|
];
|
|
424
424
|
if (!e.node.rowPinned) {
|
|
425
|
-
const l =
|
|
425
|
+
const l = T(o.rowClassName) ? o.rowClassName(e.data, e.rowIndex) : o.rowClassName;
|
|
426
426
|
r.push(l);
|
|
427
427
|
}
|
|
428
428
|
return r.flat().filter(Boolean);
|
|
@@ -430,7 +430,9 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
430
430
|
return G(
|
|
431
431
|
() => o.dataSource,
|
|
432
432
|
(e) => {
|
|
433
|
-
|
|
433
|
+
N(() => {
|
|
434
|
+
Ee(e);
|
|
435
|
+
});
|
|
434
436
|
},
|
|
435
437
|
{ immediate: !0, deep: !0 }
|
|
436
438
|
), G(
|
|
@@ -444,18 +446,18 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
444
446
|
o.onLoadingChange?.(e);
|
|
445
447
|
}
|
|
446
448
|
), pe({
|
|
447
|
-
submit:
|
|
448
|
-
reset:
|
|
449
|
+
submit: E,
|
|
450
|
+
reset: P,
|
|
449
451
|
refresh: Y,
|
|
450
452
|
submitWith: X,
|
|
451
453
|
setSearchFormValues: ee,
|
|
452
454
|
getSearchFormValues: Z,
|
|
453
455
|
getShowColumns: () => t(w),
|
|
454
456
|
rowSelection: {
|
|
455
|
-
selectedRows: n(() =>
|
|
457
|
+
selectedRows: n(() => K.value),
|
|
456
458
|
setSelectedRowKeys: Je,
|
|
457
459
|
setSelectedRows: Xe,
|
|
458
|
-
clearAll:
|
|
460
|
+
clearAll: z,
|
|
459
461
|
unSelectRows: Ye
|
|
460
462
|
},
|
|
461
463
|
scrollToRow: ao,
|
|
@@ -483,8 +485,8 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
483
485
|
ref: S,
|
|
484
486
|
"custom-reset": "",
|
|
485
487
|
"submit-loading": t(J).loading,
|
|
486
|
-
onSubmit: t(
|
|
487
|
-
onReset: t(
|
|
488
|
+
onSubmit: t(E),
|
|
489
|
+
onReset: t(P)
|
|
488
490
|
}), wo({
|
|
489
491
|
default: ue(() => [
|
|
490
492
|
(C(!0), L(So, null, ho(t($), (l) => (C(), H(Co(l.renderNode), {
|
|
@@ -510,10 +512,10 @@ const Zt = /* @__PURE__ */ fo({
|
|
|
510
512
|
class: g(t(d)("header-wrapper"))
|
|
511
513
|
}, [
|
|
512
514
|
de(e.$slots, "title", {
|
|
513
|
-
selectedRows: t(
|
|
515
|
+
selectedRows: t(K),
|
|
514
516
|
selectedRowKeys: t(Le),
|
|
515
517
|
shownColumns: t(w),
|
|
516
|
-
clearAll:
|
|
518
|
+
clearAll: z
|
|
517
519
|
})
|
|
518
520
|
], 2),
|
|
519
521
|
B("div", {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UploadFile } from '@aplus-frontend/antdv';
|
|
1
2
|
import { PropType, VNode, DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
|
|
2
3
|
import { FileUploadType, BeforeUpload, CustomRequest, ApUploadSlots } from './apUploadTypes';
|
|
3
4
|
import { GetOssAccess } from './hooks/useOss';
|
|
@@ -93,6 +94,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
93
94
|
type: StringConstructor;
|
|
94
95
|
default: undefined;
|
|
95
96
|
};
|
|
97
|
+
showDownload: {
|
|
98
|
+
type: PropType<boolean | ((file: UploadFile) => boolean)>;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
showPreview: {
|
|
102
|
+
type: PropType<boolean | ((file: UploadFile) => boolean)>;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
96
105
|
}>, {
|
|
97
106
|
done: ComputedRef<boolean>;
|
|
98
107
|
clear: typeof clear;
|
|
@@ -180,6 +189,14 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
180
189
|
type: StringConstructor;
|
|
181
190
|
default: undefined;
|
|
182
191
|
};
|
|
192
|
+
showDownload: {
|
|
193
|
+
type: PropType<boolean | ((file: UploadFile) => boolean)>;
|
|
194
|
+
default: boolean;
|
|
195
|
+
};
|
|
196
|
+
showPreview: {
|
|
197
|
+
type: PropType<boolean | ((file: UploadFile) => boolean)>;
|
|
198
|
+
default: boolean;
|
|
199
|
+
};
|
|
183
200
|
}>> & Readonly<{
|
|
184
201
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
185
202
|
}>, {
|
|
@@ -205,6 +222,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
205
222
|
baseDirName: string;
|
|
206
223
|
maxCountErrorMsg: string;
|
|
207
224
|
showUploadErrorMsg: boolean;
|
|
225
|
+
showDownload: boolean | ((file: UploadFile) => boolean);
|
|
226
|
+
showPreview: boolean | ((file: UploadFile) => boolean);
|
|
208
227
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
209
228
|
uploadRef: unknown;
|
|
210
229
|
}, HTMLDivElement>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Form as
|
|
1
|
+
import { defineComponent as E, ref as d, computed as m, provide as t, createElementBlock as M, openBlock as c, normalizeClass as _, unref as r, createBlock as U, resolveDynamicComponent as O, mergeProps as j, createSlots as R, renderList as k, withCtx as z, renderSlot as A, normalizeProps as B, guardReactiveProps as D } from "vue";
|
|
2
|
+
import { Form as P } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import "./components/MultipleFile.vue.mjs";
|
|
5
5
|
import "./components/Picture.vue.mjs";
|
|
6
6
|
import "./components/SingleFile.vue.mjs";
|
|
7
|
-
import { injectLocaleToOss as
|
|
8
|
-
import
|
|
9
|
-
import { injectLocaleToAccept as
|
|
10
|
-
import { useLocale as
|
|
11
|
-
import { useNamespace as
|
|
7
|
+
import { injectLocaleToOss as $ } from "./hooks/useOss.mjs";
|
|
8
|
+
import T from "./style/index.mjs";
|
|
9
|
+
import { injectLocaleToAccept as I } from "./utils/accept.mjs";
|
|
10
|
+
import { useLocale as L } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import { useNamespace as q } from "../../config-provider/hooks/use-namespace.mjs";
|
|
12
12
|
import V from "./components/Picture.vue2.mjs";
|
|
13
13
|
import G from "./components/MultipleFile.vue2.mjs";
|
|
14
14
|
import H from "./components/SingleFile.vue2.mjs";
|
|
15
15
|
import { useGlobalConfig as J } from "../../config-provider/hooks/use-global-config.mjs";
|
|
16
|
-
const K = ["id"],
|
|
16
|
+
const K = ["id"], de = /* @__PURE__ */ E({
|
|
17
17
|
name: "AplusFileUpload",
|
|
18
18
|
__name: "apUpload",
|
|
19
19
|
props: {
|
|
@@ -96,55 +96,63 @@ const K = ["id"], me = /* @__PURE__ */ _({
|
|
|
96
96
|
bucket: {
|
|
97
97
|
type: String,
|
|
98
98
|
default: void 0
|
|
99
|
+
},
|
|
100
|
+
showDownload: {
|
|
101
|
+
type: [Boolean, Object],
|
|
102
|
+
default: !0
|
|
103
|
+
},
|
|
104
|
+
showPreview: {
|
|
105
|
+
type: [Boolean, Object],
|
|
106
|
+
default: !0
|
|
99
107
|
}
|
|
100
108
|
},
|
|
101
109
|
emits: ["update:value"],
|
|
102
110
|
setup(f, { expose: g, emit: v }) {
|
|
103
|
-
const { t: n, lang: y } =
|
|
104
|
-
|
|
105
|
-
const { b } =
|
|
111
|
+
const { t: n, lang: y } = L();
|
|
112
|
+
I(n), $(n, y);
|
|
113
|
+
const { b } = q("ap-upload"), C = T("ap-upload"), s = d(null), e = f, S = v, h = {
|
|
106
114
|
singleFile: H,
|
|
107
115
|
multipleFile: G,
|
|
108
116
|
picture: V
|
|
109
|
-
},
|
|
117
|
+
}, i = P.useInjectFormItemContext(), w = m({
|
|
110
118
|
get() {
|
|
111
119
|
return e.value;
|
|
112
120
|
},
|
|
113
121
|
set(o) {
|
|
114
|
-
S("update:value", o),
|
|
122
|
+
S("update:value", o), i?.onFieldChange(), e.onChange?.(o);
|
|
115
123
|
}
|
|
116
124
|
}), a = J("apUpload");
|
|
117
|
-
t("value",
|
|
125
|
+
t("value", w), t("dirName", e.dirName ?? a.value?.dirName), t(
|
|
118
126
|
"needName",
|
|
119
127
|
e.needName ?? a.value?.needName ?? !1
|
|
120
128
|
), t("accept", e.accept ?? a.value?.accept ?? ""), t("maxSize", e.maxSize), t("title", e.title), t("subTitle", e.subTitle), t("maxCount", e.maxCount), t("beforeUpload", e.beforeUpload), t("customRequest", e.customRequest), t("baseDirName", e.baseDirName ?? "Frontend-Upload"), t(
|
|
121
129
|
"getOssAccess",
|
|
122
130
|
e.getOssAccess ?? a.value?.getOssAccess
|
|
123
|
-
), t("maxSizeErrorMsg", e.maxSizeErrorMsg), t("maxCountErrorMsg", e.maxCountErrorMsg), t("acceptErrorMsg", e.acceptErrorMsg), t("onRemove", e.onRemove), t("showUploadErrorMsg", e.showUploadErrorMsg), t("bucket", e.bucket);
|
|
124
|
-
const
|
|
131
|
+
), t("maxSizeErrorMsg", e.maxSizeErrorMsg), t("maxCountErrorMsg", e.maxCountErrorMsg), t("acceptErrorMsg", e.acceptErrorMsg), t("onRemove", e.onRemove), t("showUploadErrorMsg", e.showUploadErrorMsg), t("bucket", e.bucket), t("showDownload", e.showDownload), t("showPreview", e.showPreview);
|
|
132
|
+
const x = m(() => l.value === 0), l = d(0);
|
|
125
133
|
t("uploadingCount", l);
|
|
126
|
-
function
|
|
134
|
+
function F() {
|
|
127
135
|
u(void 0);
|
|
128
136
|
}
|
|
129
137
|
function u(o) {
|
|
130
|
-
|
|
138
|
+
s?.value?.setValue?.(o);
|
|
131
139
|
}
|
|
132
140
|
return g({
|
|
133
|
-
done:
|
|
134
|
-
clear:
|
|
141
|
+
done: x,
|
|
142
|
+
clear: F,
|
|
135
143
|
setValue: u
|
|
136
|
-
}), (o, Q) => (c(),
|
|
137
|
-
id: r(
|
|
138
|
-
class:
|
|
144
|
+
}), (o, Q) => (c(), M("div", {
|
|
145
|
+
id: r(i)?.id.value,
|
|
146
|
+
class: _([r(b)(), r(C)])
|
|
139
147
|
}, [
|
|
140
|
-
(c(), O(
|
|
148
|
+
(c(), U(O(h[e.type]), j(o.$attrs, {
|
|
141
149
|
ref_key: "uploadRef",
|
|
142
|
-
ref:
|
|
143
|
-
}),
|
|
144
|
-
|
|
150
|
+
ref: s
|
|
151
|
+
}), R({ _: 2 }, [
|
|
152
|
+
k(Object.keys(o.$slots), (p) => ({
|
|
145
153
|
name: p,
|
|
146
|
-
fn:
|
|
147
|
-
|
|
154
|
+
fn: z((N) => [
|
|
155
|
+
A(o.$slots, p, B(D(N || {})))
|
|
148
156
|
])
|
|
149
157
|
}))
|
|
150
158
|
]), 1040))
|
|
@@ -152,5 +160,5 @@ const K = ["id"], me = /* @__PURE__ */ _({
|
|
|
152
160
|
}
|
|
153
161
|
});
|
|
154
162
|
export {
|
|
155
|
-
|
|
163
|
+
de as default
|
|
156
164
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UploadFile } from '@aplus-frontend/antdv';
|
|
1
2
|
import { ComputedRef, VNode } from 'vue';
|
|
2
3
|
export type FileUploadType = 'picture' | 'singleFile' | 'multipleFile';
|
|
3
4
|
/**
|
|
@@ -85,6 +86,14 @@ export type MultipleFileProps = FileUploadProps & {
|
|
|
85
86
|
* 限制上传数量
|
|
86
87
|
*/
|
|
87
88
|
maxCount?: number;
|
|
89
|
+
/**
|
|
90
|
+
* 是否开启下载
|
|
91
|
+
*/
|
|
92
|
+
showDownload?: boolean | ((file: UploadFile) => boolean);
|
|
93
|
+
/**
|
|
94
|
+
* 是否开启预览
|
|
95
|
+
*/
|
|
96
|
+
showPreview?: boolean | ((file: UploadFile) => boolean);
|
|
88
97
|
};
|
|
89
98
|
export type PictureProps = FileUploadProps & {
|
|
90
99
|
/**
|