@aplus-frontend/ui 0.2.11 → 0.2.12
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/index.mjs +41 -39
- package/es/src/ap-list/index.vue.d.ts +1 -0
- package/es/src/ap-list/index.vue.mjs +85 -79
- package/es/src/ap-list/interface.d.ts +7 -0
- package/es/src/ap-table/hooks/use-table-column-state.mjs +84 -75
- package/es/src/business/ap-image/ApImage.vue2.mjs +16 -14
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +30 -30
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +50 -0
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +227 -0
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue2.mjs +4 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/css.d.ts +0 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/css.js +1 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +0 -0
- package/es/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -0
- package/es/src/business/ap-upload-file/hook/useInjectContext.d.ts +4 -0
- package/es/src/business/ap-upload-file/hook/useInjectContext.mjs +9 -0
- package/es/src/business/ap-upload-file/hook/useOss.d.ts +8 -0
- package/es/src/business/ap-upload-file/hook/useOss.mjs +30 -0
- package/es/src/business/ap-upload-file/hook/useProps.d.ts +12 -0
- package/es/src/business/ap-upload-file/hook/useProps.mjs +28 -0
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +3 -0
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +27 -0
- package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +3 -0
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +18 -0
- package/es/src/business/ap-upload-file/index.d.ts +3 -0
- package/es/src/business/ap-upload-file/index.mjs +2 -0
- package/es/src/business/ap-upload-file/interface.d.ts +29 -0
- package/es/src/business/ap-upload-file/interface.mjs +1 -0
- package/es/src/business/ap-upload-file/utils/accept.d.ts +16 -0
- package/es/src/business/ap-upload-file/utils/accept.mjs +55 -0
- package/es/src/business/ap-upload-file/utils/fileList.d.ts +5 -0
- package/es/src/business/ap-upload-file/utils/fileList.mjs +16 -0
- package/es/src/business/ap-upload-file/utils/upload.d.ts +10 -0
- package/es/src/business/ap-upload-file/utils/upload.mjs +62 -0
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +43 -42
- package/es/src/config-provider/config-provider.d.ts +8 -0
- package/es/src/config-provider/css-var.d.ts +8 -0
- package/es/src/config-provider/css-var.mjs +25 -9
- package/es/src/config-provider/index.d.ts +48 -0
- package/es/src/index.mjs +33 -31
- package/es/src/path-map.mjs +2 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -0
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +7 -0
- package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +50 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue2.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/css.d.ts +0 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/css.js +1 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.d.ts +0 -0
- package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -0
- package/lib/src/business/ap-upload-file/hook/useInjectContext.d.ts +4 -0
- package/lib/src/business/ap-upload-file/hook/useInjectContext.js +1 -0
- package/lib/src/business/ap-upload-file/hook/useOss.d.ts +8 -0
- package/lib/src/business/ap-upload-file/hook/useOss.js +1 -0
- package/lib/src/business/ap-upload-file/hook/useProps.d.ts +12 -0
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -0
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-upload-file/icon/delete-icon.vue.js +1 -0
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +3 -0
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -0
- package/lib/src/business/ap-upload-file/index.d.ts +3 -0
- package/lib/src/business/ap-upload-file/index.js +1 -0
- package/lib/src/business/ap-upload-file/interface.d.ts +29 -0
- package/lib/src/business/ap-upload-file/interface.js +1 -0
- package/lib/src/business/ap-upload-file/utils/accept.d.ts +16 -0
- package/lib/src/business/ap-upload-file/utils/accept.js +1 -0
- package/lib/src/business/ap-upload-file/utils/fileList.d.ts +5 -0
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -0
- package/lib/src/business/ap-upload-file/utils/upload.d.ts +10 -0
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -0
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +8 -0
- package/lib/src/config-provider/css-var.d.ts +8 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +48 -0
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Translator } from '../../../config-provider';
|
|
2
|
+
import { ApUploadFile } from '../interface';
|
|
3
|
+
export declare function injectUtilAccept(tValue: Translator): void;
|
|
4
|
+
/**
|
|
5
|
+
* 校验文件是否满足指定的格式
|
|
6
|
+
* @param file
|
|
7
|
+
* @param accept
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
export declare function fileMatchesAccept(file: ApUploadFile, accept: string): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* 根据accept获取支持的后缀名
|
|
13
|
+
* @param accept
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function getAcceptText(accept: string): string;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import i from "mime";
|
|
2
|
+
let a;
|
|
3
|
+
function f(e) {
|
|
4
|
+
a = e;
|
|
5
|
+
}
|
|
6
|
+
function T(e, r) {
|
|
7
|
+
var p, o, c, u, l;
|
|
8
|
+
const t = r.split(",").map((n) => n.trim());
|
|
9
|
+
for (const n of t) {
|
|
10
|
+
if (n === "*")
|
|
11
|
+
return !0;
|
|
12
|
+
if (n.endsWith("/*")) {
|
|
13
|
+
const [s] = n.split("/"), [m] = ((p = e == null ? void 0 : e.type) == null ? void 0 : p.split("/")) || [];
|
|
14
|
+
if (s === m)
|
|
15
|
+
return !0;
|
|
16
|
+
} else if (/^\./.test(n)) {
|
|
17
|
+
if (e.type === i.getType(n))
|
|
18
|
+
return !0;
|
|
19
|
+
const s = (o = e.name) == null ? void 0 : o.lastIndexOf(".");
|
|
20
|
+
if (s > -1 && ((c = e.name) == null ? void 0 : c.slice(s)) === n)
|
|
21
|
+
return !0;
|
|
22
|
+
} else {
|
|
23
|
+
if (e.type === n)
|
|
24
|
+
return !0;
|
|
25
|
+
const s = (u = e.name) == null ? void 0 : u.lastIndexOf(".");
|
|
26
|
+
if (s > -1 && [...i.getAllExtensions(n) || []].map(
|
|
27
|
+
(d) => `.${d}`
|
|
28
|
+
).includes((l = e.name) == null ? void 0 : l.slice(s)))
|
|
29
|
+
return !0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
function x(e) {
|
|
35
|
+
const r = {
|
|
36
|
+
image: a("ap.apUpload.pictureType"),
|
|
37
|
+
video: a("ap.apUpload.videoType"),
|
|
38
|
+
audio: a("ap.apUpload.audioType"),
|
|
39
|
+
application: a("ap.apUpload.documentType"),
|
|
40
|
+
"*": a("ap.apUpload.allTypes")
|
|
41
|
+
};
|
|
42
|
+
return e.split(",").map((t) => t.trim()).map((t) => {
|
|
43
|
+
if (t === "*")
|
|
44
|
+
return r[t];
|
|
45
|
+
if (t.endsWith("/*")) {
|
|
46
|
+
const [p] = t.split("/");
|
|
47
|
+
return r[p] || p;
|
|
48
|
+
} else return /^\./.test(t) ? t : [...i.getAllExtensions(t) || []].map((p) => `.${p}`).join(",") || t;
|
|
49
|
+
}).join(",");
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
T as fileMatchesAccept,
|
|
53
|
+
x as getAcceptText,
|
|
54
|
+
f as injectUtilAccept
|
|
55
|
+
};
|
|
@@ -0,0 +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));
|
|
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);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
o as clearAllFile,
|
|
15
|
+
e as clearSingleFile
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApUploadCustomRequest, ApUploadFile } from '../interface';
|
|
2
|
+
import { Translator } from '../../../config-provider';
|
|
3
|
+
export declare function injectUtilUpload(tValue: Translator): void;
|
|
4
|
+
export declare function changeFileStatus(file: ApUploadFile, status: ApUploadFile['status'], errMsg: string): void;
|
|
5
|
+
export declare function uploadBeforeUpload(file: ApUploadFile, fileList: ApUploadFile[], props: {
|
|
6
|
+
maxSize?: number;
|
|
7
|
+
maxCount?: number;
|
|
8
|
+
accept?: string;
|
|
9
|
+
}): boolean;
|
|
10
|
+
export declare const uploadCustomRequest: ApUploadCustomRequest;
|
|
@@ -0,0 +1,62 @@
|
|
|
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";
|
|
4
|
+
let u;
|
|
5
|
+
function w(e) {
|
|
6
|
+
u = e;
|
|
7
|
+
}
|
|
8
|
+
function x(e, n, a) {
|
|
9
|
+
e.status = n, e.error = a;
|
|
10
|
+
}
|
|
11
|
+
function z(e, n, a) {
|
|
12
|
+
if (a != null && a.maxCount && a.maxCount > 1 && n.length >= a.maxCount) {
|
|
13
|
+
const t = u("ap.apUpload.maxUploadPicture", {
|
|
14
|
+
maxCount: a.maxCount
|
|
15
|
+
});
|
|
16
|
+
return r.warning(t), x(e, "error", t), !1;
|
|
17
|
+
}
|
|
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", {
|
|
20
|
+
maxSize: a == null ? void 0 : a.maxSize
|
|
21
|
+
});
|
|
22
|
+
return r.warning(t), x(e, "error", t), !1;
|
|
23
|
+
}
|
|
24
|
+
if (!g(e, a.accept)) {
|
|
25
|
+
const t = u("ap.apUpload.fileFormatNotSupported");
|
|
26
|
+
return r.warning(t), x(e, "error", t), !1;
|
|
27
|
+
}
|
|
28
|
+
return !0;
|
|
29
|
+
}
|
|
30
|
+
const S = async (e, n) => {
|
|
31
|
+
const { file: a, onError: t, onProgress: i, onSuccess: d } = e;
|
|
32
|
+
try {
|
|
33
|
+
const c = await U(), m = await (c == null ? void 0 : c.put({
|
|
34
|
+
dirName: n == null ? void 0 : n.dirName,
|
|
35
|
+
fileName: a == null ? void 0 : a.name,
|
|
36
|
+
data: a,
|
|
37
|
+
progressCallBack: (l) => {
|
|
38
|
+
i == null || i({
|
|
39
|
+
percent: l
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
if (m.status === 204)
|
|
44
|
+
return;
|
|
45
|
+
if (m.status === 200) {
|
|
46
|
+
const { saveUrl: l } = m;
|
|
47
|
+
d == null || d({
|
|
48
|
+
fileName: a == null ? void 0 : a.name,
|
|
49
|
+
path: l
|
|
50
|
+
});
|
|
51
|
+
} else
|
|
52
|
+
t == null || t((m == null ? void 0 : m.message) || u("ap.apUpload.networkAnomaly"));
|
|
53
|
+
} catch (c) {
|
|
54
|
+
t == null || t(c);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
x as changeFileStatus,
|
|
59
|
+
w as injectUtilUpload,
|
|
60
|
+
z as uploadBeforeUpload,
|
|
61
|
+
S as uploadCustomRequest
|
|
62
|
+
};
|
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { ApAttachment as
|
|
3
|
-
import { ApBatchAction as
|
|
4
|
-
import { ApBatchActionGroup as
|
|
5
|
-
import { ApButtonGroup as
|
|
6
|
-
import { ApCard as
|
|
7
|
-
import { ApExpandAlert as
|
|
8
|
-
import { ApExportGroup as
|
|
9
|
-
import { ApImage as
|
|
10
|
-
import { ApInputRadio as
|
|
11
|
-
import { ApLabel as
|
|
12
|
-
import { ApLadder as
|
|
13
|
-
import { ApSelectLayout as
|
|
14
|
-
import { ApStatus as
|
|
15
|
-
import { ApTitle as
|
|
1
|
+
import { default as e } from "./ap-table-modal/index.mjs";
|
|
2
|
+
import { ApAttachment as m } from "./ap-attachment/index.mjs";
|
|
3
|
+
import { ApBatchAction as a } from "./ap-batch-action/index.mjs";
|
|
4
|
+
import { ApBatchActionGroup as u } from "./ap-batch-action-group/index.mjs";
|
|
5
|
+
import { ApButtonGroup as n } from "./ap-button-group/index.mjs";
|
|
6
|
+
import { ApCard as d } from "./ap-card/index.mjs";
|
|
7
|
+
import { ApExpandAlert as S } from "./ap-expand-alert/index.mjs";
|
|
8
|
+
import { ApExportGroup as s } from "./ap-export-group/index.mjs";
|
|
9
|
+
import { ApImage as L } from "./ap-image/index.mjs";
|
|
10
|
+
import { ApInputRadio as B } from "./ap-input-radio/index.mjs";
|
|
11
|
+
import { ApLabel as T, ApLabelGroup as y } from "./ap-label/index.mjs";
|
|
12
|
+
import { ApLadder as g } from "./ap-ladder/index.mjs";
|
|
13
|
+
import { ApSelectLayout as C } from "./ap-select-layout/index.mjs";
|
|
14
|
+
import { ApStatus as H, ApStatusGroup as M } from "./ap-status/index.mjs";
|
|
15
|
+
import { ApTitle as R } from "./ap-title/index.mjs";
|
|
16
16
|
import "./hooks/index.mjs";
|
|
17
|
-
import { ApSummary as
|
|
18
|
-
import { ApAppendix as
|
|
19
|
-
import { ApExtensionSelect as
|
|
20
|
-
import
|
|
17
|
+
import { ApSummary as k } from "./ap-summary/index.mjs";
|
|
18
|
+
import { ApAppendix as w } from "./ap-appendix/index.mjs";
|
|
19
|
+
import { ApExtensionSelect as F, ApGroupSearch as J, ApPopoverSelect as K } from "./ap-group-search/index.mjs";
|
|
20
|
+
import "./ap-upload-file/index.mjs";
|
|
21
|
+
import { ApTransformDataHelper as O } from "../utils/ap-trans-data/index.mjs";
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
23
|
+
w as ApAppendix,
|
|
24
|
+
m as ApAttachment,
|
|
25
|
+
a as ApBatchAction,
|
|
26
|
+
u as ApBatchActionGroup,
|
|
27
|
+
n as ApButtonGroup,
|
|
28
|
+
d as ApCard,
|
|
29
|
+
S as ApExpandAlert,
|
|
30
|
+
s as ApExportGroup,
|
|
31
|
+
F as ApExtensionSelect,
|
|
32
|
+
J as ApGroupSearch,
|
|
33
|
+
L as ApImage,
|
|
34
|
+
B as ApInputRadio,
|
|
35
|
+
T as ApLabel,
|
|
36
|
+
y as ApLabelGroup,
|
|
37
|
+
g as ApLadder,
|
|
38
|
+
K as ApPopoverSelect,
|
|
39
|
+
C as ApSelectLayout,
|
|
40
|
+
H as ApStatus,
|
|
41
|
+
M as ApStatusGroup,
|
|
42
|
+
k as ApSummary,
|
|
43
|
+
e as ApTableModal,
|
|
44
|
+
R as ApTitle,
|
|
45
|
+
O as ApTransformDataHelper
|
|
45
46
|
};
|
|
@@ -436,6 +436,14 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
436
436
|
};
|
|
437
437
|
};
|
|
438
438
|
};
|
|
439
|
+
'ap-upload-single': {
|
|
440
|
+
color: {
|
|
441
|
+
main: string;
|
|
442
|
+
sub: string;
|
|
443
|
+
border: string;
|
|
444
|
+
primary: string;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
439
447
|
}>;
|
|
440
448
|
}, {}>;
|
|
441
449
|
export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
|
|
@@ -87,6 +87,14 @@ declare const aplusCssVarObj: {
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
+
'ap-upload-single': {
|
|
91
|
+
color: {
|
|
92
|
+
main: string;
|
|
93
|
+
sub: string;
|
|
94
|
+
border: string;
|
|
95
|
+
primary: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
90
98
|
};
|
|
91
99
|
export type CssVarType = RecursivePartial<typeof aplusCssVarObj>;
|
|
92
100
|
export declare function generateCssVar(cssVarRawObj: CssVarType): Record<string, any>;
|
|
@@ -85,6 +85,14 @@ const F = {
|
|
|
85
85
|
icon: "#ABB7CC"
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
+
},
|
|
89
|
+
"ap-upload-single": {
|
|
90
|
+
color: {
|
|
91
|
+
main: "#182948",
|
|
92
|
+
sub: "#ABB7CC",
|
|
93
|
+
border: "#DEE4ED",
|
|
94
|
+
primary: "#0070FF"
|
|
95
|
+
}
|
|
88
96
|
}
|
|
89
97
|
}, b = {
|
|
90
98
|
"ap-form": {
|
|
@@ -173,22 +181,30 @@ const F = {
|
|
|
173
181
|
icon: "#BFBFBF"
|
|
174
182
|
}
|
|
175
183
|
}
|
|
184
|
+
},
|
|
185
|
+
"ap-upload-single": {
|
|
186
|
+
color: {
|
|
187
|
+
main: "#333333",
|
|
188
|
+
sub: "#BFBFBF",
|
|
189
|
+
border: "#D9D9D9",
|
|
190
|
+
primary: "#34b77c"
|
|
191
|
+
}
|
|
176
192
|
}
|
|
177
193
|
};
|
|
178
|
-
function i(
|
|
194
|
+
function i(t) {
|
|
179
195
|
const o = {};
|
|
180
|
-
function r(a,
|
|
181
|
-
const
|
|
182
|
-
for (const c of
|
|
183
|
-
const
|
|
184
|
-
|
|
196
|
+
function r(a, l) {
|
|
197
|
+
const s = Object.keys(a);
|
|
198
|
+
for (const c of s) {
|
|
199
|
+
const e = a[c], n = [...l, c];
|
|
200
|
+
e !== null && typeof e == "object" ? r(e, n) : o[`--${n.join("-")}`] = e;
|
|
185
201
|
}
|
|
186
202
|
}
|
|
187
|
-
return r(
|
|
203
|
+
return r(t, []), o;
|
|
188
204
|
}
|
|
189
205
|
const d = i(F), p = i(b);
|
|
190
|
-
function u(
|
|
191
|
-
Object.entries(
|
|
206
|
+
function u(t) {
|
|
207
|
+
Object.entries(t).forEach(([o, r]) => {
|
|
192
208
|
document.documentElement.style.setProperty(o, r);
|
|
193
209
|
});
|
|
194
210
|
}
|
|
@@ -251,6 +251,14 @@ export declare const APConfigProvider: {
|
|
|
251
251
|
};
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
|
+
'ap-upload-single': {
|
|
255
|
+
color: {
|
|
256
|
+
main: string;
|
|
257
|
+
sub: string;
|
|
258
|
+
border: string;
|
|
259
|
+
primary: string;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
254
262
|
}>>;
|
|
255
263
|
default: () => {};
|
|
256
264
|
};
|
|
@@ -487,6 +495,14 @@ export declare const APConfigProvider: {
|
|
|
487
495
|
};
|
|
488
496
|
};
|
|
489
497
|
};
|
|
498
|
+
'ap-upload-single': {
|
|
499
|
+
color: {
|
|
500
|
+
main: string;
|
|
501
|
+
sub: string;
|
|
502
|
+
border: string;
|
|
503
|
+
primary: string;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
490
506
|
}>>;
|
|
491
507
|
default: () => {};
|
|
492
508
|
};
|
|
@@ -617,6 +633,14 @@ export declare const APConfigProvider: {
|
|
|
617
633
|
};
|
|
618
634
|
};
|
|
619
635
|
};
|
|
636
|
+
'ap-upload-single': {
|
|
637
|
+
color: {
|
|
638
|
+
main: string;
|
|
639
|
+
sub: string;
|
|
640
|
+
border: string;
|
|
641
|
+
primary: string;
|
|
642
|
+
};
|
|
643
|
+
};
|
|
620
644
|
}>;
|
|
621
645
|
}, true, {}, {}, {
|
|
622
646
|
P: {};
|
|
@@ -858,6 +882,14 @@ export declare const APConfigProvider: {
|
|
|
858
882
|
};
|
|
859
883
|
};
|
|
860
884
|
};
|
|
885
|
+
'ap-upload-single': {
|
|
886
|
+
color: {
|
|
887
|
+
main: string;
|
|
888
|
+
sub: string;
|
|
889
|
+
border: string;
|
|
890
|
+
primary: string;
|
|
891
|
+
};
|
|
892
|
+
};
|
|
861
893
|
}>>;
|
|
862
894
|
default: () => {};
|
|
863
895
|
};
|
|
@@ -988,6 +1020,14 @@ export declare const APConfigProvider: {
|
|
|
988
1020
|
};
|
|
989
1021
|
};
|
|
990
1022
|
};
|
|
1023
|
+
'ap-upload-single': {
|
|
1024
|
+
color: {
|
|
1025
|
+
main: string;
|
|
1026
|
+
sub: string;
|
|
1027
|
+
border: string;
|
|
1028
|
+
primary: string;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
991
1031
|
}>;
|
|
992
1032
|
}>;
|
|
993
1033
|
__isFragment?: never;
|
|
@@ -1268,6 +1308,14 @@ export declare const APConfigProvider: {
|
|
|
1268
1308
|
};
|
|
1269
1309
|
};
|
|
1270
1310
|
};
|
|
1311
|
+
'ap-upload-single': {
|
|
1312
|
+
color: {
|
|
1313
|
+
main: string;
|
|
1314
|
+
sub: string;
|
|
1315
|
+
border: string;
|
|
1316
|
+
primary: string;
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1271
1319
|
}>;
|
|
1272
1320
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
1273
1321
|
$props: {
|
package/es/src/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { APConfigProvider as u } from "./config-provider/index.mjs";
|
|
|
2
2
|
import { ApForm as i } from "./ap-form/index.mjs";
|
|
3
3
|
import { ApField as c } from "./ap-field/index.mjs";
|
|
4
4
|
import { adminToken as b, aplusToken as T } from "./design-token/index.mjs";
|
|
5
|
-
import { ApActionItem as
|
|
5
|
+
import { ApActionItem as g } from "./ap-action/index.mjs";
|
|
6
6
|
import "./work-order-modal/index.mjs";
|
|
7
7
|
import "./ap-tag/index.mjs";
|
|
8
8
|
import "./ap-info-layout/index.mjs";
|
|
@@ -20,7 +20,7 @@ import { ApScrollBar as P } from "./ap-scroll-bar/index.mjs";
|
|
|
20
20
|
import { configProviderProps as k } from "./config-provider/config-provider-props.mjs";
|
|
21
21
|
import { configProviderContextKey as M } from "./config-provider/constants.mjs";
|
|
22
22
|
import { keysOf as v, provideGlobalConfig as E, useGlobalConfig as B } from "./config-provider/hooks/use-global-config.mjs";
|
|
23
|
-
import { buildLocaleContext as O, buildTranslator as
|
|
23
|
+
import { buildLocaleContext as O, buildTranslator as U, localeContextKey as W, translate as H, useLocale as j } from "./config-provider/hooks/use-locale.mjs";
|
|
24
24
|
import { defaultNamespace as z, namespaceContextKey as J, useGetDerivedNamespace as Q, useNamespace as V } from "./config-provider/hooks/use-namespace.mjs";
|
|
25
25
|
import { ConfigProvider as Y, globalConfigCached as Z } from "./config-provider/config-provider.mjs";
|
|
26
26
|
import { ApFormItemText as $ } from "./ap-form/items/text/index.mjs";
|
|
@@ -34,7 +34,7 @@ import { default as io } from "./ap-form/items/switch/index.vue.mjs";
|
|
|
34
34
|
import { default as co } from "./ap-form/items/checkbox/index.vue.mjs";
|
|
35
35
|
import { default as bo } from "./ap-form/items/text/password.vue.mjs";
|
|
36
36
|
import { default as Io } from "./ap-form/item/index.vue.mjs";
|
|
37
|
-
import { default as
|
|
37
|
+
import { default as Co } from "./ap-form/item-group/index.vue.mjs";
|
|
38
38
|
import { default as So } from "./ap-form/list/index.vue.mjs";
|
|
39
39
|
import { default as Go } from "./ap-form/search-form/index.vue.mjs";
|
|
40
40
|
import { default as No } from "./ap-form/modal-form/index.vue.mjs";
|
|
@@ -43,8 +43,8 @@ import { default as wo } from "./ap-form/set/index.vue.mjs";
|
|
|
43
43
|
import { default as Ro } from "./ap-form/drawer-form/index.vue.mjs";
|
|
44
44
|
import { ApFieldText as Eo } from "./ap-field/text/index.mjs";
|
|
45
45
|
import { default as Ko } from "./ap-field/checkbox/index.vue.mjs";
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
46
|
+
import { default as Uo } from "./ap-field/date/index.vue.mjs";
|
|
47
|
+
import { default as Ho } from "./ap-field/number/index.vue.mjs";
|
|
48
48
|
import { default as qo } from "./ap-field/radio/index.vue.mjs";
|
|
49
49
|
import { default as Jo } from "./ap-field/switch/index.vue.mjs";
|
|
50
50
|
import { default as Vo } from "./ap-field/text-area/index.vue.mjs";
|
|
@@ -60,7 +60,7 @@ import { default as ue } from "./ap-action/item-dropdown/index.vue.mjs";
|
|
|
60
60
|
import { default as ie } from "./ap-action/group/index.vue.mjs";
|
|
61
61
|
import { DictCode as ce, langMap as Fe } from "./work-order-modal/interfaces.mjs";
|
|
62
62
|
import { createWorkOrderModal as Te } from "./work-order-modal/createWorkOrder.mjs";
|
|
63
|
-
import { default as
|
|
63
|
+
import { default as ge } from "./work-order-modal/work-order-modal.vue.mjs";
|
|
64
64
|
import { default as De } from "./ap-tag/ap-tag.vue.mjs";
|
|
65
65
|
import { default as he } from "./ap-tag/ap-tag-group.vue.mjs";
|
|
66
66
|
import { default as ye } from "./ap-info-layout/ApInfoLayout.vue.mjs";
|
|
@@ -70,7 +70,7 @@ import { ApDownLoadNeedNameKeyDefault as Me } from "./ap-download/interface.mjs"
|
|
|
70
70
|
import { default as ve } from "./ap-download/ap-download.vue.mjs";
|
|
71
71
|
import { default as Be } from "./check-card/group.vue.mjs";
|
|
72
72
|
import { default as Oe } from "./ap-list/index.vue.mjs";
|
|
73
|
-
import { default as
|
|
73
|
+
import { default as We } from "./ap-button/ap-button.vue.mjs";
|
|
74
74
|
import { default as je } from "./ap-button/ap-action-button.vue.mjs";
|
|
75
75
|
import { ApTransformDataHelper as ze } from "./utils/ap-trans-data/index.mjs";
|
|
76
76
|
import { default as Qe } from "./business/ap-table-modal/index.mjs";
|
|
@@ -87,7 +87,7 @@ import { ApExportGroup as sr } from "./business/ap-export-group/index.mjs";
|
|
|
87
87
|
import { handleExportDownload as nr } from "./business/ap-export-group/handleExportDownload.mjs";
|
|
88
88
|
import { ApImage as Fr } from "./business/ap-image/index.mjs";
|
|
89
89
|
import { ApInputRadio as Tr } from "./business/ap-input-radio/index.mjs";
|
|
90
|
-
import { ApLabel as
|
|
90
|
+
import { ApLabel as gr, ApLabelGroup as Cr } from "./business/ap-label/index.mjs";
|
|
91
91
|
import { locales as Sr } from "./business/ap-ladder/interface.mjs";
|
|
92
92
|
import { ApLadder as Gr } from "./business/ap-ladder/index.mjs";
|
|
93
93
|
import { ApSelectLayout as Nr } from "./business/ap-select-layout/index.mjs";
|
|
@@ -95,20 +95,21 @@ import { ApStatus as Lr, ApStatusGroup as kr } from "./business/ap-status/index.
|
|
|
95
95
|
import { ApTitle as Mr } from "./business/ap-title/index.mjs";
|
|
96
96
|
import { usePageListApTable as vr } from "./business/hooks/usePageListApTable.mjs";
|
|
97
97
|
import { useTableRefresh as Br } from "./business/hooks/useTableRefresh.mjs";
|
|
98
|
-
import { computedRecords as Or, flattenColumns as
|
|
98
|
+
import { computedRecords as Or, flattenColumns as Ur, formatDataIndex as Wr, formatNumber as Hr } from "./business/ap-summary/utils.mjs";
|
|
99
99
|
import { ApSummary as qr } from "./business/ap-summary/index.mjs";
|
|
100
100
|
import { ApNeedNameKeyDefault as Jr } from "./business/ap-appendix/interface.mjs";
|
|
101
101
|
import { ApAppendix as Vr } from "./business/ap-appendix/index.mjs";
|
|
102
102
|
import { ApExtensionSelect as Yr, ApGroupSearch as Zr, ApPopoverSelect as _r } from "./business/ap-group-search/index.mjs";
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import { default as pt } from "./editable-table/
|
|
106
|
-
import { default as mt } from "./
|
|
103
|
+
import { default as ot } from "./business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs";
|
|
104
|
+
import { useTablePaging as rt } from "./ap-table/hooks/use-table-paging.mjs";
|
|
105
|
+
import { default as pt } from "./editable-table/index.vue.mjs";
|
|
106
|
+
import { default as mt } from "./editable-table/form-item.vue.mjs";
|
|
107
|
+
import { default as lt } from "./ap-descriptions/ap-descriptions.vue.mjs";
|
|
107
108
|
export {
|
|
108
109
|
u as APConfigProvider,
|
|
109
110
|
je as ApActionButton,
|
|
110
111
|
ie as ApActionGroup,
|
|
111
|
-
|
|
112
|
+
g as ApActionItem,
|
|
112
113
|
ue as ApActionItemDropdown,
|
|
113
114
|
le as ApActionItemModal,
|
|
114
115
|
de as ApActionItemPopconfirm,
|
|
@@ -116,10 +117,10 @@ export {
|
|
|
116
117
|
$e as ApAttachment,
|
|
117
118
|
er as ApBatchAction,
|
|
118
119
|
tr as ApBatchActionGroup,
|
|
119
|
-
|
|
120
|
+
We as ApButton,
|
|
120
121
|
ar as ApButtonGroup,
|
|
121
122
|
fr as ApCard,
|
|
122
|
-
|
|
123
|
+
lt as ApDescriptions,
|
|
123
124
|
Me as ApDownLoadNeedNameKeyDefault,
|
|
124
125
|
ve as ApDownload,
|
|
125
126
|
xr as ApExpandAlert,
|
|
@@ -128,9 +129,9 @@ export {
|
|
|
128
129
|
Yr as ApExtensionSelect,
|
|
129
130
|
c as ApField,
|
|
130
131
|
Ko as ApFieldCheckbox,
|
|
131
|
-
|
|
132
|
+
Uo as ApFieldDate,
|
|
132
133
|
Yo as ApFieldDateRange,
|
|
133
|
-
|
|
134
|
+
Ho as ApFieldNumber,
|
|
134
135
|
oe as ApFieldPassword,
|
|
135
136
|
qo as ApFieldRadio,
|
|
136
137
|
me as ApFieldRate,
|
|
@@ -147,7 +148,7 @@ export {
|
|
|
147
148
|
co as ApFormItemCheckbox,
|
|
148
149
|
ao as ApFormItemDate,
|
|
149
150
|
fo as ApFormItemDateRange,
|
|
150
|
-
|
|
151
|
+
Co as ApFormItemGroup,
|
|
151
152
|
to as ApFormItemNumber,
|
|
152
153
|
xo as ApFormItemRadio,
|
|
153
154
|
uo as ApFormItemSelect,
|
|
@@ -163,8 +164,8 @@ export {
|
|
|
163
164
|
Fr as ApImage,
|
|
164
165
|
ye as ApInfoLayout,
|
|
165
166
|
Tr as ApInputRadio,
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
gr as ApLabel,
|
|
168
|
+
Cr as ApLabelGroup,
|
|
168
169
|
Gr as ApLadder,
|
|
169
170
|
Oe as ApList,
|
|
170
171
|
h as ApModal,
|
|
@@ -182,42 +183,43 @@ export {
|
|
|
182
183
|
Mr as ApTitle,
|
|
183
184
|
ze as ApTransformDataHelper,
|
|
184
185
|
ke as ApUpload,
|
|
186
|
+
ot as ApUploadSingle,
|
|
185
187
|
D as CheckCard,
|
|
186
188
|
Be as CheckCardGroup,
|
|
187
189
|
Y as ConfigProvider,
|
|
188
190
|
ce as DictCode,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
+
pt as EditableTable,
|
|
192
|
+
mt as EditableTableFormItem,
|
|
191
193
|
Pe as NeedNameKeyDefault,
|
|
192
|
-
|
|
194
|
+
ge as WorkOrderModal,
|
|
193
195
|
b as adminToken,
|
|
194
196
|
T as aplusToken,
|
|
195
197
|
O as buildLocaleContext,
|
|
196
|
-
|
|
198
|
+
U as buildTranslator,
|
|
197
199
|
Or as computedRecords,
|
|
198
200
|
M as configProviderContextKey,
|
|
199
201
|
k as configProviderProps,
|
|
200
202
|
Te as createWorkOrderModal,
|
|
201
203
|
z as defaultNamespace,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
204
|
+
Ur as flattenColumns,
|
|
205
|
+
Wr as formatDataIndex,
|
|
206
|
+
Hr as formatNumber,
|
|
205
207
|
Z as globalConfigCached,
|
|
206
208
|
nr as handleExportDownload,
|
|
207
209
|
v as keysOf,
|
|
208
210
|
Fe as langMap,
|
|
209
|
-
|
|
211
|
+
W as localeContextKey,
|
|
210
212
|
Sr as locales,
|
|
211
213
|
J as namespaceContextKey,
|
|
212
214
|
E as provideGlobalConfig,
|
|
213
|
-
|
|
215
|
+
H as translate,
|
|
214
216
|
Q as useGetDerivedNamespace,
|
|
215
217
|
B as useGlobalConfig,
|
|
216
218
|
j as useLocale,
|
|
217
219
|
V as useNamespace,
|
|
218
220
|
vr as usePageListApTable,
|
|
219
221
|
Xe as useTableModal,
|
|
220
|
-
|
|
222
|
+
rt as useTablePaging,
|
|
221
223
|
Br as useTableRefresh,
|
|
222
224
|
Ze as useTableSelectModal
|
|
223
225
|
};
|
package/es/src/path-map.mjs
CHANGED
|
@@ -79,7 +79,8 @@ const e = {
|
|
|
79
79
|
ApAppendix: ["business", "ap-appendix"],
|
|
80
80
|
ApGroupSearch: ["business", "ap-group-search"],
|
|
81
81
|
ApPopoverSelect: ["business", "ap-group-search", "popover-select"],
|
|
82
|
-
ApExtensionSelect: ["business", "ap-group-search", "extension-select"]
|
|
82
|
+
ApExtensionSelect: ["business", "ap-group-search", "extension-select"],
|
|
83
|
+
ApUploadSingle: ["business", "ap-upload-file", "ap-upload-single"]
|
|
83
84
|
};
|
|
84
85
|
export {
|
|
85
86
|
e as default
|