@keyblade/pro-components 1.12.0-alpha.5 → 1.12.0-alpha.7
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/pro-image-upload/image-upload.vue.d.ts +36 -36
- package/es/pro-image-upload/image-upload.vue.js +164 -100
- package/es/pro-image-upload/index.d.ts +115 -115
- package/es/pro-keep-alive-router-view/index.d.ts +1 -1
- package/es/pro-layout/index.d.ts +1 -1
- package/es/pro-menu/index.d.ts +1 -1
- package/es/pro-page-container/index.d.ts +1 -1
- package/es/pro-page-header/index.d.ts +4 -4
- package/es/pro-page-header/pro-page-header.vue.d.ts +1 -1
- package/es/pro-reuse-tabs/index.d.ts +1 -1
- package/es/style.css +1 -1
- package/package.json +2 -3
|
@@ -10,13 +10,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
10
10
|
data: {
|
|
11
11
|
type: import('vue').PropType<Record<string, any>>;
|
|
12
12
|
};
|
|
13
|
-
disabled: {
|
|
14
|
-
type: import('vue').PropType<boolean>;
|
|
15
|
-
default: boolean | undefined;
|
|
16
|
-
};
|
|
17
|
-
tip: {
|
|
18
|
-
type: import('vue').PropType<string>;
|
|
19
|
-
};
|
|
20
13
|
onError: {
|
|
21
14
|
type: import('vue').PropType<(fileItem: FileItem) => void>;
|
|
22
15
|
};
|
|
@@ -42,6 +35,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
42
35
|
type: import('vue').PropType<string>;
|
|
43
36
|
default: string | undefined;
|
|
44
37
|
};
|
|
38
|
+
tip: {
|
|
39
|
+
type: import('vue').PropType<string>;
|
|
40
|
+
};
|
|
45
41
|
accept: {
|
|
46
42
|
type: import('vue').PropType<string[]>;
|
|
47
43
|
default: () => string[];
|
|
@@ -57,6 +53,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
57
53
|
limit: {
|
|
58
54
|
type: import('vue').PropType<number>;
|
|
59
55
|
};
|
|
56
|
+
disabled: {
|
|
57
|
+
type: import('vue').PropType<boolean>;
|
|
58
|
+
default: boolean | undefined;
|
|
59
|
+
};
|
|
60
60
|
hideInnerBeforeUploadLoading: {
|
|
61
61
|
type: import('vue').PropType<boolean>;
|
|
62
62
|
default: boolean | undefined;
|
|
@@ -122,6 +122,24 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
122
122
|
download?: boolean | undefined;
|
|
123
123
|
showLink?: boolean | undefined;
|
|
124
124
|
listType?: import('@arco-design/web-vue/es/upload/interfaces').ListType | undefined;
|
|
125
|
+
readonly data?: Record<string, string | Blob> | ((fileItem: FileItem) => Record<string, string | Blob>) | undefined;
|
|
126
|
+
style?: unknown;
|
|
127
|
+
onChange?: ((fileList: FileItem[], fileItem: FileItem) => any) | undefined;
|
|
128
|
+
onError?: ((fileItem: FileItem) => any) | undefined;
|
|
129
|
+
onProgress?: ((fileItem: FileItem, ev?: ProgressEvent<EventTarget> | undefined) => any) | undefined;
|
|
130
|
+
readonly action?: string | undefined;
|
|
131
|
+
readonly headers?: Record<string, string> | undefined;
|
|
132
|
+
readonly name?: string | ((fileItem: FileItem) => string) | undefined;
|
|
133
|
+
readonly tip?: string | undefined;
|
|
134
|
+
readonly accept?: string | undefined;
|
|
135
|
+
onSuccess?: ((fileItem: FileItem) => any) | undefined;
|
|
136
|
+
readonly onBeforeUpload?: ((file: File) => boolean | Promise<boolean | File>) | undefined;
|
|
137
|
+
readonly customRequest?: ((option: import('@arco-design/web-vue').RequestOption) => import('@arco-design/web-vue').UploadRequest) | undefined;
|
|
138
|
+
readonly imageLoading?: "eager" | "lazy" | undefined;
|
|
139
|
+
readonly responseUrlKey?: string | ((fileItem: FileItem) => string) | undefined;
|
|
140
|
+
readonly customIcon?: import('@arco-design/web-vue').CustomIcon | undefined;
|
|
141
|
+
readonly onBeforeRemove?: ((fileItem: FileItem) => Promise<boolean>) | undefined;
|
|
142
|
+
readonly onButtonClick?: ((event: Event) => void | Promise<FileList>) | undefined;
|
|
125
143
|
key?: string | number | symbol | undefined;
|
|
126
144
|
ref?: import('vue').VNodeRef | undefined;
|
|
127
145
|
ref_for?: boolean | undefined;
|
|
@@ -165,24 +183,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
165
183
|
[key: string]: any;
|
|
166
184
|
}>) => void)[] | undefined;
|
|
167
185
|
class?: unknown;
|
|
168
|
-
style?: unknown;
|
|
169
|
-
readonly data?: Record<string, string | Blob> | ((fileItem: FileItem) => Record<string, string | Blob>) | undefined;
|
|
170
|
-
readonly tip?: string | undefined;
|
|
171
|
-
onChange?: ((fileList: FileItem[], fileItem: FileItem) => any) | undefined;
|
|
172
|
-
onError?: ((fileItem: FileItem) => any) | undefined;
|
|
173
|
-
onProgress?: ((fileItem: FileItem, ev?: ProgressEvent<EventTarget> | undefined) => any) | undefined;
|
|
174
|
-
readonly action?: string | undefined;
|
|
175
|
-
readonly headers?: Record<string, string> | undefined;
|
|
176
|
-
readonly name?: string | ((fileItem: FileItem) => string) | undefined;
|
|
177
|
-
readonly accept?: string | undefined;
|
|
178
|
-
onSuccess?: ((fileItem: FileItem) => any) | undefined;
|
|
179
|
-
readonly onBeforeUpload?: ((file: File) => boolean | Promise<boolean | File>) | undefined;
|
|
180
|
-
readonly customRequest?: ((option: import('@arco-design/web-vue').RequestOption) => import('@arco-design/web-vue').UploadRequest) | undefined;
|
|
181
|
-
readonly imageLoading?: "eager" | "lazy" | undefined;
|
|
182
|
-
readonly responseUrlKey?: string | ((fileItem: FileItem) => string) | undefined;
|
|
183
|
-
readonly customIcon?: import('@arco-design/web-vue').CustomIcon | undefined;
|
|
184
|
-
readonly onBeforeRemove?: ((fileItem: FileItem) => Promise<boolean>) | undefined;
|
|
185
|
-
readonly onButtonClick?: ((event: Event) => void | Promise<FileList>) | undefined;
|
|
186
186
|
onExceedLimit?: ((fileList: FileItem[], files: File[]) => any) | undefined;
|
|
187
187
|
onPreview?: ((fileItem: FileItem) => any) | undefined;
|
|
188
188
|
"onUpdate:fileList"?: ((fileList: FileItem[]) => any) | undefined;
|
|
@@ -198,7 +198,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
198
198
|
}>;
|
|
199
199
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
200
200
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
201
|
-
$emit: ((event: "
|
|
201
|
+
$emit: ((event: "progress", fileItem: FileItem, ev?: ProgressEvent<EventTarget> | undefined) => void) & ((event: "success", fileItem: FileItem) => void) & ((event: "error", fileItem: FileItem) => void) & ((event: "preview", fileItem: FileItem) => void) & ((event: "change", fileList: FileItem[], fileItem: FileItem) => void) & ((event: "exceedLimit", fileList: FileItem[], files: File[]) => void) & ((event: "update:fileList", fileList: FileItem[]) => void);
|
|
202
202
|
$el: any;
|
|
203
203
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
204
204
|
fileList?: unknown;
|
|
@@ -207,7 +207,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
207
207
|
action?: unknown;
|
|
208
208
|
disabled?: unknown;
|
|
209
209
|
multiple?: unknown;
|
|
210
|
-
directory?: unknown;
|
|
210
|
+
directory?: unknown;
|
|
211
211
|
draggable?: unknown;
|
|
212
212
|
tip?: unknown;
|
|
213
213
|
headers?: unknown;
|
|
@@ -346,7 +346,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
346
346
|
action?: unknown;
|
|
347
347
|
disabled?: unknown;
|
|
348
348
|
multiple?: unknown;
|
|
349
|
-
directory?: unknown;
|
|
349
|
+
directory?: unknown;
|
|
350
350
|
draggable?: unknown;
|
|
351
351
|
tip?: unknown;
|
|
352
352
|
headers?: unknown;
|
|
@@ -440,13 +440,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
440
440
|
data: {
|
|
441
441
|
type: import('vue').PropType<Record<string, any>>;
|
|
442
442
|
};
|
|
443
|
-
disabled: {
|
|
444
|
-
type: import('vue').PropType<boolean>;
|
|
445
|
-
default: boolean | undefined;
|
|
446
|
-
};
|
|
447
|
-
tip: {
|
|
448
|
-
type: import('vue').PropType<string>;
|
|
449
|
-
};
|
|
450
443
|
onError: {
|
|
451
444
|
type: import('vue').PropType<(fileItem: FileItem) => void>;
|
|
452
445
|
};
|
|
@@ -472,6 +465,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
472
465
|
type: import('vue').PropType<string>;
|
|
473
466
|
default: string | undefined;
|
|
474
467
|
};
|
|
468
|
+
tip: {
|
|
469
|
+
type: import('vue').PropType<string>;
|
|
470
|
+
};
|
|
475
471
|
accept: {
|
|
476
472
|
type: import('vue').PropType<string[]>;
|
|
477
473
|
default: () => string[];
|
|
@@ -487,6 +483,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
487
483
|
limit: {
|
|
488
484
|
type: import('vue').PropType<number>;
|
|
489
485
|
};
|
|
486
|
+
disabled: {
|
|
487
|
+
type: import('vue').PropType<boolean>;
|
|
488
|
+
default: boolean | undefined;
|
|
489
|
+
};
|
|
490
490
|
hideInnerBeforeUploadLoading: {
|
|
491
491
|
type: import('vue').PropType<boolean>;
|
|
492
492
|
default: boolean | undefined;
|
|
@@ -529,11 +529,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
529
529
|
}>> & {
|
|
530
530
|
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
531
531
|
}, {
|
|
532
|
-
disabled: boolean;
|
|
533
532
|
name: string;
|
|
534
533
|
accept: string[];
|
|
535
534
|
multiple: boolean;
|
|
536
535
|
singleLimit: number;
|
|
536
|
+
disabled: boolean;
|
|
537
537
|
hideInnerBeforeUploadLoading: boolean;
|
|
538
538
|
}, {}>;
|
|
539
539
|
export default _default;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Message as
|
|
3
|
-
import { conclude as
|
|
4
|
-
import { EImageUploadInnerBeforeUploadStep as
|
|
5
|
-
import { defaultImageUploadOptions as
|
|
6
|
-
import { defaultImageUploadCheckOptions as
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { defineComponent as ne, ref as m, computed as C, watch as D, resolveComponent as oe, openBlock as te, createElementBlock as ie, createVNode as ue, normalizeClass as re } from "vue";
|
|
2
|
+
import { Message as U } from "@arco-design/web-vue";
|
|
3
|
+
import { conclude as b } from "vue-global-config";
|
|
4
|
+
import { EImageUploadInnerBeforeUploadStep as v } from "./types.js";
|
|
5
|
+
import { defaultImageUploadOptions as x } from "./constant.js";
|
|
6
|
+
import { defaultImageUploadCheckOptions as de, defaultImageUploadCompressorOptions as se, defaultImageUploadCropOptions as ce, oneTravelImageCheckAndTransform as fe, oneTravelImageCompressor as ve } from "@keyblade/one-travel";
|
|
7
|
+
const me = "keyblade-pro-image-upload";
|
|
8
|
+
var G, J, K;
|
|
9
|
+
const Ee = /* @__PURE__ */ ne({
|
|
9
10
|
__name: "image-upload",
|
|
10
11
|
props: {
|
|
11
12
|
action: {},
|
|
12
13
|
handlerResponse: {},
|
|
13
14
|
headers: {},
|
|
14
15
|
data: {},
|
|
15
|
-
name: { default: (
|
|
16
|
+
name: { default: (G = x) == null ? void 0 : G.name },
|
|
16
17
|
tip: {},
|
|
17
18
|
accept: { default: () => {
|
|
18
|
-
var
|
|
19
|
-
return ((
|
|
19
|
+
var B;
|
|
20
|
+
return ((B = x) == null ? void 0 : B.accept) || [];
|
|
20
21
|
} },
|
|
21
|
-
multiple: { type: Boolean, default:
|
|
22
|
-
singleLimit: { default:
|
|
22
|
+
multiple: { type: Boolean, default: x.multiple },
|
|
23
|
+
singleLimit: { default: x.singleLimit },
|
|
23
24
|
limit: {},
|
|
24
|
-
disabled: { type: Boolean, default: (
|
|
25
|
-
hideInnerBeforeUploadLoading: { type: Boolean, default: (
|
|
25
|
+
disabled: { type: Boolean, default: (J = x) == null ? void 0 : J.disabled },
|
|
26
|
+
hideInnerBeforeUploadLoading: { type: Boolean, default: (K = x) == null ? void 0 : K.hideInnerBeforeUploadLoading },
|
|
26
27
|
checkOptions: {},
|
|
27
28
|
compressorOptions: {},
|
|
28
29
|
cropOptions: {},
|
|
@@ -34,83 +35,119 @@ const de = /* @__PURE__ */ V({
|
|
|
34
35
|
onInnerBeforeUploadEnd: {}
|
|
35
36
|
},
|
|
36
37
|
emits: ["cropperImgLoad"],
|
|
37
|
-
setup(
|
|
38
|
-
const e = g
|
|
39
|
-
defineModel({ required: !0 });
|
|
40
|
-
const G = d(), J = d(), B = d(), M = d(
|
|
38
|
+
setup(B, { expose: X, emit: ge }) {
|
|
39
|
+
const e = B, i = defineModel({ required: !0 }), M = m(), Y = m(), O = m(), g = m(
|
|
41
40
|
[]
|
|
42
|
-
), o =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
), o = m(), c = m(), d = m(), Z = C(() => e.accept.map((a) => `.${a}`).join(",")), f = C(() => b([e.checkOptions, de]) || {}), p = C(() => b([e.compressorOptions, se]) || {}), y = C(() => b([e.cropOptions, ce]) || {}), _ = (a) => {
|
|
42
|
+
var t, u, s, r;
|
|
43
|
+
const n = (r = (s = (u = (t = M.value) == null ? void 0 : t.$el) == null ? void 0 : u.querySelector) == null ? void 0 : s.call(u, "input")) == null ? void 0 : r.files;
|
|
44
|
+
return n && n.length > 0 && (d.value = {
|
|
45
|
+
selectCount: n.length
|
|
46
|
+
}), e != null && e.onBeforeUpload ? e == null ? void 0 : e.onBeforeUpload(a) : d.value && (e != null && e.singleLimit) && d.value.selectCount > (e == null ? void 0 : e.singleLimit) ? (d.value.handleIndex === void 0 ? (d.value.handleIndex = 0, U.error(`单次最多可选择${e == null ? void 0 : e.singleLimit}张图片`)) : d.value.handleIndex += 1, d.value.handleIndex === d.value.selectCount - 1 && (d.value = void 0), !1) : new Promise(async (E, w) => {
|
|
47
|
+
try {
|
|
48
|
+
E(await le(a));
|
|
49
|
+
} catch {
|
|
50
|
+
w();
|
|
51
|
+
} finally {
|
|
52
|
+
L();
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}, A = async (a) => {
|
|
56
|
+
const n = i.value.findIndex((t) => t.uid === a.uid);
|
|
57
|
+
return i.value.splice(n, 1), i.value = [...i.value], !1;
|
|
58
|
+
}, R = (a, n) => {
|
|
59
|
+
e != null && e.onExceed ? e == null || e.onExceed(a, n) : (U.error(`单次最多可选择${(e == null ? void 0 : e.limit) || 1}张图片`), i.value = a);
|
|
60
|
+
}, ee = async (a) => {
|
|
61
|
+
if (e != null && e.onSuccess)
|
|
62
|
+
e == null || e.onSuccess(a);
|
|
63
|
+
else {
|
|
64
|
+
if (!(e != null && e.handlerResponse))
|
|
65
|
+
return;
|
|
66
|
+
const n = await e.handlerResponse(a.response), t = i.value.findIndex((u) => u.uid === a.uid);
|
|
67
|
+
n.success ? i.value[t] = {
|
|
68
|
+
...i.value[t],
|
|
69
|
+
...n
|
|
70
|
+
} : i.value.splice(t, 1);
|
|
71
|
+
}
|
|
72
|
+
}, ae = (a) => {
|
|
73
|
+
e != null && e.onError ? e == null || e.onError(a) : setTimeout(() => {
|
|
74
|
+
const n = i.value.findIndex((t) => t.uid === a.uid);
|
|
75
|
+
i.value.splice(n, 1);
|
|
76
|
+
});
|
|
77
|
+
}, le = (a) => new Promise((n, t) => {
|
|
78
|
+
g.value.push({ file: a, resolve: n, reject: t }), g.value.length === 1 && !o.value && L();
|
|
79
|
+
}), L = () => {
|
|
80
|
+
o.value === void 0 ? o.value = 0 : o.value + 1 >= g.value.length ? (o.value = void 0, g.value = []) : o.value += 1;
|
|
81
|
+
};
|
|
82
|
+
D(o, async () => {
|
|
83
|
+
var E, w, S, $, F, z, j, k, Q, H, W, P, T, q, N, V;
|
|
84
|
+
if (o.value === void 0 || g.value.length === 0)
|
|
48
85
|
return;
|
|
49
|
-
const
|
|
50
|
-
let s =
|
|
51
|
-
if ((
|
|
52
|
-
|
|
86
|
+
const a = g.value[o.value], { file: n, resolve: t, reject: u } = a;
|
|
87
|
+
let s = n.name, r = n;
|
|
88
|
+
if ((E = f.value) != null && E.enable) {
|
|
89
|
+
c.value = {
|
|
53
90
|
loading: !0,
|
|
54
91
|
text: `第${o.value + 1}张图片检测中,请稍等`
|
|
55
|
-
}, (
|
|
92
|
+
}, (w = e == null ? void 0 : e.onInnerBeforeUploadStart) == null || w.call(
|
|
56
93
|
e,
|
|
57
|
-
|
|
94
|
+
n,
|
|
58
95
|
o.value,
|
|
59
|
-
|
|
96
|
+
v.check
|
|
60
97
|
);
|
|
61
|
-
const
|
|
62
|
-
imageMaxSize:
|
|
63
|
-
imageAllowedType:
|
|
64
|
-
imageMinWidth:
|
|
65
|
-
imageMinHeight:
|
|
66
|
-
imageMaxWidth:
|
|
67
|
-
imageMaxHeight:
|
|
98
|
+
const l = await fe(n, n.name, {
|
|
99
|
+
imageMaxSize: f.value.maxSize,
|
|
100
|
+
imageAllowedType: f.value.allowedType,
|
|
101
|
+
imageMinWidth: f.value.minWidth,
|
|
102
|
+
imageMinHeight: f.value.minHeight,
|
|
103
|
+
imageMaxWidth: f.value.maxWidth,
|
|
104
|
+
imageMaxHeight: f.value.maxHeight
|
|
68
105
|
});
|
|
69
|
-
if (
|
|
106
|
+
if (c.value = void 0, (S = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || S.call(
|
|
70
107
|
e,
|
|
71
|
-
|
|
108
|
+
n,
|
|
72
109
|
o.value,
|
|
73
|
-
|
|
110
|
+
v.check,
|
|
74
111
|
{
|
|
75
|
-
success:
|
|
76
|
-
error:
|
|
77
|
-
errorMessage:
|
|
112
|
+
success: l.success,
|
|
113
|
+
error: l == null ? void 0 : l.error,
|
|
114
|
+
errorMessage: l == null ? void 0 : l.errorMessage
|
|
78
115
|
}
|
|
79
|
-
), !
|
|
80
|
-
return (
|
|
81
|
-
if (
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
type:
|
|
116
|
+
), !l.success)
|
|
117
|
+
return ($ = f.value) != null && $.showErrorMessage && U.error((l == null ? void 0 : l.errorMessage) || "图片校验及转换失败"), u();
|
|
118
|
+
if (l != null && l.hasTransform) {
|
|
119
|
+
const I = s == null ? void 0 : s.split(".");
|
|
120
|
+
I.pop(), s = `${I.join(",")}.jpg`, r = new File([l.file], s, {
|
|
121
|
+
type: l.file.type
|
|
85
122
|
});
|
|
86
123
|
} else
|
|
87
|
-
|
|
124
|
+
r = l.file;
|
|
88
125
|
}
|
|
89
|
-
if ((
|
|
90
|
-
(
|
|
126
|
+
if ((F = y.value) != null && F.enable) {
|
|
127
|
+
(z = e == null ? void 0 : e.onInnerBeforeUploadStart) == null || z.call(
|
|
91
128
|
e,
|
|
92
|
-
|
|
129
|
+
n,
|
|
93
130
|
o.value,
|
|
94
|
-
|
|
131
|
+
v.crop
|
|
95
132
|
);
|
|
96
133
|
try {
|
|
97
|
-
(
|
|
98
|
-
|
|
99
|
-
}), (
|
|
134
|
+
(j = y.value) != null && j.customCrop ? r = await y.value.customCrop(r) : r = await new Promise((l, I) => {
|
|
135
|
+
O.value = { file: r, resolve: l, reject: I };
|
|
136
|
+
}), (k = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || k.call(
|
|
100
137
|
e,
|
|
101
|
-
|
|
138
|
+
n,
|
|
102
139
|
o.value,
|
|
103
|
-
|
|
140
|
+
v.crop,
|
|
104
141
|
{
|
|
105
142
|
success: !1
|
|
106
143
|
}
|
|
107
144
|
);
|
|
108
145
|
} catch {
|
|
109
|
-
return (
|
|
146
|
+
return (Q = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || Q.call(
|
|
110
147
|
e,
|
|
111
|
-
|
|
148
|
+
n,
|
|
112
149
|
o.value,
|
|
113
|
-
|
|
150
|
+
v.crop,
|
|
114
151
|
{
|
|
115
152
|
success: !1,
|
|
116
153
|
error: {
|
|
@@ -118,71 +155,98 @@ const de = /* @__PURE__ */ V({
|
|
|
118
155
|
},
|
|
119
156
|
errorMessage: "图片剪裁失败"
|
|
120
157
|
}
|
|
121
|
-
), (
|
|
158
|
+
), (H = y.value) != null && H.showErrorMessage && U.error("图片剪裁失败"), u();
|
|
122
159
|
} finally {
|
|
123
|
-
|
|
160
|
+
O.value = void 0;
|
|
124
161
|
}
|
|
125
162
|
}
|
|
126
|
-
if ((
|
|
127
|
-
|
|
163
|
+
if ((W = p.value) != null && W.enable) {
|
|
164
|
+
c.value = {
|
|
128
165
|
loading: !0,
|
|
129
166
|
text: `第${o.value + 1}张图片处理中,请稍等`
|
|
130
|
-
}, (
|
|
167
|
+
}, (P = e == null ? void 0 : e.onInnerBeforeUploadStart) == null || P.call(
|
|
131
168
|
e,
|
|
132
|
-
|
|
169
|
+
n,
|
|
133
170
|
o.value,
|
|
134
|
-
|
|
171
|
+
v.compress
|
|
135
172
|
);
|
|
136
|
-
const
|
|
137
|
-
maxSize:
|
|
138
|
-
size:
|
|
139
|
-
excludeAllowedTypes: (
|
|
173
|
+
const l = await ve(r, {
|
|
174
|
+
maxSize: p.value.maxSize,
|
|
175
|
+
size: p.value.size,
|
|
176
|
+
excludeAllowedTypes: (T = p.value.excludeAllowedTypes) == null ? void 0 : T.map((I) => `image/${I}`)
|
|
140
177
|
});
|
|
141
|
-
if (
|
|
178
|
+
if (c.value = void 0, (q = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || q.call(
|
|
142
179
|
e,
|
|
143
|
-
|
|
180
|
+
n,
|
|
144
181
|
o.value,
|
|
145
|
-
|
|
182
|
+
v.compress,
|
|
146
183
|
{
|
|
147
|
-
success:
|
|
184
|
+
success: l.success,
|
|
148
185
|
error: {
|
|
149
186
|
compress: !0
|
|
150
187
|
},
|
|
151
|
-
errorMessage:
|
|
188
|
+
errorMessage: l == null ? void 0 : l.errorMessage
|
|
152
189
|
}
|
|
153
|
-
), !
|
|
154
|
-
return (
|
|
155
|
-
|
|
156
|
-
type:
|
|
190
|
+
), !l.success)
|
|
191
|
+
return (N = p.value) != null && N.showErrorMessage && U.error((l == null ? void 0 : l.errorMessage) || "图片压缩失败"), u();
|
|
192
|
+
r = new File([l.file], s, {
|
|
193
|
+
type: l.file.type
|
|
157
194
|
});
|
|
158
195
|
}
|
|
159
|
-
|
|
196
|
+
c.value = void 0, (V = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || V.call(
|
|
160
197
|
e,
|
|
161
|
-
|
|
198
|
+
n,
|
|
162
199
|
o.value,
|
|
163
|
-
|
|
200
|
+
v.all,
|
|
164
201
|
{
|
|
165
202
|
success: !0
|
|
166
203
|
}
|
|
167
|
-
),
|
|
204
|
+
), t(r);
|
|
168
205
|
});
|
|
169
|
-
let
|
|
170
|
-
return
|
|
171
|
-
() =>
|
|
206
|
+
let h;
|
|
207
|
+
return D(
|
|
208
|
+
() => c.value,
|
|
172
209
|
() => {
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
content:
|
|
210
|
+
var a;
|
|
211
|
+
c.value ? h = U.loading({
|
|
212
|
+
content: c.value.text,
|
|
176
213
|
id: "image-upload-id",
|
|
177
214
|
duration: 0
|
|
178
|
-
}) : (
|
|
215
|
+
}) : (a = h == null ? void 0 : h.close) == null || a.call(h);
|
|
179
216
|
}
|
|
180
|
-
),
|
|
181
|
-
uploadInsRef:
|
|
182
|
-
cropperInsRef:
|
|
183
|
-
}), (
|
|
217
|
+
), X({
|
|
218
|
+
uploadInsRef: M,
|
|
219
|
+
cropperInsRef: Y
|
|
220
|
+
}), (a, n) => {
|
|
221
|
+
const t = oe("a-upload");
|
|
222
|
+
return te(), ie("div", null, [
|
|
223
|
+
ue(t, {
|
|
224
|
+
class: re([`${me}-upload`]),
|
|
225
|
+
ref_key: "uploadInsRef",
|
|
226
|
+
ref: M,
|
|
227
|
+
"list-type": "picture-card",
|
|
228
|
+
tip: a.tip || "上传",
|
|
229
|
+
"image-preview": "",
|
|
230
|
+
"file-list": i.value,
|
|
231
|
+
"onUpdate:fileList": n[0] || (n[0] = (u) => i.value = u),
|
|
232
|
+
action: a.action,
|
|
233
|
+
headers: a.headers,
|
|
234
|
+
data: a.data,
|
|
235
|
+
name: a.name,
|
|
236
|
+
accept: Z.value,
|
|
237
|
+
multiple: a.multiple,
|
|
238
|
+
limit: a.limit,
|
|
239
|
+
disabled: a.disabled,
|
|
240
|
+
"on-before-upload": _,
|
|
241
|
+
"on-before-remove": A,
|
|
242
|
+
onExceedLimit: R,
|
|
243
|
+
onSuccess: ee,
|
|
244
|
+
onError: ae
|
|
245
|
+
}, null, 8, ["class", "tip", "file-list", "action", "headers", "data", "name", "accept", "multiple", "limit", "disabled"])
|
|
246
|
+
]);
|
|
247
|
+
};
|
|
184
248
|
}
|
|
185
249
|
});
|
|
186
250
|
export {
|
|
187
|
-
|
|
251
|
+
Ee as default
|
|
188
252
|
};
|
|
@@ -5,12 +5,46 @@ declare const ProImageUpload: {
|
|
|
5
5
|
$: import('vue').ComponentInternalInstance;
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: {
|
|
8
|
-
disabled?: boolean | undefined;
|
|
9
8
|
name?: string | undefined;
|
|
10
9
|
accept?: string[] | undefined;
|
|
11
10
|
multiple?: boolean | undefined;
|
|
12
11
|
singleLimit?: number | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
13
|
hideInnerBeforeUploadLoading?: boolean | undefined;
|
|
14
|
+
readonly data?: Record<string, any> | undefined;
|
|
15
|
+
style?: unknown;
|
|
16
|
+
readonly onError?: ((fileItem: import('@arco-design/web-vue').FileItem) => void) | undefined;
|
|
17
|
+
readonly action: string;
|
|
18
|
+
readonly handlerResponse?: ((response: any) => Promise<{
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
success: boolean;
|
|
21
|
+
url?: string | undefined;
|
|
22
|
+
errorMessage?: string | undefined;
|
|
23
|
+
}>) | undefined;
|
|
24
|
+
readonly headers?: Record<string, any> | undefined;
|
|
25
|
+
readonly tip?: string | undefined;
|
|
26
|
+
readonly limit?: number | undefined;
|
|
27
|
+
readonly checkOptions?: import('@keyblade/one-travel').ImageUploadCheckOptions | undefined;
|
|
28
|
+
readonly compressorOptions?: import('@keyblade/one-travel').ImageUploadCompressorOptions | undefined;
|
|
29
|
+
readonly cropOptions?: import('@keyblade/one-travel').ImageUploadCropOptions | undefined;
|
|
30
|
+
readonly onSuccess?: ((fileItem: import('@arco-design/web-vue').FileItem) => void) | undefined;
|
|
31
|
+
readonly onExceed?: ((fileList: import('@arco-design/web-vue').FileItem[], files: File[]) => void) | undefined;
|
|
32
|
+
readonly onBeforeUpload?: ((file: File) => boolean | Promise<any>) | undefined;
|
|
33
|
+
readonly onInnerBeforeUploadStart?: ((file: File, index: number, type: import('./types').EImageUploadInnerBeforeUploadStep) => void) | undefined;
|
|
34
|
+
readonly onInnerBeforeUploadEnd?: ((file: File, index: number, type: import('./types').EImageUploadInnerBeforeUploadStep, result: {
|
|
35
|
+
success: boolean;
|
|
36
|
+
error?: {
|
|
37
|
+
size?: boolean | undefined;
|
|
38
|
+
format?: boolean | undefined;
|
|
39
|
+
transform?: boolean | undefined;
|
|
40
|
+
pixel?: boolean | undefined;
|
|
41
|
+
compress?: boolean | undefined;
|
|
42
|
+
crop?: boolean | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
errorMessage?: string | undefined;
|
|
45
|
+
}) => void) | undefined;
|
|
46
|
+
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
47
|
+
readonly modelValue: import('@arco-design/web-vue').FileItem[];
|
|
14
48
|
key?: string | number | symbol | undefined;
|
|
15
49
|
ref?: import('vue').VNodeRef | undefined;
|
|
16
50
|
ref_for?: boolean | undefined;
|
|
@@ -54,40 +88,6 @@ declare const ProImageUpload: {
|
|
|
54
88
|
[key: string]: any;
|
|
55
89
|
}>) => void)[] | undefined;
|
|
56
90
|
class?: unknown;
|
|
57
|
-
style?: unknown;
|
|
58
|
-
readonly data?: Record<string, any> | undefined;
|
|
59
|
-
readonly tip?: string | undefined;
|
|
60
|
-
readonly onError?: ((fileItem: import('@arco-design/web-vue').FileItem) => void) | undefined;
|
|
61
|
-
readonly action: string;
|
|
62
|
-
readonly handlerResponse?: ((response: any) => Promise<{
|
|
63
|
-
[key: string]: any;
|
|
64
|
-
success: boolean;
|
|
65
|
-
url?: string | undefined;
|
|
66
|
-
errorMessage?: string | undefined;
|
|
67
|
-
}>) | undefined;
|
|
68
|
-
readonly headers?: Record<string, any> | undefined;
|
|
69
|
-
readonly limit?: number | undefined;
|
|
70
|
-
readonly checkOptions?: import('@keyblade/one-travel').ImageUploadCheckOptions | undefined;
|
|
71
|
-
readonly compressorOptions?: import('@keyblade/one-travel').ImageUploadCompressorOptions | undefined;
|
|
72
|
-
readonly cropOptions?: import('@keyblade/one-travel').ImageUploadCropOptions | undefined;
|
|
73
|
-
readonly onSuccess?: ((fileItem: import('@arco-design/web-vue').FileItem) => void) | undefined;
|
|
74
|
-
readonly onExceed?: ((fileList: import('@arco-design/web-vue').FileItem[], files: File[]) => void) | undefined;
|
|
75
|
-
readonly onBeforeUpload?: ((file: File) => boolean | Promise<any>) | undefined;
|
|
76
|
-
readonly onInnerBeforeUploadStart?: ((file: File, index: number, type: import('./types').EImageUploadInnerBeforeUploadStep) => void) | undefined;
|
|
77
|
-
readonly onInnerBeforeUploadEnd?: ((file: File, index: number, type: import('./types').EImageUploadInnerBeforeUploadStep, result: {
|
|
78
|
-
success: boolean;
|
|
79
|
-
error?: {
|
|
80
|
-
size?: boolean | undefined;
|
|
81
|
-
format?: boolean | undefined;
|
|
82
|
-
transform?: boolean | undefined;
|
|
83
|
-
pixel?: boolean | undefined;
|
|
84
|
-
compress?: boolean | undefined;
|
|
85
|
-
crop?: boolean | undefined;
|
|
86
|
-
} | undefined;
|
|
87
|
-
errorMessage?: string | undefined;
|
|
88
|
-
}) => void) | undefined;
|
|
89
|
-
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
90
|
-
readonly modelValue: import('@arco-design/web-vue').FileItem[];
|
|
91
91
|
};
|
|
92
92
|
$attrs: {
|
|
93
93
|
[x: string]: unknown;
|
|
@@ -110,13 +110,6 @@ declare const ProImageUpload: {
|
|
|
110
110
|
data: {
|
|
111
111
|
type: import('vue').PropType<Record<string, any>>;
|
|
112
112
|
};
|
|
113
|
-
disabled: {
|
|
114
|
-
type: import('vue').PropType<boolean>;
|
|
115
|
-
default: boolean | undefined;
|
|
116
|
-
};
|
|
117
|
-
tip: {
|
|
118
|
-
type: import('vue').PropType<string>;
|
|
119
|
-
};
|
|
120
113
|
onError: {
|
|
121
114
|
type: import('vue').PropType<(fileItem: import('@arco-design/web-vue').FileItem) => void>;
|
|
122
115
|
};
|
|
@@ -139,6 +132,9 @@ declare const ProImageUpload: {
|
|
|
139
132
|
type: import('vue').PropType<string>;
|
|
140
133
|
default: string | undefined;
|
|
141
134
|
};
|
|
135
|
+
tip: {
|
|
136
|
+
type: import('vue').PropType<string>;
|
|
137
|
+
};
|
|
142
138
|
accept: {
|
|
143
139
|
type: import('vue').PropType<string[]>;
|
|
144
140
|
default: () => string[];
|
|
@@ -154,6 +150,10 @@ declare const ProImageUpload: {
|
|
|
154
150
|
limit: {
|
|
155
151
|
type: import('vue').PropType<number>;
|
|
156
152
|
};
|
|
153
|
+
disabled: {
|
|
154
|
+
type: import('vue').PropType<boolean>;
|
|
155
|
+
default: boolean | undefined;
|
|
156
|
+
};
|
|
157
157
|
hideInnerBeforeUploadLoading: {
|
|
158
158
|
type: import('vue').PropType<boolean>;
|
|
159
159
|
default: boolean | undefined;
|
|
@@ -221,6 +221,24 @@ declare const ProImageUpload: {
|
|
|
221
221
|
download?: boolean | undefined;
|
|
222
222
|
showLink?: boolean | undefined;
|
|
223
223
|
listType?: import('@arco-design/web-vue/es/upload/interfaces').ListType | undefined;
|
|
224
|
+
readonly data?: Record<string, string | Blob> | ((fileItem: import('@arco-design/web-vue').FileItem) => Record<string, string | Blob>) | undefined;
|
|
225
|
+
style?: unknown;
|
|
226
|
+
onChange?: ((fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
227
|
+
onError?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
228
|
+
onProgress?: ((fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => any) | undefined;
|
|
229
|
+
readonly action?: string | undefined;
|
|
230
|
+
readonly headers?: Record<string, string> | undefined;
|
|
231
|
+
readonly name?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
232
|
+
readonly tip?: string | undefined;
|
|
233
|
+
readonly accept?: string | undefined;
|
|
234
|
+
onSuccess?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
235
|
+
readonly onBeforeUpload?: ((file: File) => boolean | Promise<boolean | File>) | undefined;
|
|
236
|
+
readonly customRequest?: ((option: import('@arco-design/web-vue').RequestOption) => import('@arco-design/web-vue').UploadRequest) | undefined;
|
|
237
|
+
readonly imageLoading?: "eager" | "lazy" | undefined;
|
|
238
|
+
readonly responseUrlKey?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
239
|
+
readonly customIcon?: import('@arco-design/web-vue').CustomIcon | undefined;
|
|
240
|
+
readonly onBeforeRemove?: ((fileItem: import('@arco-design/web-vue').FileItem) => Promise<boolean>) | undefined;
|
|
241
|
+
readonly onButtonClick?: ((event: Event) => void | Promise<FileList>) | undefined;
|
|
224
242
|
key?: string | number | symbol | undefined;
|
|
225
243
|
ref?: import('vue').VNodeRef | undefined;
|
|
226
244
|
ref_for?: boolean | undefined;
|
|
@@ -264,24 +282,6 @@ declare const ProImageUpload: {
|
|
|
264
282
|
[key: string]: any;
|
|
265
283
|
}>) => void)[] | undefined;
|
|
266
284
|
class?: unknown;
|
|
267
|
-
style?: unknown;
|
|
268
|
-
readonly data?: Record<string, string | Blob> | ((fileItem: import('@arco-design/web-vue').FileItem) => Record<string, string | Blob>) | undefined;
|
|
269
|
-
readonly tip?: string | undefined;
|
|
270
|
-
onChange?: ((fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
271
|
-
onError?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
272
|
-
onProgress?: ((fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => any) | undefined;
|
|
273
|
-
readonly action?: string | undefined;
|
|
274
|
-
readonly headers?: Record<string, string> | undefined;
|
|
275
|
-
readonly name?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
276
|
-
readonly accept?: string | undefined;
|
|
277
|
-
onSuccess?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
278
|
-
readonly onBeforeUpload?: ((file: File) => boolean | Promise<boolean | File>) | undefined;
|
|
279
|
-
readonly customRequest?: ((option: import('@arco-design/web-vue').RequestOption) => import('@arco-design/web-vue').UploadRequest) | undefined;
|
|
280
|
-
readonly imageLoading?: "eager" | "lazy" | undefined;
|
|
281
|
-
readonly responseUrlKey?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
282
|
-
readonly customIcon?: import('@arco-design/web-vue').CustomIcon | undefined;
|
|
283
|
-
readonly onBeforeRemove?: ((fileItem: import('@arco-design/web-vue').FileItem) => Promise<boolean>) | undefined;
|
|
284
|
-
readonly onButtonClick?: ((event: Event) => void | Promise<FileList>) | undefined;
|
|
285
285
|
onExceedLimit?: ((fileList: import('@arco-design/web-vue').FileItem[], files: File[]) => any) | undefined;
|
|
286
286
|
onPreview?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
287
287
|
"onUpdate:fileList"?: ((fileList: import('@arco-design/web-vue').FileItem[]) => any) | undefined;
|
|
@@ -297,7 +297,7 @@ declare const ProImageUpload: {
|
|
|
297
297
|
}>;
|
|
298
298
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
299
299
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
300
|
-
$emit: ((event: "
|
|
300
|
+
$emit: ((event: "progress", fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => void) & ((event: "success", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "error", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "preview", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "change", fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "exceedLimit", fileList: import('@arco-design/web-vue').FileItem[], files: File[]) => void) & ((event: "update:fileList", fileList: import('@arco-design/web-vue').FileItem[]) => void);
|
|
301
301
|
$el: any;
|
|
302
302
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
303
303
|
fileList?: unknown;
|
|
@@ -532,11 +532,11 @@ declare const ProImageUpload: {
|
|
|
532
532
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
533
533
|
cropperImgLoad: (value: File) => void;
|
|
534
534
|
}, string, {
|
|
535
|
-
disabled: boolean;
|
|
536
535
|
name: string;
|
|
537
536
|
accept: string[];
|
|
538
537
|
multiple: boolean;
|
|
539
538
|
singleLimit: number;
|
|
539
|
+
disabled: boolean;
|
|
540
540
|
hideInnerBeforeUploadLoading: boolean;
|
|
541
541
|
}, {}, string, {}> & {
|
|
542
542
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -566,13 +566,6 @@ declare const ProImageUpload: {
|
|
|
566
566
|
data: {
|
|
567
567
|
type: import('vue').PropType<Record<string, any>>;
|
|
568
568
|
};
|
|
569
|
-
disabled: {
|
|
570
|
-
type: import('vue').PropType<boolean>;
|
|
571
|
-
default: boolean | undefined;
|
|
572
|
-
};
|
|
573
|
-
tip: {
|
|
574
|
-
type: import('vue').PropType<string>;
|
|
575
|
-
};
|
|
576
569
|
onError: {
|
|
577
570
|
type: import('vue').PropType<(fileItem: import('@arco-design/web-vue').FileItem) => void>;
|
|
578
571
|
};
|
|
@@ -595,6 +588,9 @@ declare const ProImageUpload: {
|
|
|
595
588
|
type: import('vue').PropType<string>;
|
|
596
589
|
default: string | undefined;
|
|
597
590
|
};
|
|
591
|
+
tip: {
|
|
592
|
+
type: import('vue').PropType<string>;
|
|
593
|
+
};
|
|
598
594
|
accept: {
|
|
599
595
|
type: import('vue').PropType<string[]>;
|
|
600
596
|
default: () => string[];
|
|
@@ -610,6 +606,10 @@ declare const ProImageUpload: {
|
|
|
610
606
|
limit: {
|
|
611
607
|
type: import('vue').PropType<number>;
|
|
612
608
|
};
|
|
609
|
+
disabled: {
|
|
610
|
+
type: import('vue').PropType<boolean>;
|
|
611
|
+
default: boolean | undefined;
|
|
612
|
+
};
|
|
613
613
|
hideInnerBeforeUploadLoading: {
|
|
614
614
|
type: import('vue').PropType<boolean>;
|
|
615
615
|
default: boolean | undefined;
|
|
@@ -677,6 +677,24 @@ declare const ProImageUpload: {
|
|
|
677
677
|
download?: boolean | undefined;
|
|
678
678
|
showLink?: boolean | undefined;
|
|
679
679
|
listType?: import('@arco-design/web-vue/es/upload/interfaces').ListType | undefined;
|
|
680
|
+
readonly data?: Record<string, string | Blob> | ((fileItem: import('@arco-design/web-vue').FileItem) => Record<string, string | Blob>) | undefined;
|
|
681
|
+
style?: unknown;
|
|
682
|
+
onChange?: ((fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
683
|
+
onError?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
684
|
+
onProgress?: ((fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => any) | undefined;
|
|
685
|
+
readonly action?: string | undefined;
|
|
686
|
+
readonly headers?: Record<string, string> | undefined;
|
|
687
|
+
readonly name?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
688
|
+
readonly tip?: string | undefined;
|
|
689
|
+
readonly accept?: string | undefined;
|
|
690
|
+
onSuccess?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
691
|
+
readonly onBeforeUpload?: ((file: File) => boolean | Promise<boolean | File>) | undefined;
|
|
692
|
+
readonly customRequest?: ((option: import('@arco-design/web-vue').RequestOption) => import('@arco-design/web-vue').UploadRequest) | undefined;
|
|
693
|
+
readonly imageLoading?: "eager" | "lazy" | undefined;
|
|
694
|
+
readonly responseUrlKey?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
695
|
+
readonly customIcon?: import('@arco-design/web-vue').CustomIcon | undefined;
|
|
696
|
+
readonly onBeforeRemove?: ((fileItem: import('@arco-design/web-vue').FileItem) => Promise<boolean>) | undefined;
|
|
697
|
+
readonly onButtonClick?: ((event: Event) => void | Promise<FileList>) | undefined;
|
|
680
698
|
key?: string | number | symbol | undefined;
|
|
681
699
|
ref?: import('vue').VNodeRef | undefined;
|
|
682
700
|
ref_for?: boolean | undefined;
|
|
@@ -720,24 +738,6 @@ declare const ProImageUpload: {
|
|
|
720
738
|
[key: string]: any;
|
|
721
739
|
}>) => void)[] | undefined;
|
|
722
740
|
class?: unknown;
|
|
723
|
-
style?: unknown;
|
|
724
|
-
readonly data?: Record<string, string | Blob> | ((fileItem: import('@arco-design/web-vue').FileItem) => Record<string, string | Blob>) | undefined;
|
|
725
|
-
readonly tip?: string | undefined;
|
|
726
|
-
onChange?: ((fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
727
|
-
onError?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
728
|
-
onProgress?: ((fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => any) | undefined;
|
|
729
|
-
readonly action?: string | undefined;
|
|
730
|
-
readonly headers?: Record<string, string> | undefined;
|
|
731
|
-
readonly name?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
732
|
-
readonly accept?: string | undefined;
|
|
733
|
-
onSuccess?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
734
|
-
readonly onBeforeUpload?: ((file: File) => boolean | Promise<boolean | File>) | undefined;
|
|
735
|
-
readonly customRequest?: ((option: import('@arco-design/web-vue').RequestOption) => import('@arco-design/web-vue').UploadRequest) | undefined;
|
|
736
|
-
readonly imageLoading?: "eager" | "lazy" | undefined;
|
|
737
|
-
readonly responseUrlKey?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
738
|
-
readonly customIcon?: import('@arco-design/web-vue').CustomIcon | undefined;
|
|
739
|
-
readonly onBeforeRemove?: ((fileItem: import('@arco-design/web-vue').FileItem) => Promise<boolean>) | undefined;
|
|
740
|
-
readonly onButtonClick?: ((event: Event) => void | Promise<FileList>) | undefined;
|
|
741
741
|
onExceedLimit?: ((fileList: import('@arco-design/web-vue').FileItem[], files: File[]) => any) | undefined;
|
|
742
742
|
onPreview?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
743
743
|
"onUpdate:fileList"?: ((fileList: import('@arco-design/web-vue').FileItem[]) => any) | undefined;
|
|
@@ -753,7 +753,7 @@ declare const ProImageUpload: {
|
|
|
753
753
|
}>;
|
|
754
754
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
755
755
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
756
|
-
$emit: ((event: "
|
|
756
|
+
$emit: ((event: "progress", fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => void) & ((event: "success", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "error", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "preview", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "change", fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "exceedLimit", fileList: import('@arco-design/web-vue').FileItem[], files: File[]) => void) & ((event: "update:fileList", fileList: import('@arco-design/web-vue').FileItem[]) => void);
|
|
757
757
|
$el: any;
|
|
758
758
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
759
759
|
fileList?: unknown;
|
|
@@ -997,13 +997,6 @@ declare const ProImageUpload: {
|
|
|
997
997
|
data: {
|
|
998
998
|
type: import('vue').PropType<Record<string, any>>;
|
|
999
999
|
};
|
|
1000
|
-
disabled: {
|
|
1001
|
-
type: import('vue').PropType<boolean>;
|
|
1002
|
-
default: boolean | undefined;
|
|
1003
|
-
};
|
|
1004
|
-
tip: {
|
|
1005
|
-
type: import('vue').PropType<string>;
|
|
1006
|
-
};
|
|
1007
1000
|
onError: {
|
|
1008
1001
|
type: import('vue').PropType<(fileItem: import('@arco-design/web-vue').FileItem) => void>;
|
|
1009
1002
|
};
|
|
@@ -1026,6 +1019,9 @@ declare const ProImageUpload: {
|
|
|
1026
1019
|
type: import('vue').PropType<string>;
|
|
1027
1020
|
default: string | undefined;
|
|
1028
1021
|
};
|
|
1022
|
+
tip: {
|
|
1023
|
+
type: import('vue').PropType<string>;
|
|
1024
|
+
};
|
|
1029
1025
|
accept: {
|
|
1030
1026
|
type: import('vue').PropType<string[]>;
|
|
1031
1027
|
default: () => string[];
|
|
@@ -1041,6 +1037,10 @@ declare const ProImageUpload: {
|
|
|
1041
1037
|
limit: {
|
|
1042
1038
|
type: import('vue').PropType<number>;
|
|
1043
1039
|
};
|
|
1040
|
+
disabled: {
|
|
1041
|
+
type: import('vue').PropType<boolean>;
|
|
1042
|
+
default: boolean | undefined;
|
|
1043
|
+
};
|
|
1044
1044
|
hideInnerBeforeUploadLoading: {
|
|
1045
1045
|
type: import('vue').PropType<boolean>;
|
|
1046
1046
|
default: boolean | undefined;
|
|
@@ -1108,6 +1108,24 @@ declare const ProImageUpload: {
|
|
|
1108
1108
|
download?: boolean | undefined;
|
|
1109
1109
|
showLink?: boolean | undefined;
|
|
1110
1110
|
listType?: import('@arco-design/web-vue/es/upload/interfaces').ListType | undefined;
|
|
1111
|
+
readonly data?: Record<string, string | Blob> | ((fileItem: import('@arco-design/web-vue').FileItem) => Record<string, string | Blob>) | undefined;
|
|
1112
|
+
style?: unknown;
|
|
1113
|
+
onChange?: ((fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
1114
|
+
onError?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
1115
|
+
onProgress?: ((fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => any) | undefined;
|
|
1116
|
+
readonly action?: string | undefined;
|
|
1117
|
+
readonly headers?: Record<string, string> | undefined;
|
|
1118
|
+
readonly name?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
1119
|
+
readonly tip?: string | undefined;
|
|
1120
|
+
readonly accept?: string | undefined;
|
|
1121
|
+
onSuccess?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
1122
|
+
readonly onBeforeUpload?: ((file: File) => boolean | Promise<boolean | File>) | undefined;
|
|
1123
|
+
readonly customRequest?: ((option: import('@arco-design/web-vue').RequestOption) => import('@arco-design/web-vue').UploadRequest) | undefined;
|
|
1124
|
+
readonly imageLoading?: "eager" | "lazy" | undefined;
|
|
1125
|
+
readonly responseUrlKey?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
1126
|
+
readonly customIcon?: import('@arco-design/web-vue').CustomIcon | undefined;
|
|
1127
|
+
readonly onBeforeRemove?: ((fileItem: import('@arco-design/web-vue').FileItem) => Promise<boolean>) | undefined;
|
|
1128
|
+
readonly onButtonClick?: ((event: Event) => void | Promise<FileList>) | undefined;
|
|
1111
1129
|
key?: string | number | symbol | undefined;
|
|
1112
1130
|
ref?: import('vue').VNodeRef | undefined;
|
|
1113
1131
|
ref_for?: boolean | undefined;
|
|
@@ -1151,24 +1169,6 @@ declare const ProImageUpload: {
|
|
|
1151
1169
|
[key: string]: any;
|
|
1152
1170
|
}>) => void)[] | undefined;
|
|
1153
1171
|
class?: unknown;
|
|
1154
|
-
style?: unknown;
|
|
1155
|
-
readonly data?: Record<string, string | Blob> | ((fileItem: import('@arco-design/web-vue').FileItem) => Record<string, string | Blob>) | undefined;
|
|
1156
|
-
readonly tip?: string | undefined;
|
|
1157
|
-
onChange?: ((fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
1158
|
-
onError?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
1159
|
-
onProgress?: ((fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => any) | undefined;
|
|
1160
|
-
readonly action?: string | undefined;
|
|
1161
|
-
readonly headers?: Record<string, string> | undefined;
|
|
1162
|
-
readonly name?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
1163
|
-
readonly accept?: string | undefined;
|
|
1164
|
-
onSuccess?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
1165
|
-
readonly onBeforeUpload?: ((file: File) => boolean | Promise<boolean | File>) | undefined;
|
|
1166
|
-
readonly customRequest?: ((option: import('@arco-design/web-vue').RequestOption) => import('@arco-design/web-vue').UploadRequest) | undefined;
|
|
1167
|
-
readonly imageLoading?: "eager" | "lazy" | undefined;
|
|
1168
|
-
readonly responseUrlKey?: string | ((fileItem: import('@arco-design/web-vue').FileItem) => string) | undefined;
|
|
1169
|
-
readonly customIcon?: import('@arco-design/web-vue').CustomIcon | undefined;
|
|
1170
|
-
readonly onBeforeRemove?: ((fileItem: import('@arco-design/web-vue').FileItem) => Promise<boolean>) | undefined;
|
|
1171
|
-
readonly onButtonClick?: ((event: Event) => void | Promise<FileList>) | undefined;
|
|
1172
1172
|
onExceedLimit?: ((fileList: import('@arco-design/web-vue').FileItem[], files: File[]) => any) | undefined;
|
|
1173
1173
|
onPreview?: ((fileItem: import('@arco-design/web-vue').FileItem) => any) | undefined;
|
|
1174
1174
|
"onUpdate:fileList"?: ((fileList: import('@arco-design/web-vue').FileItem[]) => any) | undefined;
|
|
@@ -1184,7 +1184,7 @@ declare const ProImageUpload: {
|
|
|
1184
1184
|
}>;
|
|
1185
1185
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
1186
1186
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
1187
|
-
$emit: ((event: "
|
|
1187
|
+
$emit: ((event: "progress", fileItem: import('@arco-design/web-vue').FileItem, ev?: ProgressEvent<EventTarget> | undefined) => void) & ((event: "success", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "error", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "preview", fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "change", fileList: import('@arco-design/web-vue').FileItem[], fileItem: import('@arco-design/web-vue').FileItem) => void) & ((event: "exceedLimit", fileList: import('@arco-design/web-vue').FileItem[], files: File[]) => void) & ((event: "update:fileList", fileList: import('@arco-design/web-vue').FileItem[]) => void);
|
|
1188
1188
|
$el: any;
|
|
1189
1189
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
1190
1190
|
fileList?: unknown;
|
|
@@ -1419,11 +1419,11 @@ declare const ProImageUpload: {
|
|
|
1419
1419
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1420
1420
|
cropperImgLoad: (value: File) => void;
|
|
1421
1421
|
}, string, {
|
|
1422
|
-
disabled: boolean;
|
|
1423
1422
|
name: string;
|
|
1424
1423
|
accept: string[];
|
|
1425
1424
|
multiple: boolean;
|
|
1426
1425
|
singleLimit: number;
|
|
1426
|
+
disabled: boolean;
|
|
1427
1427
|
hideInnerBeforeUploadLoading: boolean;
|
|
1428
1428
|
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
1429
1429
|
install: (app: App) => void;
|
|
@@ -8,6 +8,7 @@ declare const ProKeepAliveRouterView: {
|
|
|
8
8
|
keepAliveInclude?: string[] | undefined;
|
|
9
9
|
keepAliveExclude?: string[] | undefined;
|
|
10
10
|
keepAliveMax?: number | undefined;
|
|
11
|
+
style?: unknown;
|
|
11
12
|
key?: string | number | symbol | undefined;
|
|
12
13
|
ref?: import('vue').VNodeRef | undefined;
|
|
13
14
|
ref_for?: boolean | undefined;
|
|
@@ -51,7 +52,6 @@ declare const ProKeepAliveRouterView: {
|
|
|
51
52
|
[key: string]: any;
|
|
52
53
|
}>) => void)[] | undefined;
|
|
53
54
|
class?: unknown;
|
|
54
|
-
style?: unknown;
|
|
55
55
|
};
|
|
56
56
|
$attrs: {
|
|
57
57
|
[x: string]: unknown;
|
package/es/pro-layout/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const ProLayout: {
|
|
|
22
22
|
hideFooter?: boolean | undefined;
|
|
23
23
|
hideTabs?: boolean | undefined;
|
|
24
24
|
disableKeepAlive?: boolean | undefined;
|
|
25
|
+
style?: unknown;
|
|
25
26
|
key?: string | number | symbol | undefined;
|
|
26
27
|
ref?: import('vue').VNodeRef | undefined;
|
|
27
28
|
ref_for?: boolean | undefined;
|
|
@@ -65,7 +66,6 @@ declare const ProLayout: {
|
|
|
65
66
|
[key: string]: any;
|
|
66
67
|
}>) => void)[] | undefined;
|
|
67
68
|
class?: unknown;
|
|
68
|
-
style?: unknown;
|
|
69
69
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
70
70
|
onKeepAliveIncludeChange?: ((keepAliveInclude: string[]) => any) | undefined;
|
|
71
71
|
};
|
package/es/pro-menu/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ declare const ProMenu: {
|
|
|
7
7
|
$props: {
|
|
8
8
|
mode?: "horizontal" | "vertical" | undefined;
|
|
9
9
|
menuProps?: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps> | undefined;
|
|
10
|
+
style?: unknown;
|
|
10
11
|
key?: string | number | symbol | undefined;
|
|
11
12
|
ref?: import('vue').VNodeRef | undefined;
|
|
12
13
|
ref_for?: boolean | undefined;
|
|
@@ -50,7 +51,6 @@ declare const ProMenu: {
|
|
|
50
51
|
[key: string]: any;
|
|
51
52
|
}>) => void)[] | undefined;
|
|
52
53
|
class?: unknown;
|
|
53
|
-
style?: unknown;
|
|
54
54
|
readonly collapsed: boolean;
|
|
55
55
|
readonly selectedKeys: string[];
|
|
56
56
|
readonly items: import('./interface').IProMenuItem[];
|
|
@@ -18,6 +18,7 @@ declare const ProPageContainer: {
|
|
|
18
18
|
path?: string | undefined;
|
|
19
19
|
}[] | undefined;
|
|
20
20
|
} | undefined;
|
|
21
|
+
style?: unknown;
|
|
21
22
|
key?: string | number | symbol | undefined;
|
|
22
23
|
ref?: import('vue').VNodeRef | undefined;
|
|
23
24
|
ref_for?: boolean | undefined;
|
|
@@ -61,7 +62,6 @@ declare const ProPageContainer: {
|
|
|
61
62
|
[key: string]: any;
|
|
62
63
|
}>) => void)[] | undefined;
|
|
63
64
|
class?: unknown;
|
|
64
|
-
style?: unknown;
|
|
65
65
|
};
|
|
66
66
|
$attrs: {
|
|
67
67
|
[x: string]: unknown;
|
|
@@ -6,15 +6,16 @@ declare const ProPageHeader: {
|
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: {
|
|
8
8
|
title?: string | undefined;
|
|
9
|
-
hideTitle?: boolean | undefined;
|
|
10
9
|
breadcrumbItems?: {
|
|
11
10
|
path?: string | undefined;
|
|
12
11
|
label: string;
|
|
13
12
|
}[] | undefined;
|
|
14
13
|
subTitle?: string | undefined;
|
|
15
14
|
titlePosition?: "top" | "bottom" | undefined;
|
|
15
|
+
hideTitle?: boolean | undefined;
|
|
16
16
|
breadcrumbRouterMode?: boolean | undefined;
|
|
17
17
|
breadcrumbPrefixIcon?: string | boolean | undefined;
|
|
18
|
+
style?: unknown;
|
|
18
19
|
key?: string | number | symbol | undefined;
|
|
19
20
|
ref?: import('vue').VNodeRef | undefined;
|
|
20
21
|
ref_for?: boolean | undefined;
|
|
@@ -58,7 +59,6 @@ declare const ProPageHeader: {
|
|
|
58
59
|
[key: string]: any;
|
|
59
60
|
}>) => void)[] | undefined;
|
|
60
61
|
class?: unknown;
|
|
61
|
-
style?: unknown;
|
|
62
62
|
};
|
|
63
63
|
$attrs: {
|
|
64
64
|
[x: string]: unknown;
|
|
@@ -114,13 +114,13 @@ declare const ProPageHeader: {
|
|
|
114
114
|
};
|
|
115
115
|
}>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
116
116
|
title: string;
|
|
117
|
-
hideTitle: boolean;
|
|
118
117
|
breadcrumbItems: {
|
|
119
118
|
path?: string | undefined;
|
|
120
119
|
label: string;
|
|
121
120
|
}[];
|
|
122
121
|
subTitle: string;
|
|
123
122
|
titlePosition: "top" | "bottom";
|
|
123
|
+
hideTitle: boolean;
|
|
124
124
|
breadcrumbRouterMode: boolean;
|
|
125
125
|
breadcrumbPrefixIcon: string | boolean;
|
|
126
126
|
}, {}, string, {}> & {
|
|
@@ -227,13 +227,13 @@ declare const ProPageHeader: {
|
|
|
227
227
|
};
|
|
228
228
|
}>>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
229
229
|
title: string;
|
|
230
|
-
hideTitle: boolean;
|
|
231
230
|
breadcrumbItems: {
|
|
232
231
|
path?: string | undefined;
|
|
233
232
|
label: string;
|
|
234
233
|
}[];
|
|
235
234
|
subTitle: string;
|
|
236
235
|
titlePosition: "top" | "bottom";
|
|
236
|
+
hideTitle: boolean;
|
|
237
237
|
breadcrumbRouterMode: boolean;
|
|
238
238
|
breadcrumbPrefixIcon: string | boolean;
|
|
239
239
|
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
@@ -94,13 +94,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
94
94
|
};
|
|
95
95
|
}>>, {
|
|
96
96
|
title: string;
|
|
97
|
-
hideTitle: boolean;
|
|
98
97
|
breadcrumbItems: {
|
|
99
98
|
path?: string | undefined;
|
|
100
99
|
label: string;
|
|
101
100
|
}[];
|
|
102
101
|
subTitle: string;
|
|
103
102
|
titlePosition: "top" | "bottom";
|
|
103
|
+
hideTitle: boolean;
|
|
104
104
|
breadcrumbRouterMode: boolean;
|
|
105
105
|
breadcrumbPrefixIcon: string | boolean;
|
|
106
106
|
}, {}>;
|
|
@@ -9,6 +9,7 @@ declare const ProReuseTabs: {
|
|
|
9
9
|
tabsSize?: "small" | "mini" | "medium" | "large" | undefined;
|
|
10
10
|
tabsType?: "line" | "text" | "card" | "card-gutter" | "rounded" | "capsule" | undefined;
|
|
11
11
|
tabsHeaderPadding?: boolean | undefined;
|
|
12
|
+
style?: unknown;
|
|
12
13
|
key?: string | number | symbol | undefined;
|
|
13
14
|
ref?: import('vue').VNodeRef | undefined;
|
|
14
15
|
ref_for?: boolean | undefined;
|
|
@@ -52,7 +53,6 @@ declare const ProReuseTabs: {
|
|
|
52
53
|
[key: string]: any;
|
|
53
54
|
}>) => void)[] | undefined;
|
|
54
55
|
class?: unknown;
|
|
55
|
-
style?: unknown;
|
|
56
56
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
57
57
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
58
58
|
};
|
package/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.keyblade-pro-page-header{background:var(--color-bg-2);padding:16px 32px}.keyblade-pro-page-header .keyblade-pro-page-header-section-breadcrumb .arco-breadcrumb-item:first-child{padding-left:0}.keyblade-pro-page-header .keyblade-pro-page-header-title.arco-typography{padding-top:4px;margin-top:0}.keyblade-pro-layout{width:100%;height:100%}.keyblade-pro-layout .keyblade-pro-layout-header{position:fixed;top:0;left:0;width:100%;height:var(--2156faf3);z-index:100;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background-color:var(--color-bg-2);border-bottom:1px solid var(--color-border);transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-header-left{cursor:pointer;display:flex;align-items:center}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-img{width:28px;height:28px}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout .keyblade-pro-layout-header-center{flex:1}.keyblade-pro-layout .keyblade-pro-layout-sider{padding-top:var(--2156faf3);position:fixed;top:0;left:0;z-index:99;height:100%;transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-sider-content{position:relative;height:100%;overflow:auto}.keyblade-pro-layout .keyblade-pro-layout-sider-collapse-btn.arco-btn{position:absolute;right:12px;bottom:12px}.keyblade-pro-layout .keyblade-pro-layout-body{padding-top:var(--2156faf3);padding-left:var(--2e3e7e4c);min-height:100vh;overflow-y:hidden;background-color:var(--color-fill-2);transition:padding .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-body-affix .arco-affix{z-index:98}.keyblade-pro-layout .keyblade-pro-layout-body-footer{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}.keyblade-pro-layout .keyblade-pro-layout-body-collapsed{padding-left:var(--a70b89aa)}.keyblade-pro-layout-side .keyblade-pro-layout-header{z-index:98;left:var(--2e3e7e4c);width:calc(100% - var(--2e3e7e4c))}.keyblade-pro-layout-side .keyblade-pro-layout-header-collapsed{left:var(--a70b89aa);width:calc(100% - var(--a70b89aa))}.keyblade-pro-layout-side .keyblade-pro-layout-sider{padding-top:0}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo{position:relative;display:flex;align-items:center;padding:16px;cursor:pointer;transition:padding .3s cubic-bezier(.645,.045,.355,1)}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-img{width:28px;height:28px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-collapsed .keyblade-pro-layout-sider-content-logo{padding:16px 10px}.keyblade-pro-
|
|
1
|
+
.keyblade-pro-page-header{background:var(--color-bg-2);padding:16px 32px}.keyblade-pro-page-header .keyblade-pro-page-header-section-breadcrumb .arco-breadcrumb-item:first-child{padding-left:0}.keyblade-pro-page-header .keyblade-pro-page-header-title.arco-typography{padding-top:4px;margin-top:0}.keyblade-pro-menu .keyblade-pro-menu-item-img{width:14px;height:auto}.keyblade-pro-layout{width:100%;height:100%}.keyblade-pro-layout .keyblade-pro-layout-header{position:fixed;top:0;left:0;width:100%;height:var(--2156faf3);z-index:100;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background-color:var(--color-bg-2);border-bottom:1px solid var(--color-border);transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-header-left{cursor:pointer;display:flex;align-items:center}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-img{width:28px;height:28px}.keyblade-pro-layout .keyblade-pro-layout-header-left-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout .keyblade-pro-layout-header-center{flex:1}.keyblade-pro-layout .keyblade-pro-layout-sider{padding-top:var(--2156faf3);position:fixed;top:0;left:0;z-index:99;height:100%;transition:all .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-sider-content{position:relative;height:100%;overflow:auto}.keyblade-pro-layout .keyblade-pro-layout-sider-collapse-btn.arco-btn{position:absolute;right:12px;bottom:12px}.keyblade-pro-layout .keyblade-pro-layout-body{padding-top:var(--2156faf3);padding-left:var(--2e3e7e4c);min-height:100vh;overflow-y:hidden;background-color:var(--color-fill-2);transition:padding .2s cubic-bezier(.34,.69,.1,1)}.keyblade-pro-layout .keyblade-pro-layout-body-affix .arco-affix{z-index:98}.keyblade-pro-layout .keyblade-pro-layout-body-footer{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center}.keyblade-pro-layout .keyblade-pro-layout-body-collapsed{padding-left:var(--a70b89aa)}.keyblade-pro-layout-side .keyblade-pro-layout-header{z-index:98;left:var(--2e3e7e4c);width:calc(100% - var(--2e3e7e4c))}.keyblade-pro-layout-side .keyblade-pro-layout-header-collapsed{left:var(--a70b89aa);width:calc(100% - var(--a70b89aa))}.keyblade-pro-layout-side .keyblade-pro-layout-sider{padding-top:0}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo{position:relative;display:flex;align-items:center;padding:16px;cursor:pointer;transition:padding .3s cubic-bezier(.645,.045,.355,1)}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-img{width:28px;height:28px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-content-logo-title.arco-typography{margin:0;font-size:18px}.keyblade-pro-layout-side .keyblade-pro-layout-sider-collapsed .keyblade-pro-layout-sider-content-logo{padding:16px 10px}.keyblade-pro-reuse-tabs{position:relative;background-color:var(--color-bg-2);padding:4px 20px}.keyblade-pro-page-container .keyblade-pro-page-container-content{padding:20px}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@keyblade/pro-components",
|
|
3
3
|
"description": "KeyBlade Pro Components",
|
|
4
4
|
"author": "yangshuai <704807396@qq.com>",
|
|
5
|
-
"version": "1.12.0-alpha.
|
|
5
|
+
"version": "1.12.0-alpha.7",
|
|
6
6
|
"private": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "es/index.js",
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
"@vueuse/core": "^10.7.0",
|
|
26
26
|
"vue-cropper": "^1.1.4",
|
|
27
27
|
"vue-global-config": "^0.6.3",
|
|
28
|
-
"@keyblade/one-travel": "^3.0.0"
|
|
29
|
-
"heic-to": "^1.1.5"
|
|
28
|
+
"@keyblade/one-travel": "^3.0.0"
|
|
30
29
|
},
|
|
31
30
|
"peerDependencies": {
|
|
32
31
|
"vue": "^3.3.4"
|