@keyblade/pro-components 1.12.16 → 1.12.17
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-date-range-picker/index.d.ts +70 -0
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +1 -3
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +2 -2
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +35 -31
- package/es/pro-date-range-picker/type.d.ts +3 -0
- package/es/pro-image-upload/cropper.vue.js +1 -1
- package/es/pro-image-upload/cropper.vue2.js +57 -49
- package/es/pro-image-upload/types.d.ts +1 -1
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
declare const ProDateRangePicker: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
modelValue: import('./type').IModelValue;
|
|
5
|
+
startField?: string;
|
|
6
|
+
endField?: string;
|
|
7
|
+
startPlaceholder?: string;
|
|
8
|
+
endPlaceholder?: string;
|
|
9
|
+
separator?: string;
|
|
10
|
+
}> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: import('./type').IModelValue) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
|
+
"update:modelValue": (value: import('./type').IModelValue) => any;
|
|
14
|
+
}, import('vue').PublicProps, {
|
|
15
|
+
startField: string;
|
|
16
|
+
endField: string;
|
|
17
|
+
startPlaceholder: string;
|
|
18
|
+
endPlaceholder: string;
|
|
19
|
+
separator: string;
|
|
20
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
21
|
+
startDatePickerRef: unknown;
|
|
22
|
+
endDatePickerRef: unknown;
|
|
23
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
24
|
+
P: {};
|
|
25
|
+
B: {};
|
|
26
|
+
D: {};
|
|
27
|
+
C: {};
|
|
28
|
+
M: {};
|
|
29
|
+
Defaults: {};
|
|
30
|
+
}, Readonly<{
|
|
31
|
+
modelValue: import('./type').IModelValue;
|
|
32
|
+
startField?: string;
|
|
33
|
+
endField?: string;
|
|
34
|
+
startPlaceholder?: string;
|
|
35
|
+
endPlaceholder?: string;
|
|
36
|
+
separator?: string;
|
|
37
|
+
}> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: import('./type').IModelValue) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, {
|
|
40
|
+
startField: string;
|
|
41
|
+
endField: string;
|
|
42
|
+
startPlaceholder: string;
|
|
43
|
+
endPlaceholder: string;
|
|
44
|
+
separator: string;
|
|
45
|
+
}>;
|
|
46
|
+
__isFragment?: never;
|
|
47
|
+
__isTeleport?: never;
|
|
48
|
+
__isSuspense?: never;
|
|
49
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
50
|
+
modelValue: import('./type').IModelValue;
|
|
51
|
+
startField?: string;
|
|
52
|
+
endField?: string;
|
|
53
|
+
startPlaceholder?: string;
|
|
54
|
+
endPlaceholder?: string;
|
|
55
|
+
separator?: string;
|
|
56
|
+
}> & Readonly<{
|
|
57
|
+
"onUpdate:modelValue"?: ((value: import('./type').IModelValue) => any) | undefined;
|
|
58
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
59
|
+
"update:modelValue": (value: import('./type').IModelValue) => any;
|
|
60
|
+
}, string, {
|
|
61
|
+
startField: string;
|
|
62
|
+
endField: string;
|
|
63
|
+
startPlaceholder: string;
|
|
64
|
+
endPlaceholder: string;
|
|
65
|
+
separator: string;
|
|
66
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
67
|
+
install: (app: App) => void;
|
|
68
|
+
};
|
|
69
|
+
export { ProDateRangePicker };
|
|
70
|
+
export default ProDateRangePicker;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./pro-date-range-picker.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const _ = /* @__PURE__ */
|
|
3
|
+
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8dc7d86d"]]);
|
|
5
5
|
export {
|
|
6
6
|
_ as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as C,
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as C, useAttrs as E, computed as n, ref as V, resolveComponent as k, createElementBlock as S, openBlock as R, normalizeClass as T, createVNode as d, withCtx as s, createTextVNode as x, toDisplayString as A, mergeProps as B, nextTick as h } from "vue";
|
|
2
|
+
import r from "dayjs";
|
|
3
|
+
const N = "keyblade-pro-date-range-picker", $ = /* @__PURE__ */ C({
|
|
4
4
|
__name: "pro-date-range-picker",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -11,8 +11,11 @@ const T = "keyblade-pro-date-range-picker", N = /* @__PURE__ */ C({
|
|
|
11
11
|
separator: { default: "至" }
|
|
12
12
|
},
|
|
13
13
|
emits: ["update:modelValue"],
|
|
14
|
-
setup(D, { emit:
|
|
15
|
-
const e = D,
|
|
14
|
+
setup(D, { emit: g }) {
|
|
15
|
+
const e = D, F = E(), _ = n(() => {
|
|
16
|
+
const { class: t, ...l } = F;
|
|
17
|
+
return l;
|
|
18
|
+
}), i = g, u = V(), m = V(), c = n({
|
|
16
19
|
get: () => e.modelValue[e.startField],
|
|
17
20
|
set: (t) => {
|
|
18
21
|
i("update:modelValue", {
|
|
@@ -20,7 +23,7 @@ const T = "keyblade-pro-date-range-picker", N = /* @__PURE__ */ C({
|
|
|
20
23
|
[e.startField]: t
|
|
21
24
|
});
|
|
22
25
|
}
|
|
23
|
-
}), p =
|
|
26
|
+
}), p = n({
|
|
24
27
|
get: () => e.modelValue[e.endField],
|
|
25
28
|
set: (t) => {
|
|
26
29
|
i("update:modelValue", {
|
|
@@ -28,11 +31,11 @@ const T = "keyblade-pro-date-range-picker", N = /* @__PURE__ */ C({
|
|
|
28
31
|
[e.endField]: t
|
|
29
32
|
});
|
|
30
33
|
}
|
|
31
|
-
}),
|
|
34
|
+
}), b = (t) => e.modelValue.endDate ? r(t).isAfter(r(e.modelValue[e.startField])) : !1, P = (t) => e.modelValue.startDate ? r(t).isBefore(r(e.modelValue[e.endField])) : !1, v = () => {
|
|
32
35
|
setTimeout(() => {
|
|
33
36
|
e.modelValue[e.startField] && !e.modelValue[e.endField] && h(() => {
|
|
34
37
|
var l;
|
|
35
|
-
const t = (l =
|
|
38
|
+
const t = (l = m.value) == null ? void 0 : l.$el.parentElement.querySelector("input");
|
|
36
39
|
t && t.click();
|
|
37
40
|
});
|
|
38
41
|
});
|
|
@@ -40,57 +43,58 @@ const T = "keyblade-pro-date-range-picker", N = /* @__PURE__ */ C({
|
|
|
40
43
|
setTimeout(() => {
|
|
41
44
|
e.modelValue[e.endField] && !e.modelValue[e.startField] && h(() => {
|
|
42
45
|
var l;
|
|
43
|
-
const t = (l =
|
|
46
|
+
const t = (l = u.value) == null ? void 0 : l.$el.parentElement.querySelector("input");
|
|
44
47
|
t && t.click();
|
|
45
48
|
});
|
|
46
49
|
});
|
|
47
50
|
};
|
|
48
51
|
return (t, l) => {
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
-
class:
|
|
52
|
+
const f = k("a-date-picker"), o = k("a-form-item");
|
|
53
|
+
return R(), S("div", {
|
|
54
|
+
class: T(N)
|
|
52
55
|
}, [
|
|
53
|
-
d(
|
|
56
|
+
d(o, {
|
|
54
57
|
field: t.startField,
|
|
55
58
|
style: { "margin-right": "8px" },
|
|
56
59
|
"hide-label": ""
|
|
57
60
|
}, {
|
|
58
|
-
default:
|
|
59
|
-
d(
|
|
61
|
+
default: s(() => [
|
|
62
|
+
d(f, {
|
|
60
63
|
ref_key: "startDatePickerRef",
|
|
61
|
-
ref:
|
|
62
|
-
modelValue:
|
|
63
|
-
"onUpdate:modelValue": l[0] || (l[0] = (a) =>
|
|
64
|
+
ref: u,
|
|
65
|
+
modelValue: c.value,
|
|
66
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => c.value = a),
|
|
64
67
|
placeholder: t.startPlaceholder,
|
|
65
|
-
"disabled-date": (a) =>
|
|
66
|
-
onChange:
|
|
68
|
+
"disabled-date": (a) => b(a),
|
|
69
|
+
onChange: v
|
|
67
70
|
}, null, 8, ["modelValue", "placeholder", "disabled-date"])
|
|
68
71
|
]),
|
|
69
72
|
_: 1
|
|
70
73
|
}, 8, ["field"]),
|
|
71
|
-
d(
|
|
74
|
+
d(o, {
|
|
72
75
|
"hide-label": "",
|
|
73
76
|
style: { "margin-right": "8px" }
|
|
74
77
|
}, {
|
|
75
|
-
default:
|
|
76
|
-
|
|
78
|
+
default: s(() => [
|
|
79
|
+
x(A(t.separator), 1)
|
|
77
80
|
]),
|
|
78
81
|
_: 1
|
|
79
82
|
}),
|
|
80
|
-
d(
|
|
83
|
+
d(o, {
|
|
81
84
|
field: t.endField,
|
|
82
85
|
"hide-label": ""
|
|
83
86
|
}, {
|
|
84
|
-
default:
|
|
85
|
-
d(
|
|
87
|
+
default: s(() => [
|
|
88
|
+
d(f, B({
|
|
86
89
|
ref_key: "endDatePickerRef",
|
|
87
|
-
ref:
|
|
90
|
+
ref: m,
|
|
88
91
|
modelValue: p.value,
|
|
89
|
-
"onUpdate:modelValue": l[1] || (l[1] = (a) => p.value = a)
|
|
92
|
+
"onUpdate:modelValue": l[1] || (l[1] = (a) => p.value = a)
|
|
93
|
+
}, _.value, {
|
|
90
94
|
placeholder: t.endPlaceholder,
|
|
91
|
-
"disabled-date": (a) =>
|
|
95
|
+
"disabled-date": (a) => P(a),
|
|
92
96
|
onChange: y
|
|
93
|
-
}, null,
|
|
97
|
+
}), null, 16, ["modelValue", "placeholder", "disabled-date"])
|
|
94
98
|
]),
|
|
95
99
|
_: 1
|
|
96
100
|
}, 8, ["field"])
|
|
@@ -99,5 +103,5 @@ const T = "keyblade-pro-date-range-picker", N = /* @__PURE__ */ C({
|
|
|
99
103
|
}
|
|
100
104
|
});
|
|
101
105
|
export {
|
|
102
|
-
|
|
106
|
+
$ as default
|
|
103
107
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./cropper.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1bddf267"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as D, ref as d,
|
|
1
|
+
import { defineComponent as D, ref as d, computed as M, watch as q, resolveComponent as l, createBlock as G, openBlock as J, normalizeClass as m, withCtx as n, createVNode as e, createElementVNode as y, mergeProps as K, createTextVNode as W, nextTick as C } from "vue";
|
|
2
2
|
import "vue-cropper/dist/index.css";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import O from "vue-cropper/lib/vue-cropper.vue";
|
|
4
|
+
const s = "keyblade-pro-image-upload-cropper", Z = /* @__PURE__ */ D({
|
|
5
5
|
__name: "cropper",
|
|
6
6
|
props: {
|
|
7
7
|
file: {},
|
|
@@ -9,15 +9,23 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
9
9
|
options: {}
|
|
10
10
|
},
|
|
11
11
|
emits: ["cancel", "confirm", "imgLoad", "reUpload"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(x, { expose: H, emit: R }) {
|
|
13
|
+
const c = x, f = R, o = d(), w = d(), u = d(!0), _ = d(!1), z = M(() => {
|
|
14
|
+
var t;
|
|
15
|
+
const a = (((t = c == null ? void 0 : c.file) == null ? void 0 : t.name) || "").toLowerCase();
|
|
16
|
+
return a.endsWith(".jpg") || a.endsWith(".jpeg") ? {
|
|
17
|
+
...c.options,
|
|
18
|
+
outputType: "jpeg",
|
|
19
|
+
outputSize: 0.95
|
|
20
|
+
} : c.options;
|
|
21
|
+
}), g = d({
|
|
14
22
|
autoCropWidth: 100,
|
|
15
23
|
autoCropHeight: 100
|
|
16
|
-
}),
|
|
24
|
+
}), I = () => {
|
|
17
25
|
o.value.changeScale(1);
|
|
18
|
-
}, I = () => {
|
|
19
|
-
o.value.changeScale(-1);
|
|
20
26
|
}, L = () => {
|
|
27
|
+
o.value.changeScale(-1);
|
|
28
|
+
}, S = () => {
|
|
21
29
|
o.value.rotateRight();
|
|
22
30
|
const { w: a, h: t } = v();
|
|
23
31
|
C(() => {
|
|
@@ -35,47 +43,47 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
35
43
|
});
|
|
36
44
|
}, b = () => {
|
|
37
45
|
f("cancel");
|
|
38
|
-
},
|
|
46
|
+
}, j = () => {
|
|
39
47
|
u.value || _.value || (_.value = !0, o.value.getCropBlob((a) => {
|
|
40
48
|
_.value = !1;
|
|
41
|
-
const t = new File([a],
|
|
49
|
+
const t = new File([a], c.file.name, { type: "image/jpeg" });
|
|
42
50
|
f("confirm", t);
|
|
43
51
|
}));
|
|
44
52
|
}, A = () => {
|
|
45
53
|
u.value = !1;
|
|
46
54
|
const { w: a, h: t } = v();
|
|
47
|
-
g.value.autoCropWidth = a, g.value.autoCropHeight = t, f("imgLoad",
|
|
55
|
+
g.value.autoCropWidth = a, g.value.autoCropHeight = t, f("imgLoad", c.file);
|
|
48
56
|
}, v = () => {
|
|
49
|
-
const a = Math.abs(o.value.rotate) % 2 > 0, t = (a ? o.value.trueHeight : o.value.trueWidth) * o.value.scale,
|
|
50
|
-
return { w: t, h:
|
|
57
|
+
const a = Math.abs(o.value.rotate) % 2 > 0, t = (a ? o.value.trueHeight : o.value.trueWidth) * o.value.scale, r = (a ? o.value.trueWidth : o.value.trueHeight) * o.value.scale;
|
|
58
|
+
return { w: t, h: r };
|
|
51
59
|
};
|
|
52
|
-
return
|
|
53
|
-
() =>
|
|
60
|
+
return q(
|
|
61
|
+
() => c.file,
|
|
54
62
|
() => {
|
|
55
|
-
if (
|
|
63
|
+
if (c.file) {
|
|
56
64
|
u.value = !0, o.value && o.value.clearCrop();
|
|
57
65
|
const a = new FileReader();
|
|
58
66
|
a.onloadend = () => {
|
|
59
|
-
const t = a.result,
|
|
60
|
-
|
|
61
|
-
const h =
|
|
67
|
+
const t = a.result, r = new Image();
|
|
68
|
+
r.onload = () => {
|
|
69
|
+
const h = r.width, i = r.height;
|
|
62
70
|
w.value = {
|
|
63
71
|
data: t,
|
|
64
72
|
width: h,
|
|
65
|
-
height:
|
|
73
|
+
height: i
|
|
66
74
|
};
|
|
67
|
-
},
|
|
68
|
-
}, a.readAsDataURL(
|
|
75
|
+
}, r.src = t;
|
|
76
|
+
}, a.readAsDataURL(c.file);
|
|
69
77
|
}
|
|
70
78
|
},
|
|
71
79
|
{ immediate: !0 }
|
|
72
|
-
),
|
|
80
|
+
), H({
|
|
73
81
|
cropperInsRef: o
|
|
74
82
|
}), (a, t) => {
|
|
75
|
-
const
|
|
76
|
-
return
|
|
83
|
+
const r = l("a-spin"), h = l("icon-zoom-in"), i = l("a-button"), p = l("a-tooltip"), B = l("icon-zoom-out"), V = l("icon-rotate-right"), T = l("icon-rotate-left"), E = l("icon-sync"), F = l("a-button-group"), P = l("a-space"), U = l("a-modal");
|
|
84
|
+
return J(), G(U, {
|
|
77
85
|
"render-to-body": "",
|
|
78
|
-
class: m(`${
|
|
86
|
+
class: m(`${s}-dialog`),
|
|
79
87
|
title: "编辑图片",
|
|
80
88
|
width: "675px",
|
|
81
89
|
visible: !0,
|
|
@@ -86,36 +94,36 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
86
94
|
onCancel: b
|
|
87
95
|
}, {
|
|
88
96
|
default: n(() => [
|
|
89
|
-
e(
|
|
90
|
-
class: m(`${
|
|
97
|
+
e(r, {
|
|
98
|
+
class: m(`${s}-dialog-cropper-wrapper`),
|
|
91
99
|
loading: u.value
|
|
92
100
|
}, {
|
|
93
101
|
default: n(() => {
|
|
94
102
|
var k;
|
|
95
103
|
return [
|
|
96
|
-
e(
|
|
104
|
+
e(O, K({
|
|
97
105
|
ref_key: "cropperInsRef",
|
|
98
106
|
ref: o,
|
|
99
|
-
class: `${
|
|
107
|
+
class: `${s}-dialog-cropper`,
|
|
100
108
|
img: (k = w.value) == null ? void 0 : k.data,
|
|
101
109
|
info: !1,
|
|
102
110
|
autoCrop: !0,
|
|
103
111
|
autoCropWidth: g.value.autoCropWidth,
|
|
104
112
|
autoCropHeight: g.value.autoCropHeight,
|
|
105
113
|
full: !0
|
|
106
|
-
},
|
|
114
|
+
}, z.value, { onImgLoad: A }), null, 16, ["class", "img", "autoCropWidth", "autoCropHeight"])
|
|
107
115
|
];
|
|
108
116
|
}),
|
|
109
117
|
_: 1
|
|
110
118
|
}, 8, ["class", "loading"]),
|
|
111
119
|
y("div", {
|
|
112
|
-
class: m(`${
|
|
120
|
+
class: m(`${s}-dialog-operate`)
|
|
113
121
|
}, [
|
|
114
|
-
e(
|
|
122
|
+
e(F, { type: "primary" }, {
|
|
115
123
|
default: n(() => [
|
|
116
124
|
e(p, { content: "放大" }, {
|
|
117
125
|
default: n(() => [
|
|
118
|
-
e(
|
|
126
|
+
e(i, { onClick: I }, {
|
|
119
127
|
icon: n(() => [
|
|
120
128
|
e(h)
|
|
121
129
|
]),
|
|
@@ -126,7 +134,7 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
126
134
|
}),
|
|
127
135
|
e(p, { content: "缩小" }, {
|
|
128
136
|
default: n(() => [
|
|
129
|
-
e(
|
|
137
|
+
e(i, { onClick: L }, {
|
|
130
138
|
icon: n(() => [
|
|
131
139
|
e(B)
|
|
132
140
|
]),
|
|
@@ -137,7 +145,7 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
137
145
|
}),
|
|
138
146
|
e(p, { content: "向右旋转" }, {
|
|
139
147
|
default: n(() => [
|
|
140
|
-
e(
|
|
148
|
+
e(i, { onClick: S }, {
|
|
141
149
|
icon: n(() => [
|
|
142
150
|
e(V)
|
|
143
151
|
]),
|
|
@@ -148,9 +156,9 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
148
156
|
}),
|
|
149
157
|
e(p, { content: "向左旋转" }, {
|
|
150
158
|
default: n(() => [
|
|
151
|
-
e(
|
|
159
|
+
e(i, { onClick: $ }, {
|
|
152
160
|
icon: n(() => [
|
|
153
|
-
e(
|
|
161
|
+
e(T)
|
|
154
162
|
]),
|
|
155
163
|
_: 1
|
|
156
164
|
})
|
|
@@ -159,9 +167,9 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
159
167
|
}),
|
|
160
168
|
e(p, { content: "重置" }, {
|
|
161
169
|
default: n(() => [
|
|
162
|
-
e(
|
|
170
|
+
e(i, { onClick: N }, {
|
|
163
171
|
icon: n(() => [
|
|
164
|
-
e(
|
|
172
|
+
e(E)
|
|
165
173
|
]),
|
|
166
174
|
_: 1
|
|
167
175
|
})
|
|
@@ -173,26 +181,26 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
173
181
|
})
|
|
174
182
|
], 2),
|
|
175
183
|
y("div", {
|
|
176
|
-
class: m(`${
|
|
184
|
+
class: m(`${s}-dialog-footer`)
|
|
177
185
|
}, [
|
|
178
|
-
e(
|
|
179
|
-
class: m(`${
|
|
186
|
+
e(P, {
|
|
187
|
+
class: m(`${s}-dialog-footer-right`)
|
|
180
188
|
}, {
|
|
181
189
|
default: n(() => [
|
|
182
|
-
e(
|
|
190
|
+
e(i, { onClick: b }, {
|
|
183
191
|
default: n(() => t[0] || (t[0] = [
|
|
184
|
-
|
|
192
|
+
W("取消")
|
|
185
193
|
])),
|
|
186
194
|
_: 1
|
|
187
195
|
}),
|
|
188
|
-
e(
|
|
196
|
+
e(i, {
|
|
189
197
|
disabled: u.value,
|
|
190
198
|
type: "primary",
|
|
191
|
-
onClick:
|
|
199
|
+
onClick: j,
|
|
192
200
|
loading: _.value
|
|
193
201
|
}, {
|
|
194
202
|
default: n(() => t[1] || (t[1] = [
|
|
195
|
-
|
|
203
|
+
W("确定")
|
|
196
204
|
])),
|
|
197
205
|
_: 1
|
|
198
206
|
}, 8, ["disabled", "loading"])
|
|
@@ -207,5 +215,5 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
207
215
|
}
|
|
208
216
|
});
|
|
209
217
|
export {
|
|
210
|
-
|
|
218
|
+
Z as default
|
|
211
219
|
};
|
|
@@ -55,7 +55,7 @@ export interface ImageUploadOptions {
|
|
|
55
55
|
onError?: (fileItem: FileItem) => void;
|
|
56
56
|
/** 文件超出个数限制时的钩子 */
|
|
57
57
|
onExceed?: (fileList: FileItem[], files: File[]) => void;
|
|
58
|
-
/** 上传文件之前的钩子,参数为上传的文件,若返回 false 或者返回 Promise 且被 reject
|
|
58
|
+
/** 上传文件之前的钩子,参数为上传的文件,若返回 false 或者返回 Promise 且被 reject,则停止上传。 */
|
|
59
59
|
onBeforeUpload?: (file: File) => boolean | Promise<any>;
|
|
60
60
|
/** 内置上传文件之前开始 */
|
|
61
61
|
onInnerBeforeUploadStart?: (file: File, index: number, type: EImageUploadInnerBeforeUploadStep) => void;
|
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(--41512b1e);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(--41512b1e);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(--41512b1e);padding-left:var(--514ba31c);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(--27c679ae)}.keyblade-pro-layout-side .keyblade-pro-layout-header{z-index:98;left:var(--514ba31c);width:calc(100% - var(--514ba31c))}.keyblade-pro-layout-side .keyblade-pro-layout-header-collapsed{left:var(--27c679ae);width:calc(100% - var(--27c679ae))}.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-menu .keyblade-pro-menu-item-img{width:14px;height:auto}.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}.keyblade-pro-image-upload-cropper-dialog-cropper-wrapper[data-v-
|
|
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(--41512b1e);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(--41512b1e);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(--41512b1e);padding-left:var(--514ba31c);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(--27c679ae)}.keyblade-pro-layout-side .keyblade-pro-layout-header{z-index:98;left:var(--514ba31c);width:calc(100% - var(--514ba31c))}.keyblade-pro-layout-side .keyblade-pro-layout-header-collapsed{left:var(--27c679ae);width:calc(100% - var(--27c679ae))}.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-menu .keyblade-pro-menu-item-img{width:14px;height:auto}.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}.keyblade-pro-image-upload-cropper-dialog-cropper-wrapper[data-v-1bddf267]{width:100%;height:400px}.keyblade-pro-image-upload-cropper-dialog-operate[data-v-1bddf267]{margin-top:24px;display:flex;align-items:center;justify-content:center}.keyblade-pro-image-upload-cropper-dialog-footer[data-v-1bddf267]{margin-top:24px;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-image-upload-cropper-dialog-footer-left[data-v-1bddf267]{display:flex;align-items:center;justify-content:flex-start;margin-right:12px}.keyblade-pro-image-upload-cropper-dialog-footer-right[data-v-1bddf267]{flex:1;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-date-range-picker[data-v-8dc7d86d]{display:flex;align-items:center}
|