@keyblade/pro-components 1.12.12 → 1.12.14
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/pro-date-range-picker.vue.d.ts +10 -12
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +3 -3
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +49 -47
- package/es/pro-image-upload/image-upload.vue.d.ts +1 -1
- package/es/pro-image-upload/image-upload.vue.js +98 -90
- package/es/pro-image-upload/index.d.ts +3 -3
- package/es/pro-layout/index.d.ts +9 -9
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/es/pro-date-range-picker/index.d.ts +0 -82
|
@@ -1,23 +1,21 @@
|
|
|
1
|
+
interface IModelValue {
|
|
2
|
+
[key: string]: string;
|
|
3
|
+
}
|
|
1
4
|
type __VLS_Props = {
|
|
2
|
-
modelValue:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
5
|
+
modelValue: IModelValue;
|
|
6
|
+
startField?: string;
|
|
7
|
+
endField?: string;
|
|
6
8
|
startPlaceholder?: string;
|
|
7
9
|
endPlaceholder?: string;
|
|
8
10
|
separator?: string;
|
|
9
11
|
};
|
|
10
12
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
-
"update:modelValue": (value:
|
|
12
|
-
startDate?: string;
|
|
13
|
-
endDate?: string;
|
|
14
|
-
}) => any;
|
|
13
|
+
"update:modelValue": (value: IModelValue) => any;
|
|
15
14
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
-
"onUpdate:modelValue"?: ((value:
|
|
17
|
-
startDate?: string;
|
|
18
|
-
endDate?: string;
|
|
19
|
-
}) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: IModelValue) => any) | undefined;
|
|
20
16
|
}>, {
|
|
17
|
+
startField: string;
|
|
18
|
+
endField: string;
|
|
21
19
|
startPlaceholder: string;
|
|
22
20
|
endPlaceholder: string;
|
|
23
21
|
separator: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./pro-date-range-picker.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const _ = /* @__PURE__ */ a(o, [["__scopeId", "data-v-a2d94a6c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1,101 +1,103 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, ref as f, computed as V, resolveComponent as k, createElementBlock as v, openBlock as P, normalizeClass as E, createVNode as d, withCtx as n, createTextVNode as S, toDisplayString as R, nextTick as h } from "vue";
|
|
2
2
|
import o from "dayjs";
|
|
3
|
-
const T = "keyblade-pro-date-range-picker",
|
|
3
|
+
const T = "keyblade-pro-date-range-picker", N = /* @__PURE__ */ C({
|
|
4
4
|
__name: "pro-date-range-picker",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
7
|
+
startField: { default: "startDate" },
|
|
8
|
+
endField: { default: "endDate" },
|
|
7
9
|
startPlaceholder: { default: "开始日期" },
|
|
8
10
|
endPlaceholder: { default: "结束日期" },
|
|
9
11
|
separator: { default: "至" }
|
|
10
12
|
},
|
|
11
13
|
emits: ["update:modelValue"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
get: () =>
|
|
15
|
-
set: (
|
|
16
|
-
|
|
17
|
-
...
|
|
18
|
-
|
|
14
|
+
setup(D, { emit: F }) {
|
|
15
|
+
const e = D, i = F, s = f(), u = f(), m = V({
|
|
16
|
+
get: () => e.modelValue[e.startField],
|
|
17
|
+
set: (t) => {
|
|
18
|
+
i("update:modelValue", {
|
|
19
|
+
...e.modelValue,
|
|
20
|
+
[e.startField]: t
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
|
-
}),
|
|
22
|
-
get: () =>
|
|
23
|
-
set: (
|
|
24
|
-
|
|
25
|
-
...
|
|
26
|
-
|
|
23
|
+
}), p = V({
|
|
24
|
+
get: () => e.modelValue[e.endField],
|
|
25
|
+
set: (t) => {
|
|
26
|
+
i("update:modelValue", {
|
|
27
|
+
...e.modelValue,
|
|
28
|
+
[e.endField]: t
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
|
-
}),
|
|
31
|
+
}), g = (t) => e.modelValue.endDate ? o(t).isAfter(o(e.modelValue[e.startField])) : !1, b = (t) => e.modelValue.startDate ? o(t).isBefore(o(e.modelValue[e.endField])) : !1, _ = () => {
|
|
30
32
|
setTimeout(() => {
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
e.modelValue[e.startField] && !e.modelValue[e.endField] && h(() => {
|
|
34
|
+
var l;
|
|
35
|
+
const t = (l = u.value) == null ? void 0 : l.$el.parentElement.querySelector("input");
|
|
36
|
+
t && t.click();
|
|
35
37
|
});
|
|
36
38
|
});
|
|
37
|
-
},
|
|
39
|
+
}, y = () => {
|
|
38
40
|
setTimeout(() => {
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
e.modelValue[e.endField] && !e.modelValue[e.startField] && h(() => {
|
|
42
|
+
var l;
|
|
43
|
+
const t = (l = s.value) == null ? void 0 : l.$el.parentElement.querySelector("input");
|
|
44
|
+
t && t.click();
|
|
43
45
|
});
|
|
44
46
|
});
|
|
45
47
|
};
|
|
46
|
-
return (
|
|
47
|
-
const
|
|
48
|
-
return
|
|
48
|
+
return (t, l) => {
|
|
49
|
+
const c = k("a-date-picker"), r = k("a-form-item");
|
|
50
|
+
return P(), v("div", {
|
|
49
51
|
class: E(T)
|
|
50
52
|
}, [
|
|
51
53
|
d(r, {
|
|
52
|
-
field:
|
|
54
|
+
field: t.startField,
|
|
53
55
|
style: { "margin-right": "8px" },
|
|
54
56
|
"hide-label": ""
|
|
55
57
|
}, {
|
|
56
58
|
default: n(() => [
|
|
57
|
-
d(
|
|
59
|
+
d(c, {
|
|
58
60
|
ref_key: "startDatePickerRef",
|
|
59
|
-
ref:
|
|
61
|
+
ref: s,
|
|
60
62
|
modelValue: m.value,
|
|
61
|
-
"onUpdate:modelValue":
|
|
62
|
-
placeholder:
|
|
63
|
-
"disabled-date": (
|
|
64
|
-
onChange:
|
|
63
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => m.value = a),
|
|
64
|
+
placeholder: t.startPlaceholder,
|
|
65
|
+
"disabled-date": (a) => g(a),
|
|
66
|
+
onChange: _
|
|
65
67
|
}, null, 8, ["modelValue", "placeholder", "disabled-date"])
|
|
66
68
|
]),
|
|
67
69
|
_: 1
|
|
68
|
-
}),
|
|
70
|
+
}, 8, ["field"]),
|
|
69
71
|
d(r, {
|
|
70
72
|
"hide-label": "",
|
|
71
73
|
style: { "margin-right": "8px" }
|
|
72
74
|
}, {
|
|
73
75
|
default: n(() => [
|
|
74
|
-
S(R(
|
|
76
|
+
S(R(t.separator), 1)
|
|
75
77
|
]),
|
|
76
78
|
_: 1
|
|
77
79
|
}),
|
|
78
80
|
d(r, {
|
|
79
|
-
field:
|
|
81
|
+
field: t.endField,
|
|
80
82
|
"hide-label": ""
|
|
81
83
|
}, {
|
|
82
84
|
default: n(() => [
|
|
83
|
-
d(
|
|
85
|
+
d(c, {
|
|
84
86
|
ref_key: "endDatePickerRef",
|
|
85
|
-
ref:
|
|
86
|
-
modelValue:
|
|
87
|
-
"onUpdate:modelValue":
|
|
88
|
-
placeholder:
|
|
89
|
-
"disabled-date": (
|
|
90
|
-
onChange:
|
|
87
|
+
ref: u,
|
|
88
|
+
modelValue: p.value,
|
|
89
|
+
"onUpdate:modelValue": l[1] || (l[1] = (a) => p.value = a),
|
|
90
|
+
placeholder: t.endPlaceholder,
|
|
91
|
+
"disabled-date": (a) => b(a),
|
|
92
|
+
onChange: y
|
|
91
93
|
}, null, 8, ["modelValue", "placeholder", "disabled-date"])
|
|
92
94
|
]),
|
|
93
95
|
_: 1
|
|
94
|
-
})
|
|
96
|
+
}, 8, ["field"])
|
|
95
97
|
]);
|
|
96
98
|
};
|
|
97
99
|
}
|
|
98
100
|
});
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
N as default
|
|
101
103
|
};
|
|
@@ -602,8 +602,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
602
602
|
} & {
|
|
603
603
|
cropperImgLoad: (value: File) => any;
|
|
604
604
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
605
|
-
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
606
605
|
"onUpdate:modelValue"?: ((value: FileItem[]) => any) | undefined;
|
|
606
|
+
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
607
607
|
}>, {
|
|
608
608
|
name: string;
|
|
609
609
|
accept: string[];
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as me, mergeModels as J, useSlots as ge, useModel as pe, ref as m, computed as M, watch as K, resolveComponent as he, createElementBlock as Ie, openBlock as X, createVNode as xe, createBlock as Ue, createCommentVNode as ye, normalizeClass as Ce, createSlots as Be, withCtx as Y, unref as Z, renderSlot as A } from "vue";
|
|
2
2
|
import { Message as g } from "@arco-design/web-vue";
|
|
3
3
|
import { conclude as L } from "vue-global-config";
|
|
4
4
|
import { EImageUploadInnerBeforeUploadStep as v } from "./types.js";
|
|
5
5
|
import { defaultImageUploadOptions as U } from "./constant.js";
|
|
6
|
-
import
|
|
7
|
-
import { defaultImageUploadCheckOptions as
|
|
8
|
-
const
|
|
9
|
-
var
|
|
10
|
-
const
|
|
6
|
+
import we from "./cropper.vue.js";
|
|
7
|
+
import { defaultImageUploadCheckOptions as Ee, defaultImageUploadCompressorOptions as Me, defaultImageUploadCropOptions as Se, oneTravelImageCheckAndTransform as be, oneTravelImageCompressor as Le } from "@keyblade/one-travel";
|
|
8
|
+
const Oe = "keyblade-pro-image-upload";
|
|
9
|
+
var R, _, ee;
|
|
10
|
+
const He = /* @__PURE__ */ me({
|
|
11
11
|
__name: "image-upload",
|
|
12
|
-
props: /* @__PURE__ */
|
|
12
|
+
props: /* @__PURE__ */ J({
|
|
13
13
|
action: {},
|
|
14
14
|
handlerResponse: {},
|
|
15
15
|
headers: {},
|
|
16
16
|
data: {},
|
|
17
|
-
name: { default: (
|
|
17
|
+
name: { default: (R = U) == null ? void 0 : R.name },
|
|
18
18
|
tip: {},
|
|
19
19
|
accept: { default: () => {
|
|
20
|
-
var
|
|
21
|
-
return ((
|
|
20
|
+
var y;
|
|
21
|
+
return ((y = U) == null ? void 0 : y.accept) || [];
|
|
22
22
|
} },
|
|
23
23
|
multiple: { type: Boolean, default: U.multiple },
|
|
24
24
|
singleLimit: { default: U.singleLimit },
|
|
25
25
|
limit: {},
|
|
26
|
-
disabled: { type: Boolean, default: (
|
|
27
|
-
hideInnerBeforeUploadLoading: { type: Boolean, default: (
|
|
26
|
+
disabled: { type: Boolean, default: (_ = U) == null ? void 0 : _.disabled },
|
|
27
|
+
hideInnerBeforeUploadLoading: { type: Boolean, default: (ee = U) == null ? void 0 : ee.hideInnerBeforeUploadLoading },
|
|
28
28
|
checkOptions: {},
|
|
29
29
|
compressorOptions: {},
|
|
30
30
|
cropOptions: {},
|
|
@@ -38,65 +38,65 @@ const je = /* @__PURE__ */ fe({
|
|
|
38
38
|
modelValue: { required: !0 },
|
|
39
39
|
modelModifiers: {}
|
|
40
40
|
}),
|
|
41
|
-
emits: /* @__PURE__ */
|
|
42
|
-
setup(
|
|
43
|
-
const r =
|
|
41
|
+
emits: /* @__PURE__ */ J(["cropperImgLoad"], ["update:modelValue"]),
|
|
42
|
+
setup(y, { expose: ae, emit: le }) {
|
|
43
|
+
const O = ge(), r = pe(y, "modelValue"), e = y, oe = le, S = m(), $ = m(), p = m(), h = m(
|
|
44
44
|
[]
|
|
45
|
-
), n = m(), c = m(), s = m(),
|
|
46
|
-
var t,
|
|
47
|
-
const l = (
|
|
45
|
+
), n = m(), c = m(), s = m(), ne = M(() => e.accept.map((a) => `.${a}`).join(",")), f = M(() => L([e.checkOptions, Ee]) || {}), C = M(() => L([e.compressorOptions, Me]) || {}), B = M(() => L([e.cropOptions, Se]) || {}), te = (a) => {
|
|
46
|
+
var t, u, d, i;
|
|
47
|
+
const l = (i = (d = (u = (t = S.value) == null ? void 0 : t.$el) == null ? void 0 : u.querySelector) == null ? void 0 : d.call(u, "input")) == null ? void 0 : i.files;
|
|
48
48
|
return l && l.length > 0 && (s.value = {
|
|
49
49
|
selectCount: l.length
|
|
50
50
|
}), e != null && e.onBeforeUpload ? e == null ? void 0 : e.onBeforeUpload(a) : s.value && (e != null && e.singleLimit) && s.value.selectCount > (e == null ? void 0 : e.singleLimit) ? (s.value.handleIndex === void 0 ? (s.value.handleIndex = 0, g.clear(), g.error(`单次最多可选择${e == null ? void 0 : e.singleLimit}张图片`)) : s.value.handleIndex += 1, s.value.handleIndex === s.value.selectCount - 1 && (s.value = void 0), !1) : new Promise(async (w, E) => {
|
|
51
51
|
try {
|
|
52
|
-
w(await
|
|
52
|
+
w(await se(a));
|
|
53
53
|
} catch {
|
|
54
54
|
E();
|
|
55
55
|
} finally {
|
|
56
|
-
|
|
56
|
+
k();
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
},
|
|
59
|
+
}, ie = async (a) => {
|
|
60
60
|
const l = r.value.findIndex((t) => t.uid === a.uid);
|
|
61
61
|
return r.value.splice(l, 1), r.value = [...r.value], !1;
|
|
62
|
-
},
|
|
62
|
+
}, re = (a, l) => {
|
|
63
63
|
e != null && e.onExceed ? e == null || e.onExceed(a, l) : (g.error(`单次最多可选择${(e == null ? void 0 : e.limit) || 1}张图片`), r.value = a);
|
|
64
|
-
},
|
|
64
|
+
}, ue = async (a) => {
|
|
65
65
|
if (e != null && e.onSuccess)
|
|
66
66
|
e == null || e.onSuccess(a);
|
|
67
67
|
else {
|
|
68
68
|
if (!(e != null && e.handlerResponse))
|
|
69
69
|
return;
|
|
70
|
-
const l = await e.handlerResponse(a.response), t = r.value.findIndex((
|
|
70
|
+
const l = await e.handlerResponse(a.response), t = r.value.findIndex((u) => u.uid === a.uid);
|
|
71
71
|
l.success ? r.value[t] = {
|
|
72
72
|
...r.value[t],
|
|
73
73
|
...l
|
|
74
74
|
} : r.value.splice(t, 1);
|
|
75
75
|
}
|
|
76
|
-
},
|
|
76
|
+
}, de = (a) => {
|
|
77
77
|
e != null && e.onError ? e == null || e.onError(a) : setTimeout(() => {
|
|
78
78
|
const l = r.value.findIndex((t) => t.uid === a.uid);
|
|
79
79
|
r.value.splice(l, 1);
|
|
80
80
|
});
|
|
81
|
-
},
|
|
82
|
-
h.value.push({ file: a, resolve: l, reject: t }), h.value.length === 1 && !n.value &&
|
|
83
|
-
}),
|
|
81
|
+
}, se = (a) => new Promise((l, t) => {
|
|
82
|
+
h.value.push({ file: a, resolve: l, reject: t }), h.value.length === 1 && !n.value && k();
|
|
83
|
+
}), k = () => {
|
|
84
84
|
n.value === void 0 ? n.value = 0 : n.value + 1 >= h.value.length ? (n.value = void 0, h.value = []) : n.value += 1;
|
|
85
|
-
},
|
|
85
|
+
}, ce = () => {
|
|
86
86
|
var a;
|
|
87
87
|
(a = p.value) == null || a.reject();
|
|
88
|
-
},
|
|
88
|
+
}, fe = (a) => {
|
|
89
89
|
var l;
|
|
90
90
|
(l = p.value) == null || l.resolve(a);
|
|
91
|
-
},
|
|
92
|
-
|
|
91
|
+
}, ve = (a) => {
|
|
92
|
+
oe("cropperImgLoad", a);
|
|
93
93
|
};
|
|
94
|
-
|
|
95
|
-
var w, E,
|
|
94
|
+
K(n, async () => {
|
|
95
|
+
var w, E, b, F, z, j, Q, V, W, H, N, P, T, q, D, G;
|
|
96
96
|
if (n.value === void 0 || h.value.length === 0)
|
|
97
97
|
return;
|
|
98
|
-
const a = h.value[n.value], { file: l, resolve: t, reject:
|
|
99
|
-
let d = l.name,
|
|
98
|
+
const a = h.value[n.value], { file: l, resolve: t, reject: u } = a;
|
|
99
|
+
let d = l.name, i = l;
|
|
100
100
|
if ((w = f.value) != null && w.enable) {
|
|
101
101
|
c.value = {
|
|
102
102
|
loading: !0,
|
|
@@ -107,7 +107,7 @@ const je = /* @__PURE__ */ fe({
|
|
|
107
107
|
n.value,
|
|
108
108
|
v.check
|
|
109
109
|
);
|
|
110
|
-
const o = await
|
|
110
|
+
const o = await be(l, l.name, {
|
|
111
111
|
imageMaxSize: f.value.maxSize,
|
|
112
112
|
imageAllowedType: f.value.allowedType,
|
|
113
113
|
imageMinWidth: f.value.minWidth,
|
|
@@ -115,7 +115,7 @@ const je = /* @__PURE__ */ fe({
|
|
|
115
115
|
imageMaxWidth: f.value.maxWidth,
|
|
116
116
|
imageMaxHeight: f.value.maxHeight
|
|
117
117
|
});
|
|
118
|
-
if (c.value = void 0, (
|
|
118
|
+
if (c.value = void 0, (b = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || b.call(
|
|
119
119
|
e,
|
|
120
120
|
l,
|
|
121
121
|
n.value,
|
|
@@ -126,26 +126,26 @@ const je = /* @__PURE__ */ fe({
|
|
|
126
126
|
errorMessage: o == null ? void 0 : o.errorMessage
|
|
127
127
|
}
|
|
128
128
|
), !o.success)
|
|
129
|
-
return (
|
|
129
|
+
return (F = f.value) != null && F.showErrorMessage && g.error((o == null ? void 0 : o.errorMessage) || "图片校验及转换失败"), u();
|
|
130
130
|
if (o != null && o.hasTransform) {
|
|
131
131
|
const x = d == null ? void 0 : d.split(".");
|
|
132
|
-
x.pop(), d = `${x.join(",")}.jpg`,
|
|
132
|
+
x.pop(), d = `${x.join(",")}.jpg`, i = new File([o.file], d, {
|
|
133
133
|
type: o.file.type
|
|
134
134
|
});
|
|
135
135
|
} else
|
|
136
|
-
|
|
136
|
+
i = o.file;
|
|
137
137
|
}
|
|
138
|
-
if ((
|
|
139
|
-
(
|
|
138
|
+
if ((z = B.value) != null && z.enable && !d.endsWith(".gif")) {
|
|
139
|
+
(j = e == null ? void 0 : e.onInnerBeforeUploadStart) == null || j.call(
|
|
140
140
|
e,
|
|
141
141
|
l,
|
|
142
142
|
n.value,
|
|
143
143
|
v.crop
|
|
144
144
|
);
|
|
145
145
|
try {
|
|
146
|
-
(
|
|
147
|
-
p.value = { file:
|
|
148
|
-
}), (
|
|
146
|
+
(Q = B.value) != null && Q.customCrop ? i = await B.value.customCrop(i) : i = await new Promise((o, x) => {
|
|
147
|
+
p.value = { file: i, resolve: o, reject: x };
|
|
148
|
+
}), (V = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || V.call(
|
|
149
149
|
e,
|
|
150
150
|
l,
|
|
151
151
|
n.value,
|
|
@@ -155,7 +155,7 @@ const je = /* @__PURE__ */ fe({
|
|
|
155
155
|
}
|
|
156
156
|
);
|
|
157
157
|
} catch {
|
|
158
|
-
return (
|
|
158
|
+
return (W = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || W.call(
|
|
159
159
|
e,
|
|
160
160
|
l,
|
|
161
161
|
n.value,
|
|
@@ -167,27 +167,27 @@ const je = /* @__PURE__ */ fe({
|
|
|
167
167
|
},
|
|
168
168
|
errorMessage: "图片剪裁失败"
|
|
169
169
|
}
|
|
170
|
-
), (
|
|
170
|
+
), (H = B.value) != null && H.showErrorMessage && g.error("图片剪裁失败"), u();
|
|
171
171
|
} finally {
|
|
172
172
|
p.value = void 0;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
if ((
|
|
175
|
+
if ((N = C.value) != null && N.enable) {
|
|
176
176
|
c.value = {
|
|
177
177
|
loading: !0,
|
|
178
178
|
text: `第${n.value + 1}张图片处理中,请稍等`
|
|
179
|
-
}, (
|
|
179
|
+
}, (P = e == null ? void 0 : e.onInnerBeforeUploadStart) == null || P.call(
|
|
180
180
|
e,
|
|
181
181
|
l,
|
|
182
182
|
n.value,
|
|
183
183
|
v.compress
|
|
184
184
|
);
|
|
185
|
-
const o = await
|
|
186
|
-
maxSize:
|
|
187
|
-
size:
|
|
188
|
-
excludeAllowedTypes: (
|
|
185
|
+
const o = await Le(i, {
|
|
186
|
+
maxSize: C.value.maxSize,
|
|
187
|
+
size: C.value.size,
|
|
188
|
+
excludeAllowedTypes: (T = C.value.excludeAllowedTypes) == null ? void 0 : T.map((x) => `image/${x}`)
|
|
189
189
|
});
|
|
190
|
-
if (c.value = void 0, (
|
|
190
|
+
if (c.value = void 0, (q = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || q.call(
|
|
191
191
|
e,
|
|
192
192
|
l,
|
|
193
193
|
n.value,
|
|
@@ -200,12 +200,12 @@ const je = /* @__PURE__ */ fe({
|
|
|
200
200
|
errorMessage: o == null ? void 0 : o.errorMessage
|
|
201
201
|
}
|
|
202
202
|
), !o.success)
|
|
203
|
-
return (
|
|
204
|
-
|
|
203
|
+
return (D = C.value) != null && D.showErrorMessage && g.error((o == null ? void 0 : o.errorMessage) || "图片压缩失败"), u();
|
|
204
|
+
i = new File([o.file], d, {
|
|
205
205
|
type: o.file.type
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
c.value = void 0, (
|
|
208
|
+
c.value = void 0, (G = e == null ? void 0 : e.onInnerBeforeUploadEnd) == null || G.call(
|
|
209
209
|
e,
|
|
210
210
|
l,
|
|
211
211
|
n.value,
|
|
@@ -213,10 +213,10 @@ const je = /* @__PURE__ */ fe({
|
|
|
213
213
|
{
|
|
214
214
|
success: !0
|
|
215
215
|
}
|
|
216
|
-
), t(
|
|
216
|
+
), t(i);
|
|
217
217
|
});
|
|
218
218
|
let I;
|
|
219
|
-
return
|
|
219
|
+
return K(
|
|
220
220
|
() => c.value,
|
|
221
221
|
() => {
|
|
222
222
|
var a;
|
|
@@ -226,16 +226,17 @@ const je = /* @__PURE__ */ fe({
|
|
|
226
226
|
duration: 0
|
|
227
227
|
}) : (a = I == null ? void 0 : I.close) == null || a.call(I);
|
|
228
228
|
}
|
|
229
|
-
),
|
|
230
|
-
uploadInsRef:
|
|
231
|
-
cropperInsRef:
|
|
229
|
+
), ae({
|
|
230
|
+
uploadInsRef: S,
|
|
231
|
+
cropperInsRef: $
|
|
232
232
|
}), (a, l) => {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
var u, d;
|
|
234
|
+
const t = he("a-upload");
|
|
235
|
+
return X(), Ie("div", null, [
|
|
236
|
+
xe(t, {
|
|
237
|
+
class: Ce([`${Oe}-upload`]),
|
|
237
238
|
ref_key: "uploadInsRef",
|
|
238
|
-
ref:
|
|
239
|
+
ref: S,
|
|
239
240
|
"list-type": "picture-card",
|
|
240
241
|
tip: a.tip || "上传",
|
|
241
242
|
"image-preview": "",
|
|
@@ -245,39 +246,46 @@ const je = /* @__PURE__ */ fe({
|
|
|
245
246
|
headers: a.headers,
|
|
246
247
|
data: a.data,
|
|
247
248
|
name: a.name,
|
|
248
|
-
accept:
|
|
249
|
+
accept: ne.value,
|
|
249
250
|
multiple: a.multiple,
|
|
250
251
|
limit: a.limit,
|
|
251
252
|
disabled: a.disabled,
|
|
252
|
-
"on-before-upload":
|
|
253
|
-
"on-before-remove":
|
|
254
|
-
onExceedLimit:
|
|
255
|
-
onSuccess:
|
|
256
|
-
onError:
|
|
257
|
-
}, {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
253
|
+
"on-before-upload": te,
|
|
254
|
+
"on-before-remove": ie,
|
|
255
|
+
onExceedLimit: re,
|
|
256
|
+
onSuccess: ue,
|
|
257
|
+
onError: de
|
|
258
|
+
}, Be({ _: 2 }, [
|
|
259
|
+
(u = Z(O)) != null && u.image ? {
|
|
260
|
+
name: "image",
|
|
261
|
+
fn: Y(({ fileItem: i }) => [
|
|
262
|
+
A(a.$slots, "image", { fileItem: i })
|
|
263
|
+
]),
|
|
264
|
+
key: "0"
|
|
265
|
+
} : void 0,
|
|
266
|
+
(d = Z(O)) != null && d["upload-button"] ? {
|
|
267
|
+
name: "upload-button",
|
|
268
|
+
fn: Y(() => [
|
|
269
|
+
A(a.$slots, "upload-button")
|
|
270
|
+
]),
|
|
271
|
+
key: "1"
|
|
272
|
+
} : void 0
|
|
273
|
+
]), 1032, ["class", "tip", "file-list", "action", "headers", "data", "name", "accept", "multiple", "limit", "disabled"]),
|
|
274
|
+
p.value && n.value !== void 0 ? (X(), Ue(we, {
|
|
267
275
|
key: 0,
|
|
268
276
|
ref_key: "cropperInsRef",
|
|
269
|
-
ref:
|
|
277
|
+
ref: $,
|
|
270
278
|
file: p.value.file,
|
|
271
279
|
index: n.value,
|
|
272
280
|
options: B.value,
|
|
273
|
-
onCancel:
|
|
274
|
-
onConfirm:
|
|
275
|
-
onImgLoad:
|
|
276
|
-
}, null, 8, ["file", "index", "options"])) :
|
|
281
|
+
onCancel: ce,
|
|
282
|
+
onConfirm: fe,
|
|
283
|
+
onImgLoad: ve
|
|
284
|
+
}, null, 8, ["file", "index", "options"])) : ye("", !0)
|
|
277
285
|
]);
|
|
278
286
|
};
|
|
279
287
|
}
|
|
280
288
|
});
|
|
281
289
|
export {
|
|
282
|
-
|
|
290
|
+
He as default
|
|
283
291
|
};
|
|
@@ -41,8 +41,8 @@ declare const ProImageUpload: {
|
|
|
41
41
|
errorMessage?: string;
|
|
42
42
|
}) => void;
|
|
43
43
|
}> & Readonly<{
|
|
44
|
-
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
45
44
|
"onUpdate:modelValue"?: ((value: import('@arco-design/web-vue').FileItem[]) => any) | undefined;
|
|
45
|
+
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
uploadInsRef: import('vue').Ref<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
48
48
|
fileList?: unknown;
|
|
@@ -618,8 +618,8 @@ declare const ProImageUpload: {
|
|
|
618
618
|
errorMessage?: string;
|
|
619
619
|
}) => void;
|
|
620
620
|
}> & Readonly<{
|
|
621
|
-
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
622
621
|
"onUpdate:modelValue"?: ((value: import('@arco-design/web-vue').FileItem[]) => any) | undefined;
|
|
622
|
+
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
623
623
|
}>, {
|
|
624
624
|
uploadInsRef: import('vue').Ref<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
625
625
|
fileList?: unknown;
|
|
@@ -1149,8 +1149,8 @@ declare const ProImageUpload: {
|
|
|
1149
1149
|
errorMessage?: string;
|
|
1150
1150
|
}) => void;
|
|
1151
1151
|
}> & Readonly<{
|
|
1152
|
-
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
1153
1152
|
"onUpdate:modelValue"?: ((value: import('@arco-design/web-vue').FileItem[]) => any) | undefined;
|
|
1153
|
+
onCropperImgLoad?: ((value: File) => any) | undefined;
|
|
1154
1154
|
}>, {
|
|
1155
1155
|
uploadInsRef: import('vue').Ref<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1156
1156
|
fileList?: unknown;
|
package/es/pro-layout/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ declare const ProLayout: {
|
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
44
|
menuItems: {
|
|
45
|
-
type: import('vue').PropType<import('
|
|
45
|
+
type: import('vue').PropType<import('..').IProMenuItem[]>;
|
|
46
46
|
required: false;
|
|
47
47
|
default: () => never[];
|
|
48
48
|
};
|
|
@@ -87,7 +87,7 @@ declare const ProLayout: {
|
|
|
87
87
|
default: boolean;
|
|
88
88
|
};
|
|
89
89
|
onMenuItemClick: {
|
|
90
|
-
type: import('vue').PropType<(menuItem: import('
|
|
90
|
+
type: import('vue').PropType<(menuItem: import('..').IProMenuItem) => Promise<boolean>>;
|
|
91
91
|
required: false;
|
|
92
92
|
};
|
|
93
93
|
}>> & Readonly<{
|
|
@@ -109,7 +109,7 @@ declare const ProLayout: {
|
|
|
109
109
|
siderWidth: number;
|
|
110
110
|
siderBreakpoint: "xxl" | "xl" | "lg" | "md" | "sm" | "xs";
|
|
111
111
|
siderCollapsed: boolean;
|
|
112
|
-
menuItems: import('
|
|
112
|
+
menuItems: import('..').IProMenuItem[];
|
|
113
113
|
footerTitle: string;
|
|
114
114
|
hideFooter: boolean;
|
|
115
115
|
hideTabs: boolean;
|
|
@@ -163,7 +163,7 @@ declare const ProLayout: {
|
|
|
163
163
|
default: boolean;
|
|
164
164
|
};
|
|
165
165
|
menuItems: {
|
|
166
|
-
type: import('vue').PropType<import('
|
|
166
|
+
type: import('vue').PropType<import('..').IProMenuItem[]>;
|
|
167
167
|
required: false;
|
|
168
168
|
default: () => never[];
|
|
169
169
|
};
|
|
@@ -208,7 +208,7 @@ declare const ProLayout: {
|
|
|
208
208
|
default: boolean;
|
|
209
209
|
};
|
|
210
210
|
onMenuItemClick: {
|
|
211
|
-
type: import('vue').PropType<(menuItem: import('
|
|
211
|
+
type: import('vue').PropType<(menuItem: import('..').IProMenuItem) => Promise<boolean>>;
|
|
212
212
|
required: false;
|
|
213
213
|
};
|
|
214
214
|
}>> & Readonly<{
|
|
@@ -227,7 +227,7 @@ declare const ProLayout: {
|
|
|
227
227
|
siderWidth: number;
|
|
228
228
|
siderBreakpoint: "xxl" | "xl" | "lg" | "md" | "sm" | "xs";
|
|
229
229
|
siderCollapsed: boolean;
|
|
230
|
-
menuItems: import('
|
|
230
|
+
menuItems: import('..').IProMenuItem[];
|
|
231
231
|
footerTitle: string;
|
|
232
232
|
hideFooter: boolean;
|
|
233
233
|
hideTabs: boolean;
|
|
@@ -278,7 +278,7 @@ declare const ProLayout: {
|
|
|
278
278
|
default: boolean;
|
|
279
279
|
};
|
|
280
280
|
menuItems: {
|
|
281
|
-
type: import('vue').PropType<import('
|
|
281
|
+
type: import('vue').PropType<import('..').IProMenuItem[]>;
|
|
282
282
|
required: false;
|
|
283
283
|
default: () => never[];
|
|
284
284
|
};
|
|
@@ -323,7 +323,7 @@ declare const ProLayout: {
|
|
|
323
323
|
default: boolean;
|
|
324
324
|
};
|
|
325
325
|
onMenuItemClick: {
|
|
326
|
-
type: import('vue').PropType<(menuItem: import('
|
|
326
|
+
type: import('vue').PropType<(menuItem: import('..').IProMenuItem) => Promise<boolean>>;
|
|
327
327
|
required: false;
|
|
328
328
|
};
|
|
329
329
|
}>> & Readonly<{
|
|
@@ -345,7 +345,7 @@ declare const ProLayout: {
|
|
|
345
345
|
siderWidth: number;
|
|
346
346
|
siderBreakpoint: "xxl" | "xl" | "lg" | "md" | "sm" | "xs";
|
|
347
347
|
siderCollapsed: boolean;
|
|
348
|
-
menuItems: import('
|
|
348
|
+
menuItems: import('..').IProMenuItem[];
|
|
349
349
|
footerTitle: string;
|
|
350
350
|
hideFooter: boolean;
|
|
351
351
|
hideTabs: boolean;
|
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-72acd329]{width:100%;height:400px}.keyblade-pro-image-upload-cropper-dialog-operate[data-v-72acd329]{margin-top:24px;display:flex;align-items:center;justify-content:center}.keyblade-pro-image-upload-cropper-dialog-footer[data-v-72acd329]{margin-top:24px;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-image-upload-cropper-dialog-footer-left[data-v-72acd329]{display:flex;align-items:center;justify-content:flex-start;margin-right:12px}.keyblade-pro-image-upload-cropper-dialog-footer-right[data-v-72acd329]{flex:1;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-date-range-picker[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-72acd329]{width:100%;height:400px}.keyblade-pro-image-upload-cropper-dialog-operate[data-v-72acd329]{margin-top:24px;display:flex;align-items:center;justify-content:center}.keyblade-pro-image-upload-cropper-dialog-footer[data-v-72acd329]{margin-top:24px;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-image-upload-cropper-dialog-footer-left[data-v-72acd329]{display:flex;align-items:center;justify-content:flex-start;margin-right:12px}.keyblade-pro-image-upload-cropper-dialog-footer-right[data-v-72acd329]{flex:1;display:flex;align-items:center;justify-content:flex-end}.keyblade-pro-date-range-picker[data-v-a2d94a6c]{display:flex;align-items:center}
|
package/package.json
CHANGED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
declare const ProDateRangePicker: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
-
modelValue: {
|
|
5
|
-
startDate?: string;
|
|
6
|
-
endDate?: string;
|
|
7
|
-
};
|
|
8
|
-
startPlaceholder?: string;
|
|
9
|
-
endPlaceholder?: string;
|
|
10
|
-
separator?: string;
|
|
11
|
-
}> & Readonly<{
|
|
12
|
-
"onUpdate:modelValue"?: ((value: {
|
|
13
|
-
startDate?: string;
|
|
14
|
-
endDate?: string;
|
|
15
|
-
}) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
|
-
"update:modelValue": (value: {
|
|
18
|
-
startDate?: string;
|
|
19
|
-
endDate?: string;
|
|
20
|
-
}) => any;
|
|
21
|
-
}, import('vue').PublicProps, {
|
|
22
|
-
startPlaceholder: string;
|
|
23
|
-
endPlaceholder: string;
|
|
24
|
-
separator: string;
|
|
25
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
26
|
-
startDatePickerRef: unknown;
|
|
27
|
-
endDatePickerRef: unknown;
|
|
28
|
-
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
29
|
-
P: {};
|
|
30
|
-
B: {};
|
|
31
|
-
D: {};
|
|
32
|
-
C: {};
|
|
33
|
-
M: {};
|
|
34
|
-
Defaults: {};
|
|
35
|
-
}, Readonly<{
|
|
36
|
-
modelValue: {
|
|
37
|
-
startDate?: string;
|
|
38
|
-
endDate?: string;
|
|
39
|
-
};
|
|
40
|
-
startPlaceholder?: string;
|
|
41
|
-
endPlaceholder?: string;
|
|
42
|
-
separator?: string;
|
|
43
|
-
}> & Readonly<{
|
|
44
|
-
"onUpdate:modelValue"?: ((value: {
|
|
45
|
-
startDate?: string;
|
|
46
|
-
endDate?: string;
|
|
47
|
-
}) => any) | undefined;
|
|
48
|
-
}>, {}, {}, {}, {}, {
|
|
49
|
-
startPlaceholder: string;
|
|
50
|
-
endPlaceholder: string;
|
|
51
|
-
separator: string;
|
|
52
|
-
}>;
|
|
53
|
-
__isFragment?: never;
|
|
54
|
-
__isTeleport?: never;
|
|
55
|
-
__isSuspense?: never;
|
|
56
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
57
|
-
modelValue: {
|
|
58
|
-
startDate?: string;
|
|
59
|
-
endDate?: string;
|
|
60
|
-
};
|
|
61
|
-
startPlaceholder?: string;
|
|
62
|
-
endPlaceholder?: string;
|
|
63
|
-
separator?: string;
|
|
64
|
-
}> & Readonly<{
|
|
65
|
-
"onUpdate:modelValue"?: ((value: {
|
|
66
|
-
startDate?: string;
|
|
67
|
-
endDate?: string;
|
|
68
|
-
}) => any) | undefined;
|
|
69
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
70
|
-
"update:modelValue": (value: {
|
|
71
|
-
startDate?: string;
|
|
72
|
-
endDate?: string;
|
|
73
|
-
}) => any;
|
|
74
|
-
}, string, {
|
|
75
|
-
startPlaceholder: string;
|
|
76
|
-
endPlaceholder: string;
|
|
77
|
-
separator: string;
|
|
78
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
79
|
-
install: (app: App) => void;
|
|
80
|
-
};
|
|
81
|
-
export { ProDateRangePicker };
|
|
82
|
-
export default ProDateRangePicker;
|