@keyblade/pro-components 1.12.8 → 1.12.10
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/components.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +9 -7
- package/es/pro-date-range-picker/index.d.ts +82 -0
- package/es/pro-date-range-picker/index.js +11 -0
- package/es/pro-date-range-picker/pro-date-range-picker.vue.d.ts +28 -0
- package/es/pro-date-range-picker/pro-date-range-picker.vue.js +7 -0
- package/es/pro-date-range-picker/pro-date-range-picker.vue2.js +101 -0
- package/es/pro-image-upload/constant.js +3 -3
- package/es/pro-image-upload/cropper.vue.d.ts +3 -1
- package/es/pro-image-upload/cropper.vue.js +2 -2
- package/es/pro-image-upload/cropper.vue2.js +2 -2
- package/es/pro-image-upload/image-upload.vue.d.ts +40 -1
- package/es/pro-image-upload/image-upload.vue.js +4 -4
- package/es/pro-image-upload/index.d.ts +40 -1
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.js +12 -11
- package/es/pro-layout/index.d.ts +14 -14
- package/es/pro-layout/pro-layout.vue.d.ts +8 -8
- package/es/pro-layout/pro-layout.vue.js +22 -22
- package/es/pro-menu/index.d.ts +5 -5
- package/es/pro-menu/pro-menu.vue.d.ts +2 -2
- package/es/pro-menu/pro-menu.vue.js +5 -5
- package/es/pro-page-container/pro-page-container.vue.js +1 -1
- package/es/pro-page-header/pro-page-header.vue.js +11 -11
- package/es/pro-reuse-tabs/index.d.ts +10 -10
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +4 -4
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.js +4 -4
- package/es/{styles.css → style.css} +1 -1
- package/package.json +1 -1
package/es/components.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare module 'vue' {
|
|
2
2
|
interface GlobalComponents {
|
|
3
|
+
KbProDateRangePicker: typeof import('./index')['ProDateRangePicker'];
|
|
3
4
|
KbProImageUpload: typeof import('./index')['ProImageUpload'];
|
|
4
5
|
KbProPageHeader: typeof import('./index')['ProPageHeader'];
|
|
5
6
|
KbProKeepAliveRouterView: typeof import('./index')['ProKeepAliveRouterView'];
|
package/es/index.d.ts
CHANGED
|
@@ -13,4 +13,5 @@ export { default as ProReuseTabs } from './pro-reuse-tabs';
|
|
|
13
13
|
export type { IProTab } from './pro-reuse-tabs';
|
|
14
14
|
export { default as ProImageUpload } from './pro-image-upload';
|
|
15
15
|
export * from './pro-image-upload';
|
|
16
|
+
export { default as ProDateRangePicker } from './pro-date-range-picker';
|
|
16
17
|
export type {} from './components';
|
package/es/index.js
CHANGED
|
@@ -5,15 +5,17 @@ import { ProMenu as t } from "./pro-menu/index.js";
|
|
|
5
5
|
import { ProPageContainer as i } from "./pro-page-container/index.js";
|
|
6
6
|
import { ProReuseTabs as s } from "./pro-reuse-tabs/index.js";
|
|
7
7
|
import { ProImageUpload as u } from "./pro-image-upload/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
8
|
+
import { ProDateRangePicker as f } from "./pro-date-range-picker/index.js";
|
|
9
|
+
import { EImageUploadInnerBeforeUploadStep as c } from "./pro-image-upload/types.js";
|
|
10
|
+
import { defaultImageUploadOptions as k } from "./pro-image-upload/constant.js";
|
|
11
|
+
const I = {
|
|
11
12
|
install(o) {
|
|
12
|
-
o.use(e), o.use(r), o.use(m), o.use(t), o.use(i), o.use(s), o.use(u);
|
|
13
|
+
o.use(e), o.use(r), o.use(m), o.use(t), o.use(i), o.use(s), o.use(u), o.use(f);
|
|
13
14
|
}
|
|
14
15
|
};
|
|
15
16
|
export {
|
|
16
|
-
|
|
17
|
+
c as EImageUploadInnerBeforeUploadStep,
|
|
18
|
+
f as ProDateRangePicker,
|
|
17
19
|
u as ProImageUpload,
|
|
18
20
|
r as ProKeepAliveRouterView,
|
|
19
21
|
m as ProLayout,
|
|
@@ -21,6 +23,6 @@ export {
|
|
|
21
23
|
i as ProPageContainer,
|
|
22
24
|
e as ProPageHeader,
|
|
23
25
|
s as ProReuseTabs,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
I as default,
|
|
27
|
+
k as defaultImageUploadOptions
|
|
26
28
|
};
|
|
@@ -0,0 +1,82 @@
|
|
|
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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Form as r } from "@arco-design/web-vue";
|
|
2
|
+
import o from "./pro-date-range-picker.vue.js";
|
|
3
|
+
const n = Object.assign(o, {
|
|
4
|
+
install: (e) => {
|
|
5
|
+
e.use(r), e.component("KbProDateRangePicker", o);
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
n as ProDateRangePicker,
|
|
10
|
+
n as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: {
|
|
3
|
+
startDate?: string;
|
|
4
|
+
endDate?: string;
|
|
5
|
+
};
|
|
6
|
+
startPlaceholder?: string;
|
|
7
|
+
endPlaceholder?: string;
|
|
8
|
+
separator?: string;
|
|
9
|
+
};
|
|
10
|
+
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;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: {
|
|
17
|
+
startDate?: string;
|
|
18
|
+
endDate?: string;
|
|
19
|
+
}) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
startPlaceholder: string;
|
|
22
|
+
endPlaceholder: string;
|
|
23
|
+
separator: string;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
startDatePickerRef: unknown;
|
|
26
|
+
endDatePickerRef: unknown;
|
|
27
|
+
}, HTMLDivElement>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { defineComponent as v, ref as f, computed as D, resolveComponent as V, createElementBlock as P, openBlock as x, normalizeClass as E, createVNode as d, withCtx as n, createTextVNode as S, toDisplayString as R, nextTick as k } from "vue";
|
|
2
|
+
import o from "dayjs";
|
|
3
|
+
const T = "keyblade-pro-date-range-picker", q = /* @__PURE__ */ v({
|
|
4
|
+
__name: "pro-date-range-picker",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: {},
|
|
7
|
+
startPlaceholder: { default: "开始日期" },
|
|
8
|
+
endPlaceholder: { default: "结束日期" },
|
|
9
|
+
separator: { default: "至" }
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(h, { emit: g }) {
|
|
13
|
+
const t = h, s = g, u = f(), i = f(), m = D({
|
|
14
|
+
get: () => t.modelValue.startDate,
|
|
15
|
+
set: (e) => {
|
|
16
|
+
s("update:modelValue", {
|
|
17
|
+
...t.modelValue,
|
|
18
|
+
startDate: e
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}), c = D({
|
|
22
|
+
get: () => t.modelValue.endDate,
|
|
23
|
+
set: (e) => {
|
|
24
|
+
s("update:modelValue", {
|
|
25
|
+
...t.modelValue,
|
|
26
|
+
endDate: e
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}), _ = (e) => t.modelValue.endDate ? o(e).isAfter(o(t.modelValue.endDate)) : !1, b = (e) => t.modelValue.startDate ? o(e).isBefore(o(t.modelValue.startDate)) : !1, y = () => {
|
|
30
|
+
setTimeout(() => {
|
|
31
|
+
t.modelValue.startDate && !t.modelValue.endDate && k(() => {
|
|
32
|
+
var a;
|
|
33
|
+
const e = (a = i.value) == null ? void 0 : a.$el.parentElement.querySelector("input");
|
|
34
|
+
e && e.click();
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}, C = () => {
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
t.modelValue.endDate && !t.modelValue.startDate && k(() => {
|
|
40
|
+
var a;
|
|
41
|
+
const e = (a = u.value) == null ? void 0 : a.$el.parentElement.querySelector("input");
|
|
42
|
+
e && e.click();
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
return (e, a) => {
|
|
47
|
+
const p = V("a-date-picker"), r = V("a-form-item");
|
|
48
|
+
return x(), P("div", {
|
|
49
|
+
class: E(T)
|
|
50
|
+
}, [
|
|
51
|
+
d(r, {
|
|
52
|
+
field: "startDate",
|
|
53
|
+
style: { "margin-right": "8px" },
|
|
54
|
+
"hide-label": ""
|
|
55
|
+
}, {
|
|
56
|
+
default: n(() => [
|
|
57
|
+
d(p, {
|
|
58
|
+
ref_key: "startDatePickerRef",
|
|
59
|
+
ref: u,
|
|
60
|
+
modelValue: m.value,
|
|
61
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => m.value = l),
|
|
62
|
+
placeholder: e.startPlaceholder,
|
|
63
|
+
"disabled-date": (l) => _(l),
|
|
64
|
+
onChange: y
|
|
65
|
+
}, null, 8, ["modelValue", "placeholder", "disabled-date"])
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}),
|
|
69
|
+
d(r, {
|
|
70
|
+
"hide-label": "",
|
|
71
|
+
style: { "margin-right": "8px" }
|
|
72
|
+
}, {
|
|
73
|
+
default: n(() => [
|
|
74
|
+
S(R(e.separator), 1)
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}),
|
|
78
|
+
d(r, {
|
|
79
|
+
field: "endDate",
|
|
80
|
+
"hide-label": ""
|
|
81
|
+
}, {
|
|
82
|
+
default: n(() => [
|
|
83
|
+
d(p, {
|
|
84
|
+
ref_key: "endDatePickerRef",
|
|
85
|
+
ref: i,
|
|
86
|
+
modelValue: c.value,
|
|
87
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => c.value = l),
|
|
88
|
+
placeholder: e.endPlaceholder,
|
|
89
|
+
"disabled-date": (l) => b(l),
|
|
90
|
+
onChange: C
|
|
91
|
+
}, null, 8, ["modelValue", "placeholder", "disabled-date"])
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
})
|
|
95
|
+
]);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
q as default
|
|
101
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defaultImageUploadCropOptions as o, defaultImageUploadCompressorOptions as p, defaultImageUploadCheckOptions as e } from "@keyblade/one-travel";
|
|
2
2
|
const l = {
|
|
3
3
|
name: "file",
|
|
4
4
|
accept: e.allowedType,
|
|
@@ -7,8 +7,8 @@ const l = {
|
|
|
7
7
|
disabled: !1,
|
|
8
8
|
hideInnerBeforeUploadLoading: !1,
|
|
9
9
|
checkOptions: e,
|
|
10
|
-
compressorOptions:
|
|
11
|
-
cropOptions:
|
|
10
|
+
compressorOptions: p,
|
|
11
|
+
cropOptions: o
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
14
|
l as defaultImageUploadOptions
|
|
@@ -16,5 +16,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
16
16
|
onConfirm?: ((value: File) => any) | undefined;
|
|
17
17
|
onImgLoad?: ((value: File) => any) | undefined;
|
|
18
18
|
onReUpload?: ((index: number) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
cropperInsRef: any;
|
|
21
|
+
}, any>;
|
|
20
22
|
export default _default;
|
|
@@ -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
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-72acd329"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as d, watch as M, resolveComponent as l,
|
|
1
|
+
import { defineComponent as D, ref as d, watch as M, resolveComponent as l, createBlock as P, openBlock as q, normalizeClass as m, withCtx as n, createVNode as e, createElementVNode as y, mergeProps as G, createTextVNode as x, nextTick as C } from "vue";
|
|
2
2
|
import "vue-cropper/dist/index.css";
|
|
3
3
|
import J from "vue-cropper/lib/vue-cropper.vue";
|
|
4
4
|
const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
@@ -73,7 +73,7 @@ const r = "keyblade-pro-image-upload-cropper", X = /* @__PURE__ */ D({
|
|
|
73
73
|
cropperInsRef: o
|
|
74
74
|
}), (a, t) => {
|
|
75
75
|
const i = l("a-spin"), h = l("icon-zoom-in"), c = l("a-button"), p = l("a-tooltip"), B = l("icon-zoom-out"), V = l("icon-rotate-right"), E = l("icon-rotate-left"), F = l("icon-sync"), T = l("a-button-group"), U = l("a-space"), j = l("a-modal");
|
|
76
|
-
return
|
|
76
|
+
return q(), P(j, {
|
|
77
77
|
"render-to-body": "",
|
|
78
78
|
class: m(`${r}-dialog`),
|
|
79
79
|
title: "编辑图片",
|
|
@@ -560,5 +560,44 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
560
560
|
singleLimit: number;
|
|
561
561
|
disabled: boolean;
|
|
562
562
|
hideInnerBeforeUploadLoading: boolean;
|
|
563
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
563
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
564
|
+
uploadInsRef: unknown;
|
|
565
|
+
cropperInsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
566
|
+
file: File;
|
|
567
|
+
index: number;
|
|
568
|
+
options: ImageUploadCropOptions;
|
|
569
|
+
}> & Readonly<{
|
|
570
|
+
onCancel?: (() => any) | undefined;
|
|
571
|
+
onConfirm?: ((value: File) => any) | undefined;
|
|
572
|
+
onImgLoad?: ((value: File) => any) | undefined;
|
|
573
|
+
onReUpload?: ((index: number) => any) | undefined;
|
|
574
|
+
}>, {
|
|
575
|
+
cropperInsRef: import('vue').Ref<any, any>;
|
|
576
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
577
|
+
cancel: () => any;
|
|
578
|
+
confirm: (value: File) => any;
|
|
579
|
+
imgLoad: (value: File) => any;
|
|
580
|
+
reUpload: (index: number) => any;
|
|
581
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
582
|
+
cropperInsRef: any;
|
|
583
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
584
|
+
P: {};
|
|
585
|
+
B: {};
|
|
586
|
+
D: {};
|
|
587
|
+
C: {};
|
|
588
|
+
M: {};
|
|
589
|
+
Defaults: {};
|
|
590
|
+
}, Readonly<{
|
|
591
|
+
file: File;
|
|
592
|
+
index: number;
|
|
593
|
+
options: ImageUploadCropOptions;
|
|
594
|
+
}> & Readonly<{
|
|
595
|
+
onCancel?: (() => any) | undefined;
|
|
596
|
+
onConfirm?: ((value: File) => any) | undefined;
|
|
597
|
+
onImgLoad?: ((value: File) => any) | undefined;
|
|
598
|
+
onReUpload?: ((index: number) => any) | undefined;
|
|
599
|
+
}>, {
|
|
600
|
+
cropperInsRef: import('vue').Ref<any, any>;
|
|
601
|
+
}, {}, {}, {}, {}> | null;
|
|
602
|
+
}, HTMLDivElement>;
|
|
564
603
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, mergeModels as G, useModel as ce, ref as m, computed as M, watch as J, resolveComponent as fe,
|
|
1
|
+
import { defineComponent as se, mergeModels as G, useModel as ce, ref as m, computed as M, watch as J, resolveComponent as fe, createElementBlock as ve, openBlock as K, createVNode as me, createBlock as ge, createCommentVNode as pe, normalizeClass as he } 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";
|
|
@@ -233,7 +233,7 @@ const Fe = /* @__PURE__ */ se({
|
|
|
233
233
|
const t = fe("a-upload");
|
|
234
234
|
return K(), ve("div", null, [
|
|
235
235
|
me(t, {
|
|
236
|
-
class:
|
|
236
|
+
class: he([`${Ee}-upload`]),
|
|
237
237
|
ref_key: "uploadInsRef",
|
|
238
238
|
ref: S,
|
|
239
239
|
"list-type": "picture-card",
|
|
@@ -255,7 +255,7 @@ const Fe = /* @__PURE__ */ se({
|
|
|
255
255
|
onSuccess: ne,
|
|
256
256
|
onError: te
|
|
257
257
|
}, null, 8, ["class", "tip", "file-list", "action", "headers", "data", "name", "accept", "multiple", "limit", "disabled"]),
|
|
258
|
-
p.value && n.value !== void 0 ? (K(),
|
|
258
|
+
p.value && n.value !== void 0 ? (K(), ge(Ie, {
|
|
259
259
|
key: 0,
|
|
260
260
|
ref_key: "cropperInsRef",
|
|
261
261
|
ref: O,
|
|
@@ -265,7 +265,7 @@ const Fe = /* @__PURE__ */ se({
|
|
|
265
265
|
onCancel: re,
|
|
266
266
|
onConfirm: ue,
|
|
267
267
|
onImgLoad: de
|
|
268
|
-
}, null, 8, ["file", "index", "options"])) :
|
|
268
|
+
}, null, 8, ["file", "index", "options"])) : pe("", !0)
|
|
269
269
|
]);
|
|
270
270
|
};
|
|
271
271
|
}
|
|
@@ -531,7 +531,46 @@ declare const ProImageUpload: {
|
|
|
531
531
|
singleLimit: number;
|
|
532
532
|
disabled: boolean;
|
|
533
533
|
hideInnerBeforeUploadLoading: boolean;
|
|
534
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
534
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
535
|
+
uploadInsRef: unknown;
|
|
536
|
+
cropperInsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
537
|
+
file: File;
|
|
538
|
+
index: number;
|
|
539
|
+
options: import('@keyblade/one-travel').ImageUploadCropOptions;
|
|
540
|
+
}> & Readonly<{
|
|
541
|
+
onCancel?: (() => any) | undefined;
|
|
542
|
+
onConfirm?: ((value: File) => any) | undefined;
|
|
543
|
+
onImgLoad?: ((value: File) => any) | undefined;
|
|
544
|
+
onReUpload?: ((index: number) => any) | undefined;
|
|
545
|
+
}>, {
|
|
546
|
+
cropperInsRef: import('vue').Ref<any, any>;
|
|
547
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
548
|
+
cancel: () => any;
|
|
549
|
+
confirm: (value: File) => any;
|
|
550
|
+
imgLoad: (value: File) => any;
|
|
551
|
+
reUpload: (index: number) => any;
|
|
552
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
553
|
+
cropperInsRef: any;
|
|
554
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
555
|
+
P: {};
|
|
556
|
+
B: {};
|
|
557
|
+
D: {};
|
|
558
|
+
C: {};
|
|
559
|
+
M: {};
|
|
560
|
+
Defaults: {};
|
|
561
|
+
}, Readonly<{
|
|
562
|
+
file: File;
|
|
563
|
+
index: number;
|
|
564
|
+
options: import('@keyblade/one-travel').ImageUploadCropOptions;
|
|
565
|
+
}> & Readonly<{
|
|
566
|
+
onCancel?: (() => any) | undefined;
|
|
567
|
+
onConfirm?: ((value: File) => any) | undefined;
|
|
568
|
+
onImgLoad?: ((value: File) => any) | undefined;
|
|
569
|
+
onReUpload?: ((index: number) => any) | undefined;
|
|
570
|
+
}>, {
|
|
571
|
+
cropperInsRef: import('vue').Ref<any, any>;
|
|
572
|
+
}, {}, {}, {}, {}> | null;
|
|
573
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
535
574
|
P: {};
|
|
536
575
|
B: {};
|
|
537
576
|
D: {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as f, inject as s, computed as r, resolveComponent as A, createBlock as i, openBlock as t, withCtx as k, KeepAlive as x, resolveDynamicComponent as y } from "vue";
|
|
2
|
+
import "vue-router";
|
|
3
|
+
const I = /* @__PURE__ */ f({
|
|
3
4
|
__name: "pro-keep-alive-router-view",
|
|
4
5
|
props: {
|
|
5
6
|
/** 包含 */
|
|
@@ -22,7 +23,7 @@ const _ = /* @__PURE__ */ o({
|
|
|
22
23
|
}
|
|
23
24
|
},
|
|
24
25
|
setup(d) {
|
|
25
|
-
const
|
|
26
|
+
const m = (e) => {
|
|
26
27
|
var p, n, c, a;
|
|
27
28
|
if ((p = e == null ? void 0 : e.meta) != null && p.componentKey) {
|
|
28
29
|
if (((c = e == null ? void 0 : e.meta) == null ? void 0 : c.componentKey) === "path")
|
|
@@ -31,18 +32,18 @@ const _ = /* @__PURE__ */ o({
|
|
|
31
32
|
return e.fullPath;
|
|
32
33
|
} else
|
|
33
34
|
return (n = e == null ? void 0 : e.meta) != null && n.ignoreCache ? e.path : e.fullPath;
|
|
34
|
-
}, l = d,
|
|
35
|
+
}, l = d, u = s("ProKeepAliveInclude", []), v = r(() => l.keepAliveInclude instanceof Array && l.keepAliveInclude.length === 0 || !l.keepAliveInclude ? u.value : l.keepAliveInclude || []), o = r(() => l.keepAliveExclude || []);
|
|
35
36
|
return (e, p) => {
|
|
36
37
|
const n = A("router-view");
|
|
37
|
-
return
|
|
38
|
+
return t(), i(n, null, {
|
|
38
39
|
default: k(({ Component: c, route: a }) => [
|
|
39
|
-
(
|
|
40
|
-
include:
|
|
41
|
-
exclude:
|
|
40
|
+
(t(), i(x, {
|
|
41
|
+
include: v.value,
|
|
42
|
+
exclude: o.value,
|
|
42
43
|
max: d.keepAliveMax
|
|
43
44
|
}, [
|
|
44
|
-
(
|
|
45
|
-
key:
|
|
45
|
+
(t(), i(y(c), {
|
|
46
|
+
key: m(a)
|
|
46
47
|
}))
|
|
47
48
|
], 1032, ["include", "exclude", "max"]))
|
|
48
49
|
]),
|
|
@@ -52,5 +53,5 @@ const _ = /* @__PURE__ */ o({
|
|
|
52
53
|
}
|
|
53
54
|
});
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
+
I as default
|
|
56
57
|
};
|
package/es/pro-layout/index.d.ts
CHANGED
|
@@ -91,11 +91,11 @@ declare const ProLayout: {
|
|
|
91
91
|
required: false;
|
|
92
92
|
};
|
|
93
93
|
}>> & Readonly<{
|
|
94
|
-
onCollapse?: ((
|
|
95
|
-
onKeepAliveIncludeChange?: ((
|
|
94
|
+
onCollapse?: ((_collapsed: boolean) => any) | undefined;
|
|
95
|
+
onKeepAliveIncludeChange?: ((_keepAliveInclude: string[]) => any) | undefined;
|
|
96
96
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
97
|
-
collapse: (
|
|
98
|
-
keepAliveIncludeChange: (
|
|
97
|
+
collapse: (_collapsed: boolean) => void;
|
|
98
|
+
keepAliveIncludeChange: (_keepAliveInclude: string[]) => void;
|
|
99
99
|
}, import('vue').PublicProps, {
|
|
100
100
|
title: string;
|
|
101
101
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
@@ -212,8 +212,8 @@ declare const ProLayout: {
|
|
|
212
212
|
required: false;
|
|
213
213
|
};
|
|
214
214
|
}>> & Readonly<{
|
|
215
|
-
onCollapse?: ((
|
|
216
|
-
onKeepAliveIncludeChange?: ((
|
|
215
|
+
onCollapse?: ((_collapsed: boolean) => any) | undefined;
|
|
216
|
+
onKeepAliveIncludeChange?: ((_keepAliveInclude: string[]) => any) | undefined;
|
|
217
217
|
}>, {}, {}, {}, {}, {
|
|
218
218
|
title: string;
|
|
219
219
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
@@ -327,11 +327,11 @@ declare const ProLayout: {
|
|
|
327
327
|
required: false;
|
|
328
328
|
};
|
|
329
329
|
}>> & Readonly<{
|
|
330
|
-
onCollapse?: ((
|
|
331
|
-
onKeepAliveIncludeChange?: ((
|
|
330
|
+
onCollapse?: ((_collapsed: boolean) => any) | undefined;
|
|
331
|
+
onKeepAliveIncludeChange?: ((_keepAliveInclude: string[]) => any) | undefined;
|
|
332
332
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
333
|
-
collapse: (
|
|
334
|
-
keepAliveIncludeChange: (
|
|
333
|
+
collapse: (_collapsed: boolean) => void;
|
|
334
|
+
keepAliveIncludeChange: (_keepAliveInclude: string[]) => void;
|
|
335
335
|
}, string, {
|
|
336
336
|
title: string;
|
|
337
337
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
@@ -352,10 +352,10 @@ declare const ProLayout: {
|
|
|
352
352
|
disableKeepAlive: boolean;
|
|
353
353
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
354
354
|
$slots: {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
355
|
+
'header-left'?(_: {}): any;
|
|
356
|
+
'header-center'?(_: {}): any;
|
|
357
|
+
'header-right'?(_: {}): any;
|
|
358
|
+
'sider-top'?(_: {}): any;
|
|
359
359
|
footer?(_: {}): any;
|
|
360
360
|
};
|
|
361
361
|
}) & {
|
|
@@ -4,10 +4,10 @@ import { MenuProps } from '@arco-design/web-vue/es/menu/interface';
|
|
|
4
4
|
declare function __VLS_template(): {
|
|
5
5
|
attrs: Partial<{}>;
|
|
6
6
|
slots: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
'header-left'?(_: {}): any;
|
|
8
|
+
'header-center'?(_: {}): any;
|
|
9
|
+
'header-right'?(_: {}): any;
|
|
10
|
+
'sider-top'?(_: {}): any;
|
|
11
11
|
footer?(_: {}): any;
|
|
12
12
|
};
|
|
13
13
|
refs: {};
|
|
@@ -127,8 +127,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
127
127
|
required: false;
|
|
128
128
|
};
|
|
129
129
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
130
|
-
collapse: (
|
|
131
|
-
keepAliveIncludeChange: (
|
|
130
|
+
collapse: (_collapsed: boolean) => void;
|
|
131
|
+
keepAliveIncludeChange: (_keepAliveInclude: string[]) => void;
|
|
132
132
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
133
133
|
/**
|
|
134
134
|
* 布局模式
|
|
@@ -242,8 +242,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
242
242
|
required: false;
|
|
243
243
|
};
|
|
244
244
|
}>> & Readonly<{
|
|
245
|
-
onCollapse?: ((
|
|
246
|
-
onKeepAliveIncludeChange?: ((
|
|
245
|
+
onCollapse?: ((_collapsed: boolean) => any) | undefined;
|
|
246
|
+
onKeepAliveIncludeChange?: ((_keepAliveInclude: string[]) => any) | undefined;
|
|
247
247
|
}>, {
|
|
248
248
|
title: string;
|
|
249
249
|
menuProps: Partial<MenuProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, useCssVars as te, toRefs as ae, useSlots as le, provide as _,
|
|
1
|
+
import { defineComponent as ee, useCssVars as te, ref as A, toRefs as ae, useSlots as le, provide as _, onMounted as oe, watch as W, resolveComponent as o, createBlock as u, openBlock as s, normalizeClass as l, withCtx as n, createCommentVNode as c, createVNode as f, createElementVNode as p, renderSlot as y, createElementBlock as h, unref as i, Fragment as $, createTextVNode as C, toDisplayString as q } from "vue";
|
|
2
2
|
import { useHooks as se } from "./hooks.js";
|
|
3
3
|
import { useRouter as de } from "vue-router";
|
|
4
4
|
const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @__PURE__ */ ee({
|
|
@@ -124,9 +124,9 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
124
124
|
},
|
|
125
125
|
setup(e, { emit: K }) {
|
|
126
126
|
te((a) => ({
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
"
|
|
127
|
+
"41512b1e": x.value,
|
|
128
|
+
"514ba31c": V,
|
|
129
|
+
"27c679ae": F
|
|
130
130
|
}));
|
|
131
131
|
const d = e, T = K, b = de(), { menuItems: I } = ae(d), m = le(), {
|
|
132
132
|
menuSelectedKeys: M,
|
|
@@ -166,7 +166,7 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
166
166
|
class: l([t, `${t}-${e.layout}`])
|
|
167
167
|
}, {
|
|
168
168
|
default: n(() => [
|
|
169
|
-
e.hideHeader ?
|
|
169
|
+
e.hideHeader ? c("", !0) : (s(), u(E, {
|
|
170
170
|
key: 0,
|
|
171
171
|
class: l([`${t}-header`, { [`${t}-header-collapsed`]: r.value }])
|
|
172
172
|
}, {
|
|
@@ -179,14 +179,14 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
179
179
|
key: 0,
|
|
180
180
|
class: l(`${t}-header-left-logo`)
|
|
181
181
|
}, [
|
|
182
|
-
|
|
182
|
+
f(H, null, {
|
|
183
183
|
default: n(() => [
|
|
184
184
|
p("img", {
|
|
185
185
|
class: l(`${t}-header-left-logo-img`),
|
|
186
186
|
alt: "logo",
|
|
187
187
|
src: e.logo
|
|
188
188
|
}, null, 10, ne),
|
|
189
|
-
r.value ?
|
|
189
|
+
r.value ? c("", !0) : (s(), u(w, {
|
|
190
190
|
key: 0,
|
|
191
191
|
class: l(`${t}-header-left-logo-title`),
|
|
192
192
|
heading: 5
|
|
@@ -199,13 +199,13 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
199
199
|
]),
|
|
200
200
|
_: 1
|
|
201
201
|
})
|
|
202
|
-
], 2)) :
|
|
202
|
+
], 2)) : c("", !0)
|
|
203
203
|
], 64))
|
|
204
204
|
], 2),
|
|
205
205
|
p("div", {
|
|
206
206
|
class: l(`${t}-header-center`)
|
|
207
207
|
}, [
|
|
208
|
-
i(m)["header-center"] ? y(a.$slots, "header-center", { key: 0 }) :
|
|
208
|
+
i(m)["header-center"] ? y(a.$slots, "header-center", { key: 0 }) : c("", !0)
|
|
209
209
|
], 2),
|
|
210
210
|
p("div", {
|
|
211
211
|
class: l(`${t}-header-right`)
|
|
@@ -215,9 +215,9 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
215
215
|
]),
|
|
216
216
|
_: 3
|
|
217
217
|
}, 8, ["class"])),
|
|
218
|
-
|
|
218
|
+
f(v, null, {
|
|
219
219
|
default: n(() => [
|
|
220
|
-
|
|
220
|
+
f(L, {
|
|
221
221
|
class: l([`${t}-sider`, { [`${t}-sider-collapsed`]: r.value }]),
|
|
222
222
|
width: e.siderWidth,
|
|
223
223
|
collapsible: !0,
|
|
@@ -235,14 +235,14 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
235
235
|
key: 0,
|
|
236
236
|
class: l(`${t}-sider-content-logo`)
|
|
237
237
|
}, [
|
|
238
|
-
|
|
238
|
+
f(H, null, {
|
|
239
239
|
default: n(() => [
|
|
240
240
|
p("img", {
|
|
241
241
|
class: l(`${t}-sider-content-logo-img`),
|
|
242
242
|
alt: "logo",
|
|
243
243
|
src: e.logo
|
|
244
244
|
}, null, 10, re),
|
|
245
|
-
r.value ?
|
|
245
|
+
r.value ? c("", !0) : (s(), u(w, {
|
|
246
246
|
key: 0,
|
|
247
247
|
class: l(`${t}-sider-content-logo-title`),
|
|
248
248
|
heading: 5
|
|
@@ -255,9 +255,9 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
255
255
|
]),
|
|
256
256
|
_: 1
|
|
257
257
|
})
|
|
258
|
-
], 2)) :
|
|
258
|
+
], 2)) : c("", !0)
|
|
259
259
|
], 64)),
|
|
260
|
-
|
|
260
|
+
f(j, {
|
|
261
261
|
collapsed: r.value,
|
|
262
262
|
"selected-keys": i(M),
|
|
263
263
|
items: i(I),
|
|
@@ -265,7 +265,7 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
265
265
|
onMenuItemClick: R
|
|
266
266
|
}, null, 8, ["collapsed", "selected-keys", "items", "menu-props"])
|
|
267
267
|
], 2),
|
|
268
|
-
|
|
268
|
+
f(J, {
|
|
269
269
|
class: l(`${t}-sider-collapse-btn`),
|
|
270
270
|
size: "mini",
|
|
271
271
|
onClick: g[0] || (g[0] = (ue) => P(!r.value))
|
|
@@ -278,11 +278,11 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
278
278
|
]),
|
|
279
279
|
_: 3
|
|
280
280
|
}, 8, ["class", "width", "breakpoint", "collapsed"]),
|
|
281
|
-
|
|
281
|
+
f(v, {
|
|
282
282
|
class: l([`${t}-body`, { [`${t}-body-collapsed`]: r.value }])
|
|
283
283
|
}, {
|
|
284
284
|
default: n(() => [
|
|
285
|
-
e.hideTabs ?
|
|
285
|
+
e.hideTabs ? c("", !0) : (s(), u(U, {
|
|
286
286
|
key: 0,
|
|
287
287
|
class: l(`${t}-body-affix`),
|
|
288
288
|
offsetTop: e.hideHeader ? 0 : e.headerHeight
|
|
@@ -296,17 +296,17 @@ const ne = ["src"], re = ["src"], t = "keyblade-pro-layout", ie = 48, ye = /* @_
|
|
|
296
296
|
"tabs-header-padding": e.tabsHeaderPadding,
|
|
297
297
|
onTabClick: i(D),
|
|
298
298
|
onTabDelete: i(S)
|
|
299
|
-
}, null, 8, ["tabs", "tabs-size", "tabs-type", "tabs-header-padding", "onTabClick", "onTabDelete"])) :
|
|
299
|
+
}, null, 8, ["tabs", "tabs-size", "tabs-type", "tabs-header-padding", "onTabClick", "onTabDelete"])) : c("", !0)
|
|
300
300
|
]),
|
|
301
301
|
_: 1
|
|
302
302
|
}, 8, ["class", "offsetTop"])),
|
|
303
|
-
|
|
303
|
+
f(Y, null, {
|
|
304
304
|
default: n(() => [
|
|
305
|
-
|
|
305
|
+
f(X)
|
|
306
306
|
]),
|
|
307
307
|
_: 1
|
|
308
308
|
}),
|
|
309
|
-
e.hideFooter ?
|
|
309
|
+
e.hideFooter ? c("", !0) : (s(), h($, { key: 1 }, [
|
|
310
310
|
i(m).footer !== void 0 ? y(a.$slots, "footer", { key: 0 }) : (s(), u(Z, {
|
|
311
311
|
key: 1,
|
|
312
312
|
class: l(`${t}-body-footer`)
|
package/es/pro-menu/index.d.ts
CHANGED
|
@@ -24,9 +24,9 @@ declare const ProMenu: {
|
|
|
24
24
|
default: () => {};
|
|
25
25
|
};
|
|
26
26
|
}>> & Readonly<{
|
|
27
|
-
"onMenu-item-click"?: ((
|
|
27
|
+
"onMenu-item-click"?: ((_item: import('./interface').IProMenuItem) => any) | undefined;
|
|
28
28
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
-
"menu-item-click": (
|
|
29
|
+
"menu-item-click": (_item: import('./interface').IProMenuItem) => void;
|
|
30
30
|
}, import('vue').PublicProps, {
|
|
31
31
|
mode: "horizontal" | "vertical";
|
|
32
32
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
@@ -61,7 +61,7 @@ declare const ProMenu: {
|
|
|
61
61
|
default: () => {};
|
|
62
62
|
};
|
|
63
63
|
}>> & Readonly<{
|
|
64
|
-
"onMenu-item-click"?: ((
|
|
64
|
+
"onMenu-item-click"?: ((_item: import('./interface').IProMenuItem) => any) | undefined;
|
|
65
65
|
}>, {}, {}, {}, {}, {
|
|
66
66
|
mode: "horizontal" | "vertical";
|
|
67
67
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
@@ -93,9 +93,9 @@ declare const ProMenu: {
|
|
|
93
93
|
default: () => {};
|
|
94
94
|
};
|
|
95
95
|
}>> & Readonly<{
|
|
96
|
-
"onMenu-item-click"?: ((
|
|
96
|
+
"onMenu-item-click"?: ((_item: import('./interface').IProMenuItem) => any) | undefined;
|
|
97
97
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
|
-
"menu-item-click": (
|
|
98
|
+
"menu-item-click": (_item: import('./interface').IProMenuItem) => void;
|
|
99
99
|
}, string, {
|
|
100
100
|
mode: "horizontal" | "vertical";
|
|
101
101
|
menuProps: Partial<import('@arco-design/web-vue/es/menu/interface').MenuProps>;
|
|
@@ -25,7 +25,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
25
25
|
default: () => {};
|
|
26
26
|
};
|
|
27
27
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
-
"menu-item-click": (
|
|
28
|
+
"menu-item-click": (_item: IProMenuItem) => void;
|
|
29
29
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
30
30
|
mode: {
|
|
31
31
|
type: PropType<"horizontal" | "vertical">;
|
|
@@ -50,7 +50,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
50
50
|
default: () => {};
|
|
51
51
|
};
|
|
52
52
|
}>> & Readonly<{
|
|
53
|
-
"onMenu-item-click"?: ((
|
|
53
|
+
"onMenu-item-click"?: ((_item: IProMenuItem) => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
55
|
mode: "horizontal" | "vertical";
|
|
56
56
|
menuProps: Partial<MenuProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, computed as g, resolveComponent as k,
|
|
1
|
+
import { defineComponent as A, computed as g, resolveComponent as k, createBlock as u, openBlock as l, mergeProps as R, withCtx as a, createVNode as j, createElementBlock as s, unref as f, createCommentVNode as r, Fragment as _, createSlots as b, renderList as x, createTextVNode as q, toDisplayString as I, resolveDynamicComponent as N, normalizeClass as T } from "vue";
|
|
2
2
|
import { createReusableTemplate as w } from "@vueuse/core";
|
|
3
3
|
const z = ["src"], E = ["src"], F = "keyblade-pro-menu", B = "keyblade-pro-menu-item", W = /* @__PURE__ */ A({
|
|
4
4
|
__name: "pro-menu",
|
|
@@ -58,10 +58,10 @@ const z = ["src"], E = ["src"], F = "keyblade-pro-menu", B = "keyblade-pro-menu-
|
|
|
58
58
|
key: e.name
|
|
59
59
|
}, b({
|
|
60
60
|
title: a(() => [
|
|
61
|
-
|
|
61
|
+
q(I(e.title), 1)
|
|
62
62
|
]),
|
|
63
63
|
default: a(() => [
|
|
64
|
-
e != null && e.hideChildrenInMenu ? r("", !0) : (l(!0), s(_, { key: 0 },
|
|
64
|
+
e != null && e.hideChildrenInMenu ? r("", !0) : (l(!0), s(_, { key: 0 }, x((e == null ? void 0 : e.children) || [], (p) => (l(), u(f(h), {
|
|
65
65
|
key: p.name,
|
|
66
66
|
item: p
|
|
67
67
|
}, null, 8, ["item"]))), 128))
|
|
@@ -87,7 +87,7 @@ const z = ["src"], E = ["src"], F = "keyblade-pro-menu", B = "keyblade-pro-menu-
|
|
|
87
87
|
onClick: (p) => P(e)
|
|
88
88
|
}, b({
|
|
89
89
|
default: a(() => [
|
|
90
|
-
|
|
90
|
+
q(" " + I(e.title), 1)
|
|
91
91
|
]),
|
|
92
92
|
_: 2
|
|
93
93
|
}, [
|
|
@@ -110,7 +110,7 @@ const z = ["src"], E = ["src"], F = "keyblade-pro-menu", B = "keyblade-pro-menu-
|
|
|
110
110
|
}),
|
|
111
111
|
_: 1
|
|
112
112
|
}),
|
|
113
|
-
(l(!0), s(_, null,
|
|
113
|
+
(l(!0), s(_, null, x(c.items, (e) => (l(), u(f(h), {
|
|
114
114
|
key: e.name,
|
|
115
115
|
item: e
|
|
116
116
|
}, null, 8, ["item"]))), 128))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, resolveComponent as c,
|
|
1
|
+
import { defineComponent as l, resolveComponent as c, createElementBlock as n, openBlock as a, normalizeClass as r, createBlock as b, createCommentVNode as u, createElementVNode as m, renderSlot as s } from "vue";
|
|
2
2
|
const o = "keyblade-pro-page-container", g = /* @__PURE__ */ l({
|
|
3
3
|
__name: "pro-page-container",
|
|
4
4
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, inject as N, computed as V, resolveComponent as n,
|
|
1
|
+
import { defineComponent as S, inject as N, computed as V, resolveComponent as n, createElementBlock as u, openBlock as a, normalizeClass as s, createVNode as r, createCommentVNode as d, unref as c, withCtx as l, createBlock as i, createTextVNode as p, toDisplayString as f, resolveDynamicComponent as A, Fragment as _, renderList as D } from "vue";
|
|
2
2
|
import { createReusableTemplate as x } from "@vueuse/core";
|
|
3
3
|
const M = { key: 1 }, b = "keyblade-pro-page-header", F = /* @__PURE__ */ S({
|
|
4
4
|
__name: "pro-page-header",
|
|
@@ -55,7 +55,7 @@ const M = { key: 1 }, b = "keyblade-pro-page-header", F = /* @__PURE__ */ S({
|
|
|
55
55
|
}, [
|
|
56
56
|
r(c(B), null, {
|
|
57
57
|
default: l(() => [
|
|
58
|
-
o.hideTitle ?
|
|
58
|
+
o.hideTitle ? d("", !0) : (a(), u("div", {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: s(`${b}-section-title`)
|
|
61
61
|
}, [
|
|
@@ -71,7 +71,7 @@ const M = { key: 1 }, b = "keyblade-pro-page-header", F = /* @__PURE__ */ S({
|
|
|
71
71
|
}),
|
|
72
72
|
_: 1
|
|
73
73
|
}, 8, ["class"]),
|
|
74
|
-
e != null && e.subTitle ? (a(),
|
|
74
|
+
e != null && e.subTitle ? (a(), i(C, {
|
|
75
75
|
key: 0,
|
|
76
76
|
type: "secondary",
|
|
77
77
|
class: s(`${b}-subtitle`)
|
|
@@ -80,7 +80,7 @@ const M = { key: 1 }, b = "keyblade-pro-page-header", F = /* @__PURE__ */ S({
|
|
|
80
80
|
p(f(e == null ? void 0 : e.subTitle), 1)
|
|
81
81
|
]),
|
|
82
82
|
_: 1
|
|
83
|
-
}, 8, ["class"])) :
|
|
83
|
+
}, 8, ["class"])) : d("", !0)
|
|
84
84
|
], 2))
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
@@ -91,20 +91,20 @@ const M = { key: 1 }, b = "keyblade-pro-page-header", F = /* @__PURE__ */ S({
|
|
|
91
91
|
class: s(`${b}-section-breadcrumb`)
|
|
92
92
|
}, {
|
|
93
93
|
default: l(() => [
|
|
94
|
-
o.breadcrumbPrefixIcon ? (a(),
|
|
94
|
+
o.breadcrumbPrefixIcon ? (a(), i(h, {
|
|
95
95
|
key: 0,
|
|
96
96
|
style: { cursor: "text" }
|
|
97
97
|
}, {
|
|
98
98
|
default: l(() => [
|
|
99
|
-
(a(),
|
|
99
|
+
(a(), i(A(o.breadcrumbPrefixIcon)))
|
|
100
100
|
]),
|
|
101
101
|
_: 1
|
|
102
|
-
})) :
|
|
103
|
-
(a(!0), u(_, null, D(y.value, (t, m) => (a(),
|
|
102
|
+
})) : d("", !0),
|
|
103
|
+
(a(!0), u(_, null, D(y.value, (t, m) => (a(), i(h, {
|
|
104
104
|
key: `${t}-${m}`
|
|
105
105
|
}, {
|
|
106
106
|
default: l(() => [
|
|
107
|
-
o.breadcrumbRouterMode ? (a(),
|
|
107
|
+
o.breadcrumbRouterMode ? (a(), i($, {
|
|
108
108
|
key: 0,
|
|
109
109
|
to: (t == null ? void 0 : t.path) || ""
|
|
110
110
|
}, {
|
|
@@ -130,11 +130,11 @@ const M = { key: 1 }, b = "keyblade-pro-page-header", F = /* @__PURE__ */ S({
|
|
|
130
130
|
o.titlePosition === "top" ? (a(), u(_, { key: 0 }, [
|
|
131
131
|
r(c(g)),
|
|
132
132
|
r(c(k))
|
|
133
|
-
], 64)) :
|
|
133
|
+
], 64)) : d("", !0),
|
|
134
134
|
o.titlePosition === "bottom" ? (a(), u(_, { key: 1 }, [
|
|
135
135
|
r(c(k)),
|
|
136
136
|
r(c(g))
|
|
137
|
-
], 64)) :
|
|
137
|
+
], 64)) : d("", !0)
|
|
138
138
|
]);
|
|
139
139
|
};
|
|
140
140
|
}
|
|
@@ -22,11 +22,11 @@ declare const ProReuseTabs: {
|
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
24
|
}>> & Readonly<{
|
|
25
|
-
"onTab-click"?: ((
|
|
26
|
-
"onTab-delete"?: ((
|
|
25
|
+
"onTab-click"?: ((_key: string) => any) | undefined;
|
|
26
|
+
"onTab-delete"?: ((_key: string) => any) | undefined;
|
|
27
27
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
-
"tab-click": (
|
|
29
|
-
"tab-delete": (
|
|
28
|
+
"tab-click": (_key: string) => void;
|
|
29
|
+
"tab-delete": (_key: string) => void;
|
|
30
30
|
}, import('vue').PublicProps, {
|
|
31
31
|
tabs: import('./interface').IProTab[];
|
|
32
32
|
tabsSize: "small" | "mini" | "medium" | "large";
|
|
@@ -61,8 +61,8 @@ declare const ProReuseTabs: {
|
|
|
61
61
|
default: boolean;
|
|
62
62
|
};
|
|
63
63
|
}>> & Readonly<{
|
|
64
|
-
"onTab-click"?: ((
|
|
65
|
-
"onTab-delete"?: ((
|
|
64
|
+
"onTab-click"?: ((_key: string) => any) | undefined;
|
|
65
|
+
"onTab-delete"?: ((_key: string) => any) | undefined;
|
|
66
66
|
}>, {}, {}, {}, {}, {
|
|
67
67
|
tabs: import('./interface').IProTab[];
|
|
68
68
|
tabsSize: "small" | "mini" | "medium" | "large";
|
|
@@ -94,11 +94,11 @@ declare const ProReuseTabs: {
|
|
|
94
94
|
default: boolean;
|
|
95
95
|
};
|
|
96
96
|
}>> & Readonly<{
|
|
97
|
-
"onTab-click"?: ((
|
|
98
|
-
"onTab-delete"?: ((
|
|
97
|
+
"onTab-click"?: ((_key: string) => any) | undefined;
|
|
98
|
+
"onTab-delete"?: ((_key: string) => any) | undefined;
|
|
99
99
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
100
|
-
"tab-click": (
|
|
101
|
-
"tab-delete": (
|
|
100
|
+
"tab-click": (_key: string) => void;
|
|
101
|
+
"tab-delete": (_key: string) => void;
|
|
102
102
|
}, string, {
|
|
103
103
|
tabs: import('./interface').IProTab[];
|
|
104
104
|
tabsSize: "small" | "mini" | "medium" | "large";
|
|
@@ -23,8 +23,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
23
23
|
default: boolean;
|
|
24
24
|
};
|
|
25
25
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
-
"tab-click": (
|
|
27
|
-
"tab-delete": (
|
|
26
|
+
"tab-click": (_key: string) => void;
|
|
27
|
+
"tab-delete": (_key: string) => void;
|
|
28
28
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
29
|
tabs: {
|
|
30
30
|
type: PropType<IProTab[]>;
|
|
@@ -48,8 +48,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
48
48
|
default: boolean;
|
|
49
49
|
};
|
|
50
50
|
}>> & Readonly<{
|
|
51
|
-
"onTab-click"?: ((
|
|
52
|
-
"onTab-delete"?: ((
|
|
51
|
+
"onTab-click"?: ((_key: string) => any) | undefined;
|
|
52
|
+
"onTab-delete"?: ((_key: string) => any) | undefined;
|
|
53
53
|
}>, {
|
|
54
54
|
tabs: IProTab[];
|
|
55
55
|
tabsSize: "small" | "mini" | "medium" | "large";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as y, computed as f, resolveComponent as l,
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as y, computed as f, resolveComponent as l, createElementBlock as s, openBlock as a, normalizeClass as k, createVNode as g, withCtx as v, Fragment as h, renderList as C, createBlock as S } from "vue";
|
|
2
|
+
const _ = "keyblade-pro-reuse-tabs", q = /* @__PURE__ */ y({
|
|
3
3
|
__name: "pro-reuse-tabs",
|
|
4
4
|
props: {
|
|
5
5
|
tabs: {
|
|
@@ -40,7 +40,7 @@ const z = "keyblade-pro-reuse-tabs", x = /* @__PURE__ */ y({
|
|
|
40
40
|
return (t, r) => {
|
|
41
41
|
const m = l("a-tab-pane"), p = l("a-tabs");
|
|
42
42
|
return a(), s("div", {
|
|
43
|
-
class: k(
|
|
43
|
+
class: k(_)
|
|
44
44
|
}, [
|
|
45
45
|
g(p, {
|
|
46
46
|
"active-key": c.value,
|
|
@@ -66,5 +66,5 @@ const z = "keyblade-pro-reuse-tabs", x = /* @__PURE__ */ y({
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
export {
|
|
69
|
-
|
|
69
|
+
q as default
|
|
70
70
|
};
|
|
@@ -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(--
|
|
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-f19054ef]{display:flex;align-items:center}
|